summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/yaegashi/msgraph.go/beta
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/yaegashi/msgraph.go/beta')
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionAad.go10
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionAccess.go1688
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionActive.go10
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionActivity.go10
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionAdministrative.go318
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionAdvanced.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionAgreement.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionAlert.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionAndroid.go1265
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionApp.go322
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionApple.go120
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionApplication.go368
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionApproval.go522
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionAttachment.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionAudit.go522
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionBase.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionBooking.go536
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionBusiness.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go640
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionCall.go454
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionChannel.go325
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionChat.go522
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionCloud.go222
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionCommand.go10
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionComms.go216
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionCompany.go3582
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionConditional.go216
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionContact.go733
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionContent.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionConversation.go222
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionCustomer.go258
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionData.go1250
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDefault.go121
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDep.go250
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go14358
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDimension.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDirectory.go480
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDocument.go216
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDomain.go328
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go1281
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go2432
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionEmbedded.go222
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionEmployee.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionEnrollment.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionEntitlement.go930
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionEvent.go616
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionExact.go245
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionExternal.go325
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionFeature.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionFinancials.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionGeneral.go10
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionGovernance.go526
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go2950
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go1165
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionIdentity.go128
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionImported.go142
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionInference.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionInformation.go474
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionIntune.go120
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionInvitation.go10
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionItem.go367
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionJournal.go132
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionList.go765
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionMDM.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionMac.go475
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go636
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go1963
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionManagement.go216
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionMessage.go594
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionMicrosoft.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionMobile.go972
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionNotebook.go236
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionNotification.go118
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go536
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionOn.go624
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionOnenote.go800
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionOrg.go325
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionOrganization.go322
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionOutlook.go1138
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionParticipant.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionPermission.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go1271
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionPolicy.go336
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionPost.go543
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionPrivileged.go710
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionProfile.go1338
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionProgram.go121
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionPublished.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionPurchase.go146
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionRbac.go216
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionRemote.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionReport.go318
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionRequest.go228
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionRisky.go126
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionRole.go242
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionRoom.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionSales.go602
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go851
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionSearch.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionSection.go230
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go1553
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionSensitivity.go122
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go1067
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionShared.go170
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go763
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionSynchronization.go394
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionTargeted.go349
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionTeam.go583
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionTeams.go139
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionTeamwork.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionTenant.go10
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionTerms.go332
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionThreat.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionTi.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionTrending.go10
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionTrust.go254
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionUnified.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionUsed.go10
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go5028
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionVPP.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionVendor.go135
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go1981
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows10.go325
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows81.go121
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go5268
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumACL.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAccess.go84
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAccount.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAction.go82
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumActivity.go62
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAdmin.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAdministrator.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAdvanced.go100
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAgent.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAgreement.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAlert.go124
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAlignment.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAllowed.go55
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAnalytics.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAndroid.go1224
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAnniversary.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumApp.go212
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumApple.go159
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumApplication.go242
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumApplied.go65
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumApproval.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAssignment.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAttachment.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAttendee.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAttribute.go121
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAuth.go80
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAuto.go52
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAutomatic.go77
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumAzure.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumBinary.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumBit.go89
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumBody.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumBooking.go183
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumBrowser.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumCalendar.go193
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumCall.go119
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumCategory.go145
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumCertificate.go265
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumChange.go52
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumChannel.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumChassis.go60
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumChat.go148
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumClonable.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumCloud.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumCompany.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumCompliance.go102
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumComponent.go20
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumConditional.go250
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumConfiguration.go104
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumConnection.go109
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumContact.go55
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumContent.go79
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumConversation.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDMA.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumData.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDay.go50
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDefender.go360
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDelegate.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDelivery.go62
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDep.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDerived.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDevice.go1602
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDiagnostic.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDiamond.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDirectory.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDiscovery.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDisk.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDlp.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumDomain.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEap.go77
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEas.go72
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEdge.go163
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEdition.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEducation.go257
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEmail.go193
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEmbedded.go55
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEnablement.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEncrypt.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEncryption.go47
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEndpoint.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEnrollment.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEntity.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEntry.go72
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumError.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumEvent.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumExchange.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumExternal.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumFeature.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumFile.go87
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumFirewall.go99
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumFolder.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumFollowup.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumFree.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumGiphy.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumGroup.go241
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumHash.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumHealth.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumIOS.go164
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumITunes.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumImportance.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumImported.go99
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumInference.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumInitiator.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumInk.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumInstall.go77
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumIntended.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumInternet.go67
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumKey.go79
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumLan.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumLanguage.go50
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumLocal.go242
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumLocation.go102
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumLog.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumLogon.go50
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumLost.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMDM.go72
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMac.go62
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMail.go157
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumManaged.go456
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumManagement.go147
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMedia.go62
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMeeting.go67
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMessage.go70
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMetered.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMicrosoft.go79
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMigration.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMiracast.go120
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMobile.go260
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumModality.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumMutability.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumNDES.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumNetwork.go67
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumNon.go57
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumNotification.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumObject.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumOffice.go94
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumOn.go50
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumOnenote.go126
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumOnline.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumOperation.go67
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumOverride.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumOwner.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPage.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPermission.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPersistent.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPerson.go95
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPhone.go65
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPhysical.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPlace.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPlanner.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPlatform.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPlay.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPolicy.go102
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPower.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPrerelease.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumPriority.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumProcess.go50
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumProperty.go60
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumProvisioning.go82
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumQuarantine.go50
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRating.go881
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRecipient.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRecord.go60
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRecording.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRecurrence.go72
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumReference.go82
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistration.go102
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistry.go174
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumReject.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRemediation.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRemote.go157
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRequired.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRequirement.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumResponse.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRestricted.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRestriction.go77
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumResultant.go162
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRisk.go340
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRole.go57
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRouting.go94
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRule.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumRun.go67
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSafe.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSchedule.go149
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumScope.go47
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumScreen.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSecure.go62
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSecurity.go177
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSensitivity.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumService.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSetup.go55
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumShared.go57
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSign.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSignin.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSite.go72
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSkill.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumStaged.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumState.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumStatus.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSubject.go97
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumSynchronization.go333
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumTask.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumTeam.go87
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumTeams.go119
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumThreat.go182
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumTi.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumTime.go147
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumTlp.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumToken.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumTone.go100
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumUnary.go20
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumUpdate.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumUsage.go70
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumUser.go363
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumUsername.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumVPN.go362
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumVPP.go131
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumVisibility.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWatermark.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWeb.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWebsite.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWeek.go40
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWeekly.go65
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWelcome.go30
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWiFi.go99
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWin32.go309
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows.go1723
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows10.go307
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWired.go50
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/EnumWorkforce.go67
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/GraphService.go9272
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelACL.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAPI.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAad.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAccess.go423
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAccount.go33
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelActive.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelActivity.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAdd.go101
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAdmin.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAdministrative.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAdvanced.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAged.go55
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAgreement.go61
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAir.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAlbum.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAlert.go107
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAll.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAllowed.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAlternative.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAndroid.go1741
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAnonymous.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelApp.go183
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelApple.go121
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelApplication.go133
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelApplied.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelApply.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelApproval.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAssigned.go39
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAttachment.go37
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAttendee.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAttribute.go87
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAudio.go67
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAudit.go109
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAuthentication.go33
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAuto.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAutomatic.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAverage.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelAzure.go53
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelBase.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelBinary.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelBit.go77
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelBlock.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelBooking.go221
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelBoolean.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelBulk.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelBundle.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelBusiness.go43
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCalculated.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCalendar.go105
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCall.go97
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCancel.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCart.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCertificate.go49
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCertification.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelChange.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelChannel.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelChat.go169
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelChoice.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCircular.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelClassifcation.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelClassification.go47
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCloud.go75
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelColumn.go57
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCommand.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelComment.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelComms.go43
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCompany.go149
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelComplex.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCompliance.go51
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelConditional.go153
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelConfiguration.go63
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelConnection.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelContact.go105
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelContent.go99
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelContract.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelControl.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelConversation.go63
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelConvert.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCopy.go41
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCountry.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCreate.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCredential.go75
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrency.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrent.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCustom.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelCustomer.go113
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDaily.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelData.go93
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDate.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDaylight.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDefault.go93
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDefender.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDelegated.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDelete.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDeleted.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDelivery.go97
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDep.go205
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDetails.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDetected.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDevice.go2323
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDiagnostic.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDimension.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDirectory.go133
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDiscovered.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDlp.go79
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDocument.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDomain.go167
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDowngrade.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelDrive.go141
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelE.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEas.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEdge.go57
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEdit.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEdition.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEducation.go849
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEducational.go43
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEmail.go199
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEmbedded.go67
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEmployee.go47
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEncrypt.go33
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEncryption.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEndpoint.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEnrollment.go65
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEnterprise.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEntitlement.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEntity.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelError.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEvaluate.go75
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelEvent.go141
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelExact.go115
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelExcluded.go37
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelExclusion.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelExpression.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelExtended.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelExtension.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelExternal.go75
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelFeature.go39
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelField.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelFile.go143
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelFilter.go57
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelFinancials.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelFlex.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelFocus.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelFolder.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelFollowup.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelFree.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneral.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneric.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelGeo.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelGeolocation.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelGovernance.go261
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelGroup.go555
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelHardware.go55
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelHas.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelHashes.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelHost.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelHourly.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelHybrid.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelIOS.go1227
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelIP.go83
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv4.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv6.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelIdentity.go103
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelImage.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelImplicit.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelImported.go119
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelImpossible.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelIncoming.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelIncomplete.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInference.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInformation.go65
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInformational.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInitiator.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInner.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInsight.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInstance.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInstitution.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInternet.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelIntune.go119
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInvitation.go41
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInvite.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelInvited.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelIosik.go49
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelItem.go267
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelJSON.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelJob.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelJournal.go55
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelJustify.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelKerberos.go49
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelKey.go87
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLabel.go41
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLabeling.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLanguage.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLeaked.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLearned.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLicense.go65
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelList.go69
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLocale.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLocalized.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLocate.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLocated.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLocation.go51
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLogged.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLogon.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelLookup.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMDM.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMFA.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMac.go633
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMail.go99
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMailbox.go113
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMalware.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelManaged.go852
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelManagement.go79
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMark.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMatch.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMatching.go51
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMedia.go137
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMeeting.go95
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMembership.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMention.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMentions.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMessage.go195
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMetadata.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMicrosoft.go39
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMime.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMobile.go431
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelModified.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMove.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMulti.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelMute.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelNDES.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelNamed.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelNetwork.go109
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelNotebook.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelNotification.go43
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelNotify.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelNumber.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOAuth2.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOMA.go79
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelObject.go51
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice.go137
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice365.go283
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOn.go115
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOne.go95
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOnenote.go165
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOnline.go61
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOpen.go39
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOpening.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOperating.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOperation.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOptional.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOrg.go47
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganization.go63
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizational.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizer.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOs.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOut.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOutgoing.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelOutlook.go137
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPackage.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPage.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelParental.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelParse.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelParticipant.go37
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPassword.go47
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPatterned.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPayload.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPayment.go37
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPending.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPermission.go53
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPersistent.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPerson.go135
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPhone.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPhoto.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPhysical.go41
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPicture.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPlace.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPlanner.go359
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPlay.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPolicy.go83
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPosition.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPost.go41
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPostal.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPre.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPresence.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivacy.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivileged.go199
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProcess.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProfile.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProgram.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProject.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPrompt.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProperties.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProperty.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProtect.go43
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProvider.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioned.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioning.go69
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelProxied.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPublic.go61
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPublication.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPublished.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelPurchase.go121
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelQuota.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRanked.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRbac.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRecent.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRecipient.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRecommend.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRecord.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRecording.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRecurrence.go39
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelReference.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelReferenced.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRegistry.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRelated.go33
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRelying.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelReminder.go25
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRemote.go91
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRemove.go33
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRename.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelReport.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelReputation.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRequest.go43
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRequired.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelReset.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelResource.go137
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelResponse.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelResponsible.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRestore.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRestricted.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelResult.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRevoke.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRgb.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRisk.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRisky.go43
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRole.go127
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRoom.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRoot.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRotate.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRubric.go61
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelRun.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSales.go531
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSchedule.go115
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelScheduling.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSchema.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelScoped.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSearch.go91
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSection.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSecure.go91
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSecurity.go193
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitive.go47
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitivity.go45
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelService.go107
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSetting.go61
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSettings.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelShare.go165
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelShared.go129
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSharepoint.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSharing.go55
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelShift.go63
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelShipment.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSide.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSign.go129
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSingle.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSite.go107
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSize.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSkill.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSkype.go365
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSoftware.go39
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSpecial.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelStandard.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelStatus.go27
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelStorage.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelString.go41
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribe.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribed.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscription.go35
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSuspicious.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSwap.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSymantec.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSynchronization.go225
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelSystem.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTarget.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTargeted.go49
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTax.go33
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTeam.go129
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTeams.go267
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTeamwork.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTelecom.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTenant.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTerms.go69
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelText.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelThreat.go51
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelThumbnail.go33
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTi.go127
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTime.go87
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelToken.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTone.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTrending.go21
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTrust.go65
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelTyped.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelURL.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUnary.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUnfamiliar.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUnified.go51
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUnit.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUnmute.go9
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUnsupported.go23
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUpdate.go37
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUpload.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUsage.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUsed.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelUser.go698
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelVPN.go115
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelVPP.go101
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelVariable.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelVendor.go49
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelVerified.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelVersion.go11
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelVideo.go29
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelVisual.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelVulnerability.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWeb.go55
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWebsite.go15
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWin32.go223
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows.go1801
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows10.go1347
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows81.go191
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWork.go13
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkbook.go747
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkforce.go31
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelWorking.go17
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelYammer.go191
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/ModelYomi.go19
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAad.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAccess.go630
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAccount.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestActive.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestActivity.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAdministrative.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAdvanced.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAged.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAgreement.go104
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAlert.go131
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAllowed.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAndroid.go1646
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAnonymous.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestApp.go230
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestApple.go130
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestApplication.go237
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestApproval.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAttachment.go89
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAttribute.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAudio.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestAudit.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestBase.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go281
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestBusiness.go97
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCalendar.go257
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCall.go410
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCart.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCertificate.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestChannel.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestChat.go104
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCloud.go164
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestColumn.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCommand.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestComms.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCompany.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCompliance.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestConditional.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestConnection.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestContact.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestContent.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestContract.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestConversation.go130
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCountry.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCredential.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCurrency.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestCustomer.go104
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestData.go191
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestDefault.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestDep.go208
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestDetected.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go3519
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestDimension.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestDirectory.go1653
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestDocument.go104
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestDomain.go157
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestDrive.go489
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestE.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEducation.go746
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEducational.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEmbedded.go197
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEmployee.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEndpoint.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEnrollment.go123
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEnterprise.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEntitlement.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEntity.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestEvent.go364
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestExact.go309
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestExtension.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestExternal.go104
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestFeature.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestField.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestFile.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestFilter.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestFinancials.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestGeneral.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestGovernance.go315
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestGroup.go944
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestHost.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestIOS.go849
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestIP.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestIdentity.go170
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestImported.go496
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestImpossible.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestInference.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestInformation.go423
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestIntune.go97
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestInvitation.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go302
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestJob.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestJournal.go97
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestLanguage.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestLeaked.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestLicense.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestList.go130
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestLocalized.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestLookup.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestMDM.go131
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestMac.go401
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestMail.go92
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestMalware.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestManaged.go1613
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestMention.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestMessage.go336
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestMicrosoft.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestMobile.go664
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestMulti.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestNDES.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestNamed.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestNotebook.go92
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestNotification.go97
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOAuth2.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOffice.go256
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOn.go137
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOnenote.go277
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOnline.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOpen.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOrg.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganization.go65
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganizational.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestOutlook.go296
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestParticipant.go119
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPayload.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPayment.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPermission.go131
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPerson.go170
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPicture.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPlace.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPlanner.go401
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPolicy.go256
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPost.go90
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPresence.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPrivileged.go437
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestProgram.go104
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestProject.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestProvider.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestProvisioning.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPublished.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestPurchase.go97
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestRbac.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestRemote.go123
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestReport.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestRequest.go90
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestResource.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestRestricted.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestRisk.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestRisky.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestRole.go357
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestRoom.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSales.go451
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSchedule.go149
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestScheduling.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSchema.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestScoped.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSearch.go131
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSection.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSecure.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSecurity.go295
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitive.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitivity.go114
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestService.go144
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSetting.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestShared.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestShift.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestShipment.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSide.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSign.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSingle.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSite.go308
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSkill.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscribed.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscription.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSuspicious.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSwap.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSymantec.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestSynchronization.go346
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTargeted.go275
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTax.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTeam.go116
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTeams.go262
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTeamwork.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTelecom.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTenant.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTerms.go137
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestText.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestThreat.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestThumbnail.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTi.go389
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTime.go104
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTrending.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestTrust.go212
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestUnfamiliar.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestUnified.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestUnit.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestUsed.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestUser.go1102
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestVPP.go91
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestVendor.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWeb.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows.go1558
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows10.go137
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows81.go71
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWork.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbook.go2680
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctions.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAbs.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAccr.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcos.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcosh.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcoth.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAmor.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAnd.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsArabic.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAreas.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsc.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsin.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsinh.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan2.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtanh.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAve.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAverage.go113
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBaht.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go113
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBeta_.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBin2.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBinom_.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitand.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitlshift.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitor.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitrshift.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitxor.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCeiling_.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChar.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChi.go113
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChoose.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsClean.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCode.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsColumns.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombin.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombina.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsComplex.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConcatenate.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConfidence_.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConvert.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCos.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCosh.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCot.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoth.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCount.go140
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoup.go167
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsc.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsch.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCum.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDate.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDatevalue.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDaverage.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDay.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays360.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDb.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDbcs.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDcount.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDdb.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDec2.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDecimal.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDegrees.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDelta.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDev.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDget.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDisc.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmax.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmin.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDollar.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDproduct.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDst.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDsum.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDuration.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDvar.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEcma_.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEdate.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEffect.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEo.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf_.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsError_.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEven.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExact.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExp.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExpon_.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsF_.go113
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFact.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFalse.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFind.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFisher.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFixed.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFloor_.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFv.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFvschedule.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma_.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGauss.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGcd.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGe.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGeo.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHar.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHex2.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHlookup.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHour.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyp.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyperlink.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIf.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIm.go653
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsImaginary.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsInt.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIpmt.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIrr.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIs.go275
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso_.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIspmt.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIsref.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsKurt.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLarge.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLcm.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeft.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeftb.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLen.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLenb.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLn.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog10.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLookup.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLower.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMatch.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMax.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMduration.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMedian.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMid.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMidb.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMin.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMinute.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMirr.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMod.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMonth.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMulti.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsN.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNa.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNeg.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNetwork.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNominal.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNorm_.go113
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNot.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNow.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNper.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNpv.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNumber.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOct2.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOdd.go140
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOr.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPduration.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercent.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermut.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermutationa.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPhi.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPi.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPmt.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPoisson_.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPower.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPpmt.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPrice.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProduct.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProper.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPv.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuartile_.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuotient.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRadians.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRand.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRank_.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRate.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReceived.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReplace.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRept.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRight.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRightb.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRoman.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRound.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRows.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRri.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSec.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSech.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSecond.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSeries.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheet.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheets.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSign.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSin.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSinh.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew_p.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSln.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSmall.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSqrt.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSt.go113
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsStandardize.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubstitute.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubtotal.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSum.go113
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSyd.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT_.go140
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTan.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTanh.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTbill.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsText.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTime.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTimevalue.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsToday.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrim.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrue.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrunc.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsType.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnichar.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnicode.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUpper.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUsdollar.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsValue.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar_.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVdb.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVlookup.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeek.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeekday.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeibull_.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWork.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXirr.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXnpv.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXor.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYear.go59
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYield.go86
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsZ_.go32
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkforce.go38
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/extensions.go62
-rw-r--r--vendor/github.com/yaegashi/msgraph.go/beta/msgraph.go338
1243 files changed, 195713 insertions, 0 deletions
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAad.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAad.go
new file mode 100644
index 00000000..0700507f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAad.go
@@ -0,0 +1,10 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// User is navigation property
+func (b *AadUserConversationMemberRequestBuilder) User() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/user"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAccess.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAccess.go
new file mode 100644
index 00000000..c0d8712d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAccess.go
@@ -0,0 +1,1688 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessPackageAssignmentRequestObjectCancelRequestParameter undocumented
+type AccessPackageAssignmentRequestObjectCancelRequestParameter struct {
+}
+
+// AccessReviewStopRequestParameter undocumented
+type AccessReviewStopRequestParameter struct {
+}
+
+// AccessReviewSendReminderRequestParameter undocumented
+type AccessReviewSendReminderRequestParameter struct {
+}
+
+// AccessReviewResetDecisionsRequestParameter undocumented
+type AccessReviewResetDecisionsRequestParameter struct {
+}
+
+// AccessReviewApplyDecisionsRequestParameter undocumented
+type AccessReviewApplyDecisionsRequestParameter struct {
+}
+
+// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection
+func (b *AccessPackageRequestBuilder) AccessPackageAssignmentPolicies() *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder {
+ bb := &AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentPolicies"
+ return bb
+}
+
+// AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection
+type AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentPolicy collection
+func (b *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest {
+ return &AccessPackageAccessPackageAssignmentPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentPolicy item
+func (b *AccessPackageAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder {
+ bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection
+type AccessPackageAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection
+func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignmentPolicy collection, max N pages
+func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignmentPolicy collection
+func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignmentPolicy collection
+func (r *AccessPackageAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageCatalog is navigation property
+func (b *AccessPackageRequestBuilder) AccessPackageCatalog() *AccessPackageCatalogRequestBuilder {
+ bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageCatalog"
+ return bb
+}
+
+// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection
+func (b *AccessPackageRequestBuilder) AccessPackageResourceRoleScopes() *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder {
+ bb := &AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoleScopes"
+ return bb
+}
+
+// AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection
+type AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRoleScope collection
+func (b *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *AccessPackageAccessPackageResourceRoleScopesCollectionRequest {
+ return &AccessPackageAccessPackageResourceRoleScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRoleScope item
+func (b *AccessPackageAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder {
+ bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection
+type AccessPackageAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRoleScope collection
+func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRoleScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRoleScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRoleScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResourceRoleScope collection, max N pages
+func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRoleScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResourceRoleScope collection
+func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResourceRoleScope collection
+func (r *AccessPackageAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackage is navigation property
+func (b *AccessPackageAssignmentRequestBuilder) AccessPackage() *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackage"
+ return bb
+}
+
+// AccessPackageAssignmentPolicy is navigation property
+func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentPolicy() *AccessPackageAssignmentPolicyRequestBuilder {
+ bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentPolicy"
+ return bb
+}
+
+// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection
+func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentRequests() *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder {
+ bb := &AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentRequests"
+ return bb
+}
+
+// AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection
+type AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentRequestObject collection
+func (b *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest {
+ return &AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentRequestObject item
+func (b *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder {
+ bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection
+type AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignmentRequestObject collection, max N pages
+func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignmentRequestObject collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignmentRequestObject collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection
+func (b *AccessPackageAssignmentRequestBuilder) AccessPackageAssignmentResourceRoles() *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder {
+ bb := &AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentResourceRoles"
+ return bb
+}
+
+// AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection
+type AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentResourceRole collection
+func (b *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest {
+ return &AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentResourceRole item
+func (b *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder {
+ bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection
+type AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignmentResourceRole collection, max N pages
+func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignmentResourceRole collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignmentResourceRole collection
+func (r *AccessPackageAssignmentAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Target is navigation property
+func (b *AccessPackageAssignmentRequestBuilder) Target() *AccessPackageSubjectRequestBuilder {
+ bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/target"
+ return bb
+}
+
+// AccessPackage is navigation property
+func (b *AccessPackageAssignmentPolicyRequestBuilder) AccessPackage() *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackage"
+ return bb
+}
+
+// AccessPackageCatalog is navigation property
+func (b *AccessPackageAssignmentPolicyRequestBuilder) AccessPackageCatalog() *AccessPackageCatalogRequestBuilder {
+ bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageCatalog"
+ return bb
+}
+
+// AccessPackage is navigation property
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) AccessPackage() *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackage"
+ return bb
+}
+
+// AccessPackageAssignment is navigation property
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) AccessPackageAssignment() *AccessPackageAssignmentRequestBuilder {
+ bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignment"
+ return bb
+}
+
+// Requestor is navigation property
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Requestor() *AccessPackageSubjectRequestBuilder {
+ bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/requestor"
+ return bb
+}
+
+// AccessPackageAssignments returns request builder for AccessPackageAssignment collection
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageAssignments() *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder {
+ bb := &AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignments"
+ return bb
+}
+
+// AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection
+type AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignment collection
+func (b *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder) Request() *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest {
+ return &AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignment item
+func (b *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder {
+ bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection
+type AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignment collection
+func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignment collection, max N pages
+func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignment collection
+func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignment collection
+func (r *AccessPackageAssignmentResourceRoleAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRole is navigation property
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageResourceRole() *AccessPackageResourceRoleRequestBuilder {
+ bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRole"
+ return bb
+}
+
+// AccessPackageResourceScope is navigation property
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageResourceScope() *AccessPackageResourceScopeRequestBuilder {
+ bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceScope"
+ return bb
+}
+
+// AccessPackageSubject is navigation property
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) AccessPackageSubject() *AccessPackageSubjectRequestBuilder {
+ bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageSubject"
+ return bb
+}
+
+// AccessPackageResourceRoles returns request builder for AccessPackageResourceRole collection
+func (b *AccessPackageCatalogRequestBuilder) AccessPackageResourceRoles() *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder {
+ bb := &AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoles"
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder is request builder for AccessPackageResourceRole collection
+type AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRole collection
+func (b *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest {
+ return &AccessPackageCatalogAccessPackageResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRole item
+func (b *AccessPackageCatalogAccessPackageResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleRequestBuilder {
+ bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourceRolesCollectionRequest is request for AccessPackageResourceRole collection
+type AccessPackageCatalogAccessPackageResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRole collection
+func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResourceRole collection, max N pages
+func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResourceRole collection
+func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResourceRole collection
+func (r *AccessPackageCatalogAccessPackageResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRole) (resObj *AccessPackageResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceScopes returns request builder for AccessPackageResourceScope collection
+func (b *AccessPackageCatalogRequestBuilder) AccessPackageResourceScopes() *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder {
+ bb := &AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceScopes"
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder is request builder for AccessPackageResourceScope collection
+type AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceScope collection
+func (b *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest {
+ return &AccessPackageCatalogAccessPackageResourceScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceScope item
+func (b *AccessPackageCatalogAccessPackageResourceScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceScopeRequestBuilder {
+ bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourceScopesCollectionRequest is request for AccessPackageResourceScope collection
+type AccessPackageCatalogAccessPackageResourceScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceScope collection
+func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResourceScope collection, max N pages
+func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResourceScope collection
+func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResourceScope collection
+func (r *AccessPackageCatalogAccessPackageResourceScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceScope) (resObj *AccessPackageResourceScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResources returns request builder for AccessPackageResource collection
+func (b *AccessPackageCatalogRequestBuilder) AccessPackageResources() *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder {
+ bb := &AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResources"
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection
+type AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResource collection
+func (b *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackageResourcesCollectionRequest {
+ return &AccessPackageCatalogAccessPackageResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResource item
+func (b *AccessPackageCatalogAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageCatalogAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection
+type AccessPackageCatalogAccessPackageResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResource collection
+func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResource collection, max N pages
+func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResource collection
+func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResource collection
+func (r *AccessPackageCatalogAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackages returns request builder for AccessPackage collection
+func (b *AccessPackageCatalogRequestBuilder) AccessPackages() *AccessPackageCatalogAccessPackagesCollectionRequestBuilder {
+ bb := &AccessPackageCatalogAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackages"
+ return bb
+}
+
+// AccessPackageCatalogAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection
+type AccessPackageCatalogAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackage collection
+func (b *AccessPackageCatalogAccessPackagesCollectionRequestBuilder) Request() *AccessPackageCatalogAccessPackagesCollectionRequest {
+ return &AccessPackageCatalogAccessPackagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackage item
+func (b *AccessPackageCatalogAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageCatalogAccessPackagesCollectionRequest is request for AccessPackage collection
+type AccessPackageCatalogAccessPackagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackage collection
+func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackage collection, max N pages
+func (r *AccessPackageCatalogAccessPackagesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackage collection
+func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackage collection
+func (r *AccessPackageCatalogAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRoles returns request builder for AccessPackageResourceRole collection
+func (b *AccessPackageResourceRequestBuilder) AccessPackageResourceRoles() *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder {
+ bb := &AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoles"
+ return bb
+}
+
+// AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder is request builder for AccessPackageResourceRole collection
+type AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRole collection
+func (b *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder) Request() *AccessPackageResourceAccessPackageResourceRolesCollectionRequest {
+ return &AccessPackageResourceAccessPackageResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRole item
+func (b *AccessPackageResourceAccessPackageResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleRequestBuilder {
+ bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageResourceAccessPackageResourceRolesCollectionRequest is request for AccessPackageResourceRole collection
+type AccessPackageResourceAccessPackageResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRole collection
+func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResourceRole collection, max N pages
+func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResourceRole collection
+func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRole, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResourceRole collection
+func (r *AccessPackageResourceAccessPackageResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRole) (resObj *AccessPackageResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceScopes returns request builder for AccessPackageResourceScope collection
+func (b *AccessPackageResourceRequestBuilder) AccessPackageResourceScopes() *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder {
+ bb := &AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceScopes"
+ return bb
+}
+
+// AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder is request builder for AccessPackageResourceScope collection
+type AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceScope collection
+func (b *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder) Request() *AccessPackageResourceAccessPackageResourceScopesCollectionRequest {
+ return &AccessPackageResourceAccessPackageResourceScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceScope item
+func (b *AccessPackageResourceAccessPackageResourceScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceScopeRequestBuilder {
+ bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessPackageResourceAccessPackageResourceScopesCollectionRequest is request for AccessPackageResourceScope collection
+type AccessPackageResourceAccessPackageResourceScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceScope collection
+func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResourceScope collection, max N pages
+func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResourceScope collection
+func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceScope, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResourceScope collection
+func (r *AccessPackageResourceAccessPackageResourceScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceScope) (resObj *AccessPackageResourceScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResource is navigation property
+func (b *AccessPackageResourceRequestObjectRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResource"
+ return bb
+}
+
+// Requestor is navigation property
+func (b *AccessPackageResourceRequestObjectRequestBuilder) Requestor() *AccessPackageSubjectRequestBuilder {
+ bb := &AccessPackageSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/requestor"
+ return bb
+}
+
+// AccessPackageResource is navigation property
+func (b *AccessPackageResourceRoleRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResource"
+ return bb
+}
+
+// AccessPackageResourceRole is navigation property
+func (b *AccessPackageResourceRoleScopeRequestBuilder) AccessPackageResourceRole() *AccessPackageResourceRoleRequestBuilder {
+ bb := &AccessPackageResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRole"
+ return bb
+}
+
+// AccessPackageResourceScope is navigation property
+func (b *AccessPackageResourceRoleScopeRequestBuilder) AccessPackageResourceScope() *AccessPackageResourceScopeRequestBuilder {
+ bb := &AccessPackageResourceScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceScope"
+ return bb
+}
+
+// AccessPackageResource is navigation property
+func (b *AccessPackageResourceScopeRequestBuilder) AccessPackageResource() *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResource"
+ return bb
+}
+
+// Decisions returns request builder for AccessReviewDecision collection
+func (b *AccessReviewRequestBuilder) Decisions() *AccessReviewDecisionsCollectionRequestBuilder {
+ bb := &AccessReviewDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/decisions"
+ return bb
+}
+
+// AccessReviewDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type AccessReviewDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *AccessReviewDecisionsCollectionRequestBuilder) Request() *AccessReviewDecisionsCollectionRequest {
+ return &AccessReviewDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *AccessReviewDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessReviewDecisionsCollectionRequest is request for AccessReviewDecision collection
+type AccessReviewDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *AccessReviewDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessReviewDecision collection, max N pages
+func (r *AccessReviewDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *AccessReviewDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *AccessReviewDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Instances returns request builder for AccessReview collection
+func (b *AccessReviewRequestBuilder) Instances() *AccessReviewInstancesCollectionRequestBuilder {
+ bb := &AccessReviewInstancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/instances"
+ return bb
+}
+
+// AccessReviewInstancesCollectionRequestBuilder is request builder for AccessReview collection
+type AccessReviewInstancesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReview collection
+func (b *AccessReviewInstancesCollectionRequestBuilder) Request() *AccessReviewInstancesCollectionRequest {
+ return &AccessReviewInstancesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReview item
+func (b *AccessReviewInstancesCollectionRequestBuilder) ID(id string) *AccessReviewRequestBuilder {
+ bb := &AccessReviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessReviewInstancesCollectionRequest is request for AccessReview collection
+type AccessReviewInstancesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReview collection
+func (r *AccessReviewInstancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReview, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReview
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReview
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessReview collection, max N pages
+func (r *AccessReviewInstancesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReview, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessReview collection
+func (r *AccessReviewInstancesCollectionRequest) Get(ctx context.Context) ([]AccessReview, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessReview collection
+func (r *AccessReviewInstancesCollectionRequest) Add(ctx context.Context, reqObj *AccessReview) (resObj *AccessReview, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MyDecisions returns request builder for AccessReviewDecision collection
+func (b *AccessReviewRequestBuilder) MyDecisions() *AccessReviewMyDecisionsCollectionRequestBuilder {
+ bb := &AccessReviewMyDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/myDecisions"
+ return bb
+}
+
+// AccessReviewMyDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type AccessReviewMyDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *AccessReviewMyDecisionsCollectionRequestBuilder) Request() *AccessReviewMyDecisionsCollectionRequest {
+ return &AccessReviewMyDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *AccessReviewMyDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessReviewMyDecisionsCollectionRequest is request for AccessReviewDecision collection
+type AccessReviewMyDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *AccessReviewMyDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessReviewDecision collection, max N pages
+func (r *AccessReviewMyDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *AccessReviewMyDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *AccessReviewMyDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Reviewers returns request builder for AccessReviewReviewer collection
+func (b *AccessReviewRequestBuilder) Reviewers() *AccessReviewReviewersCollectionRequestBuilder {
+ bb := &AccessReviewReviewersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/reviewers"
+ return bb
+}
+
+// AccessReviewReviewersCollectionRequestBuilder is request builder for AccessReviewReviewer collection
+type AccessReviewReviewersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewReviewer collection
+func (b *AccessReviewReviewersCollectionRequestBuilder) Request() *AccessReviewReviewersCollectionRequest {
+ return &AccessReviewReviewersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewReviewer item
+func (b *AccessReviewReviewersCollectionRequestBuilder) ID(id string) *AccessReviewReviewerRequestBuilder {
+ bb := &AccessReviewReviewerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AccessReviewReviewersCollectionRequest is request for AccessReviewReviewer collection
+type AccessReviewReviewersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewReviewer collection
+func (r *AccessReviewReviewersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewReviewer, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewReviewer
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewReviewer
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessReviewReviewer collection, max N pages
+func (r *AccessReviewReviewersCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewReviewer, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessReviewReviewer collection
+func (r *AccessReviewReviewersCollectionRequest) Get(ctx context.Context) ([]AccessReviewReviewer, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessReviewReviewer collection
+func (r *AccessReviewReviewersCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewReviewer) (resObj *AccessReviewReviewer, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionActive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionActive.go
new file mode 100644
index 00000000..94059bd0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionActive.go
@@ -0,0 +1,10 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainJoinConfiguration is navigation property
+func (b *ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder) DomainJoinConfiguration() *WindowsDomainJoinConfigurationRequestBuilder {
+ bb := &WindowsDomainJoinConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainJoinConfiguration"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionActivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionActivity.go
new file mode 100644
index 00000000..d113a6ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionActivity.go
@@ -0,0 +1,10 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Activity is navigation property
+func (b *ActivityHistoryItemRequestBuilder) Activity() *UserActivityRequestBuilder {
+ bb := &UserActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activity"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdministrative.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdministrative.go
new file mode 100644
index 00000000..2991473f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdministrative.go
@@ -0,0 +1,318 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Extensions returns request builder for Extension collection
+func (b *AdministrativeUnitRequestBuilder) Extensions() *AdministrativeUnitExtensionsCollectionRequestBuilder {
+ bb := &AdministrativeUnitExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// AdministrativeUnitExtensionsCollectionRequestBuilder is request builder for Extension collection
+type AdministrativeUnitExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *AdministrativeUnitExtensionsCollectionRequestBuilder) Request() *AdministrativeUnitExtensionsCollectionRequest {
+ return &AdministrativeUnitExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *AdministrativeUnitExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AdministrativeUnitExtensionsCollectionRequest is request for Extension collection
+type AdministrativeUnitExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *AdministrativeUnitExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Extension collection, max N pages
+func (r *AdministrativeUnitExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Extension collection
+func (r *AdministrativeUnitExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Extension collection
+func (r *AdministrativeUnitExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Members returns request builder for DirectoryObject collection
+func (b *AdministrativeUnitRequestBuilder) Members() *AdministrativeUnitMembersCollectionRequestBuilder {
+ bb := &AdministrativeUnitMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// AdministrativeUnitMembersCollectionRequestBuilder is request builder for DirectoryObject collection
+type AdministrativeUnitMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) Request() *AdministrativeUnitMembersCollectionRequest {
+ return &AdministrativeUnitMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AdministrativeUnitMembersCollectionRequest is request for DirectoryObject collection
+type AdministrativeUnitMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *AdministrativeUnitMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *AdministrativeUnitMembersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *AdministrativeUnitMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *AdministrativeUnitMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScopedRoleMembers returns request builder for ScopedRoleMembership collection
+func (b *AdministrativeUnitRequestBuilder) ScopedRoleMembers() *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder {
+ bb := &AdministrativeUnitScopedRoleMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scopedRoleMembers"
+ return bb
+}
+
+// AdministrativeUnitScopedRoleMembersCollectionRequestBuilder is request builder for ScopedRoleMembership collection
+type AdministrativeUnitScopedRoleMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ScopedRoleMembership collection
+func (b *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder) Request() *AdministrativeUnitScopedRoleMembersCollectionRequest {
+ return &AdministrativeUnitScopedRoleMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ScopedRoleMembership item
+func (b *AdministrativeUnitScopedRoleMembersCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder {
+ bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AdministrativeUnitScopedRoleMembersCollectionRequest is request for ScopedRoleMembership collection
+type AdministrativeUnitScopedRoleMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ScopedRoleMembership collection
+func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScopedRoleMembership, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ScopedRoleMembership
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ScopedRoleMembership
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ScopedRoleMembership collection, max N pages
+func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) GetN(ctx context.Context, n int) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ScopedRoleMembership collection
+func (r *AdministrativeUnitScopedRoleMembersCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdvanced.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdvanced.go
new file mode 100644
index 00000000..d1c92d24
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAdvanced.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AdvancedThreatProtectionOnboardingDeviceSettingStates returns request builder for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (b *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder) AdvancedThreatProtectionOnboardingDeviceSettingStates() *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder {
+ bb := &AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/advancedThreatProtectionOnboardingDeviceSettingStates"
+ return bb
+}
+
+// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder is request builder for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (b *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder) Request() *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest {
+ return &AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AdvancedThreatProtectionOnboardingDeviceSettingState item
+func (b *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequestBuilder) ID(id string) *AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder {
+ bb := &AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest is request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+type AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AdvancedThreatProtectionOnboardingDeviceSettingState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AdvancedThreatProtectionOnboardingDeviceSettingState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState collection, max N pages
+func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) GetN(ctx context.Context, n int) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Get(ctx context.Context) ([]AdvancedThreatProtectionOnboardingDeviceSettingState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AdvancedThreatProtectionOnboardingDeviceSettingState collection
+func (r *AdvancedThreatProtectionOnboardingStateSummaryAdvancedThreatProtectionOnboardingDeviceSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingDeviceSettingState) (resObj *AdvancedThreatProtectionOnboardingDeviceSettingState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAgreement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAgreement.go
new file mode 100644
index 00000000..b69ce8b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAgreement.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Files returns request builder for AgreementFile collection
+func (b *AgreementRequestBuilder) Files() *AgreementFilesCollectionRequestBuilder {
+ bb := &AgreementFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/files"
+ return bb
+}
+
+// AgreementFilesCollectionRequestBuilder is request builder for AgreementFile collection
+type AgreementFilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgreementFile collection
+func (b *AgreementFilesCollectionRequestBuilder) Request() *AgreementFilesCollectionRequest {
+ return &AgreementFilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgreementFile item
+func (b *AgreementFilesCollectionRequestBuilder) ID(id string) *AgreementFileRequestBuilder {
+ bb := &AgreementFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AgreementFilesCollectionRequest is request for AgreementFile collection
+type AgreementFilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgreementFile collection
+func (r *AgreementFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgreementFile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgreementFile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgreementFile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AgreementFile collection, max N pages
+func (r *AgreementFilesCollectionRequest) GetN(ctx context.Context, n int) ([]AgreementFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AgreementFile collection
+func (r *AgreementFilesCollectionRequest) Get(ctx context.Context) ([]AgreementFile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AgreementFile collection
+func (r *AgreementFilesCollectionRequest) Add(ctx context.Context, reqObj *AgreementFile) (resObj *AgreementFile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAlert.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAlert.go
new file mode 100644
index 00000000..8c2da9d8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAlert.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlertCollectionUpdateAlertsRequestParameter undocumented
+type AlertCollectionUpdateAlertsRequestParameter struct {
+ // Value undocumented
+ Value []Alert `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAndroid.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAndroid.go
new file mode 100644
index 00000000..37e5a6dc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAndroid.go
@@ -0,0 +1,1265 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented
+type AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter undocumented
+type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter struct {
+}
+
+// AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter undocumented
+type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter struct {
+ // TokenValidityInSeconds undocumented
+ TokenValidityInSeconds *int `json:"tokenValidityInSeconds,omitempty"`
+}
+
+// AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter undocumented
+type AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter struct {
+}
+
+// AndroidForWorkEnrollmentProfileCreateTokenRequestParameter undocumented
+type AndroidForWorkEnrollmentProfileCreateTokenRequestParameter struct {
+ // TokenValidityInSeconds undocumented
+ TokenValidityInSeconds *int `json:"tokenValidityInSeconds,omitempty"`
+}
+
+// AndroidForWorkSettingsRequestSignupURLRequestParameter undocumented
+type AndroidForWorkSettingsRequestSignupURLRequestParameter struct {
+ // HostName undocumented
+ HostName *string `json:"hostName,omitempty"`
+}
+
+// AndroidForWorkSettingsCompleteSignupRequestParameter undocumented
+type AndroidForWorkSettingsCompleteSignupRequestParameter struct {
+ // EnterpriseToken undocumented
+ EnterpriseToken *string `json:"enterpriseToken,omitempty"`
+}
+
+// AndroidForWorkSettingsSyncAppsRequestParameter undocumented
+type AndroidForWorkSettingsSyncAppsRequestParameter struct {
+}
+
+// AndroidForWorkSettingsUnbindRequestParameter undocumented
+type AndroidForWorkSettingsUnbindRequestParameter struct {
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestParameter struct {
+ // PackageIDs undocumented
+ PackageIDs []string `json:"packageIds,omitempty"`
+ // ApproveAllPermissions undocumented
+ ApproveAllPermissions *bool `json:"approveAllPermissions,omitempty"`
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestParameter struct {
+ // HostName undocumented
+ HostName *string `json:"hostName,omitempty"`
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestParameter struct {
+ // EnterpriseToken undocumented
+ EnterpriseToken *string `json:"enterpriseToken,omitempty"`
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestParameter struct {
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestParameter struct {
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestParameter struct {
+ // ParentURI undocumented
+ ParentURI *string `json:"parentUri,omitempty"`
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestParameter undocumented
+type AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestParameter struct {
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+}
+
+// RootCertificate is navigation property
+func (b *AndroidCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidTrustedRootCertificateRequestBuilder {
+ bb := &AndroidTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
+
+// RootCertificate is navigation property
+func (b *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder {
+ bb := &AndroidDeviceOwnerTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder {
+ bb := &AndroidDeviceOwnerCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder {
+ bb := &AndroidDeviceOwnerTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidDeviceOwnerScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidDeviceOwnerScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidDeviceOwnerVPNConfigurationRequestBuilder) IdentityCertificate() *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder {
+ bb := &AndroidDeviceOwnerCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidEasEmailProfileConfigurationRequestBuilder) IdentityCertificate() *AndroidCertificateProfileBaseRequestBuilder {
+ bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// SmimeSigningCertificate is navigation property
+func (b *AndroidEasEmailProfileConfigurationRequestBuilder) SmimeSigningCertificate() *AndroidCertificateProfileBaseRequestBuilder {
+ bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/smimeSigningCertificate"
+ return bb
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *AndroidEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidCertificateProfileBaseRequestBuilder {
+ bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *AndroidEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidTrustedRootCertificateRequestBuilder {
+ bb := &AndroidTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
+
+// RootCertificate is navigation property
+func (b *AndroidForWorkCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidForWorkTrustedRootCertificateRequestBuilder {
+ bb := &AndroidForWorkTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidForWorkEasEmailProfileBaseRequestBuilder) IdentityCertificate() *AndroidForWorkCertificateProfileBaseRequestBuilder {
+ bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidForWorkCertificateProfileBaseRequestBuilder {
+ bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidForWorkTrustedRootCertificateRequestBuilder {
+ bb := &AndroidForWorkTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidForWorkScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidForWorkVPNConfigurationRequestBuilder) IdentityCertificate() *AndroidForWorkCertificateProfileBaseRequestBuilder {
+ bb := &AndroidForWorkCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Apps returns request builder for ManagedMobileApp collection
+func (b *AndroidManagedAppProtectionRequestBuilder) Apps() *AndroidManagedAppProtectionAppsCollectionRequestBuilder {
+ bb := &AndroidManagedAppProtectionAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// AndroidManagedAppProtectionAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection
+type AndroidManagedAppProtectionAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedMobileApp collection
+func (b *AndroidManagedAppProtectionAppsCollectionRequestBuilder) Request() *AndroidManagedAppProtectionAppsCollectionRequest {
+ return &AndroidManagedAppProtectionAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedMobileApp item
+func (b *AndroidManagedAppProtectionAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder {
+ bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidManagedAppProtectionAppsCollectionRequest is request for ManagedMobileApp collection
+type AndroidManagedAppProtectionAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedMobileApp collection
+func (r *AndroidManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedMobileApp collection, max N pages
+func (r *AndroidManagedAppProtectionAppsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *AndroidManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedMobileApp collection
+func (r *AndroidManagedAppProtectionAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploymentSummary is navigation property
+func (b *AndroidManagedAppProtectionRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder {
+ bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentSummary"
+ return bb
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidVPNConfigurationRequestBuilder) IdentityCertificate() *AndroidCertificateProfileBaseRequestBuilder {
+ bb := &AndroidCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// RootCertificate is navigation property
+func (b *AndroidWorkProfileCertificateProfileBaseRequestBuilder) RootCertificate() *AndroidWorkProfileTrustedRootCertificateRequestBuilder {
+ bb := &AndroidWorkProfileTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidWorkProfileEasEmailProfileBaseRequestBuilder) IdentityCertificate() *AndroidWorkProfileCertificateProfileBaseRequestBuilder {
+ bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *AndroidWorkProfileCertificateProfileBaseRequestBuilder {
+ bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *AndroidWorkProfileTrustedRootCertificateRequestBuilder {
+ bb := &AndroidWorkProfileTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidWorkProfilePkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfilePkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *AndroidWorkProfileScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *AndroidWorkProfileScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityCertificate is navigation property
+func (b *AndroidWorkProfileVPNConfigurationRequestBuilder) IdentityCertificate() *AndroidWorkProfileCertificateProfileBaseRequestBuilder {
+ bb := &AndroidWorkProfileCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionApp.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApp.go
new file mode 100644
index 00000000..d81c9405
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApp.go
@@ -0,0 +1,322 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AppLogCollectionRequestObjectCreateDownloadURLRequestParameter undocumented
+type AppLogCollectionRequestObjectCreateDownloadURLRequestParameter struct {
+}
+
+// TeamsApps returns request builder for TeamsApp collection
+func (b *AppCatalogsRequestBuilder) TeamsApps() *AppCatalogsTeamsAppsCollectionRequestBuilder {
+ bb := &AppCatalogsTeamsAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsApps"
+ return bb
+}
+
+// AppCatalogsTeamsAppsCollectionRequestBuilder is request builder for TeamsApp collection
+type AppCatalogsTeamsAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsApp collection
+func (b *AppCatalogsTeamsAppsCollectionRequestBuilder) Request() *AppCatalogsTeamsAppsCollectionRequest {
+ return &AppCatalogsTeamsAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsApp item
+func (b *AppCatalogsTeamsAppsCollectionRequestBuilder) ID(id string) *TeamsAppRequestBuilder {
+ bb := &TeamsAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AppCatalogsTeamsAppsCollectionRequest is request for TeamsApp collection
+type AppCatalogsTeamsAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsApp collection
+func (r *AppCatalogsTeamsAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TeamsApp collection, max N pages
+func (r *AppCatalogsTeamsAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TeamsApp collection
+func (r *AppCatalogsTeamsAppsCollectionRequest) Get(ctx context.Context) ([]TeamsApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TeamsApp collection
+func (r *AppCatalogsTeamsAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsApp) (resObj *TeamsApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDevices returns request builder for AppVulnerabilityManagedDevice collection
+func (b *AppVulnerabilityTaskRequestBuilder) ManagedDevices() *AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder {
+ bb := &AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevices"
+ return bb
+}
+
+// AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder is request builder for AppVulnerabilityManagedDevice collection
+type AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppVulnerabilityManagedDevice collection
+func (b *AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder) Request() *AppVulnerabilityTaskManagedDevicesCollectionRequest {
+ return &AppVulnerabilityTaskManagedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppVulnerabilityManagedDevice item
+func (b *AppVulnerabilityTaskManagedDevicesCollectionRequestBuilder) ID(id string) *AppVulnerabilityManagedDeviceRequestBuilder {
+ bb := &AppVulnerabilityManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AppVulnerabilityTaskManagedDevicesCollectionRequest is request for AppVulnerabilityManagedDevice collection
+type AppVulnerabilityTaskManagedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppVulnerabilityManagedDevice collection
+func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppVulnerabilityManagedDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppVulnerabilityManagedDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppVulnerabilityManagedDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppVulnerabilityManagedDevice collection, max N pages
+func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]AppVulnerabilityManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppVulnerabilityManagedDevice collection
+func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Get(ctx context.Context) ([]AppVulnerabilityManagedDevice, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppVulnerabilityManagedDevice collection
+func (r *AppVulnerabilityTaskManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *AppVulnerabilityManagedDevice) (resObj *AppVulnerabilityManagedDevice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileApps returns request builder for AppVulnerabilityMobileApp collection
+func (b *AppVulnerabilityTaskRequestBuilder) MobileApps() *AppVulnerabilityTaskMobileAppsCollectionRequestBuilder {
+ bb := &AppVulnerabilityTaskMobileAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileApps"
+ return bb
+}
+
+// AppVulnerabilityTaskMobileAppsCollectionRequestBuilder is request builder for AppVulnerabilityMobileApp collection
+type AppVulnerabilityTaskMobileAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppVulnerabilityMobileApp collection
+func (b *AppVulnerabilityTaskMobileAppsCollectionRequestBuilder) Request() *AppVulnerabilityTaskMobileAppsCollectionRequest {
+ return &AppVulnerabilityTaskMobileAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppVulnerabilityMobileApp item
+func (b *AppVulnerabilityTaskMobileAppsCollectionRequestBuilder) ID(id string) *AppVulnerabilityMobileAppRequestBuilder {
+ bb := &AppVulnerabilityMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AppVulnerabilityTaskMobileAppsCollectionRequest is request for AppVulnerabilityMobileApp collection
+type AppVulnerabilityTaskMobileAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppVulnerabilityMobileApp collection
+func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppVulnerabilityMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppVulnerabilityMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppVulnerabilityMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppVulnerabilityMobileApp collection, max N pages
+func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) GetN(ctx context.Context, n int) ([]AppVulnerabilityMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppVulnerabilityMobileApp collection
+func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Get(ctx context.Context) ([]AppVulnerabilityMobileApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppVulnerabilityMobileApp collection
+func (r *AppVulnerabilityTaskMobileAppsCollectionRequest) Add(ctx context.Context, reqObj *AppVulnerabilityMobileApp) (resObj *AppVulnerabilityMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionApple.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApple.go
new file mode 100644
index 00000000..23bb5356
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApple.go
@@ -0,0 +1,120 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter undocumented
+type AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter struct {
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+}
+
+// Assignments returns request builder for AppleEnrollmentProfileAssignment collection
+func (b *AppleUserInitiatedEnrollmentProfileRequestBuilder) Assignments() *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder {
+ bb := &AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder is request builder for AppleEnrollmentProfileAssignment collection
+type AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppleEnrollmentProfileAssignment collection
+func (b *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder) Request() *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest {
+ return &AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppleEnrollmentProfileAssignment item
+func (b *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequestBuilder) ID(id string) *AppleEnrollmentProfileAssignmentRequestBuilder {
+ bb := &AppleEnrollmentProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest is request for AppleEnrollmentProfileAssignment collection
+type AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppleEnrollmentProfileAssignment collection
+func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppleEnrollmentProfileAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppleEnrollmentProfileAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppleEnrollmentProfileAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppleEnrollmentProfileAssignment collection, max N pages
+func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppleEnrollmentProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppleEnrollmentProfileAssignment collection
+func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppleEnrollmentProfileAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppleEnrollmentProfileAssignment collection
+func (r *AppleUserInitiatedEnrollmentProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppleEnrollmentProfileAssignment) (resObj *AppleEnrollmentProfileAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionApplication.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApplication.go
new file mode 100644
index 00000000..f3ad11aa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApplication.go
@@ -0,0 +1,368 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ApplicationAddKeyRequestParameter undocumented
+type ApplicationAddKeyRequestParameter struct {
+ // KeyCredential undocumented
+ KeyCredential *KeyCredential `json:"keyCredential,omitempty"`
+ // PasswordCredential undocumented
+ PasswordCredential *PasswordCredential `json:"passwordCredential,omitempty"`
+ // Proof undocumented
+ Proof *string `json:"proof,omitempty"`
+}
+
+// ApplicationAddPasswordRequestParameter undocumented
+type ApplicationAddPasswordRequestParameter struct {
+ // PasswordCredential undocumented
+ PasswordCredential *PasswordCredential `json:"passwordCredential,omitempty"`
+}
+
+// ApplicationRemoveKeyRequestParameter undocumented
+type ApplicationRemoveKeyRequestParameter struct {
+ // KeyID undocumented
+ KeyID *UUID `json:"keyId,omitempty"`
+ // Proof undocumented
+ Proof *string `json:"proof,omitempty"`
+}
+
+// ApplicationRemovePasswordRequestParameter undocumented
+type ApplicationRemovePasswordRequestParameter struct {
+ // KeyID undocumented
+ KeyID *UUID `json:"keyId,omitempty"`
+}
+
+// ApplicationTemplateInstantiateRequestParameter undocumented
+type ApplicationTemplateInstantiateRequestParameter struct {
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// CreatedOnBehalfOf is navigation property
+func (b *ApplicationRequestBuilder) CreatedOnBehalfOf() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdOnBehalfOf"
+ return bb
+}
+
+// ExtensionProperties returns request builder for ExtensionProperty collection
+func (b *ApplicationRequestBuilder) ExtensionProperties() *ApplicationExtensionPropertiesCollectionRequestBuilder {
+ bb := &ApplicationExtensionPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensionProperties"
+ return bb
+}
+
+// ApplicationExtensionPropertiesCollectionRequestBuilder is request builder for ExtensionProperty collection
+type ApplicationExtensionPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExtensionProperty collection
+func (b *ApplicationExtensionPropertiesCollectionRequestBuilder) Request() *ApplicationExtensionPropertiesCollectionRequest {
+ return &ApplicationExtensionPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExtensionProperty item
+func (b *ApplicationExtensionPropertiesCollectionRequestBuilder) ID(id string) *ExtensionPropertyRequestBuilder {
+ bb := &ExtensionPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApplicationExtensionPropertiesCollectionRequest is request for ExtensionProperty collection
+type ApplicationExtensionPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExtensionProperty collection
+func (r *ApplicationExtensionPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExtensionProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExtensionProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExtensionProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ExtensionProperty collection, max N pages
+func (r *ApplicationExtensionPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]ExtensionProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ExtensionProperty collection
+func (r *ApplicationExtensionPropertiesCollectionRequest) Get(ctx context.Context) ([]ExtensionProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ExtensionProperty collection
+func (r *ApplicationExtensionPropertiesCollectionRequest) Add(ctx context.Context, reqObj *ExtensionProperty) (resObj *ExtensionProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Owners returns request builder for DirectoryObject collection
+func (b *ApplicationRequestBuilder) Owners() *ApplicationOwnersCollectionRequestBuilder {
+ bb := &ApplicationOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/owners"
+ return bb
+}
+
+// ApplicationOwnersCollectionRequestBuilder is request builder for DirectoryObject collection
+type ApplicationOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ApplicationOwnersCollectionRequestBuilder) Request() *ApplicationOwnersCollectionRequest {
+ return &ApplicationOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ApplicationOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApplicationOwnersCollectionRequest is request for DirectoryObject collection
+type ApplicationOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ApplicationOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *ApplicationOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ApplicationOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ApplicationOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for DirectoryObject collection
+func (b *ApplicationRequestBuilder) Policies() *ApplicationPoliciesCollectionRequestBuilder {
+ bb := &ApplicationPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// ApplicationPoliciesCollectionRequestBuilder is request builder for DirectoryObject collection
+type ApplicationPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ApplicationPoliciesCollectionRequestBuilder) Request() *ApplicationPoliciesCollectionRequest {
+ return &ApplicationPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ApplicationPoliciesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApplicationPoliciesCollectionRequest is request for DirectoryObject collection
+type ApplicationPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ApplicationPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *ApplicationPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ApplicationPoliciesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ApplicationPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Synchronization is navigation property
+func (b *ApplicationRequestBuilder) Synchronization() *SynchronizationRequestBuilder {
+ bb := &SynchronizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/synchronization"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionApproval.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApproval.go
new file mode 100644
index 00000000..adb87ce2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionApproval.go
@@ -0,0 +1,522 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// BusinessFlows returns request builder for BusinessFlow collection
+func (b *ApprovalWorkflowProviderRequestBuilder) BusinessFlows() *ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/businessFlows"
+ return bb
+}
+
+// ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder is request builder for BusinessFlow collection
+type ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BusinessFlow collection
+func (b *ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder) Request() *ApprovalWorkflowProviderBusinessFlowsCollectionRequest {
+ return &ApprovalWorkflowProviderBusinessFlowsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BusinessFlow item
+func (b *ApprovalWorkflowProviderBusinessFlowsCollectionRequestBuilder) ID(id string) *BusinessFlowRequestBuilder {
+ bb := &BusinessFlowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderBusinessFlowsCollectionRequest is request for BusinessFlow collection
+type ApprovalWorkflowProviderBusinessFlowsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BusinessFlow, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BusinessFlow
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BusinessFlow
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BusinessFlow collection, max N pages
+func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) GetN(ctx context.Context, n int) ([]BusinessFlow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Get(ctx context.Context) ([]BusinessFlow, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsCollectionRequest) Add(ctx context.Context, reqObj *BusinessFlow) (resObj *BusinessFlow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// BusinessFlowsWithRequestsAwaitingMyDecision returns request builder for BusinessFlow collection
+func (b *ApprovalWorkflowProviderRequestBuilder) BusinessFlowsWithRequestsAwaitingMyDecision() *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/businessFlowsWithRequestsAwaitingMyDecision"
+ return bb
+}
+
+// ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder is request builder for BusinessFlow collection
+type ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BusinessFlow collection
+func (b *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder) Request() *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest {
+ return &ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BusinessFlow item
+func (b *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequestBuilder) ID(id string) *BusinessFlowRequestBuilder {
+ bb := &BusinessFlowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest is request for BusinessFlow collection
+type ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BusinessFlow, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BusinessFlow
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BusinessFlow
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BusinessFlow collection, max N pages
+func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) GetN(ctx context.Context, n int) ([]BusinessFlow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Get(ctx context.Context) ([]BusinessFlow, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BusinessFlow collection
+func (r *ApprovalWorkflowProviderBusinessFlowsWithRequestsAwaitingMyDecisionCollectionRequest) Add(ctx context.Context, reqObj *BusinessFlow) (resObj *BusinessFlow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PolicyTemplates returns request builder for GovernancePolicyTemplate collection
+func (b *ApprovalWorkflowProviderRequestBuilder) PolicyTemplates() *ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policyTemplates"
+ return bb
+}
+
+// ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder is request builder for GovernancePolicyTemplate collection
+type ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernancePolicyTemplate collection
+func (b *ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder) Request() *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest {
+ return &ApprovalWorkflowProviderPolicyTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernancePolicyTemplate item
+func (b *ApprovalWorkflowProviderPolicyTemplatesCollectionRequestBuilder) ID(id string) *GovernancePolicyTemplateRequestBuilder {
+ bb := &GovernancePolicyTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderPolicyTemplatesCollectionRequest is request for GovernancePolicyTemplate collection
+type ApprovalWorkflowProviderPolicyTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernancePolicyTemplate collection
+func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernancePolicyTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernancePolicyTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernancePolicyTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernancePolicyTemplate collection, max N pages
+func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]GovernancePolicyTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernancePolicyTemplate collection
+func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Get(ctx context.Context) ([]GovernancePolicyTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernancePolicyTemplate collection
+func (r *ApprovalWorkflowProviderPolicyTemplatesCollectionRequest) Add(ctx context.Context, reqObj *GovernancePolicyTemplate) (resObj *GovernancePolicyTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Requests returns request builder for RequestObject collection
+func (b *ApprovalWorkflowProviderRequestBuilder) Requests() *ApprovalWorkflowProviderRequestsCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/requests"
+ return bb
+}
+
+// ApprovalWorkflowProviderRequestsCollectionRequestBuilder is request builder for RequestObject collection
+type ApprovalWorkflowProviderRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RequestObject collection
+func (b *ApprovalWorkflowProviderRequestsCollectionRequestBuilder) Request() *ApprovalWorkflowProviderRequestsCollectionRequest {
+ return &ApprovalWorkflowProviderRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RequestObject item
+func (b *ApprovalWorkflowProviderRequestsCollectionRequestBuilder) ID(id string) *RequestObjectRequestBuilder {
+ bb := &RequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderRequestsCollectionRequest is request for RequestObject collection
+type ApprovalWorkflowProviderRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RequestObject collection, max N pages
+func (r *ApprovalWorkflowProviderRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]RequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Get(ctx context.Context) ([]RequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsCollectionRequest) Add(ctx context.Context, reqObj *RequestObject) (resObj *RequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RequestsAwaitingMyDecision returns request builder for RequestObject collection
+func (b *ApprovalWorkflowProviderRequestBuilder) RequestsAwaitingMyDecision() *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder {
+ bb := &ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/requestsAwaitingMyDecision"
+ return bb
+}
+
+// ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder is request builder for RequestObject collection
+type ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RequestObject collection
+func (b *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder) Request() *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest {
+ return &ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RequestObject item
+func (b *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequestBuilder) ID(id string) *RequestObjectRequestBuilder {
+ bb := &RequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest is request for RequestObject collection
+type ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RequestObject collection, max N pages
+func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) GetN(ctx context.Context, n int) ([]RequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Get(ctx context.Context) ([]RequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RequestObject collection
+func (r *ApprovalWorkflowProviderRequestsAwaitingMyDecisionCollectionRequest) Add(ctx context.Context, reqObj *RequestObject) (resObj *RequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAttachment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAttachment.go
new file mode 100644
index 00000000..c8ff09f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAttachment.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttachmentCollectionCreateUploadSessionRequestParameter undocumented
+type AttachmentCollectionCreateUploadSessionRequestParameter struct {
+ // AttachmentItem undocumented
+ AttachmentItem *AttachmentItem `json:"AttachmentItem,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionAudit.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAudit.go
new file mode 100644
index 00000000..ffc0fbe7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionAudit.go
@@ -0,0 +1,522 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DirectoryAudits returns request builder for DirectoryAudit collection
+func (b *AuditLogRootRequestBuilder) DirectoryAudits() *AuditLogRootDirectoryAuditsCollectionRequestBuilder {
+ bb := &AuditLogRootDirectoryAuditsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryAudits"
+ return bb
+}
+
+// AuditLogRootDirectoryAuditsCollectionRequestBuilder is request builder for DirectoryAudit collection
+type AuditLogRootDirectoryAuditsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryAudit collection
+func (b *AuditLogRootDirectoryAuditsCollectionRequestBuilder) Request() *AuditLogRootDirectoryAuditsCollectionRequest {
+ return &AuditLogRootDirectoryAuditsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryAudit item
+func (b *AuditLogRootDirectoryAuditsCollectionRequestBuilder) ID(id string) *DirectoryAuditRequestBuilder {
+ bb := &DirectoryAuditRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootDirectoryAuditsCollectionRequest is request for DirectoryAudit collection
+type AuditLogRootDirectoryAuditsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryAudit collection
+func (r *AuditLogRootDirectoryAuditsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryAudit, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryAudit
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryAudit
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryAudit collection, max N pages
+func (r *AuditLogRootDirectoryAuditsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryAudit, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryAudit collection
+func (r *AuditLogRootDirectoryAuditsCollectionRequest) Get(ctx context.Context) ([]DirectoryAudit, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryAudit collection
+func (r *AuditLogRootDirectoryAuditsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryAudit) (resObj *DirectoryAudit, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectoryProvisioning returns request builder for ProvisioningObjectSummary collection
+func (b *AuditLogRootRequestBuilder) DirectoryProvisioning() *AuditLogRootDirectoryProvisioningCollectionRequestBuilder {
+ bb := &AuditLogRootDirectoryProvisioningCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryProvisioning"
+ return bb
+}
+
+// AuditLogRootDirectoryProvisioningCollectionRequestBuilder is request builder for ProvisioningObjectSummary collection
+type AuditLogRootDirectoryProvisioningCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProvisioningObjectSummary collection
+func (b *AuditLogRootDirectoryProvisioningCollectionRequestBuilder) Request() *AuditLogRootDirectoryProvisioningCollectionRequest {
+ return &AuditLogRootDirectoryProvisioningCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProvisioningObjectSummary item
+func (b *AuditLogRootDirectoryProvisioningCollectionRequestBuilder) ID(id string) *ProvisioningObjectSummaryRequestBuilder {
+ bb := &ProvisioningObjectSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootDirectoryProvisioningCollectionRequest is request for ProvisioningObjectSummary collection
+type AuditLogRootDirectoryProvisioningCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProvisioningObjectSummary collection
+func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProvisioningObjectSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProvisioningObjectSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProvisioningObjectSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ProvisioningObjectSummary collection, max N pages
+func (r *AuditLogRootDirectoryProvisioningCollectionRequest) GetN(ctx context.Context, n int) ([]ProvisioningObjectSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ProvisioningObjectSummary collection
+func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Get(ctx context.Context) ([]ProvisioningObjectSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ProvisioningObjectSummary collection
+func (r *AuditLogRootDirectoryProvisioningCollectionRequest) Add(ctx context.Context, reqObj *ProvisioningObjectSummary) (resObj *ProvisioningObjectSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Provisioning returns request builder for ProvisioningObjectSummary collection
+func (b *AuditLogRootRequestBuilder) Provisioning() *AuditLogRootProvisioningCollectionRequestBuilder {
+ bb := &AuditLogRootProvisioningCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/provisioning"
+ return bb
+}
+
+// AuditLogRootProvisioningCollectionRequestBuilder is request builder for ProvisioningObjectSummary collection
+type AuditLogRootProvisioningCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProvisioningObjectSummary collection
+func (b *AuditLogRootProvisioningCollectionRequestBuilder) Request() *AuditLogRootProvisioningCollectionRequest {
+ return &AuditLogRootProvisioningCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProvisioningObjectSummary item
+func (b *AuditLogRootProvisioningCollectionRequestBuilder) ID(id string) *ProvisioningObjectSummaryRequestBuilder {
+ bb := &ProvisioningObjectSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootProvisioningCollectionRequest is request for ProvisioningObjectSummary collection
+type AuditLogRootProvisioningCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProvisioningObjectSummary collection
+func (r *AuditLogRootProvisioningCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProvisioningObjectSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProvisioningObjectSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProvisioningObjectSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ProvisioningObjectSummary collection, max N pages
+func (r *AuditLogRootProvisioningCollectionRequest) GetN(ctx context.Context, n int) ([]ProvisioningObjectSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ProvisioningObjectSummary collection
+func (r *AuditLogRootProvisioningCollectionRequest) Get(ctx context.Context) ([]ProvisioningObjectSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ProvisioningObjectSummary collection
+func (r *AuditLogRootProvisioningCollectionRequest) Add(ctx context.Context, reqObj *ProvisioningObjectSummary) (resObj *ProvisioningObjectSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RestrictedSignIns returns request builder for RestrictedSignIn collection
+func (b *AuditLogRootRequestBuilder) RestrictedSignIns() *AuditLogRootRestrictedSignInsCollectionRequestBuilder {
+ bb := &AuditLogRootRestrictedSignInsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/restrictedSignIns"
+ return bb
+}
+
+// AuditLogRootRestrictedSignInsCollectionRequestBuilder is request builder for RestrictedSignIn collection
+type AuditLogRootRestrictedSignInsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RestrictedSignIn collection
+func (b *AuditLogRootRestrictedSignInsCollectionRequestBuilder) Request() *AuditLogRootRestrictedSignInsCollectionRequest {
+ return &AuditLogRootRestrictedSignInsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RestrictedSignIn item
+func (b *AuditLogRootRestrictedSignInsCollectionRequestBuilder) ID(id string) *RestrictedSignInRequestBuilder {
+ bb := &RestrictedSignInRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootRestrictedSignInsCollectionRequest is request for RestrictedSignIn collection
+type AuditLogRootRestrictedSignInsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RestrictedSignIn collection
+func (r *AuditLogRootRestrictedSignInsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RestrictedSignIn, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RestrictedSignIn
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RestrictedSignIn
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RestrictedSignIn collection, max N pages
+func (r *AuditLogRootRestrictedSignInsCollectionRequest) GetN(ctx context.Context, n int) ([]RestrictedSignIn, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RestrictedSignIn collection
+func (r *AuditLogRootRestrictedSignInsCollectionRequest) Get(ctx context.Context) ([]RestrictedSignIn, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RestrictedSignIn collection
+func (r *AuditLogRootRestrictedSignInsCollectionRequest) Add(ctx context.Context, reqObj *RestrictedSignIn) (resObj *RestrictedSignIn, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SignIns returns request builder for SignIn collection
+func (b *AuditLogRootRequestBuilder) SignIns() *AuditLogRootSignInsCollectionRequestBuilder {
+ bb := &AuditLogRootSignInsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/signIns"
+ return bb
+}
+
+// AuditLogRootSignInsCollectionRequestBuilder is request builder for SignIn collection
+type AuditLogRootSignInsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SignIn collection
+func (b *AuditLogRootSignInsCollectionRequestBuilder) Request() *AuditLogRootSignInsCollectionRequest {
+ return &AuditLogRootSignInsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SignIn item
+func (b *AuditLogRootSignInsCollectionRequestBuilder) ID(id string) *SignInRequestBuilder {
+ bb := &SignInRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// AuditLogRootSignInsCollectionRequest is request for SignIn collection
+type AuditLogRootSignInsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SignIn collection
+func (r *AuditLogRootSignInsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SignIn, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SignIn
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SignIn
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SignIn collection, max N pages
+func (r *AuditLogRootSignInsCollectionRequest) GetN(ctx context.Context, n int) ([]SignIn, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SignIn collection
+func (r *AuditLogRootSignInsCollectionRequest) Get(ctx context.Context) ([]SignIn, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SignIn collection
+func (r *AuditLogRootSignInsCollectionRequest) Add(ctx context.Context, reqObj *SignIn) (resObj *SignIn, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionBase.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBase.go
new file mode 100644
index 00000000..62cea840
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBase.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CreatedByUser is navigation property
+func (b *BaseItemRequestBuilder) CreatedByUser() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdByUser"
+ return bb
+}
+
+// LastModifiedByUser is navigation property
+func (b *BaseItemRequestBuilder) LastModifiedByUser() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/lastModifiedByUser"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionBooking.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBooking.go
new file mode 100644
index 00000000..be31ec98
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBooking.go
@@ -0,0 +1,536 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// BookingAppointmentCancelRequestParameter undocumented
+type BookingAppointmentCancelRequestParameter struct {
+ // CancellationMessage undocumented
+ CancellationMessage *string `json:"cancellationMessage,omitempty"`
+}
+
+// BookingBusinessPublishRequestParameter undocumented
+type BookingBusinessPublishRequestParameter struct {
+}
+
+// BookingBusinessUnpublishRequestParameter undocumented
+type BookingBusinessUnpublishRequestParameter struct {
+}
+
+// Appointments returns request builder for BookingAppointment collection
+func (b *BookingBusinessRequestBuilder) Appointments() *BookingBusinessAppointmentsCollectionRequestBuilder {
+ bb := &BookingBusinessAppointmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appointments"
+ return bb
+}
+
+// BookingBusinessAppointmentsCollectionRequestBuilder is request builder for BookingAppointment collection
+type BookingBusinessAppointmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingAppointment collection
+func (b *BookingBusinessAppointmentsCollectionRequestBuilder) Request() *BookingBusinessAppointmentsCollectionRequest {
+ return &BookingBusinessAppointmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingAppointment item
+func (b *BookingBusinessAppointmentsCollectionRequestBuilder) ID(id string) *BookingAppointmentRequestBuilder {
+ bb := &BookingAppointmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessAppointmentsCollectionRequest is request for BookingAppointment collection
+type BookingBusinessAppointmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingAppointment collection
+func (r *BookingBusinessAppointmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingAppointment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingAppointment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingAppointment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BookingAppointment collection, max N pages
+func (r *BookingBusinessAppointmentsCollectionRequest) GetN(ctx context.Context, n int) ([]BookingAppointment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BookingAppointment collection
+func (r *BookingBusinessAppointmentsCollectionRequest) Get(ctx context.Context) ([]BookingAppointment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BookingAppointment collection
+func (r *BookingBusinessAppointmentsCollectionRequest) Add(ctx context.Context, reqObj *BookingAppointment) (resObj *BookingAppointment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CalendarView returns request builder for BookingAppointment collection
+func (b *BookingBusinessRequestBuilder) CalendarView() *BookingBusinessCalendarViewCollectionRequestBuilder {
+ bb := &BookingBusinessCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarView"
+ return bb
+}
+
+// BookingBusinessCalendarViewCollectionRequestBuilder is request builder for BookingAppointment collection
+type BookingBusinessCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingAppointment collection
+func (b *BookingBusinessCalendarViewCollectionRequestBuilder) Request() *BookingBusinessCalendarViewCollectionRequest {
+ return &BookingBusinessCalendarViewCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingAppointment item
+func (b *BookingBusinessCalendarViewCollectionRequestBuilder) ID(id string) *BookingAppointmentRequestBuilder {
+ bb := &BookingAppointmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessCalendarViewCollectionRequest is request for BookingAppointment collection
+type BookingBusinessCalendarViewCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingAppointment collection
+func (r *BookingBusinessCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingAppointment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingAppointment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingAppointment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BookingAppointment collection, max N pages
+func (r *BookingBusinessCalendarViewCollectionRequest) GetN(ctx context.Context, n int) ([]BookingAppointment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BookingAppointment collection
+func (r *BookingBusinessCalendarViewCollectionRequest) Get(ctx context.Context) ([]BookingAppointment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BookingAppointment collection
+func (r *BookingBusinessCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *BookingAppointment) (resObj *BookingAppointment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Customers returns request builder for BookingCustomer collection
+func (b *BookingBusinessRequestBuilder) Customers() *BookingBusinessCustomersCollectionRequestBuilder {
+ bb := &BookingBusinessCustomersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customers"
+ return bb
+}
+
+// BookingBusinessCustomersCollectionRequestBuilder is request builder for BookingCustomer collection
+type BookingBusinessCustomersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingCustomer collection
+func (b *BookingBusinessCustomersCollectionRequestBuilder) Request() *BookingBusinessCustomersCollectionRequest {
+ return &BookingBusinessCustomersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingCustomer item
+func (b *BookingBusinessCustomersCollectionRequestBuilder) ID(id string) *BookingCustomerRequestBuilder {
+ bb := &BookingCustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessCustomersCollectionRequest is request for BookingCustomer collection
+type BookingBusinessCustomersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingCustomer collection
+func (r *BookingBusinessCustomersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingCustomer, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingCustomer
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingCustomer
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BookingCustomer collection, max N pages
+func (r *BookingBusinessCustomersCollectionRequest) GetN(ctx context.Context, n int) ([]BookingCustomer, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BookingCustomer collection
+func (r *BookingBusinessCustomersCollectionRequest) Get(ctx context.Context) ([]BookingCustomer, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BookingCustomer collection
+func (r *BookingBusinessCustomersCollectionRequest) Add(ctx context.Context, reqObj *BookingCustomer) (resObj *BookingCustomer, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Services returns request builder for BookingService collection
+func (b *BookingBusinessRequestBuilder) Services() *BookingBusinessServicesCollectionRequestBuilder {
+ bb := &BookingBusinessServicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/services"
+ return bb
+}
+
+// BookingBusinessServicesCollectionRequestBuilder is request builder for BookingService collection
+type BookingBusinessServicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingService collection
+func (b *BookingBusinessServicesCollectionRequestBuilder) Request() *BookingBusinessServicesCollectionRequest {
+ return &BookingBusinessServicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingService item
+func (b *BookingBusinessServicesCollectionRequestBuilder) ID(id string) *BookingServiceRequestBuilder {
+ bb := &BookingServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessServicesCollectionRequest is request for BookingService collection
+type BookingBusinessServicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingService collection
+func (r *BookingBusinessServicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingService, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingService
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingService
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BookingService collection, max N pages
+func (r *BookingBusinessServicesCollectionRequest) GetN(ctx context.Context, n int) ([]BookingService, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BookingService collection
+func (r *BookingBusinessServicesCollectionRequest) Get(ctx context.Context) ([]BookingService, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BookingService collection
+func (r *BookingBusinessServicesCollectionRequest) Add(ctx context.Context, reqObj *BookingService) (resObj *BookingService, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// StaffMembers returns request builder for BookingStaffMember collection
+func (b *BookingBusinessRequestBuilder) StaffMembers() *BookingBusinessStaffMembersCollectionRequestBuilder {
+ bb := &BookingBusinessStaffMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/staffMembers"
+ return bb
+}
+
+// BookingBusinessStaffMembersCollectionRequestBuilder is request builder for BookingStaffMember collection
+type BookingBusinessStaffMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingStaffMember collection
+func (b *BookingBusinessStaffMembersCollectionRequestBuilder) Request() *BookingBusinessStaffMembersCollectionRequest {
+ return &BookingBusinessStaffMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingStaffMember item
+func (b *BookingBusinessStaffMembersCollectionRequestBuilder) ID(id string) *BookingStaffMemberRequestBuilder {
+ bb := &BookingStaffMemberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// BookingBusinessStaffMembersCollectionRequest is request for BookingStaffMember collection
+type BookingBusinessStaffMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingStaffMember collection
+func (r *BookingBusinessStaffMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingStaffMember, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingStaffMember
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingStaffMember
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BookingStaffMember collection, max N pages
+func (r *BookingBusinessStaffMembersCollectionRequest) GetN(ctx context.Context, n int) ([]BookingStaffMember, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BookingStaffMember collection
+func (r *BookingBusinessStaffMembersCollectionRequest) Get(ctx context.Context) ([]BookingStaffMember, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BookingStaffMember collection
+func (r *BookingBusinessStaffMembersCollectionRequest) Add(ctx context.Context, reqObj *BookingStaffMember) (resObj *BookingStaffMember, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionBusiness.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBusiness.go
new file mode 100644
index 00000000..a2fe7bb3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionBusiness.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BusinessFlowRecordDecisionsRequestParameter undocumented
+type BusinessFlowRecordDecisionsRequestParameter struct {
+ // ReviewResult undocumented
+ ReviewResult *string `json:"reviewResult,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go
new file mode 100644
index 00000000..231c6b74
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCalendar.go
@@ -0,0 +1,640 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CalendarGetScheduleRequestParameter undocumented
+type CalendarGetScheduleRequestParameter struct {
+ // Schedules undocumented
+ Schedules []string `json:"Schedules,omitempty"`
+ // EndTime undocumented
+ EndTime *DateTimeTimeZone `json:"EndTime,omitempty"`
+ // StartTime undocumented
+ StartTime *DateTimeTimeZone `json:"StartTime,omitempty"`
+ // AvailabilityViewInterval undocumented
+ AvailabilityViewInterval *int `json:"AvailabilityViewInterval,omitempty"`
+}
+
+// CalendarSharingMessageAcceptRequestParameter undocumented
+type CalendarSharingMessageAcceptRequestParameter struct {
+}
+
+// CalendarPermissions returns request builder for CalendarPermission collection
+func (b *CalendarRequestBuilder) CalendarPermissions() *CalendarCalendarPermissionsCollectionRequestBuilder {
+ bb := &CalendarCalendarPermissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarPermissions"
+ return bb
+}
+
+// CalendarCalendarPermissionsCollectionRequestBuilder is request builder for CalendarPermission collection
+type CalendarCalendarPermissionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CalendarPermission collection
+func (b *CalendarCalendarPermissionsCollectionRequestBuilder) Request() *CalendarCalendarPermissionsCollectionRequest {
+ return &CalendarCalendarPermissionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CalendarPermission item
+func (b *CalendarCalendarPermissionsCollectionRequestBuilder) ID(id string) *CalendarPermissionRequestBuilder {
+ bb := &CalendarPermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarCalendarPermissionsCollectionRequest is request for CalendarPermission collection
+type CalendarCalendarPermissionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CalendarPermission collection
+func (r *CalendarCalendarPermissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CalendarPermission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CalendarPermission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CalendarPermission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CalendarPermission collection, max N pages
+func (r *CalendarCalendarPermissionsCollectionRequest) GetN(ctx context.Context, n int) ([]CalendarPermission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CalendarPermission collection
+func (r *CalendarCalendarPermissionsCollectionRequest) Get(ctx context.Context) ([]CalendarPermission, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CalendarPermission collection
+func (r *CalendarCalendarPermissionsCollectionRequest) Add(ctx context.Context, reqObj *CalendarPermission) (resObj *CalendarPermission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CalendarView returns request builder for Event collection
+func (b *CalendarRequestBuilder) CalendarView() *CalendarCalendarViewCollectionRequestBuilder {
+ bb := &CalendarCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarView"
+ return bb
+}
+
+// CalendarCalendarViewCollectionRequestBuilder is request builder for Event collection
+type CalendarCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *CalendarCalendarViewCollectionRequestBuilder) Request() *CalendarCalendarViewCollectionRequest {
+ return &CalendarCalendarViewCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *CalendarCalendarViewCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarCalendarViewCollectionRequest is request for Event collection
+type CalendarCalendarViewCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *CalendarCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Event collection, max N pages
+func (r *CalendarCalendarViewCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Event collection
+func (r *CalendarCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Event collection
+func (r *CalendarCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Events returns request builder for Event collection
+func (b *CalendarRequestBuilder) Events() *CalendarEventsCollectionRequestBuilder {
+ bb := &CalendarEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/events"
+ return bb
+}
+
+// CalendarEventsCollectionRequestBuilder is request builder for Event collection
+type CalendarEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *CalendarEventsCollectionRequestBuilder) Request() *CalendarEventsCollectionRequest {
+ return &CalendarEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *CalendarEventsCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarEventsCollectionRequest is request for Event collection
+type CalendarEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *CalendarEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Event collection, max N pages
+func (r *CalendarEventsCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Event collection
+func (r *CalendarEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Event collection
+func (r *CalendarEventsCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *CalendarRequestBuilder) MultiValueExtendedProperties() *CalendarMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &CalendarMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// CalendarMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type CalendarMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *CalendarMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *CalendarMultiValueExtendedPropertiesCollectionRequest {
+ return &CalendarMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *CalendarMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type CalendarMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages
+func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *CalendarMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *CalendarRequestBuilder) SingleValueExtendedProperties() *CalendarSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &CalendarSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// CalendarSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type CalendarSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *CalendarSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *CalendarSingleValueExtendedPropertiesCollectionRequest {
+ return &CalendarSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *CalendarSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type CalendarSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages
+func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *CalendarSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Calendars returns request builder for Calendar collection
+func (b *CalendarGroupRequestBuilder) Calendars() *CalendarGroupCalendarsCollectionRequestBuilder {
+ bb := &CalendarGroupCalendarsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendars"
+ return bb
+}
+
+// CalendarGroupCalendarsCollectionRequestBuilder is request builder for Calendar collection
+type CalendarGroupCalendarsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Calendar collection
+func (b *CalendarGroupCalendarsCollectionRequestBuilder) Request() *CalendarGroupCalendarsCollectionRequest {
+ return &CalendarGroupCalendarsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Calendar item
+func (b *CalendarGroupCalendarsCollectionRequestBuilder) ID(id string) *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CalendarGroupCalendarsCollectionRequest is request for Calendar collection
+type CalendarGroupCalendarsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Calendar collection
+func (r *CalendarGroupCalendarsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Calendar, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Calendar
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Calendar
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Calendar collection, max N pages
+func (r *CalendarGroupCalendarsCollectionRequest) GetN(ctx context.Context, n int) ([]Calendar, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Calendar collection
+func (r *CalendarGroupCalendarsCollectionRequest) Get(ctx context.Context) ([]Calendar, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Calendar collection
+func (r *CalendarGroupCalendarsCollectionRequest) Add(ctx context.Context, reqObj *Calendar) (resObj *Calendar, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCall.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCall.go
new file mode 100644
index 00000000..cb921f23
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCall.go
@@ -0,0 +1,454 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CallAnswerRequestParameter undocumented
+type CallAnswerRequestParameter struct {
+ // CallbackURI undocumented
+ CallbackURI *string `json:"callbackUri,omitempty"`
+ // MediaConfig undocumented
+ MediaConfig *MediaConfig `json:"mediaConfig,omitempty"`
+ // AcceptedModalities undocumented
+ AcceptedModalities []Modality `json:"acceptedModalities,omitempty"`
+}
+
+// CallCancelMediaProcessingRequestParameter undocumented
+type CallCancelMediaProcessingRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallChangeScreenSharingRoleRequestParameter undocumented
+type CallChangeScreenSharingRoleRequestParameter struct {
+ // Role undocumented
+ Role *ScreenSharingRole `json:"role,omitempty"`
+}
+
+// CallKeepAliveRequestParameter undocumented
+type CallKeepAliveRequestParameter struct {
+}
+
+// CallMuteRequestParameter undocumented
+type CallMuteRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallPlayPromptRequestParameter undocumented
+type CallPlayPromptRequestParameter struct {
+ // Prompts undocumented
+ Prompts []Prompt `json:"prompts,omitempty"`
+ // Loop undocumented
+ Loop *bool `json:"loop,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallRecordRequestParameter undocumented
+type CallRecordRequestParameter struct {
+ // Prompts undocumented
+ Prompts []Prompt `json:"prompts,omitempty"`
+ // BargeInAllowed undocumented
+ BargeInAllowed *bool `json:"bargeInAllowed,omitempty"`
+ // InitialSilenceTimeoutInSeconds undocumented
+ InitialSilenceTimeoutInSeconds *int `json:"initialSilenceTimeoutInSeconds,omitempty"`
+ // MaxSilenceTimeoutInSeconds undocumented
+ MaxSilenceTimeoutInSeconds *int `json:"maxSilenceTimeoutInSeconds,omitempty"`
+ // MaxRecordDurationInSeconds undocumented
+ MaxRecordDurationInSeconds *int `json:"maxRecordDurationInSeconds,omitempty"`
+ // PlayBeep undocumented
+ PlayBeep *bool `json:"playBeep,omitempty"`
+ // StreamWhileRecording undocumented
+ StreamWhileRecording *bool `json:"streamWhileRecording,omitempty"`
+ // StopTones undocumented
+ StopTones []string `json:"stopTones,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallRecordResponseRequestParameter undocumented
+type CallRecordResponseRequestParameter struct {
+ // Prompts undocumented
+ Prompts []Prompt `json:"prompts,omitempty"`
+ // BargeInAllowed undocumented
+ BargeInAllowed *bool `json:"bargeInAllowed,omitempty"`
+ // InitialSilenceTimeoutInSeconds undocumented
+ InitialSilenceTimeoutInSeconds *int `json:"initialSilenceTimeoutInSeconds,omitempty"`
+ // MaxSilenceTimeoutInSeconds undocumented
+ MaxSilenceTimeoutInSeconds *int `json:"maxSilenceTimeoutInSeconds,omitempty"`
+ // MaxRecordDurationInSeconds undocumented
+ MaxRecordDurationInSeconds *int `json:"maxRecordDurationInSeconds,omitempty"`
+ // PlayBeep undocumented
+ PlayBeep *bool `json:"playBeep,omitempty"`
+ // StreamWhileRecording undocumented
+ StreamWhileRecording *bool `json:"streamWhileRecording,omitempty"`
+ // StopTones undocumented
+ StopTones []string `json:"stopTones,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallRedirectRequestParameter undocumented
+type CallRedirectRequestParameter struct {
+ // Targets undocumented
+ Targets []InvitationParticipantInfo `json:"targets,omitempty"`
+ // TargetDisposition undocumented
+ TargetDisposition *CallDisposition `json:"targetDisposition,omitempty"`
+ // Timeout undocumented
+ Timeout *int `json:"timeout,omitempty"`
+ // MaskCallee undocumented
+ MaskCallee *bool `json:"maskCallee,omitempty"`
+ // MaskCaller undocumented
+ MaskCaller *bool `json:"maskCaller,omitempty"`
+ // CallbackURI undocumented
+ CallbackURI *string `json:"callbackUri,omitempty"`
+}
+
+// CallRejectRequestParameter undocumented
+type CallRejectRequestParameter struct {
+ // Reason undocumented
+ Reason *RejectReason `json:"reason,omitempty"`
+ // CallbackURI undocumented
+ CallbackURI *string `json:"callbackUri,omitempty"`
+}
+
+// CallSubscribeToToneRequestParameter undocumented
+type CallSubscribeToToneRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallTransferRequestParameter undocumented
+type CallTransferRequestParameter struct {
+ // TransferTarget undocumented
+ TransferTarget *InvitationParticipantInfo `json:"transferTarget,omitempty"`
+}
+
+// CallUnmuteRequestParameter undocumented
+type CallUnmuteRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// CallUpdateRecordingStatusRequestParameter undocumented
+type CallUpdateRecordingStatusRequestParameter struct {
+ // Status undocumented
+ Status *RecordingStatus `json:"status,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// AudioRoutingGroups returns request builder for AudioRoutingGroup collection
+func (b *CallRequestBuilder) AudioRoutingGroups() *CallAudioRoutingGroupsCollectionRequestBuilder {
+ bb := &CallAudioRoutingGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/audioRoutingGroups"
+ return bb
+}
+
+// CallAudioRoutingGroupsCollectionRequestBuilder is request builder for AudioRoutingGroup collection
+type CallAudioRoutingGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AudioRoutingGroup collection
+func (b *CallAudioRoutingGroupsCollectionRequestBuilder) Request() *CallAudioRoutingGroupsCollectionRequest {
+ return &CallAudioRoutingGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AudioRoutingGroup item
+func (b *CallAudioRoutingGroupsCollectionRequestBuilder) ID(id string) *AudioRoutingGroupRequestBuilder {
+ bb := &AudioRoutingGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CallAudioRoutingGroupsCollectionRequest is request for AudioRoutingGroup collection
+type CallAudioRoutingGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AudioRoutingGroup collection
+func (r *CallAudioRoutingGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AudioRoutingGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AudioRoutingGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AudioRoutingGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AudioRoutingGroup collection, max N pages
+func (r *CallAudioRoutingGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]AudioRoutingGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AudioRoutingGroup collection
+func (r *CallAudioRoutingGroupsCollectionRequest) Get(ctx context.Context) ([]AudioRoutingGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AudioRoutingGroup collection
+func (r *CallAudioRoutingGroupsCollectionRequest) Add(ctx context.Context, reqObj *AudioRoutingGroup) (resObj *AudioRoutingGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for CommsOperation collection
+func (b *CallRequestBuilder) Operations() *CallOperationsCollectionRequestBuilder {
+ bb := &CallOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// CallOperationsCollectionRequestBuilder is request builder for CommsOperation collection
+type CallOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CommsOperation collection
+func (b *CallOperationsCollectionRequestBuilder) Request() *CallOperationsCollectionRequest {
+ return &CallOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CommsOperation item
+func (b *CallOperationsCollectionRequestBuilder) ID(id string) *CommsOperationRequestBuilder {
+ bb := &CommsOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CallOperationsCollectionRequest is request for CommsOperation collection
+type CallOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CommsOperation collection
+func (r *CallOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CommsOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CommsOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CommsOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CommsOperation collection, max N pages
+func (r *CallOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]CommsOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CommsOperation collection
+func (r *CallOperationsCollectionRequest) Get(ctx context.Context) ([]CommsOperation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CommsOperation collection
+func (r *CallOperationsCollectionRequest) Add(ctx context.Context, reqObj *CommsOperation) (resObj *CommsOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Participants returns request builder for Participant collection
+func (b *CallRequestBuilder) Participants() *CallParticipantsCollectionRequestBuilder {
+ bb := &CallParticipantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/participants"
+ return bb
+}
+
+// CallParticipantsCollectionRequestBuilder is request builder for Participant collection
+type CallParticipantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Participant collection
+func (b *CallParticipantsCollectionRequestBuilder) Request() *CallParticipantsCollectionRequest {
+ return &CallParticipantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Participant item
+func (b *CallParticipantsCollectionRequestBuilder) ID(id string) *ParticipantRequestBuilder {
+ bb := &ParticipantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CallParticipantsCollectionRequest is request for Participant collection
+type CallParticipantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Participant collection
+func (r *CallParticipantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Participant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Participant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Participant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Participant collection, max N pages
+func (r *CallParticipantsCollectionRequest) GetN(ctx context.Context, n int) ([]Participant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Participant collection
+func (r *CallParticipantsCollectionRequest) Get(ctx context.Context) ([]Participant, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Participant collection
+func (r *CallParticipantsCollectionRequest) Add(ctx context.Context, reqObj *Participant) (resObj *Participant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionChannel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionChannel.go
new file mode 100644
index 00000000..e6e939b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionChannel.go
@@ -0,0 +1,325 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// FilesFolder is navigation property
+func (b *ChannelRequestBuilder) FilesFolder() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/filesFolder"
+ return bb
+}
+
+// Members returns request builder for ConversationMember collection
+func (b *ChannelRequestBuilder) Members() *ChannelMembersCollectionRequestBuilder {
+ bb := &ChannelMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// ChannelMembersCollectionRequestBuilder is request builder for ConversationMember collection
+type ChannelMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConversationMember collection
+func (b *ChannelMembersCollectionRequestBuilder) Request() *ChannelMembersCollectionRequest {
+ return &ChannelMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConversationMember item
+func (b *ChannelMembersCollectionRequestBuilder) ID(id string) *ConversationMemberRequestBuilder {
+ bb := &ConversationMemberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChannelMembersCollectionRequest is request for ConversationMember collection
+type ChannelMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConversationMember collection
+func (r *ChannelMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConversationMember, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConversationMember
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConversationMember
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ConversationMember collection, max N pages
+func (r *ChannelMembersCollectionRequest) GetN(ctx context.Context, n int) ([]ConversationMember, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ConversationMember collection
+func (r *ChannelMembersCollectionRequest) Get(ctx context.Context) ([]ConversationMember, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ConversationMember collection
+func (r *ChannelMembersCollectionRequest) Add(ctx context.Context, reqObj *ConversationMember) (resObj *ConversationMember, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Messages returns request builder for ChatMessage collection
+func (b *ChannelRequestBuilder) Messages() *ChannelMessagesCollectionRequestBuilder {
+ bb := &ChannelMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messages"
+ return bb
+}
+
+// ChannelMessagesCollectionRequestBuilder is request builder for ChatMessage collection
+type ChannelMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ChatMessage collection
+func (b *ChannelMessagesCollectionRequestBuilder) Request() *ChannelMessagesCollectionRequest {
+ return &ChannelMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ChatMessage item
+func (b *ChannelMessagesCollectionRequestBuilder) ID(id string) *ChatMessageRequestBuilder {
+ bb := &ChatMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChannelMessagesCollectionRequest is request for ChatMessage collection
+type ChannelMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ChatMessage collection
+func (r *ChannelMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ChatMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ChatMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ChatMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ChatMessage collection, max N pages
+func (r *ChannelMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]ChatMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ChatMessage collection
+func (r *ChannelMessagesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ChatMessage collection
+func (r *ChannelMessagesCollectionRequest) Add(ctx context.Context, reqObj *ChatMessage) (resObj *ChatMessage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tabs returns request builder for TeamsTab collection
+func (b *ChannelRequestBuilder) Tabs() *ChannelTabsCollectionRequestBuilder {
+ bb := &ChannelTabsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tabs"
+ return bb
+}
+
+// ChannelTabsCollectionRequestBuilder is request builder for TeamsTab collection
+type ChannelTabsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsTab collection
+func (b *ChannelTabsCollectionRequestBuilder) Request() *ChannelTabsCollectionRequest {
+ return &ChannelTabsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsTab item
+func (b *ChannelTabsCollectionRequestBuilder) ID(id string) *TeamsTabRequestBuilder {
+ bb := &TeamsTabRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChannelTabsCollectionRequest is request for TeamsTab collection
+type ChannelTabsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsTab collection
+func (r *ChannelTabsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsTab, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsTab
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsTab
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TeamsTab collection, max N pages
+func (r *ChannelTabsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsTab, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TeamsTab collection
+func (r *ChannelTabsCollectionRequest) Get(ctx context.Context) ([]TeamsTab, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TeamsTab collection
+func (r *ChannelTabsCollectionRequest) Add(ctx context.Context, reqObj *TeamsTab) (resObj *TeamsTab, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionChat.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionChat.go
new file mode 100644
index 00000000..95bef3c7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionChat.go
@@ -0,0 +1,522 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// InstalledApps returns request builder for TeamsAppInstallation collection
+func (b *ChatRequestBuilder) InstalledApps() *ChatInstalledAppsCollectionRequestBuilder {
+ bb := &ChatInstalledAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installedApps"
+ return bb
+}
+
+// ChatInstalledAppsCollectionRequestBuilder is request builder for TeamsAppInstallation collection
+type ChatInstalledAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAppInstallation collection
+func (b *ChatInstalledAppsCollectionRequestBuilder) Request() *ChatInstalledAppsCollectionRequest {
+ return &ChatInstalledAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAppInstallation item
+func (b *ChatInstalledAppsCollectionRequestBuilder) ID(id string) *TeamsAppInstallationRequestBuilder {
+ bb := &TeamsAppInstallationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatInstalledAppsCollectionRequest is request for TeamsAppInstallation collection
+type ChatInstalledAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAppInstallation collection
+func (r *ChatInstalledAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAppInstallation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAppInstallation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAppInstallation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TeamsAppInstallation collection, max N pages
+func (r *ChatInstalledAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAppInstallation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TeamsAppInstallation collection
+func (r *ChatInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TeamsAppInstallation collection
+func (r *ChatInstalledAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppInstallation) (resObj *TeamsAppInstallation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Members returns request builder for ConversationMember collection
+func (b *ChatRequestBuilder) Members() *ChatMembersCollectionRequestBuilder {
+ bb := &ChatMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// ChatMembersCollectionRequestBuilder is request builder for ConversationMember collection
+type ChatMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConversationMember collection
+func (b *ChatMembersCollectionRequestBuilder) Request() *ChatMembersCollectionRequest {
+ return &ChatMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConversationMember item
+func (b *ChatMembersCollectionRequestBuilder) ID(id string) *ConversationMemberRequestBuilder {
+ bb := &ConversationMemberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatMembersCollectionRequest is request for ConversationMember collection
+type ChatMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConversationMember collection
+func (r *ChatMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConversationMember, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConversationMember
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConversationMember
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ConversationMember collection, max N pages
+func (r *ChatMembersCollectionRequest) GetN(ctx context.Context, n int) ([]ConversationMember, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ConversationMember collection
+func (r *ChatMembersCollectionRequest) Get(ctx context.Context) ([]ConversationMember, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ConversationMember collection
+func (r *ChatMembersCollectionRequest) Add(ctx context.Context, reqObj *ConversationMember) (resObj *ConversationMember, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Messages returns request builder for ChatMessage collection
+func (b *ChatRequestBuilder) Messages() *ChatMessagesCollectionRequestBuilder {
+ bb := &ChatMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messages"
+ return bb
+}
+
+// ChatMessagesCollectionRequestBuilder is request builder for ChatMessage collection
+type ChatMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ChatMessage collection
+func (b *ChatMessagesCollectionRequestBuilder) Request() *ChatMessagesCollectionRequest {
+ return &ChatMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ChatMessage item
+func (b *ChatMessagesCollectionRequestBuilder) ID(id string) *ChatMessageRequestBuilder {
+ bb := &ChatMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatMessagesCollectionRequest is request for ChatMessage collection
+type ChatMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ChatMessage collection
+func (r *ChatMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ChatMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ChatMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ChatMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ChatMessage collection, max N pages
+func (r *ChatMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]ChatMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ChatMessage collection
+func (r *ChatMessagesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ChatMessage collection
+func (r *ChatMessagesCollectionRequest) Add(ctx context.Context, reqObj *ChatMessage) (resObj *ChatMessage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// HostedContents returns request builder for ChatMessageHostedContent collection
+func (b *ChatMessageRequestBuilder) HostedContents() *ChatMessageHostedContentsCollectionRequestBuilder {
+ bb := &ChatMessageHostedContentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/hostedContents"
+ return bb
+}
+
+// ChatMessageHostedContentsCollectionRequestBuilder is request builder for ChatMessageHostedContent collection
+type ChatMessageHostedContentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ChatMessageHostedContent collection
+func (b *ChatMessageHostedContentsCollectionRequestBuilder) Request() *ChatMessageHostedContentsCollectionRequest {
+ return &ChatMessageHostedContentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ChatMessageHostedContent item
+func (b *ChatMessageHostedContentsCollectionRequestBuilder) ID(id string) *ChatMessageHostedContentRequestBuilder {
+ bb := &ChatMessageHostedContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatMessageHostedContentsCollectionRequest is request for ChatMessageHostedContent collection
+type ChatMessageHostedContentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ChatMessageHostedContent collection
+func (r *ChatMessageHostedContentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ChatMessageHostedContent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ChatMessageHostedContent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ChatMessageHostedContent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ChatMessageHostedContent collection, max N pages
+func (r *ChatMessageHostedContentsCollectionRequest) GetN(ctx context.Context, n int) ([]ChatMessageHostedContent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ChatMessageHostedContent collection
+func (r *ChatMessageHostedContentsCollectionRequest) Get(ctx context.Context) ([]ChatMessageHostedContent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ChatMessageHostedContent collection
+func (r *ChatMessageHostedContentsCollectionRequest) Add(ctx context.Context, reqObj *ChatMessageHostedContent) (resObj *ChatMessageHostedContent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Replies returns request builder for ChatMessage collection
+func (b *ChatMessageRequestBuilder) Replies() *ChatMessageRepliesCollectionRequestBuilder {
+ bb := &ChatMessageRepliesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/replies"
+ return bb
+}
+
+// ChatMessageRepliesCollectionRequestBuilder is request builder for ChatMessage collection
+type ChatMessageRepliesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ChatMessage collection
+func (b *ChatMessageRepliesCollectionRequestBuilder) Request() *ChatMessageRepliesCollectionRequest {
+ return &ChatMessageRepliesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ChatMessage item
+func (b *ChatMessageRepliesCollectionRequestBuilder) ID(id string) *ChatMessageRequestBuilder {
+ bb := &ChatMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ChatMessageRepliesCollectionRequest is request for ChatMessage collection
+type ChatMessageRepliesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ChatMessage collection
+func (r *ChatMessageRepliesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ChatMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ChatMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ChatMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ChatMessage collection, max N pages
+func (r *ChatMessageRepliesCollectionRequest) GetN(ctx context.Context, n int) ([]ChatMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ChatMessage collection
+func (r *ChatMessageRepliesCollectionRequest) Get(ctx context.Context) ([]ChatMessage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ChatMessage collection
+func (r *ChatMessageRepliesCollectionRequest) Add(ctx context.Context, reqObj *ChatMessage) (resObj *ChatMessage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCloud.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCloud.go
new file mode 100644
index 00000000..d9222d36
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCloud.go
@@ -0,0 +1,222 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CloudCommunicationsGetPresencesByUserIDRequestParameter undocumented
+type CloudCommunicationsGetPresencesByUserIDRequestParameter struct {
+ // IDs undocumented
+ IDs []string `json:"ids,omitempty"`
+}
+
+// Calls returns request builder for Call collection
+func (b *CloudCommunicationsRequestBuilder) Calls() *CloudCommunicationsCallsCollectionRequestBuilder {
+ bb := &CloudCommunicationsCallsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calls"
+ return bb
+}
+
+// CloudCommunicationsCallsCollectionRequestBuilder is request builder for Call collection
+type CloudCommunicationsCallsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Call collection
+func (b *CloudCommunicationsCallsCollectionRequestBuilder) Request() *CloudCommunicationsCallsCollectionRequest {
+ return &CloudCommunicationsCallsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Call item
+func (b *CloudCommunicationsCallsCollectionRequestBuilder) ID(id string) *CallRequestBuilder {
+ bb := &CallRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CloudCommunicationsCallsCollectionRequest is request for Call collection
+type CloudCommunicationsCallsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Call collection
+func (r *CloudCommunicationsCallsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Call, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Call
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Call
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Call collection, max N pages
+func (r *CloudCommunicationsCallsCollectionRequest) GetN(ctx context.Context, n int) ([]Call, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Call collection
+func (r *CloudCommunicationsCallsCollectionRequest) Get(ctx context.Context) ([]Call, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Call collection
+func (r *CloudCommunicationsCallsCollectionRequest) Add(ctx context.Context, reqObj *Call) (resObj *Call, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OnlineMeetings returns request builder for OnlineMeeting collection
+func (b *CloudCommunicationsRequestBuilder) OnlineMeetings() *CloudCommunicationsOnlineMeetingsCollectionRequestBuilder {
+ bb := &CloudCommunicationsOnlineMeetingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onlineMeetings"
+ return bb
+}
+
+// CloudCommunicationsOnlineMeetingsCollectionRequestBuilder is request builder for OnlineMeeting collection
+type CloudCommunicationsOnlineMeetingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnlineMeeting collection
+func (b *CloudCommunicationsOnlineMeetingsCollectionRequestBuilder) Request() *CloudCommunicationsOnlineMeetingsCollectionRequest {
+ return &CloudCommunicationsOnlineMeetingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnlineMeeting item
+func (b *CloudCommunicationsOnlineMeetingsCollectionRequestBuilder) ID(id string) *OnlineMeetingRequestBuilder {
+ bb := &OnlineMeetingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CloudCommunicationsOnlineMeetingsCollectionRequest is request for OnlineMeeting collection
+type CloudCommunicationsOnlineMeetingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnlineMeeting collection
+func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnlineMeeting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnlineMeeting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnlineMeeting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnlineMeeting collection, max N pages
+func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) GetN(ctx context.Context, n int) ([]OnlineMeeting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnlineMeeting collection
+func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnlineMeeting collection
+func (r *CloudCommunicationsOnlineMeetingsCollectionRequest) Add(ctx context.Context, reqObj *OnlineMeeting) (resObj *OnlineMeeting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCommand.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCommand.go
new file mode 100644
index 00000000..5c504670
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCommand.go
@@ -0,0 +1,10 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Responsepayload is navigation property
+func (b *CommandRequestBuilder) Responsepayload() *PayloadResponseRequestBuilder {
+ bb := &PayloadResponseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/responsepayload"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionComms.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionComms.go
new file mode 100644
index 00000000..c32c7210
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionComms.go
@@ -0,0 +1,216 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Calls returns request builder for Call collection
+func (b *CommsApplicationRequestBuilder) Calls() *CommsApplicationCallsCollectionRequestBuilder {
+ bb := &CommsApplicationCallsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calls"
+ return bb
+}
+
+// CommsApplicationCallsCollectionRequestBuilder is request builder for Call collection
+type CommsApplicationCallsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Call collection
+func (b *CommsApplicationCallsCollectionRequestBuilder) Request() *CommsApplicationCallsCollectionRequest {
+ return &CommsApplicationCallsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Call item
+func (b *CommsApplicationCallsCollectionRequestBuilder) ID(id string) *CallRequestBuilder {
+ bb := &CallRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CommsApplicationCallsCollectionRequest is request for Call collection
+type CommsApplicationCallsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Call collection
+func (r *CommsApplicationCallsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Call, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Call
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Call
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Call collection, max N pages
+func (r *CommsApplicationCallsCollectionRequest) GetN(ctx context.Context, n int) ([]Call, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Call collection
+func (r *CommsApplicationCallsCollectionRequest) Get(ctx context.Context) ([]Call, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Call collection
+func (r *CommsApplicationCallsCollectionRequest) Add(ctx context.Context, reqObj *Call) (resObj *Call, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OnlineMeetings returns request builder for OnlineMeeting collection
+func (b *CommsApplicationRequestBuilder) OnlineMeetings() *CommsApplicationOnlineMeetingsCollectionRequestBuilder {
+ bb := &CommsApplicationOnlineMeetingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onlineMeetings"
+ return bb
+}
+
+// CommsApplicationOnlineMeetingsCollectionRequestBuilder is request builder for OnlineMeeting collection
+type CommsApplicationOnlineMeetingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnlineMeeting collection
+func (b *CommsApplicationOnlineMeetingsCollectionRequestBuilder) Request() *CommsApplicationOnlineMeetingsCollectionRequest {
+ return &CommsApplicationOnlineMeetingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnlineMeeting item
+func (b *CommsApplicationOnlineMeetingsCollectionRequestBuilder) ID(id string) *OnlineMeetingRequestBuilder {
+ bb := &OnlineMeetingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CommsApplicationOnlineMeetingsCollectionRequest is request for OnlineMeeting collection
+type CommsApplicationOnlineMeetingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnlineMeeting collection
+func (r *CommsApplicationOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnlineMeeting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnlineMeeting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnlineMeeting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnlineMeeting collection, max N pages
+func (r *CommsApplicationOnlineMeetingsCollectionRequest) GetN(ctx context.Context, n int) ([]OnlineMeeting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnlineMeeting collection
+func (r *CommsApplicationOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnlineMeeting collection
+func (r *CommsApplicationOnlineMeetingsCollectionRequest) Add(ctx context.Context, reqObj *OnlineMeeting) (resObj *OnlineMeeting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCompany.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCompany.go
new file mode 100644
index 00000000..20c06f5d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCompany.go
@@ -0,0 +1,3582 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Accounts returns request builder for Account collection
+func (b *CompanyRequestBuilder) Accounts() *CompanyAccountsCollectionRequestBuilder {
+ bb := &CompanyAccountsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accounts"
+ return bb
+}
+
+// CompanyAccountsCollectionRequestBuilder is request builder for Account collection
+type CompanyAccountsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Account collection
+func (b *CompanyAccountsCollectionRequestBuilder) Request() *CompanyAccountsCollectionRequest {
+ return &CompanyAccountsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Account item
+func (b *CompanyAccountsCollectionRequestBuilder) ID(id string) *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyAccountsCollectionRequest is request for Account collection
+type CompanyAccountsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Account collection
+func (r *CompanyAccountsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Account, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Account
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Account
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Account collection, max N pages
+func (r *CompanyAccountsCollectionRequest) GetN(ctx context.Context, n int) ([]Account, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Account collection
+func (r *CompanyAccountsCollectionRequest) Get(ctx context.Context) ([]Account, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Account collection
+func (r *CompanyAccountsCollectionRequest) Add(ctx context.Context, reqObj *Account) (resObj *Account, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AgedAccountsPayable returns request builder for AgedAccountsPayable collection
+func (b *CompanyRequestBuilder) AgedAccountsPayable() *CompanyAgedAccountsPayableCollectionRequestBuilder {
+ bb := &CompanyAgedAccountsPayableCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agedAccountsPayable"
+ return bb
+}
+
+// CompanyAgedAccountsPayableCollectionRequestBuilder is request builder for AgedAccountsPayable collection
+type CompanyAgedAccountsPayableCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgedAccountsPayable collection
+func (b *CompanyAgedAccountsPayableCollectionRequestBuilder) Request() *CompanyAgedAccountsPayableCollectionRequest {
+ return &CompanyAgedAccountsPayableCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgedAccountsPayable item
+func (b *CompanyAgedAccountsPayableCollectionRequestBuilder) ID(id string) *AgedAccountsPayableRequestBuilder {
+ bb := &AgedAccountsPayableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyAgedAccountsPayableCollectionRequest is request for AgedAccountsPayable collection
+type CompanyAgedAccountsPayableCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgedAccountsPayable collection
+func (r *CompanyAgedAccountsPayableCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgedAccountsPayable, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgedAccountsPayable
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgedAccountsPayable
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AgedAccountsPayable collection, max N pages
+func (r *CompanyAgedAccountsPayableCollectionRequest) GetN(ctx context.Context, n int) ([]AgedAccountsPayable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AgedAccountsPayable collection
+func (r *CompanyAgedAccountsPayableCollectionRequest) Get(ctx context.Context) ([]AgedAccountsPayable, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AgedAccountsPayable collection
+func (r *CompanyAgedAccountsPayableCollectionRequest) Add(ctx context.Context, reqObj *AgedAccountsPayable) (resObj *AgedAccountsPayable, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AgedAccountsReceivable returns request builder for AgedAccountsReceivable collection
+func (b *CompanyRequestBuilder) AgedAccountsReceivable() *CompanyAgedAccountsReceivableCollectionRequestBuilder {
+ bb := &CompanyAgedAccountsReceivableCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agedAccountsReceivable"
+ return bb
+}
+
+// CompanyAgedAccountsReceivableCollectionRequestBuilder is request builder for AgedAccountsReceivable collection
+type CompanyAgedAccountsReceivableCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgedAccountsReceivable collection
+func (b *CompanyAgedAccountsReceivableCollectionRequestBuilder) Request() *CompanyAgedAccountsReceivableCollectionRequest {
+ return &CompanyAgedAccountsReceivableCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgedAccountsReceivable item
+func (b *CompanyAgedAccountsReceivableCollectionRequestBuilder) ID(id string) *AgedAccountsReceivableRequestBuilder {
+ bb := &AgedAccountsReceivableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyAgedAccountsReceivableCollectionRequest is request for AgedAccountsReceivable collection
+type CompanyAgedAccountsReceivableCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgedAccountsReceivable collection
+func (r *CompanyAgedAccountsReceivableCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgedAccountsReceivable, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgedAccountsReceivable
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgedAccountsReceivable
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AgedAccountsReceivable collection, max N pages
+func (r *CompanyAgedAccountsReceivableCollectionRequest) GetN(ctx context.Context, n int) ([]AgedAccountsReceivable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AgedAccountsReceivable collection
+func (r *CompanyAgedAccountsReceivableCollectionRequest) Get(ctx context.Context) ([]AgedAccountsReceivable, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AgedAccountsReceivable collection
+func (r *CompanyAgedAccountsReceivableCollectionRequest) Add(ctx context.Context, reqObj *AgedAccountsReceivable) (resObj *AgedAccountsReceivable, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CompanyInformation returns request builder for CompanyInformation collection
+func (b *CompanyRequestBuilder) CompanyInformation() *CompanyCompanyInformationCollectionRequestBuilder {
+ bb := &CompanyCompanyInformationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/companyInformation"
+ return bb
+}
+
+// CompanyCompanyInformationCollectionRequestBuilder is request builder for CompanyInformation collection
+type CompanyCompanyInformationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CompanyInformation collection
+func (b *CompanyCompanyInformationCollectionRequestBuilder) Request() *CompanyCompanyInformationCollectionRequest {
+ return &CompanyCompanyInformationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CompanyInformation item
+func (b *CompanyCompanyInformationCollectionRequestBuilder) ID(id string) *CompanyInformationRequestBuilder {
+ bb := &CompanyInformationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCompanyInformationCollectionRequest is request for CompanyInformation collection
+type CompanyCompanyInformationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CompanyInformation collection
+func (r *CompanyCompanyInformationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CompanyInformation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CompanyInformation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CompanyInformation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CompanyInformation collection, max N pages
+func (r *CompanyCompanyInformationCollectionRequest) GetN(ctx context.Context, n int) ([]CompanyInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CompanyInformation collection
+func (r *CompanyCompanyInformationCollectionRequest) Get(ctx context.Context) ([]CompanyInformation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CompanyInformation collection
+func (r *CompanyCompanyInformationCollectionRequest) Add(ctx context.Context, reqObj *CompanyInformation) (resObj *CompanyInformation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CountriesRegions returns request builder for CountryRegion collection
+func (b *CompanyRequestBuilder) CountriesRegions() *CompanyCountriesRegionsCollectionRequestBuilder {
+ bb := &CompanyCountriesRegionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/countriesRegions"
+ return bb
+}
+
+// CompanyCountriesRegionsCollectionRequestBuilder is request builder for CountryRegion collection
+type CompanyCountriesRegionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CountryRegion collection
+func (b *CompanyCountriesRegionsCollectionRequestBuilder) Request() *CompanyCountriesRegionsCollectionRequest {
+ return &CompanyCountriesRegionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CountryRegion item
+func (b *CompanyCountriesRegionsCollectionRequestBuilder) ID(id string) *CountryRegionRequestBuilder {
+ bb := &CountryRegionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCountriesRegionsCollectionRequest is request for CountryRegion collection
+type CompanyCountriesRegionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CountryRegion collection
+func (r *CompanyCountriesRegionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CountryRegion, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CountryRegion
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CountryRegion
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CountryRegion collection, max N pages
+func (r *CompanyCountriesRegionsCollectionRequest) GetN(ctx context.Context, n int) ([]CountryRegion, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CountryRegion collection
+func (r *CompanyCountriesRegionsCollectionRequest) Get(ctx context.Context) ([]CountryRegion, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CountryRegion collection
+func (r *CompanyCountriesRegionsCollectionRequest) Add(ctx context.Context, reqObj *CountryRegion) (resObj *CountryRegion, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Currencies returns request builder for Currency collection
+func (b *CompanyRequestBuilder) Currencies() *CompanyCurrenciesCollectionRequestBuilder {
+ bb := &CompanyCurrenciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currencies"
+ return bb
+}
+
+// CompanyCurrenciesCollectionRequestBuilder is request builder for Currency collection
+type CompanyCurrenciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Currency collection
+func (b *CompanyCurrenciesCollectionRequestBuilder) Request() *CompanyCurrenciesCollectionRequest {
+ return &CompanyCurrenciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Currency item
+func (b *CompanyCurrenciesCollectionRequestBuilder) ID(id string) *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCurrenciesCollectionRequest is request for Currency collection
+type CompanyCurrenciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Currency collection
+func (r *CompanyCurrenciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Currency, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Currency
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Currency
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Currency collection, max N pages
+func (r *CompanyCurrenciesCollectionRequest) GetN(ctx context.Context, n int) ([]Currency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Currency collection
+func (r *CompanyCurrenciesCollectionRequest) Get(ctx context.Context) ([]Currency, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Currency collection
+func (r *CompanyCurrenciesCollectionRequest) Add(ctx context.Context, reqObj *Currency) (resObj *Currency, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CustomerPaymentJournals returns request builder for CustomerPaymentJournal collection
+func (b *CompanyRequestBuilder) CustomerPaymentJournals() *CompanyCustomerPaymentJournalsCollectionRequestBuilder {
+ bb := &CompanyCustomerPaymentJournalsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customerPaymentJournals"
+ return bb
+}
+
+// CompanyCustomerPaymentJournalsCollectionRequestBuilder is request builder for CustomerPaymentJournal collection
+type CompanyCustomerPaymentJournalsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CustomerPaymentJournal collection
+func (b *CompanyCustomerPaymentJournalsCollectionRequestBuilder) Request() *CompanyCustomerPaymentJournalsCollectionRequest {
+ return &CompanyCustomerPaymentJournalsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CustomerPaymentJournal item
+func (b *CompanyCustomerPaymentJournalsCollectionRequestBuilder) ID(id string) *CustomerPaymentJournalRequestBuilder {
+ bb := &CustomerPaymentJournalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCustomerPaymentJournalsCollectionRequest is request for CustomerPaymentJournal collection
+type CompanyCustomerPaymentJournalsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CustomerPaymentJournal collection
+func (r *CompanyCustomerPaymentJournalsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CustomerPaymentJournal, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CustomerPaymentJournal
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CustomerPaymentJournal
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CustomerPaymentJournal collection, max N pages
+func (r *CompanyCustomerPaymentJournalsCollectionRequest) GetN(ctx context.Context, n int) ([]CustomerPaymentJournal, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CustomerPaymentJournal collection
+func (r *CompanyCustomerPaymentJournalsCollectionRequest) Get(ctx context.Context) ([]CustomerPaymentJournal, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CustomerPaymentJournal collection
+func (r *CompanyCustomerPaymentJournalsCollectionRequest) Add(ctx context.Context, reqObj *CustomerPaymentJournal) (resObj *CustomerPaymentJournal, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CustomerPayments returns request builder for CustomerPayment collection
+func (b *CompanyRequestBuilder) CustomerPayments() *CompanyCustomerPaymentsCollectionRequestBuilder {
+ bb := &CompanyCustomerPaymentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customerPayments"
+ return bb
+}
+
+// CompanyCustomerPaymentsCollectionRequestBuilder is request builder for CustomerPayment collection
+type CompanyCustomerPaymentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CustomerPayment collection
+func (b *CompanyCustomerPaymentsCollectionRequestBuilder) Request() *CompanyCustomerPaymentsCollectionRequest {
+ return &CompanyCustomerPaymentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CustomerPayment item
+func (b *CompanyCustomerPaymentsCollectionRequestBuilder) ID(id string) *CustomerPaymentRequestBuilder {
+ bb := &CustomerPaymentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCustomerPaymentsCollectionRequest is request for CustomerPayment collection
+type CompanyCustomerPaymentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CustomerPayment collection
+func (r *CompanyCustomerPaymentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CustomerPayment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CustomerPayment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CustomerPayment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CustomerPayment collection, max N pages
+func (r *CompanyCustomerPaymentsCollectionRequest) GetN(ctx context.Context, n int) ([]CustomerPayment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CustomerPayment collection
+func (r *CompanyCustomerPaymentsCollectionRequest) Get(ctx context.Context) ([]CustomerPayment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CustomerPayment collection
+func (r *CompanyCustomerPaymentsCollectionRequest) Add(ctx context.Context, reqObj *CustomerPayment) (resObj *CustomerPayment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Customers returns request builder for Customer collection
+func (b *CompanyRequestBuilder) Customers() *CompanyCustomersCollectionRequestBuilder {
+ bb := &CompanyCustomersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customers"
+ return bb
+}
+
+// CompanyCustomersCollectionRequestBuilder is request builder for Customer collection
+type CompanyCustomersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Customer collection
+func (b *CompanyCustomersCollectionRequestBuilder) Request() *CompanyCustomersCollectionRequest {
+ return &CompanyCustomersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Customer item
+func (b *CompanyCustomersCollectionRequestBuilder) ID(id string) *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyCustomersCollectionRequest is request for Customer collection
+type CompanyCustomersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Customer collection
+func (r *CompanyCustomersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Customer, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Customer
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Customer
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Customer collection, max N pages
+func (r *CompanyCustomersCollectionRequest) GetN(ctx context.Context, n int) ([]Customer, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Customer collection
+func (r *CompanyCustomersCollectionRequest) Get(ctx context.Context) ([]Customer, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Customer collection
+func (r *CompanyCustomersCollectionRequest) Add(ctx context.Context, reqObj *Customer) (resObj *Customer, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DimensionValues returns request builder for DimensionValue collection
+func (b *CompanyRequestBuilder) DimensionValues() *CompanyDimensionValuesCollectionRequestBuilder {
+ bb := &CompanyDimensionValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dimensionValues"
+ return bb
+}
+
+// CompanyDimensionValuesCollectionRequestBuilder is request builder for DimensionValue collection
+type CompanyDimensionValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DimensionValue collection
+func (b *CompanyDimensionValuesCollectionRequestBuilder) Request() *CompanyDimensionValuesCollectionRequest {
+ return &CompanyDimensionValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DimensionValue item
+func (b *CompanyDimensionValuesCollectionRequestBuilder) ID(id string) *DimensionValueRequestBuilder {
+ bb := &DimensionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyDimensionValuesCollectionRequest is request for DimensionValue collection
+type CompanyDimensionValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DimensionValue collection
+func (r *CompanyDimensionValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DimensionValue, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DimensionValue
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DimensionValue
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DimensionValue collection, max N pages
+func (r *CompanyDimensionValuesCollectionRequest) GetN(ctx context.Context, n int) ([]DimensionValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DimensionValue collection
+func (r *CompanyDimensionValuesCollectionRequest) Get(ctx context.Context) ([]DimensionValue, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DimensionValue collection
+func (r *CompanyDimensionValuesCollectionRequest) Add(ctx context.Context, reqObj *DimensionValue) (resObj *DimensionValue, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Dimensions returns request builder for Dimension collection
+func (b *CompanyRequestBuilder) Dimensions() *CompanyDimensionsCollectionRequestBuilder {
+ bb := &CompanyDimensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dimensions"
+ return bb
+}
+
+// CompanyDimensionsCollectionRequestBuilder is request builder for Dimension collection
+type CompanyDimensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Dimension collection
+func (b *CompanyDimensionsCollectionRequestBuilder) Request() *CompanyDimensionsCollectionRequest {
+ return &CompanyDimensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Dimension item
+func (b *CompanyDimensionsCollectionRequestBuilder) ID(id string) *DimensionRequestBuilder {
+ bb := &DimensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyDimensionsCollectionRequest is request for Dimension collection
+type CompanyDimensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Dimension collection
+func (r *CompanyDimensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Dimension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Dimension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Dimension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Dimension collection, max N pages
+func (r *CompanyDimensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Dimension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Dimension collection
+func (r *CompanyDimensionsCollectionRequest) Get(ctx context.Context) ([]Dimension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Dimension collection
+func (r *CompanyDimensionsCollectionRequest) Add(ctx context.Context, reqObj *Dimension) (resObj *Dimension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Employees returns request builder for Employee collection
+func (b *CompanyRequestBuilder) Employees() *CompanyEmployeesCollectionRequestBuilder {
+ bb := &CompanyEmployeesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/employees"
+ return bb
+}
+
+// CompanyEmployeesCollectionRequestBuilder is request builder for Employee collection
+type CompanyEmployeesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Employee collection
+func (b *CompanyEmployeesCollectionRequestBuilder) Request() *CompanyEmployeesCollectionRequest {
+ return &CompanyEmployeesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Employee item
+func (b *CompanyEmployeesCollectionRequestBuilder) ID(id string) *EmployeeRequestBuilder {
+ bb := &EmployeeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyEmployeesCollectionRequest is request for Employee collection
+type CompanyEmployeesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Employee collection
+func (r *CompanyEmployeesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Employee, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Employee
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Employee
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Employee collection, max N pages
+func (r *CompanyEmployeesCollectionRequest) GetN(ctx context.Context, n int) ([]Employee, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Employee collection
+func (r *CompanyEmployeesCollectionRequest) Get(ctx context.Context) ([]Employee, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Employee collection
+func (r *CompanyEmployeesCollectionRequest) Add(ctx context.Context, reqObj *Employee) (resObj *Employee, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GeneralLedgerEntries returns request builder for GeneralLedgerEntry collection
+func (b *CompanyRequestBuilder) GeneralLedgerEntries() *CompanyGeneralLedgerEntriesCollectionRequestBuilder {
+ bb := &CompanyGeneralLedgerEntriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/generalLedgerEntries"
+ return bb
+}
+
+// CompanyGeneralLedgerEntriesCollectionRequestBuilder is request builder for GeneralLedgerEntry collection
+type CompanyGeneralLedgerEntriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GeneralLedgerEntry collection
+func (b *CompanyGeneralLedgerEntriesCollectionRequestBuilder) Request() *CompanyGeneralLedgerEntriesCollectionRequest {
+ return &CompanyGeneralLedgerEntriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GeneralLedgerEntry item
+func (b *CompanyGeneralLedgerEntriesCollectionRequestBuilder) ID(id string) *GeneralLedgerEntryRequestBuilder {
+ bb := &GeneralLedgerEntryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyGeneralLedgerEntriesCollectionRequest is request for GeneralLedgerEntry collection
+type CompanyGeneralLedgerEntriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GeneralLedgerEntry collection
+func (r *CompanyGeneralLedgerEntriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GeneralLedgerEntry, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GeneralLedgerEntry
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GeneralLedgerEntry
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GeneralLedgerEntry collection, max N pages
+func (r *CompanyGeneralLedgerEntriesCollectionRequest) GetN(ctx context.Context, n int) ([]GeneralLedgerEntry, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GeneralLedgerEntry collection
+func (r *CompanyGeneralLedgerEntriesCollectionRequest) Get(ctx context.Context) ([]GeneralLedgerEntry, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GeneralLedgerEntry collection
+func (r *CompanyGeneralLedgerEntriesCollectionRequest) Add(ctx context.Context, reqObj *GeneralLedgerEntry) (resObj *GeneralLedgerEntry, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ItemCategories returns request builder for ItemCategory collection
+func (b *CompanyRequestBuilder) ItemCategories() *CompanyItemCategoriesCollectionRequestBuilder {
+ bb := &CompanyItemCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/itemCategories"
+ return bb
+}
+
+// CompanyItemCategoriesCollectionRequestBuilder is request builder for ItemCategory collection
+type CompanyItemCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemCategory collection
+func (b *CompanyItemCategoriesCollectionRequestBuilder) Request() *CompanyItemCategoriesCollectionRequest {
+ return &CompanyItemCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemCategory item
+func (b *CompanyItemCategoriesCollectionRequestBuilder) ID(id string) *ItemCategoryRequestBuilder {
+ bb := &ItemCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyItemCategoriesCollectionRequest is request for ItemCategory collection
+type CompanyItemCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemCategory collection
+func (r *CompanyItemCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ItemCategory collection, max N pages
+func (r *CompanyItemCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ItemCategory collection
+func (r *CompanyItemCategoriesCollectionRequest) Get(ctx context.Context) ([]ItemCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ItemCategory collection
+func (r *CompanyItemCategoriesCollectionRequest) Add(ctx context.Context, reqObj *ItemCategory) (resObj *ItemCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Items returns request builder for Item collection
+func (b *CompanyRequestBuilder) Items() *CompanyItemsCollectionRequestBuilder {
+ bb := &CompanyItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// CompanyItemsCollectionRequestBuilder is request builder for Item collection
+type CompanyItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Item collection
+func (b *CompanyItemsCollectionRequestBuilder) Request() *CompanyItemsCollectionRequest {
+ return &CompanyItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Item item
+func (b *CompanyItemsCollectionRequestBuilder) ID(id string) *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyItemsCollectionRequest is request for Item collection
+type CompanyItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Item collection
+func (r *CompanyItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Item, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Item
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Item
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Item collection, max N pages
+func (r *CompanyItemsCollectionRequest) GetN(ctx context.Context, n int) ([]Item, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Item collection
+func (r *CompanyItemsCollectionRequest) Get(ctx context.Context) ([]Item, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Item collection
+func (r *CompanyItemsCollectionRequest) Add(ctx context.Context, reqObj *Item) (resObj *Item, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// JournalLines returns request builder for JournalLine collection
+func (b *CompanyRequestBuilder) JournalLines() *CompanyJournalLinesCollectionRequestBuilder {
+ bb := &CompanyJournalLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/journalLines"
+ return bb
+}
+
+// CompanyJournalLinesCollectionRequestBuilder is request builder for JournalLine collection
+type CompanyJournalLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JournalLine collection
+func (b *CompanyJournalLinesCollectionRequestBuilder) Request() *CompanyJournalLinesCollectionRequest {
+ return &CompanyJournalLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JournalLine item
+func (b *CompanyJournalLinesCollectionRequestBuilder) ID(id string) *JournalLineRequestBuilder {
+ bb := &JournalLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyJournalLinesCollectionRequest is request for JournalLine collection
+type CompanyJournalLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JournalLine collection
+func (r *CompanyJournalLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JournalLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JournalLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JournalLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for JournalLine collection, max N pages
+func (r *CompanyJournalLinesCollectionRequest) GetN(ctx context.Context, n int) ([]JournalLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for JournalLine collection
+func (r *CompanyJournalLinesCollectionRequest) Get(ctx context.Context) ([]JournalLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for JournalLine collection
+func (r *CompanyJournalLinesCollectionRequest) Add(ctx context.Context, reqObj *JournalLine) (resObj *JournalLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Journals returns request builder for Journal collection
+func (b *CompanyRequestBuilder) Journals() *CompanyJournalsCollectionRequestBuilder {
+ bb := &CompanyJournalsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/journals"
+ return bb
+}
+
+// CompanyJournalsCollectionRequestBuilder is request builder for Journal collection
+type CompanyJournalsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Journal collection
+func (b *CompanyJournalsCollectionRequestBuilder) Request() *CompanyJournalsCollectionRequest {
+ return &CompanyJournalsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Journal item
+func (b *CompanyJournalsCollectionRequestBuilder) ID(id string) *JournalRequestBuilder {
+ bb := &JournalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyJournalsCollectionRequest is request for Journal collection
+type CompanyJournalsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Journal collection
+func (r *CompanyJournalsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Journal, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Journal
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Journal
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Journal collection, max N pages
+func (r *CompanyJournalsCollectionRequest) GetN(ctx context.Context, n int) ([]Journal, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Journal collection
+func (r *CompanyJournalsCollectionRequest) Get(ctx context.Context) ([]Journal, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Journal collection
+func (r *CompanyJournalsCollectionRequest) Add(ctx context.Context, reqObj *Journal) (resObj *Journal, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PaymentMethods returns request builder for PaymentMethod collection
+func (b *CompanyRequestBuilder) PaymentMethods() *CompanyPaymentMethodsCollectionRequestBuilder {
+ bb := &CompanyPaymentMethodsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentMethods"
+ return bb
+}
+
+// CompanyPaymentMethodsCollectionRequestBuilder is request builder for PaymentMethod collection
+type CompanyPaymentMethodsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PaymentMethod collection
+func (b *CompanyPaymentMethodsCollectionRequestBuilder) Request() *CompanyPaymentMethodsCollectionRequest {
+ return &CompanyPaymentMethodsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PaymentMethod item
+func (b *CompanyPaymentMethodsCollectionRequestBuilder) ID(id string) *PaymentMethodRequestBuilder {
+ bb := &PaymentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPaymentMethodsCollectionRequest is request for PaymentMethod collection
+type CompanyPaymentMethodsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PaymentMethod collection
+func (r *CompanyPaymentMethodsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PaymentMethod, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PaymentMethod
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PaymentMethod
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PaymentMethod collection, max N pages
+func (r *CompanyPaymentMethodsCollectionRequest) GetN(ctx context.Context, n int) ([]PaymentMethod, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PaymentMethod collection
+func (r *CompanyPaymentMethodsCollectionRequest) Get(ctx context.Context) ([]PaymentMethod, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PaymentMethod collection
+func (r *CompanyPaymentMethodsCollectionRequest) Add(ctx context.Context, reqObj *PaymentMethod) (resObj *PaymentMethod, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PaymentTerms returns request builder for PaymentTerm collection
+func (b *CompanyRequestBuilder) PaymentTerms() *CompanyPaymentTermsCollectionRequestBuilder {
+ bb := &CompanyPaymentTermsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerms"
+ return bb
+}
+
+// CompanyPaymentTermsCollectionRequestBuilder is request builder for PaymentTerm collection
+type CompanyPaymentTermsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PaymentTerm collection
+func (b *CompanyPaymentTermsCollectionRequestBuilder) Request() *CompanyPaymentTermsCollectionRequest {
+ return &CompanyPaymentTermsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PaymentTerm item
+func (b *CompanyPaymentTermsCollectionRequestBuilder) ID(id string) *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPaymentTermsCollectionRequest is request for PaymentTerm collection
+type CompanyPaymentTermsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PaymentTerm collection
+func (r *CompanyPaymentTermsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PaymentTerm, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PaymentTerm
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PaymentTerm
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PaymentTerm collection, max N pages
+func (r *CompanyPaymentTermsCollectionRequest) GetN(ctx context.Context, n int) ([]PaymentTerm, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PaymentTerm collection
+func (r *CompanyPaymentTermsCollectionRequest) Get(ctx context.Context) ([]PaymentTerm, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PaymentTerm collection
+func (r *CompanyPaymentTermsCollectionRequest) Add(ctx context.Context, reqObj *PaymentTerm) (resObj *PaymentTerm, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Picture returns request builder for Picture collection
+func (b *CompanyRequestBuilder) Picture() *CompanyPictureCollectionRequestBuilder {
+ bb := &CompanyPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// CompanyPictureCollectionRequestBuilder is request builder for Picture collection
+type CompanyPictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *CompanyPictureCollectionRequestBuilder) Request() *CompanyPictureCollectionRequest {
+ return &CompanyPictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *CompanyPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPictureCollectionRequest is request for Picture collection
+type CompanyPictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *CompanyPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Picture collection, max N pages
+func (r *CompanyPictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Picture collection
+func (r *CompanyPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Picture collection
+func (r *CompanyPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PurchaseInvoiceLines returns request builder for PurchaseInvoiceLine collection
+func (b *CompanyRequestBuilder) PurchaseInvoiceLines() *CompanyPurchaseInvoiceLinesCollectionRequestBuilder {
+ bb := &CompanyPurchaseInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/purchaseInvoiceLines"
+ return bb
+}
+
+// CompanyPurchaseInvoiceLinesCollectionRequestBuilder is request builder for PurchaseInvoiceLine collection
+type CompanyPurchaseInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PurchaseInvoiceLine collection
+func (b *CompanyPurchaseInvoiceLinesCollectionRequestBuilder) Request() *CompanyPurchaseInvoiceLinesCollectionRequest {
+ return &CompanyPurchaseInvoiceLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PurchaseInvoiceLine item
+func (b *CompanyPurchaseInvoiceLinesCollectionRequestBuilder) ID(id string) *PurchaseInvoiceLineRequestBuilder {
+ bb := &PurchaseInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPurchaseInvoiceLinesCollectionRequest is request for PurchaseInvoiceLine collection
+type CompanyPurchaseInvoiceLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PurchaseInvoiceLine collection
+func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PurchaseInvoiceLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PurchaseInvoiceLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PurchaseInvoiceLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PurchaseInvoiceLine collection, max N pages
+func (r *CompanyPurchaseInvoiceLinesCollectionRequest) GetN(ctx context.Context, n int) ([]PurchaseInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PurchaseInvoiceLine collection
+func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoiceLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PurchaseInvoiceLine collection
+func (r *CompanyPurchaseInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *PurchaseInvoiceLine) (resObj *PurchaseInvoiceLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PurchaseInvoices returns request builder for PurchaseInvoice collection
+func (b *CompanyRequestBuilder) PurchaseInvoices() *CompanyPurchaseInvoicesCollectionRequestBuilder {
+ bb := &CompanyPurchaseInvoicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/purchaseInvoices"
+ return bb
+}
+
+// CompanyPurchaseInvoicesCollectionRequestBuilder is request builder for PurchaseInvoice collection
+type CompanyPurchaseInvoicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PurchaseInvoice collection
+func (b *CompanyPurchaseInvoicesCollectionRequestBuilder) Request() *CompanyPurchaseInvoicesCollectionRequest {
+ return &CompanyPurchaseInvoicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PurchaseInvoice item
+func (b *CompanyPurchaseInvoicesCollectionRequestBuilder) ID(id string) *PurchaseInvoiceRequestBuilder {
+ bb := &PurchaseInvoiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyPurchaseInvoicesCollectionRequest is request for PurchaseInvoice collection
+type CompanyPurchaseInvoicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PurchaseInvoice collection
+func (r *CompanyPurchaseInvoicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PurchaseInvoice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PurchaseInvoice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PurchaseInvoice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PurchaseInvoice collection, max N pages
+func (r *CompanyPurchaseInvoicesCollectionRequest) GetN(ctx context.Context, n int) ([]PurchaseInvoice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PurchaseInvoice collection
+func (r *CompanyPurchaseInvoicesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoice, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PurchaseInvoice collection
+func (r *CompanyPurchaseInvoicesCollectionRequest) Add(ctx context.Context, reqObj *PurchaseInvoice) (resObj *PurchaseInvoice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesCreditMemoLines returns request builder for SalesCreditMemoLine collection
+func (b *CompanyRequestBuilder) SalesCreditMemoLines() *CompanySalesCreditMemoLinesCollectionRequestBuilder {
+ bb := &CompanySalesCreditMemoLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesCreditMemoLines"
+ return bb
+}
+
+// CompanySalesCreditMemoLinesCollectionRequestBuilder is request builder for SalesCreditMemoLine collection
+type CompanySalesCreditMemoLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesCreditMemoLine collection
+func (b *CompanySalesCreditMemoLinesCollectionRequestBuilder) Request() *CompanySalesCreditMemoLinesCollectionRequest {
+ return &CompanySalesCreditMemoLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesCreditMemoLine item
+func (b *CompanySalesCreditMemoLinesCollectionRequestBuilder) ID(id string) *SalesCreditMemoLineRequestBuilder {
+ bb := &SalesCreditMemoLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesCreditMemoLinesCollectionRequest is request for SalesCreditMemoLine collection
+type CompanySalesCreditMemoLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesCreditMemoLine collection
+func (r *CompanySalesCreditMemoLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesCreditMemoLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesCreditMemoLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesCreditMemoLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesCreditMemoLine collection, max N pages
+func (r *CompanySalesCreditMemoLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesCreditMemoLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesCreditMemoLine collection
+func (r *CompanySalesCreditMemoLinesCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemoLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesCreditMemoLine collection
+func (r *CompanySalesCreditMemoLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesCreditMemoLine) (resObj *SalesCreditMemoLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesCreditMemos returns request builder for SalesCreditMemo collection
+func (b *CompanyRequestBuilder) SalesCreditMemos() *CompanySalesCreditMemosCollectionRequestBuilder {
+ bb := &CompanySalesCreditMemosCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesCreditMemos"
+ return bb
+}
+
+// CompanySalesCreditMemosCollectionRequestBuilder is request builder for SalesCreditMemo collection
+type CompanySalesCreditMemosCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesCreditMemo collection
+func (b *CompanySalesCreditMemosCollectionRequestBuilder) Request() *CompanySalesCreditMemosCollectionRequest {
+ return &CompanySalesCreditMemosCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesCreditMemo item
+func (b *CompanySalesCreditMemosCollectionRequestBuilder) ID(id string) *SalesCreditMemoRequestBuilder {
+ bb := &SalesCreditMemoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesCreditMemosCollectionRequest is request for SalesCreditMemo collection
+type CompanySalesCreditMemosCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesCreditMemo collection
+func (r *CompanySalesCreditMemosCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesCreditMemo, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesCreditMemo
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesCreditMemo
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesCreditMemo collection, max N pages
+func (r *CompanySalesCreditMemosCollectionRequest) GetN(ctx context.Context, n int) ([]SalesCreditMemo, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesCreditMemo collection
+func (r *CompanySalesCreditMemosCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemo, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesCreditMemo collection
+func (r *CompanySalesCreditMemosCollectionRequest) Add(ctx context.Context, reqObj *SalesCreditMemo) (resObj *SalesCreditMemo, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesInvoiceLines returns request builder for SalesInvoiceLine collection
+func (b *CompanyRequestBuilder) SalesInvoiceLines() *CompanySalesInvoiceLinesCollectionRequestBuilder {
+ bb := &CompanySalesInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesInvoiceLines"
+ return bb
+}
+
+// CompanySalesInvoiceLinesCollectionRequestBuilder is request builder for SalesInvoiceLine collection
+type CompanySalesInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesInvoiceLine collection
+func (b *CompanySalesInvoiceLinesCollectionRequestBuilder) Request() *CompanySalesInvoiceLinesCollectionRequest {
+ return &CompanySalesInvoiceLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesInvoiceLine item
+func (b *CompanySalesInvoiceLinesCollectionRequestBuilder) ID(id string) *SalesInvoiceLineRequestBuilder {
+ bb := &SalesInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesInvoiceLinesCollectionRequest is request for SalesInvoiceLine collection
+type CompanySalesInvoiceLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesInvoiceLine collection
+func (r *CompanySalesInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesInvoiceLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesInvoiceLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesInvoiceLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesInvoiceLine collection, max N pages
+func (r *CompanySalesInvoiceLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesInvoiceLine collection
+func (r *CompanySalesInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]SalesInvoiceLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesInvoiceLine collection
+func (r *CompanySalesInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesInvoiceLine) (resObj *SalesInvoiceLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesInvoices returns request builder for SalesInvoice collection
+func (b *CompanyRequestBuilder) SalesInvoices() *CompanySalesInvoicesCollectionRequestBuilder {
+ bb := &CompanySalesInvoicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesInvoices"
+ return bb
+}
+
+// CompanySalesInvoicesCollectionRequestBuilder is request builder for SalesInvoice collection
+type CompanySalesInvoicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesInvoice collection
+func (b *CompanySalesInvoicesCollectionRequestBuilder) Request() *CompanySalesInvoicesCollectionRequest {
+ return &CompanySalesInvoicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesInvoice item
+func (b *CompanySalesInvoicesCollectionRequestBuilder) ID(id string) *SalesInvoiceRequestBuilder {
+ bb := &SalesInvoiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesInvoicesCollectionRequest is request for SalesInvoice collection
+type CompanySalesInvoicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesInvoice collection
+func (r *CompanySalesInvoicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesInvoice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesInvoice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesInvoice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesInvoice collection, max N pages
+func (r *CompanySalesInvoicesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesInvoice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesInvoice collection
+func (r *CompanySalesInvoicesCollectionRequest) Get(ctx context.Context) ([]SalesInvoice, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesInvoice collection
+func (r *CompanySalesInvoicesCollectionRequest) Add(ctx context.Context, reqObj *SalesInvoice) (resObj *SalesInvoice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesOrderLines returns request builder for SalesOrderLine collection
+func (b *CompanyRequestBuilder) SalesOrderLines() *CompanySalesOrderLinesCollectionRequestBuilder {
+ bb := &CompanySalesOrderLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesOrderLines"
+ return bb
+}
+
+// CompanySalesOrderLinesCollectionRequestBuilder is request builder for SalesOrderLine collection
+type CompanySalesOrderLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesOrderLine collection
+func (b *CompanySalesOrderLinesCollectionRequestBuilder) Request() *CompanySalesOrderLinesCollectionRequest {
+ return &CompanySalesOrderLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesOrderLine item
+func (b *CompanySalesOrderLinesCollectionRequestBuilder) ID(id string) *SalesOrderLineRequestBuilder {
+ bb := &SalesOrderLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesOrderLinesCollectionRequest is request for SalesOrderLine collection
+type CompanySalesOrderLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesOrderLine collection
+func (r *CompanySalesOrderLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesOrderLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesOrderLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesOrderLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesOrderLine collection, max N pages
+func (r *CompanySalesOrderLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesOrderLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesOrderLine collection
+func (r *CompanySalesOrderLinesCollectionRequest) Get(ctx context.Context) ([]SalesOrderLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesOrderLine collection
+func (r *CompanySalesOrderLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesOrderLine) (resObj *SalesOrderLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesOrders returns request builder for SalesOrder collection
+func (b *CompanyRequestBuilder) SalesOrders() *CompanySalesOrdersCollectionRequestBuilder {
+ bb := &CompanySalesOrdersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesOrders"
+ return bb
+}
+
+// CompanySalesOrdersCollectionRequestBuilder is request builder for SalesOrder collection
+type CompanySalesOrdersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesOrder collection
+func (b *CompanySalesOrdersCollectionRequestBuilder) Request() *CompanySalesOrdersCollectionRequest {
+ return &CompanySalesOrdersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesOrder item
+func (b *CompanySalesOrdersCollectionRequestBuilder) ID(id string) *SalesOrderRequestBuilder {
+ bb := &SalesOrderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesOrdersCollectionRequest is request for SalesOrder collection
+type CompanySalesOrdersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesOrder collection
+func (r *CompanySalesOrdersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesOrder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesOrder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesOrder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesOrder collection, max N pages
+func (r *CompanySalesOrdersCollectionRequest) GetN(ctx context.Context, n int) ([]SalesOrder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesOrder collection
+func (r *CompanySalesOrdersCollectionRequest) Get(ctx context.Context) ([]SalesOrder, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesOrder collection
+func (r *CompanySalesOrdersCollectionRequest) Add(ctx context.Context, reqObj *SalesOrder) (resObj *SalesOrder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesQuoteLines returns request builder for SalesQuoteLine collection
+func (b *CompanyRequestBuilder) SalesQuoteLines() *CompanySalesQuoteLinesCollectionRequestBuilder {
+ bb := &CompanySalesQuoteLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesQuoteLines"
+ return bb
+}
+
+// CompanySalesQuoteLinesCollectionRequestBuilder is request builder for SalesQuoteLine collection
+type CompanySalesQuoteLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesQuoteLine collection
+func (b *CompanySalesQuoteLinesCollectionRequestBuilder) Request() *CompanySalesQuoteLinesCollectionRequest {
+ return &CompanySalesQuoteLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesQuoteLine item
+func (b *CompanySalesQuoteLinesCollectionRequestBuilder) ID(id string) *SalesQuoteLineRequestBuilder {
+ bb := &SalesQuoteLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesQuoteLinesCollectionRequest is request for SalesQuoteLine collection
+type CompanySalesQuoteLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesQuoteLine collection
+func (r *CompanySalesQuoteLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesQuoteLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesQuoteLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesQuoteLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesQuoteLine collection, max N pages
+func (r *CompanySalesQuoteLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesQuoteLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesQuoteLine collection
+func (r *CompanySalesQuoteLinesCollectionRequest) Get(ctx context.Context) ([]SalesQuoteLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesQuoteLine collection
+func (r *CompanySalesQuoteLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesQuoteLine) (resObj *SalesQuoteLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SalesQuotes returns request builder for SalesQuote collection
+func (b *CompanyRequestBuilder) SalesQuotes() *CompanySalesQuotesCollectionRequestBuilder {
+ bb := &CompanySalesQuotesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesQuotes"
+ return bb
+}
+
+// CompanySalesQuotesCollectionRequestBuilder is request builder for SalesQuote collection
+type CompanySalesQuotesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesQuote collection
+func (b *CompanySalesQuotesCollectionRequestBuilder) Request() *CompanySalesQuotesCollectionRequest {
+ return &CompanySalesQuotesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesQuote item
+func (b *CompanySalesQuotesCollectionRequestBuilder) ID(id string) *SalesQuoteRequestBuilder {
+ bb := &SalesQuoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanySalesQuotesCollectionRequest is request for SalesQuote collection
+type CompanySalesQuotesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesQuote collection
+func (r *CompanySalesQuotesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesQuote, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesQuote
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesQuote
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesQuote collection, max N pages
+func (r *CompanySalesQuotesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesQuote, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesQuote collection
+func (r *CompanySalesQuotesCollectionRequest) Get(ctx context.Context) ([]SalesQuote, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesQuote collection
+func (r *CompanySalesQuotesCollectionRequest) Add(ctx context.Context, reqObj *SalesQuote) (resObj *SalesQuote, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ShipmentMethods returns request builder for ShipmentMethod collection
+func (b *CompanyRequestBuilder) ShipmentMethods() *CompanyShipmentMethodsCollectionRequestBuilder {
+ bb := &CompanyShipmentMethodsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shipmentMethods"
+ return bb
+}
+
+// CompanyShipmentMethodsCollectionRequestBuilder is request builder for ShipmentMethod collection
+type CompanyShipmentMethodsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ShipmentMethod collection
+func (b *CompanyShipmentMethodsCollectionRequestBuilder) Request() *CompanyShipmentMethodsCollectionRequest {
+ return &CompanyShipmentMethodsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ShipmentMethod item
+func (b *CompanyShipmentMethodsCollectionRequestBuilder) ID(id string) *ShipmentMethodRequestBuilder {
+ bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyShipmentMethodsCollectionRequest is request for ShipmentMethod collection
+type CompanyShipmentMethodsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ShipmentMethod collection
+func (r *CompanyShipmentMethodsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ShipmentMethod, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ShipmentMethod
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ShipmentMethod
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ShipmentMethod collection, max N pages
+func (r *CompanyShipmentMethodsCollectionRequest) GetN(ctx context.Context, n int) ([]ShipmentMethod, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ShipmentMethod collection
+func (r *CompanyShipmentMethodsCollectionRequest) Get(ctx context.Context) ([]ShipmentMethod, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ShipmentMethod collection
+func (r *CompanyShipmentMethodsCollectionRequest) Add(ctx context.Context, reqObj *ShipmentMethod) (resObj *ShipmentMethod, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaxAreas returns request builder for TaxArea collection
+func (b *CompanyRequestBuilder) TaxAreas() *CompanyTaxAreasCollectionRequestBuilder {
+ bb := &CompanyTaxAreasCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taxAreas"
+ return bb
+}
+
+// CompanyTaxAreasCollectionRequestBuilder is request builder for TaxArea collection
+type CompanyTaxAreasCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TaxArea collection
+func (b *CompanyTaxAreasCollectionRequestBuilder) Request() *CompanyTaxAreasCollectionRequest {
+ return &CompanyTaxAreasCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TaxArea item
+func (b *CompanyTaxAreasCollectionRequestBuilder) ID(id string) *TaxAreaRequestBuilder {
+ bb := &TaxAreaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyTaxAreasCollectionRequest is request for TaxArea collection
+type CompanyTaxAreasCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TaxArea collection
+func (r *CompanyTaxAreasCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TaxArea, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TaxArea
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TaxArea
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TaxArea collection, max N pages
+func (r *CompanyTaxAreasCollectionRequest) GetN(ctx context.Context, n int) ([]TaxArea, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TaxArea collection
+func (r *CompanyTaxAreasCollectionRequest) Get(ctx context.Context) ([]TaxArea, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TaxArea collection
+func (r *CompanyTaxAreasCollectionRequest) Add(ctx context.Context, reqObj *TaxArea) (resObj *TaxArea, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaxGroups returns request builder for TaxGroup collection
+func (b *CompanyRequestBuilder) TaxGroups() *CompanyTaxGroupsCollectionRequestBuilder {
+ bb := &CompanyTaxGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taxGroups"
+ return bb
+}
+
+// CompanyTaxGroupsCollectionRequestBuilder is request builder for TaxGroup collection
+type CompanyTaxGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TaxGroup collection
+func (b *CompanyTaxGroupsCollectionRequestBuilder) Request() *CompanyTaxGroupsCollectionRequest {
+ return &CompanyTaxGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TaxGroup item
+func (b *CompanyTaxGroupsCollectionRequestBuilder) ID(id string) *TaxGroupRequestBuilder {
+ bb := &TaxGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyTaxGroupsCollectionRequest is request for TaxGroup collection
+type CompanyTaxGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TaxGroup collection
+func (r *CompanyTaxGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TaxGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TaxGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TaxGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TaxGroup collection, max N pages
+func (r *CompanyTaxGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]TaxGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TaxGroup collection
+func (r *CompanyTaxGroupsCollectionRequest) Get(ctx context.Context) ([]TaxGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TaxGroup collection
+func (r *CompanyTaxGroupsCollectionRequest) Add(ctx context.Context, reqObj *TaxGroup) (resObj *TaxGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UnitsOfMeasure returns request builder for UnitOfMeasure collection
+func (b *CompanyRequestBuilder) UnitsOfMeasure() *CompanyUnitsOfMeasureCollectionRequestBuilder {
+ bb := &CompanyUnitsOfMeasureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/unitsOfMeasure"
+ return bb
+}
+
+// CompanyUnitsOfMeasureCollectionRequestBuilder is request builder for UnitOfMeasure collection
+type CompanyUnitsOfMeasureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UnitOfMeasure collection
+func (b *CompanyUnitsOfMeasureCollectionRequestBuilder) Request() *CompanyUnitsOfMeasureCollectionRequest {
+ return &CompanyUnitsOfMeasureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UnitOfMeasure item
+func (b *CompanyUnitsOfMeasureCollectionRequestBuilder) ID(id string) *UnitOfMeasureRequestBuilder {
+ bb := &UnitOfMeasureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyUnitsOfMeasureCollectionRequest is request for UnitOfMeasure collection
+type CompanyUnitsOfMeasureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UnitOfMeasure collection
+func (r *CompanyUnitsOfMeasureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UnitOfMeasure, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UnitOfMeasure
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UnitOfMeasure
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UnitOfMeasure collection, max N pages
+func (r *CompanyUnitsOfMeasureCollectionRequest) GetN(ctx context.Context, n int) ([]UnitOfMeasure, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UnitOfMeasure collection
+func (r *CompanyUnitsOfMeasureCollectionRequest) Get(ctx context.Context) ([]UnitOfMeasure, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UnitOfMeasure collection
+func (r *CompanyUnitsOfMeasureCollectionRequest) Add(ctx context.Context, reqObj *UnitOfMeasure) (resObj *UnitOfMeasure, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Vendors returns request builder for Vendor collection
+func (b *CompanyRequestBuilder) Vendors() *CompanyVendorsCollectionRequestBuilder {
+ bb := &CompanyVendorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/vendors"
+ return bb
+}
+
+// CompanyVendorsCollectionRequestBuilder is request builder for Vendor collection
+type CompanyVendorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Vendor collection
+func (b *CompanyVendorsCollectionRequestBuilder) Request() *CompanyVendorsCollectionRequest {
+ return &CompanyVendorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Vendor item
+func (b *CompanyVendorsCollectionRequestBuilder) ID(id string) *VendorRequestBuilder {
+ bb := &VendorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CompanyVendorsCollectionRequest is request for Vendor collection
+type CompanyVendorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Vendor collection
+func (r *CompanyVendorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Vendor, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Vendor
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Vendor
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Vendor collection, max N pages
+func (r *CompanyVendorsCollectionRequest) GetN(ctx context.Context, n int) ([]Vendor, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Vendor collection
+func (r *CompanyVendorsCollectionRequest) Get(ctx context.Context) ([]Vendor, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Vendor collection
+func (r *CompanyVendorsCollectionRequest) Add(ctx context.Context, reqObj *Vendor) (resObj *Vendor, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionConditional.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionConditional.go
new file mode 100644
index 00000000..93abd908
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionConditional.go
@@ -0,0 +1,216 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// NamedLocations returns request builder for NamedLocation collection
+func (b *ConditionalAccessRootRequestBuilder) NamedLocations() *ConditionalAccessRootNamedLocationsCollectionRequestBuilder {
+ bb := &ConditionalAccessRootNamedLocationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/namedLocations"
+ return bb
+}
+
+// ConditionalAccessRootNamedLocationsCollectionRequestBuilder is request builder for NamedLocation collection
+type ConditionalAccessRootNamedLocationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for NamedLocation collection
+func (b *ConditionalAccessRootNamedLocationsCollectionRequestBuilder) Request() *ConditionalAccessRootNamedLocationsCollectionRequest {
+ return &ConditionalAccessRootNamedLocationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for NamedLocation item
+func (b *ConditionalAccessRootNamedLocationsCollectionRequestBuilder) ID(id string) *NamedLocationRequestBuilder {
+ bb := &NamedLocationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ConditionalAccessRootNamedLocationsCollectionRequest is request for NamedLocation collection
+type ConditionalAccessRootNamedLocationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for NamedLocation collection
+func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]NamedLocation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []NamedLocation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []NamedLocation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for NamedLocation collection, max N pages
+func (r *ConditionalAccessRootNamedLocationsCollectionRequest) GetN(ctx context.Context, n int) ([]NamedLocation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for NamedLocation collection
+func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Get(ctx context.Context) ([]NamedLocation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for NamedLocation collection
+func (r *ConditionalAccessRootNamedLocationsCollectionRequest) Add(ctx context.Context, reqObj *NamedLocation) (resObj *NamedLocation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for ConditionalAccessPolicy collection
+func (b *ConditionalAccessRootRequestBuilder) Policies() *ConditionalAccessRootPoliciesCollectionRequestBuilder {
+ bb := &ConditionalAccessRootPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// ConditionalAccessRootPoliciesCollectionRequestBuilder is request builder for ConditionalAccessPolicy collection
+type ConditionalAccessRootPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConditionalAccessPolicy collection
+func (b *ConditionalAccessRootPoliciesCollectionRequestBuilder) Request() *ConditionalAccessRootPoliciesCollectionRequest {
+ return &ConditionalAccessRootPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConditionalAccessPolicy item
+func (b *ConditionalAccessRootPoliciesCollectionRequestBuilder) ID(id string) *ConditionalAccessPolicyRequestBuilder {
+ bb := &ConditionalAccessPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ConditionalAccessRootPoliciesCollectionRequest is request for ConditionalAccessPolicy collection
+type ConditionalAccessRootPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConditionalAccessPolicy collection
+func (r *ConditionalAccessRootPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConditionalAccessPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConditionalAccessPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConditionalAccessPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ConditionalAccessPolicy collection, max N pages
+func (r *ConditionalAccessRootPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]ConditionalAccessPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ConditionalAccessPolicy collection
+func (r *ConditionalAccessRootPoliciesCollectionRequest) Get(ctx context.Context) ([]ConditionalAccessPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ConditionalAccessPolicy collection
+func (r *ConditionalAccessRootPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ConditionalAccessPolicy) (resObj *ConditionalAccessPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionContact.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionContact.go
new file mode 100644
index 00000000..b27a67f8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionContact.go
@@ -0,0 +1,733 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Extensions returns request builder for Extension collection
+func (b *ContactRequestBuilder) Extensions() *ContactExtensionsCollectionRequestBuilder {
+ bb := &ContactExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// ContactExtensionsCollectionRequestBuilder is request builder for Extension collection
+type ContactExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *ContactExtensionsCollectionRequestBuilder) Request() *ContactExtensionsCollectionRequest {
+ return &ContactExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *ContactExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactExtensionsCollectionRequest is request for Extension collection
+type ContactExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *ContactExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Extension collection, max N pages
+func (r *ContactExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Extension collection
+func (r *ContactExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Extension collection
+func (r *ContactExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *ContactRequestBuilder) MultiValueExtendedProperties() *ContactMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &ContactMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// ContactMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type ContactMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *ContactMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactMultiValueExtendedPropertiesCollectionRequest {
+ return &ContactMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *ContactMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type ContactMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages
+func (r *ContactMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *ContactMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Photo is navigation property
+func (b *ContactRequestBuilder) Photo() *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photo"
+ return bb
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *ContactRequestBuilder) SingleValueExtendedProperties() *ContactSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &ContactSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// ContactSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type ContactSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *ContactSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactSingleValueExtendedPropertiesCollectionRequest {
+ return &ContactSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *ContactSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type ContactSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages
+func (r *ContactSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *ContactSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ChildFolders returns request builder for ContactFolder collection
+func (b *ContactFolderRequestBuilder) ChildFolders() *ContactFolderChildFoldersCollectionRequestBuilder {
+ bb := &ContactFolderChildFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/childFolders"
+ return bb
+}
+
+// ContactFolderChildFoldersCollectionRequestBuilder is request builder for ContactFolder collection
+type ContactFolderChildFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ContactFolder collection
+func (b *ContactFolderChildFoldersCollectionRequestBuilder) Request() *ContactFolderChildFoldersCollectionRequest {
+ return &ContactFolderChildFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ContactFolder item
+func (b *ContactFolderChildFoldersCollectionRequestBuilder) ID(id string) *ContactFolderRequestBuilder {
+ bb := &ContactFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactFolderChildFoldersCollectionRequest is request for ContactFolder collection
+type ContactFolderChildFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ContactFolder collection
+func (r *ContactFolderChildFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ContactFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ContactFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ContactFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ContactFolder collection, max N pages
+func (r *ContactFolderChildFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]ContactFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ContactFolder collection
+func (r *ContactFolderChildFoldersCollectionRequest) Get(ctx context.Context) ([]ContactFolder, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ContactFolder collection
+func (r *ContactFolderChildFoldersCollectionRequest) Add(ctx context.Context, reqObj *ContactFolder) (resObj *ContactFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Contacts returns request builder for Contact collection
+func (b *ContactFolderRequestBuilder) Contacts() *ContactFolderContactsCollectionRequestBuilder {
+ bb := &ContactFolderContactsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contacts"
+ return bb
+}
+
+// ContactFolderContactsCollectionRequestBuilder is request builder for Contact collection
+type ContactFolderContactsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Contact collection
+func (b *ContactFolderContactsCollectionRequestBuilder) Request() *ContactFolderContactsCollectionRequest {
+ return &ContactFolderContactsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Contact item
+func (b *ContactFolderContactsCollectionRequestBuilder) ID(id string) *ContactRequestBuilder {
+ bb := &ContactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactFolderContactsCollectionRequest is request for Contact collection
+type ContactFolderContactsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Contact collection
+func (r *ContactFolderContactsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Contact, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Contact
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Contact
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Contact collection, max N pages
+func (r *ContactFolderContactsCollectionRequest) GetN(ctx context.Context, n int) ([]Contact, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Contact collection
+func (r *ContactFolderContactsCollectionRequest) Get(ctx context.Context) ([]Contact, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Contact collection
+func (r *ContactFolderContactsCollectionRequest) Add(ctx context.Context, reqObj *Contact) (resObj *Contact, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *ContactFolderRequestBuilder) MultiValueExtendedProperties() *ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactFolderMultiValueExtendedPropertiesCollectionRequest {
+ return &ContactFolderMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *ContactFolderMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactFolderMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type ContactFolderMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages
+func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *ContactFolderMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *ContactFolderRequestBuilder) SingleValueExtendedProperties() *ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *ContactFolderSingleValueExtendedPropertiesCollectionRequest {
+ return &ContactFolderSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *ContactFolderSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContactFolderSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type ContactFolderSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages
+func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *ContactFolderSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionContent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionContent.go
new file mode 100644
index 00000000..9594ef8b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionContent.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ColumnLinks returns request builder for ColumnLink collection
+func (b *ContentTypeRequestBuilder) ColumnLinks() *ContentTypeColumnLinksCollectionRequestBuilder {
+ bb := &ContentTypeColumnLinksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/columnLinks"
+ return bb
+}
+
+// ContentTypeColumnLinksCollectionRequestBuilder is request builder for ColumnLink collection
+type ContentTypeColumnLinksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ColumnLink collection
+func (b *ContentTypeColumnLinksCollectionRequestBuilder) Request() *ContentTypeColumnLinksCollectionRequest {
+ return &ContentTypeColumnLinksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ColumnLink item
+func (b *ContentTypeColumnLinksCollectionRequestBuilder) ID(id string) *ColumnLinkRequestBuilder {
+ bb := &ColumnLinkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ContentTypeColumnLinksCollectionRequest is request for ColumnLink collection
+type ContentTypeColumnLinksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ColumnLink collection
+func (r *ContentTypeColumnLinksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ColumnLink, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ColumnLink
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ColumnLink
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ColumnLink collection, max N pages
+func (r *ContentTypeColumnLinksCollectionRequest) GetN(ctx context.Context, n int) ([]ColumnLink, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ColumnLink collection
+func (r *ContentTypeColumnLinksCollectionRequest) Get(ctx context.Context) ([]ColumnLink, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ColumnLink collection
+func (r *ContentTypeColumnLinksCollectionRequest) Add(ctx context.Context, reqObj *ColumnLink) (resObj *ColumnLink, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionConversation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionConversation.go
new file mode 100644
index 00000000..165761ef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionConversation.go
@@ -0,0 +1,222 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ConversationThreadReplyRequestParameter undocumented
+type ConversationThreadReplyRequestParameter struct {
+ // Post undocumented
+ Post *Post `json:"Post,omitempty"`
+}
+
+// Threads returns request builder for ConversationThread collection
+func (b *ConversationRequestBuilder) Threads() *ConversationThreadsCollectionRequestBuilder {
+ bb := &ConversationThreadsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/threads"
+ return bb
+}
+
+// ConversationThreadsCollectionRequestBuilder is request builder for ConversationThread collection
+type ConversationThreadsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConversationThread collection
+func (b *ConversationThreadsCollectionRequestBuilder) Request() *ConversationThreadsCollectionRequest {
+ return &ConversationThreadsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConversationThread item
+func (b *ConversationThreadsCollectionRequestBuilder) ID(id string) *ConversationThreadRequestBuilder {
+ bb := &ConversationThreadRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ConversationThreadsCollectionRequest is request for ConversationThread collection
+type ConversationThreadsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConversationThread collection
+func (r *ConversationThreadsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConversationThread, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConversationThread
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConversationThread
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ConversationThread collection, max N pages
+func (r *ConversationThreadsCollectionRequest) GetN(ctx context.Context, n int) ([]ConversationThread, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ConversationThread collection
+func (r *ConversationThreadsCollectionRequest) Get(ctx context.Context) ([]ConversationThread, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ConversationThread collection
+func (r *ConversationThreadsCollectionRequest) Add(ctx context.Context, reqObj *ConversationThread) (resObj *ConversationThread, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Posts returns request builder for Post collection
+func (b *ConversationThreadRequestBuilder) Posts() *ConversationThreadPostsCollectionRequestBuilder {
+ bb := &ConversationThreadPostsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/posts"
+ return bb
+}
+
+// ConversationThreadPostsCollectionRequestBuilder is request builder for Post collection
+type ConversationThreadPostsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Post collection
+func (b *ConversationThreadPostsCollectionRequestBuilder) Request() *ConversationThreadPostsCollectionRequest {
+ return &ConversationThreadPostsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Post item
+func (b *ConversationThreadPostsCollectionRequestBuilder) ID(id string) *PostRequestBuilder {
+ bb := &PostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ConversationThreadPostsCollectionRequest is request for Post collection
+type ConversationThreadPostsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Post collection
+func (r *ConversationThreadPostsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Post, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Post
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Post
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Post collection, max N pages
+func (r *ConversationThreadPostsCollectionRequest) GetN(ctx context.Context, n int) ([]Post, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Post collection
+func (r *ConversationThreadPostsCollectionRequest) Get(ctx context.Context) ([]Post, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Post collection
+func (r *ConversationThreadPostsCollectionRequest) Add(ctx context.Context, reqObj *Post) (resObj *Post, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionCustomer.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCustomer.go
new file mode 100644
index 00000000..8c323217
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionCustomer.go
@@ -0,0 +1,258 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Currency is navigation property
+func (b *CustomerRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// PaymentMethod is navigation property
+func (b *CustomerRequestBuilder) PaymentMethod() *PaymentMethodRequestBuilder {
+ bb := &PaymentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentMethod"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *CustomerRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// Picture returns request builder for Picture collection
+func (b *CustomerRequestBuilder) Picture() *CustomerPictureCollectionRequestBuilder {
+ bb := &CustomerPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// CustomerPictureCollectionRequestBuilder is request builder for Picture collection
+type CustomerPictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *CustomerPictureCollectionRequestBuilder) Request() *CustomerPictureCollectionRequest {
+ return &CustomerPictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *CustomerPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CustomerPictureCollectionRequest is request for Picture collection
+type CustomerPictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *CustomerPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Picture collection, max N pages
+func (r *CustomerPictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Picture collection
+func (r *CustomerPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Picture collection
+func (r *CustomerPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ShipmentMethod is navigation property
+func (b *CustomerRequestBuilder) ShipmentMethod() *ShipmentMethodRequestBuilder {
+ bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shipmentMethod"
+ return bb
+}
+
+// Customer is navigation property
+func (b *CustomerPaymentRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
+
+// Account is navigation property
+func (b *CustomerPaymentJournalRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// CustomerPayments returns request builder for CustomerPayment collection
+func (b *CustomerPaymentJournalRequestBuilder) CustomerPayments() *CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder {
+ bb := &CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customerPayments"
+ return bb
+}
+
+// CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder is request builder for CustomerPayment collection
+type CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CustomerPayment collection
+func (b *CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder) Request() *CustomerPaymentJournalCustomerPaymentsCollectionRequest {
+ return &CustomerPaymentJournalCustomerPaymentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CustomerPayment item
+func (b *CustomerPaymentJournalCustomerPaymentsCollectionRequestBuilder) ID(id string) *CustomerPaymentRequestBuilder {
+ bb := &CustomerPaymentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// CustomerPaymentJournalCustomerPaymentsCollectionRequest is request for CustomerPayment collection
+type CustomerPaymentJournalCustomerPaymentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CustomerPayment collection
+func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CustomerPayment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CustomerPayment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CustomerPayment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CustomerPayment collection, max N pages
+func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) GetN(ctx context.Context, n int) ([]CustomerPayment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CustomerPayment collection
+func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Get(ctx context.Context) ([]CustomerPayment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CustomerPayment collection
+func (r *CustomerPaymentJournalCustomerPaymentsCollectionRequest) Add(ctx context.Context, reqObj *CustomerPayment) (resObj *CustomerPayment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionData.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionData.go
new file mode 100644
index 00000000..567e2548
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionData.go
@@ -0,0 +1,1250 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DataLossPreventionPolicyCollectionEvaluateRequestParameter undocumented
+type DataLossPreventionPolicyCollectionEvaluateRequestParameter struct {
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // EvaluationInput undocumented
+ EvaluationInput *DlpEvaluationInput `json:"evaluationInput,omitempty"`
+ // NotificationInfo undocumented
+ NotificationInfo *DlpNotification `json:"notificationInfo,omitempty"`
+}
+
+// DataSharingConsentConsentToDataSharingRequestParameter undocumented
+type DataSharingConsentConsentToDataSharingRequestParameter struct {
+}
+
+// ClassifyFile returns request builder for FileClassificationRequestObject collection
+func (b *DataClassificationServiceRequestBuilder) ClassifyFile() *DataClassificationServiceClassifyFileCollectionRequestBuilder {
+ bb := &DataClassificationServiceClassifyFileCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classifyFile"
+ return bb
+}
+
+// DataClassificationServiceClassifyFileCollectionRequestBuilder is request builder for FileClassificationRequestObject collection
+type DataClassificationServiceClassifyFileCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for FileClassificationRequestObject collection
+func (b *DataClassificationServiceClassifyFileCollectionRequestBuilder) Request() *DataClassificationServiceClassifyFileCollectionRequest {
+ return &DataClassificationServiceClassifyFileCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for FileClassificationRequestObject item
+func (b *DataClassificationServiceClassifyFileCollectionRequestBuilder) ID(id string) *FileClassificationRequestObjectRequestBuilder {
+ bb := &FileClassificationRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceClassifyFileCollectionRequest is request for FileClassificationRequestObject collection
+type DataClassificationServiceClassifyFileCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for FileClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyFileCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]FileClassificationRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []FileClassificationRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []FileClassificationRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for FileClassificationRequestObject collection, max N pages
+func (r *DataClassificationServiceClassifyFileCollectionRequest) GetN(ctx context.Context, n int) ([]FileClassificationRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for FileClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyFileCollectionRequest) Get(ctx context.Context) ([]FileClassificationRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for FileClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyFileCollectionRequest) Add(ctx context.Context, reqObj *FileClassificationRequestObject) (resObj *FileClassificationRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ClassifyFileJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) ClassifyFileJobs() *DataClassificationServiceClassifyFileJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceClassifyFileJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classifyFileJobs"
+ return bb
+}
+
+// DataClassificationServiceClassifyFileJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceClassifyFileJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceClassifyFileJobsCollectionRequestBuilder) Request() *DataClassificationServiceClassifyFileJobsCollectionRequest {
+ return &DataClassificationServiceClassifyFileJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceClassifyFileJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceClassifyFileJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceClassifyFileJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for JobResponseBase collection, max N pages
+func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyFileJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ClassifyText returns request builder for TextClassificationRequestObject collection
+func (b *DataClassificationServiceRequestBuilder) ClassifyText() *DataClassificationServiceClassifyTextCollectionRequestBuilder {
+ bb := &DataClassificationServiceClassifyTextCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classifyText"
+ return bb
+}
+
+// DataClassificationServiceClassifyTextCollectionRequestBuilder is request builder for TextClassificationRequestObject collection
+type DataClassificationServiceClassifyTextCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TextClassificationRequestObject collection
+func (b *DataClassificationServiceClassifyTextCollectionRequestBuilder) Request() *DataClassificationServiceClassifyTextCollectionRequest {
+ return &DataClassificationServiceClassifyTextCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TextClassificationRequestObject item
+func (b *DataClassificationServiceClassifyTextCollectionRequestBuilder) ID(id string) *TextClassificationRequestObjectRequestBuilder {
+ bb := &TextClassificationRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceClassifyTextCollectionRequest is request for TextClassificationRequestObject collection
+type DataClassificationServiceClassifyTextCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TextClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyTextCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TextClassificationRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TextClassificationRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TextClassificationRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TextClassificationRequestObject collection, max N pages
+func (r *DataClassificationServiceClassifyTextCollectionRequest) GetN(ctx context.Context, n int) ([]TextClassificationRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TextClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyTextCollectionRequest) Get(ctx context.Context) ([]TextClassificationRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TextClassificationRequestObject collection
+func (r *DataClassificationServiceClassifyTextCollectionRequest) Add(ctx context.Context, reqObj *TextClassificationRequestObject) (resObj *TextClassificationRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ClassifyTextJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) ClassifyTextJobs() *DataClassificationServiceClassifyTextJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceClassifyTextJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classifyTextJobs"
+ return bb
+}
+
+// DataClassificationServiceClassifyTextJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceClassifyTextJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceClassifyTextJobsCollectionRequestBuilder) Request() *DataClassificationServiceClassifyTextJobsCollectionRequest {
+ return &DataClassificationServiceClassifyTextJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceClassifyTextJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceClassifyTextJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceClassifyTextJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for JobResponseBase collection, max N pages
+func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceClassifyTextJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EvaluateDlpPoliciesJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) EvaluateDlpPoliciesJobs() *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/evaluateDlpPoliciesJobs"
+ return bb
+}
+
+// DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder) Request() *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest {
+ return &DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for JobResponseBase collection, max N pages
+func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateDlpPoliciesJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EvaluateLabelJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) EvaluateLabelJobs() *DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/evaluateLabelJobs"
+ return bb
+}
+
+// DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder) Request() *DataClassificationServiceEvaluateLabelJobsCollectionRequest {
+ return &DataClassificationServiceEvaluateLabelJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceEvaluateLabelJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceEvaluateLabelJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceEvaluateLabelJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for JobResponseBase collection, max N pages
+func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceEvaluateLabelJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExactMatchDataStores returns request builder for ExactMatchDataStore collection
+func (b *DataClassificationServiceRequestBuilder) ExactMatchDataStores() *DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder {
+ bb := &DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exactMatchDataStores"
+ return bb
+}
+
+// DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder is request builder for ExactMatchDataStore collection
+type DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExactMatchDataStore collection
+func (b *DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder) Request() *DataClassificationServiceExactMatchDataStoresCollectionRequest {
+ return &DataClassificationServiceExactMatchDataStoresCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExactMatchDataStore item
+func (b *DataClassificationServiceExactMatchDataStoresCollectionRequestBuilder) ID(id string) *ExactMatchDataStoreRequestBuilder {
+ bb := &ExactMatchDataStoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceExactMatchDataStoresCollectionRequest is request for ExactMatchDataStore collection
+type DataClassificationServiceExactMatchDataStoresCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExactMatchDataStore collection
+func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExactMatchDataStore, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExactMatchDataStore
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExactMatchDataStore
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ExactMatchDataStore collection, max N pages
+func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) GetN(ctx context.Context, n int) ([]ExactMatchDataStore, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ExactMatchDataStore collection
+func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Get(ctx context.Context) ([]ExactMatchDataStore, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ExactMatchDataStore collection
+func (r *DataClassificationServiceExactMatchDataStoresCollectionRequest) Add(ctx context.Context, reqObj *ExactMatchDataStore) (resObj *ExactMatchDataStore, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExactMatchUploadAgents returns request builder for ExactMatchUploadAgent collection
+func (b *DataClassificationServiceRequestBuilder) ExactMatchUploadAgents() *DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder {
+ bb := &DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exactMatchUploadAgents"
+ return bb
+}
+
+// DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder is request builder for ExactMatchUploadAgent collection
+type DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExactMatchUploadAgent collection
+func (b *DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder) Request() *DataClassificationServiceExactMatchUploadAgentsCollectionRequest {
+ return &DataClassificationServiceExactMatchUploadAgentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExactMatchUploadAgent item
+func (b *DataClassificationServiceExactMatchUploadAgentsCollectionRequestBuilder) ID(id string) *ExactMatchUploadAgentRequestBuilder {
+ bb := &ExactMatchUploadAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceExactMatchUploadAgentsCollectionRequest is request for ExactMatchUploadAgent collection
+type DataClassificationServiceExactMatchUploadAgentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExactMatchUploadAgent collection
+func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExactMatchUploadAgent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExactMatchUploadAgent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExactMatchUploadAgent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ExactMatchUploadAgent collection, max N pages
+func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) GetN(ctx context.Context, n int) ([]ExactMatchUploadAgent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ExactMatchUploadAgent collection
+func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Get(ctx context.Context) ([]ExactMatchUploadAgent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ExactMatchUploadAgent collection
+func (r *DataClassificationServiceExactMatchUploadAgentsCollectionRequest) Add(ctx context.Context, reqObj *ExactMatchUploadAgent) (resObj *ExactMatchUploadAgent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Jobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) Jobs() *DataClassificationServiceJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/jobs"
+ return bb
+}
+
+// DataClassificationServiceJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceJobsCollectionRequestBuilder) Request() *DataClassificationServiceJobsCollectionRequest {
+ return &DataClassificationServiceJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for JobResponseBase collection, max N pages
+func (r *DataClassificationServiceJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LabelsAndPoliciesEvaluationJobs returns request builder for JobResponseBase collection
+func (b *DataClassificationServiceRequestBuilder) LabelsAndPoliciesEvaluationJobs() *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder {
+ bb := &DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/labelsAndPoliciesEvaluationJobs"
+ return bb
+}
+
+// DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder is request builder for JobResponseBase collection
+type DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JobResponseBase collection
+func (b *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder) Request() *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest {
+ return &DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JobResponseBase item
+func (b *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequestBuilder) ID(id string) *JobResponseBaseRequestBuilder {
+ bb := &JobResponseBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest is request for JobResponseBase collection
+type DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JobResponseBase collection
+func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JobResponseBase, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JobResponseBase
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JobResponseBase
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for JobResponseBase collection, max N pages
+func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) GetN(ctx context.Context, n int) ([]JobResponseBase, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for JobResponseBase collection
+func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Get(ctx context.Context) ([]JobResponseBase, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for JobResponseBase collection
+func (r *DataClassificationServiceLabelsAndPoliciesEvaluationJobsCollectionRequest) Add(ctx context.Context, reqObj *JobResponseBase) (resObj *JobResponseBase, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SensitiveTypes returns request builder for SensitiveType collection
+func (b *DataClassificationServiceRequestBuilder) SensitiveTypes() *DataClassificationServiceSensitiveTypesCollectionRequestBuilder {
+ bb := &DataClassificationServiceSensitiveTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sensitiveTypes"
+ return bb
+}
+
+// DataClassificationServiceSensitiveTypesCollectionRequestBuilder is request builder for SensitiveType collection
+type DataClassificationServiceSensitiveTypesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SensitiveType collection
+func (b *DataClassificationServiceSensitiveTypesCollectionRequestBuilder) Request() *DataClassificationServiceSensitiveTypesCollectionRequest {
+ return &DataClassificationServiceSensitiveTypesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SensitiveType item
+func (b *DataClassificationServiceSensitiveTypesCollectionRequestBuilder) ID(id string) *SensitiveTypeRequestBuilder {
+ bb := &SensitiveTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceSensitiveTypesCollectionRequest is request for SensitiveType collection
+type DataClassificationServiceSensitiveTypesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SensitiveType collection
+func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SensitiveType, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SensitiveType
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SensitiveType
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SensitiveType collection, max N pages
+func (r *DataClassificationServiceSensitiveTypesCollectionRequest) GetN(ctx context.Context, n int) ([]SensitiveType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SensitiveType collection
+func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Get(ctx context.Context) ([]SensitiveType, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SensitiveType collection
+func (r *DataClassificationServiceSensitiveTypesCollectionRequest) Add(ctx context.Context, reqObj *SensitiveType) (resObj *SensitiveType, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SensitivityLabels returns request builder for SensitivityLabel collection
+func (b *DataClassificationServiceRequestBuilder) SensitivityLabels() *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder {
+ bb := &DataClassificationServiceSensitivityLabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sensitivityLabels"
+ return bb
+}
+
+// DataClassificationServiceSensitivityLabelsCollectionRequestBuilder is request builder for SensitivityLabel collection
+type DataClassificationServiceSensitivityLabelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SensitivityLabel collection
+func (b *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder) Request() *DataClassificationServiceSensitivityLabelsCollectionRequest {
+ return &DataClassificationServiceSensitivityLabelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SensitivityLabel item
+func (b *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder) ID(id string) *SensitivityLabelRequestBuilder {
+ bb := &SensitivityLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DataClassificationServiceSensitivityLabelsCollectionRequest is request for SensitivityLabel collection
+type DataClassificationServiceSensitivityLabelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SensitivityLabel collection
+func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SensitivityLabel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SensitivityLabel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SensitivityLabel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SensitivityLabel collection, max N pages
+func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) GetN(ctx context.Context, n int) ([]SensitivityLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SensitivityLabel collection
+func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SensitivityLabel collection
+func (r *DataClassificationServiceSensitivityLabelsCollectionRequest) Add(ctx context.Context, reqObj *SensitivityLabel) (resObj *SensitivityLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDefault.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDefault.go
new file mode 100644
index 00000000..3ce9f092
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDefault.go
@@ -0,0 +1,121 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Apps returns request builder for ManagedMobileApp collection
+func (b *DefaultManagedAppProtectionRequestBuilder) Apps() *DefaultManagedAppProtectionAppsCollectionRequestBuilder {
+ bb := &DefaultManagedAppProtectionAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// DefaultManagedAppProtectionAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection
+type DefaultManagedAppProtectionAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedMobileApp collection
+func (b *DefaultManagedAppProtectionAppsCollectionRequestBuilder) Request() *DefaultManagedAppProtectionAppsCollectionRequest {
+ return &DefaultManagedAppProtectionAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedMobileApp item
+func (b *DefaultManagedAppProtectionAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder {
+ bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DefaultManagedAppProtectionAppsCollectionRequest is request for ManagedMobileApp collection
+type DefaultManagedAppProtectionAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedMobileApp collection
+func (r *DefaultManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedMobileApp collection, max N pages
+func (r *DefaultManagedAppProtectionAppsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *DefaultManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedMobileApp collection
+func (r *DefaultManagedAppProtectionAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploymentSummary is navigation property
+func (b *DefaultManagedAppProtectionRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder {
+ bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentSummary"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDep.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDep.go
new file mode 100644
index 00000000..eb3613df
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDep.go
@@ -0,0 +1,250 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DepOnboardingSettingUploadDepTokenRequestParameter undocumented
+type DepOnboardingSettingUploadDepTokenRequestParameter struct {
+ // AppleID undocumented
+ AppleID *string `json:"appleId,omitempty"`
+ // DepToken undocumented
+ DepToken *string `json:"depToken,omitempty"`
+}
+
+// DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestParameter undocumented
+type DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestParameter struct {
+}
+
+// DepOnboardingSettingShareForSchoolDataSyncServiceRequestParameter undocumented
+type DepOnboardingSettingShareForSchoolDataSyncServiceRequestParameter struct {
+}
+
+// DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestParameter undocumented
+type DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestParameter struct {
+}
+
+// DefaultIOSEnrollmentProfile is navigation property
+func (b *DepOnboardingSettingRequestBuilder) DefaultIOSEnrollmentProfile() *DepIOSEnrollmentProfileRequestBuilder {
+ bb := &DepIOSEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/defaultIosEnrollmentProfile"
+ return bb
+}
+
+// DefaultMacOsEnrollmentProfile is navigation property
+func (b *DepOnboardingSettingRequestBuilder) DefaultMacOsEnrollmentProfile() *DepMacOSEnrollmentProfileRequestBuilder {
+ bb := &DepMacOSEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/defaultMacOsEnrollmentProfile"
+ return bb
+}
+
+// EnrollmentProfiles returns request builder for EnrollmentProfile collection
+func (b *DepOnboardingSettingRequestBuilder) EnrollmentProfiles() *DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder {
+ bb := &DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/enrollmentProfiles"
+ return bb
+}
+
+// DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder is request builder for EnrollmentProfile collection
+type DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EnrollmentProfile collection
+func (b *DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder) Request() *DepOnboardingSettingEnrollmentProfilesCollectionRequest {
+ return &DepOnboardingSettingEnrollmentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EnrollmentProfile item
+func (b *DepOnboardingSettingEnrollmentProfilesCollectionRequestBuilder) ID(id string) *EnrollmentProfileRequestBuilder {
+ bb := &EnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DepOnboardingSettingEnrollmentProfilesCollectionRequest is request for EnrollmentProfile collection
+type DepOnboardingSettingEnrollmentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EnrollmentProfile collection
+func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EnrollmentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EnrollmentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EnrollmentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EnrollmentProfile collection, max N pages
+func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]EnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EnrollmentProfile collection
+func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]EnrollmentProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EnrollmentProfile collection
+func (r *DepOnboardingSettingEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *EnrollmentProfile) (resObj *EnrollmentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ImportedAppleDeviceIdentities returns request builder for ImportedAppleDeviceIdentity collection
+func (b *DepOnboardingSettingRequestBuilder) ImportedAppleDeviceIdentities() *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder {
+ bb := &DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/importedAppleDeviceIdentities"
+ return bb
+}
+
+// DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedAppleDeviceIdentity collection
+type DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImportedAppleDeviceIdentity collection
+func (b *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder) Request() *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest {
+ return &DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImportedAppleDeviceIdentity item
+func (b *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedAppleDeviceIdentityRequestBuilder {
+ bb := &ImportedAppleDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest is request for ImportedAppleDeviceIdentity collection
+type DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImportedAppleDeviceIdentity collection
+func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedAppleDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedAppleDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedAppleDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ImportedAppleDeviceIdentity collection, max N pages
+func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ImportedAppleDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ImportedAppleDeviceIdentity collection
+func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedAppleDeviceIdentity, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ImportedAppleDeviceIdentity collection
+func (r *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedAppleDeviceIdentity) (resObj *ImportedAppleDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go
new file mode 100644
index 00000000..c5761737
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDetected.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagedDevices returns request builder for ManagedDevice collection
+func (b *DetectedAppRequestBuilder) ManagedDevices() *DetectedAppManagedDevicesCollectionRequestBuilder {
+ bb := &DetectedAppManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevices"
+ return bb
+}
+
+// DetectedAppManagedDevicesCollectionRequestBuilder is request builder for ManagedDevice collection
+type DetectedAppManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDevice collection
+func (b *DetectedAppManagedDevicesCollectionRequestBuilder) Request() *DetectedAppManagedDevicesCollectionRequest {
+ return &DetectedAppManagedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDevice item
+func (b *DetectedAppManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DetectedAppManagedDevicesCollectionRequest is request for ManagedDevice collection
+type DetectedAppManagedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDevice collection
+func (r *DetectedAppManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDevice collection, max N pages
+func (r *DetectedAppManagedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDevice collection
+func (r *DetectedAppManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDevice collection
+func (r *DetectedAppManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go
new file mode 100644
index 00000000..83454394
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDevice.go
@@ -0,0 +1,14358 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter undocumented
+type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter struct {
+}
+
+// DeviceConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter undocumented
+type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter struct {
+ // DeviceConfigurationIDs undocumented
+ DeviceConfigurationIDs []string `json:"deviceConfigurationIds,omitempty"`
+}
+
+// DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceManagementScriptCollectionHasPayloadLinksRequestParameter undocumented
+type DeviceManagementScriptCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter undocumented
+type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter struct {
+}
+
+// DeviceAppManagementTaskUpdateStatusRequestParameter undocumented
+type DeviceAppManagementTaskUpdateStatusRequestParameter struct {
+ // Status undocumented
+ Status *DeviceAppManagementTaskStatus `json:"status,omitempty"`
+ // Note undocumented
+ Note *string `json:"note,omitempty"`
+}
+
+// DeviceCompliancePolicyAssignRequestParameter undocumented
+type DeviceCompliancePolicyAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []DeviceCompliancePolicyAssignment `json:"assignments,omitempty"`
+}
+
+// DeviceCompliancePolicyScheduleActionsForRulesRequestParameter undocumented
+type DeviceCompliancePolicyScheduleActionsForRulesRequestParameter struct {
+ // DeviceComplianceScheduledActionForRules undocumented
+ DeviceComplianceScheduledActionForRules []DeviceComplianceScheduledActionForRule `json:"deviceComplianceScheduledActionForRules,omitempty"`
+}
+
+// DeviceConfigurationAssignRequestParameter undocumented
+type DeviceConfigurationAssignRequestParameter struct {
+ // DeviceConfigurationGroupAssignments undocumented
+ DeviceConfigurationGroupAssignments []DeviceConfigurationGroupAssignment `json:"deviceConfigurationGroupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+// DeviceConfigurationWindowsPrivacyAccessControlsRequestParameter undocumented
+type DeviceConfigurationWindowsPrivacyAccessControlsRequestParameter struct {
+ // WindowsPrivacyAccessControls undocumented
+ WindowsPrivacyAccessControls []WindowsPrivacyDataAccessControlItem `json:"windowsPrivacyAccessControls,omitempty"`
+}
+
+// DeviceConfigurationAssignedAccessMultiModeProfilesRequestParameter undocumented
+type DeviceConfigurationAssignedAccessMultiModeProfilesRequestParameter struct {
+ // AssignedAccessMultiModeProfiles undocumented
+ AssignedAccessMultiModeProfiles []WindowsAssignedAccessProfile `json:"assignedAccessMultiModeProfiles,omitempty"`
+}
+
+// DeviceEnrollmentConfigurationSetPriorityRequestParameter undocumented
+type DeviceEnrollmentConfigurationSetPriorityRequestParameter struct {
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+}
+
+// DeviceEnrollmentConfigurationAssignRequestParameter undocumented
+type DeviceEnrollmentConfigurationAssignRequestParameter struct {
+ // EnrollmentConfigurationAssignments undocumented
+ EnrollmentConfigurationAssignments []EnrollmentConfigurationAssignment `json:"enrollmentConfigurationAssignments,omitempty"`
+}
+
+// DeviceHealthScriptAssignRequestParameter undocumented
+type DeviceHealthScriptAssignRequestParameter struct {
+ // DeviceHealthScriptAssignments undocumented
+ DeviceHealthScriptAssignments []DeviceHealthScriptAssignment `json:"deviceHealthScriptAssignments,omitempty"`
+}
+
+// DeviceManagementEnableLegacyPcManagementRequestParameter undocumented
+type DeviceManagementEnableLegacyPcManagementRequestParameter struct {
+}
+
+// DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestParameter undocumented
+type DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestParameter struct {
+}
+
+// DeviceManagementSendCustomNotificationToCompanyPortalRequestParameter undocumented
+type DeviceManagementSendCustomNotificationToCompanyPortalRequestParameter struct {
+ // NotificationTitle undocumented
+ NotificationTitle *string `json:"notificationTitle,omitempty"`
+ // NotificationBody undocumented
+ NotificationBody *string `json:"notificationBody,omitempty"`
+ // GroupsToNotify undocumented
+ GroupsToNotify []string `json:"groupsToNotify,omitempty"`
+}
+
+// DeviceManagementExchangeConnectorSyncRequestParameter undocumented
+type DeviceManagementExchangeConnectorSyncRequestParameter struct {
+ // SyncType undocumented
+ SyncType *DeviceManagementExchangeConnectorSyncType `json:"syncType,omitempty"`
+}
+
+// DeviceManagementIntentUpdateSettingsRequestParameter undocumented
+type DeviceManagementIntentUpdateSettingsRequestParameter struct {
+ // Settings undocumented
+ Settings []DeviceManagementSettingInstance `json:"settings,omitempty"`
+}
+
+// DeviceManagementIntentMigrateToTemplateRequestParameter undocumented
+type DeviceManagementIntentMigrateToTemplateRequestParameter struct {
+ // NewTemplateID undocumented
+ NewTemplateID *string `json:"newTemplateId,omitempty"`
+ // PreserveCustomValues undocumented
+ PreserveCustomValues *bool `json:"preserveCustomValues,omitempty"`
+}
+
+// DeviceManagementIntentAssignRequestParameter undocumented
+type DeviceManagementIntentAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []DeviceManagementIntentAssignment `json:"assignments,omitempty"`
+}
+
+// DeviceManagementReportsGetDeviceNonComplianceReportRequestParameter undocumented
+type DeviceManagementReportsGetDeviceNonComplianceReportRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+ // SessionID undocumented
+ SessionID *string `json:"sessionId,omitempty"`
+ // Filter undocumented
+ Filter *string `json:"filter,omitempty"`
+}
+
+// DeviceManagementReportsGetPolicyNonComplianceReportRequestParameter undocumented
+type DeviceManagementReportsGetPolicyNonComplianceReportRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+ // SessionID undocumented
+ SessionID *string `json:"sessionId,omitempty"`
+ // Filter undocumented
+ Filter *string `json:"filter,omitempty"`
+}
+
+// DeviceManagementReportsGetPolicyNonComplianceMetadataRequestParameter undocumented
+type DeviceManagementReportsGetPolicyNonComplianceMetadataRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+ // SessionID undocumented
+ SessionID *string `json:"sessionId,omitempty"`
+ // Filter undocumented
+ Filter *string `json:"filter,omitempty"`
+}
+
+// DeviceManagementReportsGetHistoricalReportRequestParameter undocumented
+type DeviceManagementReportsGetHistoricalReportRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+ // Filter undocumented
+ Filter *string `json:"filter,omitempty"`
+}
+
+// DeviceManagementReportsGetCachedReportRequestParameter undocumented
+type DeviceManagementReportsGetCachedReportRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Select undocumented
+ Select []string `json:"select,omitempty"`
+ // Search undocumented
+ Search *string `json:"search,omitempty"`
+ // GroupBy undocumented
+ GroupBy []string `json:"groupBy,omitempty"`
+ // OrderBy undocumented
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Skip undocumented
+ Skip *int `json:"skip,omitempty"`
+ // Top undocumented
+ Top *int `json:"top,omitempty"`
+}
+
+// DeviceManagementScriptAssignRequestParameter undocumented
+type DeviceManagementScriptAssignRequestParameter struct {
+ // DeviceManagementScriptGroupAssignments undocumented
+ DeviceManagementScriptGroupAssignments []DeviceManagementScriptGroupAssignment `json:"deviceManagementScriptGroupAssignments,omitempty"`
+ // DeviceManagementScriptAssignments undocumented
+ DeviceManagementScriptAssignments []DeviceManagementScriptAssignment `json:"deviceManagementScriptAssignments,omitempty"`
+}
+
+// DeviceManagementTemplateCreateInstanceRequestParameter undocumented
+type DeviceManagementTemplateCreateInstanceRequestParameter struct {
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // SettingsDelta undocumented
+ SettingsDelta []DeviceManagementSettingInstance `json:"settingsDelta,omitempty"`
+ // RoleScopeTagIDs undocumented
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
+
+// Commands returns request builder for Command collection
+func (b *DeviceRequestBuilder) Commands() *DeviceCommandsCollectionRequestBuilder {
+ bb := &DeviceCommandsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/commands"
+ return bb
+}
+
+// DeviceCommandsCollectionRequestBuilder is request builder for Command collection
+type DeviceCommandsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Command collection
+func (b *DeviceCommandsCollectionRequestBuilder) Request() *DeviceCommandsCollectionRequest {
+ return &DeviceCommandsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Command item
+func (b *DeviceCommandsCollectionRequestBuilder) ID(id string) *CommandRequestBuilder {
+ bb := &CommandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCommandsCollectionRequest is request for Command collection
+type DeviceCommandsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Command collection
+func (r *DeviceCommandsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Command, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Command
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Command
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Command collection, max N pages
+func (r *DeviceCommandsCollectionRequest) GetN(ctx context.Context, n int) ([]Command, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Command collection
+func (r *DeviceCommandsCollectionRequest) Get(ctx context.Context) ([]Command, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Command collection
+func (r *DeviceCommandsCollectionRequest) Add(ctx context.Context, reqObj *Command) (resObj *Command, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *DeviceRequestBuilder) Extensions() *DeviceExtensionsCollectionRequestBuilder {
+ bb := &DeviceExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// DeviceExtensionsCollectionRequestBuilder is request builder for Extension collection
+type DeviceExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *DeviceExtensionsCollectionRequestBuilder) Request() *DeviceExtensionsCollectionRequest {
+ return &DeviceExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *DeviceExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceExtensionsCollectionRequest is request for Extension collection
+type DeviceExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *DeviceExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Extension collection, max N pages
+func (r *DeviceExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Extension collection
+func (r *DeviceExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Extension collection
+func (r *DeviceExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *DeviceRequestBuilder) MemberOf() *DeviceMemberOfCollectionRequestBuilder {
+ bb := &DeviceMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// DeviceMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type DeviceMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DeviceMemberOfCollectionRequestBuilder) Request() *DeviceMemberOfCollectionRequest {
+ return &DeviceMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DeviceMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceMemberOfCollectionRequest is request for DirectoryObject collection
+type DeviceMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DeviceMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *DeviceMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DeviceMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RegisteredOwners returns request builder for DirectoryObject collection
+func (b *DeviceRequestBuilder) RegisteredOwners() *DeviceRegisteredOwnersCollectionRequestBuilder {
+ bb := &DeviceRegisteredOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/registeredOwners"
+ return bb
+}
+
+// DeviceRegisteredOwnersCollectionRequestBuilder is request builder for DirectoryObject collection
+type DeviceRegisteredOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) Request() *DeviceRegisteredOwnersCollectionRequest {
+ return &DeviceRegisteredOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceRegisteredOwnersCollectionRequest is request for DirectoryObject collection
+type DeviceRegisteredOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DeviceRegisteredOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *DeviceRegisteredOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceRegisteredOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DeviceRegisteredOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RegisteredUsers returns request builder for DirectoryObject collection
+func (b *DeviceRequestBuilder) RegisteredUsers() *DeviceRegisteredUsersCollectionRequestBuilder {
+ bb := &DeviceRegisteredUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/registeredUsers"
+ return bb
+}
+
+// DeviceRegisteredUsersCollectionRequestBuilder is request builder for DirectoryObject collection
+type DeviceRegisteredUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) Request() *DeviceRegisteredUsersCollectionRequest {
+ return &DeviceRegisteredUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceRegisteredUsersCollectionRequest is request for DirectoryObject collection
+type DeviceRegisteredUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DeviceRegisteredUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *DeviceRegisteredUsersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceRegisteredUsersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DeviceRegisteredUsersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *DeviceRequestBuilder) TransitiveMemberOf() *DeviceTransitiveMemberOfCollectionRequestBuilder {
+ bb := &DeviceTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// DeviceTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type DeviceTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) Request() *DeviceTransitiveMemberOfCollectionRequest {
+ return &DeviceTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type DeviceTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DeviceTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *DeviceTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DeviceTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DeviceTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleScopeTags returns request builder for RoleScopeTag collection
+func (b *DeviceAndAppManagementRoleAssignmentRequestBuilder) RoleScopeTags() *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder {
+ bb := &DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleScopeTags"
+ return bb
+}
+
+// DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder is request builder for RoleScopeTag collection
+type DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleScopeTag collection
+func (b *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder) Request() *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest {
+ return &DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleScopeTag item
+func (b *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder) ID(id string) *RoleScopeTagRequestBuilder {
+ bb := &RoleScopeTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest is request for RoleScopeTag collection
+type DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleScopeTag collection
+func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTag, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleScopeTag
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleScopeTag
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RoleScopeTag collection, max N pages
+func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleScopeTag, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RoleScopeTag collection
+func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTag, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RoleScopeTag collection
+func (r *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequest) Add(ctx context.Context, reqObj *RoleScopeTag) (resObj *RoleScopeTag, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AndroidManagedAppProtections returns request builder for AndroidManagedAppProtection collection
+func (b *DeviceAppManagementRequestBuilder) AndroidManagedAppProtections() *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder {
+ bb := &DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidManagedAppProtections"
+ return bb
+}
+
+// DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder is request builder for AndroidManagedAppProtection collection
+type DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidManagedAppProtection collection
+func (b *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder) Request() *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest {
+ return &DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidManagedAppProtection item
+func (b *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder) ID(id string) *AndroidManagedAppProtectionRequestBuilder {
+ bb := &AndroidManagedAppProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest is request for AndroidManagedAppProtection collection
+type DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidManagedAppProtection collection
+func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidManagedAppProtection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidManagedAppProtection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidManagedAppProtection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AndroidManagedAppProtection collection, max N pages
+func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidManagedAppProtection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AndroidManagedAppProtection collection
+func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]AndroidManagedAppProtection, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AndroidManagedAppProtection collection
+func (r *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequest) Add(ctx context.Context, reqObj *AndroidManagedAppProtection) (resObj *AndroidManagedAppProtection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DefaultManagedAppProtections returns request builder for DefaultManagedAppProtection collection
+func (b *DeviceAppManagementRequestBuilder) DefaultManagedAppProtections() *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder {
+ bb := &DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/defaultManagedAppProtections"
+ return bb
+}
+
+// DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder is request builder for DefaultManagedAppProtection collection
+type DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DefaultManagedAppProtection collection
+func (b *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder) Request() *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest {
+ return &DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DefaultManagedAppProtection item
+func (b *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequestBuilder) ID(id string) *DefaultManagedAppProtectionRequestBuilder {
+ bb := &DefaultManagedAppProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest is request for DefaultManagedAppProtection collection
+type DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DefaultManagedAppProtection collection
+func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DefaultManagedAppProtection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DefaultManagedAppProtection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DefaultManagedAppProtection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DefaultManagedAppProtection collection, max N pages
+func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) GetN(ctx context.Context, n int) ([]DefaultManagedAppProtection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DefaultManagedAppProtection collection
+func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]DefaultManagedAppProtection, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DefaultManagedAppProtection collection
+func (r *DeviceAppManagementDefaultManagedAppProtectionsCollectionRequest) Add(ctx context.Context, reqObj *DefaultManagedAppProtection) (resObj *DefaultManagedAppProtection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceAppManagementTasks returns request builder for DeviceAppManagementTask collection
+func (b *DeviceAppManagementRequestBuilder) DeviceAppManagementTasks() *DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder {
+ bb := &DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceAppManagementTasks"
+ return bb
+}
+
+// DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder is request builder for DeviceAppManagementTask collection
+type DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceAppManagementTask collection
+func (b *DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder) Request() *DeviceAppManagementDeviceAppManagementTasksCollectionRequest {
+ return &DeviceAppManagementDeviceAppManagementTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceAppManagementTask item
+func (b *DeviceAppManagementDeviceAppManagementTasksCollectionRequestBuilder) ID(id string) *DeviceAppManagementTaskRequestBuilder {
+ bb := &DeviceAppManagementTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementDeviceAppManagementTasksCollectionRequest is request for DeviceAppManagementTask collection
+type DeviceAppManagementDeviceAppManagementTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceAppManagementTask collection
+func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceAppManagementTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceAppManagementTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceAppManagementTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceAppManagementTask collection, max N pages
+func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceAppManagementTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceAppManagementTask collection
+func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Get(ctx context.Context) ([]DeviceAppManagementTask, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceAppManagementTask collection
+func (r *DeviceAppManagementDeviceAppManagementTasksCollectionRequest) Add(ctx context.Context, reqObj *DeviceAppManagementTask) (resObj *DeviceAppManagementTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EnterpriseCodeSigningCertificates returns request builder for EnterpriseCodeSigningCertificate collection
+func (b *DeviceAppManagementRequestBuilder) EnterpriseCodeSigningCertificates() *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder {
+ bb := &DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/enterpriseCodeSigningCertificates"
+ return bb
+}
+
+// DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder is request builder for EnterpriseCodeSigningCertificate collection
+type DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EnterpriseCodeSigningCertificate collection
+func (b *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder) Request() *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest {
+ return &DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EnterpriseCodeSigningCertificate item
+func (b *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequestBuilder) ID(id string) *EnterpriseCodeSigningCertificateRequestBuilder {
+ bb := &EnterpriseCodeSigningCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest is request for EnterpriseCodeSigningCertificate collection
+type DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EnterpriseCodeSigningCertificate collection
+func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EnterpriseCodeSigningCertificate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EnterpriseCodeSigningCertificate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EnterpriseCodeSigningCertificate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EnterpriseCodeSigningCertificate collection, max N pages
+func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) GetN(ctx context.Context, n int) ([]EnterpriseCodeSigningCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EnterpriseCodeSigningCertificate collection
+func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Get(ctx context.Context) ([]EnterpriseCodeSigningCertificate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EnterpriseCodeSigningCertificate collection
+func (r *DeviceAppManagementEnterpriseCodeSigningCertificatesCollectionRequest) Add(ctx context.Context, reqObj *EnterpriseCodeSigningCertificate) (resObj *EnterpriseCodeSigningCertificate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IOSLobAppProvisioningConfigurations returns request builder for IOSLobAppProvisioningConfiguration collection
+func (b *DeviceAppManagementRequestBuilder) IOSLobAppProvisioningConfigurations() *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/iosLobAppProvisioningConfigurations"
+ return bb
+}
+
+// DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder is request builder for IOSLobAppProvisioningConfiguration collection
+type DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSLobAppProvisioningConfiguration collection
+func (b *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder) Request() *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest {
+ return &DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSLobAppProvisioningConfiguration item
+func (b *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder) ID(id string) *IOSLobAppProvisioningConfigurationRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest is request for IOSLobAppProvisioningConfiguration collection
+type DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSLobAppProvisioningConfiguration collection
+func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSLobAppProvisioningConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSLobAppProvisioningConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSLobAppProvisioningConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IOSLobAppProvisioningConfiguration collection, max N pages
+func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]IOSLobAppProvisioningConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IOSLobAppProvisioningConfiguration collection
+func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Get(ctx context.Context) ([]IOSLobAppProvisioningConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IOSLobAppProvisioningConfiguration collection
+func (r *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *IOSLobAppProvisioningConfiguration) (resObj *IOSLobAppProvisioningConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IOSManagedAppProtections returns request builder for IOSManagedAppProtection collection
+func (b *DeviceAppManagementRequestBuilder) IOSManagedAppProtections() *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder {
+ bb := &DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/iosManagedAppProtections"
+ return bb
+}
+
+// DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder is request builder for IOSManagedAppProtection collection
+type DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSManagedAppProtection collection
+func (b *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder) Request() *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest {
+ return &DeviceAppManagementIOSManagedAppProtectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSManagedAppProtection item
+func (b *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder) ID(id string) *IOSManagedAppProtectionRequestBuilder {
+ bb := &IOSManagedAppProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementIOSManagedAppProtectionsCollectionRequest is request for IOSManagedAppProtection collection
+type DeviceAppManagementIOSManagedAppProtectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSManagedAppProtection collection
+func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSManagedAppProtection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSManagedAppProtection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSManagedAppProtection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IOSManagedAppProtection collection, max N pages
+func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) GetN(ctx context.Context, n int) ([]IOSManagedAppProtection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IOSManagedAppProtection collection
+func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Get(ctx context.Context) ([]IOSManagedAppProtection, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IOSManagedAppProtection collection
+func (r *DeviceAppManagementIOSManagedAppProtectionsCollectionRequest) Add(ctx context.Context, reqObj *IOSManagedAppProtection) (resObj *IOSManagedAppProtection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedAppPolicies returns request builder for ManagedAppPolicy collection
+func (b *DeviceAppManagementRequestBuilder) ManagedAppPolicies() *DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedAppPolicies"
+ return bb
+}
+
+// DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder is request builder for ManagedAppPolicy collection
+type DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppPolicy collection
+func (b *DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementManagedAppPoliciesCollectionRequest {
+ return &DeviceAppManagementManagedAppPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppPolicy item
+func (b *DeviceAppManagementManagedAppPoliciesCollectionRequestBuilder) ID(id string) *ManagedAppPolicyRequestBuilder {
+ bb := &ManagedAppPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedAppPoliciesCollectionRequest is request for ManagedAppPolicy collection
+type DeviceAppManagementManagedAppPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppPolicy collection
+func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedAppPolicy collection, max N pages
+func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedAppPolicy collection
+func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedAppPolicy collection
+func (r *DeviceAppManagementManagedAppPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppPolicy) (resObj *ManagedAppPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedAppRegistrations returns request builder for ManagedAppRegistration collection
+func (b *DeviceAppManagementRequestBuilder) ManagedAppRegistrations() *DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedAppRegistrations"
+ return bb
+}
+
+// DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder is request builder for ManagedAppRegistration collection
+type DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppRegistration collection
+func (b *DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder) Request() *DeviceAppManagementManagedAppRegistrationsCollectionRequest {
+ return &DeviceAppManagementManagedAppRegistrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppRegistration item
+func (b *DeviceAppManagementManagedAppRegistrationsCollectionRequestBuilder) ID(id string) *ManagedAppRegistrationRequestBuilder {
+ bb := &ManagedAppRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedAppRegistrationsCollectionRequest is request for ManagedAppRegistration collection
+type DeviceAppManagementManagedAppRegistrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppRegistration collection
+func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppRegistration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppRegistration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppRegistration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedAppRegistration collection, max N pages
+func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedAppRegistration collection
+func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppRegistration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedAppRegistration collection
+func (r *DeviceAppManagementManagedAppRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppRegistration) (resObj *ManagedAppRegistration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedAppStatuses returns request builder for ManagedAppStatus collection
+func (b *DeviceAppManagementRequestBuilder) ManagedAppStatuses() *DeviceAppManagementManagedAppStatusesCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedAppStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedAppStatuses"
+ return bb
+}
+
+// DeviceAppManagementManagedAppStatusesCollectionRequestBuilder is request builder for ManagedAppStatus collection
+type DeviceAppManagementManagedAppStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppStatus collection
+func (b *DeviceAppManagementManagedAppStatusesCollectionRequestBuilder) Request() *DeviceAppManagementManagedAppStatusesCollectionRequest {
+ return &DeviceAppManagementManagedAppStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppStatus item
+func (b *DeviceAppManagementManagedAppStatusesCollectionRequestBuilder) ID(id string) *ManagedAppStatusRequestBuilder {
+ bb := &ManagedAppStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedAppStatusesCollectionRequest is request for ManagedAppStatus collection
+type DeviceAppManagementManagedAppStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppStatus collection
+func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedAppStatus collection, max N pages
+func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedAppStatus collection
+func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedAppStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedAppStatus collection
+func (r *DeviceAppManagementManagedAppStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppStatus) (resObj *ManagedAppStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedEBookCategories returns request builder for ManagedEBookCategory collection
+func (b *DeviceAppManagementRequestBuilder) ManagedEBookCategories() *DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedEBookCategories"
+ return bb
+}
+
+// DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder is request builder for ManagedEBookCategory collection
+type DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedEBookCategory collection
+func (b *DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder) Request() *DeviceAppManagementManagedEBookCategoriesCollectionRequest {
+ return &DeviceAppManagementManagedEBookCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedEBookCategory item
+func (b *DeviceAppManagementManagedEBookCategoriesCollectionRequestBuilder) ID(id string) *ManagedEBookCategoryRequestBuilder {
+ bb := &ManagedEBookCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedEBookCategoriesCollectionRequest is request for ManagedEBookCategory collection
+type DeviceAppManagementManagedEBookCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedEBookCategory collection
+func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedEBookCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedEBookCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedEBookCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedEBookCategory collection, max N pages
+func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedEBookCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedEBookCategory collection
+func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Get(ctx context.Context) ([]ManagedEBookCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedEBookCategory collection
+func (r *DeviceAppManagementManagedEBookCategoriesCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBookCategory) (resObj *ManagedEBookCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedEBooks returns request builder for ManagedEBook collection
+func (b *DeviceAppManagementRequestBuilder) ManagedEBooks() *DeviceAppManagementManagedEBooksCollectionRequestBuilder {
+ bb := &DeviceAppManagementManagedEBooksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedEBooks"
+ return bb
+}
+
+// DeviceAppManagementManagedEBooksCollectionRequestBuilder is request builder for ManagedEBook collection
+type DeviceAppManagementManagedEBooksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedEBook collection
+func (b *DeviceAppManagementManagedEBooksCollectionRequestBuilder) Request() *DeviceAppManagementManagedEBooksCollectionRequest {
+ return &DeviceAppManagementManagedEBooksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedEBook item
+func (b *DeviceAppManagementManagedEBooksCollectionRequestBuilder) ID(id string) *ManagedEBookRequestBuilder {
+ bb := &ManagedEBookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementManagedEBooksCollectionRequest is request for ManagedEBook collection
+type DeviceAppManagementManagedEBooksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedEBook collection
+func (r *DeviceAppManagementManagedEBooksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedEBook, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedEBook
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedEBook
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedEBook collection, max N pages
+func (r *DeviceAppManagementManagedEBooksCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedEBook, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedEBook collection
+func (r *DeviceAppManagementManagedEBooksCollectionRequest) Get(ctx context.Context) ([]ManagedEBook, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedEBook collection
+func (r *DeviceAppManagementManagedEBooksCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBook) (resObj *ManagedEBook, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MDMWindowsInformationProtectionPolicies returns request builder for MDMWindowsInformationProtectionPolicy collection
+func (b *DeviceAppManagementRequestBuilder) MDMWindowsInformationProtectionPolicies() *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder {
+ bb := &DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mdmWindowsInformationProtectionPolicies"
+ return bb
+}
+
+// DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder is request builder for MDMWindowsInformationProtectionPolicy collection
+type DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MDMWindowsInformationProtectionPolicy collection
+func (b *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest {
+ return &DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MDMWindowsInformationProtectionPolicy item
+func (b *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder) ID(id string) *MDMWindowsInformationProtectionPolicyRequestBuilder {
+ bb := &MDMWindowsInformationProtectionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest is request for MDMWindowsInformationProtectionPolicy collection
+type DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MDMWindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MDMWindowsInformationProtectionPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MDMWindowsInformationProtectionPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MDMWindowsInformationProtectionPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MDMWindowsInformationProtectionPolicy collection, max N pages
+func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]MDMWindowsInformationProtectionPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MDMWindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest) Get(ctx context.Context) ([]MDMWindowsInformationProtectionPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MDMWindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequest) Add(ctx context.Context, reqObj *MDMWindowsInformationProtectionPolicy) (resObj *MDMWindowsInformationProtectionPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppCategories returns request builder for MobileAppCategory collection
+func (b *DeviceAppManagementRequestBuilder) MobileAppCategories() *DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder {
+ bb := &DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppCategories"
+ return bb
+}
+
+// DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder is request builder for MobileAppCategory collection
+type DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppCategory collection
+func (b *DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder) Request() *DeviceAppManagementMobileAppCategoriesCollectionRequest {
+ return &DeviceAppManagementMobileAppCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppCategory item
+func (b *DeviceAppManagementMobileAppCategoriesCollectionRequestBuilder) ID(id string) *MobileAppCategoryRequestBuilder {
+ bb := &MobileAppCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementMobileAppCategoriesCollectionRequest is request for MobileAppCategory collection
+type DeviceAppManagementMobileAppCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppCategory collection
+func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppCategory collection, max N pages
+func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppCategory collection
+func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Get(ctx context.Context) ([]MobileAppCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppCategory collection
+func (r *DeviceAppManagementMobileAppCategoriesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppCategory) (resObj *MobileAppCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppConfigurations returns request builder for ManagedDeviceMobileAppConfiguration collection
+func (b *DeviceAppManagementRequestBuilder) MobileAppConfigurations() *DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppConfigurations"
+ return bb
+}
+
+// DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfiguration collection
+type DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfiguration collection
+func (b *DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder) Request() *DeviceAppManagementMobileAppConfigurationsCollectionRequest {
+ return &DeviceAppManagementMobileAppConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfiguration item
+func (b *DeviceAppManagementMobileAppConfigurationsCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementMobileAppConfigurationsCollectionRequest is request for ManagedDeviceMobileAppConfiguration collection
+type DeviceAppManagementMobileAppConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfiguration collection
+func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceMobileAppConfiguration collection, max N pages
+func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfiguration collection
+func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfiguration collection
+func (r *DeviceAppManagementMobileAppConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfiguration) (resObj *ManagedDeviceMobileAppConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileApps returns request builder for MobileApp collection
+func (b *DeviceAppManagementRequestBuilder) MobileApps() *DeviceAppManagementMobileAppsCollectionRequestBuilder {
+ bb := &DeviceAppManagementMobileAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileApps"
+ return bb
+}
+
+// DeviceAppManagementMobileAppsCollectionRequestBuilder is request builder for MobileApp collection
+type DeviceAppManagementMobileAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileApp collection
+func (b *DeviceAppManagementMobileAppsCollectionRequestBuilder) Request() *DeviceAppManagementMobileAppsCollectionRequest {
+ return &DeviceAppManagementMobileAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileApp item
+func (b *DeviceAppManagementMobileAppsCollectionRequestBuilder) ID(id string) *MobileAppRequestBuilder {
+ bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementMobileAppsCollectionRequest is request for MobileApp collection
+type DeviceAppManagementMobileAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileApp collection
+func (r *DeviceAppManagementMobileAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileApp collection, max N pages
+func (r *DeviceAppManagementMobileAppsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileApp collection
+func (r *DeviceAppManagementMobileAppsCollectionRequest) Get(ctx context.Context) ([]MobileApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileApp collection
+func (r *DeviceAppManagementMobileAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileApp) (resObj *MobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PolicySets returns request builder for PolicySet collection
+func (b *DeviceAppManagementRequestBuilder) PolicySets() *DeviceAppManagementPolicySetsCollectionRequestBuilder {
+ bb := &DeviceAppManagementPolicySetsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policySets"
+ return bb
+}
+
+// DeviceAppManagementPolicySetsCollectionRequestBuilder is request builder for PolicySet collection
+type DeviceAppManagementPolicySetsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PolicySet collection
+func (b *DeviceAppManagementPolicySetsCollectionRequestBuilder) Request() *DeviceAppManagementPolicySetsCollectionRequest {
+ return &DeviceAppManagementPolicySetsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PolicySet item
+func (b *DeviceAppManagementPolicySetsCollectionRequestBuilder) ID(id string) *PolicySetRequestBuilder {
+ bb := &PolicySetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementPolicySetsCollectionRequest is request for PolicySet collection
+type DeviceAppManagementPolicySetsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PolicySet collection
+func (r *DeviceAppManagementPolicySetsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PolicySet, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PolicySet
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PolicySet
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PolicySet collection, max N pages
+func (r *DeviceAppManagementPolicySetsCollectionRequest) GetN(ctx context.Context, n int) ([]PolicySet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PolicySet collection
+func (r *DeviceAppManagementPolicySetsCollectionRequest) Get(ctx context.Context) ([]PolicySet, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PolicySet collection
+func (r *DeviceAppManagementPolicySetsCollectionRequest) Add(ctx context.Context, reqObj *PolicySet) (resObj *PolicySet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SideLoadingKeys returns request builder for SideLoadingKey collection
+func (b *DeviceAppManagementRequestBuilder) SideLoadingKeys() *DeviceAppManagementSideLoadingKeysCollectionRequestBuilder {
+ bb := &DeviceAppManagementSideLoadingKeysCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sideLoadingKeys"
+ return bb
+}
+
+// DeviceAppManagementSideLoadingKeysCollectionRequestBuilder is request builder for SideLoadingKey collection
+type DeviceAppManagementSideLoadingKeysCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SideLoadingKey collection
+func (b *DeviceAppManagementSideLoadingKeysCollectionRequestBuilder) Request() *DeviceAppManagementSideLoadingKeysCollectionRequest {
+ return &DeviceAppManagementSideLoadingKeysCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SideLoadingKey item
+func (b *DeviceAppManagementSideLoadingKeysCollectionRequestBuilder) ID(id string) *SideLoadingKeyRequestBuilder {
+ bb := &SideLoadingKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementSideLoadingKeysCollectionRequest is request for SideLoadingKey collection
+type DeviceAppManagementSideLoadingKeysCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SideLoadingKey collection
+func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SideLoadingKey, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SideLoadingKey
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SideLoadingKey
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SideLoadingKey collection, max N pages
+func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) GetN(ctx context.Context, n int) ([]SideLoadingKey, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SideLoadingKey collection
+func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Get(ctx context.Context) ([]SideLoadingKey, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SideLoadingKey collection
+func (r *DeviceAppManagementSideLoadingKeysCollectionRequest) Add(ctx context.Context, reqObj *SideLoadingKey) (resObj *SideLoadingKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SymantecCodeSigningCertificate is navigation property
+func (b *DeviceAppManagementRequestBuilder) SymantecCodeSigningCertificate() *SymantecCodeSigningCertificateRequestBuilder {
+ bb := &SymantecCodeSigningCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/symantecCodeSigningCertificate"
+ return bb
+}
+
+// TargetedManagedAppConfigurations returns request builder for TargetedManagedAppConfiguration collection
+func (b *DeviceAppManagementRequestBuilder) TargetedManagedAppConfigurations() *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/targetedManagedAppConfigurations"
+ return bb
+}
+
+// DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder is request builder for TargetedManagedAppConfiguration collection
+type DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TargetedManagedAppConfiguration collection
+func (b *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder) Request() *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest {
+ return &DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TargetedManagedAppConfiguration item
+func (b *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder) ID(id string) *TargetedManagedAppConfigurationRequestBuilder {
+ bb := &TargetedManagedAppConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest is request for TargetedManagedAppConfiguration collection
+type DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TargetedManagedAppConfiguration collection
+func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TargetedManagedAppConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TargetedManagedAppConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TargetedManagedAppConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TargetedManagedAppConfiguration collection, max N pages
+func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]TargetedManagedAppConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TargetedManagedAppConfiguration collection
+func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TargetedManagedAppConfiguration collection
+func (r *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppConfiguration) (resObj *TargetedManagedAppConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// VPPTokens returns request builder for VPPToken collection
+func (b *DeviceAppManagementRequestBuilder) VPPTokens() *DeviceAppManagementVPPTokensCollectionRequestBuilder {
+ bb := &DeviceAppManagementVPPTokensCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/vppTokens"
+ return bb
+}
+
+// DeviceAppManagementVPPTokensCollectionRequestBuilder is request builder for VPPToken collection
+type DeviceAppManagementVPPTokensCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for VPPToken collection
+func (b *DeviceAppManagementVPPTokensCollectionRequestBuilder) Request() *DeviceAppManagementVPPTokensCollectionRequest {
+ return &DeviceAppManagementVPPTokensCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for VPPToken item
+func (b *DeviceAppManagementVPPTokensCollectionRequestBuilder) ID(id string) *VPPTokenRequestBuilder {
+ bb := &VPPTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementVPPTokensCollectionRequest is request for VPPToken collection
+type DeviceAppManagementVPPTokensCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for VPPToken collection
+func (r *DeviceAppManagementVPPTokensCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]VPPToken, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []VPPToken
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []VPPToken
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for VPPToken collection, max N pages
+func (r *DeviceAppManagementVPPTokensCollectionRequest) GetN(ctx context.Context, n int) ([]VPPToken, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for VPPToken collection
+func (r *DeviceAppManagementVPPTokensCollectionRequest) Get(ctx context.Context) ([]VPPToken, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for VPPToken collection
+func (r *DeviceAppManagementVPPTokensCollectionRequest) Add(ctx context.Context, reqObj *VPPToken) (resObj *VPPToken, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WdacSupplementalPolicies returns request builder for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (b *DeviceAppManagementRequestBuilder) WdacSupplementalPolicies() *DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder {
+ bb := &DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/wdacSupplementalPolicies"
+ return bb
+}
+
+// DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicy collection
+type DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (b *DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest {
+ return &DeviceAppManagementWdacSupplementalPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsDefenderApplicationControlSupplementalPolicy item
+func (b *DeviceAppManagementWdacSupplementalPoliciesCollectionRequestBuilder) ID(id string) *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementWdacSupplementalPoliciesCollectionRequest is request for WindowsDefenderApplicationControlSupplementalPolicy collection
+type DeviceAppManagementWdacSupplementalPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsDefenderApplicationControlSupplementalPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsDefenderApplicationControlSupplementalPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsDefenderApplicationControlSupplementalPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsDefenderApplicationControlSupplementalPolicy collection, max N pages
+func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsDefenderApplicationControlSupplementalPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsDefenderApplicationControlSupplementalPolicy collection
+func (r *DeviceAppManagementWdacSupplementalPoliciesCollectionRequest) Add(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicy) (resObj *WindowsDefenderApplicationControlSupplementalPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionDeviceRegistrations returns request builder for WindowsInformationProtectionDeviceRegistration collection
+func (b *DeviceAppManagementRequestBuilder) WindowsInformationProtectionDeviceRegistrations() *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder {
+ bb := &DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionDeviceRegistrations"
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder is request builder for WindowsInformationProtectionDeviceRegistration collection
+type DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionDeviceRegistration collection
+func (b *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) Request() *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest {
+ return &DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionDeviceRegistration item
+func (b *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionDeviceRegistrationRequestBuilder {
+ bb := &WindowsInformationProtectionDeviceRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest is request for WindowsInformationProtectionDeviceRegistration collection
+type DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionDeviceRegistration collection
+func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionDeviceRegistration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionDeviceRegistration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsInformationProtectionDeviceRegistration collection, max N pages
+func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsInformationProtectionDeviceRegistration collection
+func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsInformationProtectionDeviceRegistration collection
+func (r *DeviceAppManagementWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionDeviceRegistration) (resObj *WindowsInformationProtectionDeviceRegistration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionPolicies returns request builder for WindowsInformationProtectionPolicy collection
+func (b *DeviceAppManagementRequestBuilder) WindowsInformationProtectionPolicies() *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder {
+ bb := &DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionPolicies"
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder is request builder for WindowsInformationProtectionPolicy collection
+type DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionPolicy collection
+func (b *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder) Request() *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest {
+ return &DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionPolicy item
+func (b *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionPolicyRequestBuilder {
+ bb := &WindowsInformationProtectionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest is request for WindowsInformationProtectionPolicy collection
+type DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsInformationProtectionPolicy collection, max N pages
+func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsInformationProtectionPolicy collection
+func (r *DeviceAppManagementWindowsInformationProtectionPoliciesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionPolicy) (resObj *WindowsInformationProtectionPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionWipeActions returns request builder for WindowsInformationProtectionWipeAction collection
+func (b *DeviceAppManagementRequestBuilder) WindowsInformationProtectionWipeActions() *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder {
+ bb := &DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionWipeActions"
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder is request builder for WindowsInformationProtectionWipeAction collection
+type DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionWipeAction collection
+func (b *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder) Request() *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest {
+ return &DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionWipeAction item
+func (b *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionWipeActionRequestBuilder {
+ bb := &WindowsInformationProtectionWipeActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest is request for WindowsInformationProtectionWipeAction collection
+type DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionWipeAction collection
+func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionWipeAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionWipeAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionWipeAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsInformationProtectionWipeAction collection, max N pages
+func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionWipeAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsInformationProtectionWipeAction collection
+func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionWipeAction, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsInformationProtectionWipeAction collection
+func (r *DeviceAppManagementWindowsInformationProtectionWipeActionsCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionWipeAction) (resObj *WindowsInformationProtectionWipeAction, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsManagementApp is navigation property
+func (b *DeviceAppManagementRequestBuilder) WindowsManagementApp() *WindowsManagementAppRequestBuilder {
+ bb := &WindowsManagementAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsManagementApp"
+ return bb
+}
+
+// Assignments returns request builder for DeviceCompliancePolicyAssignment collection
+func (b *DeviceCompliancePolicyRequestBuilder) Assignments() *DeviceCompliancePolicyAssignmentsCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceCompliancePolicyAssignmentsCollectionRequestBuilder is request builder for DeviceCompliancePolicyAssignment collection
+type DeviceCompliancePolicyAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCompliancePolicyAssignment collection
+func (b *DeviceCompliancePolicyAssignmentsCollectionRequestBuilder) Request() *DeviceCompliancePolicyAssignmentsCollectionRequest {
+ return &DeviceCompliancePolicyAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCompliancePolicyAssignment item
+func (b *DeviceCompliancePolicyAssignmentsCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicyAssignmentRequestBuilder {
+ bb := &DeviceCompliancePolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyAssignmentsCollectionRequest is request for DeviceCompliancePolicyAssignment collection
+type DeviceCompliancePolicyAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCompliancePolicyAssignment collection
+func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCompliancePolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCompliancePolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceCompliancePolicyAssignment collection, max N pages
+func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCompliancePolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceCompliancePolicyAssignment collection
+func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicyAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceCompliancePolicyAssignment collection
+func (r *DeviceCompliancePolicyAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicyAssignment) (resObj *DeviceCompliancePolicyAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceSettingStateSummaries returns request builder for SettingStateDeviceSummary collection
+func (b *DeviceCompliancePolicyRequestBuilder) DeviceSettingStateSummaries() *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceSettingStateSummaries"
+ return bb
+}
+
+// DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder is request builder for SettingStateDeviceSummary collection
+type DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SettingStateDeviceSummary collection
+func (b *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder) Request() *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest {
+ return &DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SettingStateDeviceSummary item
+func (b *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequestBuilder) ID(id string) *SettingStateDeviceSummaryRequestBuilder {
+ bb := &SettingStateDeviceSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest is request for SettingStateDeviceSummary collection
+type DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SettingStateDeviceSummary collection
+func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SettingStateDeviceSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SettingStateDeviceSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SettingStateDeviceSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SettingStateDeviceSummary collection, max N pages
+func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]SettingStateDeviceSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SettingStateDeviceSummary collection
+func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]SettingStateDeviceSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SettingStateDeviceSummary collection
+func (r *DeviceCompliancePolicyDeviceSettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *SettingStateDeviceSummary) (resObj *SettingStateDeviceSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatusOverview is navigation property
+func (b *DeviceCompliancePolicyRequestBuilder) DeviceStatusOverview() *DeviceComplianceDeviceOverviewRequestBuilder {
+ bb := &DeviceComplianceDeviceOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatusOverview"
+ return bb
+}
+
+// DeviceStatuses returns request builder for DeviceComplianceDeviceStatus collection
+func (b *DeviceCompliancePolicyRequestBuilder) DeviceStatuses() *DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder is request builder for DeviceComplianceDeviceStatus collection
+type DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceDeviceStatus collection
+func (b *DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder) Request() *DeviceCompliancePolicyDeviceStatusesCollectionRequest {
+ return &DeviceCompliancePolicyDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceDeviceStatus item
+func (b *DeviceCompliancePolicyDeviceStatusesCollectionRequestBuilder) ID(id string) *DeviceComplianceDeviceStatusRequestBuilder {
+ bb := &DeviceComplianceDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyDeviceStatusesCollectionRequest is request for DeviceComplianceDeviceStatus collection
+type DeviceCompliancePolicyDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceDeviceStatus collection
+func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceComplianceDeviceStatus collection, max N pages
+func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceComplianceDeviceStatus collection
+func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceDeviceStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceComplianceDeviceStatus collection
+func (r *DeviceCompliancePolicyDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceDeviceStatus) (resObj *DeviceComplianceDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScheduledActionsForRule returns request builder for DeviceComplianceScheduledActionForRule collection
+func (b *DeviceCompliancePolicyRequestBuilder) ScheduledActionsForRule() *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scheduledActionsForRule"
+ return bb
+}
+
+// DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder is request builder for DeviceComplianceScheduledActionForRule collection
+type DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceScheduledActionForRule collection
+func (b *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder) Request() *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest {
+ return &DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceScheduledActionForRule item
+func (b *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequestBuilder) ID(id string) *DeviceComplianceScheduledActionForRuleRequestBuilder {
+ bb := &DeviceComplianceScheduledActionForRuleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest is request for DeviceComplianceScheduledActionForRule collection
+type DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceScheduledActionForRule collection
+func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceScheduledActionForRule, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceScheduledActionForRule
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceScheduledActionForRule
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceComplianceScheduledActionForRule collection, max N pages
+func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceScheduledActionForRule, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceComplianceScheduledActionForRule collection
+func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceScheduledActionForRule, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceComplianceScheduledActionForRule collection
+func (r *DeviceCompliancePolicyScheduledActionsForRuleCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceScheduledActionForRule) (resObj *DeviceComplianceScheduledActionForRule, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatusOverview is navigation property
+func (b *DeviceCompliancePolicyRequestBuilder) UserStatusOverview() *DeviceComplianceUserOverviewRequestBuilder {
+ bb := &DeviceComplianceUserOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatusOverview"
+ return bb
+}
+
+// UserStatuses returns request builder for DeviceComplianceUserStatus collection
+func (b *DeviceCompliancePolicyRequestBuilder) UserStatuses() *DeviceCompliancePolicyUserStatusesCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicyUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// DeviceCompliancePolicyUserStatusesCollectionRequestBuilder is request builder for DeviceComplianceUserStatus collection
+type DeviceCompliancePolicyUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceUserStatus collection
+func (b *DeviceCompliancePolicyUserStatusesCollectionRequestBuilder) Request() *DeviceCompliancePolicyUserStatusesCollectionRequest {
+ return &DeviceCompliancePolicyUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceUserStatus item
+func (b *DeviceCompliancePolicyUserStatusesCollectionRequestBuilder) ID(id string) *DeviceComplianceUserStatusRequestBuilder {
+ bb := &DeviceComplianceUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicyUserStatusesCollectionRequest is request for DeviceComplianceUserStatus collection
+type DeviceCompliancePolicyUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceUserStatus collection
+func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceUserStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceUserStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceUserStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceComplianceUserStatus collection, max N pages
+func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceComplianceUserStatus collection
+func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceUserStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceComplianceUserStatus collection
+func (r *DeviceCompliancePolicyUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceUserStatus) (resObj *DeviceComplianceUserStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceCompliancePolicy is navigation property
+func (b *DeviceCompliancePolicyGroupAssignmentRequestBuilder) DeviceCompliancePolicy() *DeviceCompliancePolicyRequestBuilder {
+ bb := &DeviceCompliancePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicy"
+ return bb
+}
+
+// DeviceComplianceSettingStates returns request builder for DeviceComplianceSettingState collection
+func (b *DeviceCompliancePolicySettingStateSummaryRequestBuilder) DeviceComplianceSettingStates() *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder {
+ bb := &DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceComplianceSettingStates"
+ return bb
+}
+
+// DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder is request builder for DeviceComplianceSettingState collection
+type DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceSettingState collection
+func (b *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder) Request() *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest {
+ return &DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceSettingState item
+func (b *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequestBuilder) ID(id string) *DeviceComplianceSettingStateRequestBuilder {
+ bb := &DeviceComplianceSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest is request for DeviceComplianceSettingState collection
+type DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceSettingState collection
+func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceSettingState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceSettingState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceSettingState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceComplianceSettingState collection, max N pages
+func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceSettingState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceComplianceSettingState collection
+func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceSettingState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceComplianceSettingState collection
+func (r *DeviceCompliancePolicySettingStateSummaryDeviceComplianceSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceSettingState) (resObj *DeviceComplianceSettingState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScheduledActionConfigurations returns request builder for DeviceComplianceActionItem collection
+func (b *DeviceComplianceScheduledActionForRuleRequestBuilder) ScheduledActionConfigurations() *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder {
+ bb := &DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scheduledActionConfigurations"
+ return bb
+}
+
+// DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder is request builder for DeviceComplianceActionItem collection
+type DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceComplianceActionItem collection
+func (b *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder) Request() *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest {
+ return &DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceComplianceActionItem item
+func (b *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequestBuilder) ID(id string) *DeviceComplianceActionItemRequestBuilder {
+ bb := &DeviceComplianceActionItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest is request for DeviceComplianceActionItem collection
+type DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceComplianceActionItem collection
+func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceComplianceActionItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceComplianceActionItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceComplianceActionItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceComplianceActionItem collection, max N pages
+func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceComplianceActionItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceComplianceActionItem collection
+func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceComplianceActionItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceComplianceActionItem collection
+func (r *DeviceComplianceScheduledActionForRuleScheduledActionConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceComplianceActionItem) (resObj *DeviceComplianceActionItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for DeviceConfigurationAssignment collection
+func (b *DeviceConfigurationRequestBuilder) Assignments() *DeviceConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &DeviceConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceConfigurationAssignmentsCollectionRequestBuilder is request builder for DeviceConfigurationAssignment collection
+type DeviceConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationAssignment collection
+func (b *DeviceConfigurationAssignmentsCollectionRequestBuilder) Request() *DeviceConfigurationAssignmentsCollectionRequest {
+ return &DeviceConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationAssignment item
+func (b *DeviceConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *DeviceConfigurationAssignmentRequestBuilder {
+ bb := &DeviceConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationAssignmentsCollectionRequest is request for DeviceConfigurationAssignment collection
+type DeviceConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationAssignment collection
+func (r *DeviceConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceConfigurationAssignment collection, max N pages
+func (r *DeviceConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceConfigurationAssignment collection
+func (r *DeviceConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceConfigurationAssignment collection
+func (r *DeviceConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationAssignment) (resObj *DeviceConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceSettingStateSummaries returns request builder for SettingStateDeviceSummary collection
+func (b *DeviceConfigurationRequestBuilder) DeviceSettingStateSummaries() *DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder {
+ bb := &DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceSettingStateSummaries"
+ return bb
+}
+
+// DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder is request builder for SettingStateDeviceSummary collection
+type DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SettingStateDeviceSummary collection
+func (b *DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder) Request() *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest {
+ return &DeviceConfigurationDeviceSettingStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SettingStateDeviceSummary item
+func (b *DeviceConfigurationDeviceSettingStateSummariesCollectionRequestBuilder) ID(id string) *SettingStateDeviceSummaryRequestBuilder {
+ bb := &SettingStateDeviceSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationDeviceSettingStateSummariesCollectionRequest is request for SettingStateDeviceSummary collection
+type DeviceConfigurationDeviceSettingStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SettingStateDeviceSummary collection
+func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SettingStateDeviceSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SettingStateDeviceSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SettingStateDeviceSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SettingStateDeviceSummary collection, max N pages
+func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]SettingStateDeviceSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SettingStateDeviceSummary collection
+func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]SettingStateDeviceSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SettingStateDeviceSummary collection
+func (r *DeviceConfigurationDeviceSettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *SettingStateDeviceSummary) (resObj *SettingStateDeviceSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatusOverview is navigation property
+func (b *DeviceConfigurationRequestBuilder) DeviceStatusOverview() *DeviceConfigurationDeviceOverviewRequestBuilder {
+ bb := &DeviceConfigurationDeviceOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatusOverview"
+ return bb
+}
+
+// DeviceStatuses returns request builder for DeviceConfigurationDeviceStatus collection
+func (b *DeviceConfigurationRequestBuilder) DeviceStatuses() *DeviceConfigurationDeviceStatusesCollectionRequestBuilder {
+ bb := &DeviceConfigurationDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// DeviceConfigurationDeviceStatusesCollectionRequestBuilder is request builder for DeviceConfigurationDeviceStatus collection
+type DeviceConfigurationDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationDeviceStatus collection
+func (b *DeviceConfigurationDeviceStatusesCollectionRequestBuilder) Request() *DeviceConfigurationDeviceStatusesCollectionRequest {
+ return &DeviceConfigurationDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationDeviceStatus item
+func (b *DeviceConfigurationDeviceStatusesCollectionRequestBuilder) ID(id string) *DeviceConfigurationDeviceStatusRequestBuilder {
+ bb := &DeviceConfigurationDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationDeviceStatusesCollectionRequest is request for DeviceConfigurationDeviceStatus collection
+type DeviceConfigurationDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationDeviceStatus collection
+func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceConfigurationDeviceStatus collection, max N pages
+func (r *DeviceConfigurationDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceConfigurationDeviceStatus collection
+func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationDeviceStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceConfigurationDeviceStatus collection
+func (r *DeviceConfigurationDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationDeviceStatus) (resObj *DeviceConfigurationDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupAssignments returns request builder for DeviceConfigurationGroupAssignment collection
+func (b *DeviceConfigurationRequestBuilder) GroupAssignments() *DeviceConfigurationGroupAssignmentsCollectionRequestBuilder {
+ bb := &DeviceConfigurationGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupAssignments"
+ return bb
+}
+
+// DeviceConfigurationGroupAssignmentsCollectionRequestBuilder is request builder for DeviceConfigurationGroupAssignment collection
+type DeviceConfigurationGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationGroupAssignment collection
+func (b *DeviceConfigurationGroupAssignmentsCollectionRequestBuilder) Request() *DeviceConfigurationGroupAssignmentsCollectionRequest {
+ return &DeviceConfigurationGroupAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationGroupAssignment item
+func (b *DeviceConfigurationGroupAssignmentsCollectionRequestBuilder) ID(id string) *DeviceConfigurationGroupAssignmentRequestBuilder {
+ bb := &DeviceConfigurationGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationGroupAssignmentsCollectionRequest is request for DeviceConfigurationGroupAssignment collection
+type DeviceConfigurationGroupAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationGroupAssignment collection
+func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationGroupAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationGroupAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationGroupAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceConfigurationGroupAssignment collection, max N pages
+func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceConfigurationGroupAssignment collection
+func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationGroupAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceConfigurationGroupAssignment collection
+func (r *DeviceConfigurationGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationGroupAssignment) (resObj *DeviceConfigurationGroupAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatusOverview is navigation property
+func (b *DeviceConfigurationRequestBuilder) UserStatusOverview() *DeviceConfigurationUserOverviewRequestBuilder {
+ bb := &DeviceConfigurationUserOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatusOverview"
+ return bb
+}
+
+// UserStatuses returns request builder for DeviceConfigurationUserStatus collection
+func (b *DeviceConfigurationRequestBuilder) UserStatuses() *DeviceConfigurationUserStatusesCollectionRequestBuilder {
+ bb := &DeviceConfigurationUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// DeviceConfigurationUserStatusesCollectionRequestBuilder is request builder for DeviceConfigurationUserStatus collection
+type DeviceConfigurationUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationUserStatus collection
+func (b *DeviceConfigurationUserStatusesCollectionRequestBuilder) Request() *DeviceConfigurationUserStatusesCollectionRequest {
+ return &DeviceConfigurationUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationUserStatus item
+func (b *DeviceConfigurationUserStatusesCollectionRequestBuilder) ID(id string) *DeviceConfigurationUserStatusRequestBuilder {
+ bb := &DeviceConfigurationUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceConfigurationUserStatusesCollectionRequest is request for DeviceConfigurationUserStatus collection
+type DeviceConfigurationUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationUserStatus collection
+func (r *DeviceConfigurationUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationUserStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationUserStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationUserStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceConfigurationUserStatus collection, max N pages
+func (r *DeviceConfigurationUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceConfigurationUserStatus collection
+func (r *DeviceConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationUserStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceConfigurationUserStatus collection
+func (r *DeviceConfigurationUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationUserStatus) (resObj *DeviceConfigurationUserStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfiguration is navigation property
+func (b *DeviceConfigurationGroupAssignmentRequestBuilder) DeviceConfiguration() *DeviceConfigurationRequestBuilder {
+ bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfiguration"
+ return bb
+}
+
+// Assignments returns request builder for EnrollmentConfigurationAssignment collection
+func (b *DeviceEnrollmentConfigurationRequestBuilder) Assignments() *DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder is request builder for EnrollmentConfigurationAssignment collection
+type DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EnrollmentConfigurationAssignment collection
+func (b *DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder) Request() *DeviceEnrollmentConfigurationAssignmentsCollectionRequest {
+ return &DeviceEnrollmentConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EnrollmentConfigurationAssignment item
+func (b *DeviceEnrollmentConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *EnrollmentConfigurationAssignmentRequestBuilder {
+ bb := &EnrollmentConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceEnrollmentConfigurationAssignmentsCollectionRequest is request for EnrollmentConfigurationAssignment collection
+type DeviceEnrollmentConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EnrollmentConfigurationAssignment collection
+func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EnrollmentConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EnrollmentConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EnrollmentConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EnrollmentConfigurationAssignment collection, max N pages
+func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]EnrollmentConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EnrollmentConfigurationAssignment collection
+func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]EnrollmentConfigurationAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EnrollmentConfigurationAssignment collection
+func (r *DeviceEnrollmentConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EnrollmentConfigurationAssignment) (resObj *EnrollmentConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for DeviceHealthScriptAssignment collection
+func (b *DeviceHealthScriptRequestBuilder) Assignments() *DeviceHealthScriptAssignmentsCollectionRequestBuilder {
+ bb := &DeviceHealthScriptAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceHealthScriptAssignmentsCollectionRequestBuilder is request builder for DeviceHealthScriptAssignment collection
+type DeviceHealthScriptAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceHealthScriptAssignment collection
+func (b *DeviceHealthScriptAssignmentsCollectionRequestBuilder) Request() *DeviceHealthScriptAssignmentsCollectionRequest {
+ return &DeviceHealthScriptAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceHealthScriptAssignment item
+func (b *DeviceHealthScriptAssignmentsCollectionRequestBuilder) ID(id string) *DeviceHealthScriptAssignmentRequestBuilder {
+ bb := &DeviceHealthScriptAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceHealthScriptAssignmentsCollectionRequest is request for DeviceHealthScriptAssignment collection
+type DeviceHealthScriptAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceHealthScriptAssignment collection
+func (r *DeviceHealthScriptAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceHealthScriptAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceHealthScriptAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceHealthScriptAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceHealthScriptAssignment collection, max N pages
+func (r *DeviceHealthScriptAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceHealthScriptAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceHealthScriptAssignment collection
+func (r *DeviceHealthScriptAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScriptAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceHealthScriptAssignment collection
+func (r *DeviceHealthScriptAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceHealthScriptAssignment) (resObj *DeviceHealthScriptAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceRunStates returns request builder for DeviceHealthScriptDeviceState collection
+func (b *DeviceHealthScriptRequestBuilder) DeviceRunStates() *DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder {
+ bb := &DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceRunStates"
+ return bb
+}
+
+// DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder is request builder for DeviceHealthScriptDeviceState collection
+type DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceHealthScriptDeviceState collection
+func (b *DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder) Request() *DeviceHealthScriptDeviceRunStatesCollectionRequest {
+ return &DeviceHealthScriptDeviceRunStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceHealthScriptDeviceState item
+func (b *DeviceHealthScriptDeviceRunStatesCollectionRequestBuilder) ID(id string) *DeviceHealthScriptDeviceStateRequestBuilder {
+ bb := &DeviceHealthScriptDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceHealthScriptDeviceRunStatesCollectionRequest is request for DeviceHealthScriptDeviceState collection
+type DeviceHealthScriptDeviceRunStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceHealthScriptDeviceState collection
+func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceHealthScriptDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceHealthScriptDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceHealthScriptDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceHealthScriptDeviceState collection, max N pages
+func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceHealthScriptDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceHealthScriptDeviceState collection
+func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScriptDeviceState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceHealthScriptDeviceState collection
+func (r *DeviceHealthScriptDeviceRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceHealthScriptDeviceState) (resObj *DeviceHealthScriptDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RunSummary is navigation property
+func (b *DeviceHealthScriptRequestBuilder) RunSummary() *DeviceHealthScriptRunSummaryRequestBuilder {
+ bb := &DeviceHealthScriptRunSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/runSummary"
+ return bb
+}
+
+// ManagedDevice is navigation property
+func (b *DeviceHealthScriptDeviceStateRequestBuilder) ManagedDevice() *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevice"
+ return bb
+}
+
+// AdvancedThreatProtectionOnboardingStateSummary is navigation property
+func (b *DeviceManagementRequestBuilder) AdvancedThreatProtectionOnboardingStateSummary() *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder {
+ bb := &AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/advancedThreatProtectionOnboardingStateSummary"
+ return bb
+}
+
+// AndroidDeviceOwnerEnrollmentProfiles returns request builder for AndroidDeviceOwnerEnrollmentProfile collection
+func (b *DeviceManagementRequestBuilder) AndroidDeviceOwnerEnrollmentProfiles() *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidDeviceOwnerEnrollmentProfiles"
+ return bb
+}
+
+// DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder is request builder for AndroidDeviceOwnerEnrollmentProfile collection
+type DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidDeviceOwnerEnrollmentProfile collection
+func (b *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder) Request() *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest {
+ return &DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidDeviceOwnerEnrollmentProfile item
+func (b *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequestBuilder) ID(id string) *AndroidDeviceOwnerEnrollmentProfileRequestBuilder {
+ bb := &AndroidDeviceOwnerEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest is request for AndroidDeviceOwnerEnrollmentProfile collection
+type DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidDeviceOwnerEnrollmentProfile collection
+func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidDeviceOwnerEnrollmentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidDeviceOwnerEnrollmentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidDeviceOwnerEnrollmentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AndroidDeviceOwnerEnrollmentProfile collection, max N pages
+func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidDeviceOwnerEnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AndroidDeviceOwnerEnrollmentProfile collection
+func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AndroidDeviceOwnerEnrollmentProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AndroidDeviceOwnerEnrollmentProfile collection
+func (r *DeviceManagementAndroidDeviceOwnerEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *AndroidDeviceOwnerEnrollmentProfile) (resObj *AndroidDeviceOwnerEnrollmentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AndroidForWorkAppConfigurationSchemas returns request builder for AndroidForWorkAppConfigurationSchema collection
+func (b *DeviceManagementRequestBuilder) AndroidForWorkAppConfigurationSchemas() *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder {
+ bb := &DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidForWorkAppConfigurationSchemas"
+ return bb
+}
+
+// DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder is request builder for AndroidForWorkAppConfigurationSchema collection
+type DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidForWorkAppConfigurationSchema collection
+func (b *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder) Request() *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest {
+ return &DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidForWorkAppConfigurationSchema item
+func (b *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequestBuilder) ID(id string) *AndroidForWorkAppConfigurationSchemaRequestBuilder {
+ bb := &AndroidForWorkAppConfigurationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest is request for AndroidForWorkAppConfigurationSchema collection
+type DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidForWorkAppConfigurationSchema collection
+func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidForWorkAppConfigurationSchema, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidForWorkAppConfigurationSchema
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidForWorkAppConfigurationSchema
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AndroidForWorkAppConfigurationSchema collection, max N pages
+func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidForWorkAppConfigurationSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AndroidForWorkAppConfigurationSchema collection
+func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Get(ctx context.Context) ([]AndroidForWorkAppConfigurationSchema, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AndroidForWorkAppConfigurationSchema collection
+func (r *DeviceManagementAndroidForWorkAppConfigurationSchemasCollectionRequest) Add(ctx context.Context, reqObj *AndroidForWorkAppConfigurationSchema) (resObj *AndroidForWorkAppConfigurationSchema, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AndroidForWorkEnrollmentProfiles returns request builder for AndroidForWorkEnrollmentProfile collection
+func (b *DeviceManagementRequestBuilder) AndroidForWorkEnrollmentProfiles() *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidForWorkEnrollmentProfiles"
+ return bb
+}
+
+// DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder is request builder for AndroidForWorkEnrollmentProfile collection
+type DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidForWorkEnrollmentProfile collection
+func (b *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder) Request() *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest {
+ return &DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidForWorkEnrollmentProfile item
+func (b *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequestBuilder) ID(id string) *AndroidForWorkEnrollmentProfileRequestBuilder {
+ bb := &AndroidForWorkEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest is request for AndroidForWorkEnrollmentProfile collection
+type DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidForWorkEnrollmentProfile collection
+func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidForWorkEnrollmentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidForWorkEnrollmentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidForWorkEnrollmentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AndroidForWorkEnrollmentProfile collection, max N pages
+func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidForWorkEnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AndroidForWorkEnrollmentProfile collection
+func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AndroidForWorkEnrollmentProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AndroidForWorkEnrollmentProfile collection
+func (r *DeviceManagementAndroidForWorkEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *AndroidForWorkEnrollmentProfile) (resObj *AndroidForWorkEnrollmentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AndroidForWorkSettings is navigation property
+func (b *DeviceManagementRequestBuilder) AndroidForWorkSettings() *AndroidForWorkSettingsRequestBuilder {
+ bb := &AndroidForWorkSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidForWorkSettings"
+ return bb
+}
+
+// AndroidManagedStoreAccountEnterpriseSettings is navigation property
+func (b *DeviceManagementRequestBuilder) AndroidManagedStoreAccountEnterpriseSettings() *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidManagedStoreAccountEnterpriseSettings"
+ return bb
+}
+
+// AndroidManagedStoreAppConfigurationSchemas returns request builder for AndroidManagedStoreAppConfigurationSchema collection
+func (b *DeviceManagementRequestBuilder) AndroidManagedStoreAppConfigurationSchemas() *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder {
+ bb := &DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/androidManagedStoreAppConfigurationSchemas"
+ return bb
+}
+
+// DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder is request builder for AndroidManagedStoreAppConfigurationSchema collection
+type DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AndroidManagedStoreAppConfigurationSchema collection
+func (b *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder) Request() *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest {
+ return &DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AndroidManagedStoreAppConfigurationSchema item
+func (b *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequestBuilder) ID(id string) *AndroidManagedStoreAppConfigurationSchemaRequestBuilder {
+ bb := &AndroidManagedStoreAppConfigurationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest is request for AndroidManagedStoreAppConfigurationSchema collection
+type DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AndroidManagedStoreAppConfigurationSchema collection
+func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AndroidManagedStoreAppConfigurationSchema, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AndroidManagedStoreAppConfigurationSchema
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AndroidManagedStoreAppConfigurationSchema
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AndroidManagedStoreAppConfigurationSchema collection, max N pages
+func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) GetN(ctx context.Context, n int) ([]AndroidManagedStoreAppConfigurationSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AndroidManagedStoreAppConfigurationSchema collection
+func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Get(ctx context.Context) ([]AndroidManagedStoreAppConfigurationSchema, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AndroidManagedStoreAppConfigurationSchema collection
+func (r *DeviceManagementAndroidManagedStoreAppConfigurationSchemasCollectionRequest) Add(ctx context.Context, reqObj *AndroidManagedStoreAppConfigurationSchema) (resObj *AndroidManagedStoreAppConfigurationSchema, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ApplePushNotificationCertificate is navigation property
+func (b *DeviceManagementRequestBuilder) ApplePushNotificationCertificate() *ApplePushNotificationCertificateRequestBuilder {
+ bb := &ApplePushNotificationCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/applePushNotificationCertificate"
+ return bb
+}
+
+// AppleUserInitiatedEnrollmentProfiles returns request builder for AppleUserInitiatedEnrollmentProfile collection
+func (b *DeviceManagementRequestBuilder) AppleUserInitiatedEnrollmentProfiles() *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appleUserInitiatedEnrollmentProfiles"
+ return bb
+}
+
+// DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder is request builder for AppleUserInitiatedEnrollmentProfile collection
+type DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppleUserInitiatedEnrollmentProfile collection
+func (b *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder) Request() *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest {
+ return &DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppleUserInitiatedEnrollmentProfile item
+func (b *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequestBuilder) ID(id string) *AppleUserInitiatedEnrollmentProfileRequestBuilder {
+ bb := &AppleUserInitiatedEnrollmentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest is request for AppleUserInitiatedEnrollmentProfile collection
+type DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppleUserInitiatedEnrollmentProfile collection
+func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppleUserInitiatedEnrollmentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppleUserInitiatedEnrollmentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppleUserInitiatedEnrollmentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppleUserInitiatedEnrollmentProfile collection, max N pages
+func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]AppleUserInitiatedEnrollmentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppleUserInitiatedEnrollmentProfile collection
+func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Get(ctx context.Context) ([]AppleUserInitiatedEnrollmentProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppleUserInitiatedEnrollmentProfile collection
+func (r *DeviceManagementAppleUserInitiatedEnrollmentProfilesCollectionRequest) Add(ctx context.Context, reqObj *AppleUserInitiatedEnrollmentProfile) (resObj *AppleUserInitiatedEnrollmentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AuditEvents returns request builder for AuditEvent collection
+func (b *DeviceManagementRequestBuilder) AuditEvents() *DeviceManagementAuditEventsCollectionRequestBuilder {
+ bb := &DeviceManagementAuditEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/auditEvents"
+ return bb
+}
+
+// DeviceManagementAuditEventsCollectionRequestBuilder is request builder for AuditEvent collection
+type DeviceManagementAuditEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AuditEvent collection
+func (b *DeviceManagementAuditEventsCollectionRequestBuilder) Request() *DeviceManagementAuditEventsCollectionRequest {
+ return &DeviceManagementAuditEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AuditEvent item
+func (b *DeviceManagementAuditEventsCollectionRequestBuilder) ID(id string) *AuditEventRequestBuilder {
+ bb := &AuditEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAuditEventsCollectionRequest is request for AuditEvent collection
+type DeviceManagementAuditEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AuditEvent collection
+func (r *DeviceManagementAuditEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AuditEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AuditEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AuditEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AuditEvent collection, max N pages
+func (r *DeviceManagementAuditEventsCollectionRequest) GetN(ctx context.Context, n int) ([]AuditEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AuditEvent collection
+func (r *DeviceManagementAuditEventsCollectionRequest) Get(ctx context.Context) ([]AuditEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AuditEvent collection
+func (r *DeviceManagementAuditEventsCollectionRequest) Add(ctx context.Context, reqObj *AuditEvent) (resObj *AuditEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AutopilotEvents returns request builder for DeviceManagementAutopilotEvent collection
+func (b *DeviceManagementRequestBuilder) AutopilotEvents() *DeviceManagementAutopilotEventsCollectionRequestBuilder {
+ bb := &DeviceManagementAutopilotEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/autopilotEvents"
+ return bb
+}
+
+// DeviceManagementAutopilotEventsCollectionRequestBuilder is request builder for DeviceManagementAutopilotEvent collection
+type DeviceManagementAutopilotEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementAutopilotEvent collection
+func (b *DeviceManagementAutopilotEventsCollectionRequestBuilder) Request() *DeviceManagementAutopilotEventsCollectionRequest {
+ return &DeviceManagementAutopilotEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementAutopilotEvent item
+func (b *DeviceManagementAutopilotEventsCollectionRequestBuilder) ID(id string) *DeviceManagementAutopilotEventRequestBuilder {
+ bb := &DeviceManagementAutopilotEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAutopilotEventsCollectionRequest is request for DeviceManagementAutopilotEvent collection
+type DeviceManagementAutopilotEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementAutopilotEvent collection
+func (r *DeviceManagementAutopilotEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementAutopilotEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementAutopilotEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementAutopilotEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementAutopilotEvent collection, max N pages
+func (r *DeviceManagementAutopilotEventsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementAutopilotEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementAutopilotEvent collection
+func (r *DeviceManagementAutopilotEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementAutopilotEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementAutopilotEvent collection
+func (r *DeviceManagementAutopilotEventsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementAutopilotEvent) (resObj *DeviceManagementAutopilotEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CartToClassAssociations returns request builder for CartToClassAssociation collection
+func (b *DeviceManagementRequestBuilder) CartToClassAssociations() *DeviceManagementCartToClassAssociationsCollectionRequestBuilder {
+ bb := &DeviceManagementCartToClassAssociationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/cartToClassAssociations"
+ return bb
+}
+
+// DeviceManagementCartToClassAssociationsCollectionRequestBuilder is request builder for CartToClassAssociation collection
+type DeviceManagementCartToClassAssociationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CartToClassAssociation collection
+func (b *DeviceManagementCartToClassAssociationsCollectionRequestBuilder) Request() *DeviceManagementCartToClassAssociationsCollectionRequest {
+ return &DeviceManagementCartToClassAssociationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CartToClassAssociation item
+func (b *DeviceManagementCartToClassAssociationsCollectionRequestBuilder) ID(id string) *CartToClassAssociationRequestBuilder {
+ bb := &CartToClassAssociationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementCartToClassAssociationsCollectionRequest is request for CartToClassAssociation collection
+type DeviceManagementCartToClassAssociationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CartToClassAssociation collection
+func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CartToClassAssociation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CartToClassAssociation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CartToClassAssociation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CartToClassAssociation collection, max N pages
+func (r *DeviceManagementCartToClassAssociationsCollectionRequest) GetN(ctx context.Context, n int) ([]CartToClassAssociation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CartToClassAssociation collection
+func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Get(ctx context.Context) ([]CartToClassAssociation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CartToClassAssociation collection
+func (r *DeviceManagementCartToClassAssociationsCollectionRequest) Add(ctx context.Context, reqObj *CartToClassAssociation) (resObj *CartToClassAssociation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Categories returns request builder for DeviceManagementSettingCategory collection
+func (b *DeviceManagementRequestBuilder) Categories() *DeviceManagementCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// DeviceManagementCategoriesCollectionRequestBuilder is request builder for DeviceManagementSettingCategory collection
+type DeviceManagementCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingCategory collection
+func (b *DeviceManagementCategoriesCollectionRequestBuilder) Request() *DeviceManagementCategoriesCollectionRequest {
+ return &DeviceManagementCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingCategory item
+func (b *DeviceManagementCategoriesCollectionRequestBuilder) ID(id string) *DeviceManagementSettingCategoryRequestBuilder {
+ bb := &DeviceManagementSettingCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementCategoriesCollectionRequest is request for DeviceManagementSettingCategory collection
+type DeviceManagementCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingCategory collection
+func (r *DeviceManagementCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingCategory collection, max N pages
+func (r *DeviceManagementCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingCategory collection
+func (r *DeviceManagementCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingCategory collection
+func (r *DeviceManagementCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingCategory) (resObj *DeviceManagementSettingCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ComplianceManagementPartners returns request builder for ComplianceManagementPartner collection
+func (b *DeviceManagementRequestBuilder) ComplianceManagementPartners() *DeviceManagementComplianceManagementPartnersCollectionRequestBuilder {
+ bb := &DeviceManagementComplianceManagementPartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/complianceManagementPartners"
+ return bb
+}
+
+// DeviceManagementComplianceManagementPartnersCollectionRequestBuilder is request builder for ComplianceManagementPartner collection
+type DeviceManagementComplianceManagementPartnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ComplianceManagementPartner collection
+func (b *DeviceManagementComplianceManagementPartnersCollectionRequestBuilder) Request() *DeviceManagementComplianceManagementPartnersCollectionRequest {
+ return &DeviceManagementComplianceManagementPartnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ComplianceManagementPartner item
+func (b *DeviceManagementComplianceManagementPartnersCollectionRequestBuilder) ID(id string) *ComplianceManagementPartnerRequestBuilder {
+ bb := &ComplianceManagementPartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementComplianceManagementPartnersCollectionRequest is request for ComplianceManagementPartner collection
+type DeviceManagementComplianceManagementPartnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ComplianceManagementPartner collection
+func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ComplianceManagementPartner, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ComplianceManagementPartner
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ComplianceManagementPartner
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ComplianceManagementPartner collection, max N pages
+func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) GetN(ctx context.Context, n int) ([]ComplianceManagementPartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ComplianceManagementPartner collection
+func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Get(ctx context.Context) ([]ComplianceManagementPartner, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ComplianceManagementPartner collection
+func (r *DeviceManagementComplianceManagementPartnersCollectionRequest) Add(ctx context.Context, reqObj *ComplianceManagementPartner) (resObj *ComplianceManagementPartner, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ConditionalAccessSettings is navigation property
+func (b *DeviceManagementRequestBuilder) ConditionalAccessSettings() *OnPremisesConditionalAccessSettingsRequestBuilder {
+ bb := &OnPremisesConditionalAccessSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/conditionalAccessSettings"
+ return bb
+}
+
+// DataSharingConsents returns request builder for DataSharingConsent collection
+func (b *DeviceManagementRequestBuilder) DataSharingConsents() *DeviceManagementDataSharingConsentsCollectionRequestBuilder {
+ bb := &DeviceManagementDataSharingConsentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dataSharingConsents"
+ return bb
+}
+
+// DeviceManagementDataSharingConsentsCollectionRequestBuilder is request builder for DataSharingConsent collection
+type DeviceManagementDataSharingConsentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DataSharingConsent collection
+func (b *DeviceManagementDataSharingConsentsCollectionRequestBuilder) Request() *DeviceManagementDataSharingConsentsCollectionRequest {
+ return &DeviceManagementDataSharingConsentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DataSharingConsent item
+func (b *DeviceManagementDataSharingConsentsCollectionRequestBuilder) ID(id string) *DataSharingConsentRequestBuilder {
+ bb := &DataSharingConsentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDataSharingConsentsCollectionRequest is request for DataSharingConsent collection
+type DeviceManagementDataSharingConsentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DataSharingConsent collection
+func (r *DeviceManagementDataSharingConsentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DataSharingConsent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DataSharingConsent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DataSharingConsent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DataSharingConsent collection, max N pages
+func (r *DeviceManagementDataSharingConsentsCollectionRequest) GetN(ctx context.Context, n int) ([]DataSharingConsent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DataSharingConsent collection
+func (r *DeviceManagementDataSharingConsentsCollectionRequest) Get(ctx context.Context) ([]DataSharingConsent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DataSharingConsent collection
+func (r *DeviceManagementDataSharingConsentsCollectionRequest) Add(ctx context.Context, reqObj *DataSharingConsent) (resObj *DataSharingConsent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DepOnboardingSettings returns request builder for DepOnboardingSetting collection
+func (b *DeviceManagementRequestBuilder) DepOnboardingSettings() *DeviceManagementDepOnboardingSettingsCollectionRequestBuilder {
+ bb := &DeviceManagementDepOnboardingSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/depOnboardingSettings"
+ return bb
+}
+
+// DeviceManagementDepOnboardingSettingsCollectionRequestBuilder is request builder for DepOnboardingSetting collection
+type DeviceManagementDepOnboardingSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DepOnboardingSetting collection
+func (b *DeviceManagementDepOnboardingSettingsCollectionRequestBuilder) Request() *DeviceManagementDepOnboardingSettingsCollectionRequest {
+ return &DeviceManagementDepOnboardingSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DepOnboardingSetting item
+func (b *DeviceManagementDepOnboardingSettingsCollectionRequestBuilder) ID(id string) *DepOnboardingSettingRequestBuilder {
+ bb := &DepOnboardingSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDepOnboardingSettingsCollectionRequest is request for DepOnboardingSetting collection
+type DeviceManagementDepOnboardingSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DepOnboardingSetting collection
+func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DepOnboardingSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DepOnboardingSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DepOnboardingSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DepOnboardingSetting collection, max N pages
+func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DepOnboardingSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DepOnboardingSetting collection
+func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Get(ctx context.Context) ([]DepOnboardingSetting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DepOnboardingSetting collection
+func (r *DeviceManagementDepOnboardingSettingsCollectionRequest) Add(ctx context.Context, reqObj *DepOnboardingSetting) (resObj *DepOnboardingSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DerivedCredentials returns request builder for DeviceManagementDerivedCredentialSettings collection
+func (b *DeviceManagementRequestBuilder) DerivedCredentials() *DeviceManagementDerivedCredentialsCollectionRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentials"
+ return bb
+}
+
+// DeviceManagementDerivedCredentialsCollectionRequestBuilder is request builder for DeviceManagementDerivedCredentialSettings collection
+type DeviceManagementDerivedCredentialsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementDerivedCredentialSettings collection
+func (b *DeviceManagementDerivedCredentialsCollectionRequestBuilder) Request() *DeviceManagementDerivedCredentialsCollectionRequest {
+ return &DeviceManagementDerivedCredentialsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementDerivedCredentialSettings item
+func (b *DeviceManagementDerivedCredentialsCollectionRequestBuilder) ID(id string) *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDerivedCredentialsCollectionRequest is request for DeviceManagementDerivedCredentialSettings collection
+type DeviceManagementDerivedCredentialsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementDerivedCredentialSettings collection
+func (r *DeviceManagementDerivedCredentialsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementDerivedCredentialSettings, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementDerivedCredentialSettings
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementDerivedCredentialSettings
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementDerivedCredentialSettings collection, max N pages
+func (r *DeviceManagementDerivedCredentialsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementDerivedCredentialSettings, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementDerivedCredentialSettings collection
+func (r *DeviceManagementDerivedCredentialsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementDerivedCredentialSettings, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementDerivedCredentialSettings collection
+func (r *DeviceManagementDerivedCredentialsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementDerivedCredentialSettings) (resObj *DeviceManagementDerivedCredentialSettings, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DetectedApps returns request builder for DetectedApp collection
+func (b *DeviceManagementRequestBuilder) DetectedApps() *DeviceManagementDetectedAppsCollectionRequestBuilder {
+ bb := &DeviceManagementDetectedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/detectedApps"
+ return bb
+}
+
+// DeviceManagementDetectedAppsCollectionRequestBuilder is request builder for DetectedApp collection
+type DeviceManagementDetectedAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DetectedApp collection
+func (b *DeviceManagementDetectedAppsCollectionRequestBuilder) Request() *DeviceManagementDetectedAppsCollectionRequest {
+ return &DeviceManagementDetectedAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DetectedApp item
+func (b *DeviceManagementDetectedAppsCollectionRequestBuilder) ID(id string) *DetectedAppRequestBuilder {
+ bb := &DetectedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDetectedAppsCollectionRequest is request for DetectedApp collection
+type DeviceManagementDetectedAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DetectedApp collection
+func (r *DeviceManagementDetectedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DetectedApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DetectedApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DetectedApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DetectedApp collection, max N pages
+func (r *DeviceManagementDetectedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]DetectedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DetectedApp collection
+func (r *DeviceManagementDetectedAppsCollectionRequest) Get(ctx context.Context) ([]DetectedApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DetectedApp collection
+func (r *DeviceManagementDetectedAppsCollectionRequest) Add(ctx context.Context, reqObj *DetectedApp) (resObj *DetectedApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceCategories returns request builder for DeviceCategory collection
+func (b *DeviceManagementRequestBuilder) DeviceCategories() *DeviceManagementDeviceCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCategories"
+ return bb
+}
+
+// DeviceManagementDeviceCategoriesCollectionRequestBuilder is request builder for DeviceCategory collection
+type DeviceManagementDeviceCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCategory collection
+func (b *DeviceManagementDeviceCategoriesCollectionRequestBuilder) Request() *DeviceManagementDeviceCategoriesCollectionRequest {
+ return &DeviceManagementDeviceCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCategory item
+func (b *DeviceManagementDeviceCategoriesCollectionRequestBuilder) ID(id string) *DeviceCategoryRequestBuilder {
+ bb := &DeviceCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceCategoriesCollectionRequest is request for DeviceCategory collection
+type DeviceManagementDeviceCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCategory collection
+func (r *DeviceManagementDeviceCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceCategory collection, max N pages
+func (r *DeviceManagementDeviceCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceCategory collection
+func (r *DeviceManagementDeviceCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceCategory collection
+func (r *DeviceManagementDeviceCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCategory) (resObj *DeviceCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceCompliancePolicies returns request builder for DeviceCompliancePolicy collection
+func (b *DeviceManagementRequestBuilder) DeviceCompliancePolicies() *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicies"
+ return bb
+}
+
+// DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder is request builder for DeviceCompliancePolicy collection
+type DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCompliancePolicy collection
+func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) Request() *DeviceManagementDeviceCompliancePoliciesCollectionRequest {
+ return &DeviceManagementDeviceCompliancePoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCompliancePolicy item
+func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicyRequestBuilder {
+ bb := &DeviceCompliancePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceCompliancePoliciesCollectionRequest is request for DeviceCompliancePolicy collection
+type DeviceManagementDeviceCompliancePoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCompliancePolicy collection
+func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCompliancePolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCompliancePolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceCompliancePolicy collection, max N pages
+func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCompliancePolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceCompliancePolicy collection
+func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceCompliancePolicy collection
+func (r *DeviceManagementDeviceCompliancePoliciesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicy) (resObj *DeviceCompliancePolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceCompliancePolicyDeviceStateSummary is navigation property
+func (b *DeviceManagementRequestBuilder) DeviceCompliancePolicyDeviceStateSummary() *DeviceCompliancePolicyDeviceStateSummaryRequestBuilder {
+ bb := &DeviceCompliancePolicyDeviceStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicyDeviceStateSummary"
+ return bb
+}
+
+// DeviceCompliancePolicySettingStateSummaries returns request builder for DeviceCompliancePolicySettingStateSummary collection
+func (b *DeviceManagementRequestBuilder) DeviceCompliancePolicySettingStateSummaries() *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicySettingStateSummaries"
+ return bb
+}
+
+// DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder is request builder for DeviceCompliancePolicySettingStateSummary collection
+type DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCompliancePolicySettingStateSummary collection
+func (b *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder) Request() *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest {
+ return &DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCompliancePolicySettingStateSummary item
+func (b *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicySettingStateSummaryRequestBuilder {
+ bb := &DeviceCompliancePolicySettingStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest is request for DeviceCompliancePolicySettingStateSummary collection
+type DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCompliancePolicySettingStateSummary collection
+func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicySettingStateSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCompliancePolicySettingStateSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCompliancePolicySettingStateSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceCompliancePolicySettingStateSummary collection, max N pages
+func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCompliancePolicySettingStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceCompliancePolicySettingStateSummary collection
+func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicySettingStateSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceCompliancePolicySettingStateSummary collection
+func (r *DeviceManagementDeviceCompliancePolicySettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicySettingStateSummary) (resObj *DeviceCompliancePolicySettingStateSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationConflictSummary returns request builder for DeviceConfigurationConflictSummary collection
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationConflictSummary() *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationConflictSummary"
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder is request builder for DeviceConfigurationConflictSummary collection
+type DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationConflictSummary collection
+func (b *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest {
+ return &DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationConflictSummary item
+func (b *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequestBuilder) ID(id string) *DeviceConfigurationConflictSummaryRequestBuilder {
+ bb := &DeviceConfigurationConflictSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest is request for DeviceConfigurationConflictSummary collection
+type DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationConflictSummary collection
+func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationConflictSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationConflictSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationConflictSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceConfigurationConflictSummary collection, max N pages
+func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationConflictSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceConfigurationConflictSummary collection
+func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationConflictSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceConfigurationConflictSummary collection
+func (r *DeviceManagementDeviceConfigurationConflictSummaryCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationConflictSummary) (resObj *DeviceConfigurationConflictSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationDeviceStateSummaries is navigation property
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationDeviceStateSummaries() *DeviceConfigurationDeviceStateSummaryRequestBuilder {
+ bb := &DeviceConfigurationDeviceStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationDeviceStateSummaries"
+ return bb
+}
+
+// DeviceConfigurationRestrictedAppsViolations returns request builder for RestrictedAppsViolation collection
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationRestrictedAppsViolations() *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationRestrictedAppsViolations"
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder is request builder for RestrictedAppsViolation collection
+type DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RestrictedAppsViolation collection
+func (b *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest {
+ return &DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RestrictedAppsViolation item
+func (b *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequestBuilder) ID(id string) *RestrictedAppsViolationRequestBuilder {
+ bb := &RestrictedAppsViolationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest is request for RestrictedAppsViolation collection
+type DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RestrictedAppsViolation collection
+func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RestrictedAppsViolation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RestrictedAppsViolation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RestrictedAppsViolation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RestrictedAppsViolation collection, max N pages
+func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) GetN(ctx context.Context, n int) ([]RestrictedAppsViolation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RestrictedAppsViolation collection
+func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Get(ctx context.Context) ([]RestrictedAppsViolation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RestrictedAppsViolation collection
+func (r *DeviceManagementDeviceConfigurationRestrictedAppsViolationsCollectionRequest) Add(ctx context.Context, reqObj *RestrictedAppsViolation) (resObj *RestrictedAppsViolation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationUserStateSummaries is navigation property
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationUserStateSummaries() *DeviceConfigurationUserStateSummaryRequestBuilder {
+ bb := &DeviceConfigurationUserStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationUserStateSummaries"
+ return bb
+}
+
+// DeviceConfigurations returns request builder for DeviceConfiguration collection
+func (b *DeviceManagementRequestBuilder) DeviceConfigurations() *DeviceManagementDeviceConfigurationsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurations"
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationsCollectionRequestBuilder is request builder for DeviceConfiguration collection
+type DeviceManagementDeviceConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfiguration collection
+func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationsCollectionRequest {
+ return &DeviceManagementDeviceConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfiguration item
+func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) ID(id string) *DeviceConfigurationRequestBuilder {
+ bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationsCollectionRequest is request for DeviceConfiguration collection
+type DeviceManagementDeviceConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfiguration collection
+func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceConfiguration collection, max N pages
+func (r *DeviceManagementDeviceConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceConfiguration collection
+func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceConfiguration collection
+func (r *DeviceManagementDeviceConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfiguration) (resObj *DeviceConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationsAllManagedDeviceCertificateStates returns request builder for ManagedAllDeviceCertificateState collection
+func (b *DeviceManagementRequestBuilder) DeviceConfigurationsAllManagedDeviceCertificateStates() *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationsAllManagedDeviceCertificateStates"
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedAllDeviceCertificateState collection
+type DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAllDeviceCertificateState collection
+func (b *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest {
+ return &DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAllDeviceCertificateState item
+func (b *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedAllDeviceCertificateStateRequestBuilder {
+ bb := &ManagedAllDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest is request for ManagedAllDeviceCertificateState collection
+type DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAllDeviceCertificateState collection
+func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAllDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAllDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAllDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedAllDeviceCertificateState collection, max N pages
+func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAllDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedAllDeviceCertificateState collection
+func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedAllDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedAllDeviceCertificateState collection
+func (r *DeviceManagementDeviceConfigurationsAllManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAllDeviceCertificateState) (resObj *ManagedAllDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceEnrollmentConfigurations returns request builder for DeviceEnrollmentConfiguration collection
+func (b *DeviceManagementRequestBuilder) DeviceEnrollmentConfigurations() *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceEnrollmentConfigurations"
+ return bb
+}
+
+// DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder is request builder for DeviceEnrollmentConfiguration collection
+type DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceEnrollmentConfiguration collection
+func (b *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder) Request() *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest {
+ return &DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceEnrollmentConfiguration item
+func (b *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder) ID(id string) *DeviceEnrollmentConfigurationRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest is request for DeviceEnrollmentConfiguration collection
+type DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceEnrollmentConfiguration collection
+func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceEnrollmentConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceEnrollmentConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceEnrollmentConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceEnrollmentConfiguration collection, max N pages
+func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceEnrollmentConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceEnrollmentConfiguration collection
+func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceEnrollmentConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceEnrollmentConfiguration collection
+func (r *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceEnrollmentConfiguration) (resObj *DeviceEnrollmentConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceHealthScripts returns request builder for DeviceHealthScript collection
+func (b *DeviceManagementRequestBuilder) DeviceHealthScripts() *DeviceManagementDeviceHealthScriptsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceHealthScriptsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceHealthScripts"
+ return bb
+}
+
+// DeviceManagementDeviceHealthScriptsCollectionRequestBuilder is request builder for DeviceHealthScript collection
+type DeviceManagementDeviceHealthScriptsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceHealthScript collection
+func (b *DeviceManagementDeviceHealthScriptsCollectionRequestBuilder) Request() *DeviceManagementDeviceHealthScriptsCollectionRequest {
+ return &DeviceManagementDeviceHealthScriptsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceHealthScript item
+func (b *DeviceManagementDeviceHealthScriptsCollectionRequestBuilder) ID(id string) *DeviceHealthScriptRequestBuilder {
+ bb := &DeviceHealthScriptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceHealthScriptsCollectionRequest is request for DeviceHealthScript collection
+type DeviceManagementDeviceHealthScriptsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceHealthScript collection
+func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceHealthScript, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceHealthScript
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceHealthScript
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceHealthScript collection, max N pages
+func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceHealthScript, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceHealthScript collection
+func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Get(ctx context.Context) ([]DeviceHealthScript, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceHealthScript collection
+func (r *DeviceManagementDeviceHealthScriptsCollectionRequest) Add(ctx context.Context, reqObj *DeviceHealthScript) (resObj *DeviceHealthScript, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceManagementPartners returns request builder for DeviceManagementPartner collection
+func (b *DeviceManagementRequestBuilder) DeviceManagementPartners() *DeviceManagementDeviceManagementPartnersCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceManagementPartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceManagementPartners"
+ return bb
+}
+
+// DeviceManagementDeviceManagementPartnersCollectionRequestBuilder is request builder for DeviceManagementPartner collection
+type DeviceManagementDeviceManagementPartnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementPartner collection
+func (b *DeviceManagementDeviceManagementPartnersCollectionRequestBuilder) Request() *DeviceManagementDeviceManagementPartnersCollectionRequest {
+ return &DeviceManagementDeviceManagementPartnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementPartner item
+func (b *DeviceManagementDeviceManagementPartnersCollectionRequestBuilder) ID(id string) *DeviceManagementPartnerRequestBuilder {
+ bb := &DeviceManagementPartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceManagementPartnersCollectionRequest is request for DeviceManagementPartner collection
+type DeviceManagementDeviceManagementPartnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementPartner collection
+func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementPartner, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementPartner
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementPartner
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementPartner collection, max N pages
+func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementPartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementPartner collection
+func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Get(ctx context.Context) ([]DeviceManagementPartner, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementPartner collection
+func (r *DeviceManagementDeviceManagementPartnersCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementPartner) (resObj *DeviceManagementPartner, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceManagementScripts returns request builder for DeviceManagementScript collection
+func (b *DeviceManagementRequestBuilder) DeviceManagementScripts() *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder {
+ bb := &DeviceManagementDeviceManagementScriptsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceManagementScripts"
+ return bb
+}
+
+// DeviceManagementDeviceManagementScriptsCollectionRequestBuilder is request builder for DeviceManagementScript collection
+type DeviceManagementDeviceManagementScriptsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScript collection
+func (b *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder) Request() *DeviceManagementDeviceManagementScriptsCollectionRequest {
+ return &DeviceManagementDeviceManagementScriptsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScript item
+func (b *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder) ID(id string) *DeviceManagementScriptRequestBuilder {
+ bb := &DeviceManagementScriptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDeviceManagementScriptsCollectionRequest is request for DeviceManagementScript collection
+type DeviceManagementDeviceManagementScriptsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScript collection
+func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScript, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScript
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScript
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementScript collection, max N pages
+func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScript, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementScript collection
+func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScript, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementScript collection
+func (r *DeviceManagementDeviceManagementScriptsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScript) (resObj *DeviceManagementScript, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DomainJoinConnectors returns request builder for DeviceManagementDomainJoinConnector collection
+func (b *DeviceManagementRequestBuilder) DomainJoinConnectors() *DeviceManagementDomainJoinConnectorsCollectionRequestBuilder {
+ bb := &DeviceManagementDomainJoinConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainJoinConnectors"
+ return bb
+}
+
+// DeviceManagementDomainJoinConnectorsCollectionRequestBuilder is request builder for DeviceManagementDomainJoinConnector collection
+type DeviceManagementDomainJoinConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementDomainJoinConnector collection
+func (b *DeviceManagementDomainJoinConnectorsCollectionRequestBuilder) Request() *DeviceManagementDomainJoinConnectorsCollectionRequest {
+ return &DeviceManagementDomainJoinConnectorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementDomainJoinConnector item
+func (b *DeviceManagementDomainJoinConnectorsCollectionRequestBuilder) ID(id string) *DeviceManagementDomainJoinConnectorRequestBuilder {
+ bb := &DeviceManagementDomainJoinConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementDomainJoinConnectorsCollectionRequest is request for DeviceManagementDomainJoinConnector collection
+type DeviceManagementDomainJoinConnectorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementDomainJoinConnector collection
+func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementDomainJoinConnector, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementDomainJoinConnector
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementDomainJoinConnector
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementDomainJoinConnector collection, max N pages
+func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementDomainJoinConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementDomainJoinConnector collection
+func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementDomainJoinConnector, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementDomainJoinConnector collection
+func (r *DeviceManagementDomainJoinConnectorsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementDomainJoinConnector) (resObj *DeviceManagementDomainJoinConnector, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EmbeddedSIMActivationCodePools returns request builder for EmbeddedSIMActivationCodePool collection
+func (b *DeviceManagementRequestBuilder) EmbeddedSIMActivationCodePools() *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder {
+ bb := &DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/embeddedSIMActivationCodePools"
+ return bb
+}
+
+// DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder is request builder for EmbeddedSIMActivationCodePool collection
+type DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EmbeddedSIMActivationCodePool collection
+func (b *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder) Request() *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest {
+ return &DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EmbeddedSIMActivationCodePool item
+func (b *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequestBuilder) ID(id string) *EmbeddedSIMActivationCodePoolRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest is request for EmbeddedSIMActivationCodePool collection
+type DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EmbeddedSIMActivationCodePool collection
+func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EmbeddedSIMActivationCodePool, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EmbeddedSIMActivationCodePool
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EmbeddedSIMActivationCodePool
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EmbeddedSIMActivationCodePool collection, max N pages
+func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EmbeddedSIMActivationCodePool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EmbeddedSIMActivationCodePool collection
+func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMActivationCodePool, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EmbeddedSIMActivationCodePool collection
+func (r *DeviceManagementEmbeddedSIMActivationCodePoolsCollectionRequest) Add(ctx context.Context, reqObj *EmbeddedSIMActivationCodePool) (resObj *EmbeddedSIMActivationCodePool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExchangeConnectors returns request builder for DeviceManagementExchangeConnector collection
+func (b *DeviceManagementRequestBuilder) ExchangeConnectors() *DeviceManagementExchangeConnectorsCollectionRequestBuilder {
+ bb := &DeviceManagementExchangeConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exchangeConnectors"
+ return bb
+}
+
+// DeviceManagementExchangeConnectorsCollectionRequestBuilder is request builder for DeviceManagementExchangeConnector collection
+type DeviceManagementExchangeConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementExchangeConnector collection
+func (b *DeviceManagementExchangeConnectorsCollectionRequestBuilder) Request() *DeviceManagementExchangeConnectorsCollectionRequest {
+ return &DeviceManagementExchangeConnectorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementExchangeConnector item
+func (b *DeviceManagementExchangeConnectorsCollectionRequestBuilder) ID(id string) *DeviceManagementExchangeConnectorRequestBuilder {
+ bb := &DeviceManagementExchangeConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementExchangeConnectorsCollectionRequest is request for DeviceManagementExchangeConnector collection
+type DeviceManagementExchangeConnectorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementExchangeConnector collection
+func (r *DeviceManagementExchangeConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementExchangeConnector, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementExchangeConnector
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementExchangeConnector
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementExchangeConnector collection, max N pages
+func (r *DeviceManagementExchangeConnectorsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementExchangeConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementExchangeConnector collection
+func (r *DeviceManagementExchangeConnectorsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExchangeConnector, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementExchangeConnector collection
+func (r *DeviceManagementExchangeConnectorsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementExchangeConnector) (resObj *DeviceManagementExchangeConnector, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExchangeOnPremisesPolicies returns request builder for DeviceManagementExchangeOnPremisesPolicy collection
+func (b *DeviceManagementRequestBuilder) ExchangeOnPremisesPolicies() *DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder {
+ bb := &DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exchangeOnPremisesPolicies"
+ return bb
+}
+
+// DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder is request builder for DeviceManagementExchangeOnPremisesPolicy collection
+type DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementExchangeOnPremisesPolicy collection
+func (b *DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder) Request() *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest {
+ return &DeviceManagementExchangeOnPremisesPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementExchangeOnPremisesPolicy item
+func (b *DeviceManagementExchangeOnPremisesPoliciesCollectionRequestBuilder) ID(id string) *DeviceManagementExchangeOnPremisesPolicyRequestBuilder {
+ bb := &DeviceManagementExchangeOnPremisesPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementExchangeOnPremisesPoliciesCollectionRequest is request for DeviceManagementExchangeOnPremisesPolicy collection
+type DeviceManagementExchangeOnPremisesPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementExchangeOnPremisesPolicy collection
+func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementExchangeOnPremisesPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementExchangeOnPremisesPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementExchangeOnPremisesPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementExchangeOnPremisesPolicy collection, max N pages
+func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementExchangeOnPremisesPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementExchangeOnPremisesPolicy collection
+func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExchangeOnPremisesPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementExchangeOnPremisesPolicy collection
+func (r *DeviceManagementExchangeOnPremisesPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementExchangeOnPremisesPolicy) (resObj *DeviceManagementExchangeOnPremisesPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExchangeOnPremisesPolicy is navigation property
+func (b *DeviceManagementRequestBuilder) ExchangeOnPremisesPolicy() *DeviceManagementExchangeOnPremisesPolicyRequestBuilder {
+ bb := &DeviceManagementExchangeOnPremisesPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exchangeOnPremisesPolicy"
+ return bb
+}
+
+// GroupPolicyConfigurations returns request builder for GroupPolicyConfiguration collection
+func (b *DeviceManagementRequestBuilder) GroupPolicyConfigurations() *DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder {
+ bb := &DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicyConfigurations"
+ return bb
+}
+
+// DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder is request builder for GroupPolicyConfiguration collection
+type DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyConfiguration collection
+func (b *DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyConfigurationsCollectionRequest {
+ return &DeviceManagementGroupPolicyConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyConfiguration item
+func (b *DeviceManagementGroupPolicyConfigurationsCollectionRequestBuilder) ID(id string) *GroupPolicyConfigurationRequestBuilder {
+ bb := &GroupPolicyConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementGroupPolicyConfigurationsCollectionRequest is request for GroupPolicyConfiguration collection
+type DeviceManagementGroupPolicyConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyConfiguration collection
+func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicyConfiguration collection, max N pages
+func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicyConfiguration collection
+func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicyConfiguration collection
+func (r *DeviceManagementGroupPolicyConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyConfiguration) (resObj *GroupPolicyConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupPolicyDefinitionFiles returns request builder for GroupPolicyDefinitionFile collection
+func (b *DeviceManagementRequestBuilder) GroupPolicyDefinitionFiles() *DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder {
+ bb := &DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicyDefinitionFiles"
+ return bb
+}
+
+// DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder is request builder for GroupPolicyDefinitionFile collection
+type DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyDefinitionFile collection
+func (b *DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest {
+ return &DeviceManagementGroupPolicyDefinitionFilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyDefinitionFile item
+func (b *DeviceManagementGroupPolicyDefinitionFilesCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionFileRequestBuilder {
+ bb := &GroupPolicyDefinitionFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementGroupPolicyDefinitionFilesCollectionRequest is request for GroupPolicyDefinitionFile collection
+type DeviceManagementGroupPolicyDefinitionFilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyDefinitionFile collection
+func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyDefinitionFile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyDefinitionFile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyDefinitionFile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicyDefinitionFile collection, max N pages
+func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyDefinitionFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicyDefinitionFile collection
+func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinitionFile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicyDefinitionFile collection
+func (r *DeviceManagementGroupPolicyDefinitionFilesCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinitionFile) (resObj *GroupPolicyDefinitionFile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupPolicyDefinitions returns request builder for GroupPolicyDefinition collection
+func (b *DeviceManagementRequestBuilder) GroupPolicyDefinitions() *DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder {
+ bb := &DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicyDefinitions"
+ return bb
+}
+
+// DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder is request builder for GroupPolicyDefinition collection
+type DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyDefinition collection
+func (b *DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyDefinitionsCollectionRequest {
+ return &DeviceManagementGroupPolicyDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyDefinition item
+func (b *DeviceManagementGroupPolicyDefinitionsCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionRequestBuilder {
+ bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementGroupPolicyDefinitionsCollectionRequest is request for GroupPolicyDefinition collection
+type DeviceManagementGroupPolicyDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyDefinition collection
+func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicyDefinition collection, max N pages
+func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicyDefinition collection
+func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicyDefinition collection
+func (r *DeviceManagementGroupPolicyDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinition) (resObj *GroupPolicyDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupPolicyMigrationReports returns request builder for GroupPolicyMigrationReport collection
+func (b *DeviceManagementRequestBuilder) GroupPolicyMigrationReports() *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder {
+ bb := &DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicyMigrationReports"
+ return bb
+}
+
+// DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder is request builder for GroupPolicyMigrationReport collection
+type DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyMigrationReport collection
+func (b *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder) Request() *DeviceManagementGroupPolicyMigrationReportsCollectionRequest {
+ return &DeviceManagementGroupPolicyMigrationReportsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyMigrationReport item
+func (b *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder) ID(id string) *GroupPolicyMigrationReportRequestBuilder {
+ bb := &GroupPolicyMigrationReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementGroupPolicyMigrationReportsCollectionRequest is request for GroupPolicyMigrationReport collection
+type DeviceManagementGroupPolicyMigrationReportsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyMigrationReport collection
+func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyMigrationReport, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyMigrationReport
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyMigrationReport
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicyMigrationReport collection, max N pages
+func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyMigrationReport, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicyMigrationReport collection
+func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyMigrationReport, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicyMigrationReport collection
+func (r *DeviceManagementGroupPolicyMigrationReportsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyMigrationReport) (resObj *GroupPolicyMigrationReport, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ImportedDeviceIdentities returns request builder for ImportedDeviceIdentity collection
+func (b *DeviceManagementRequestBuilder) ImportedDeviceIdentities() *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder {
+ bb := &DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/importedDeviceIdentities"
+ return bb
+}
+
+// DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedDeviceIdentity collection
+type DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImportedDeviceIdentity collection
+func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) Request() *DeviceManagementImportedDeviceIdentitiesCollectionRequest {
+ return &DeviceManagementImportedDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImportedDeviceIdentity item
+func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedDeviceIdentityRequestBuilder {
+ bb := &ImportedDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementImportedDeviceIdentitiesCollectionRequest is request for ImportedDeviceIdentity collection
+type DeviceManagementImportedDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImportedDeviceIdentity collection
+func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ImportedDeviceIdentity collection, max N pages
+func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ImportedDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ImportedDeviceIdentity collection
+func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedDeviceIdentity, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ImportedDeviceIdentity collection
+func (r *DeviceManagementImportedDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedDeviceIdentity) (resObj *ImportedDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ImportedWindowsAutopilotDeviceIdentities returns request builder for ImportedWindowsAutopilotDeviceIdentity collection
+func (b *DeviceManagementRequestBuilder) ImportedWindowsAutopilotDeviceIdentities() *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder {
+ bb := &DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/importedWindowsAutopilotDeviceIdentities"
+ return bb
+}
+
+// DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentity collection
+type DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImportedWindowsAutopilotDeviceIdentity collection
+func (b *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) Request() *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest {
+ return &DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImportedWindowsAutopilotDeviceIdentity item
+func (b *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedWindowsAutopilotDeviceIdentityRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest is request for ImportedWindowsAutopilotDeviceIdentity collection
+type DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedWindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedWindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ImportedWindowsAutopilotDeviceIdentity collection, max N pages
+func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentity) (resObj *ImportedWindowsAutopilotDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Intents returns request builder for DeviceManagementIntent collection
+func (b *DeviceManagementRequestBuilder) Intents() *DeviceManagementIntentsCollectionRequestBuilder {
+ bb := &DeviceManagementIntentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/intents"
+ return bb
+}
+
+// DeviceManagementIntentsCollectionRequestBuilder is request builder for DeviceManagementIntent collection
+type DeviceManagementIntentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntent collection
+func (b *DeviceManagementIntentsCollectionRequestBuilder) Request() *DeviceManagementIntentsCollectionRequest {
+ return &DeviceManagementIntentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntent item
+func (b *DeviceManagementIntentsCollectionRequestBuilder) ID(id string) *DeviceManagementIntentRequestBuilder {
+ bb := &DeviceManagementIntentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentsCollectionRequest is request for DeviceManagementIntent collection
+type DeviceManagementIntentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntent collection
+func (r *DeviceManagementIntentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementIntent collection, max N pages
+func (r *DeviceManagementIntentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementIntent collection
+func (r *DeviceManagementIntentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementIntent collection
+func (r *DeviceManagementIntentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntent) (resObj *DeviceManagementIntent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IntuneBrandingProfiles returns request builder for IntuneBrandingProfile collection
+func (b *DeviceManagementRequestBuilder) IntuneBrandingProfiles() *DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/intuneBrandingProfiles"
+ return bb
+}
+
+// DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder is request builder for IntuneBrandingProfile collection
+type DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IntuneBrandingProfile collection
+func (b *DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder) Request() *DeviceManagementIntuneBrandingProfilesCollectionRequest {
+ return &DeviceManagementIntuneBrandingProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IntuneBrandingProfile item
+func (b *DeviceManagementIntuneBrandingProfilesCollectionRequestBuilder) ID(id string) *IntuneBrandingProfileRequestBuilder {
+ bb := &IntuneBrandingProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntuneBrandingProfilesCollectionRequest is request for IntuneBrandingProfile collection
+type DeviceManagementIntuneBrandingProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IntuneBrandingProfile collection
+func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IntuneBrandingProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IntuneBrandingProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IntuneBrandingProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IntuneBrandingProfile collection, max N pages
+func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]IntuneBrandingProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IntuneBrandingProfile collection
+func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Get(ctx context.Context) ([]IntuneBrandingProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IntuneBrandingProfile collection
+func (r *DeviceManagementIntuneBrandingProfilesCollectionRequest) Add(ctx context.Context, reqObj *IntuneBrandingProfile) (resObj *IntuneBrandingProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IOSUpdateStatuses returns request builder for IOSUpdateDeviceStatus collection
+func (b *DeviceManagementRequestBuilder) IOSUpdateStatuses() *DeviceManagementIOSUpdateStatusesCollectionRequestBuilder {
+ bb := &DeviceManagementIOSUpdateStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/iosUpdateStatuses"
+ return bb
+}
+
+// DeviceManagementIOSUpdateStatusesCollectionRequestBuilder is request builder for IOSUpdateDeviceStatus collection
+type DeviceManagementIOSUpdateStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSUpdateDeviceStatus collection
+func (b *DeviceManagementIOSUpdateStatusesCollectionRequestBuilder) Request() *DeviceManagementIOSUpdateStatusesCollectionRequest {
+ return &DeviceManagementIOSUpdateStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSUpdateDeviceStatus item
+func (b *DeviceManagementIOSUpdateStatusesCollectionRequestBuilder) ID(id string) *IOSUpdateDeviceStatusRequestBuilder {
+ bb := &IOSUpdateDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIOSUpdateStatusesCollectionRequest is request for IOSUpdateDeviceStatus collection
+type DeviceManagementIOSUpdateStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSUpdateDeviceStatus collection
+func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSUpdateDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSUpdateDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSUpdateDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IOSUpdateDeviceStatus collection, max N pages
+func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]IOSUpdateDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IOSUpdateDeviceStatus collection
+func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Get(ctx context.Context) ([]IOSUpdateDeviceStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IOSUpdateDeviceStatus collection
+func (r *DeviceManagementIOSUpdateStatusesCollectionRequest) Add(ctx context.Context, reqObj *IOSUpdateDeviceStatus) (resObj *IOSUpdateDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceEncryptionStates returns request builder for ManagedDeviceEncryptionState collection
+func (b *DeviceManagementRequestBuilder) ManagedDeviceEncryptionStates() *DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder {
+ bb := &DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceEncryptionStates"
+ return bb
+}
+
+// DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder is request builder for ManagedDeviceEncryptionState collection
+type DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceEncryptionState collection
+func (b *DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder) Request() *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest {
+ return &DeviceManagementManagedDeviceEncryptionStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceEncryptionState item
+func (b *DeviceManagementManagedDeviceEncryptionStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceEncryptionStateRequestBuilder {
+ bb := &ManagedDeviceEncryptionStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementManagedDeviceEncryptionStatesCollectionRequest is request for ManagedDeviceEncryptionState collection
+type DeviceManagementManagedDeviceEncryptionStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceEncryptionState collection
+func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceEncryptionState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceEncryptionState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceEncryptionState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceEncryptionState collection, max N pages
+func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceEncryptionState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceEncryptionState collection
+func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceEncryptionState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceEncryptionState collection
+func (r *DeviceManagementManagedDeviceEncryptionStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceEncryptionState) (resObj *ManagedDeviceEncryptionState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceOverview is navigation property
+func (b *DeviceManagementRequestBuilder) ManagedDeviceOverview() *ManagedDeviceOverviewRequestBuilder {
+ bb := &ManagedDeviceOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceOverview"
+ return bb
+}
+
+// ManagedDevices returns request builder for ManagedDevice collection
+func (b *DeviceManagementRequestBuilder) ManagedDevices() *DeviceManagementManagedDevicesCollectionRequestBuilder {
+ bb := &DeviceManagementManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevices"
+ return bb
+}
+
+// DeviceManagementManagedDevicesCollectionRequestBuilder is request builder for ManagedDevice collection
+type DeviceManagementManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDevice collection
+func (b *DeviceManagementManagedDevicesCollectionRequestBuilder) Request() *DeviceManagementManagedDevicesCollectionRequest {
+ return &DeviceManagementManagedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDevice item
+func (b *DeviceManagementManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementManagedDevicesCollectionRequest is request for ManagedDevice collection
+type DeviceManagementManagedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDevice collection
+func (r *DeviceManagementManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDevice collection, max N pages
+func (r *DeviceManagementManagedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDevice collection
+func (r *DeviceManagementManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDevice collection
+func (r *DeviceManagementManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagementConditionStatements returns request builder for ManagementConditionStatement collection
+func (b *DeviceManagementRequestBuilder) ManagementConditionStatements() *DeviceManagementManagementConditionStatementsCollectionRequestBuilder {
+ bb := &DeviceManagementManagementConditionStatementsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managementConditionStatements"
+ return bb
+}
+
+// DeviceManagementManagementConditionStatementsCollectionRequestBuilder is request builder for ManagementConditionStatement collection
+type DeviceManagementManagementConditionStatementsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagementConditionStatement collection
+func (b *DeviceManagementManagementConditionStatementsCollectionRequestBuilder) Request() *DeviceManagementManagementConditionStatementsCollectionRequest {
+ return &DeviceManagementManagementConditionStatementsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagementConditionStatement item
+func (b *DeviceManagementManagementConditionStatementsCollectionRequestBuilder) ID(id string) *ManagementConditionStatementRequestBuilder {
+ bb := &ManagementConditionStatementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementManagementConditionStatementsCollectionRequest is request for ManagementConditionStatement collection
+type DeviceManagementManagementConditionStatementsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagementConditionStatement collection
+func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagementConditionStatement, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagementConditionStatement
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagementConditionStatement
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagementConditionStatement collection, max N pages
+func (r *DeviceManagementManagementConditionStatementsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagementConditionStatement, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagementConditionStatement collection
+func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Get(ctx context.Context) ([]ManagementConditionStatement, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagementConditionStatement collection
+func (r *DeviceManagementManagementConditionStatementsCollectionRequest) Add(ctx context.Context, reqObj *ManagementConditionStatement) (resObj *ManagementConditionStatement, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagementConditions returns request builder for ManagementCondition collection
+func (b *DeviceManagementRequestBuilder) ManagementConditions() *DeviceManagementManagementConditionsCollectionRequestBuilder {
+ bb := &DeviceManagementManagementConditionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managementConditions"
+ return bb
+}
+
+// DeviceManagementManagementConditionsCollectionRequestBuilder is request builder for ManagementCondition collection
+type DeviceManagementManagementConditionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagementCondition collection
+func (b *DeviceManagementManagementConditionsCollectionRequestBuilder) Request() *DeviceManagementManagementConditionsCollectionRequest {
+ return &DeviceManagementManagementConditionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagementCondition item
+func (b *DeviceManagementManagementConditionsCollectionRequestBuilder) ID(id string) *ManagementConditionRequestBuilder {
+ bb := &ManagementConditionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementManagementConditionsCollectionRequest is request for ManagementCondition collection
+type DeviceManagementManagementConditionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagementCondition collection
+func (r *DeviceManagementManagementConditionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagementCondition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagementCondition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagementCondition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagementCondition collection, max N pages
+func (r *DeviceManagementManagementConditionsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagementCondition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagementCondition collection
+func (r *DeviceManagementManagementConditionsCollectionRequest) Get(ctx context.Context) ([]ManagementCondition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagementCondition collection
+func (r *DeviceManagementManagementConditionsCollectionRequest) Add(ctx context.Context, reqObj *ManagementCondition) (resObj *ManagementCondition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppTroubleshootingEvents returns request builder for MobileAppTroubleshootingEvent collection
+func (b *DeviceManagementRequestBuilder) MobileAppTroubleshootingEvents() *DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder {
+ bb := &DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppTroubleshootingEvents"
+ return bb
+}
+
+// DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder is request builder for MobileAppTroubleshootingEvent collection
+type DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppTroubleshootingEvent collection
+func (b *DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder) Request() *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest {
+ return &DeviceManagementMobileAppTroubleshootingEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppTroubleshootingEvent item
+func (b *DeviceManagementMobileAppTroubleshootingEventsCollectionRequestBuilder) ID(id string) *MobileAppTroubleshootingEventRequestBuilder {
+ bb := &MobileAppTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementMobileAppTroubleshootingEventsCollectionRequest is request for MobileAppTroubleshootingEvent collection
+type DeviceManagementMobileAppTroubleshootingEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppTroubleshootingEvent collection
+func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppTroubleshootingEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppTroubleshootingEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppTroubleshootingEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppTroubleshootingEvent collection, max N pages
+func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppTroubleshootingEvent collection
+func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]MobileAppTroubleshootingEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppTroubleshootingEvent collection
+func (r *DeviceManagementMobileAppTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppTroubleshootingEvent) (resObj *MobileAppTroubleshootingEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileThreatDefenseConnectors returns request builder for MobileThreatDefenseConnector collection
+func (b *DeviceManagementRequestBuilder) MobileThreatDefenseConnectors() *DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder {
+ bb := &DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileThreatDefenseConnectors"
+ return bb
+}
+
+// DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder is request builder for MobileThreatDefenseConnector collection
+type DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileThreatDefenseConnector collection
+func (b *DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder) Request() *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest {
+ return &DeviceManagementMobileThreatDefenseConnectorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileThreatDefenseConnector item
+func (b *DeviceManagementMobileThreatDefenseConnectorsCollectionRequestBuilder) ID(id string) *MobileThreatDefenseConnectorRequestBuilder {
+ bb := &MobileThreatDefenseConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementMobileThreatDefenseConnectorsCollectionRequest is request for MobileThreatDefenseConnector collection
+type DeviceManagementMobileThreatDefenseConnectorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileThreatDefenseConnector collection
+func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileThreatDefenseConnector, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileThreatDefenseConnector
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileThreatDefenseConnector
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileThreatDefenseConnector collection, max N pages
+func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileThreatDefenseConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileThreatDefenseConnector collection
+func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Get(ctx context.Context) ([]MobileThreatDefenseConnector, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileThreatDefenseConnector collection
+func (r *DeviceManagementMobileThreatDefenseConnectorsCollectionRequest) Add(ctx context.Context, reqObj *MobileThreatDefenseConnector) (resObj *MobileThreatDefenseConnector, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// NDESConnectors returns request builder for NDESConnector collection
+func (b *DeviceManagementRequestBuilder) NDESConnectors() *DeviceManagementNDESConnectorsCollectionRequestBuilder {
+ bb := &DeviceManagementNDESConnectorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ndesConnectors"
+ return bb
+}
+
+// DeviceManagementNDESConnectorsCollectionRequestBuilder is request builder for NDESConnector collection
+type DeviceManagementNDESConnectorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for NDESConnector collection
+func (b *DeviceManagementNDESConnectorsCollectionRequestBuilder) Request() *DeviceManagementNDESConnectorsCollectionRequest {
+ return &DeviceManagementNDESConnectorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for NDESConnector item
+func (b *DeviceManagementNDESConnectorsCollectionRequestBuilder) ID(id string) *NDESConnectorRequestBuilder {
+ bb := &NDESConnectorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementNDESConnectorsCollectionRequest is request for NDESConnector collection
+type DeviceManagementNDESConnectorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for NDESConnector collection
+func (r *DeviceManagementNDESConnectorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]NDESConnector, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []NDESConnector
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []NDESConnector
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for NDESConnector collection, max N pages
+func (r *DeviceManagementNDESConnectorsCollectionRequest) GetN(ctx context.Context, n int) ([]NDESConnector, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for NDESConnector collection
+func (r *DeviceManagementNDESConnectorsCollectionRequest) Get(ctx context.Context) ([]NDESConnector, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for NDESConnector collection
+func (r *DeviceManagementNDESConnectorsCollectionRequest) Add(ctx context.Context, reqObj *NDESConnector) (resObj *NDESConnector, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// NotificationMessageTemplates returns request builder for NotificationMessageTemplate collection
+func (b *DeviceManagementRequestBuilder) NotificationMessageTemplates() *DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder {
+ bb := &DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/notificationMessageTemplates"
+ return bb
+}
+
+// DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder is request builder for NotificationMessageTemplate collection
+type DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for NotificationMessageTemplate collection
+func (b *DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder) Request() *DeviceManagementNotificationMessageTemplatesCollectionRequest {
+ return &DeviceManagementNotificationMessageTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for NotificationMessageTemplate item
+func (b *DeviceManagementNotificationMessageTemplatesCollectionRequestBuilder) ID(id string) *NotificationMessageTemplateRequestBuilder {
+ bb := &NotificationMessageTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementNotificationMessageTemplatesCollectionRequest is request for NotificationMessageTemplate collection
+type DeviceManagementNotificationMessageTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for NotificationMessageTemplate collection
+func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]NotificationMessageTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []NotificationMessageTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []NotificationMessageTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for NotificationMessageTemplate collection, max N pages
+func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]NotificationMessageTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for NotificationMessageTemplate collection
+func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Get(ctx context.Context) ([]NotificationMessageTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for NotificationMessageTemplate collection
+func (r *DeviceManagementNotificationMessageTemplatesCollectionRequest) Add(ctx context.Context, reqObj *NotificationMessageTemplate) (resObj *NotificationMessageTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RemoteActionAudits returns request builder for RemoteActionAudit collection
+func (b *DeviceManagementRequestBuilder) RemoteActionAudits() *DeviceManagementRemoteActionAuditsCollectionRequestBuilder {
+ bb := &DeviceManagementRemoteActionAuditsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/remoteActionAudits"
+ return bb
+}
+
+// DeviceManagementRemoteActionAuditsCollectionRequestBuilder is request builder for RemoteActionAudit collection
+type DeviceManagementRemoteActionAuditsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RemoteActionAudit collection
+func (b *DeviceManagementRemoteActionAuditsCollectionRequestBuilder) Request() *DeviceManagementRemoteActionAuditsCollectionRequest {
+ return &DeviceManagementRemoteActionAuditsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RemoteActionAudit item
+func (b *DeviceManagementRemoteActionAuditsCollectionRequestBuilder) ID(id string) *RemoteActionAuditRequestBuilder {
+ bb := &RemoteActionAuditRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRemoteActionAuditsCollectionRequest is request for RemoteActionAudit collection
+type DeviceManagementRemoteActionAuditsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RemoteActionAudit collection
+func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RemoteActionAudit, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RemoteActionAudit
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RemoteActionAudit
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RemoteActionAudit collection, max N pages
+func (r *DeviceManagementRemoteActionAuditsCollectionRequest) GetN(ctx context.Context, n int) ([]RemoteActionAudit, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RemoteActionAudit collection
+func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Get(ctx context.Context) ([]RemoteActionAudit, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RemoteActionAudit collection
+func (r *DeviceManagementRemoteActionAuditsCollectionRequest) Add(ctx context.Context, reqObj *RemoteActionAudit) (resObj *RemoteActionAudit, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RemoteAssistancePartners returns request builder for RemoteAssistancePartner collection
+func (b *DeviceManagementRequestBuilder) RemoteAssistancePartners() *DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder {
+ bb := &DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/remoteAssistancePartners"
+ return bb
+}
+
+// DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder is request builder for RemoteAssistancePartner collection
+type DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RemoteAssistancePartner collection
+func (b *DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder) Request() *DeviceManagementRemoteAssistancePartnersCollectionRequest {
+ return &DeviceManagementRemoteAssistancePartnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RemoteAssistancePartner item
+func (b *DeviceManagementRemoteAssistancePartnersCollectionRequestBuilder) ID(id string) *RemoteAssistancePartnerRequestBuilder {
+ bb := &RemoteAssistancePartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRemoteAssistancePartnersCollectionRequest is request for RemoteAssistancePartner collection
+type DeviceManagementRemoteAssistancePartnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RemoteAssistancePartner collection
+func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RemoteAssistancePartner, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RemoteAssistancePartner
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RemoteAssistancePartner
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RemoteAssistancePartner collection, max N pages
+func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) GetN(ctx context.Context, n int) ([]RemoteAssistancePartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RemoteAssistancePartner collection
+func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Get(ctx context.Context) ([]RemoteAssistancePartner, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RemoteAssistancePartner collection
+func (r *DeviceManagementRemoteAssistancePartnersCollectionRequest) Add(ctx context.Context, reqObj *RemoteAssistancePartner) (resObj *RemoteAssistancePartner, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Reports is navigation property
+func (b *DeviceManagementRequestBuilder) Reports() *DeviceManagementReportsRequestBuilder {
+ bb := &DeviceManagementReportsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/reports"
+ return bb
+}
+
+// ResourceOperations returns request builder for ResourceOperation collection
+func (b *DeviceManagementRequestBuilder) ResourceOperations() *DeviceManagementResourceOperationsCollectionRequestBuilder {
+ bb := &DeviceManagementResourceOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resourceOperations"
+ return bb
+}
+
+// DeviceManagementResourceOperationsCollectionRequestBuilder is request builder for ResourceOperation collection
+type DeviceManagementResourceOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ResourceOperation collection
+func (b *DeviceManagementResourceOperationsCollectionRequestBuilder) Request() *DeviceManagementResourceOperationsCollectionRequest {
+ return &DeviceManagementResourceOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ResourceOperation item
+func (b *DeviceManagementResourceOperationsCollectionRequestBuilder) ID(id string) *ResourceOperationRequestBuilder {
+ bb := &ResourceOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementResourceOperationsCollectionRequest is request for ResourceOperation collection
+type DeviceManagementResourceOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ResourceOperation collection
+func (r *DeviceManagementResourceOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResourceOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ResourceOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ResourceOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ResourceOperation collection, max N pages
+func (r *DeviceManagementResourceOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]ResourceOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ResourceOperation collection
+func (r *DeviceManagementResourceOperationsCollectionRequest) Get(ctx context.Context) ([]ResourceOperation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ResourceOperation collection
+func (r *DeviceManagementResourceOperationsCollectionRequest) Add(ctx context.Context, reqObj *ResourceOperation) (resObj *ResourceOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleAssignments returns request builder for DeviceAndAppManagementRoleAssignment collection
+func (b *DeviceManagementRequestBuilder) RoleAssignments() *DeviceManagementRoleAssignmentsCollectionRequestBuilder {
+ bb := &DeviceManagementRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// DeviceManagementRoleAssignmentsCollectionRequestBuilder is request builder for DeviceAndAppManagementRoleAssignment collection
+type DeviceManagementRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceAndAppManagementRoleAssignment collection
+func (b *DeviceManagementRoleAssignmentsCollectionRequestBuilder) Request() *DeviceManagementRoleAssignmentsCollectionRequest {
+ return &DeviceManagementRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceAndAppManagementRoleAssignment item
+func (b *DeviceManagementRoleAssignmentsCollectionRequestBuilder) ID(id string) *DeviceAndAppManagementRoleAssignmentRequestBuilder {
+ bb := &DeviceAndAppManagementRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRoleAssignmentsCollectionRequest is request for DeviceAndAppManagementRoleAssignment collection
+type DeviceManagementRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceAndAppManagementRoleAssignment collection
+func (r *DeviceManagementRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceAndAppManagementRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceAndAppManagementRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceAndAppManagementRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceAndAppManagementRoleAssignment collection, max N pages
+func (r *DeviceManagementRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceAndAppManagementRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceAndAppManagementRoleAssignment collection
+func (r *DeviceManagementRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceAndAppManagementRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceAndAppManagementRoleAssignment collection
+func (r *DeviceManagementRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceAndAppManagementRoleAssignment) (resObj *DeviceAndAppManagementRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleDefinitions returns request builder for RoleDefinition collection
+func (b *DeviceManagementRequestBuilder) RoleDefinitions() *DeviceManagementRoleDefinitionsCollectionRequestBuilder {
+ bb := &DeviceManagementRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinitions"
+ return bb
+}
+
+// DeviceManagementRoleDefinitionsCollectionRequestBuilder is request builder for RoleDefinition collection
+type DeviceManagementRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleDefinition collection
+func (b *DeviceManagementRoleDefinitionsCollectionRequestBuilder) Request() *DeviceManagementRoleDefinitionsCollectionRequest {
+ return &DeviceManagementRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleDefinition item
+func (b *DeviceManagementRoleDefinitionsCollectionRequestBuilder) ID(id string) *RoleDefinitionRequestBuilder {
+ bb := &RoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRoleDefinitionsCollectionRequest is request for RoleDefinition collection
+type DeviceManagementRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleDefinition collection
+func (r *DeviceManagementRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RoleDefinition collection, max N pages
+func (r *DeviceManagementRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RoleDefinition collection
+func (r *DeviceManagementRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]RoleDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RoleDefinition collection
+func (r *DeviceManagementRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *RoleDefinition) (resObj *RoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleScopeTags returns request builder for RoleScopeTag collection
+func (b *DeviceManagementRequestBuilder) RoleScopeTags() *DeviceManagementRoleScopeTagsCollectionRequestBuilder {
+ bb := &DeviceManagementRoleScopeTagsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleScopeTags"
+ return bb
+}
+
+// DeviceManagementRoleScopeTagsCollectionRequestBuilder is request builder for RoleScopeTag collection
+type DeviceManagementRoleScopeTagsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleScopeTag collection
+func (b *DeviceManagementRoleScopeTagsCollectionRequestBuilder) Request() *DeviceManagementRoleScopeTagsCollectionRequest {
+ return &DeviceManagementRoleScopeTagsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleScopeTag item
+func (b *DeviceManagementRoleScopeTagsCollectionRequestBuilder) ID(id string) *RoleScopeTagRequestBuilder {
+ bb := &RoleScopeTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementRoleScopeTagsCollectionRequest is request for RoleScopeTag collection
+type DeviceManagementRoleScopeTagsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleScopeTag collection
+func (r *DeviceManagementRoleScopeTagsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTag, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleScopeTag
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleScopeTag
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RoleScopeTag collection, max N pages
+func (r *DeviceManagementRoleScopeTagsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleScopeTag, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RoleScopeTag collection
+func (r *DeviceManagementRoleScopeTagsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTag, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RoleScopeTag collection
+func (r *DeviceManagementRoleScopeTagsCollectionRequest) Add(ctx context.Context, reqObj *RoleScopeTag) (resObj *RoleScopeTag, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SettingDefinitions returns request builder for DeviceManagementSettingDefinition collection
+func (b *DeviceManagementRequestBuilder) SettingDefinitions() *DeviceManagementSettingDefinitionsCollectionRequestBuilder {
+ bb := &DeviceManagementSettingDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settingDefinitions"
+ return bb
+}
+
+// DeviceManagementSettingDefinitionsCollectionRequestBuilder is request builder for DeviceManagementSettingDefinition collection
+type DeviceManagementSettingDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingDefinition collection
+func (b *DeviceManagementSettingDefinitionsCollectionRequestBuilder) Request() *DeviceManagementSettingDefinitionsCollectionRequest {
+ return &DeviceManagementSettingDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingDefinition item
+func (b *DeviceManagementSettingDefinitionsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingDefinitionRequestBuilder {
+ bb := &DeviceManagementSettingDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementSettingDefinitionsCollectionRequest is request for DeviceManagementSettingDefinition collection
+type DeviceManagementSettingDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingDefinition collection, max N pages
+func (r *DeviceManagementSettingDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingDefinitionsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingDefinition) (resObj *DeviceManagementSettingDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SoftwareUpdateStatusSummary is navigation property
+func (b *DeviceManagementRequestBuilder) SoftwareUpdateStatusSummary() *SoftwareUpdateStatusSummaryRequestBuilder {
+ bb := &SoftwareUpdateStatusSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/softwareUpdateStatusSummary"
+ return bb
+}
+
+// TelecomExpenseManagementPartners returns request builder for TelecomExpenseManagementPartner collection
+func (b *DeviceManagementRequestBuilder) TelecomExpenseManagementPartners() *DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder {
+ bb := &DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/telecomExpenseManagementPartners"
+ return bb
+}
+
+// DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder is request builder for TelecomExpenseManagementPartner collection
+type DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TelecomExpenseManagementPartner collection
+func (b *DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder) Request() *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest {
+ return &DeviceManagementTelecomExpenseManagementPartnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TelecomExpenseManagementPartner item
+func (b *DeviceManagementTelecomExpenseManagementPartnersCollectionRequestBuilder) ID(id string) *TelecomExpenseManagementPartnerRequestBuilder {
+ bb := &TelecomExpenseManagementPartnerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTelecomExpenseManagementPartnersCollectionRequest is request for TelecomExpenseManagementPartner collection
+type DeviceManagementTelecomExpenseManagementPartnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TelecomExpenseManagementPartner collection
+func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TelecomExpenseManagementPartner, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TelecomExpenseManagementPartner
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TelecomExpenseManagementPartner
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TelecomExpenseManagementPartner collection, max N pages
+func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) GetN(ctx context.Context, n int) ([]TelecomExpenseManagementPartner, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TelecomExpenseManagementPartner collection
+func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Get(ctx context.Context) ([]TelecomExpenseManagementPartner, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TelecomExpenseManagementPartner collection
+func (r *DeviceManagementTelecomExpenseManagementPartnersCollectionRequest) Add(ctx context.Context, reqObj *TelecomExpenseManagementPartner) (resObj *TelecomExpenseManagementPartner, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Templates returns request builder for DeviceManagementTemplate collection
+func (b *DeviceManagementRequestBuilder) Templates() *DeviceManagementTemplatesCollectionRequestBuilder {
+ bb := &DeviceManagementTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/templates"
+ return bb
+}
+
+// DeviceManagementTemplatesCollectionRequestBuilder is request builder for DeviceManagementTemplate collection
+type DeviceManagementTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTemplate collection
+func (b *DeviceManagementTemplatesCollectionRequestBuilder) Request() *DeviceManagementTemplatesCollectionRequest {
+ return &DeviceManagementTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTemplate item
+func (b *DeviceManagementTemplatesCollectionRequestBuilder) ID(id string) *DeviceManagementTemplateRequestBuilder {
+ bb := &DeviceManagementTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplatesCollectionRequest is request for DeviceManagementTemplate collection
+type DeviceManagementTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementTemplate collection, max N pages
+func (r *DeviceManagementTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTemplate) (resObj *DeviceManagementTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TermsAndConditions returns request builder for TermsAndConditions collection
+func (b *DeviceManagementRequestBuilder) TermsAndConditions() *DeviceManagementTermsAndConditionsCollectionRequestBuilder {
+ bb := &DeviceManagementTermsAndConditionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/termsAndConditions"
+ return bb
+}
+
+// DeviceManagementTermsAndConditionsCollectionRequestBuilder is request builder for TermsAndConditions collection
+type DeviceManagementTermsAndConditionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TermsAndConditions collection
+func (b *DeviceManagementTermsAndConditionsCollectionRequestBuilder) Request() *DeviceManagementTermsAndConditionsCollectionRequest {
+ return &DeviceManagementTermsAndConditionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TermsAndConditions item
+func (b *DeviceManagementTermsAndConditionsCollectionRequestBuilder) ID(id string) *TermsAndConditionsRequestBuilder {
+ bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTermsAndConditionsCollectionRequest is request for TermsAndConditions collection
+type DeviceManagementTermsAndConditionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TermsAndConditions collection
+func (r *DeviceManagementTermsAndConditionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TermsAndConditions, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TermsAndConditions
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TermsAndConditions
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TermsAndConditions collection, max N pages
+func (r *DeviceManagementTermsAndConditionsCollectionRequest) GetN(ctx context.Context, n int) ([]TermsAndConditions, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TermsAndConditions collection
+func (r *DeviceManagementTermsAndConditionsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditions, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TermsAndConditions collection
+func (r *DeviceManagementTermsAndConditionsCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditions) (resObj *TermsAndConditions, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TroubleshootingEvents returns request builder for DeviceManagementTroubleshootingEvent collection
+func (b *DeviceManagementRequestBuilder) TroubleshootingEvents() *DeviceManagementTroubleshootingEventsCollectionRequestBuilder {
+ bb := &DeviceManagementTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/troubleshootingEvents"
+ return bb
+}
+
+// DeviceManagementTroubleshootingEventsCollectionRequestBuilder is request builder for DeviceManagementTroubleshootingEvent collection
+type DeviceManagementTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTroubleshootingEvent collection
+func (b *DeviceManagementTroubleshootingEventsCollectionRequestBuilder) Request() *DeviceManagementTroubleshootingEventsCollectionRequest {
+ return &DeviceManagementTroubleshootingEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTroubleshootingEvent item
+func (b *DeviceManagementTroubleshootingEventsCollectionRequestBuilder) ID(id string) *DeviceManagementTroubleshootingEventRequestBuilder {
+ bb := &DeviceManagementTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTroubleshootingEventsCollectionRequest is request for DeviceManagementTroubleshootingEvent collection
+type DeviceManagementTroubleshootingEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTroubleshootingEvent collection
+func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTroubleshootingEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTroubleshootingEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTroubleshootingEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementTroubleshootingEvent collection, max N pages
+func (r *DeviceManagementTroubleshootingEventsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementTroubleshootingEvent collection
+func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTroubleshootingEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementTroubleshootingEvent collection
+func (r *DeviceManagementTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTroubleshootingEvent) (resObj *DeviceManagementTroubleshootingEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsBaselines returns request builder for UserExperienceAnalyticsBaseline collection
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsBaselines() *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder {
+ bb := &DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsBaselines"
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder is request builder for UserExperienceAnalyticsBaseline collection
+type DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsBaseline collection
+func (b *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest {
+ return &DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsBaseline item
+func (b *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsBaselineRequestBuilder {
+ bb := &UserExperienceAnalyticsBaselineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest is request for UserExperienceAnalyticsBaseline collection
+type DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsBaseline collection
+func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsBaseline, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsBaseline
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsBaseline
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserExperienceAnalyticsBaseline collection, max N pages
+func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsBaseline, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserExperienceAnalyticsBaseline collection
+func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsBaseline, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserExperienceAnalyticsBaseline collection
+func (r *DeviceManagementUserExperienceAnalyticsBaselinesCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsBaseline) (resObj *UserExperienceAnalyticsBaseline, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsCategories returns request builder for UserExperienceAnalyticsCategory collection
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsCategories() *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsCategories"
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder is request builder for UserExperienceAnalyticsCategory collection
+type DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsCategory collection
+func (b *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest {
+ return &DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsCategory item
+func (b *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsCategoryRequestBuilder {
+ bb := &UserExperienceAnalyticsCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest is request for UserExperienceAnalyticsCategory collection
+type DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsCategory collection
+func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserExperienceAnalyticsCategory collection, max N pages
+func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserExperienceAnalyticsCategory collection
+func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserExperienceAnalyticsCategory collection
+func (r *DeviceManagementUserExperienceAnalyticsCategoriesCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsCategory) (resObj *UserExperienceAnalyticsCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsDevicePerformance returns request builder for UserExperienceAnalyticsDevicePerformance collection
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsDevicePerformance() *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder {
+ bb := &DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsDevicePerformance"
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder is request builder for UserExperienceAnalyticsDevicePerformance collection
+type DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsDevicePerformance collection
+func (b *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest {
+ return &DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsDevicePerformance item
+func (b *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsDevicePerformanceRequestBuilder {
+ bb := &UserExperienceAnalyticsDevicePerformanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest is request for UserExperienceAnalyticsDevicePerformance collection
+type DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsDevicePerformance collection
+func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsDevicePerformance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsDevicePerformance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsDevicePerformance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserExperienceAnalyticsDevicePerformance collection, max N pages
+func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsDevicePerformance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserExperienceAnalyticsDevicePerformance collection
+func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsDevicePerformance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserExperienceAnalyticsDevicePerformance collection
+func (r *DeviceManagementUserExperienceAnalyticsDevicePerformanceCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsDevicePerformance) (resObj *UserExperienceAnalyticsDevicePerformance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsDeviceStartupHistory returns request builder for UserExperienceAnalyticsDeviceStartupHistory collection
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsDeviceStartupHistory() *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder {
+ bb := &DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsDeviceStartupHistory"
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder is request builder for UserExperienceAnalyticsDeviceStartupHistory collection
+type DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsDeviceStartupHistory collection
+func (b *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder) Request() *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest {
+ return &DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsDeviceStartupHistory item
+func (b *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder {
+ bb := &UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest is request for UserExperienceAnalyticsDeviceStartupHistory collection
+type DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsDeviceStartupHistory collection
+func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsDeviceStartupHistory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsDeviceStartupHistory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsDeviceStartupHistory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserExperienceAnalyticsDeviceStartupHistory collection, max N pages
+func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsDeviceStartupHistory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserExperienceAnalyticsDeviceStartupHistory collection
+func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsDeviceStartupHistory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserExperienceAnalyticsDeviceStartupHistory collection
+func (r *DeviceManagementUserExperienceAnalyticsDeviceStartupHistoryCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsDeviceStartupHistory) (resObj *UserExperienceAnalyticsDeviceStartupHistory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserExperienceAnalyticsOverview is navigation property
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsOverview() *UserExperienceAnalyticsOverviewRequestBuilder {
+ bb := &UserExperienceAnalyticsOverviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsOverview"
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummary is navigation property
+func (b *DeviceManagementRequestBuilder) UserExperienceAnalyticsRegressionSummary() *UserExperienceAnalyticsRegressionSummaryRequestBuilder {
+ bb := &UserExperienceAnalyticsRegressionSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userExperienceAnalyticsRegressionSummary"
+ return bb
+}
+
+// UserPfxCertificates returns request builder for UserPFXCertificate collection
+func (b *DeviceManagementRequestBuilder) UserPfxCertificates() *DeviceManagementUserPfxCertificatesCollectionRequestBuilder {
+ bb := &DeviceManagementUserPfxCertificatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userPfxCertificates"
+ return bb
+}
+
+// DeviceManagementUserPfxCertificatesCollectionRequestBuilder is request builder for UserPFXCertificate collection
+type DeviceManagementUserPfxCertificatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserPFXCertificate collection
+func (b *DeviceManagementUserPfxCertificatesCollectionRequestBuilder) Request() *DeviceManagementUserPfxCertificatesCollectionRequest {
+ return &DeviceManagementUserPfxCertificatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserPFXCertificate item
+func (b *DeviceManagementUserPfxCertificatesCollectionRequestBuilder) ID(id string) *UserPFXCertificateRequestBuilder {
+ bb := &UserPFXCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementUserPfxCertificatesCollectionRequest is request for UserPFXCertificate collection
+type DeviceManagementUserPfxCertificatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserPFXCertificate collection
+func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserPFXCertificate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserPFXCertificate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserPFXCertificate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserPFXCertificate collection, max N pages
+func (r *DeviceManagementUserPfxCertificatesCollectionRequest) GetN(ctx context.Context, n int) ([]UserPFXCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserPFXCertificate collection
+func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Get(ctx context.Context) ([]UserPFXCertificate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserPFXCertificate collection
+func (r *DeviceManagementUserPfxCertificatesCollectionRequest) Add(ctx context.Context, reqObj *UserPFXCertificate) (resObj *UserPFXCertificate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsAutopilotDeploymentProfiles returns request builder for WindowsAutopilotDeploymentProfile collection
+func (b *DeviceManagementRequestBuilder) WindowsAutopilotDeploymentProfiles() *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsAutopilotDeploymentProfiles"
+ return bb
+}
+
+// DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder is request builder for WindowsAutopilotDeploymentProfile collection
+type DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsAutopilotDeploymentProfile collection
+func (b *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder) Request() *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest {
+ return &DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsAutopilotDeploymentProfile item
+func (b *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeploymentProfileRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest is request for WindowsAutopilotDeploymentProfile collection
+type DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsAutopilotDeploymentProfile collection
+func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsAutopilotDeploymentProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsAutopilotDeploymentProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsAutopilotDeploymentProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsAutopilotDeploymentProfile collection, max N pages
+func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsAutopilotDeploymentProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsAutopilotDeploymentProfile collection
+func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeploymentProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsAutopilotDeploymentProfile collection
+func (r *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfile) (resObj *WindowsAutopilotDeploymentProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsAutopilotDeviceIdentities returns request builder for WindowsAutopilotDeviceIdentity collection
+func (b *DeviceManagementRequestBuilder) WindowsAutopilotDeviceIdentities() *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsAutopilotDeviceIdentities"
+ return bb
+}
+
+// DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder is request builder for WindowsAutopilotDeviceIdentity collection
+type DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsAutopilotDeviceIdentity collection
+func (b *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) Request() *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest {
+ return &DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsAutopilotDeviceIdentity item
+func (b *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeviceIdentityRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest is request for WindowsAutopilotDeviceIdentity collection
+type DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsAutopilotDeviceIdentity collection, max N pages
+func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeviceIdentity, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsAutopilotDeviceIdentity collection
+func (r *DeviceManagementWindowsAutopilotDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeviceIdentity) (resObj *WindowsAutopilotDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsAutopilotSettings is navigation property
+func (b *DeviceManagementRequestBuilder) WindowsAutopilotSettings() *WindowsAutopilotSettingsRequestBuilder {
+ bb := &WindowsAutopilotSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsAutopilotSettings"
+ return bb
+}
+
+// WindowsFeatureUpdateProfiles returns request builder for WindowsFeatureUpdateProfile collection
+func (b *DeviceManagementRequestBuilder) WindowsFeatureUpdateProfiles() *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsFeatureUpdateProfiles"
+ return bb
+}
+
+// DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder is request builder for WindowsFeatureUpdateProfile collection
+type DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsFeatureUpdateProfile collection
+func (b *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder) Request() *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest {
+ return &DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsFeatureUpdateProfile item
+func (b *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequestBuilder) ID(id string) *WindowsFeatureUpdateProfileRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest is request for WindowsFeatureUpdateProfile collection
+type DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsFeatureUpdateProfile collection
+func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsFeatureUpdateProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsFeatureUpdateProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsFeatureUpdateProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsFeatureUpdateProfile collection, max N pages
+func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsFeatureUpdateProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsFeatureUpdateProfile collection
+func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Get(ctx context.Context) ([]WindowsFeatureUpdateProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsFeatureUpdateProfile collection
+func (r *DeviceManagementWindowsFeatureUpdateProfilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsFeatureUpdateProfile) (resObj *WindowsFeatureUpdateProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionAppLearningSummaries returns request builder for WindowsInformationProtectionAppLearningSummary collection
+func (b *DeviceManagementRequestBuilder) WindowsInformationProtectionAppLearningSummaries() *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionAppLearningSummaries"
+ return bb
+}
+
+// DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder is request builder for WindowsInformationProtectionAppLearningSummary collection
+type DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionAppLearningSummary collection
+func (b *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder) Request() *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest {
+ return &DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionAppLearningSummary item
+func (b *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionAppLearningSummaryRequestBuilder {
+ bb := &WindowsInformationProtectionAppLearningSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest is request for WindowsInformationProtectionAppLearningSummary collection
+type DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionAppLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionAppLearningSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionAppLearningSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionAppLearningSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsInformationProtectionAppLearningSummary collection, max N pages
+func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionAppLearningSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsInformationProtectionAppLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLearningSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsInformationProtectionAppLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionAppLearningSummariesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionAppLearningSummary) (resObj *WindowsInformationProtectionAppLearningSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionNetworkLearningSummaries returns request builder for WindowsInformationProtectionNetworkLearningSummary collection
+func (b *DeviceManagementRequestBuilder) WindowsInformationProtectionNetworkLearningSummaries() *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionNetworkLearningSummaries"
+ return bb
+}
+
+// DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder is request builder for WindowsInformationProtectionNetworkLearningSummary collection
+type DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionNetworkLearningSummary collection
+func (b *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder) Request() *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest {
+ return &DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionNetworkLearningSummary item
+func (b *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionNetworkLearningSummaryRequestBuilder {
+ bb := &WindowsInformationProtectionNetworkLearningSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest is request for WindowsInformationProtectionNetworkLearningSummary collection
+type DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionNetworkLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionNetworkLearningSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionNetworkLearningSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionNetworkLearningSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsInformationProtectionNetworkLearningSummary collection, max N pages
+func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionNetworkLearningSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsInformationProtectionNetworkLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionNetworkLearningSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsInformationProtectionNetworkLearningSummary collection
+func (r *DeviceManagementWindowsInformationProtectionNetworkLearningSummariesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionNetworkLearningSummary) (resObj *WindowsInformationProtectionNetworkLearningSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsMalwareInformation returns request builder for WindowsMalwareInformation collection
+func (b *DeviceManagementRequestBuilder) WindowsMalwareInformation() *DeviceManagementWindowsMalwareInformationCollectionRequestBuilder {
+ bb := &DeviceManagementWindowsMalwareInformationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsMalwareInformation"
+ return bb
+}
+
+// DeviceManagementWindowsMalwareInformationCollectionRequestBuilder is request builder for WindowsMalwareInformation collection
+type DeviceManagementWindowsMalwareInformationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsMalwareInformation collection
+func (b *DeviceManagementWindowsMalwareInformationCollectionRequestBuilder) Request() *DeviceManagementWindowsMalwareInformationCollectionRequest {
+ return &DeviceManagementWindowsMalwareInformationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsMalwareInformation item
+func (b *DeviceManagementWindowsMalwareInformationCollectionRequestBuilder) ID(id string) *WindowsMalwareInformationRequestBuilder {
+ bb := &WindowsMalwareInformationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementWindowsMalwareInformationCollectionRequest is request for WindowsMalwareInformation collection
+type DeviceManagementWindowsMalwareInformationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsMalwareInformation collection
+func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsMalwareInformation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsMalwareInformation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsMalwareInformation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsMalwareInformation collection, max N pages
+func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsMalwareInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsMalwareInformation collection
+func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Get(ctx context.Context) ([]WindowsMalwareInformation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsMalwareInformation collection
+func (r *DeviceManagementWindowsMalwareInformationCollectionRequest) Add(ctx context.Context, reqObj *WindowsMalwareInformation) (resObj *WindowsMalwareInformation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Value returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementAbstractComplexSettingInstanceRequestBuilder) Value() *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder {
+ bb := &DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/value"
+ return bb
+}
+
+// DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder) Request() *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest {
+ return &DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages
+func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementAbstractComplexSettingInstanceValueCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Value returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementCollectionSettingInstanceRequestBuilder) Value() *DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder {
+ bb := &DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/value"
+ return bb
+}
+
+// DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder) Request() *DeviceManagementCollectionSettingInstanceValueCollectionRequest {
+ return &DeviceManagementCollectionSettingInstanceValueCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementCollectionSettingInstanceValueCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementCollectionSettingInstanceValueCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementCollectionSettingInstanceValueCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages
+func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementCollectionSettingInstanceValueCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Value returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementComplexSettingInstanceRequestBuilder) Value() *DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder {
+ bb := &DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/value"
+ return bb
+}
+
+// DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder) Request() *DeviceManagementComplexSettingInstanceValueCollectionRequest {
+ return &DeviceManagementComplexSettingInstanceValueCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementComplexSettingInstanceValueCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementComplexSettingInstanceValueCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementComplexSettingInstanceValueCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages
+func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementComplexSettingInstanceValueCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ConditionalAccessSettings is navigation property
+func (b *DeviceManagementExchangeOnPremisesPolicyRequestBuilder) ConditionalAccessSettings() *OnPremisesConditionalAccessSettingsRequestBuilder {
+ bb := &OnPremisesConditionalAccessSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/conditionalAccessSettings"
+ return bb
+}
+
+// Assignments returns request builder for DeviceManagementIntentAssignment collection
+func (b *DeviceManagementIntentRequestBuilder) Assignments() *DeviceManagementIntentAssignmentsCollectionRequestBuilder {
+ bb := &DeviceManagementIntentAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceManagementIntentAssignmentsCollectionRequestBuilder is request builder for DeviceManagementIntentAssignment collection
+type DeviceManagementIntentAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentAssignment collection
+func (b *DeviceManagementIntentAssignmentsCollectionRequestBuilder) Request() *DeviceManagementIntentAssignmentsCollectionRequest {
+ return &DeviceManagementIntentAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentAssignment item
+func (b *DeviceManagementIntentAssignmentsCollectionRequestBuilder) ID(id string) *DeviceManagementIntentAssignmentRequestBuilder {
+ bb := &DeviceManagementIntentAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentAssignmentsCollectionRequest is request for DeviceManagementIntentAssignment collection
+type DeviceManagementIntentAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentAssignment collection
+func (r *DeviceManagementIntentAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementIntentAssignment collection, max N pages
+func (r *DeviceManagementIntentAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementIntentAssignment collection
+func (r *DeviceManagementIntentAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementIntentAssignment collection
+func (r *DeviceManagementIntentAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentAssignment) (resObj *DeviceManagementIntentAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Categories returns request builder for DeviceManagementIntentSettingCategory collection
+func (b *DeviceManagementIntentRequestBuilder) Categories() *DeviceManagementIntentCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementIntentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// DeviceManagementIntentCategoriesCollectionRequestBuilder is request builder for DeviceManagementIntentSettingCategory collection
+type DeviceManagementIntentCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentSettingCategory collection
+func (b *DeviceManagementIntentCategoriesCollectionRequestBuilder) Request() *DeviceManagementIntentCategoriesCollectionRequest {
+ return &DeviceManagementIntentCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentSettingCategory item
+func (b *DeviceManagementIntentCategoriesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentSettingCategoryRequestBuilder {
+ bb := &DeviceManagementIntentSettingCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentCategoriesCollectionRequest is request for DeviceManagementIntentSettingCategory collection
+type DeviceManagementIntentCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentSettingCategory collection
+func (r *DeviceManagementIntentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentSettingCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentSettingCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentSettingCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementIntentSettingCategory collection, max N pages
+func (r *DeviceManagementIntentCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentSettingCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementIntentSettingCategory collection
+func (r *DeviceManagementIntentCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentSettingCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementIntentSettingCategory collection
+func (r *DeviceManagementIntentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentSettingCategory) (resObj *DeviceManagementIntentSettingCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceSettingStateSummaries returns request builder for DeviceManagementIntentDeviceSettingStateSummary collection
+func (b *DeviceManagementIntentRequestBuilder) DeviceSettingStateSummaries() *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder {
+ bb := &DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceSettingStateSummaries"
+ return bb
+}
+
+// DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder is request builder for DeviceManagementIntentDeviceSettingStateSummary collection
+type DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentDeviceSettingStateSummary collection
+func (b *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder) Request() *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest {
+ return &DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentDeviceSettingStateSummary item
+func (b *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder {
+ bb := &DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest is request for DeviceManagementIntentDeviceSettingStateSummary collection
+type DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentDeviceSettingStateSummary collection
+func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentDeviceSettingStateSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentDeviceSettingStateSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentDeviceSettingStateSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementIntentDeviceSettingStateSummary collection, max N pages
+func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentDeviceSettingStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementIntentDeviceSettingStateSummary collection
+func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentDeviceSettingStateSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementIntentDeviceSettingStateSummary collection
+func (r *DeviceManagementIntentDeviceSettingStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentDeviceSettingStateSummary) (resObj *DeviceManagementIntentDeviceSettingStateSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStateSummary is navigation property
+func (b *DeviceManagementIntentRequestBuilder) DeviceStateSummary() *DeviceManagementIntentDeviceStateSummaryRequestBuilder {
+ bb := &DeviceManagementIntentDeviceStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStateSummary"
+ return bb
+}
+
+// DeviceStates returns request builder for DeviceManagementIntentDeviceState collection
+func (b *DeviceManagementIntentRequestBuilder) DeviceStates() *DeviceManagementIntentDeviceStatesCollectionRequestBuilder {
+ bb := &DeviceManagementIntentDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// DeviceManagementIntentDeviceStatesCollectionRequestBuilder is request builder for DeviceManagementIntentDeviceState collection
+type DeviceManagementIntentDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentDeviceState collection
+func (b *DeviceManagementIntentDeviceStatesCollectionRequestBuilder) Request() *DeviceManagementIntentDeviceStatesCollectionRequest {
+ return &DeviceManagementIntentDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentDeviceState item
+func (b *DeviceManagementIntentDeviceStatesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentDeviceStateRequestBuilder {
+ bb := &DeviceManagementIntentDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentDeviceStatesCollectionRequest is request for DeviceManagementIntentDeviceState collection
+type DeviceManagementIntentDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentDeviceState collection
+func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementIntentDeviceState collection, max N pages
+func (r *DeviceManagementIntentDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementIntentDeviceState collection
+func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentDeviceState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementIntentDeviceState collection
+func (r *DeviceManagementIntentDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentDeviceState) (resObj *DeviceManagementIntentDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementIntentRequestBuilder) Settings() *DeviceManagementIntentSettingsCollectionRequestBuilder {
+ bb := &DeviceManagementIntentSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// DeviceManagementIntentSettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementIntentSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementIntentSettingsCollectionRequestBuilder) Request() *DeviceManagementIntentSettingsCollectionRequest {
+ return &DeviceManagementIntentSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementIntentSettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentSettingsCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementIntentSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages
+func (r *DeviceManagementIntentSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStateSummary is navigation property
+func (b *DeviceManagementIntentRequestBuilder) UserStateSummary() *DeviceManagementIntentUserStateSummaryRequestBuilder {
+ bb := &DeviceManagementIntentUserStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStateSummary"
+ return bb
+}
+
+// UserStates returns request builder for DeviceManagementIntentUserState collection
+func (b *DeviceManagementIntentRequestBuilder) UserStates() *DeviceManagementIntentUserStatesCollectionRequestBuilder {
+ bb := &DeviceManagementIntentUserStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStates"
+ return bb
+}
+
+// DeviceManagementIntentUserStatesCollectionRequestBuilder is request builder for DeviceManagementIntentUserState collection
+type DeviceManagementIntentUserStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementIntentUserState collection
+func (b *DeviceManagementIntentUserStatesCollectionRequestBuilder) Request() *DeviceManagementIntentUserStatesCollectionRequest {
+ return &DeviceManagementIntentUserStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementIntentUserState item
+func (b *DeviceManagementIntentUserStatesCollectionRequestBuilder) ID(id string) *DeviceManagementIntentUserStateRequestBuilder {
+ bb := &DeviceManagementIntentUserStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentUserStatesCollectionRequest is request for DeviceManagementIntentUserState collection
+type DeviceManagementIntentUserStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementIntentUserState collection
+func (r *DeviceManagementIntentUserStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementIntentUserState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementIntentUserState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementIntentUserState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementIntentUserState collection, max N pages
+func (r *DeviceManagementIntentUserStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementIntentUserState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementIntentUserState collection
+func (r *DeviceManagementIntentUserStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementIntentUserState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementIntentUserState collection
+func (r *DeviceManagementIntentUserStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementIntentUserState) (resObj *DeviceManagementIntentUserState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementIntentSettingCategoryRequestBuilder) Settings() *DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder {
+ bb := &DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder) Request() *DeviceManagementIntentSettingCategorySettingsCollectionRequest {
+ return &DeviceManagementIntentSettingCategorySettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementIntentSettingCategorySettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementIntentSettingCategorySettingsCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementIntentSettingCategorySettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages
+func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementIntentSettingCategorySettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CachedReportConfigurations returns request builder for DeviceManagementCachedReportConfiguration collection
+func (b *DeviceManagementReportsRequestBuilder) CachedReportConfigurations() *DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder {
+ bb := &DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/cachedReportConfigurations"
+ return bb
+}
+
+// DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder is request builder for DeviceManagementCachedReportConfiguration collection
+type DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementCachedReportConfiguration collection
+func (b *DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder) Request() *DeviceManagementReportsCachedReportConfigurationsCollectionRequest {
+ return &DeviceManagementReportsCachedReportConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementCachedReportConfiguration item
+func (b *DeviceManagementReportsCachedReportConfigurationsCollectionRequestBuilder) ID(id string) *DeviceManagementCachedReportConfigurationRequestBuilder {
+ bb := &DeviceManagementCachedReportConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementReportsCachedReportConfigurationsCollectionRequest is request for DeviceManagementCachedReportConfiguration collection
+type DeviceManagementReportsCachedReportConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementCachedReportConfiguration collection
+func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementCachedReportConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementCachedReportConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementCachedReportConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementCachedReportConfiguration collection, max N pages
+func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementCachedReportConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementCachedReportConfiguration collection
+func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementCachedReportConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementCachedReportConfiguration collection
+func (r *DeviceManagementReportsCachedReportConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementCachedReportConfiguration) (resObj *DeviceManagementCachedReportConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExportJobs returns request builder for DeviceManagementExportJob collection
+func (b *DeviceManagementReportsRequestBuilder) ExportJobs() *DeviceManagementReportsExportJobsCollectionRequestBuilder {
+ bb := &DeviceManagementReportsExportJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exportJobs"
+ return bb
+}
+
+// DeviceManagementReportsExportJobsCollectionRequestBuilder is request builder for DeviceManagementExportJob collection
+type DeviceManagementReportsExportJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementExportJob collection
+func (b *DeviceManagementReportsExportJobsCollectionRequestBuilder) Request() *DeviceManagementReportsExportJobsCollectionRequest {
+ return &DeviceManagementReportsExportJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementExportJob item
+func (b *DeviceManagementReportsExportJobsCollectionRequestBuilder) ID(id string) *DeviceManagementExportJobRequestBuilder {
+ bb := &DeviceManagementExportJobRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementReportsExportJobsCollectionRequest is request for DeviceManagementExportJob collection
+type DeviceManagementReportsExportJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementExportJob collection
+func (r *DeviceManagementReportsExportJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementExportJob, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementExportJob
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementExportJob
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementExportJob collection, max N pages
+func (r *DeviceManagementReportsExportJobsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementExportJob, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementExportJob collection
+func (r *DeviceManagementReportsExportJobsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementExportJob, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementExportJob collection
+func (r *DeviceManagementReportsExportJobsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementExportJob) (resObj *DeviceManagementExportJob, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ReportSchedules returns request builder for DeviceManagementReportSchedule collection
+func (b *DeviceManagementReportsRequestBuilder) ReportSchedules() *DeviceManagementReportsReportSchedulesCollectionRequestBuilder {
+ bb := &DeviceManagementReportsReportSchedulesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/reportSchedules"
+ return bb
+}
+
+// DeviceManagementReportsReportSchedulesCollectionRequestBuilder is request builder for DeviceManagementReportSchedule collection
+type DeviceManagementReportsReportSchedulesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementReportSchedule collection
+func (b *DeviceManagementReportsReportSchedulesCollectionRequestBuilder) Request() *DeviceManagementReportsReportSchedulesCollectionRequest {
+ return &DeviceManagementReportsReportSchedulesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementReportSchedule item
+func (b *DeviceManagementReportsReportSchedulesCollectionRequestBuilder) ID(id string) *DeviceManagementReportScheduleRequestBuilder {
+ bb := &DeviceManagementReportScheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementReportsReportSchedulesCollectionRequest is request for DeviceManagementReportSchedule collection
+type DeviceManagementReportsReportSchedulesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementReportSchedule collection
+func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementReportSchedule, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementReportSchedule
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementReportSchedule
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementReportSchedule collection, max N pages
+func (r *DeviceManagementReportsReportSchedulesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementReportSchedule, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementReportSchedule collection
+func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementReportSchedule, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementReportSchedule collection
+func (r *DeviceManagementReportsReportSchedulesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementReportSchedule) (resObj *DeviceManagementReportSchedule, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for DeviceManagementScriptAssignment collection
+func (b *DeviceManagementScriptRequestBuilder) Assignments() *DeviceManagementScriptAssignmentsCollectionRequestBuilder {
+ bb := &DeviceManagementScriptAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// DeviceManagementScriptAssignmentsCollectionRequestBuilder is request builder for DeviceManagementScriptAssignment collection
+type DeviceManagementScriptAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptAssignment collection
+func (b *DeviceManagementScriptAssignmentsCollectionRequestBuilder) Request() *DeviceManagementScriptAssignmentsCollectionRequest {
+ return &DeviceManagementScriptAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptAssignment item
+func (b *DeviceManagementScriptAssignmentsCollectionRequestBuilder) ID(id string) *DeviceManagementScriptAssignmentRequestBuilder {
+ bb := &DeviceManagementScriptAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptAssignmentsCollectionRequest is request for DeviceManagementScriptAssignment collection
+type DeviceManagementScriptAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptAssignment collection
+func (r *DeviceManagementScriptAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementScriptAssignment collection, max N pages
+func (r *DeviceManagementScriptAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementScriptAssignment collection
+func (r *DeviceManagementScriptAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementScriptAssignment collection
+func (r *DeviceManagementScriptAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptAssignment) (resObj *DeviceManagementScriptAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceRunStates returns request builder for DeviceManagementScriptDeviceState collection
+func (b *DeviceManagementScriptRequestBuilder) DeviceRunStates() *DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder {
+ bb := &DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceRunStates"
+ return bb
+}
+
+// DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder is request builder for DeviceManagementScriptDeviceState collection
+type DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptDeviceState collection
+func (b *DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder) Request() *DeviceManagementScriptDeviceRunStatesCollectionRequest {
+ return &DeviceManagementScriptDeviceRunStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptDeviceState item
+func (b *DeviceManagementScriptDeviceRunStatesCollectionRequestBuilder) ID(id string) *DeviceManagementScriptDeviceStateRequestBuilder {
+ bb := &DeviceManagementScriptDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptDeviceRunStatesCollectionRequest is request for DeviceManagementScriptDeviceState collection
+type DeviceManagementScriptDeviceRunStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementScriptDeviceState collection, max N pages
+func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptDeviceState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptDeviceRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptDeviceState) (resObj *DeviceManagementScriptDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupAssignments returns request builder for DeviceManagementScriptGroupAssignment collection
+func (b *DeviceManagementScriptRequestBuilder) GroupAssignments() *DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder {
+ bb := &DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupAssignments"
+ return bb
+}
+
+// DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder is request builder for DeviceManagementScriptGroupAssignment collection
+type DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptGroupAssignment collection
+func (b *DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder) Request() *DeviceManagementScriptGroupAssignmentsCollectionRequest {
+ return &DeviceManagementScriptGroupAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptGroupAssignment item
+func (b *DeviceManagementScriptGroupAssignmentsCollectionRequestBuilder) ID(id string) *DeviceManagementScriptGroupAssignmentRequestBuilder {
+ bb := &DeviceManagementScriptGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptGroupAssignmentsCollectionRequest is request for DeviceManagementScriptGroupAssignment collection
+type DeviceManagementScriptGroupAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptGroupAssignment collection
+func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptGroupAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptGroupAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptGroupAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementScriptGroupAssignment collection, max N pages
+func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementScriptGroupAssignment collection
+func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptGroupAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementScriptGroupAssignment collection
+func (r *DeviceManagementScriptGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptGroupAssignment) (resObj *DeviceManagementScriptGroupAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RunSummary is navigation property
+func (b *DeviceManagementScriptRequestBuilder) RunSummary() *DeviceManagementScriptRunSummaryRequestBuilder {
+ bb := &DeviceManagementScriptRunSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/runSummary"
+ return bb
+}
+
+// UserRunStates returns request builder for DeviceManagementScriptUserState collection
+func (b *DeviceManagementScriptRequestBuilder) UserRunStates() *DeviceManagementScriptUserRunStatesCollectionRequestBuilder {
+ bb := &DeviceManagementScriptUserRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userRunStates"
+ return bb
+}
+
+// DeviceManagementScriptUserRunStatesCollectionRequestBuilder is request builder for DeviceManagementScriptUserState collection
+type DeviceManagementScriptUserRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptUserState collection
+func (b *DeviceManagementScriptUserRunStatesCollectionRequestBuilder) Request() *DeviceManagementScriptUserRunStatesCollectionRequest {
+ return &DeviceManagementScriptUserRunStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptUserState item
+func (b *DeviceManagementScriptUserRunStatesCollectionRequestBuilder) ID(id string) *DeviceManagementScriptUserStateRequestBuilder {
+ bb := &DeviceManagementScriptUserStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptUserRunStatesCollectionRequest is request for DeviceManagementScriptUserState collection
+type DeviceManagementScriptUserRunStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptUserState collection
+func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptUserState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptUserState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptUserState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementScriptUserState collection, max N pages
+func (r *DeviceManagementScriptUserRunStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptUserState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementScriptUserState collection
+func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptUserState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementScriptUserState collection
+func (r *DeviceManagementScriptUserRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptUserState) (resObj *DeviceManagementScriptUserState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDevice is navigation property
+func (b *DeviceManagementScriptDeviceStateRequestBuilder) ManagedDevice() *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevice"
+ return bb
+}
+
+// DeviceRunStates returns request builder for DeviceManagementScriptDeviceState collection
+func (b *DeviceManagementScriptUserStateRequestBuilder) DeviceRunStates() *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder {
+ bb := &DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceRunStates"
+ return bb
+}
+
+// DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder is request builder for DeviceManagementScriptDeviceState collection
+type DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementScriptDeviceState collection
+func (b *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder) Request() *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest {
+ return &DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementScriptDeviceState item
+func (b *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequestBuilder) ID(id string) *DeviceManagementScriptDeviceStateRequestBuilder {
+ bb := &DeviceManagementScriptDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest is request for DeviceManagementScriptDeviceState collection
+type DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementScriptDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementScriptDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementScriptDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementScriptDeviceState collection, max N pages
+func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementScriptDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementScriptDeviceState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementScriptDeviceState collection
+func (r *DeviceManagementScriptUserStateDeviceRunStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementScriptDeviceState) (resObj *DeviceManagementScriptDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SettingDefinitions returns request builder for DeviceManagementSettingDefinition collection
+func (b *DeviceManagementSettingCategoryRequestBuilder) SettingDefinitions() *DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder {
+ bb := &DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settingDefinitions"
+ return bb
+}
+
+// DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder is request builder for DeviceManagementSettingDefinition collection
+type DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingDefinition collection
+func (b *DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder) Request() *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest {
+ return &DeviceManagementSettingCategorySettingDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingDefinition item
+func (b *DeviceManagementSettingCategorySettingDefinitionsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingDefinitionRequestBuilder {
+ bb := &DeviceManagementSettingDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementSettingCategorySettingDefinitionsCollectionRequest is request for DeviceManagementSettingDefinition collection
+type DeviceManagementSettingCategorySettingDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingDefinition collection, max N pages
+func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingDefinition collection
+func (r *DeviceManagementSettingCategorySettingDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingDefinition) (resObj *DeviceManagementSettingDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Categories returns request builder for DeviceManagementTemplateSettingCategory collection
+func (b *DeviceManagementTemplateRequestBuilder) Categories() *DeviceManagementTemplateCategoriesCollectionRequestBuilder {
+ bb := &DeviceManagementTemplateCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// DeviceManagementTemplateCategoriesCollectionRequestBuilder is request builder for DeviceManagementTemplateSettingCategory collection
+type DeviceManagementTemplateCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTemplateSettingCategory collection
+func (b *DeviceManagementTemplateCategoriesCollectionRequestBuilder) Request() *DeviceManagementTemplateCategoriesCollectionRequest {
+ return &DeviceManagementTemplateCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTemplateSettingCategory item
+func (b *DeviceManagementTemplateCategoriesCollectionRequestBuilder) ID(id string) *DeviceManagementTemplateSettingCategoryRequestBuilder {
+ bb := &DeviceManagementTemplateSettingCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplateCategoriesCollectionRequest is request for DeviceManagementTemplateSettingCategory collection
+type DeviceManagementTemplateCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTemplateSettingCategory collection
+func (r *DeviceManagementTemplateCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTemplateSettingCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTemplateSettingCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTemplateSettingCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementTemplateSettingCategory collection, max N pages
+func (r *DeviceManagementTemplateCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTemplateSettingCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementTemplateSettingCategory collection
+func (r *DeviceManagementTemplateCategoriesCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplateSettingCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementTemplateSettingCategory collection
+func (r *DeviceManagementTemplateCategoriesCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTemplateSettingCategory) (resObj *DeviceManagementTemplateSettingCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MigratableTo returns request builder for DeviceManagementTemplate collection
+func (b *DeviceManagementTemplateRequestBuilder) MigratableTo() *DeviceManagementTemplateMigratableToCollectionRequestBuilder {
+ bb := &DeviceManagementTemplateMigratableToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/migratableTo"
+ return bb
+}
+
+// DeviceManagementTemplateMigratableToCollectionRequestBuilder is request builder for DeviceManagementTemplate collection
+type DeviceManagementTemplateMigratableToCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTemplate collection
+func (b *DeviceManagementTemplateMigratableToCollectionRequestBuilder) Request() *DeviceManagementTemplateMigratableToCollectionRequest {
+ return &DeviceManagementTemplateMigratableToCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTemplate item
+func (b *DeviceManagementTemplateMigratableToCollectionRequestBuilder) ID(id string) *DeviceManagementTemplateRequestBuilder {
+ bb := &DeviceManagementTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplateMigratableToCollectionRequest is request for DeviceManagementTemplate collection
+type DeviceManagementTemplateMigratableToCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplateMigratableToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementTemplate collection, max N pages
+func (r *DeviceManagementTemplateMigratableToCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplateMigratableToCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementTemplate collection
+func (r *DeviceManagementTemplateMigratableToCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTemplate) (resObj *DeviceManagementTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementTemplateRequestBuilder) Settings() *DeviceManagementTemplateSettingsCollectionRequestBuilder {
+ bb := &DeviceManagementTemplateSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// DeviceManagementTemplateSettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementTemplateSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementTemplateSettingsCollectionRequestBuilder) Request() *DeviceManagementTemplateSettingsCollectionRequest {
+ return &DeviceManagementTemplateSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementTemplateSettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplateSettingsCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementTemplateSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages
+func (r *DeviceManagementTemplateSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RecommendedSettings returns request builder for DeviceManagementSettingInstance collection
+func (b *DeviceManagementTemplateSettingCategoryRequestBuilder) RecommendedSettings() *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder {
+ bb := &DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/recommendedSettings"
+ return bb
+}
+
+// DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder is request builder for DeviceManagementSettingInstance collection
+type DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementSettingInstance collection
+func (b *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder) Request() *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest {
+ return &DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementSettingInstance item
+func (b *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequestBuilder) ID(id string) *DeviceManagementSettingInstanceRequestBuilder {
+ bb := &DeviceManagementSettingInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest is request for DeviceManagementSettingInstance collection
+type DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementSettingInstance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementSettingInstance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementSettingInstance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementSettingInstance collection, max N pages
+func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementSettingInstance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementSettingInstance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementSettingInstance collection
+func (r *DeviceManagementTemplateSettingCategoryRecommendedSettingsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementSettingInstance) (resObj *DeviceManagementSettingInstance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDimension.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDimension.go
new file mode 100644
index 00000000..0ecc3167
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDimension.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DimensionValues returns request builder for DimensionValue collection
+func (b *DimensionRequestBuilder) DimensionValues() *DimensionDimensionValuesCollectionRequestBuilder {
+ bb := &DimensionDimensionValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dimensionValues"
+ return bb
+}
+
+// DimensionDimensionValuesCollectionRequestBuilder is request builder for DimensionValue collection
+type DimensionDimensionValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DimensionValue collection
+func (b *DimensionDimensionValuesCollectionRequestBuilder) Request() *DimensionDimensionValuesCollectionRequest {
+ return &DimensionDimensionValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DimensionValue item
+func (b *DimensionDimensionValuesCollectionRequestBuilder) ID(id string) *DimensionValueRequestBuilder {
+ bb := &DimensionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DimensionDimensionValuesCollectionRequest is request for DimensionValue collection
+type DimensionDimensionValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DimensionValue collection
+func (r *DimensionDimensionValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DimensionValue, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DimensionValue
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DimensionValue
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DimensionValue collection, max N pages
+func (r *DimensionDimensionValuesCollectionRequest) GetN(ctx context.Context, n int) ([]DimensionValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DimensionValue collection
+func (r *DimensionDimensionValuesCollectionRequest) Get(ctx context.Context) ([]DimensionValue, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DimensionValue collection
+func (r *DimensionDimensionValuesCollectionRequest) Add(ctx context.Context, reqObj *DimensionValue) (resObj *DimensionValue, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDirectory.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDirectory.go
new file mode 100644
index 00000000..0fc8b2bf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDirectory.go
@@ -0,0 +1,480 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DirectoryObjectCollectionGetByIDsRequestParameter undocumented
+type DirectoryObjectCollectionGetByIDsRequestParameter struct {
+ // IDs undocumented
+ IDs []string `json:"ids,omitempty"`
+ // Types undocumented
+ Types []string `json:"types,omitempty"`
+}
+
+// DirectoryObjectCollectionValidatePropertiesRequestParameter undocumented
+type DirectoryObjectCollectionValidatePropertiesRequestParameter struct {
+ // EntityType undocumented
+ EntityType *string `json:"entityType,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // OnBehalfOfUserID undocumented
+ OnBehalfOfUserID *UUID `json:"onBehalfOfUserId,omitempty"`
+}
+
+// DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter undocumented
+type DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter struct {
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
+
+// DirectoryDefinitionDiscoverRequestParameter undocumented
+type DirectoryDefinitionDiscoverRequestParameter struct {
+}
+
+// DirectoryObjectCheckMemberGroupsRequestParameter undocumented
+type DirectoryObjectCheckMemberGroupsRequestParameter struct {
+ // GroupIDs undocumented
+ GroupIDs []string `json:"groupIds,omitempty"`
+}
+
+// DirectoryObjectCheckMemberObjectsRequestParameter undocumented
+type DirectoryObjectCheckMemberObjectsRequestParameter struct {
+ // IDs undocumented
+ IDs []string `json:"ids,omitempty"`
+}
+
+// DirectoryObjectGetMemberGroupsRequestParameter undocumented
+type DirectoryObjectGetMemberGroupsRequestParameter struct {
+ // SecurityEnabledOnly undocumented
+ SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
+}
+
+// DirectoryObjectGetMemberObjectsRequestParameter undocumented
+type DirectoryObjectGetMemberObjectsRequestParameter struct {
+ // SecurityEnabledOnly undocumented
+ SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
+}
+
+// DirectoryObjectRestoreRequestParameter undocumented
+type DirectoryObjectRestoreRequestParameter struct {
+}
+
+// DeletedItems returns request builder for DirectoryObject collection
+func (b *DirectoryRequestBuilder) DeletedItems() *DirectoryDeletedItemsCollectionRequestBuilder {
+ bb := &DirectoryDeletedItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deletedItems"
+ return bb
+}
+
+// DirectoryDeletedItemsCollectionRequestBuilder is request builder for DirectoryObject collection
+type DirectoryDeletedItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) Request() *DirectoryDeletedItemsCollectionRequest {
+ return &DirectoryDeletedItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DirectoryDeletedItemsCollectionRequest is request for DirectoryObject collection
+type DirectoryDeletedItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DirectoryDeletedItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *DirectoryDeletedItemsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DirectoryDeletedItemsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DirectoryDeletedItemsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FeatureRolloutPolicies returns request builder for FeatureRolloutPolicy collection
+func (b *DirectoryRequestBuilder) FeatureRolloutPolicies() *DirectoryFeatureRolloutPoliciesCollectionRequestBuilder {
+ bb := &DirectoryFeatureRolloutPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/featureRolloutPolicies"
+ return bb
+}
+
+// DirectoryFeatureRolloutPoliciesCollectionRequestBuilder is request builder for FeatureRolloutPolicy collection
+type DirectoryFeatureRolloutPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for FeatureRolloutPolicy collection
+func (b *DirectoryFeatureRolloutPoliciesCollectionRequestBuilder) Request() *DirectoryFeatureRolloutPoliciesCollectionRequest {
+ return &DirectoryFeatureRolloutPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for FeatureRolloutPolicy item
+func (b *DirectoryFeatureRolloutPoliciesCollectionRequestBuilder) ID(id string) *FeatureRolloutPolicyRequestBuilder {
+ bb := &FeatureRolloutPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DirectoryFeatureRolloutPoliciesCollectionRequest is request for FeatureRolloutPolicy collection
+type DirectoryFeatureRolloutPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for FeatureRolloutPolicy collection
+func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]FeatureRolloutPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []FeatureRolloutPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []FeatureRolloutPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for FeatureRolloutPolicy collection, max N pages
+func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]FeatureRolloutPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for FeatureRolloutPolicy collection
+func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Get(ctx context.Context) ([]FeatureRolloutPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for FeatureRolloutPolicy collection
+func (r *DirectoryFeatureRolloutPoliciesCollectionRequest) Add(ctx context.Context, reqObj *FeatureRolloutPolicy) (resObj *FeatureRolloutPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Members returns request builder for DirectoryObject collection
+func (b *DirectoryRoleRequestBuilder) Members() *DirectoryRoleMembersCollectionRequestBuilder {
+ bb := &DirectoryRoleMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// DirectoryRoleMembersCollectionRequestBuilder is request builder for DirectoryObject collection
+type DirectoryRoleMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DirectoryRoleMembersCollectionRequestBuilder) Request() *DirectoryRoleMembersCollectionRequest {
+ return &DirectoryRoleMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DirectoryRoleMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DirectoryRoleMembersCollectionRequest is request for DirectoryObject collection
+type DirectoryRoleMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DirectoryRoleMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *DirectoryRoleMembersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DirectoryRoleMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DirectoryRoleMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScopedMembers returns request builder for ScopedRoleMembership collection
+func (b *DirectoryRoleRequestBuilder) ScopedMembers() *DirectoryRoleScopedMembersCollectionRequestBuilder {
+ bb := &DirectoryRoleScopedMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scopedMembers"
+ return bb
+}
+
+// DirectoryRoleScopedMembersCollectionRequestBuilder is request builder for ScopedRoleMembership collection
+type DirectoryRoleScopedMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ScopedRoleMembership collection
+func (b *DirectoryRoleScopedMembersCollectionRequestBuilder) Request() *DirectoryRoleScopedMembersCollectionRequest {
+ return &DirectoryRoleScopedMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ScopedRoleMembership item
+func (b *DirectoryRoleScopedMembersCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder {
+ bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DirectoryRoleScopedMembersCollectionRequest is request for ScopedRoleMembership collection
+type DirectoryRoleScopedMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ScopedRoleMembership collection
+func (r *DirectoryRoleScopedMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScopedRoleMembership, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ScopedRoleMembership
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ScopedRoleMembership
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ScopedRoleMembership collection, max N pages
+func (r *DirectoryRoleScopedMembersCollectionRequest) GetN(ctx context.Context, n int) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *DirectoryRoleScopedMembersCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ScopedRoleMembership collection
+func (r *DirectoryRoleScopedMembersCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDocument.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDocument.go
new file mode 100644
index 00000000..fb954b16
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDocument.go
@@ -0,0 +1,216 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Comments returns request builder for DocumentComment collection
+func (b *DocumentRequestBuilder) Comments() *DocumentCommentsCollectionRequestBuilder {
+ bb := &DocumentCommentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/comments"
+ return bb
+}
+
+// DocumentCommentsCollectionRequestBuilder is request builder for DocumentComment collection
+type DocumentCommentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DocumentComment collection
+func (b *DocumentCommentsCollectionRequestBuilder) Request() *DocumentCommentsCollectionRequest {
+ return &DocumentCommentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DocumentComment item
+func (b *DocumentCommentsCollectionRequestBuilder) ID(id string) *DocumentCommentRequestBuilder {
+ bb := &DocumentCommentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DocumentCommentsCollectionRequest is request for DocumentComment collection
+type DocumentCommentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DocumentComment collection
+func (r *DocumentCommentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DocumentComment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DocumentComment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DocumentComment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DocumentComment collection, max N pages
+func (r *DocumentCommentsCollectionRequest) GetN(ctx context.Context, n int) ([]DocumentComment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DocumentComment collection
+func (r *DocumentCommentsCollectionRequest) Get(ctx context.Context) ([]DocumentComment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DocumentComment collection
+func (r *DocumentCommentsCollectionRequest) Add(ctx context.Context, reqObj *DocumentComment) (resObj *DocumentComment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Replies returns request builder for DocumentCommentReply collection
+func (b *DocumentCommentRequestBuilder) Replies() *DocumentCommentRepliesCollectionRequestBuilder {
+ bb := &DocumentCommentRepliesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/replies"
+ return bb
+}
+
+// DocumentCommentRepliesCollectionRequestBuilder is request builder for DocumentCommentReply collection
+type DocumentCommentRepliesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DocumentCommentReply collection
+func (b *DocumentCommentRepliesCollectionRequestBuilder) Request() *DocumentCommentRepliesCollectionRequest {
+ return &DocumentCommentRepliesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DocumentCommentReply item
+func (b *DocumentCommentRepliesCollectionRequestBuilder) ID(id string) *DocumentCommentReplyRequestBuilder {
+ bb := &DocumentCommentReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DocumentCommentRepliesCollectionRequest is request for DocumentCommentReply collection
+type DocumentCommentRepliesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DocumentCommentReply collection
+func (r *DocumentCommentRepliesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DocumentCommentReply, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DocumentCommentReply
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DocumentCommentReply
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DocumentCommentReply collection, max N pages
+func (r *DocumentCommentRepliesCollectionRequest) GetN(ctx context.Context, n int) ([]DocumentCommentReply, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DocumentCommentReply collection
+func (r *DocumentCommentRepliesCollectionRequest) Get(ctx context.Context) ([]DocumentCommentReply, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DocumentCommentReply collection
+func (r *DocumentCommentRepliesCollectionRequest) Add(ctx context.Context, reqObj *DocumentCommentReply) (resObj *DocumentCommentReply, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDomain.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDomain.go
new file mode 100644
index 00000000..375a20fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDomain.go
@@ -0,0 +1,328 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DomainForceDeleteRequestParameter undocumented
+type DomainForceDeleteRequestParameter struct {
+ // DisableUserAccounts undocumented
+ DisableUserAccounts *bool `json:"disableUserAccounts,omitempty"`
+}
+
+// DomainVerifyRequestParameter undocumented
+type DomainVerifyRequestParameter struct {
+}
+
+// DomainNameReferences returns request builder for DirectoryObject collection
+func (b *DomainRequestBuilder) DomainNameReferences() *DomainDomainNameReferencesCollectionRequestBuilder {
+ bb := &DomainDomainNameReferencesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainNameReferences"
+ return bb
+}
+
+// DomainDomainNameReferencesCollectionRequestBuilder is request builder for DirectoryObject collection
+type DomainDomainNameReferencesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) Request() *DomainDomainNameReferencesCollectionRequest {
+ return &DomainDomainNameReferencesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DomainDomainNameReferencesCollectionRequest is request for DirectoryObject collection
+type DomainDomainNameReferencesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *DomainDomainNameReferencesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *DomainDomainNameReferencesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *DomainDomainNameReferencesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *DomainDomainNameReferencesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ServiceConfigurationRecords returns request builder for DomainDNSRecord collection
+func (b *DomainRequestBuilder) ServiceConfigurationRecords() *DomainServiceConfigurationRecordsCollectionRequestBuilder {
+ bb := &DomainServiceConfigurationRecordsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/serviceConfigurationRecords"
+ return bb
+}
+
+// DomainServiceConfigurationRecordsCollectionRequestBuilder is request builder for DomainDNSRecord collection
+type DomainServiceConfigurationRecordsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DomainDNSRecord collection
+func (b *DomainServiceConfigurationRecordsCollectionRequestBuilder) Request() *DomainServiceConfigurationRecordsCollectionRequest {
+ return &DomainServiceConfigurationRecordsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DomainDNSRecord item
+func (b *DomainServiceConfigurationRecordsCollectionRequestBuilder) ID(id string) *DomainDNSRecordRequestBuilder {
+ bb := &DomainDNSRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DomainServiceConfigurationRecordsCollectionRequest is request for DomainDNSRecord collection
+type DomainServiceConfigurationRecordsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DomainDNSRecord collection
+func (r *DomainServiceConfigurationRecordsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DomainDNSRecord, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DomainDNSRecord
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DomainDNSRecord
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DomainDNSRecord collection, max N pages
+func (r *DomainServiceConfigurationRecordsCollectionRequest) GetN(ctx context.Context, n int) ([]DomainDNSRecord, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DomainDNSRecord collection
+func (r *DomainServiceConfigurationRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DomainDNSRecord collection
+func (r *DomainServiceConfigurationRecordsCollectionRequest) Add(ctx context.Context, reqObj *DomainDNSRecord) (resObj *DomainDNSRecord, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// VerificationDNSRecords returns request builder for DomainDNSRecord collection
+func (b *DomainRequestBuilder) VerificationDNSRecords() *DomainVerificationDNSRecordsCollectionRequestBuilder {
+ bb := &DomainVerificationDNSRecordsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/verificationDnsRecords"
+ return bb
+}
+
+// DomainVerificationDNSRecordsCollectionRequestBuilder is request builder for DomainDNSRecord collection
+type DomainVerificationDNSRecordsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DomainDNSRecord collection
+func (b *DomainVerificationDNSRecordsCollectionRequestBuilder) Request() *DomainVerificationDNSRecordsCollectionRequest {
+ return &DomainVerificationDNSRecordsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DomainDNSRecord item
+func (b *DomainVerificationDNSRecordsCollectionRequestBuilder) ID(id string) *DomainDNSRecordRequestBuilder {
+ bb := &DomainDNSRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DomainVerificationDNSRecordsCollectionRequest is request for DomainDNSRecord collection
+type DomainVerificationDNSRecordsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DomainDNSRecord collection
+func (r *DomainVerificationDNSRecordsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DomainDNSRecord, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DomainDNSRecord
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DomainDNSRecord
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DomainDNSRecord collection, max N pages
+func (r *DomainVerificationDNSRecordsCollectionRequest) GetN(ctx context.Context, n int) ([]DomainDNSRecord, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DomainDNSRecord collection
+func (r *DomainVerificationDNSRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DomainDNSRecord collection
+func (r *DomainVerificationDNSRecordsCollectionRequest) Add(ctx context.Context, reqObj *DomainDNSRecord) (resObj *DomainDNSRecord, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go
new file mode 100644
index 00000000..6d1d455f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionDrive.go
@@ -0,0 +1,1281 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "time"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DriveItemCheckinRequestParameter undocumented
+type DriveItemCheckinRequestParameter struct {
+ // CheckInAs undocumented
+ CheckInAs *string `json:"checkInAs,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+}
+
+// DriveItemCheckoutRequestParameter undocumented
+type DriveItemCheckoutRequestParameter struct {
+}
+
+// DriveItemCopyRequestParameter undocumented
+type DriveItemCopyRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ParentReference undocumented
+ ParentReference *ItemReference `json:"parentReference,omitempty"`
+}
+
+// DriveItemCreateLinkRequestParameter undocumented
+type DriveItemCreateLinkRequestParameter struct {
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Recipients undocumented
+ Recipients []DriveRecipient `json:"recipients,omitempty"`
+}
+
+// DriveItemCreateUploadSessionRequestParameter undocumented
+type DriveItemCreateUploadSessionRequestParameter struct {
+ // Item undocumented
+ Item *DriveItemUploadableProperties `json:"item,omitempty"`
+ // DeferCommit undocumented
+ DeferCommit *bool `json:"deferCommit,omitempty"`
+}
+
+// DriveItemFollowRequestParameter undocumented
+type DriveItemFollowRequestParameter struct {
+}
+
+// DriveItemUnfollowRequestParameter undocumented
+type DriveItemUnfollowRequestParameter struct {
+}
+
+// DriveItemInviteRequestParameter undocumented
+type DriveItemInviteRequestParameter struct {
+ // RequireSignIn undocumented
+ RequireSignIn *bool `json:"requireSignIn,omitempty"`
+ // Roles undocumented
+ Roles []string `json:"roles,omitempty"`
+ // SendInvitation undocumented
+ SendInvitation *bool `json:"sendInvitation,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Recipients undocumented
+ Recipients []DriveRecipient `json:"recipients,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *string `json:"expirationDateTime,omitempty"`
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+}
+
+// DriveItemPreviewRequestParameter undocumented
+type DriveItemPreviewRequestParameter struct {
+ // Viewer undocumented
+ Viewer *string `json:"viewer,omitempty"`
+ // Chromeless undocumented
+ Chromeless *bool `json:"chromeless,omitempty"`
+ // AllowEdit undocumented
+ AllowEdit *bool `json:"allowEdit,omitempty"`
+ // Page undocumented
+ Page *string `json:"page,omitempty"`
+ // Zoom undocumented
+ Zoom *float64 `json:"zoom,omitempty"`
+}
+
+// DriveItemRestoreRequestParameter undocumented
+type DriveItemRestoreRequestParameter struct {
+ // ParentReference undocumented
+ ParentReference *ItemReference `json:"parentReference,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// DriveItemValidatePermissionRequestParameter undocumented
+type DriveItemValidatePermissionRequestParameter struct {
+ // ChallengeToken undocumented
+ ChallengeToken *string `json:"challengeToken,omitempty"`
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+}
+
+// DriveItemVersionRestoreVersionRequestParameter undocumented
+type DriveItemVersionRestoreVersionRequestParameter struct {
+}
+
+// Activities returns request builder for ItemActivityOLD collection
+func (b *DriveRequestBuilder) Activities() *DriveActivitiesCollectionRequestBuilder {
+ bb := &DriveActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// DriveActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection
+type DriveActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityOLD collection
+func (b *DriveActivitiesCollectionRequestBuilder) Request() *DriveActivitiesCollectionRequest {
+ return &DriveActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityOLD item
+func (b *DriveActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder {
+ bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveActivitiesCollectionRequest is request for ItemActivityOLD collection
+type DriveActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityOLD collection
+func (r *DriveActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityOLD, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityOLD
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityOLD
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ItemActivityOLD collection, max N pages
+func (r *DriveActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *DriveActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ItemActivityOLD collection
+func (r *DriveActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Bundles returns request builder for DriveItem collection
+func (b *DriveRequestBuilder) Bundles() *DriveBundlesCollectionRequestBuilder {
+ bb := &DriveBundlesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bundles"
+ return bb
+}
+
+// DriveBundlesCollectionRequestBuilder is request builder for DriveItem collection
+type DriveBundlesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveBundlesCollectionRequestBuilder) Request() *DriveBundlesCollectionRequest {
+ return &DriveBundlesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveBundlesCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveBundlesCollectionRequest is request for DriveItem collection
+type DriveBundlesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveBundlesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DriveItem collection, max N pages
+func (r *DriveBundlesCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveBundlesCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveBundlesCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Following returns request builder for DriveItem collection
+func (b *DriveRequestBuilder) Following() *DriveFollowingCollectionRequestBuilder {
+ bb := &DriveFollowingCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/following"
+ return bb
+}
+
+// DriveFollowingCollectionRequestBuilder is request builder for DriveItem collection
+type DriveFollowingCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveFollowingCollectionRequestBuilder) Request() *DriveFollowingCollectionRequest {
+ return &DriveFollowingCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveFollowingCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveFollowingCollectionRequest is request for DriveItem collection
+type DriveFollowingCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveFollowingCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DriveItem collection, max N pages
+func (r *DriveFollowingCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveFollowingCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveFollowingCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Items returns request builder for DriveItem collection
+func (b *DriveRequestBuilder) Items() *DriveItemsCollectionRequestBuilder {
+ bb := &DriveItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// DriveItemsCollectionRequestBuilder is request builder for DriveItem collection
+type DriveItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveItemsCollectionRequestBuilder) Request() *DriveItemsCollectionRequest {
+ return &DriveItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveItemsCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemsCollectionRequest is request for DriveItem collection
+type DriveItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DriveItem collection, max N pages
+func (r *DriveItemsCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveItemsCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveItemsCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// List is navigation property
+func (b *DriveRequestBuilder) List() *ListRequestBuilder {
+ bb := &ListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/list"
+ return bb
+}
+
+// Root is navigation property
+func (b *DriveRequestBuilder) Root() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/root"
+ return bb
+}
+
+// Special returns request builder for DriveItem collection
+func (b *DriveRequestBuilder) Special() *DriveSpecialCollectionRequestBuilder {
+ bb := &DriveSpecialCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/special"
+ return bb
+}
+
+// DriveSpecialCollectionRequestBuilder is request builder for DriveItem collection
+type DriveSpecialCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveSpecialCollectionRequestBuilder) Request() *DriveSpecialCollectionRequest {
+ return &DriveSpecialCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveSpecialCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveSpecialCollectionRequest is request for DriveItem collection
+type DriveSpecialCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveSpecialCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DriveItem collection, max N pages
+func (r *DriveSpecialCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveSpecialCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveSpecialCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Activities returns request builder for ItemActivityOLD collection
+func (b *DriveItemRequestBuilder) Activities() *DriveItemActivitiesCollectionRequestBuilder {
+ bb := &DriveItemActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// DriveItemActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection
+type DriveItemActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityOLD collection
+func (b *DriveItemActivitiesCollectionRequestBuilder) Request() *DriveItemActivitiesCollectionRequest {
+ return &DriveItemActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityOLD item
+func (b *DriveItemActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder {
+ bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemActivitiesCollectionRequest is request for ItemActivityOLD collection
+type DriveItemActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityOLD collection
+func (r *DriveItemActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityOLD, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityOLD
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityOLD
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ItemActivityOLD collection, max N pages
+func (r *DriveItemActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *DriveItemActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ItemActivityOLD collection
+func (r *DriveItemActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Analytics is navigation property
+func (b *DriveItemRequestBuilder) Analytics() *ItemAnalyticsRequestBuilder {
+ bb := &ItemAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/analytics"
+ return bb
+}
+
+// Children returns request builder for DriveItem collection
+func (b *DriveItemRequestBuilder) Children() *DriveItemChildrenCollectionRequestBuilder {
+ bb := &DriveItemChildrenCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/children"
+ return bb
+}
+
+// DriveItemChildrenCollectionRequestBuilder is request builder for DriveItem collection
+type DriveItemChildrenCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *DriveItemChildrenCollectionRequestBuilder) Request() *DriveItemChildrenCollectionRequest {
+ return &DriveItemChildrenCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *DriveItemChildrenCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemChildrenCollectionRequest is request for DriveItem collection
+type DriveItemChildrenCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *DriveItemChildrenCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DriveItem collection, max N pages
+func (r *DriveItemChildrenCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DriveItem collection
+func (r *DriveItemChildrenCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *DriveItemChildrenCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Document is navigation property
+func (b *DriveItemRequestBuilder) Document() *DocumentRequestBuilder {
+ bb := &DocumentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/document"
+ return bb
+}
+
+// ListItem is navigation property
+func (b *DriveItemRequestBuilder) ListItem() *ListItemRequestBuilder {
+ bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/listItem"
+ return bb
+}
+
+// Permissions returns request builder for Permission collection
+func (b *DriveItemRequestBuilder) Permissions() *DriveItemPermissionsCollectionRequestBuilder {
+ bb := &DriveItemPermissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/permissions"
+ return bb
+}
+
+// DriveItemPermissionsCollectionRequestBuilder is request builder for Permission collection
+type DriveItemPermissionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Permission collection
+func (b *DriveItemPermissionsCollectionRequestBuilder) Request() *DriveItemPermissionsCollectionRequest {
+ return &DriveItemPermissionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Permission item
+func (b *DriveItemPermissionsCollectionRequestBuilder) ID(id string) *PermissionRequestBuilder {
+ bb := &PermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemPermissionsCollectionRequest is request for Permission collection
+type DriveItemPermissionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Permission collection
+func (r *DriveItemPermissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Permission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Permission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Permission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Permission collection, max N pages
+func (r *DriveItemPermissionsCollectionRequest) GetN(ctx context.Context, n int) ([]Permission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Permission collection
+func (r *DriveItemPermissionsCollectionRequest) Get(ctx context.Context) ([]Permission, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Permission collection
+func (r *DriveItemPermissionsCollectionRequest) Add(ctx context.Context, reqObj *Permission) (resObj *Permission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Subscriptions returns request builder for Subscription collection
+func (b *DriveItemRequestBuilder) Subscriptions() *DriveItemSubscriptionsCollectionRequestBuilder {
+ bb := &DriveItemSubscriptionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subscriptions"
+ return bb
+}
+
+// DriveItemSubscriptionsCollectionRequestBuilder is request builder for Subscription collection
+type DriveItemSubscriptionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Subscription collection
+func (b *DriveItemSubscriptionsCollectionRequestBuilder) Request() *DriveItemSubscriptionsCollectionRequest {
+ return &DriveItemSubscriptionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Subscription item
+func (b *DriveItemSubscriptionsCollectionRequestBuilder) ID(id string) *SubscriptionRequestBuilder {
+ bb := &SubscriptionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemSubscriptionsCollectionRequest is request for Subscription collection
+type DriveItemSubscriptionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Subscription collection
+func (r *DriveItemSubscriptionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Subscription, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Subscription
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Subscription
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Subscription collection, max N pages
+func (r *DriveItemSubscriptionsCollectionRequest) GetN(ctx context.Context, n int) ([]Subscription, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Subscription collection
+func (r *DriveItemSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Subscription collection
+func (r *DriveItemSubscriptionsCollectionRequest) Add(ctx context.Context, reqObj *Subscription) (resObj *Subscription, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Thumbnails returns request builder for ThumbnailSet collection
+func (b *DriveItemRequestBuilder) Thumbnails() *DriveItemThumbnailsCollectionRequestBuilder {
+ bb := &DriveItemThumbnailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/thumbnails"
+ return bb
+}
+
+// DriveItemThumbnailsCollectionRequestBuilder is request builder for ThumbnailSet collection
+type DriveItemThumbnailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ThumbnailSet collection
+func (b *DriveItemThumbnailsCollectionRequestBuilder) Request() *DriveItemThumbnailsCollectionRequest {
+ return &DriveItemThumbnailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ThumbnailSet item
+func (b *DriveItemThumbnailsCollectionRequestBuilder) ID(id string) *ThumbnailSetRequestBuilder {
+ bb := &ThumbnailSetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemThumbnailsCollectionRequest is request for ThumbnailSet collection
+type DriveItemThumbnailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ThumbnailSet collection
+func (r *DriveItemThumbnailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ThumbnailSet, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ThumbnailSet
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ThumbnailSet
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ThumbnailSet collection, max N pages
+func (r *DriveItemThumbnailsCollectionRequest) GetN(ctx context.Context, n int) ([]ThumbnailSet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ThumbnailSet collection
+func (r *DriveItemThumbnailsCollectionRequest) Get(ctx context.Context) ([]ThumbnailSet, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ThumbnailSet collection
+func (r *DriveItemThumbnailsCollectionRequest) Add(ctx context.Context, reqObj *ThumbnailSet) (resObj *ThumbnailSet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Versions returns request builder for DriveItemVersion collection
+func (b *DriveItemRequestBuilder) Versions() *DriveItemVersionsCollectionRequestBuilder {
+ bb := &DriveItemVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/versions"
+ return bb
+}
+
+// DriveItemVersionsCollectionRequestBuilder is request builder for DriveItemVersion collection
+type DriveItemVersionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItemVersion collection
+func (b *DriveItemVersionsCollectionRequestBuilder) Request() *DriveItemVersionsCollectionRequest {
+ return &DriveItemVersionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItemVersion item
+func (b *DriveItemVersionsCollectionRequestBuilder) ID(id string) *DriveItemVersionRequestBuilder {
+ bb := &DriveItemVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// DriveItemVersionsCollectionRequest is request for DriveItemVersion collection
+type DriveItemVersionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItemVersion collection
+func (r *DriveItemVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItemVersion, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItemVersion
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItemVersion
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DriveItemVersion collection, max N pages
+func (r *DriveItemVersionsCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItemVersion, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DriveItemVersion collection
+func (r *DriveItemVersionsCollectionRequest) Get(ctx context.Context) ([]DriveItemVersion, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DriveItemVersion collection
+func (r *DriveItemVersionsCollectionRequest) Add(ctx context.Context, reqObj *DriveItemVersion) (resObj *DriveItemVersion, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Workbook is navigation property
+func (b *DriveItemRequestBuilder) Workbook() *WorkbookRequestBuilder {
+ bb := &WorkbookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/workbook"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go
new file mode 100644
index 00000000..15530974
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEducation.go
@@ -0,0 +1,2432 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationAssignmentPublishRequestParameter undocumented
+type EducationAssignmentPublishRequestParameter struct {
+}
+
+// EducationSubmissionReturnRequestParameter undocumented
+type EducationSubmissionReturnRequestParameter struct {
+}
+
+// EducationSubmissionSubmitRequestParameter undocumented
+type EducationSubmissionSubmitRequestParameter struct {
+}
+
+// EducationSubmissionUnsubmitRequestParameter undocumented
+type EducationSubmissionUnsubmitRequestParameter struct {
+}
+
+// EducationSynchronizationProfileResumeRequestParameter undocumented
+type EducationSynchronizationProfileResumeRequestParameter struct {
+}
+
+// EducationSynchronizationProfilePauseRequestParameter undocumented
+type EducationSynchronizationProfilePauseRequestParameter struct {
+}
+
+// EducationSynchronizationProfileResetRequestParameter undocumented
+type EducationSynchronizationProfileResetRequestParameter struct {
+}
+
+// EducationSynchronizationProfileStartRequestParameter undocumented
+type EducationSynchronizationProfileStartRequestParameter struct {
+}
+
+// Categories returns request builder for EducationCategory collection
+func (b *EducationAssignmentRequestBuilder) Categories() *EducationAssignmentCategoriesCollectionRequestBuilder {
+ bb := &EducationAssignmentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// EducationAssignmentCategoriesCollectionRequestBuilder is request builder for EducationCategory collection
+type EducationAssignmentCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationCategory collection
+func (b *EducationAssignmentCategoriesCollectionRequestBuilder) Request() *EducationAssignmentCategoriesCollectionRequest {
+ return &EducationAssignmentCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationCategory item
+func (b *EducationAssignmentCategoriesCollectionRequestBuilder) ID(id string) *EducationCategoryRequestBuilder {
+ bb := &EducationCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationAssignmentCategoriesCollectionRequest is request for EducationCategory collection
+type EducationAssignmentCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationCategory collection
+func (r *EducationAssignmentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationCategory collection, max N pages
+func (r *EducationAssignmentCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationCategory collection
+func (r *EducationAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationCategory collection
+func (r *EducationAssignmentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *EducationCategory) (resObj *EducationCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Resources returns request builder for EducationAssignmentResource collection
+func (b *EducationAssignmentRequestBuilder) Resources() *EducationAssignmentResourcesCollectionRequestBuilder {
+ bb := &EducationAssignmentResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resources"
+ return bb
+}
+
+// EducationAssignmentResourcesCollectionRequestBuilder is request builder for EducationAssignmentResource collection
+type EducationAssignmentResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationAssignmentResource collection
+func (b *EducationAssignmentResourcesCollectionRequestBuilder) Request() *EducationAssignmentResourcesCollectionRequest {
+ return &EducationAssignmentResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationAssignmentResource item
+func (b *EducationAssignmentResourcesCollectionRequestBuilder) ID(id string) *EducationAssignmentResourceRequestBuilder {
+ bb := &EducationAssignmentResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationAssignmentResourcesCollectionRequest is request for EducationAssignmentResource collection
+type EducationAssignmentResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationAssignmentResource collection
+func (r *EducationAssignmentResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationAssignmentResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationAssignmentResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationAssignmentResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationAssignmentResource collection, max N pages
+func (r *EducationAssignmentResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationAssignmentResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationAssignmentResource collection
+func (r *EducationAssignmentResourcesCollectionRequest) Get(ctx context.Context) ([]EducationAssignmentResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationAssignmentResource collection
+func (r *EducationAssignmentResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignmentResource) (resObj *EducationAssignmentResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Rubric is navigation property
+func (b *EducationAssignmentRequestBuilder) Rubric() *EducationRubricRequestBuilder {
+ bb := &EducationRubricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rubric"
+ return bb
+}
+
+// Submissions returns request builder for EducationSubmission collection
+func (b *EducationAssignmentRequestBuilder) Submissions() *EducationAssignmentSubmissionsCollectionRequestBuilder {
+ bb := &EducationAssignmentSubmissionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/submissions"
+ return bb
+}
+
+// EducationAssignmentSubmissionsCollectionRequestBuilder is request builder for EducationSubmission collection
+type EducationAssignmentSubmissionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSubmission collection
+func (b *EducationAssignmentSubmissionsCollectionRequestBuilder) Request() *EducationAssignmentSubmissionsCollectionRequest {
+ return &EducationAssignmentSubmissionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSubmission item
+func (b *EducationAssignmentSubmissionsCollectionRequestBuilder) ID(id string) *EducationSubmissionRequestBuilder {
+ bb := &EducationSubmissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationAssignmentSubmissionsCollectionRequest is request for EducationSubmission collection
+type EducationAssignmentSubmissionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSubmission collection
+func (r *EducationAssignmentSubmissionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSubmission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSubmission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSubmission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationSubmission collection, max N pages
+func (r *EducationAssignmentSubmissionsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSubmission, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationSubmission collection
+func (r *EducationAssignmentSubmissionsCollectionRequest) Get(ctx context.Context) ([]EducationSubmission, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationSubmission collection
+func (r *EducationAssignmentSubmissionsCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmission) (resObj *EducationSubmission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AssignmentCategories returns request builder for EducationCategory collection
+func (b *EducationClassRequestBuilder) AssignmentCategories() *EducationClassAssignmentCategoriesCollectionRequestBuilder {
+ bb := &EducationClassAssignmentCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignmentCategories"
+ return bb
+}
+
+// EducationClassAssignmentCategoriesCollectionRequestBuilder is request builder for EducationCategory collection
+type EducationClassAssignmentCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationCategory collection
+func (b *EducationClassAssignmentCategoriesCollectionRequestBuilder) Request() *EducationClassAssignmentCategoriesCollectionRequest {
+ return &EducationClassAssignmentCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationCategory item
+func (b *EducationClassAssignmentCategoriesCollectionRequestBuilder) ID(id string) *EducationCategoryRequestBuilder {
+ bb := &EducationCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassAssignmentCategoriesCollectionRequest is request for EducationCategory collection
+type EducationClassAssignmentCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationCategory collection
+func (r *EducationClassAssignmentCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationCategory collection, max N pages
+func (r *EducationClassAssignmentCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationCategory collection
+func (r *EducationClassAssignmentCategoriesCollectionRequest) Get(ctx context.Context) ([]EducationCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationCategory collection
+func (r *EducationClassAssignmentCategoriesCollectionRequest) Add(ctx context.Context, reqObj *EducationCategory) (resObj *EducationCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for EducationAssignment collection
+func (b *EducationClassRequestBuilder) Assignments() *EducationClassAssignmentsCollectionRequestBuilder {
+ bb := &EducationClassAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// EducationClassAssignmentsCollectionRequestBuilder is request builder for EducationAssignment collection
+type EducationClassAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationAssignment collection
+func (b *EducationClassAssignmentsCollectionRequestBuilder) Request() *EducationClassAssignmentsCollectionRequest {
+ return &EducationClassAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationAssignment item
+func (b *EducationClassAssignmentsCollectionRequestBuilder) ID(id string) *EducationAssignmentRequestBuilder {
+ bb := &EducationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassAssignmentsCollectionRequest is request for EducationAssignment collection
+type EducationClassAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationAssignment collection
+func (r *EducationClassAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationAssignment collection, max N pages
+func (r *EducationClassAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationAssignment collection
+func (r *EducationClassAssignmentsCollectionRequest) Get(ctx context.Context) ([]EducationAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationAssignment collection
+func (r *EducationClassAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignment) (resObj *EducationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Group is navigation property
+func (b *EducationClassRequestBuilder) Group() *GroupRequestBuilder {
+ bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/group"
+ return bb
+}
+
+// Members returns request builder for EducationUser collection
+func (b *EducationClassRequestBuilder) Members() *EducationClassMembersCollectionRequestBuilder {
+ bb := &EducationClassMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// EducationClassMembersCollectionRequestBuilder is request builder for EducationUser collection
+type EducationClassMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationUser collection
+func (b *EducationClassMembersCollectionRequestBuilder) Request() *EducationClassMembersCollectionRequest {
+ return &EducationClassMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationUser item
+func (b *EducationClassMembersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassMembersCollectionRequest is request for EducationUser collection
+type EducationClassMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationUser collection
+func (r *EducationClassMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationUser collection, max N pages
+func (r *EducationClassMembersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationClassMembersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationUser collection
+func (r *EducationClassMembersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Schools returns request builder for EducationSchool collection
+func (b *EducationClassRequestBuilder) Schools() *EducationClassSchoolsCollectionRequestBuilder {
+ bb := &EducationClassSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schools"
+ return bb
+}
+
+// EducationClassSchoolsCollectionRequestBuilder is request builder for EducationSchool collection
+type EducationClassSchoolsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSchool collection
+func (b *EducationClassSchoolsCollectionRequestBuilder) Request() *EducationClassSchoolsCollectionRequest {
+ return &EducationClassSchoolsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSchool item
+func (b *EducationClassSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder {
+ bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassSchoolsCollectionRequest is request for EducationSchool collection
+type EducationClassSchoolsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSchool collection
+func (r *EducationClassSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSchool, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSchool
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSchool
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationSchool collection, max N pages
+func (r *EducationClassSchoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSchool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationSchool collection
+func (r *EducationClassSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationSchool collection
+func (r *EducationClassSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Teachers returns request builder for EducationUser collection
+func (b *EducationClassRequestBuilder) Teachers() *EducationClassTeachersCollectionRequestBuilder {
+ bb := &EducationClassTeachersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teachers"
+ return bb
+}
+
+// EducationClassTeachersCollectionRequestBuilder is request builder for EducationUser collection
+type EducationClassTeachersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationUser collection
+func (b *EducationClassTeachersCollectionRequestBuilder) Request() *EducationClassTeachersCollectionRequest {
+ return &EducationClassTeachersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationUser item
+func (b *EducationClassTeachersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationClassTeachersCollectionRequest is request for EducationUser collection
+type EducationClassTeachersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationUser collection
+func (r *EducationClassTeachersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationUser collection, max N pages
+func (r *EducationClassTeachersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationClassTeachersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationUser collection
+func (r *EducationClassTeachersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Classes returns request builder for EducationClass collection
+func (b *EducationRootRequestBuilder) Classes() *EducationRootClassesCollectionRequestBuilder {
+ bb := &EducationRootClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classes"
+ return bb
+}
+
+// EducationRootClassesCollectionRequestBuilder is request builder for EducationClass collection
+type EducationRootClassesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationClass collection
+func (b *EducationRootClassesCollectionRequestBuilder) Request() *EducationRootClassesCollectionRequest {
+ return &EducationRootClassesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationClass item
+func (b *EducationRootClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder {
+ bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationRootClassesCollectionRequest is request for EducationClass collection
+type EducationRootClassesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationClass collection
+func (r *EducationRootClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationClass, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationClass
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationClass
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationClass collection, max N pages
+func (r *EducationRootClassesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationRootClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationClass collection
+func (r *EducationRootClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Me is navigation property
+func (b *EducationRootRequestBuilder) Me() *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/me"
+ return bb
+}
+
+// Schools returns request builder for EducationSchool collection
+func (b *EducationRootRequestBuilder) Schools() *EducationRootSchoolsCollectionRequestBuilder {
+ bb := &EducationRootSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schools"
+ return bb
+}
+
+// EducationRootSchoolsCollectionRequestBuilder is request builder for EducationSchool collection
+type EducationRootSchoolsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSchool collection
+func (b *EducationRootSchoolsCollectionRequestBuilder) Request() *EducationRootSchoolsCollectionRequest {
+ return &EducationRootSchoolsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSchool item
+func (b *EducationRootSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder {
+ bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationRootSchoolsCollectionRequest is request for EducationSchool collection
+type EducationRootSchoolsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSchool collection
+func (r *EducationRootSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSchool, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSchool
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSchool
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationSchool collection, max N pages
+func (r *EducationRootSchoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSchool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationSchool collection
+func (r *EducationRootSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationSchool collection
+func (r *EducationRootSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SynchronizationProfiles returns request builder for EducationSynchronizationProfile collection
+func (b *EducationRootRequestBuilder) SynchronizationProfiles() *EducationRootSynchronizationProfilesCollectionRequestBuilder {
+ bb := &EducationRootSynchronizationProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/synchronizationProfiles"
+ return bb
+}
+
+// EducationRootSynchronizationProfilesCollectionRequestBuilder is request builder for EducationSynchronizationProfile collection
+type EducationRootSynchronizationProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSynchronizationProfile collection
+func (b *EducationRootSynchronizationProfilesCollectionRequestBuilder) Request() *EducationRootSynchronizationProfilesCollectionRequest {
+ return &EducationRootSynchronizationProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSynchronizationProfile item
+func (b *EducationRootSynchronizationProfilesCollectionRequestBuilder) ID(id string) *EducationSynchronizationProfileRequestBuilder {
+ bb := &EducationSynchronizationProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationRootSynchronizationProfilesCollectionRequest is request for EducationSynchronizationProfile collection
+type EducationRootSynchronizationProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSynchronizationProfile collection
+func (r *EducationRootSynchronizationProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSynchronizationProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSynchronizationProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSynchronizationProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationSynchronizationProfile collection, max N pages
+func (r *EducationRootSynchronizationProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSynchronizationProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationSynchronizationProfile collection
+func (r *EducationRootSynchronizationProfilesCollectionRequest) Get(ctx context.Context) ([]EducationSynchronizationProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationSynchronizationProfile collection
+func (r *EducationRootSynchronizationProfilesCollectionRequest) Add(ctx context.Context, reqObj *EducationSynchronizationProfile) (resObj *EducationSynchronizationProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Users returns request builder for EducationUser collection
+func (b *EducationRootRequestBuilder) Users() *EducationRootUsersCollectionRequestBuilder {
+ bb := &EducationRootUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/users"
+ return bb
+}
+
+// EducationRootUsersCollectionRequestBuilder is request builder for EducationUser collection
+type EducationRootUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationUser collection
+func (b *EducationRootUsersCollectionRequestBuilder) Request() *EducationRootUsersCollectionRequest {
+ return &EducationRootUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationUser item
+func (b *EducationRootUsersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationRootUsersCollectionRequest is request for EducationUser collection
+type EducationRootUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationUser collection
+func (r *EducationRootUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationUser collection, max N pages
+func (r *EducationRootUsersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationRootUsersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationUser collection
+func (r *EducationRootUsersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AdministrativeUnit is navigation property
+func (b *EducationSchoolRequestBuilder) AdministrativeUnit() *AdministrativeUnitRequestBuilder {
+ bb := &AdministrativeUnitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/administrativeUnit"
+ return bb
+}
+
+// Classes returns request builder for EducationClass collection
+func (b *EducationSchoolRequestBuilder) Classes() *EducationSchoolClassesCollectionRequestBuilder {
+ bb := &EducationSchoolClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classes"
+ return bb
+}
+
+// EducationSchoolClassesCollectionRequestBuilder is request builder for EducationClass collection
+type EducationSchoolClassesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationClass collection
+func (b *EducationSchoolClassesCollectionRequestBuilder) Request() *EducationSchoolClassesCollectionRequest {
+ return &EducationSchoolClassesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationClass item
+func (b *EducationSchoolClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder {
+ bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSchoolClassesCollectionRequest is request for EducationClass collection
+type EducationSchoolClassesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationClass collection
+func (r *EducationSchoolClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationClass, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationClass
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationClass
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationClass collection, max N pages
+func (r *EducationSchoolClassesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationSchoolClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationClass collection
+func (r *EducationSchoolClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Users returns request builder for EducationUser collection
+func (b *EducationSchoolRequestBuilder) Users() *EducationSchoolUsersCollectionRequestBuilder {
+ bb := &EducationSchoolUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/users"
+ return bb
+}
+
+// EducationSchoolUsersCollectionRequestBuilder is request builder for EducationUser collection
+type EducationSchoolUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationUser collection
+func (b *EducationSchoolUsersCollectionRequestBuilder) Request() *EducationSchoolUsersCollectionRequest {
+ return &EducationSchoolUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationUser item
+func (b *EducationSchoolUsersCollectionRequestBuilder) ID(id string) *EducationUserRequestBuilder {
+ bb := &EducationUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSchoolUsersCollectionRequest is request for EducationUser collection
+type EducationSchoolUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationUser collection
+func (r *EducationSchoolUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationUser collection, max N pages
+func (r *EducationSchoolUsersCollectionRequest) GetN(ctx context.Context, n int) ([]EducationUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationUser collection
+func (r *EducationSchoolUsersCollectionRequest) Get(ctx context.Context) ([]EducationUser, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationUser collection
+func (r *EducationSchoolUsersCollectionRequest) Add(ctx context.Context, reqObj *EducationUser) (resObj *EducationUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Outcomes returns request builder for EducationOutcome collection
+func (b *EducationSubmissionRequestBuilder) Outcomes() *EducationSubmissionOutcomesCollectionRequestBuilder {
+ bb := &EducationSubmissionOutcomesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/outcomes"
+ return bb
+}
+
+// EducationSubmissionOutcomesCollectionRequestBuilder is request builder for EducationOutcome collection
+type EducationSubmissionOutcomesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationOutcome collection
+func (b *EducationSubmissionOutcomesCollectionRequestBuilder) Request() *EducationSubmissionOutcomesCollectionRequest {
+ return &EducationSubmissionOutcomesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationOutcome item
+func (b *EducationSubmissionOutcomesCollectionRequestBuilder) ID(id string) *EducationOutcomeRequestBuilder {
+ bb := &EducationOutcomeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSubmissionOutcomesCollectionRequest is request for EducationOutcome collection
+type EducationSubmissionOutcomesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationOutcome collection
+func (r *EducationSubmissionOutcomesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationOutcome, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationOutcome
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationOutcome
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationOutcome collection, max N pages
+func (r *EducationSubmissionOutcomesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationOutcome, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationOutcome collection
+func (r *EducationSubmissionOutcomesCollectionRequest) Get(ctx context.Context) ([]EducationOutcome, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationOutcome collection
+func (r *EducationSubmissionOutcomesCollectionRequest) Add(ctx context.Context, reqObj *EducationOutcome) (resObj *EducationOutcome, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Resources returns request builder for EducationSubmissionResource collection
+func (b *EducationSubmissionRequestBuilder) Resources() *EducationSubmissionResourcesCollectionRequestBuilder {
+ bb := &EducationSubmissionResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resources"
+ return bb
+}
+
+// EducationSubmissionResourcesCollectionRequestBuilder is request builder for EducationSubmissionResource collection
+type EducationSubmissionResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSubmissionResource collection
+func (b *EducationSubmissionResourcesCollectionRequestBuilder) Request() *EducationSubmissionResourcesCollectionRequest {
+ return &EducationSubmissionResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSubmissionResource item
+func (b *EducationSubmissionResourcesCollectionRequestBuilder) ID(id string) *EducationSubmissionResourceRequestBuilder {
+ bb := &EducationSubmissionResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSubmissionResourcesCollectionRequest is request for EducationSubmissionResource collection
+type EducationSubmissionResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSubmissionResource collection
+func (r *EducationSubmissionResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSubmissionResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSubmissionResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSubmissionResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationSubmissionResource collection, max N pages
+func (r *EducationSubmissionResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSubmissionResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationSubmissionResource collection
+func (r *EducationSubmissionResourcesCollectionRequest) Get(ctx context.Context) ([]EducationSubmissionResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationSubmissionResource collection
+func (r *EducationSubmissionResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmissionResource) (resObj *EducationSubmissionResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SubmittedResources returns request builder for EducationSubmissionResource collection
+func (b *EducationSubmissionRequestBuilder) SubmittedResources() *EducationSubmissionSubmittedResourcesCollectionRequestBuilder {
+ bb := &EducationSubmissionSubmittedResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/submittedResources"
+ return bb
+}
+
+// EducationSubmissionSubmittedResourcesCollectionRequestBuilder is request builder for EducationSubmissionResource collection
+type EducationSubmissionSubmittedResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSubmissionResource collection
+func (b *EducationSubmissionSubmittedResourcesCollectionRequestBuilder) Request() *EducationSubmissionSubmittedResourcesCollectionRequest {
+ return &EducationSubmissionSubmittedResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSubmissionResource item
+func (b *EducationSubmissionSubmittedResourcesCollectionRequestBuilder) ID(id string) *EducationSubmissionResourceRequestBuilder {
+ bb := &EducationSubmissionResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSubmissionSubmittedResourcesCollectionRequest is request for EducationSubmissionResource collection
+type EducationSubmissionSubmittedResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSubmissionResource collection
+func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSubmissionResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSubmissionResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSubmissionResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationSubmissionResource collection, max N pages
+func (r *EducationSubmissionSubmittedResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSubmissionResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationSubmissionResource collection
+func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Get(ctx context.Context) ([]EducationSubmissionResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationSubmissionResource collection
+func (r *EducationSubmissionSubmittedResourcesCollectionRequest) Add(ctx context.Context, reqObj *EducationSubmissionResource) (resObj *EducationSubmissionResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Errors returns request builder for EducationSynchronizationError collection
+func (b *EducationSynchronizationProfileRequestBuilder) Errors() *EducationSynchronizationProfileErrorsCollectionRequestBuilder {
+ bb := &EducationSynchronizationProfileErrorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/errors"
+ return bb
+}
+
+// EducationSynchronizationProfileErrorsCollectionRequestBuilder is request builder for EducationSynchronizationError collection
+type EducationSynchronizationProfileErrorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSynchronizationError collection
+func (b *EducationSynchronizationProfileErrorsCollectionRequestBuilder) Request() *EducationSynchronizationProfileErrorsCollectionRequest {
+ return &EducationSynchronizationProfileErrorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSynchronizationError item
+func (b *EducationSynchronizationProfileErrorsCollectionRequestBuilder) ID(id string) *EducationSynchronizationErrorRequestBuilder {
+ bb := &EducationSynchronizationErrorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationSynchronizationProfileErrorsCollectionRequest is request for EducationSynchronizationError collection
+type EducationSynchronizationProfileErrorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSynchronizationError collection
+func (r *EducationSynchronizationProfileErrorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSynchronizationError, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSynchronizationError
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSynchronizationError
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationSynchronizationError collection, max N pages
+func (r *EducationSynchronizationProfileErrorsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSynchronizationError, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationSynchronizationError collection
+func (r *EducationSynchronizationProfileErrorsCollectionRequest) Get(ctx context.Context) ([]EducationSynchronizationError, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationSynchronizationError collection
+func (r *EducationSynchronizationProfileErrorsCollectionRequest) Add(ctx context.Context, reqObj *EducationSynchronizationError) (resObj *EducationSynchronizationError, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ProfileStatus is navigation property
+func (b *EducationSynchronizationProfileRequestBuilder) ProfileStatus() *EducationSynchronizationProfileStatusRequestBuilder {
+ bb := &EducationSynchronizationProfileStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/profileStatus"
+ return bb
+}
+
+// Assignments returns request builder for EducationAssignment collection
+func (b *EducationUserRequestBuilder) Assignments() *EducationUserAssignmentsCollectionRequestBuilder {
+ bb := &EducationUserAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// EducationUserAssignmentsCollectionRequestBuilder is request builder for EducationAssignment collection
+type EducationUserAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationAssignment collection
+func (b *EducationUserAssignmentsCollectionRequestBuilder) Request() *EducationUserAssignmentsCollectionRequest {
+ return &EducationUserAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationAssignment item
+func (b *EducationUserAssignmentsCollectionRequestBuilder) ID(id string) *EducationAssignmentRequestBuilder {
+ bb := &EducationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserAssignmentsCollectionRequest is request for EducationAssignment collection
+type EducationUserAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationAssignment collection
+func (r *EducationUserAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationAssignment collection, max N pages
+func (r *EducationUserAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationAssignment collection
+func (r *EducationUserAssignmentsCollectionRequest) Get(ctx context.Context) ([]EducationAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationAssignment collection
+func (r *EducationUserAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EducationAssignment) (resObj *EducationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Classes returns request builder for EducationClass collection
+func (b *EducationUserRequestBuilder) Classes() *EducationUserClassesCollectionRequestBuilder {
+ bb := &EducationUserClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/classes"
+ return bb
+}
+
+// EducationUserClassesCollectionRequestBuilder is request builder for EducationClass collection
+type EducationUserClassesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationClass collection
+func (b *EducationUserClassesCollectionRequestBuilder) Request() *EducationUserClassesCollectionRequest {
+ return &EducationUserClassesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationClass item
+func (b *EducationUserClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder {
+ bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserClassesCollectionRequest is request for EducationClass collection
+type EducationUserClassesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationClass collection
+func (r *EducationUserClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationClass, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationClass
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationClass
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationClass collection, max N pages
+func (r *EducationUserClassesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationUserClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationClass collection
+func (r *EducationUserClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Rubrics returns request builder for EducationRubric collection
+func (b *EducationUserRequestBuilder) Rubrics() *EducationUserRubricsCollectionRequestBuilder {
+ bb := &EducationUserRubricsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rubrics"
+ return bb
+}
+
+// EducationUserRubricsCollectionRequestBuilder is request builder for EducationRubric collection
+type EducationUserRubricsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationRubric collection
+func (b *EducationUserRubricsCollectionRequestBuilder) Request() *EducationUserRubricsCollectionRequest {
+ return &EducationUserRubricsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationRubric item
+func (b *EducationUserRubricsCollectionRequestBuilder) ID(id string) *EducationRubricRequestBuilder {
+ bb := &EducationRubricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserRubricsCollectionRequest is request for EducationRubric collection
+type EducationUserRubricsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationRubric collection
+func (r *EducationUserRubricsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationRubric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationRubric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationRubric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationRubric collection, max N pages
+func (r *EducationUserRubricsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationRubric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationRubric collection
+func (r *EducationUserRubricsCollectionRequest) Get(ctx context.Context) ([]EducationRubric, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationRubric collection
+func (r *EducationUserRubricsCollectionRequest) Add(ctx context.Context, reqObj *EducationRubric) (resObj *EducationRubric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Schools returns request builder for EducationSchool collection
+func (b *EducationUserRequestBuilder) Schools() *EducationUserSchoolsCollectionRequestBuilder {
+ bb := &EducationUserSchoolsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schools"
+ return bb
+}
+
+// EducationUserSchoolsCollectionRequestBuilder is request builder for EducationSchool collection
+type EducationUserSchoolsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationSchool collection
+func (b *EducationUserSchoolsCollectionRequestBuilder) Request() *EducationUserSchoolsCollectionRequest {
+ return &EducationUserSchoolsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationSchool item
+func (b *EducationUserSchoolsCollectionRequestBuilder) ID(id string) *EducationSchoolRequestBuilder {
+ bb := &EducationSchoolRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserSchoolsCollectionRequest is request for EducationSchool collection
+type EducationUserSchoolsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationSchool collection
+func (r *EducationUserSchoolsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationSchool, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationSchool
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationSchool
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationSchool collection, max N pages
+func (r *EducationUserSchoolsCollectionRequest) GetN(ctx context.Context, n int) ([]EducationSchool, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationSchool collection
+func (r *EducationUserSchoolsCollectionRequest) Get(ctx context.Context) ([]EducationSchool, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationSchool collection
+func (r *EducationUserSchoolsCollectionRequest) Add(ctx context.Context, reqObj *EducationSchool) (resObj *EducationSchool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaughtClasses returns request builder for EducationClass collection
+func (b *EducationUserRequestBuilder) TaughtClasses() *EducationUserTaughtClassesCollectionRequestBuilder {
+ bb := &EducationUserTaughtClassesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taughtClasses"
+ return bb
+}
+
+// EducationUserTaughtClassesCollectionRequestBuilder is request builder for EducationClass collection
+type EducationUserTaughtClassesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationClass collection
+func (b *EducationUserTaughtClassesCollectionRequestBuilder) Request() *EducationUserTaughtClassesCollectionRequest {
+ return &EducationUserTaughtClassesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationClass item
+func (b *EducationUserTaughtClassesCollectionRequestBuilder) ID(id string) *EducationClassRequestBuilder {
+ bb := &EducationClassRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EducationUserTaughtClassesCollectionRequest is request for EducationClass collection
+type EducationUserTaughtClassesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationClass collection
+func (r *EducationUserTaughtClassesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationClass, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationClass
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationClass
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationClass collection, max N pages
+func (r *EducationUserTaughtClassesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationClass, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationClass collection
+func (r *EducationUserTaughtClassesCollectionRequest) Get(ctx context.Context) ([]EducationClass, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationClass collection
+func (r *EducationUserTaughtClassesCollectionRequest) Add(ctx context.Context, reqObj *EducationClass) (resObj *EducationClass, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// User is navigation property
+func (b *EducationUserRequestBuilder) User() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/user"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmbedded.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmbedded.go
new file mode 100644
index 00000000..3011a6b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmbedded.go
@@ -0,0 +1,222 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EmbeddedSIMActivationCodePoolAssignRequestParameter undocumented
+type EmbeddedSIMActivationCodePoolAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []EmbeddedSIMActivationCodePoolAssignment `json:"assignments,omitempty"`
+}
+
+// Assignments returns request builder for EmbeddedSIMActivationCodePoolAssignment collection
+func (b *EmbeddedSIMActivationCodePoolRequestBuilder) Assignments() *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder is request builder for EmbeddedSIMActivationCodePoolAssignment collection
+type EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EmbeddedSIMActivationCodePoolAssignment collection
+func (b *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder) Request() *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest {
+ return &EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EmbeddedSIMActivationCodePoolAssignment item
+func (b *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequestBuilder) ID(id string) *EmbeddedSIMActivationCodePoolAssignmentRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest is request for EmbeddedSIMActivationCodePoolAssignment collection
+type EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EmbeddedSIMActivationCodePoolAssignment collection
+func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EmbeddedSIMActivationCodePoolAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EmbeddedSIMActivationCodePoolAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EmbeddedSIMActivationCodePoolAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EmbeddedSIMActivationCodePoolAssignment collection, max N pages
+func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]EmbeddedSIMActivationCodePoolAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EmbeddedSIMActivationCodePoolAssignment collection
+func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMActivationCodePoolAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EmbeddedSIMActivationCodePoolAssignment collection
+func (r *EmbeddedSIMActivationCodePoolAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *EmbeddedSIMActivationCodePoolAssignment) (resObj *EmbeddedSIMActivationCodePoolAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStates returns request builder for EmbeddedSIMDeviceState collection
+func (b *EmbeddedSIMActivationCodePoolRequestBuilder) DeviceStates() *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder is request builder for EmbeddedSIMDeviceState collection
+type EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EmbeddedSIMDeviceState collection
+func (b *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder) Request() *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest {
+ return &EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EmbeddedSIMDeviceState item
+func (b *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequestBuilder) ID(id string) *EmbeddedSIMDeviceStateRequestBuilder {
+ bb := &EmbeddedSIMDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest is request for EmbeddedSIMDeviceState collection
+type EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EmbeddedSIMDeviceState collection
+func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EmbeddedSIMDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EmbeddedSIMDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EmbeddedSIMDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EmbeddedSIMDeviceState collection, max N pages
+func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]EmbeddedSIMDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EmbeddedSIMDeviceState collection
+func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Get(ctx context.Context) ([]EmbeddedSIMDeviceState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EmbeddedSIMDeviceState collection
+func (r *EmbeddedSIMActivationCodePoolDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *EmbeddedSIMDeviceState) (resObj *EmbeddedSIMDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmployee.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmployee.go
new file mode 100644
index 00000000..2b6f217c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEmployee.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Picture returns request builder for Picture collection
+func (b *EmployeeRequestBuilder) Picture() *EmployeePictureCollectionRequestBuilder {
+ bb := &EmployeePictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// EmployeePictureCollectionRequestBuilder is request builder for Picture collection
+type EmployeePictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *EmployeePictureCollectionRequestBuilder) Request() *EmployeePictureCollectionRequest {
+ return &EmployeePictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *EmployeePictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EmployeePictureCollectionRequest is request for Picture collection
+type EmployeePictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *EmployeePictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Picture collection, max N pages
+func (r *EmployeePictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Picture collection
+func (r *EmployeePictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Picture collection
+func (r *EmployeePictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEnrollment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEnrollment.go
new file mode 100644
index 00000000..81339400
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEnrollment.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EnrollmentProfileSetDefaultProfileRequestParameter undocumented
+type EnrollmentProfileSetDefaultProfileRequestParameter struct {
+}
+
+// EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter undocumented
+type EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter struct {
+ // DeviceIDs undocumented
+ DeviceIDs []string `json:"deviceIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEntitlement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEntitlement.go
new file mode 100644
index 00000000..494c7f2a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEntitlement.go
@@ -0,0 +1,930 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageAssignmentPolicies() *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentPolicies"
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection
+type EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentPolicy collection
+func (b *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest {
+ return &EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentPolicy item
+func (b *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder {
+ bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection
+type EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection
+func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignmentPolicy collection, max N pages
+func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignmentPolicy collection
+func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignmentPolicy collection
+func (r *EntitlementManagementAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageAssignmentRequests() *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentRequests"
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection
+type EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentRequestObject collection
+func (b *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest {
+ return &EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentRequestObject item
+func (b *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder {
+ bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection
+type EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection
+func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignmentRequestObject collection, max N pages
+func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignmentRequestObject collection
+func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignmentRequestObject collection
+func (r *EntitlementManagementAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageAssignmentResourceRoles() *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentResourceRoles"
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection
+type EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentResourceRole collection
+func (b *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest {
+ return &EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentResourceRole item
+func (b *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder {
+ bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection
+type EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection
+func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignmentResourceRole collection, max N pages
+func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignmentResourceRole collection
+func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignmentResourceRole collection
+func (r *EntitlementManagementAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignments returns request builder for AccessPackageAssignment collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageAssignments() *EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignments"
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection
+type EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignment collection
+func (b *EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageAssignmentsCollectionRequest {
+ return &EntitlementManagementAccessPackageAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignment item
+func (b *EntitlementManagementAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder {
+ bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection
+type EntitlementManagementAccessPackageAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignment collection
+func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignment collection, max N pages
+func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignment collection
+func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignment collection
+func (r *EntitlementManagementAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageCatalogs returns request builder for AccessPackageCatalog collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageCatalogs() *EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageCatalogs"
+ return bb
+}
+
+// EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder is request builder for AccessPackageCatalog collection
+type EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageCatalog collection
+func (b *EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageCatalogsCollectionRequest {
+ return &EntitlementManagementAccessPackageCatalogsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageCatalog item
+func (b *EntitlementManagementAccessPackageCatalogsCollectionRequestBuilder) ID(id string) *AccessPackageCatalogRequestBuilder {
+ bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageCatalogsCollectionRequest is request for AccessPackageCatalog collection
+type EntitlementManagementAccessPackageCatalogsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageCatalog collection
+func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageCatalog, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageCatalog
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageCatalog
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageCatalog collection, max N pages
+func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageCatalog, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageCatalog collection
+func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Get(ctx context.Context) ([]AccessPackageCatalog, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageCatalog collection
+func (r *EntitlementManagementAccessPackageCatalogsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageCatalog) (resObj *AccessPackageCatalog, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRequests returns request builder for AccessPackageResourceRequestObject collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageResourceRequests() *EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRequests"
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder is request builder for AccessPackageResourceRequestObject collection
+type EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRequestObject collection
+func (b *EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageResourceRequestsCollectionRequest {
+ return &EntitlementManagementAccessPackageResourceRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRequestObject item
+func (b *EntitlementManagementAccessPackageResourceRequestsCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestObjectRequestBuilder {
+ bb := &AccessPackageResourceRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourceRequestsCollectionRequest is request for AccessPackageResourceRequestObject collection
+type EntitlementManagementAccessPackageResourceRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRequestObject collection
+func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResourceRequestObject collection, max N pages
+func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResourceRequestObject collection
+func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResourceRequestObject collection
+func (r *EntitlementManagementAccessPackageResourceRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRequestObject) (resObj *AccessPackageResourceRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageResourceRoleScopes() *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoleScopes"
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection
+type EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRoleScope collection
+func (b *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest {
+ return &EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRoleScope item
+func (b *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder {
+ bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection
+type EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRoleScope collection
+func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRoleScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRoleScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRoleScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResourceRoleScope collection, max N pages
+func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRoleScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResourceRoleScope collection
+func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResourceRoleScope collection
+func (r *EntitlementManagementAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResources returns request builder for AccessPackageResource collection
+func (b *EntitlementManagementRequestBuilder) AccessPackageResources() *EntitlementManagementAccessPackageResourcesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResources"
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection
+type EntitlementManagementAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResource collection
+func (b *EntitlementManagementAccessPackageResourcesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackageResourcesCollectionRequest {
+ return &EntitlementManagementAccessPackageResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResource item
+func (b *EntitlementManagementAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection
+type EntitlementManagementAccessPackageResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResource collection
+func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResource collection, max N pages
+func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResource collection
+func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResource collection
+func (r *EntitlementManagementAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackages returns request builder for AccessPackage collection
+func (b *EntitlementManagementRequestBuilder) AccessPackages() *EntitlementManagementAccessPackagesCollectionRequestBuilder {
+ bb := &EntitlementManagementAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackages"
+ return bb
+}
+
+// EntitlementManagementAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection
+type EntitlementManagementAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackage collection
+func (b *EntitlementManagementAccessPackagesCollectionRequestBuilder) Request() *EntitlementManagementAccessPackagesCollectionRequest {
+ return &EntitlementManagementAccessPackagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackage item
+func (b *EntitlementManagementAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EntitlementManagementAccessPackagesCollectionRequest is request for AccessPackage collection
+type EntitlementManagementAccessPackagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackage collection
+func (r *EntitlementManagementAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackage collection, max N pages
+func (r *EntitlementManagementAccessPackagesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackage collection
+func (r *EntitlementManagementAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackage collection
+func (r *EntitlementManagementAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionEvent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEvent.go
new file mode 100644
index 00000000..406ce716
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionEvent.go
@@ -0,0 +1,616 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EventDismissReminderRequestParameter undocumented
+type EventDismissReminderRequestParameter struct {
+}
+
+// EventSnoozeReminderRequestParameter undocumented
+type EventSnoozeReminderRequestParameter struct {
+ // NewReminderTime undocumented
+ NewReminderTime *DateTimeTimeZone `json:"NewReminderTime,omitempty"`
+}
+
+// EventForwardRequestParameter undocumented
+type EventForwardRequestParameter struct {
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"ToRecipients,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventAcceptRequestParameter undocumented
+type EventAcceptRequestParameter struct {
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventDeclineRequestParameter undocumented
+type EventDeclineRequestParameter struct {
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"`
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventTentativelyAcceptRequestParameter undocumented
+type EventTentativelyAcceptRequestParameter struct {
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"`
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventCancelRequestParameter undocumented
+type EventCancelRequestParameter struct {
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventMessageRequestObjectAcceptRequestParameter undocumented
+type EventMessageRequestObjectAcceptRequestParameter struct {
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventMessageRequestObjectDeclineRequestParameter undocumented
+type EventMessageRequestObjectDeclineRequestParameter struct {
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"`
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// EventMessageRequestObjectTentativelyAcceptRequestParameter undocumented
+type EventMessageRequestObjectTentativelyAcceptRequestParameter struct {
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"ProposedNewTime,omitempty"`
+ // SendResponse undocumented
+ SendResponse *bool `json:"SendResponse,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// Attachments returns request builder for Attachment collection
+func (b *EventRequestBuilder) Attachments() *EventAttachmentsCollectionRequestBuilder {
+ bb := &EventAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/attachments"
+ return bb
+}
+
+// EventAttachmentsCollectionRequestBuilder is request builder for Attachment collection
+type EventAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Attachment collection
+func (b *EventAttachmentsCollectionRequestBuilder) Request() *EventAttachmentsCollectionRequest {
+ return &EventAttachmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Attachment item
+func (b *EventAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder {
+ bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventAttachmentsCollectionRequest is request for Attachment collection
+type EventAttachmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Attachment collection
+func (r *EventAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Attachment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Attachment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Attachment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Attachment collection, max N pages
+func (r *EventAttachmentsCollectionRequest) GetN(ctx context.Context, n int) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Attachment collection
+func (r *EventAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Attachment collection
+func (r *EventAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Calendar is navigation property
+func (b *EventRequestBuilder) Calendar() *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendar"
+ return bb
+}
+
+// Extensions returns request builder for Extension collection
+func (b *EventRequestBuilder) Extensions() *EventExtensionsCollectionRequestBuilder {
+ bb := &EventExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// EventExtensionsCollectionRequestBuilder is request builder for Extension collection
+type EventExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *EventExtensionsCollectionRequestBuilder) Request() *EventExtensionsCollectionRequest {
+ return &EventExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *EventExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventExtensionsCollectionRequest is request for Extension collection
+type EventExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *EventExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Extension collection, max N pages
+func (r *EventExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Extension collection
+func (r *EventExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Extension collection
+func (r *EventExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Instances returns request builder for Event collection
+func (b *EventRequestBuilder) Instances() *EventInstancesCollectionRequestBuilder {
+ bb := &EventInstancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/instances"
+ return bb
+}
+
+// EventInstancesCollectionRequestBuilder is request builder for Event collection
+type EventInstancesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *EventInstancesCollectionRequestBuilder) Request() *EventInstancesCollectionRequest {
+ return &EventInstancesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *EventInstancesCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventInstancesCollectionRequest is request for Event collection
+type EventInstancesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *EventInstancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Event collection, max N pages
+func (r *EventInstancesCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Event collection
+func (r *EventInstancesCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Event collection
+func (r *EventInstancesCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *EventRequestBuilder) MultiValueExtendedProperties() *EventMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &EventMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// EventMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type EventMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *EventMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *EventMultiValueExtendedPropertiesCollectionRequest {
+ return &EventMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *EventMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type EventMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *EventMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages
+func (r *EventMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *EventMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *EventMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *EventRequestBuilder) SingleValueExtendedProperties() *EventSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &EventSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// EventSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type EventSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *EventSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *EventSingleValueExtendedPropertiesCollectionRequest {
+ return &EventSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *EventSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// EventSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type EventSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *EventSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages
+func (r *EventSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *EventSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *EventSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Event is navigation property
+func (b *EventMessageRequestBuilder) Event() *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/event"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionExact.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionExact.go
new file mode 100644
index 00000000..8601fe38
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionExact.go
@@ -0,0 +1,245 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ExactMatchDataStoreLookupRequestParameter undocumented
+type ExactMatchDataStoreLookupRequestParameter struct {
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Values undocumented
+ Values []string `json:"values,omitempty"`
+ // ResultColumnNames undocumented
+ ResultColumnNames []string `json:"resultColumnNames,omitempty"`
+}
+
+// ExactMatchSessionCancelRequestParameter undocumented
+type ExactMatchSessionCancelRequestParameter struct {
+}
+
+// ExactMatchSessionCommitRequestParameter undocumented
+type ExactMatchSessionCommitRequestParameter struct {
+}
+
+// ExactMatchSessionRenewRequestParameter undocumented
+type ExactMatchSessionRenewRequestParameter struct {
+}
+
+// Sessions returns request builder for ExactMatchSession collection
+func (b *ExactMatchDataStoreRequestBuilder) Sessions() *ExactMatchDataStoreSessionsCollectionRequestBuilder {
+ bb := &ExactMatchDataStoreSessionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sessions"
+ return bb
+}
+
+// ExactMatchDataStoreSessionsCollectionRequestBuilder is request builder for ExactMatchSession collection
+type ExactMatchDataStoreSessionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExactMatchSession collection
+func (b *ExactMatchDataStoreSessionsCollectionRequestBuilder) Request() *ExactMatchDataStoreSessionsCollectionRequest {
+ return &ExactMatchDataStoreSessionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExactMatchSession item
+func (b *ExactMatchDataStoreSessionsCollectionRequestBuilder) ID(id string) *ExactMatchSessionRequestBuilder {
+ bb := &ExactMatchSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExactMatchDataStoreSessionsCollectionRequest is request for ExactMatchSession collection
+type ExactMatchDataStoreSessionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExactMatchSession collection
+func (r *ExactMatchDataStoreSessionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExactMatchSession, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExactMatchSession
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExactMatchSession
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ExactMatchSession collection, max N pages
+func (r *ExactMatchDataStoreSessionsCollectionRequest) GetN(ctx context.Context, n int) ([]ExactMatchSession, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ExactMatchSession collection
+func (r *ExactMatchDataStoreSessionsCollectionRequest) Get(ctx context.Context) ([]ExactMatchSession, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ExactMatchSession collection
+func (r *ExactMatchDataStoreSessionsCollectionRequest) Add(ctx context.Context, reqObj *ExactMatchSession) (resObj *ExactMatchSession, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MatchingRows returns request builder for LookupResultRow collection
+func (b *ExactMatchLookupJobRequestBuilder) MatchingRows() *ExactMatchLookupJobMatchingRowsCollectionRequestBuilder {
+ bb := &ExactMatchLookupJobMatchingRowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/matchingRows"
+ return bb
+}
+
+// ExactMatchLookupJobMatchingRowsCollectionRequestBuilder is request builder for LookupResultRow collection
+type ExactMatchLookupJobMatchingRowsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LookupResultRow collection
+func (b *ExactMatchLookupJobMatchingRowsCollectionRequestBuilder) Request() *ExactMatchLookupJobMatchingRowsCollectionRequest {
+ return &ExactMatchLookupJobMatchingRowsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LookupResultRow item
+func (b *ExactMatchLookupJobMatchingRowsCollectionRequestBuilder) ID(id string) *LookupResultRowRequestBuilder {
+ bb := &LookupResultRowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExactMatchLookupJobMatchingRowsCollectionRequest is request for LookupResultRow collection
+type ExactMatchLookupJobMatchingRowsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LookupResultRow collection
+func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LookupResultRow, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LookupResultRow
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LookupResultRow
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for LookupResultRow collection, max N pages
+func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) GetN(ctx context.Context, n int) ([]LookupResultRow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for LookupResultRow collection
+func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Get(ctx context.Context) ([]LookupResultRow, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for LookupResultRow collection
+func (r *ExactMatchLookupJobMatchingRowsCollectionRequest) Add(ctx context.Context, reqObj *LookupResultRow) (resObj *LookupResultRow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UploadAgent is navigation property
+func (b *ExactMatchSessionRequestBuilder) UploadAgent() *ExactMatchUploadAgentRequestBuilder {
+ bb := &ExactMatchUploadAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/uploadAgent"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionExternal.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionExternal.go
new file mode 100644
index 00000000..c13ec871
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionExternal.go
@@ -0,0 +1,325 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Connections returns request builder for ExternalConnection collection
+func (b *ExternalRequestBuilder) Connections() *ExternalConnectionsCollectionRequestBuilder {
+ bb := &ExternalConnectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/connections"
+ return bb
+}
+
+// ExternalConnectionsCollectionRequestBuilder is request builder for ExternalConnection collection
+type ExternalConnectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExternalConnection collection
+func (b *ExternalConnectionsCollectionRequestBuilder) Request() *ExternalConnectionsCollectionRequest {
+ return &ExternalConnectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExternalConnection item
+func (b *ExternalConnectionsCollectionRequestBuilder) ID(id string) *ExternalConnectionRequestBuilder {
+ bb := &ExternalConnectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExternalConnectionsCollectionRequest is request for ExternalConnection collection
+type ExternalConnectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExternalConnection collection
+func (r *ExternalConnectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExternalConnection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExternalConnection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExternalConnection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ExternalConnection collection, max N pages
+func (r *ExternalConnectionsCollectionRequest) GetN(ctx context.Context, n int) ([]ExternalConnection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ExternalConnection collection
+func (r *ExternalConnectionsCollectionRequest) Get(ctx context.Context) ([]ExternalConnection, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ExternalConnection collection
+func (r *ExternalConnectionsCollectionRequest) Add(ctx context.Context, reqObj *ExternalConnection) (resObj *ExternalConnection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Items returns request builder for ExternalItem collection
+func (b *ExternalConnectionRequestBuilder) Items() *ExternalConnectionItemsCollectionRequestBuilder {
+ bb := &ExternalConnectionItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// ExternalConnectionItemsCollectionRequestBuilder is request builder for ExternalItem collection
+type ExternalConnectionItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExternalItem collection
+func (b *ExternalConnectionItemsCollectionRequestBuilder) Request() *ExternalConnectionItemsCollectionRequest {
+ return &ExternalConnectionItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExternalItem item
+func (b *ExternalConnectionItemsCollectionRequestBuilder) ID(id string) *ExternalItemRequestBuilder {
+ bb := &ExternalItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExternalConnectionItemsCollectionRequest is request for ExternalItem collection
+type ExternalConnectionItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExternalItem collection
+func (r *ExternalConnectionItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExternalItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExternalItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExternalItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ExternalItem collection, max N pages
+func (r *ExternalConnectionItemsCollectionRequest) GetN(ctx context.Context, n int) ([]ExternalItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ExternalItem collection
+func (r *ExternalConnectionItemsCollectionRequest) Get(ctx context.Context) ([]ExternalItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ExternalItem collection
+func (r *ExternalConnectionItemsCollectionRequest) Add(ctx context.Context, reqObj *ExternalItem) (resObj *ExternalItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for ConnectionOperation collection
+func (b *ExternalConnectionRequestBuilder) Operations() *ExternalConnectionOperationsCollectionRequestBuilder {
+ bb := &ExternalConnectionOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// ExternalConnectionOperationsCollectionRequestBuilder is request builder for ConnectionOperation collection
+type ExternalConnectionOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConnectionOperation collection
+func (b *ExternalConnectionOperationsCollectionRequestBuilder) Request() *ExternalConnectionOperationsCollectionRequest {
+ return &ExternalConnectionOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConnectionOperation item
+func (b *ExternalConnectionOperationsCollectionRequestBuilder) ID(id string) *ConnectionOperationRequestBuilder {
+ bb := &ConnectionOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ExternalConnectionOperationsCollectionRequest is request for ConnectionOperation collection
+type ExternalConnectionOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConnectionOperation collection
+func (r *ExternalConnectionOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConnectionOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConnectionOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConnectionOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ConnectionOperation collection, max N pages
+func (r *ExternalConnectionOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]ConnectionOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ConnectionOperation collection
+func (r *ExternalConnectionOperationsCollectionRequest) Get(ctx context.Context) ([]ConnectionOperation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ConnectionOperation collection
+func (r *ExternalConnectionOperationsCollectionRequest) Add(ctx context.Context, reqObj *ConnectionOperation) (resObj *ConnectionOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Schema is navigation property
+func (b *ExternalConnectionRequestBuilder) Schema() *SchemaRequestBuilder {
+ bb := &SchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schema"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionFeature.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionFeature.go
new file mode 100644
index 00000000..08c45e3b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionFeature.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AppliesTo returns request builder for DirectoryObject collection
+func (b *FeatureRolloutPolicyRequestBuilder) AppliesTo() *FeatureRolloutPolicyAppliesToCollectionRequestBuilder {
+ bb := &FeatureRolloutPolicyAppliesToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appliesTo"
+ return bb
+}
+
+// FeatureRolloutPolicyAppliesToCollectionRequestBuilder is request builder for DirectoryObject collection
+type FeatureRolloutPolicyAppliesToCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) Request() *FeatureRolloutPolicyAppliesToCollectionRequest {
+ return &FeatureRolloutPolicyAppliesToCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// FeatureRolloutPolicyAppliesToCollectionRequest is request for DirectoryObject collection
+type FeatureRolloutPolicyAppliesToCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *FeatureRolloutPolicyAppliesToCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *FeatureRolloutPolicyAppliesToCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionFinancials.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionFinancials.go
new file mode 100644
index 00000000..3dbd5f7c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionFinancials.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Companies returns request builder for Company collection
+func (b *FinancialsRequestBuilder) Companies() *FinancialsCompaniesCollectionRequestBuilder {
+ bb := &FinancialsCompaniesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/companies"
+ return bb
+}
+
+// FinancialsCompaniesCollectionRequestBuilder is request builder for Company collection
+type FinancialsCompaniesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Company collection
+func (b *FinancialsCompaniesCollectionRequestBuilder) Request() *FinancialsCompaniesCollectionRequest {
+ return &FinancialsCompaniesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Company item
+func (b *FinancialsCompaniesCollectionRequestBuilder) ID(id string) *CompanyRequestBuilder {
+ bb := &CompanyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// FinancialsCompaniesCollectionRequest is request for Company collection
+type FinancialsCompaniesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Company collection
+func (r *FinancialsCompaniesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Company, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Company
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Company
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Company collection, max N pages
+func (r *FinancialsCompaniesCollectionRequest) GetN(ctx context.Context, n int) ([]Company, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Company collection
+func (r *FinancialsCompaniesCollectionRequest) Get(ctx context.Context) ([]Company, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Company collection
+func (r *FinancialsCompaniesCollectionRequest) Add(ctx context.Context, reqObj *Company) (resObj *Company, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionGeneral.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGeneral.go
new file mode 100644
index 00000000..c385383d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGeneral.go
@@ -0,0 +1,10 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Account is navigation property
+func (b *GeneralLedgerEntryRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionGovernance.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGovernance.go
new file mode 100644
index 00000000..e9e57a72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGovernance.go
@@ -0,0 +1,526 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GovernanceResourceCollectionRegisterRequestParameter undocumented
+type GovernanceResourceCollectionRegisterRequestParameter struct {
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
+
+// GovernanceRoleAssignmentRequestObjectCancelRequestParameter undocumented
+type GovernanceRoleAssignmentRequestObjectCancelRequestParameter struct {
+}
+
+// GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestParameter undocumented
+type GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestParameter struct {
+ // Decision undocumented
+ Decision *string `json:"decision,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // Schedule undocumented
+ Schedule *GovernanceSchedule `json:"schedule,omitempty"`
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+}
+
+// Parent is navigation property
+func (b *GovernanceResourceRequestBuilder) Parent() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parent"
+ return bb
+}
+
+// RoleAssignmentRequests returns request builder for GovernanceRoleAssignmentRequestObject collection
+func (b *GovernanceResourceRequestBuilder) RoleAssignmentRequests() *GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder {
+ bb := &GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignmentRequests"
+ return bb
+}
+
+// GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject collection
+type GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignmentRequestObject collection
+func (b *GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder) Request() *GovernanceResourceRoleAssignmentRequestsCollectionRequest {
+ return &GovernanceResourceRoleAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignmentRequestObject item
+func (b *GovernanceResourceRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestObjectRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GovernanceResourceRoleAssignmentRequestsCollectionRequest is request for GovernanceRoleAssignmentRequestObject collection
+type GovernanceResourceRoleAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignmentRequestObject collection
+func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleAssignmentRequestObject collection, max N pages
+func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject collection
+func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleAssignmentRequestObject collection
+func (r *GovernanceResourceRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleAssignments returns request builder for GovernanceRoleAssignment collection
+func (b *GovernanceResourceRequestBuilder) RoleAssignments() *GovernanceResourceRoleAssignmentsCollectionRequestBuilder {
+ bb := &GovernanceResourceRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// GovernanceResourceRoleAssignmentsCollectionRequestBuilder is request builder for GovernanceRoleAssignment collection
+type GovernanceResourceRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignment collection
+func (b *GovernanceResourceRoleAssignmentsCollectionRequestBuilder) Request() *GovernanceResourceRoleAssignmentsCollectionRequest {
+ return &GovernanceResourceRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignment item
+func (b *GovernanceResourceRoleAssignmentsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GovernanceResourceRoleAssignmentsCollectionRequest is request for GovernanceRoleAssignment collection
+type GovernanceResourceRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignment collection
+func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleAssignment collection, max N pages
+func (r *GovernanceResourceRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleAssignment collection
+func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleAssignment collection
+func (r *GovernanceResourceRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignment) (resObj *GovernanceRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleDefinitions returns request builder for GovernanceRoleDefinition collection
+func (b *GovernanceResourceRequestBuilder) RoleDefinitions() *GovernanceResourceRoleDefinitionsCollectionRequestBuilder {
+ bb := &GovernanceResourceRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinitions"
+ return bb
+}
+
+// GovernanceResourceRoleDefinitionsCollectionRequestBuilder is request builder for GovernanceRoleDefinition collection
+type GovernanceResourceRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleDefinition collection
+func (b *GovernanceResourceRoleDefinitionsCollectionRequestBuilder) Request() *GovernanceResourceRoleDefinitionsCollectionRequest {
+ return &GovernanceResourceRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleDefinition item
+func (b *GovernanceResourceRoleDefinitionsCollectionRequestBuilder) ID(id string) *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GovernanceResourceRoleDefinitionsCollectionRequest is request for GovernanceRoleDefinition collection
+type GovernanceResourceRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleDefinition collection
+func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleDefinition collection, max N pages
+func (r *GovernanceResourceRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleDefinition collection
+func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleDefinition collection
+func (r *GovernanceResourceRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleDefinition) (resObj *GovernanceRoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleSettings returns request builder for GovernanceRoleSetting collection
+func (b *GovernanceResourceRequestBuilder) RoleSettings() *GovernanceResourceRoleSettingsCollectionRequestBuilder {
+ bb := &GovernanceResourceRoleSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleSettings"
+ return bb
+}
+
+// GovernanceResourceRoleSettingsCollectionRequestBuilder is request builder for GovernanceRoleSetting collection
+type GovernanceResourceRoleSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleSetting collection
+func (b *GovernanceResourceRoleSettingsCollectionRequestBuilder) Request() *GovernanceResourceRoleSettingsCollectionRequest {
+ return &GovernanceResourceRoleSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleSetting item
+func (b *GovernanceResourceRoleSettingsCollectionRequestBuilder) ID(id string) *GovernanceRoleSettingRequestBuilder {
+ bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GovernanceResourceRoleSettingsCollectionRequest is request for GovernanceRoleSetting collection
+type GovernanceResourceRoleSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleSetting collection
+func (r *GovernanceResourceRoleSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleSetting collection, max N pages
+func (r *GovernanceResourceRoleSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleSetting collection
+func (r *GovernanceResourceRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleSetting collection
+func (r *GovernanceResourceRoleSettingsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleSetting) (resObj *GovernanceRoleSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LinkedEligibleRoleAssignment is navigation property
+func (b *GovernanceRoleAssignmentRequestBuilder) LinkedEligibleRoleAssignment() *GovernanceRoleAssignmentRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/linkedEligibleRoleAssignment"
+ return bb
+}
+
+// Resource is navigation property
+func (b *GovernanceRoleAssignmentRequestBuilder) Resource() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
+
+// RoleDefinition is navigation property
+func (b *GovernanceRoleAssignmentRequestBuilder) RoleDefinition() *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
+
+// Subject is navigation property
+func (b *GovernanceRoleAssignmentRequestBuilder) Subject() *GovernanceSubjectRequestBuilder {
+ bb := &GovernanceSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subject"
+ return bb
+}
+
+// Resource is navigation property
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Resource() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
+
+// RoleDefinition is navigation property
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) RoleDefinition() *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
+
+// Subject is navigation property
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Subject() *GovernanceSubjectRequestBuilder {
+ bb := &GovernanceSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subject"
+ return bb
+}
+
+// Resource is navigation property
+func (b *GovernanceRoleDefinitionRequestBuilder) Resource() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
+
+// RoleSetting is navigation property
+func (b *GovernanceRoleDefinitionRequestBuilder) RoleSetting() *GovernanceRoleSettingRequestBuilder {
+ bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleSetting"
+ return bb
+}
+
+// Resource is navigation property
+func (b *GovernanceRoleSettingRequestBuilder) Resource() *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
+
+// RoleDefinition is navigation property
+func (b *GovernanceRoleSettingRequestBuilder) RoleDefinition() *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go
new file mode 100644
index 00000000..67bc79d1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionGroup.go
@@ -0,0 +1,2950 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupCollectionEvaluateDynamicMembershipRequestParameter undocumented
+type GroupCollectionEvaluateDynamicMembershipRequestParameter struct {
+ // MemberID undocumented
+ MemberID *string `json:"memberId,omitempty"`
+ // MembershipRule undocumented
+ MembershipRule *string `json:"membershipRule,omitempty"`
+}
+
+// GroupLifecyclePolicyCollectionRenewGroupRequestParameter undocumented
+type GroupLifecyclePolicyCollectionRenewGroupRequestParameter struct {
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+// GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter undocumented
+type GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter struct {
+ // GroupPolicyObjectFile undocumented
+ GroupPolicyObjectFile *GroupPolicyObjectFile `json:"groupPolicyObjectFile,omitempty"`
+}
+
+// GroupValidatePropertiesRequestParameter undocumented
+type GroupValidatePropertiesRequestParameter struct {
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // OnBehalfOfUserID undocumented
+ OnBehalfOfUserID *UUID `json:"onBehalfOfUserId,omitempty"`
+}
+
+// GroupCheckGrantedPermissionsForAppRequestParameter undocumented
+type GroupCheckGrantedPermissionsForAppRequestParameter struct {
+}
+
+// GroupAssignLicenseRequestParameter undocumented
+type GroupAssignLicenseRequestParameter struct {
+ // AddLicenses undocumented
+ AddLicenses []AssignedLicense `json:"addLicenses,omitempty"`
+ // RemoveLicenses undocumented
+ RemoveLicenses []UUID `json:"removeLicenses,omitempty"`
+}
+
+// GroupSubscribeByMailRequestParameter undocumented
+type GroupSubscribeByMailRequestParameter struct {
+}
+
+// GroupUnsubscribeByMailRequestParameter undocumented
+type GroupUnsubscribeByMailRequestParameter struct {
+}
+
+// GroupAddFavoriteRequestParameter undocumented
+type GroupAddFavoriteRequestParameter struct {
+}
+
+// GroupRemoveFavoriteRequestParameter undocumented
+type GroupRemoveFavoriteRequestParameter struct {
+}
+
+// GroupResetUnseenCountRequestParameter undocumented
+type GroupResetUnseenCountRequestParameter struct {
+}
+
+// GroupRenewRequestParameter undocumented
+type GroupRenewRequestParameter struct {
+}
+
+// GroupEvaluateDynamicMembershipRequestParameter undocumented
+type GroupEvaluateDynamicMembershipRequestParameter struct {
+ // MemberID undocumented
+ MemberID *string `json:"memberId,omitempty"`
+}
+
+// GroupLifecyclePolicyAddGroupRequestParameter undocumented
+type GroupLifecyclePolicyAddGroupRequestParameter struct {
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+// GroupLifecyclePolicyRemoveGroupRequestParameter undocumented
+type GroupLifecyclePolicyRemoveGroupRequestParameter struct {
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+// GroupPolicyConfigurationAssignRequestParameter undocumented
+type GroupPolicyConfigurationAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []GroupPolicyConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+// GroupPolicyConfigurationUpdateDefinitionValuesRequestParameter undocumented
+type GroupPolicyConfigurationUpdateDefinitionValuesRequestParameter struct {
+ // Added undocumented
+ Added []GroupPolicyDefinitionValue `json:"added,omitempty"`
+ // Updated undocumented
+ Updated []GroupPolicyDefinitionValue `json:"updated,omitempty"`
+ // DeletedIDs undocumented
+ DeletedIDs []string `json:"deletedIds,omitempty"`
+}
+
+// AcceptedSenders returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) AcceptedSenders() *GroupAcceptedSendersCollectionRequestBuilder {
+ bb := &GroupAcceptedSendersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/acceptedSenders"
+ return bb
+}
+
+// GroupAcceptedSendersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupAcceptedSendersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupAcceptedSendersCollectionRequestBuilder) Request() *GroupAcceptedSendersCollectionRequest {
+ return &GroupAcceptedSendersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupAcceptedSendersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupAcceptedSendersCollectionRequest is request for DirectoryObject collection
+type GroupAcceptedSendersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupAcceptedSendersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *GroupAcceptedSendersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupAcceptedSendersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupAcceptedSendersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AppRoleAssignments returns request builder for AppRoleAssignment collection
+func (b *GroupRequestBuilder) AppRoleAssignments() *GroupAppRoleAssignmentsCollectionRequestBuilder {
+ bb := &GroupAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignments"
+ return bb
+}
+
+// GroupAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type GroupAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *GroupAppRoleAssignmentsCollectionRequestBuilder) Request() *GroupAppRoleAssignmentsCollectionRequest {
+ return &GroupAppRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *GroupAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection
+type GroupAppRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *GroupAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppRoleAssignment collection, max N pages
+func (r *GroupAppRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *GroupAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *GroupAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Calendar is navigation property
+func (b *GroupRequestBuilder) Calendar() *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendar"
+ return bb
+}
+
+// CalendarView returns request builder for Event collection
+func (b *GroupRequestBuilder) CalendarView() *GroupCalendarViewCollectionRequestBuilder {
+ bb := &GroupCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarView"
+ return bb
+}
+
+// GroupCalendarViewCollectionRequestBuilder is request builder for Event collection
+type GroupCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *GroupCalendarViewCollectionRequestBuilder) Request() *GroupCalendarViewCollectionRequest {
+ return &GroupCalendarViewCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *GroupCalendarViewCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupCalendarViewCollectionRequest is request for Event collection
+type GroupCalendarViewCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *GroupCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Event collection, max N pages
+func (r *GroupCalendarViewCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Event collection
+func (r *GroupCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Event collection
+func (r *GroupCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Conversations returns request builder for Conversation collection
+func (b *GroupRequestBuilder) Conversations() *GroupConversationsCollectionRequestBuilder {
+ bb := &GroupConversationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/conversations"
+ return bb
+}
+
+// GroupConversationsCollectionRequestBuilder is request builder for Conversation collection
+type GroupConversationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Conversation collection
+func (b *GroupConversationsCollectionRequestBuilder) Request() *GroupConversationsCollectionRequest {
+ return &GroupConversationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Conversation item
+func (b *GroupConversationsCollectionRequestBuilder) ID(id string) *ConversationRequestBuilder {
+ bb := &ConversationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupConversationsCollectionRequest is request for Conversation collection
+type GroupConversationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Conversation collection
+func (r *GroupConversationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Conversation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Conversation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Conversation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Conversation collection, max N pages
+func (r *GroupConversationsCollectionRequest) GetN(ctx context.Context, n int) ([]Conversation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Conversation collection
+func (r *GroupConversationsCollectionRequest) Get(ctx context.Context) ([]Conversation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Conversation collection
+func (r *GroupConversationsCollectionRequest) Add(ctx context.Context, reqObj *Conversation) (resObj *Conversation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CreatedOnBehalfOf is navigation property
+func (b *GroupRequestBuilder) CreatedOnBehalfOf() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdOnBehalfOf"
+ return bb
+}
+
+// Drive is navigation property
+func (b *GroupRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Drives returns request builder for Drive collection
+func (b *GroupRequestBuilder) Drives() *GroupDrivesCollectionRequestBuilder {
+ bb := &GroupDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drives"
+ return bb
+}
+
+// GroupDrivesCollectionRequestBuilder is request builder for Drive collection
+type GroupDrivesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Drive collection
+func (b *GroupDrivesCollectionRequestBuilder) Request() *GroupDrivesCollectionRequest {
+ return &GroupDrivesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Drive item
+func (b *GroupDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupDrivesCollectionRequest is request for Drive collection
+type GroupDrivesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Drive collection
+func (r *GroupDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Drive, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Drive
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Drive
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Drive collection, max N pages
+func (r *GroupDrivesCollectionRequest) GetN(ctx context.Context, n int) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Drive collection
+func (r *GroupDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Drive collection
+func (r *GroupDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Endpoints returns request builder for Endpoint collection
+func (b *GroupRequestBuilder) Endpoints() *GroupEndpointsCollectionRequestBuilder {
+ bb := &GroupEndpointsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/endpoints"
+ return bb
+}
+
+// GroupEndpointsCollectionRequestBuilder is request builder for Endpoint collection
+type GroupEndpointsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Endpoint collection
+func (b *GroupEndpointsCollectionRequestBuilder) Request() *GroupEndpointsCollectionRequest {
+ return &GroupEndpointsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Endpoint item
+func (b *GroupEndpointsCollectionRequestBuilder) ID(id string) *EndpointRequestBuilder {
+ bb := &EndpointRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupEndpointsCollectionRequest is request for Endpoint collection
+type GroupEndpointsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Endpoint collection
+func (r *GroupEndpointsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Endpoint, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Endpoint
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Endpoint
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Endpoint collection, max N pages
+func (r *GroupEndpointsCollectionRequest) GetN(ctx context.Context, n int) ([]Endpoint, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Endpoint collection
+func (r *GroupEndpointsCollectionRequest) Get(ctx context.Context) ([]Endpoint, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Endpoint collection
+func (r *GroupEndpointsCollectionRequest) Add(ctx context.Context, reqObj *Endpoint) (resObj *Endpoint, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Events returns request builder for Event collection
+func (b *GroupRequestBuilder) Events() *GroupEventsCollectionRequestBuilder {
+ bb := &GroupEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/events"
+ return bb
+}
+
+// GroupEventsCollectionRequestBuilder is request builder for Event collection
+type GroupEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *GroupEventsCollectionRequestBuilder) Request() *GroupEventsCollectionRequest {
+ return &GroupEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *GroupEventsCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupEventsCollectionRequest is request for Event collection
+type GroupEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *GroupEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Event collection, max N pages
+func (r *GroupEventsCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Event collection
+func (r *GroupEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Event collection
+func (r *GroupEventsCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *GroupRequestBuilder) Extensions() *GroupExtensionsCollectionRequestBuilder {
+ bb := &GroupExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// GroupExtensionsCollectionRequestBuilder is request builder for Extension collection
+type GroupExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *GroupExtensionsCollectionRequestBuilder) Request() *GroupExtensionsCollectionRequest {
+ return &GroupExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *GroupExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupExtensionsCollectionRequest is request for Extension collection
+type GroupExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *GroupExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Extension collection, max N pages
+func (r *GroupExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Extension collection
+func (r *GroupExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Extension collection
+func (r *GroupExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupLifecyclePolicies returns request builder for GroupLifecyclePolicy collection
+func (b *GroupRequestBuilder) GroupLifecyclePolicies() *GroupGroupLifecyclePoliciesCollectionRequestBuilder {
+ bb := &GroupGroupLifecyclePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupLifecyclePolicies"
+ return bb
+}
+
+// GroupGroupLifecyclePoliciesCollectionRequestBuilder is request builder for GroupLifecyclePolicy collection
+type GroupGroupLifecyclePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupLifecyclePolicy collection
+func (b *GroupGroupLifecyclePoliciesCollectionRequestBuilder) Request() *GroupGroupLifecyclePoliciesCollectionRequest {
+ return &GroupGroupLifecyclePoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupLifecyclePolicy item
+func (b *GroupGroupLifecyclePoliciesCollectionRequestBuilder) ID(id string) *GroupLifecyclePolicyRequestBuilder {
+ bb := &GroupLifecyclePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupGroupLifecyclePoliciesCollectionRequest is request for GroupLifecyclePolicy collection
+type GroupGroupLifecyclePoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupLifecyclePolicy collection
+func (r *GroupGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupLifecyclePolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupLifecyclePolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupLifecyclePolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupLifecyclePolicy collection, max N pages
+func (r *GroupGroupLifecyclePoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupLifecyclePolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupLifecyclePolicy collection
+func (r *GroupGroupLifecyclePoliciesCollectionRequest) Get(ctx context.Context) ([]GroupLifecyclePolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupLifecyclePolicy collection
+func (r *GroupGroupLifecyclePoliciesCollectionRequest) Add(ctx context.Context, reqObj *GroupLifecyclePolicy) (resObj *GroupLifecyclePolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) MemberOf() *GroupMemberOfCollectionRequestBuilder {
+ bb := &GroupMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// GroupMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupMemberOfCollectionRequestBuilder) Request() *GroupMemberOfCollectionRequest {
+ return &GroupMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupMemberOfCollectionRequest is request for DirectoryObject collection
+type GroupMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *GroupMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Members returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) Members() *GroupMembersCollectionRequestBuilder {
+ bb := &GroupMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/members"
+ return bb
+}
+
+// GroupMembersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupMembersCollectionRequestBuilder) Request() *GroupMembersCollectionRequest {
+ return &GroupMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupMembersCollectionRequest is request for DirectoryObject collection
+type GroupMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *GroupMembersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MembersWithLicenseErrors returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) MembersWithLicenseErrors() *GroupMembersWithLicenseErrorsCollectionRequestBuilder {
+ bb := &GroupMembersWithLicenseErrorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/membersWithLicenseErrors"
+ return bb
+}
+
+// GroupMembersWithLicenseErrorsCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupMembersWithLicenseErrorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) Request() *GroupMembersWithLicenseErrorsCollectionRequest {
+ return &GroupMembersWithLicenseErrorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupMembersWithLicenseErrorsCollectionRequest is request for DirectoryObject collection
+type GroupMembersWithLicenseErrorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupMembersWithLicenseErrorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *GroupMembersWithLicenseErrorsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupMembersWithLicenseErrorsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupMembersWithLicenseErrorsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Onenote is navigation property
+func (b *GroupRequestBuilder) Onenote() *OnenoteRequestBuilder {
+ bb := &OnenoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onenote"
+ return bb
+}
+
+// Owners returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) Owners() *GroupOwnersCollectionRequestBuilder {
+ bb := &GroupOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/owners"
+ return bb
+}
+
+// GroupOwnersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupOwnersCollectionRequestBuilder) Request() *GroupOwnersCollectionRequest {
+ return &GroupOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupOwnersCollectionRequest is request for DirectoryObject collection
+type GroupOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *GroupOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PermissionGrants returns request builder for ResourceSpecificPermissionGrant collection
+func (b *GroupRequestBuilder) PermissionGrants() *GroupPermissionGrantsCollectionRequestBuilder {
+ bb := &GroupPermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/permissionGrants"
+ return bb
+}
+
+// GroupPermissionGrantsCollectionRequestBuilder is request builder for ResourceSpecificPermissionGrant collection
+type GroupPermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ResourceSpecificPermissionGrant collection
+func (b *GroupPermissionGrantsCollectionRequestBuilder) Request() *GroupPermissionGrantsCollectionRequest {
+ return &GroupPermissionGrantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ResourceSpecificPermissionGrant item
+func (b *GroupPermissionGrantsCollectionRequestBuilder) ID(id string) *ResourceSpecificPermissionGrantRequestBuilder {
+ bb := &ResourceSpecificPermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPermissionGrantsCollectionRequest is request for ResourceSpecificPermissionGrant collection
+type GroupPermissionGrantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ResourceSpecificPermissionGrant collection
+func (r *GroupPermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResourceSpecificPermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ResourceSpecificPermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ResourceSpecificPermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ResourceSpecificPermissionGrant collection, max N pages
+func (r *GroupPermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]ResourceSpecificPermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ResourceSpecificPermissionGrant collection
+func (r *GroupPermissionGrantsCollectionRequest) Get(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ResourceSpecificPermissionGrant collection
+func (r *GroupPermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *ResourceSpecificPermissionGrant) (resObj *ResourceSpecificPermissionGrant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Photo is navigation property
+func (b *GroupRequestBuilder) Photo() *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photo"
+ return bb
+}
+
+// Photos returns request builder for ProfilePhoto collection
+func (b *GroupRequestBuilder) Photos() *GroupPhotosCollectionRequestBuilder {
+ bb := &GroupPhotosCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photos"
+ return bb
+}
+
+// GroupPhotosCollectionRequestBuilder is request builder for ProfilePhoto collection
+type GroupPhotosCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProfilePhoto collection
+func (b *GroupPhotosCollectionRequestBuilder) Request() *GroupPhotosCollectionRequest {
+ return &GroupPhotosCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProfilePhoto item
+func (b *GroupPhotosCollectionRequestBuilder) ID(id string) *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPhotosCollectionRequest is request for ProfilePhoto collection
+type GroupPhotosCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProfilePhoto collection
+func (r *GroupPhotosCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProfilePhoto, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProfilePhoto
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProfilePhoto
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ProfilePhoto collection, max N pages
+func (r *GroupPhotosCollectionRequest) GetN(ctx context.Context, n int) ([]ProfilePhoto, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ProfilePhoto collection
+func (r *GroupPhotosCollectionRequest) Get(ctx context.Context) ([]ProfilePhoto, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ProfilePhoto collection
+func (r *GroupPhotosCollectionRequest) Add(ctx context.Context, reqObj *ProfilePhoto) (resObj *ProfilePhoto, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Planner is navigation property
+func (b *GroupRequestBuilder) Planner() *PlannerGroupRequestBuilder {
+ bb := &PlannerGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/planner"
+ return bb
+}
+
+// RejectedSenders returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) RejectedSenders() *GroupRejectedSendersCollectionRequestBuilder {
+ bb := &GroupRejectedSendersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rejectedSenders"
+ return bb
+}
+
+// GroupRejectedSendersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupRejectedSendersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupRejectedSendersCollectionRequestBuilder) Request() *GroupRejectedSendersCollectionRequest {
+ return &GroupRejectedSendersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupRejectedSendersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupRejectedSendersCollectionRequest is request for DirectoryObject collection
+type GroupRejectedSendersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupRejectedSendersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *GroupRejectedSendersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupRejectedSendersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupRejectedSendersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings returns request builder for DirectorySetting collection
+func (b *GroupRequestBuilder) Settings() *GroupSettingsCollectionRequestBuilder {
+ bb := &GroupSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// GroupSettingsCollectionRequestBuilder is request builder for DirectorySetting collection
+type GroupSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectorySetting collection
+func (b *GroupSettingsCollectionRequestBuilder) Request() *GroupSettingsCollectionRequest {
+ return &GroupSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectorySetting item
+func (b *GroupSettingsCollectionRequestBuilder) ID(id string) *DirectorySettingRequestBuilder {
+ bb := &DirectorySettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupSettingsCollectionRequest is request for DirectorySetting collection
+type GroupSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectorySetting collection
+func (r *GroupSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectorySetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectorySetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectorySetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectorySetting collection, max N pages
+func (r *GroupSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectorySetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectorySetting collection
+func (r *GroupSettingsCollectionRequest) Get(ctx context.Context) ([]DirectorySetting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectorySetting collection
+func (r *GroupSettingsCollectionRequest) Add(ctx context.Context, reqObj *DirectorySetting) (resObj *DirectorySetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sites returns request builder for Site collection
+func (b *GroupRequestBuilder) Sites() *GroupSitesCollectionRequestBuilder {
+ bb := &GroupSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sites"
+ return bb
+}
+
+// GroupSitesCollectionRequestBuilder is request builder for Site collection
+type GroupSitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Site collection
+func (b *GroupSitesCollectionRequestBuilder) Request() *GroupSitesCollectionRequest {
+ return &GroupSitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Site item
+func (b *GroupSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupSitesCollectionRequest is request for Site collection
+type GroupSitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Site collection
+func (r *GroupSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Site collection, max N pages
+func (r *GroupSitesCollectionRequest) GetN(ctx context.Context, n int) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Site collection
+func (r *GroupSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Site collection
+func (r *GroupSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Team is navigation property
+func (b *GroupRequestBuilder) Team() *TeamRequestBuilder {
+ bb := &TeamRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/team"
+ return bb
+}
+
+// Threads returns request builder for ConversationThread collection
+func (b *GroupRequestBuilder) Threads() *GroupThreadsCollectionRequestBuilder {
+ bb := &GroupThreadsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/threads"
+ return bb
+}
+
+// GroupThreadsCollectionRequestBuilder is request builder for ConversationThread collection
+type GroupThreadsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ConversationThread collection
+func (b *GroupThreadsCollectionRequestBuilder) Request() *GroupThreadsCollectionRequest {
+ return &GroupThreadsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ConversationThread item
+func (b *GroupThreadsCollectionRequestBuilder) ID(id string) *ConversationThreadRequestBuilder {
+ bb := &ConversationThreadRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupThreadsCollectionRequest is request for ConversationThread collection
+type GroupThreadsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ConversationThread collection
+func (r *GroupThreadsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConversationThread, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConversationThread
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConversationThread
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ConversationThread collection, max N pages
+func (r *GroupThreadsCollectionRequest) GetN(ctx context.Context, n int) ([]ConversationThread, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ConversationThread collection
+func (r *GroupThreadsCollectionRequest) Get(ctx context.Context) ([]ConversationThread, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ConversationThread collection
+func (r *GroupThreadsCollectionRequest) Add(ctx context.Context, reqObj *ConversationThread) (resObj *ConversationThread, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) TransitiveMemberOf() *GroupTransitiveMemberOfCollectionRequestBuilder {
+ bb := &GroupTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// GroupTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) Request() *GroupTransitiveMemberOfCollectionRequest {
+ return &GroupTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type GroupTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *GroupTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TransitiveMembers returns request builder for DirectoryObject collection
+func (b *GroupRequestBuilder) TransitiveMembers() *GroupTransitiveMembersCollectionRequestBuilder {
+ bb := &GroupTransitiveMembersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMembers"
+ return bb
+}
+
+// GroupTransitiveMembersCollectionRequestBuilder is request builder for DirectoryObject collection
+type GroupTransitiveMembersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GroupTransitiveMembersCollectionRequestBuilder) Request() *GroupTransitiveMembersCollectionRequest {
+ return &GroupTransitiveMembersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GroupTransitiveMembersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupTransitiveMembersCollectionRequest is request for DirectoryObject collection
+type GroupTransitiveMembersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GroupTransitiveMembersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *GroupTransitiveMembersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GroupTransitiveMembersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GroupTransitiveMembersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for GroupPolicyConfigurationAssignment collection
+func (b *GroupPolicyConfigurationRequestBuilder) Assignments() *GroupPolicyConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &GroupPolicyConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// GroupPolicyConfigurationAssignmentsCollectionRequestBuilder is request builder for GroupPolicyConfigurationAssignment collection
+type GroupPolicyConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyConfigurationAssignment collection
+func (b *GroupPolicyConfigurationAssignmentsCollectionRequestBuilder) Request() *GroupPolicyConfigurationAssignmentsCollectionRequest {
+ return &GroupPolicyConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyConfigurationAssignment item
+func (b *GroupPolicyConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *GroupPolicyConfigurationAssignmentRequestBuilder {
+ bb := &GroupPolicyConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyConfigurationAssignmentsCollectionRequest is request for GroupPolicyConfigurationAssignment collection
+type GroupPolicyConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyConfigurationAssignment collection
+func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicyConfigurationAssignment collection, max N pages
+func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicyConfigurationAssignment collection
+func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyConfigurationAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicyConfigurationAssignment collection
+func (r *GroupPolicyConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyConfigurationAssignment) (resObj *GroupPolicyConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DefinitionValues returns request builder for GroupPolicyDefinitionValue collection
+func (b *GroupPolicyConfigurationRequestBuilder) DefinitionValues() *GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder {
+ bb := &GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definitionValues"
+ return bb
+}
+
+// GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder is request builder for GroupPolicyDefinitionValue collection
+type GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyDefinitionValue collection
+func (b *GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder) Request() *GroupPolicyConfigurationDefinitionValuesCollectionRequest {
+ return &GroupPolicyConfigurationDefinitionValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyDefinitionValue item
+func (b *GroupPolicyConfigurationDefinitionValuesCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionValueRequestBuilder {
+ bb := &GroupPolicyDefinitionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyConfigurationDefinitionValuesCollectionRequest is request for GroupPolicyDefinitionValue collection
+type GroupPolicyConfigurationDefinitionValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyDefinitionValue collection
+func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyDefinitionValue, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyDefinitionValue
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyDefinitionValue
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicyDefinitionValue collection, max N pages
+func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyDefinitionValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicyDefinitionValue collection
+func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinitionValue, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicyDefinitionValue collection
+func (r *GroupPolicyConfigurationDefinitionValuesCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinitionValue) (resObj *GroupPolicyDefinitionValue, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DefinitionFile is navigation property
+func (b *GroupPolicyDefinitionRequestBuilder) DefinitionFile() *GroupPolicyDefinitionFileRequestBuilder {
+ bb := &GroupPolicyDefinitionFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definitionFile"
+ return bb
+}
+
+// Presentations returns request builder for GroupPolicyPresentation collection
+func (b *GroupPolicyDefinitionRequestBuilder) Presentations() *GroupPolicyDefinitionPresentationsCollectionRequestBuilder {
+ bb := &GroupPolicyDefinitionPresentationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/presentations"
+ return bb
+}
+
+// GroupPolicyDefinitionPresentationsCollectionRequestBuilder is request builder for GroupPolicyPresentation collection
+type GroupPolicyDefinitionPresentationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyPresentation collection
+func (b *GroupPolicyDefinitionPresentationsCollectionRequestBuilder) Request() *GroupPolicyDefinitionPresentationsCollectionRequest {
+ return &GroupPolicyDefinitionPresentationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyPresentation item
+func (b *GroupPolicyDefinitionPresentationsCollectionRequestBuilder) ID(id string) *GroupPolicyPresentationRequestBuilder {
+ bb := &GroupPolicyPresentationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyDefinitionPresentationsCollectionRequest is request for GroupPolicyPresentation collection
+type GroupPolicyDefinitionPresentationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyPresentation collection
+func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyPresentation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyPresentation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyPresentation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicyPresentation collection, max N pages
+func (r *GroupPolicyDefinitionPresentationsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyPresentation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicyPresentation collection
+func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyPresentation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicyPresentation collection
+func (r *GroupPolicyDefinitionPresentationsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyPresentation) (resObj *GroupPolicyPresentation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Definitions returns request builder for GroupPolicyDefinition collection
+func (b *GroupPolicyDefinitionFileRequestBuilder) Definitions() *GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder {
+ bb := &GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definitions"
+ return bb
+}
+
+// GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder is request builder for GroupPolicyDefinition collection
+type GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyDefinition collection
+func (b *GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder) Request() *GroupPolicyDefinitionFileDefinitionsCollectionRequest {
+ return &GroupPolicyDefinitionFileDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyDefinition item
+func (b *GroupPolicyDefinitionFileDefinitionsCollectionRequestBuilder) ID(id string) *GroupPolicyDefinitionRequestBuilder {
+ bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyDefinitionFileDefinitionsCollectionRequest is request for GroupPolicyDefinition collection
+type GroupPolicyDefinitionFileDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyDefinition collection
+func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicyDefinition collection, max N pages
+func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicyDefinition collection
+func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Get(ctx context.Context) ([]GroupPolicyDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicyDefinition collection
+func (r *GroupPolicyDefinitionFileDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyDefinition) (resObj *GroupPolicyDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Definition is navigation property
+func (b *GroupPolicyDefinitionValueRequestBuilder) Definition() *GroupPolicyDefinitionRequestBuilder {
+ bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definition"
+ return bb
+}
+
+// PresentationValues returns request builder for GroupPolicyPresentationValue collection
+func (b *GroupPolicyDefinitionValueRequestBuilder) PresentationValues() *GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder {
+ bb := &GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/presentationValues"
+ return bb
+}
+
+// GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder is request builder for GroupPolicyPresentationValue collection
+type GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicyPresentationValue collection
+func (b *GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder) Request() *GroupPolicyDefinitionValuePresentationValuesCollectionRequest {
+ return &GroupPolicyDefinitionValuePresentationValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicyPresentationValue item
+func (b *GroupPolicyDefinitionValuePresentationValuesCollectionRequestBuilder) ID(id string) *GroupPolicyPresentationValueRequestBuilder {
+ bb := &GroupPolicyPresentationValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyDefinitionValuePresentationValuesCollectionRequest is request for GroupPolicyPresentationValue collection
+type GroupPolicyDefinitionValuePresentationValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicyPresentationValue collection
+func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyPresentationValue, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyPresentationValue
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyPresentationValue
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicyPresentationValue collection, max N pages
+func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicyPresentationValue, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicyPresentationValue collection
+func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Get(ctx context.Context) ([]GroupPolicyPresentationValue, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicyPresentationValue collection
+func (r *GroupPolicyDefinitionValuePresentationValuesCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicyPresentationValue) (resObj *GroupPolicyPresentationValue, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupPolicySettingMappings returns request builder for GroupPolicySettingMapping collection
+func (b *GroupPolicyMigrationReportRequestBuilder) GroupPolicySettingMappings() *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder {
+ bb := &GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupPolicySettingMappings"
+ return bb
+}
+
+// GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder is request builder for GroupPolicySettingMapping collection
+type GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupPolicySettingMapping collection
+func (b *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder) Request() *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest {
+ return &GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupPolicySettingMapping item
+func (b *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequestBuilder) ID(id string) *GroupPolicySettingMappingRequestBuilder {
+ bb := &GroupPolicySettingMappingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest is request for GroupPolicySettingMapping collection
+type GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupPolicySettingMapping collection
+func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicySettingMapping, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicySettingMapping
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicySettingMapping
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupPolicySettingMapping collection, max N pages
+func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) GetN(ctx context.Context, n int) ([]GroupPolicySettingMapping, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupPolicySettingMapping collection
+func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Get(ctx context.Context) ([]GroupPolicySettingMapping, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupPolicySettingMapping collection
+func (r *GroupPolicyMigrationReportGroupPolicySettingMappingsCollectionRequest) Add(ctx context.Context, reqObj *GroupPolicySettingMapping) (resObj *GroupPolicySettingMapping, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Definition is navigation property
+func (b *GroupPolicyPresentationRequestBuilder) Definition() *GroupPolicyDefinitionRequestBuilder {
+ bb := &GroupPolicyDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definition"
+ return bb
+}
+
+// DefinitionValue is navigation property
+func (b *GroupPolicyPresentationValueRequestBuilder) DefinitionValue() *GroupPolicyDefinitionValueRequestBuilder {
+ bb := &GroupPolicyDefinitionValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/definitionValue"
+ return bb
+}
+
+// Presentation is navigation property
+func (b *GroupPolicyPresentationValueRequestBuilder) Presentation() *GroupPolicyPresentationRequestBuilder {
+ bb := &GroupPolicyPresentationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/presentation"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go
new file mode 100644
index 00000000..6d2df487
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIOS.go
@@ -0,0 +1,1165 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented
+type IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// IOSLobAppProvisioningConfigurationAssignRequestParameter undocumented
+type IOSLobAppProvisioningConfigurationAssignRequestParameter struct {
+ // AppProvisioningConfigurationGroupAssignments undocumented
+ AppProvisioningConfigurationGroupAssignments []MobileAppProvisioningConfigGroupAssignment `json:"appProvisioningConfigurationGroupAssignments,omitempty"`
+ // IOSLobAppProvisioningConfigAssignments undocumented
+ IOSLobAppProvisioningConfigAssignments []IOSLobAppProvisioningConfigurationAssignment `json:"iOSLobAppProvisioningConfigAssignments,omitempty"`
+}
+
+// IOSVPPAppRevokeAllLicensesRequestParameter undocumented
+type IOSVPPAppRevokeAllLicensesRequestParameter struct {
+ // NotifyManagedDevices undocumented
+ NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"`
+}
+
+// IOSVPPAppRevokeUserLicenseRequestParameter undocumented
+type IOSVPPAppRevokeUserLicenseRequestParameter struct {
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // NotifyManagedDevices undocumented
+ NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"`
+}
+
+// IOSVPPAppRevokeDeviceLicenseRequestParameter undocumented
+type IOSVPPAppRevokeDeviceLicenseRequestParameter struct {
+ // ManagedDeviceID undocumented
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // NotifyManagedDevices undocumented
+ NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"`
+}
+
+// DerivedCredentialSettings is navigation property
+func (b *IOSDerivedCredentialAuthenticationConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentialSettings"
+ return bb
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *IOSDeviceFeaturesConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// SingleSignOnExtensionPkinitCertificate is navigation property
+func (b *IOSDeviceFeaturesConfigurationRequestBuilder) SingleSignOnExtensionPkinitCertificate() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleSignOnExtensionPkinitCertificate"
+ return bb
+}
+
+// DerivedCredentialSettings is navigation property
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentialSettings"
+ return bb
+}
+
+// IdentityCertificate is navigation property
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) IdentityCertificate() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// SmimeEncryptionCertificate is navigation property
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) SmimeEncryptionCertificate() *IOSCertificateProfileRequestBuilder {
+ bb := &IOSCertificateProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/smimeEncryptionCertificate"
+ return bb
+}
+
+// SmimeSigningCertificate is navigation property
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) SmimeSigningCertificate() *IOSCertificateProfileRequestBuilder {
+ bb := &IOSCertificateProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/smimeSigningCertificate"
+ return bb
+}
+
+// DerivedCredentialSettings is navigation property
+func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentialSettings"
+ return bb
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificatesForServerValidation returns request builder for IOSTrustedRootCertificate collection
+func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) RootCertificatesForServerValidation() *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder {
+ bb := &IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificatesForServerValidation"
+ return bb
+}
+
+// IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder is request builder for IOSTrustedRootCertificate collection
+type IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSTrustedRootCertificate collection
+func (b *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) Request() *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest {
+ return &IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSTrustedRootCertificate item
+func (b *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) ID(id string) *IOSTrustedRootCertificateRequestBuilder {
+ bb := &IOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest is request for IOSTrustedRootCertificate collection
+type IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSTrustedRootCertificate collection
+func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSTrustedRootCertificate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSTrustedRootCertificate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSTrustedRootCertificate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IOSTrustedRootCertificate collection, max N pages
+func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) GetN(ctx context.Context, n int) ([]IOSTrustedRootCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IOSTrustedRootCertificate collection
+func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Get(ctx context.Context) ([]IOSTrustedRootCertificate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IOSTrustedRootCertificate collection
+func (r *IOSEnterpriseWiFiConfigurationRootCertificatesForServerValidationCollectionRequest) Add(ctx context.Context, reqObj *IOSTrustedRootCertificate) (resObj *IOSTrustedRootCertificate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *IOSImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *IOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for IOSLobAppProvisioningConfigurationAssignment collection
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) Assignments() *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder is request builder for IOSLobAppProvisioningConfigurationAssignment collection
+type IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSLobAppProvisioningConfigurationAssignment collection
+func (b *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest {
+ return &IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSLobAppProvisioningConfigurationAssignment item
+func (b *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *IOSLobAppProvisioningConfigurationAssignmentRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest is request for IOSLobAppProvisioningConfigurationAssignment collection
+type IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSLobAppProvisioningConfigurationAssignment collection
+func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSLobAppProvisioningConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSLobAppProvisioningConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSLobAppProvisioningConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IOSLobAppProvisioningConfigurationAssignment collection, max N pages
+func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]IOSLobAppProvisioningConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IOSLobAppProvisioningConfigurationAssignment collection
+func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]IOSLobAppProvisioningConfigurationAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IOSLobAppProvisioningConfigurationAssignment collection
+func (r *IOSLobAppProvisioningConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *IOSLobAppProvisioningConfigurationAssignment) (resObj *IOSLobAppProvisioningConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatuses returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) DeviceStatuses() *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+type IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (b *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest {
+ return &IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus item
+func (b *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+type IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection, max N pages
+func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *IOSLobAppProvisioningConfigurationDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceStatus) (resObj *ManagedDeviceMobileAppConfigurationDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupAssignments returns request builder for MobileAppProvisioningConfigGroupAssignment collection
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) GroupAssignments() *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupAssignments"
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder is request builder for MobileAppProvisioningConfigGroupAssignment collection
+type IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppProvisioningConfigGroupAssignment collection
+func (b *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest {
+ return &IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppProvisioningConfigGroupAssignment item
+func (b *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequestBuilder) ID(id string) *MobileAppProvisioningConfigGroupAssignmentRequestBuilder {
+ bb := &MobileAppProvisioningConfigGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest is request for MobileAppProvisioningConfigGroupAssignment collection
+type IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppProvisioningConfigGroupAssignment collection
+func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppProvisioningConfigGroupAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppProvisioningConfigGroupAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppProvisioningConfigGroupAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppProvisioningConfigGroupAssignment collection, max N pages
+func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppProvisioningConfigGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppProvisioningConfigGroupAssignment collection
+func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]MobileAppProvisioningConfigGroupAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppProvisioningConfigGroupAssignment collection
+func (r *IOSLobAppProvisioningConfigurationGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppProvisioningConfigGroupAssignment) (resObj *MobileAppProvisioningConfigGroupAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatuses returns request builder for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) UserStatuses() *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserStatus collection
+type IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (b *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder) Request() *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest {
+ return &IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationUserStatus item
+func (b *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationUserStatus collection
+type IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationUserStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationUserStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection, max N pages
+func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *IOSLobAppProvisioningConfigurationUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserStatus) (resObj *ManagedDeviceMobileAppConfigurationUserStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Apps returns request builder for ManagedMobileApp collection
+func (b *IOSManagedAppProtectionRequestBuilder) Apps() *IOSManagedAppProtectionAppsCollectionRequestBuilder {
+ bb := &IOSManagedAppProtectionAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// IOSManagedAppProtectionAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection
+type IOSManagedAppProtectionAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedMobileApp collection
+func (b *IOSManagedAppProtectionAppsCollectionRequestBuilder) Request() *IOSManagedAppProtectionAppsCollectionRequest {
+ return &IOSManagedAppProtectionAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedMobileApp item
+func (b *IOSManagedAppProtectionAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder {
+ bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSManagedAppProtectionAppsCollectionRequest is request for ManagedMobileApp collection
+type IOSManagedAppProtectionAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedMobileApp collection
+func (r *IOSManagedAppProtectionAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedMobileApp collection, max N pages
+func (r *IOSManagedAppProtectionAppsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *IOSManagedAppProtectionAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedMobileApp collection
+func (r *IOSManagedAppProtectionAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploymentSummary is navigation property
+func (b *IOSManagedAppProtectionRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder {
+ bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentSummary"
+ return bb
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *IOSPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *IOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *IOSScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *IOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RootCertificate is navigation property
+func (b *IOSScepCertificateProfileRequestBuilder) RootCertificate() *IOSTrustedRootCertificateRequestBuilder {
+ bb := &IOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
+
+// DerivedCredentialSettings is navigation property
+func (b *IOSVPNConfigurationRequestBuilder) DerivedCredentialSettings() *DeviceManagementDerivedCredentialSettingsRequestBuilder {
+ bb := &DeviceManagementDerivedCredentialSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/derivedCredentialSettings"
+ return bb
+}
+
+// IdentityCertificate is navigation property
+func (b *IOSVPNConfigurationRequestBuilder) IdentityCertificate() *IOSCertificateProfileBaseRequestBuilder {
+ bb := &IOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// AssignedLicenses returns request builder for IOSVPPAppAssignedLicense collection
+func (b *IOSVPPAppRequestBuilder) AssignedLicenses() *IOSVPPAppAssignedLicensesCollectionRequestBuilder {
+ bb := &IOSVPPAppAssignedLicensesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignedLicenses"
+ return bb
+}
+
+// IOSVPPAppAssignedLicensesCollectionRequestBuilder is request builder for IOSVPPAppAssignedLicense collection
+type IOSVPPAppAssignedLicensesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IOSVPPAppAssignedLicense collection
+func (b *IOSVPPAppAssignedLicensesCollectionRequestBuilder) Request() *IOSVPPAppAssignedLicensesCollectionRequest {
+ return &IOSVPPAppAssignedLicensesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IOSVPPAppAssignedLicense item
+func (b *IOSVPPAppAssignedLicensesCollectionRequestBuilder) ID(id string) *IOSVPPAppAssignedLicenseRequestBuilder {
+ bb := &IOSVPPAppAssignedLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IOSVPPAppAssignedLicensesCollectionRequest is request for IOSVPPAppAssignedLicense collection
+type IOSVPPAppAssignedLicensesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IOSVPPAppAssignedLicense collection
+func (r *IOSVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IOSVPPAppAssignedLicense, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IOSVPPAppAssignedLicense
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IOSVPPAppAssignedLicense
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IOSVPPAppAssignedLicense collection, max N pages
+func (r *IOSVPPAppAssignedLicensesCollectionRequest) GetN(ctx context.Context, n int) ([]IOSVPPAppAssignedLicense, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IOSVPPAppAssignedLicense collection
+func (r *IOSVPPAppAssignedLicensesCollectionRequest) Get(ctx context.Context) ([]IOSVPPAppAssignedLicense, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IOSVPPAppAssignedLicense collection
+func (r *IOSVPPAppAssignedLicensesCollectionRequest) Add(ctx context.Context, reqObj *IOSVPPAppAssignedLicense) (resObj *IOSVPPAppAssignedLicense, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionIdentity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIdentity.go
new file mode 100644
index 00000000..1ee8a177
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIdentity.go
@@ -0,0 +1,128 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserFlows returns request builder for IdentityUserFlow collection
+func (b *IdentityContainerRequestBuilder) UserFlows() *IdentityContainerUserFlowsCollectionRequestBuilder {
+ bb := &IdentityContainerUserFlowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userFlows"
+ return bb
+}
+
+// IdentityContainerUserFlowsCollectionRequestBuilder is request builder for IdentityUserFlow collection
+type IdentityContainerUserFlowsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IdentityUserFlow collection
+func (b *IdentityContainerUserFlowsCollectionRequestBuilder) Request() *IdentityContainerUserFlowsCollectionRequest {
+ return &IdentityContainerUserFlowsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IdentityUserFlow item
+func (b *IdentityContainerUserFlowsCollectionRequestBuilder) ID(id string) *IdentityUserFlowRequestBuilder {
+ bb := &IdentityUserFlowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IdentityContainerUserFlowsCollectionRequest is request for IdentityUserFlow collection
+type IdentityContainerUserFlowsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IdentityUserFlow collection
+func (r *IdentityContainerUserFlowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IdentityUserFlow, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IdentityUserFlow
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IdentityUserFlow
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IdentityUserFlow collection, max N pages
+func (r *IdentityContainerUserFlowsCollectionRequest) GetN(ctx context.Context, n int) ([]IdentityUserFlow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IdentityUserFlow collection
+func (r *IdentityContainerUserFlowsCollectionRequest) Get(ctx context.Context) ([]IdentityUserFlow, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IdentityUserFlow collection
+func (r *IdentityContainerUserFlowsCollectionRequest) Add(ctx context.Context, reqObj *IdentityUserFlow) (resObj *IdentityUserFlow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EntitlementManagement is navigation property
+func (b *IdentityGovernanceRequestBuilder) EntitlementManagement() *EntitlementManagementRequestBuilder {
+ bb := &EntitlementManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/entitlementManagement"
+ return bb
+}
+
+// ImpactedUser is navigation property
+func (b *IdentityRiskEventRequestBuilder) ImpactedUser() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/impactedUser"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionImported.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionImported.go
new file mode 100644
index 00000000..b67b8310
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionImported.go
@@ -0,0 +1,142 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter undocumented
+type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter struct {
+ // ImportedAppleDeviceIdentities undocumented
+ ImportedAppleDeviceIdentities []ImportedAppleDeviceIdentity `json:"importedAppleDeviceIdentities,omitempty"`
+ // OverwriteImportedDeviceIdentities undocumented
+ OverwriteImportedDeviceIdentities *bool `json:"overwriteImportedDeviceIdentities,omitempty"`
+}
+
+// ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestParameter undocumented
+type ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestParameter struct {
+ // ImportedDeviceIdentities undocumented
+ ImportedDeviceIdentities []ImportedDeviceIdentity `json:"importedDeviceIdentities,omitempty"`
+ // OverwriteImportedDeviceIdentities undocumented
+ OverwriteImportedDeviceIdentities *bool `json:"overwriteImportedDeviceIdentities,omitempty"`
+}
+
+// ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestParameter undocumented
+type ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestParameter struct {
+ // ImportedDeviceIdentities undocumented
+ ImportedDeviceIdentities []ImportedDeviceIdentity `json:"importedDeviceIdentities,omitempty"`
+}
+
+// ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter undocumented
+type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter struct {
+ // ImportedWindowsAutopilotDeviceIdentities undocumented
+ ImportedWindowsAutopilotDeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"importedWindowsAutopilotDeviceIdentities,omitempty"`
+}
+
+// DeviceIdentities returns request builder for ImportedWindowsAutopilotDeviceIdentity collection
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder) DeviceIdentities() *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceIdentities"
+ return bb
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentity collection
+type ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImportedWindowsAutopilotDeviceIdentity collection
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest {
+ return &ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImportedWindowsAutopilotDeviceIdentity item
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder) ID(id string) *ImportedWindowsAutopilotDeviceIdentityRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest is request for ImportedWindowsAutopilotDeviceIdentity collection
+type ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedWindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedWindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ImportedWindowsAutopilotDeviceIdentity collection, max N pages
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Get(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ImportedWindowsAutopilotDeviceIdentity collection
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequest) Add(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentity) (resObj *ImportedWindowsAutopilotDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionInference.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInference.go
new file mode 100644
index 00000000..78cf946d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInference.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Overrides returns request builder for InferenceClassificationOverride collection
+func (b *InferenceClassificationRequestBuilder) Overrides() *InferenceClassificationOverridesCollectionRequestBuilder {
+ bb := &InferenceClassificationOverridesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/overrides"
+ return bb
+}
+
+// InferenceClassificationOverridesCollectionRequestBuilder is request builder for InferenceClassificationOverride collection
+type InferenceClassificationOverridesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for InferenceClassificationOverride collection
+func (b *InferenceClassificationOverridesCollectionRequestBuilder) Request() *InferenceClassificationOverridesCollectionRequest {
+ return &InferenceClassificationOverridesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for InferenceClassificationOverride item
+func (b *InferenceClassificationOverridesCollectionRequestBuilder) ID(id string) *InferenceClassificationOverrideRequestBuilder {
+ bb := &InferenceClassificationOverrideRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InferenceClassificationOverridesCollectionRequest is request for InferenceClassificationOverride collection
+type InferenceClassificationOverridesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for InferenceClassificationOverride collection
+func (r *InferenceClassificationOverridesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InferenceClassificationOverride, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []InferenceClassificationOverride
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []InferenceClassificationOverride
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for InferenceClassificationOverride collection, max N pages
+func (r *InferenceClassificationOverridesCollectionRequest) GetN(ctx context.Context, n int) ([]InferenceClassificationOverride, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for InferenceClassificationOverride collection
+func (r *InferenceClassificationOverridesCollectionRequest) Get(ctx context.Context) ([]InferenceClassificationOverride, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for InferenceClassificationOverride collection
+func (r *InferenceClassificationOverridesCollectionRequest) Add(ctx context.Context, reqObj *InferenceClassificationOverride) (resObj *InferenceClassificationOverride, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionInformation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInformation.go
new file mode 100644
index 00000000..2a632083
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInformation.go
@@ -0,0 +1,474 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// InformationProtectionLabelCollectionExtractLabelRequestParameter undocumented
+type InformationProtectionLabelCollectionExtractLabelRequestParameter struct {
+ // ContentInfo undocumented
+ ContentInfo *ContentInfo `json:"contentInfo,omitempty"`
+}
+
+// InformationProtectionLabelCollectionEvaluateApplicationRequestParameter undocumented
+type InformationProtectionLabelCollectionEvaluateApplicationRequestParameter struct {
+ // ContentInfo undocumented
+ ContentInfo *ContentInfo `json:"contentInfo,omitempty"`
+ // LabelingOptions undocumented
+ LabelingOptions *LabelingOptions `json:"labelingOptions,omitempty"`
+}
+
+// InformationProtectionLabelCollectionEvaluateRemovalRequestParameter undocumented
+type InformationProtectionLabelCollectionEvaluateRemovalRequestParameter struct {
+ // ContentInfo undocumented
+ ContentInfo *ContentInfo `json:"contentInfo,omitempty"`
+ // DowngradeJustification undocumented
+ DowngradeJustification *DowngradeJustification `json:"downgradeJustification,omitempty"`
+}
+
+// InformationProtectionLabelCollectionEvaluateClassificationResultsRequestParameter undocumented
+type InformationProtectionLabelCollectionEvaluateClassificationResultsRequestParameter struct {
+ // ContentInfo undocumented
+ ContentInfo *ContentInfo `json:"contentInfo,omitempty"`
+ // ClassificationResults undocumented
+ ClassificationResults []ClassificationResult `json:"classificationResults,omitempty"`
+}
+
+// InformationProtectionEvaluateLabelsAndPoliciesRequestParameter undocumented
+type InformationProtectionEvaluateLabelsAndPoliciesRequestParameter struct {
+ // EvaluateSensitivityLabels undocumented
+ EvaluateSensitivityLabels *EvaluateSensitivityLabelsRequestObject `json:"evaluateSensitivityLabels,omitempty"`
+ // EvaluateDataLossPreventionPolicies undocumented
+ EvaluateDataLossPreventionPolicies *DlpEvaluatePoliciesRequestObject `json:"evaluateDataLossPreventionPolicies,omitempty"`
+ // ClassifyText undocumented
+ ClassifyText *TextClassificationRequestObject `json:"classifyText,omitempty"`
+}
+
+// DataLossPreventionPolicies returns request builder for DataLossPreventionPolicy collection
+func (b *InformationProtectionRequestBuilder) DataLossPreventionPolicies() *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder {
+ bb := &InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dataLossPreventionPolicies"
+ return bb
+}
+
+// InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder is request builder for DataLossPreventionPolicy collection
+type InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DataLossPreventionPolicy collection
+func (b *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder) Request() *InformationProtectionDataLossPreventionPoliciesCollectionRequest {
+ return &InformationProtectionDataLossPreventionPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DataLossPreventionPolicy item
+func (b *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder) ID(id string) *DataLossPreventionPolicyRequestBuilder {
+ bb := &DataLossPreventionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InformationProtectionDataLossPreventionPoliciesCollectionRequest is request for DataLossPreventionPolicy collection
+type InformationProtectionDataLossPreventionPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DataLossPreventionPolicy collection
+func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DataLossPreventionPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DataLossPreventionPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DataLossPreventionPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DataLossPreventionPolicy collection, max N pages
+func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DataLossPreventionPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DataLossPreventionPolicy collection
+func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Get(ctx context.Context) ([]DataLossPreventionPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DataLossPreventionPolicy collection
+func (r *InformationProtectionDataLossPreventionPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DataLossPreventionPolicy) (resObj *DataLossPreventionPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policy is navigation property
+func (b *InformationProtectionRequestBuilder) Policy() *InformationProtectionPolicyRequestBuilder {
+ bb := &InformationProtectionPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policy"
+ return bb
+}
+
+// SensitivityLabels returns request builder for SensitivityLabel collection
+func (b *InformationProtectionRequestBuilder) SensitivityLabels() *InformationProtectionSensitivityLabelsCollectionRequestBuilder {
+ bb := &InformationProtectionSensitivityLabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sensitivityLabels"
+ return bb
+}
+
+// InformationProtectionSensitivityLabelsCollectionRequestBuilder is request builder for SensitivityLabel collection
+type InformationProtectionSensitivityLabelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SensitivityLabel collection
+func (b *InformationProtectionSensitivityLabelsCollectionRequestBuilder) Request() *InformationProtectionSensitivityLabelsCollectionRequest {
+ return &InformationProtectionSensitivityLabelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SensitivityLabel item
+func (b *InformationProtectionSensitivityLabelsCollectionRequestBuilder) ID(id string) *SensitivityLabelRequestBuilder {
+ bb := &SensitivityLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InformationProtectionSensitivityLabelsCollectionRequest is request for SensitivityLabel collection
+type InformationProtectionSensitivityLabelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SensitivityLabel collection
+func (r *InformationProtectionSensitivityLabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SensitivityLabel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SensitivityLabel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SensitivityLabel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SensitivityLabel collection, max N pages
+func (r *InformationProtectionSensitivityLabelsCollectionRequest) GetN(ctx context.Context, n int) ([]SensitivityLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SensitivityLabel collection
+func (r *InformationProtectionSensitivityLabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SensitivityLabel collection
+func (r *InformationProtectionSensitivityLabelsCollectionRequest) Add(ctx context.Context, reqObj *SensitivityLabel) (resObj *SensitivityLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SensitivityPolicySettings is navigation property
+func (b *InformationProtectionRequestBuilder) SensitivityPolicySettings() *SensitivityPolicySettingsRequestBuilder {
+ bb := &SensitivityPolicySettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sensitivityPolicySettings"
+ return bb
+}
+
+// ThreatAssessmentRequests returns request builder for ThreatAssessmentRequestObject collection
+func (b *InformationProtectionRequestBuilder) ThreatAssessmentRequests() *InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder {
+ bb := &InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/threatAssessmentRequests"
+ return bb
+}
+
+// InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder is request builder for ThreatAssessmentRequestObject collection
+type InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ThreatAssessmentRequestObject collection
+func (b *InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder) Request() *InformationProtectionThreatAssessmentRequestsCollectionRequest {
+ return &InformationProtectionThreatAssessmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ThreatAssessmentRequestObject item
+func (b *InformationProtectionThreatAssessmentRequestsCollectionRequestBuilder) ID(id string) *ThreatAssessmentRequestObjectRequestBuilder {
+ bb := &ThreatAssessmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InformationProtectionThreatAssessmentRequestsCollectionRequest is request for ThreatAssessmentRequestObject collection
+type InformationProtectionThreatAssessmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ThreatAssessmentRequestObject collection
+func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ThreatAssessmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ThreatAssessmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ThreatAssessmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ThreatAssessmentRequestObject collection, max N pages
+func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]ThreatAssessmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ThreatAssessmentRequestObject collection
+func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Get(ctx context.Context) ([]ThreatAssessmentRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ThreatAssessmentRequestObject collection
+func (r *InformationProtectionThreatAssessmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *ThreatAssessmentRequestObject) (resObj *ThreatAssessmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Labels returns request builder for InformationProtectionLabel collection
+func (b *InformationProtectionPolicyRequestBuilder) Labels() *InformationProtectionPolicyLabelsCollectionRequestBuilder {
+ bb := &InformationProtectionPolicyLabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/labels"
+ return bb
+}
+
+// InformationProtectionPolicyLabelsCollectionRequestBuilder is request builder for InformationProtectionLabel collection
+type InformationProtectionPolicyLabelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for InformationProtectionLabel collection
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) Request() *InformationProtectionPolicyLabelsCollectionRequest {
+ return &InformationProtectionPolicyLabelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for InformationProtectionLabel item
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) ID(id string) *InformationProtectionLabelRequestBuilder {
+ bb := &InformationProtectionLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// InformationProtectionPolicyLabelsCollectionRequest is request for InformationProtectionLabel collection
+type InformationProtectionPolicyLabelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for InformationProtectionLabel collection
+func (r *InformationProtectionPolicyLabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InformationProtectionLabel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []InformationProtectionLabel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []InformationProtectionLabel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for InformationProtectionLabel collection, max N pages
+func (r *InformationProtectionPolicyLabelsCollectionRequest) GetN(ctx context.Context, n int) ([]InformationProtectionLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for InformationProtectionLabel collection
+func (r *InformationProtectionPolicyLabelsCollectionRequest) Get(ctx context.Context) ([]InformationProtectionLabel, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for InformationProtectionLabel collection
+func (r *InformationProtectionPolicyLabelsCollectionRequest) Add(ctx context.Context, reqObj *InformationProtectionLabel) (resObj *InformationProtectionLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionIntune.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIntune.go
new file mode 100644
index 00000000..916a0acd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionIntune.go
@@ -0,0 +1,120 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IntuneBrandingProfileAssignRequestParameter undocumented
+type IntuneBrandingProfileAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []IntuneBrandingProfileAssignment `json:"assignments,omitempty"`
+}
+
+// Assignments returns request builder for IntuneBrandingProfileAssignment collection
+func (b *IntuneBrandingProfileRequestBuilder) Assignments() *IntuneBrandingProfileAssignmentsCollectionRequestBuilder {
+ bb := &IntuneBrandingProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// IntuneBrandingProfileAssignmentsCollectionRequestBuilder is request builder for IntuneBrandingProfileAssignment collection
+type IntuneBrandingProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IntuneBrandingProfileAssignment collection
+func (b *IntuneBrandingProfileAssignmentsCollectionRequestBuilder) Request() *IntuneBrandingProfileAssignmentsCollectionRequest {
+ return &IntuneBrandingProfileAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IntuneBrandingProfileAssignment item
+func (b *IntuneBrandingProfileAssignmentsCollectionRequestBuilder) ID(id string) *IntuneBrandingProfileAssignmentRequestBuilder {
+ bb := &IntuneBrandingProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// IntuneBrandingProfileAssignmentsCollectionRequest is request for IntuneBrandingProfileAssignment collection
+type IntuneBrandingProfileAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IntuneBrandingProfileAssignment collection
+func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IntuneBrandingProfileAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IntuneBrandingProfileAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IntuneBrandingProfileAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IntuneBrandingProfileAssignment collection, max N pages
+func (r *IntuneBrandingProfileAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]IntuneBrandingProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IntuneBrandingProfileAssignment collection
+func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]IntuneBrandingProfileAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IntuneBrandingProfileAssignment collection
+func (r *IntuneBrandingProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *IntuneBrandingProfileAssignment) (resObj *IntuneBrandingProfileAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionInvitation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInvitation.go
new file mode 100644
index 00000000..bbca8161
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionInvitation.go
@@ -0,0 +1,10 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InvitedUser is navigation property
+func (b *InvitationRequestBuilder) InvitedUser() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/invitedUser"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionItem.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionItem.go
new file mode 100644
index 00000000..f2ee21f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionItem.go
@@ -0,0 +1,367 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ItemCategory is navigation property
+func (b *ItemRequestBuilder) ItemCategory() *ItemCategoryRequestBuilder {
+ bb := &ItemCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/itemCategory"
+ return bb
+}
+
+// Picture returns request builder for Picture collection
+func (b *ItemRequestBuilder) Picture() *ItemPictureCollectionRequestBuilder {
+ bb := &ItemPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// ItemPictureCollectionRequestBuilder is request builder for Picture collection
+type ItemPictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *ItemPictureCollectionRequestBuilder) Request() *ItemPictureCollectionRequest {
+ return &ItemPictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *ItemPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ItemPictureCollectionRequest is request for Picture collection
+type ItemPictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *ItemPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Picture collection, max N pages
+func (r *ItemPictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Picture collection
+func (r *ItemPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Picture collection
+func (r *ItemPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DriveItem is navigation property
+func (b *ItemActivityRequestBuilder) DriveItem() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/driveItem"
+ return bb
+}
+
+// DriveItem is navigation property
+func (b *ItemActivityOLDRequestBuilder) DriveItem() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/driveItem"
+ return bb
+}
+
+// ListItem is navigation property
+func (b *ItemActivityOLDRequestBuilder) ListItem() *ListItemRequestBuilder {
+ bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/listItem"
+ return bb
+}
+
+// Activities returns request builder for ItemActivity collection
+func (b *ItemActivityStatRequestBuilder) Activities() *ItemActivityStatActivitiesCollectionRequestBuilder {
+ bb := &ItemActivityStatActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// ItemActivityStatActivitiesCollectionRequestBuilder is request builder for ItemActivity collection
+type ItemActivityStatActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivity collection
+func (b *ItemActivityStatActivitiesCollectionRequestBuilder) Request() *ItemActivityStatActivitiesCollectionRequest {
+ return &ItemActivityStatActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivity item
+func (b *ItemActivityStatActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityRequestBuilder {
+ bb := &ItemActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ItemActivityStatActivitiesCollectionRequest is request for ItemActivity collection
+type ItemActivityStatActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivity collection
+func (r *ItemActivityStatActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ItemActivity collection, max N pages
+func (r *ItemActivityStatActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ItemActivity collection
+func (r *ItemActivityStatActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivity, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ItemActivity collection
+func (r *ItemActivityStatActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivity) (resObj *ItemActivity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AllTime is navigation property
+func (b *ItemAnalyticsRequestBuilder) AllTime() *ItemActivityStatRequestBuilder {
+ bb := &ItemActivityStatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/allTime"
+ return bb
+}
+
+// ItemActivityStats returns request builder for ItemActivityStat collection
+func (b *ItemAnalyticsRequestBuilder) ItemActivityStats() *ItemAnalyticsItemActivityStatsCollectionRequestBuilder {
+ bb := &ItemAnalyticsItemActivityStatsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/itemActivityStats"
+ return bb
+}
+
+// ItemAnalyticsItemActivityStatsCollectionRequestBuilder is request builder for ItemActivityStat collection
+type ItemAnalyticsItemActivityStatsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityStat collection
+func (b *ItemAnalyticsItemActivityStatsCollectionRequestBuilder) Request() *ItemAnalyticsItemActivityStatsCollectionRequest {
+ return &ItemAnalyticsItemActivityStatsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityStat item
+func (b *ItemAnalyticsItemActivityStatsCollectionRequestBuilder) ID(id string) *ItemActivityStatRequestBuilder {
+ bb := &ItemActivityStatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ItemAnalyticsItemActivityStatsCollectionRequest is request for ItemActivityStat collection
+type ItemAnalyticsItemActivityStatsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityStat collection
+func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityStat, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityStat
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityStat
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ItemActivityStat collection, max N pages
+func (r *ItemAnalyticsItemActivityStatsCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityStat, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ItemActivityStat collection
+func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Get(ctx context.Context) ([]ItemActivityStat, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ItemActivityStat collection
+func (r *ItemAnalyticsItemActivityStatsCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityStat) (resObj *ItemActivityStat, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LastSevenDays is navigation property
+func (b *ItemAnalyticsRequestBuilder) LastSevenDays() *ItemActivityStatRequestBuilder {
+ bb := &ItemActivityStatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/lastSevenDays"
+ return bb
+}
+
+// Item is navigation property
+func (b *ItemAttachmentRequestBuilder) Item() *OutlookItemRequestBuilder {
+ bb := &OutlookItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionJournal.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionJournal.go
new file mode 100644
index 00000000..eab6aa32
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionJournal.go
@@ -0,0 +1,132 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// JournalPostRequestParameter undocumented
+type JournalPostRequestParameter struct {
+}
+
+// Account is navigation property
+func (b *JournalRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// JournalLines returns request builder for JournalLine collection
+func (b *JournalRequestBuilder) JournalLines() *JournalJournalLinesCollectionRequestBuilder {
+ bb := &JournalJournalLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/journalLines"
+ return bb
+}
+
+// JournalJournalLinesCollectionRequestBuilder is request builder for JournalLine collection
+type JournalJournalLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for JournalLine collection
+func (b *JournalJournalLinesCollectionRequestBuilder) Request() *JournalJournalLinesCollectionRequest {
+ return &JournalJournalLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for JournalLine item
+func (b *JournalJournalLinesCollectionRequestBuilder) ID(id string) *JournalLineRequestBuilder {
+ bb := &JournalLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// JournalJournalLinesCollectionRequest is request for JournalLine collection
+type JournalJournalLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for JournalLine collection
+func (r *JournalJournalLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]JournalLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []JournalLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []JournalLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for JournalLine collection, max N pages
+func (r *JournalJournalLinesCollectionRequest) GetN(ctx context.Context, n int) ([]JournalLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for JournalLine collection
+func (r *JournalJournalLinesCollectionRequest) Get(ctx context.Context) ([]JournalLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for JournalLine collection
+func (r *JournalJournalLinesCollectionRequest) Add(ctx context.Context, reqObj *JournalLine) (resObj *JournalLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Account is navigation property
+func (b *JournalLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionList.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionList.go
new file mode 100644
index 00000000..09cd5532
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionList.go
@@ -0,0 +1,765 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ListItemVersionRestoreVersionRequestParameter undocumented
+type ListItemVersionRestoreVersionRequestParameter struct {
+}
+
+// Activities returns request builder for ItemActivityOLD collection
+func (b *ListRequestBuilder) Activities() *ListActivitiesCollectionRequestBuilder {
+ bb := &ListActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// ListActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection
+type ListActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityOLD collection
+func (b *ListActivitiesCollectionRequestBuilder) Request() *ListActivitiesCollectionRequest {
+ return &ListActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityOLD item
+func (b *ListActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder {
+ bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListActivitiesCollectionRequest is request for ItemActivityOLD collection
+type ListActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityOLD collection
+func (r *ListActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityOLD, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityOLD
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityOLD
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ItemActivityOLD collection, max N pages
+func (r *ListActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *ListActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ItemActivityOLD collection
+func (r *ListActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Columns returns request builder for ColumnDefinition collection
+func (b *ListRequestBuilder) Columns() *ListColumnsCollectionRequestBuilder {
+ bb := &ListColumnsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/columns"
+ return bb
+}
+
+// ListColumnsCollectionRequestBuilder is request builder for ColumnDefinition collection
+type ListColumnsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ColumnDefinition collection
+func (b *ListColumnsCollectionRequestBuilder) Request() *ListColumnsCollectionRequest {
+ return &ListColumnsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ColumnDefinition item
+func (b *ListColumnsCollectionRequestBuilder) ID(id string) *ColumnDefinitionRequestBuilder {
+ bb := &ColumnDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListColumnsCollectionRequest is request for ColumnDefinition collection
+type ListColumnsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ColumnDefinition collection
+func (r *ListColumnsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ColumnDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ColumnDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ColumnDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ColumnDefinition collection, max N pages
+func (r *ListColumnsCollectionRequest) GetN(ctx context.Context, n int) ([]ColumnDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ColumnDefinition collection
+func (r *ListColumnsCollectionRequest) Get(ctx context.Context) ([]ColumnDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ColumnDefinition collection
+func (r *ListColumnsCollectionRequest) Add(ctx context.Context, reqObj *ColumnDefinition) (resObj *ColumnDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ContentTypes returns request builder for ContentType collection
+func (b *ListRequestBuilder) ContentTypes() *ListContentTypesCollectionRequestBuilder {
+ bb := &ListContentTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contentTypes"
+ return bb
+}
+
+// ListContentTypesCollectionRequestBuilder is request builder for ContentType collection
+type ListContentTypesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ContentType collection
+func (b *ListContentTypesCollectionRequestBuilder) Request() *ListContentTypesCollectionRequest {
+ return &ListContentTypesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ContentType item
+func (b *ListContentTypesCollectionRequestBuilder) ID(id string) *ContentTypeRequestBuilder {
+ bb := &ContentTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListContentTypesCollectionRequest is request for ContentType collection
+type ListContentTypesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ContentType collection
+func (r *ListContentTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ContentType, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ContentType
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ContentType
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ContentType collection, max N pages
+func (r *ListContentTypesCollectionRequest) GetN(ctx context.Context, n int) ([]ContentType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ContentType collection
+func (r *ListContentTypesCollectionRequest) Get(ctx context.Context) ([]ContentType, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ContentType collection
+func (r *ListContentTypesCollectionRequest) Add(ctx context.Context, reqObj *ContentType) (resObj *ContentType, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Drive is navigation property
+func (b *ListRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Items returns request builder for ListItem collection
+func (b *ListRequestBuilder) Items() *ListItemsCollectionRequestBuilder {
+ bb := &ListItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// ListItemsCollectionRequestBuilder is request builder for ListItem collection
+type ListItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ListItem collection
+func (b *ListItemsCollectionRequestBuilder) Request() *ListItemsCollectionRequest {
+ return &ListItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ListItem item
+func (b *ListItemsCollectionRequestBuilder) ID(id string) *ListItemRequestBuilder {
+ bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListItemsCollectionRequest is request for ListItem collection
+type ListItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ListItem collection
+func (r *ListItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ListItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ListItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ListItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ListItem collection, max N pages
+func (r *ListItemsCollectionRequest) GetN(ctx context.Context, n int) ([]ListItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ListItem collection
+func (r *ListItemsCollectionRequest) Get(ctx context.Context) ([]ListItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ListItem collection
+func (r *ListItemsCollectionRequest) Add(ctx context.Context, reqObj *ListItem) (resObj *ListItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Subscriptions returns request builder for Subscription collection
+func (b *ListRequestBuilder) Subscriptions() *ListSubscriptionsCollectionRequestBuilder {
+ bb := &ListSubscriptionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subscriptions"
+ return bb
+}
+
+// ListSubscriptionsCollectionRequestBuilder is request builder for Subscription collection
+type ListSubscriptionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Subscription collection
+func (b *ListSubscriptionsCollectionRequestBuilder) Request() *ListSubscriptionsCollectionRequest {
+ return &ListSubscriptionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Subscription item
+func (b *ListSubscriptionsCollectionRequestBuilder) ID(id string) *SubscriptionRequestBuilder {
+ bb := &SubscriptionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListSubscriptionsCollectionRequest is request for Subscription collection
+type ListSubscriptionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Subscription collection
+func (r *ListSubscriptionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Subscription, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Subscription
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Subscription
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Subscription collection, max N pages
+func (r *ListSubscriptionsCollectionRequest) GetN(ctx context.Context, n int) ([]Subscription, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Subscription collection
+func (r *ListSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Subscription collection
+func (r *ListSubscriptionsCollectionRequest) Add(ctx context.Context, reqObj *Subscription) (resObj *Subscription, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Activities returns request builder for ItemActivityOLD collection
+func (b *ListItemRequestBuilder) Activities() *ListItemActivitiesCollectionRequestBuilder {
+ bb := &ListItemActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// ListItemActivitiesCollectionRequestBuilder is request builder for ItemActivityOLD collection
+type ListItemActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemActivityOLD collection
+func (b *ListItemActivitiesCollectionRequestBuilder) Request() *ListItemActivitiesCollectionRequest {
+ return &ListItemActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemActivityOLD item
+func (b *ListItemActivitiesCollectionRequestBuilder) ID(id string) *ItemActivityOLDRequestBuilder {
+ bb := &ItemActivityOLDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListItemActivitiesCollectionRequest is request for ItemActivityOLD collection
+type ListItemActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemActivityOLD collection
+func (r *ListItemActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemActivityOLD, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemActivityOLD
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemActivityOLD
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ItemActivityOLD collection, max N pages
+func (r *ListItemActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemActivityOLD, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ItemActivityOLD collection
+func (r *ListItemActivitiesCollectionRequest) Get(ctx context.Context) ([]ItemActivityOLD, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ItemActivityOLD collection
+func (r *ListItemActivitiesCollectionRequest) Add(ctx context.Context, reqObj *ItemActivityOLD) (resObj *ItemActivityOLD, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Analytics is navigation property
+func (b *ListItemRequestBuilder) Analytics() *ItemAnalyticsRequestBuilder {
+ bb := &ItemAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/analytics"
+ return bb
+}
+
+// DriveItem is navigation property
+func (b *ListItemRequestBuilder) DriveItem() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/driveItem"
+ return bb
+}
+
+// Fields is navigation property
+func (b *ListItemRequestBuilder) Fields() *FieldValueSetRequestBuilder {
+ bb := &FieldValueSetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fields"
+ return bb
+}
+
+// Versions returns request builder for ListItemVersion collection
+func (b *ListItemRequestBuilder) Versions() *ListItemVersionsCollectionRequestBuilder {
+ bb := &ListItemVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/versions"
+ return bb
+}
+
+// ListItemVersionsCollectionRequestBuilder is request builder for ListItemVersion collection
+type ListItemVersionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ListItemVersion collection
+func (b *ListItemVersionsCollectionRequestBuilder) Request() *ListItemVersionsCollectionRequest {
+ return &ListItemVersionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ListItemVersion item
+func (b *ListItemVersionsCollectionRequestBuilder) ID(id string) *ListItemVersionRequestBuilder {
+ bb := &ListItemVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ListItemVersionsCollectionRequest is request for ListItemVersion collection
+type ListItemVersionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ListItemVersion collection
+func (r *ListItemVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ListItemVersion, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ListItemVersion
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ListItemVersion
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ListItemVersion collection, max N pages
+func (r *ListItemVersionsCollectionRequest) GetN(ctx context.Context, n int) ([]ListItemVersion, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ListItemVersion collection
+func (r *ListItemVersionsCollectionRequest) Get(ctx context.Context) ([]ListItemVersion, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ListItemVersion collection
+func (r *ListItemVersionsCollectionRequest) Add(ctx context.Context, reqObj *ListItemVersion) (resObj *ListItemVersion, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Fields is navigation property
+func (b *ListItemVersionRequestBuilder) Fields() *FieldValueSetRequestBuilder {
+ bb := &FieldValueSetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fields"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMDM.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMDM.go
new file mode 100644
index 00000000..2e8b5a4b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMDM.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter undocumented
+type MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMac.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMac.go
new file mode 100644
index 00000000..e59dca9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMac.go
@@ -0,0 +1,475 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MacManagedAppProtectionCollectionHasPayloadLinksRequestParameter undocumented
+type MacManagedAppProtectionCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// SingleSignOnExtensionPkinitCertificate is navigation property
+func (b *MacOSDeviceFeaturesConfigurationRequestBuilder) SingleSignOnExtensionPkinitCertificate() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleSignOnExtensionPkinitCertificate"
+ return bb
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *MacOSEnterpriseWiFiConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *MacOSEnterpriseWiFiConfigurationRequestBuilder) RootCertificateForServerValidation() *MacOSTrustedRootCertificateRequestBuilder {
+ bb := &MacOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *MacOSImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *MacOSImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *MacOSPkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *MacOSPkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *MacOSScepCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *MacOSScepCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RootCertificate is navigation property
+func (b *MacOSScepCertificateProfileRequestBuilder) RootCertificate() *MacOSTrustedRootCertificateRequestBuilder {
+ bb := &MacOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
+
+// IdentityCertificate is navigation property
+func (b *MacOSVpnConfigurationRequestBuilder) IdentityCertificate() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *MacOSWiredNetworkConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *MacOSCertificateProfileBaseRequestBuilder {
+ bb := &MacOSCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificateForServerValidation is navigation property
+func (b *MacOSWiredNetworkConfigurationRequestBuilder) RootCertificateForServerValidation() *MacOSTrustedRootCertificateRequestBuilder {
+ bb := &MacOSTrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificateForServerValidation"
+ return bb
+}
+
+// AssignedLicenses returns request builder for MacOsVPPAppAssignedLicense collection
+func (b *MacOsVPPAppRequestBuilder) AssignedLicenses() *MacOsVPPAppAssignedLicensesCollectionRequestBuilder {
+ bb := &MacOsVPPAppAssignedLicensesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignedLicenses"
+ return bb
+}
+
+// MacOsVPPAppAssignedLicensesCollectionRequestBuilder is request builder for MacOsVPPAppAssignedLicense collection
+type MacOsVPPAppAssignedLicensesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MacOsVPPAppAssignedLicense collection
+func (b *MacOsVPPAppAssignedLicensesCollectionRequestBuilder) Request() *MacOsVPPAppAssignedLicensesCollectionRequest {
+ return &MacOsVPPAppAssignedLicensesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MacOsVPPAppAssignedLicense item
+func (b *MacOsVPPAppAssignedLicensesCollectionRequestBuilder) ID(id string) *MacOsVPPAppAssignedLicenseRequestBuilder {
+ bb := &MacOsVPPAppAssignedLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MacOsVPPAppAssignedLicensesCollectionRequest is request for MacOsVPPAppAssignedLicense collection
+type MacOsVPPAppAssignedLicensesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MacOsVPPAppAssignedLicense collection
+func (r *MacOsVPPAppAssignedLicensesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MacOsVPPAppAssignedLicense, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MacOsVPPAppAssignedLicense
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MacOsVPPAppAssignedLicense
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MacOsVPPAppAssignedLicense collection, max N pages
+func (r *MacOsVPPAppAssignedLicensesCollectionRequest) GetN(ctx context.Context, n int) ([]MacOsVPPAppAssignedLicense, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MacOsVPPAppAssignedLicense collection
+func (r *MacOsVPPAppAssignedLicensesCollectionRequest) Get(ctx context.Context) ([]MacOsVPPAppAssignedLicense, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MacOsVPPAppAssignedLicense collection
+func (r *MacOsVPPAppAssignedLicensesCollectionRequest) Add(ctx context.Context, reqObj *MacOsVPPAppAssignedLicense) (resObj *MacOsVPPAppAssignedLicense, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go
new file mode 100644
index 00000000..de4a460b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMail.go
@@ -0,0 +1,636 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MailFolderCopyRequestParameter undocumented
+type MailFolderCopyRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+// MailFolderMoveRequestParameter undocumented
+type MailFolderMoveRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+// ChildFolders returns request builder for MailFolder collection
+func (b *MailFolderRequestBuilder) ChildFolders() *MailFolderChildFoldersCollectionRequestBuilder {
+ bb := &MailFolderChildFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/childFolders"
+ return bb
+}
+
+// MailFolderChildFoldersCollectionRequestBuilder is request builder for MailFolder collection
+type MailFolderChildFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MailFolder collection
+func (b *MailFolderChildFoldersCollectionRequestBuilder) Request() *MailFolderChildFoldersCollectionRequest {
+ return &MailFolderChildFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MailFolder item
+func (b *MailFolderChildFoldersCollectionRequestBuilder) ID(id string) *MailFolderRequestBuilder {
+ bb := &MailFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderChildFoldersCollectionRequest is request for MailFolder collection
+type MailFolderChildFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MailFolder collection
+func (r *MailFolderChildFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MailFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MailFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MailFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MailFolder collection, max N pages
+func (r *MailFolderChildFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]MailFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MailFolder collection
+func (r *MailFolderChildFoldersCollectionRequest) Get(ctx context.Context) ([]MailFolder, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MailFolder collection
+func (r *MailFolderChildFoldersCollectionRequest) Add(ctx context.Context, reqObj *MailFolder) (resObj *MailFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MessageRules returns request builder for MessageRule collection
+func (b *MailFolderRequestBuilder) MessageRules() *MailFolderMessageRulesCollectionRequestBuilder {
+ bb := &MailFolderMessageRulesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messageRules"
+ return bb
+}
+
+// MailFolderMessageRulesCollectionRequestBuilder is request builder for MessageRule collection
+type MailFolderMessageRulesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MessageRule collection
+func (b *MailFolderMessageRulesCollectionRequestBuilder) Request() *MailFolderMessageRulesCollectionRequest {
+ return &MailFolderMessageRulesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MessageRule item
+func (b *MailFolderMessageRulesCollectionRequestBuilder) ID(id string) *MessageRuleRequestBuilder {
+ bb := &MessageRuleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderMessageRulesCollectionRequest is request for MessageRule collection
+type MailFolderMessageRulesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MessageRule collection
+func (r *MailFolderMessageRulesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MessageRule, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MessageRule
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MessageRule
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MessageRule collection, max N pages
+func (r *MailFolderMessageRulesCollectionRequest) GetN(ctx context.Context, n int) ([]MessageRule, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MessageRule collection
+func (r *MailFolderMessageRulesCollectionRequest) Get(ctx context.Context) ([]MessageRule, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MessageRule collection
+func (r *MailFolderMessageRulesCollectionRequest) Add(ctx context.Context, reqObj *MessageRule) (resObj *MessageRule, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Messages returns request builder for Message collection
+func (b *MailFolderRequestBuilder) Messages() *MailFolderMessagesCollectionRequestBuilder {
+ bb := &MailFolderMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messages"
+ return bb
+}
+
+// MailFolderMessagesCollectionRequestBuilder is request builder for Message collection
+type MailFolderMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Message collection
+func (b *MailFolderMessagesCollectionRequestBuilder) Request() *MailFolderMessagesCollectionRequest {
+ return &MailFolderMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Message item
+func (b *MailFolderMessagesCollectionRequestBuilder) ID(id string) *MessageRequestBuilder {
+ bb := &MessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderMessagesCollectionRequest is request for Message collection
+type MailFolderMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Message collection
+func (r *MailFolderMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Message, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Message
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Message
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Message collection, max N pages
+func (r *MailFolderMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]Message, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Message collection
+func (r *MailFolderMessagesCollectionRequest) Get(ctx context.Context) ([]Message, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Message collection
+func (r *MailFolderMessagesCollectionRequest) Add(ctx context.Context, reqObj *Message) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *MailFolderRequestBuilder) MultiValueExtendedProperties() *MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *MailFolderMultiValueExtendedPropertiesCollectionRequest {
+ return &MailFolderMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *MailFolderMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type MailFolderMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages
+func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *MailFolderMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *MailFolderRequestBuilder) SingleValueExtendedProperties() *MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *MailFolderSingleValueExtendedPropertiesCollectionRequest {
+ return &MailFolderSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *MailFolderSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type MailFolderSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages
+func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *MailFolderSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserConfigurations returns request builder for UserConfiguration collection
+func (b *MailFolderRequestBuilder) UserConfigurations() *MailFolderUserConfigurationsCollectionRequestBuilder {
+ bb := &MailFolderUserConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userConfigurations"
+ return bb
+}
+
+// MailFolderUserConfigurationsCollectionRequestBuilder is request builder for UserConfiguration collection
+type MailFolderUserConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserConfiguration collection
+func (b *MailFolderUserConfigurationsCollectionRequestBuilder) Request() *MailFolderUserConfigurationsCollectionRequest {
+ return &MailFolderUserConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserConfiguration item
+func (b *MailFolderUserConfigurationsCollectionRequestBuilder) ID(id string) *UserConfigurationRequestBuilder {
+ bb := &UserConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MailFolderUserConfigurationsCollectionRequest is request for UserConfiguration collection
+type MailFolderUserConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserConfiguration collection
+func (r *MailFolderUserConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserConfiguration collection, max N pages
+func (r *MailFolderUserConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]UserConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserConfiguration collection
+func (r *MailFolderUserConfigurationsCollectionRequest) Get(ctx context.Context) ([]UserConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserConfiguration collection
+func (r *MailFolderUserConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *UserConfiguration) (resObj *UserConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go
new file mode 100644
index 00000000..4bd06143
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManaged.go
@@ -0,0 +1,1963 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagedDeviceCollectionExecuteActionRequestParameter undocumented
+type ManagedDeviceCollectionExecuteActionRequestParameter struct {
+ // ActionName undocumented
+ ActionName *ManagedDeviceRemoteAction `json:"actionName,omitempty"`
+ // KeepEnrollmentData undocumented
+ KeepEnrollmentData *bool `json:"keepEnrollmentData,omitempty"`
+ // KeepUserData undocumented
+ KeepUserData *bool `json:"keepUserData,omitempty"`
+ // DeviceIDs undocumented
+ DeviceIDs []string `json:"deviceIds,omitempty"`
+ // NotificationTitle undocumented
+ NotificationTitle *string `json:"notificationTitle,omitempty"`
+ // NotificationBody undocumented
+ NotificationBody *string `json:"notificationBody,omitempty"`
+ // DeviceName undocumented
+ DeviceName *string `json:"deviceName,omitempty"`
+}
+
+// ManagedAppPolicyTargetAppsRequestParameter undocumented
+type ManagedAppPolicyTargetAppsRequestParameter struct {
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+}
+
+// ManagedAppProtectionTargetAppsRequestParameter undocumented
+type ManagedAppProtectionTargetAppsRequestParameter struct {
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+}
+
+// ManagedDeviceOverrideComplianceStateRequestParameter undocumented
+type ManagedDeviceOverrideComplianceStateRequestParameter struct {
+ // ComplianceState undocumented
+ ComplianceState *AdministratorConfiguredDeviceComplianceState `json:"complianceState,omitempty"`
+ // RemediationURL undocumented
+ RemediationURL *string `json:"remediationUrl,omitempty"`
+}
+
+// ManagedDeviceEnableLostModeRequestParameter undocumented
+type ManagedDeviceEnableLostModeRequestParameter struct {
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Footer undocumented
+ Footer *string `json:"footer,omitempty"`
+}
+
+// ManagedDevicePlayLostModeSoundRequestParameter undocumented
+type ManagedDevicePlayLostModeSoundRequestParameter struct {
+}
+
+// ManagedDeviceSetDeviceNameRequestParameter undocumented
+type ManagedDeviceSetDeviceNameRequestParameter struct {
+ // DeviceName undocumented
+ DeviceName *string `json:"deviceName,omitempty"`
+}
+
+// ManagedDeviceRotateFileVaultKeyRequestParameter undocumented
+type ManagedDeviceRotateFileVaultKeyRequestParameter struct {
+}
+
+// ManagedDeviceRetireRequestParameter undocumented
+type ManagedDeviceRetireRequestParameter struct {
+}
+
+// ManagedDeviceWipeRequestParameter undocumented
+type ManagedDeviceWipeRequestParameter struct {
+ // KeepEnrollmentData undocumented
+ KeepEnrollmentData *bool `json:"keepEnrollmentData,omitempty"`
+ // KeepUserData undocumented
+ KeepUserData *bool `json:"keepUserData,omitempty"`
+ // MacOsUnlockCode undocumented
+ MacOsUnlockCode *string `json:"macOsUnlockCode,omitempty"`
+}
+
+// ManagedDeviceResetPasscodeRequestParameter undocumented
+type ManagedDeviceResetPasscodeRequestParameter struct {
+}
+
+// ManagedDeviceRemoteLockRequestParameter undocumented
+type ManagedDeviceRemoteLockRequestParameter struct {
+}
+
+// ManagedDeviceRequestRemoteAssistanceRequestParameter undocumented
+type ManagedDeviceRequestRemoteAssistanceRequestParameter struct {
+}
+
+// ManagedDeviceDisableLostModeRequestParameter undocumented
+type ManagedDeviceDisableLostModeRequestParameter struct {
+}
+
+// ManagedDeviceLocateDeviceRequestParameter undocumented
+type ManagedDeviceLocateDeviceRequestParameter struct {
+}
+
+// ManagedDeviceBypassActivationLockRequestParameter undocumented
+type ManagedDeviceBypassActivationLockRequestParameter struct {
+}
+
+// ManagedDeviceRebootNowRequestParameter undocumented
+type ManagedDeviceRebootNowRequestParameter struct {
+}
+
+// ManagedDeviceShutDownRequestParameter undocumented
+type ManagedDeviceShutDownRequestParameter struct {
+}
+
+// ManagedDeviceRecoverPasscodeRequestParameter undocumented
+type ManagedDeviceRecoverPasscodeRequestParameter struct {
+}
+
+// ManagedDeviceCleanWindowsDeviceRequestParameter undocumented
+type ManagedDeviceCleanWindowsDeviceRequestParameter struct {
+ // KeepUserData undocumented
+ KeepUserData *bool `json:"keepUserData,omitempty"`
+}
+
+// ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestParameter undocumented
+type ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestParameter struct {
+}
+
+// ManagedDeviceDeleteUserFromSharedAppleDeviceRequestParameter undocumented
+type ManagedDeviceDeleteUserFromSharedAppleDeviceRequestParameter struct {
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// ManagedDeviceSyncDeviceRequestParameter undocumented
+type ManagedDeviceSyncDeviceRequestParameter struct {
+}
+
+// ManagedDeviceWindowsDefenderScanRequestParameter undocumented
+type ManagedDeviceWindowsDefenderScanRequestParameter struct {
+ // QuickScan undocumented
+ QuickScan *bool `json:"quickScan,omitempty"`
+}
+
+// ManagedDeviceWindowsDefenderUpdateSignaturesRequestParameter undocumented
+type ManagedDeviceWindowsDefenderUpdateSignaturesRequestParameter struct {
+}
+
+// ManagedDeviceUpdateWindowsDeviceAccountRequestParameter undocumented
+type ManagedDeviceUpdateWindowsDeviceAccountRequestParameter struct {
+ // UpdateWindowsDeviceAccountActionParameter undocumented
+ UpdateWindowsDeviceAccountActionParameter *UpdateWindowsDeviceAccountActionParameter `json:"updateWindowsDeviceAccountActionParameter,omitempty"`
+}
+
+// ManagedDeviceRevokeAppleVPPLicensesRequestParameter undocumented
+type ManagedDeviceRevokeAppleVPPLicensesRequestParameter struct {
+}
+
+// ManagedDeviceRotateBitLockerKeysRequestParameter undocumented
+type ManagedDeviceRotateBitLockerKeysRequestParameter struct {
+}
+
+// ManagedDeviceSendCustomNotificationToCompanyPortalRequestParameter undocumented
+type ManagedDeviceSendCustomNotificationToCompanyPortalRequestParameter struct {
+ // NotificationTitle undocumented
+ NotificationTitle *string `json:"notificationTitle,omitempty"`
+ // NotificationBody undocumented
+ NotificationBody *string `json:"notificationBody,omitempty"`
+}
+
+// ManagedDeviceTriggerConfigurationManagerActionRequestParameter undocumented
+type ManagedDeviceTriggerConfigurationManagerActionRequestParameter struct {
+ // ConfigurationManagerAction undocumented
+ ConfigurationManagerAction *ConfigurationManagerAction `json:"configurationManagerAction,omitempty"`
+}
+
+// ManagedDeviceMobileAppConfigurationAssignRequestParameter undocumented
+type ManagedDeviceMobileAppConfigurationAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []ManagedDeviceMobileAppConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+// ManagedEBookAssignRequestParameter undocumented
+type ManagedEBookAssignRequestParameter struct {
+ // ManagedEBookAssignments undocumented
+ ManagedEBookAssignments []ManagedEBookAssignment `json:"managedEBookAssignments,omitempty"`
+}
+
+// AppliedPolicies returns request builder for ManagedAppPolicy collection
+func (b *ManagedAppRegistrationRequestBuilder) AppliedPolicies() *ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder {
+ bb := &ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appliedPolicies"
+ return bb
+}
+
+// ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder is request builder for ManagedAppPolicy collection
+type ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppPolicy collection
+func (b *ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder) Request() *ManagedAppRegistrationAppliedPoliciesCollectionRequest {
+ return &ManagedAppRegistrationAppliedPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppPolicy item
+func (b *ManagedAppRegistrationAppliedPoliciesCollectionRequestBuilder) ID(id string) *ManagedAppPolicyRequestBuilder {
+ bb := &ManagedAppPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedAppRegistrationAppliedPoliciesCollectionRequest is request for ManagedAppPolicy collection
+type ManagedAppRegistrationAppliedPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedAppPolicy collection, max N pages
+func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationAppliedPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppPolicy) (resObj *ManagedAppPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IntendedPolicies returns request builder for ManagedAppPolicy collection
+func (b *ManagedAppRegistrationRequestBuilder) IntendedPolicies() *ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder {
+ bb := &ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/intendedPolicies"
+ return bb
+}
+
+// ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder is request builder for ManagedAppPolicy collection
+type ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppPolicy collection
+func (b *ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder) Request() *ManagedAppRegistrationIntendedPoliciesCollectionRequest {
+ return &ManagedAppRegistrationIntendedPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppPolicy item
+func (b *ManagedAppRegistrationIntendedPoliciesCollectionRequestBuilder) ID(id string) *ManagedAppPolicyRequestBuilder {
+ bb := &ManagedAppPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedAppRegistrationIntendedPoliciesCollectionRequest is request for ManagedAppPolicy collection
+type ManagedAppRegistrationIntendedPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedAppPolicy collection, max N pages
+func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Get(ctx context.Context) ([]ManagedAppPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedAppPolicy collection
+func (r *ManagedAppRegistrationIntendedPoliciesCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppPolicy) (resObj *ManagedAppPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for ManagedAppOperation collection
+func (b *ManagedAppRegistrationRequestBuilder) Operations() *ManagedAppRegistrationOperationsCollectionRequestBuilder {
+ bb := &ManagedAppRegistrationOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// ManagedAppRegistrationOperationsCollectionRequestBuilder is request builder for ManagedAppOperation collection
+type ManagedAppRegistrationOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppOperation collection
+func (b *ManagedAppRegistrationOperationsCollectionRequestBuilder) Request() *ManagedAppRegistrationOperationsCollectionRequest {
+ return &ManagedAppRegistrationOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppOperation item
+func (b *ManagedAppRegistrationOperationsCollectionRequestBuilder) ID(id string) *ManagedAppOperationRequestBuilder {
+ bb := &ManagedAppOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedAppRegistrationOperationsCollectionRequest is request for ManagedAppOperation collection
+type ManagedAppRegistrationOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppOperation collection
+func (r *ManagedAppRegistrationOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedAppOperation collection, max N pages
+func (r *ManagedAppRegistrationOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedAppOperation collection
+func (r *ManagedAppRegistrationOperationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppOperation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedAppOperation collection
+func (r *ManagedAppRegistrationOperationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppOperation) (resObj *ManagedAppOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DetectedApps returns request builder for DetectedApp collection
+func (b *ManagedDeviceRequestBuilder) DetectedApps() *ManagedDeviceDetectedAppsCollectionRequestBuilder {
+ bb := &ManagedDeviceDetectedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/detectedApps"
+ return bb
+}
+
+// ManagedDeviceDetectedAppsCollectionRequestBuilder is request builder for DetectedApp collection
+type ManagedDeviceDetectedAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DetectedApp collection
+func (b *ManagedDeviceDetectedAppsCollectionRequestBuilder) Request() *ManagedDeviceDetectedAppsCollectionRequest {
+ return &ManagedDeviceDetectedAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DetectedApp item
+func (b *ManagedDeviceDetectedAppsCollectionRequestBuilder) ID(id string) *DetectedAppRequestBuilder {
+ bb := &DetectedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceDetectedAppsCollectionRequest is request for DetectedApp collection
+type ManagedDeviceDetectedAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DetectedApp collection
+func (r *ManagedDeviceDetectedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DetectedApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DetectedApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DetectedApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DetectedApp collection, max N pages
+func (r *ManagedDeviceDetectedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]DetectedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DetectedApp collection
+func (r *ManagedDeviceDetectedAppsCollectionRequest) Get(ctx context.Context) ([]DetectedApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DetectedApp collection
+func (r *ManagedDeviceDetectedAppsCollectionRequest) Add(ctx context.Context, reqObj *DetectedApp) (resObj *DetectedApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceCategory is navigation property
+func (b *ManagedDeviceRequestBuilder) DeviceCategory() *DeviceCategoryRequestBuilder {
+ bb := &DeviceCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCategory"
+ return bb
+}
+
+// DeviceCompliancePolicyStates returns request builder for DeviceCompliancePolicyState collection
+func (b *ManagedDeviceRequestBuilder) DeviceCompliancePolicyStates() *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder {
+ bb := &ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceCompliancePolicyStates"
+ return bb
+}
+
+// ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder is request builder for DeviceCompliancePolicyState collection
+type ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceCompliancePolicyState collection
+func (b *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder) Request() *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest {
+ return &ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceCompliancePolicyState item
+func (b *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequestBuilder) ID(id string) *DeviceCompliancePolicyStateRequestBuilder {
+ bb := &DeviceCompliancePolicyStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest is request for DeviceCompliancePolicyState collection
+type ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceCompliancePolicyState collection
+func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicyState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCompliancePolicyState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCompliancePolicyState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceCompliancePolicyState collection, max N pages
+func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceCompliancePolicyState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceCompliancePolicyState collection
+func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Get(ctx context.Context) ([]DeviceCompliancePolicyState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceCompliancePolicyState collection
+func (r *ManagedDeviceDeviceCompliancePolicyStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceCompliancePolicyState) (resObj *DeviceCompliancePolicyState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceConfigurationStates returns request builder for DeviceConfigurationState collection
+func (b *ManagedDeviceRequestBuilder) DeviceConfigurationStates() *ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder {
+ bb := &ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceConfigurationStates"
+ return bb
+}
+
+// ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder is request builder for DeviceConfigurationState collection
+type ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfigurationState collection
+func (b *ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder) Request() *ManagedDeviceDeviceConfigurationStatesCollectionRequest {
+ return &ManagedDeviceDeviceConfigurationStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfigurationState item
+func (b *ManagedDeviceDeviceConfigurationStatesCollectionRequestBuilder) ID(id string) *DeviceConfigurationStateRequestBuilder {
+ bb := &DeviceConfigurationStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceDeviceConfigurationStatesCollectionRequest is request for DeviceConfigurationState collection
+type ManagedDeviceDeviceConfigurationStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfigurationState collection
+func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceConfigurationState collection, max N pages
+func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfigurationState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceConfigurationState collection
+func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Get(ctx context.Context) ([]DeviceConfigurationState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceConfigurationState collection
+func (r *ManagedDeviceDeviceConfigurationStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfigurationState) (resObj *DeviceConfigurationState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceMobileAppConfigurationStates returns request builder for ManagedDeviceMobileAppConfigurationState collection
+func (b *ManagedDeviceRequestBuilder) ManagedDeviceMobileAppConfigurationStates() *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder {
+ bb := &ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceMobileAppConfigurationStates"
+ return bb
+}
+
+// ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationState collection
+type ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationState collection
+func (b *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder) Request() *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest {
+ return &ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationState item
+func (b *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationStateRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest is request for ManagedDeviceMobileAppConfigurationState collection
+type ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationState collection
+func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceMobileAppConfigurationState collection, max N pages
+func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationState collection
+func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationState collection
+func (r *ManagedDeviceManagedDeviceMobileAppConfigurationStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationState) (resObj *ManagedDeviceMobileAppConfigurationState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SecurityBaselineStates returns request builder for SecurityBaselineState collection
+func (b *ManagedDeviceRequestBuilder) SecurityBaselineStates() *ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder {
+ bb := &ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/securityBaselineStates"
+ return bb
+}
+
+// ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder is request builder for SecurityBaselineState collection
+type ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityBaselineState collection
+func (b *ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder) Request() *ManagedDeviceSecurityBaselineStatesCollectionRequest {
+ return &ManagedDeviceSecurityBaselineStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityBaselineState item
+func (b *ManagedDeviceSecurityBaselineStatesCollectionRequestBuilder) ID(id string) *SecurityBaselineStateRequestBuilder {
+ bb := &SecurityBaselineStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceSecurityBaselineStatesCollectionRequest is request for SecurityBaselineState collection
+type ManagedDeviceSecurityBaselineStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityBaselineState collection
+func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityBaselineState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityBaselineState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityBaselineState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SecurityBaselineState collection, max N pages
+func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityBaselineState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SecurityBaselineState collection
+func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SecurityBaselineState collection
+func (r *ManagedDeviceSecurityBaselineStatesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineState) (resObj *SecurityBaselineState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Users returns request builder for User collection
+func (b *ManagedDeviceRequestBuilder) Users() *ManagedDeviceUsersCollectionRequestBuilder {
+ bb := &ManagedDeviceUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/users"
+ return bb
+}
+
+// ManagedDeviceUsersCollectionRequestBuilder is request builder for User collection
+type ManagedDeviceUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for User collection
+func (b *ManagedDeviceUsersCollectionRequestBuilder) Request() *ManagedDeviceUsersCollectionRequest {
+ return &ManagedDeviceUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for User item
+func (b *ManagedDeviceUsersCollectionRequestBuilder) ID(id string) *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceUsersCollectionRequest is request for User collection
+type ManagedDeviceUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for User collection
+func (r *ManagedDeviceUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]User, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []User
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []User
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for User collection, max N pages
+func (r *ManagedDeviceUsersCollectionRequest) GetN(ctx context.Context, n int) ([]User, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for User collection
+func (r *ManagedDeviceUsersCollectionRequest) Get(ctx context.Context) ([]User, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for User collection
+func (r *ManagedDeviceUsersCollectionRequest) Add(ctx context.Context, reqObj *User) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsProtectionState is navigation property
+func (b *ManagedDeviceRequestBuilder) WindowsProtectionState() *WindowsProtectionStateRequestBuilder {
+ bb := &WindowsProtectionStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsProtectionState"
+ return bb
+}
+
+// Assignments returns request builder for ManagedDeviceMobileAppConfigurationAssignment collection
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) Assignments() *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationAssignment collection
+type ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationAssignment collection
+func (b *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest {
+ return &ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationAssignment item
+func (b *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest is request for ManagedDeviceMobileAppConfigurationAssignment collection
+type ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationAssignment collection
+func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceMobileAppConfigurationAssignment collection, max N pages
+func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationAssignment collection
+func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationAssignment collection
+func (r *ManagedDeviceMobileAppConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationAssignment) (resObj *ManagedDeviceMobileAppConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatusSummary is navigation property
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) DeviceStatusSummary() *ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatusSummary"
+ return bb
+}
+
+// DeviceStatuses returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) DeviceStatuses() *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+type ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (b *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest {
+ return &ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationDeviceStatus item
+func (b *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+type ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationDeviceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationDeviceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection, max N pages
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationDeviceStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationDeviceStatus collection
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceStatus) (resObj *ManagedDeviceMobileAppConfigurationDeviceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatusSummary is navigation property
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) UserStatusSummary() *ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatusSummary"
+ return bb
+}
+
+// UserStatuses returns request builder for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) UserStatuses() *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserStatus collection
+type ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (b *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest {
+ return &ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceMobileAppConfigurationUserStatus item
+func (b *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequestBuilder) ID(id string) *ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest is request for ManagedDeviceMobileAppConfigurationUserStatus collection
+type ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceMobileAppConfigurationUserStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceMobileAppConfigurationUserStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection, max N pages
+func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceMobileAppConfigurationUserStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceMobileAppConfigurationUserStatus collection
+func (r *ManagedDeviceMobileAppConfigurationUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserStatus) (resObj *ManagedDeviceMobileAppConfigurationUserStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for ManagedEBookAssignment collection
+func (b *ManagedEBookRequestBuilder) Assignments() *ManagedEBookAssignmentsCollectionRequestBuilder {
+ bb := &ManagedEBookAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// ManagedEBookAssignmentsCollectionRequestBuilder is request builder for ManagedEBookAssignment collection
+type ManagedEBookAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedEBookAssignment collection
+func (b *ManagedEBookAssignmentsCollectionRequestBuilder) Request() *ManagedEBookAssignmentsCollectionRequest {
+ return &ManagedEBookAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedEBookAssignment item
+func (b *ManagedEBookAssignmentsCollectionRequestBuilder) ID(id string) *ManagedEBookAssignmentRequestBuilder {
+ bb := &ManagedEBookAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedEBookAssignmentsCollectionRequest is request for ManagedEBookAssignment collection
+type ManagedEBookAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedEBookAssignment collection
+func (r *ManagedEBookAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedEBookAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedEBookAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedEBookAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedEBookAssignment collection, max N pages
+func (r *ManagedEBookAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedEBookAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedEBookAssignment collection
+func (r *ManagedEBookAssignmentsCollectionRequest) Get(ctx context.Context) ([]ManagedEBookAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedEBookAssignment collection
+func (r *ManagedEBookAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBookAssignment) (resObj *ManagedEBookAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Categories returns request builder for ManagedEBookCategory collection
+func (b *ManagedEBookRequestBuilder) Categories() *ManagedEBookCategoriesCollectionRequestBuilder {
+ bb := &ManagedEBookCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// ManagedEBookCategoriesCollectionRequestBuilder is request builder for ManagedEBookCategory collection
+type ManagedEBookCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedEBookCategory collection
+func (b *ManagedEBookCategoriesCollectionRequestBuilder) Request() *ManagedEBookCategoriesCollectionRequest {
+ return &ManagedEBookCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedEBookCategory item
+func (b *ManagedEBookCategoriesCollectionRequestBuilder) ID(id string) *ManagedEBookCategoryRequestBuilder {
+ bb := &ManagedEBookCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedEBookCategoriesCollectionRequest is request for ManagedEBookCategory collection
+type ManagedEBookCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedEBookCategory collection
+func (r *ManagedEBookCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedEBookCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedEBookCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedEBookCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedEBookCategory collection, max N pages
+func (r *ManagedEBookCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedEBookCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedEBookCategory collection
+func (r *ManagedEBookCategoriesCollectionRequest) Get(ctx context.Context) ([]ManagedEBookCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedEBookCategory collection
+func (r *ManagedEBookCategoriesCollectionRequest) Add(ctx context.Context, reqObj *ManagedEBookCategory) (resObj *ManagedEBookCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStates returns request builder for DeviceInstallState collection
+func (b *ManagedEBookRequestBuilder) DeviceStates() *ManagedEBookDeviceStatesCollectionRequestBuilder {
+ bb := &ManagedEBookDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// ManagedEBookDeviceStatesCollectionRequestBuilder is request builder for DeviceInstallState collection
+type ManagedEBookDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceInstallState collection
+func (b *ManagedEBookDeviceStatesCollectionRequestBuilder) Request() *ManagedEBookDeviceStatesCollectionRequest {
+ return &ManagedEBookDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceInstallState item
+func (b *ManagedEBookDeviceStatesCollectionRequestBuilder) ID(id string) *DeviceInstallStateRequestBuilder {
+ bb := &DeviceInstallStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedEBookDeviceStatesCollectionRequest is request for DeviceInstallState collection
+type ManagedEBookDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceInstallState collection
+func (r *ManagedEBookDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceInstallState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceInstallState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceInstallState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceInstallState collection, max N pages
+func (r *ManagedEBookDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceInstallState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceInstallState collection
+func (r *ManagedEBookDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceInstallState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceInstallState collection
+func (r *ManagedEBookDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceInstallState) (resObj *DeviceInstallState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// InstallSummary is navigation property
+func (b *ManagedEBookRequestBuilder) InstallSummary() *EBookInstallSummaryRequestBuilder {
+ bb := &EBookInstallSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installSummary"
+ return bb
+}
+
+// UserStateSummary returns request builder for UserInstallStateSummary collection
+func (b *ManagedEBookRequestBuilder) UserStateSummary() *ManagedEBookUserStateSummaryCollectionRequestBuilder {
+ bb := &ManagedEBookUserStateSummaryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStateSummary"
+ return bb
+}
+
+// ManagedEBookUserStateSummaryCollectionRequestBuilder is request builder for UserInstallStateSummary collection
+type ManagedEBookUserStateSummaryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserInstallStateSummary collection
+func (b *ManagedEBookUserStateSummaryCollectionRequestBuilder) Request() *ManagedEBookUserStateSummaryCollectionRequest {
+ return &ManagedEBookUserStateSummaryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserInstallStateSummary item
+func (b *ManagedEBookUserStateSummaryCollectionRequestBuilder) ID(id string) *UserInstallStateSummaryRequestBuilder {
+ bb := &UserInstallStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedEBookUserStateSummaryCollectionRequest is request for UserInstallStateSummary collection
+type ManagedEBookUserStateSummaryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserInstallStateSummary collection
+func (r *ManagedEBookUserStateSummaryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserInstallStateSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserInstallStateSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserInstallStateSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserInstallStateSummary collection, max N pages
+func (r *ManagedEBookUserStateSummaryCollectionRequest) GetN(ctx context.Context, n int) ([]UserInstallStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserInstallStateSummary collection
+func (r *ManagedEBookUserStateSummaryCollectionRequest) Get(ctx context.Context) ([]UserInstallStateSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserInstallStateSummary collection
+func (r *ManagedEBookUserStateSummaryCollectionRequest) Add(ctx context.Context, reqObj *UserInstallStateSummary) (resObj *UserInstallStateSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ContentVersions returns request builder for MobileAppContent collection
+func (b *ManagedMobileLobAppRequestBuilder) ContentVersions() *ManagedMobileLobAppContentVersionsCollectionRequestBuilder {
+ bb := &ManagedMobileLobAppContentVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contentVersions"
+ return bb
+}
+
+// ManagedMobileLobAppContentVersionsCollectionRequestBuilder is request builder for MobileAppContent collection
+type ManagedMobileLobAppContentVersionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppContent collection
+func (b *ManagedMobileLobAppContentVersionsCollectionRequestBuilder) Request() *ManagedMobileLobAppContentVersionsCollectionRequest {
+ return &ManagedMobileLobAppContentVersionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppContent item
+func (b *ManagedMobileLobAppContentVersionsCollectionRequestBuilder) ID(id string) *MobileAppContentRequestBuilder {
+ bb := &MobileAppContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagedMobileLobAppContentVersionsCollectionRequest is request for MobileAppContent collection
+type ManagedMobileLobAppContentVersionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppContent collection
+func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppContent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppContent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppContent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppContent collection, max N pages
+func (r *ManagedMobileLobAppContentVersionsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppContent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppContent collection
+func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Get(ctx context.Context) ([]MobileAppContent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppContent collection
+func (r *ManagedMobileLobAppContentVersionsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppContent) (resObj *MobileAppContent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionManagement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManagement.go
new file mode 100644
index 00000000..93b0926c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionManagement.go
@@ -0,0 +1,216 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagementConditionStatements returns request builder for ManagementConditionStatement collection
+func (b *ManagementConditionRequestBuilder) ManagementConditionStatements() *ManagementConditionManagementConditionStatementsCollectionRequestBuilder {
+ bb := &ManagementConditionManagementConditionStatementsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managementConditionStatements"
+ return bb
+}
+
+// ManagementConditionManagementConditionStatementsCollectionRequestBuilder is request builder for ManagementConditionStatement collection
+type ManagementConditionManagementConditionStatementsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagementConditionStatement collection
+func (b *ManagementConditionManagementConditionStatementsCollectionRequestBuilder) Request() *ManagementConditionManagementConditionStatementsCollectionRequest {
+ return &ManagementConditionManagementConditionStatementsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagementConditionStatement item
+func (b *ManagementConditionManagementConditionStatementsCollectionRequestBuilder) ID(id string) *ManagementConditionStatementRequestBuilder {
+ bb := &ManagementConditionStatementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagementConditionManagementConditionStatementsCollectionRequest is request for ManagementConditionStatement collection
+type ManagementConditionManagementConditionStatementsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagementConditionStatement collection
+func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagementConditionStatement, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagementConditionStatement
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagementConditionStatement
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagementConditionStatement collection, max N pages
+func (r *ManagementConditionManagementConditionStatementsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagementConditionStatement, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagementConditionStatement collection
+func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Get(ctx context.Context) ([]ManagementConditionStatement, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagementConditionStatement collection
+func (r *ManagementConditionManagementConditionStatementsCollectionRequest) Add(ctx context.Context, reqObj *ManagementConditionStatement) (resObj *ManagementConditionStatement, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagementConditions returns request builder for ManagementCondition collection
+func (b *ManagementConditionStatementRequestBuilder) ManagementConditions() *ManagementConditionStatementManagementConditionsCollectionRequestBuilder {
+ bb := &ManagementConditionStatementManagementConditionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managementConditions"
+ return bb
+}
+
+// ManagementConditionStatementManagementConditionsCollectionRequestBuilder is request builder for ManagementCondition collection
+type ManagementConditionStatementManagementConditionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagementCondition collection
+func (b *ManagementConditionStatementManagementConditionsCollectionRequestBuilder) Request() *ManagementConditionStatementManagementConditionsCollectionRequest {
+ return &ManagementConditionStatementManagementConditionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagementCondition item
+func (b *ManagementConditionStatementManagementConditionsCollectionRequestBuilder) ID(id string) *ManagementConditionRequestBuilder {
+ bb := &ManagementConditionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ManagementConditionStatementManagementConditionsCollectionRequest is request for ManagementCondition collection
+type ManagementConditionStatementManagementConditionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagementCondition collection
+func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagementCondition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagementCondition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagementCondition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagementCondition collection, max N pages
+func (r *ManagementConditionStatementManagementConditionsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagementCondition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagementCondition collection
+func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Get(ctx context.Context) ([]ManagementCondition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagementCondition collection
+func (r *ManagementConditionStatementManagementConditionsCollectionRequest) Add(ctx context.Context, reqObj *ManagementCondition) (resObj *ManagementCondition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMessage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMessage.go
new file mode 100644
index 00000000..8222d56f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMessage.go
@@ -0,0 +1,594 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MessageCreateReplyRequestParameter undocumented
+type MessageCreateReplyRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageCreateReplyAllRequestParameter undocumented
+type MessageCreateReplyAllRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageCreateForwardRequestParameter undocumented
+type MessageCreateForwardRequestParameter struct {
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"ToRecipients,omitempty"`
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageSendRequestParameter undocumented
+type MessageSendRequestParameter struct {
+}
+
+// MessageCopyRequestParameter undocumented
+type MessageCopyRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+// MessageMoveRequestParameter undocumented
+type MessageMoveRequestParameter struct {
+ // DestinationID undocumented
+ DestinationID *string `json:"DestinationId,omitempty"`
+}
+
+// MessageReplyRequestParameter undocumented
+type MessageReplyRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageReplyAllRequestParameter undocumented
+type MessageReplyAllRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageForwardRequestParameter undocumented
+type MessageForwardRequestParameter struct {
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"ToRecipients,omitempty"`
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+}
+
+// MessageUnsubscribeRequestParameter undocumented
+type MessageUnsubscribeRequestParameter struct {
+}
+
+// Attachments returns request builder for Attachment collection
+func (b *MessageRequestBuilder) Attachments() *MessageAttachmentsCollectionRequestBuilder {
+ bb := &MessageAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/attachments"
+ return bb
+}
+
+// MessageAttachmentsCollectionRequestBuilder is request builder for Attachment collection
+type MessageAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Attachment collection
+func (b *MessageAttachmentsCollectionRequestBuilder) Request() *MessageAttachmentsCollectionRequest {
+ return &MessageAttachmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Attachment item
+func (b *MessageAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder {
+ bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageAttachmentsCollectionRequest is request for Attachment collection
+type MessageAttachmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Attachment collection
+func (r *MessageAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Attachment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Attachment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Attachment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Attachment collection, max N pages
+func (r *MessageAttachmentsCollectionRequest) GetN(ctx context.Context, n int) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Attachment collection
+func (r *MessageAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Attachment collection
+func (r *MessageAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *MessageRequestBuilder) Extensions() *MessageExtensionsCollectionRequestBuilder {
+ bb := &MessageExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// MessageExtensionsCollectionRequestBuilder is request builder for Extension collection
+type MessageExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *MessageExtensionsCollectionRequestBuilder) Request() *MessageExtensionsCollectionRequest {
+ return &MessageExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *MessageExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageExtensionsCollectionRequest is request for Extension collection
+type MessageExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *MessageExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Extension collection, max N pages
+func (r *MessageExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Extension collection
+func (r *MessageExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Extension collection
+func (r *MessageExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Mentions returns request builder for Mention collection
+func (b *MessageRequestBuilder) Mentions() *MessageMentionsCollectionRequestBuilder {
+ bb := &MessageMentionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mentions"
+ return bb
+}
+
+// MessageMentionsCollectionRequestBuilder is request builder for Mention collection
+type MessageMentionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Mention collection
+func (b *MessageMentionsCollectionRequestBuilder) Request() *MessageMentionsCollectionRequest {
+ return &MessageMentionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Mention item
+func (b *MessageMentionsCollectionRequestBuilder) ID(id string) *MentionRequestBuilder {
+ bb := &MentionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageMentionsCollectionRequest is request for Mention collection
+type MessageMentionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Mention collection
+func (r *MessageMentionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Mention, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Mention
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Mention
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Mention collection, max N pages
+func (r *MessageMentionsCollectionRequest) GetN(ctx context.Context, n int) ([]Mention, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Mention collection
+func (r *MessageMentionsCollectionRequest) Get(ctx context.Context) ([]Mention, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Mention collection
+func (r *MessageMentionsCollectionRequest) Add(ctx context.Context, reqObj *Mention) (resObj *Mention, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *MessageRequestBuilder) MultiValueExtendedProperties() *MessageMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &MessageMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// MessageMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type MessageMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *MessageMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *MessageMultiValueExtendedPropertiesCollectionRequest {
+ return &MessageMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *MessageMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type MessageMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages
+func (r *MessageMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *MessageMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *MessageRequestBuilder) SingleValueExtendedProperties() *MessageSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &MessageSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// MessageSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type MessageSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *MessageSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *MessageSingleValueExtendedPropertiesCollectionRequest {
+ return &MessageSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *MessageSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MessageSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type MessageSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages
+func (r *MessageSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *MessageSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMicrosoft.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMicrosoft.go
new file mode 100644
index 00000000..cff9ddf4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMicrosoft.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ContainedApps returns request builder for MobileContainedApp collection
+func (b *MicrosoftStoreForBusinessAppRequestBuilder) ContainedApps() *MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder {
+ bb := &MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/containedApps"
+ return bb
+}
+
+// MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder is request builder for MobileContainedApp collection
+type MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileContainedApp collection
+func (b *MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder) Request() *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest {
+ return &MicrosoftStoreForBusinessAppContainedAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileContainedApp item
+func (b *MicrosoftStoreForBusinessAppContainedAppsCollectionRequestBuilder) ID(id string) *MobileContainedAppRequestBuilder {
+ bb := &MobileContainedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MicrosoftStoreForBusinessAppContainedAppsCollectionRequest is request for MobileContainedApp collection
+type MicrosoftStoreForBusinessAppContainedAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileContainedApp collection
+func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileContainedApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileContainedApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileContainedApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileContainedApp collection, max N pages
+func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileContainedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileContainedApp collection
+func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileContainedApp collection
+func (r *MicrosoftStoreForBusinessAppContainedAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileContainedApp) (resObj *MobileContainedApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionMobile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMobile.go
new file mode 100644
index 00000000..4d2a3e6f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionMobile.go
@@ -0,0 +1,972 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MobileAppCollectionHasPayloadLinksRequestParameter undocumented
+type MobileAppCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// MobileAppAssignRequestParameter undocumented
+type MobileAppAssignRequestParameter struct {
+ // MobileAppAssignments undocumented
+ MobileAppAssignments []MobileAppAssignment `json:"mobileAppAssignments,omitempty"`
+}
+
+// MobileAppUpdateRelationshipsRequestParameter undocumented
+type MobileAppUpdateRelationshipsRequestParameter struct {
+ // Relationships undocumented
+ Relationships []MobileAppRelationship `json:"relationships,omitempty"`
+}
+
+// MobileAppContentFileCommitRequestParameter undocumented
+type MobileAppContentFileCommitRequestParameter struct {
+ // FileEncryptionInfo undocumented
+ FileEncryptionInfo *FileEncryptionInfo `json:"fileEncryptionInfo,omitempty"`
+}
+
+// MobileAppContentFileRenewUploadRequestParameter undocumented
+type MobileAppContentFileRenewUploadRequestParameter struct {
+}
+
+// Assignments returns request builder for MobileAppAssignment collection
+func (b *MobileAppRequestBuilder) Assignments() *MobileAppAssignmentsCollectionRequestBuilder {
+ bb := &MobileAppAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// MobileAppAssignmentsCollectionRequestBuilder is request builder for MobileAppAssignment collection
+type MobileAppAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppAssignment collection
+func (b *MobileAppAssignmentsCollectionRequestBuilder) Request() *MobileAppAssignmentsCollectionRequest {
+ return &MobileAppAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppAssignment item
+func (b *MobileAppAssignmentsCollectionRequestBuilder) ID(id string) *MobileAppAssignmentRequestBuilder {
+ bb := &MobileAppAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppAssignmentsCollectionRequest is request for MobileAppAssignment collection
+type MobileAppAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppAssignment collection
+func (r *MobileAppAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppAssignment collection, max N pages
+func (r *MobileAppAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppAssignment collection
+func (r *MobileAppAssignmentsCollectionRequest) Get(ctx context.Context) ([]MobileAppAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppAssignment collection
+func (r *MobileAppAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppAssignment) (resObj *MobileAppAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Categories returns request builder for MobileAppCategory collection
+func (b *MobileAppRequestBuilder) Categories() *MobileAppCategoriesCollectionRequestBuilder {
+ bb := &MobileAppCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categories"
+ return bb
+}
+
+// MobileAppCategoriesCollectionRequestBuilder is request builder for MobileAppCategory collection
+type MobileAppCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppCategory collection
+func (b *MobileAppCategoriesCollectionRequestBuilder) Request() *MobileAppCategoriesCollectionRequest {
+ return &MobileAppCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppCategory item
+func (b *MobileAppCategoriesCollectionRequestBuilder) ID(id string) *MobileAppCategoryRequestBuilder {
+ bb := &MobileAppCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppCategoriesCollectionRequest is request for MobileAppCategory collection
+type MobileAppCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppCategory collection
+func (r *MobileAppCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppCategory collection, max N pages
+func (r *MobileAppCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppCategory collection
+func (r *MobileAppCategoriesCollectionRequest) Get(ctx context.Context) ([]MobileAppCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppCategory collection
+func (r *MobileAppCategoriesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppCategory) (resObj *MobileAppCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStatuses returns request builder for MobileAppInstallStatus collection
+func (b *MobileAppRequestBuilder) DeviceStatuses() *MobileAppDeviceStatusesCollectionRequestBuilder {
+ bb := &MobileAppDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// MobileAppDeviceStatusesCollectionRequestBuilder is request builder for MobileAppInstallStatus collection
+type MobileAppDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppInstallStatus collection
+func (b *MobileAppDeviceStatusesCollectionRequestBuilder) Request() *MobileAppDeviceStatusesCollectionRequest {
+ return &MobileAppDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppInstallStatus item
+func (b *MobileAppDeviceStatusesCollectionRequestBuilder) ID(id string) *MobileAppInstallStatusRequestBuilder {
+ bb := &MobileAppInstallStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppDeviceStatusesCollectionRequest is request for MobileAppInstallStatus collection
+type MobileAppDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppInstallStatus collection
+func (r *MobileAppDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppInstallStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppInstallStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppInstallStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppInstallStatus collection, max N pages
+func (r *MobileAppDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppInstallStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppInstallStatus collection
+func (r *MobileAppDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]MobileAppInstallStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppInstallStatus collection
+func (r *MobileAppDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppInstallStatus) (resObj *MobileAppInstallStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// InstallSummary is navigation property
+func (b *MobileAppRequestBuilder) InstallSummary() *MobileAppInstallSummaryRequestBuilder {
+ bb := &MobileAppInstallSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installSummary"
+ return bb
+}
+
+// Relationships returns request builder for MobileAppRelationship collection
+func (b *MobileAppRequestBuilder) Relationships() *MobileAppRelationshipsCollectionRequestBuilder {
+ bb := &MobileAppRelationshipsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/relationships"
+ return bb
+}
+
+// MobileAppRelationshipsCollectionRequestBuilder is request builder for MobileAppRelationship collection
+type MobileAppRelationshipsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppRelationship collection
+func (b *MobileAppRelationshipsCollectionRequestBuilder) Request() *MobileAppRelationshipsCollectionRequest {
+ return &MobileAppRelationshipsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppRelationship item
+func (b *MobileAppRelationshipsCollectionRequestBuilder) ID(id string) *MobileAppRelationshipRequestBuilder {
+ bb := &MobileAppRelationshipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppRelationshipsCollectionRequest is request for MobileAppRelationship collection
+type MobileAppRelationshipsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppRelationship collection
+func (r *MobileAppRelationshipsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppRelationship, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppRelationship
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppRelationship
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppRelationship collection, max N pages
+func (r *MobileAppRelationshipsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppRelationship, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppRelationship collection
+func (r *MobileAppRelationshipsCollectionRequest) Get(ctx context.Context) ([]MobileAppRelationship, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppRelationship collection
+func (r *MobileAppRelationshipsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppRelationship) (resObj *MobileAppRelationship, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserStatuses returns request builder for UserAppInstallStatus collection
+func (b *MobileAppRequestBuilder) UserStatuses() *MobileAppUserStatusesCollectionRequestBuilder {
+ bb := &MobileAppUserStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userStatuses"
+ return bb
+}
+
+// MobileAppUserStatusesCollectionRequestBuilder is request builder for UserAppInstallStatus collection
+type MobileAppUserStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserAppInstallStatus collection
+func (b *MobileAppUserStatusesCollectionRequestBuilder) Request() *MobileAppUserStatusesCollectionRequest {
+ return &MobileAppUserStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserAppInstallStatus item
+func (b *MobileAppUserStatusesCollectionRequestBuilder) ID(id string) *UserAppInstallStatusRequestBuilder {
+ bb := &UserAppInstallStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppUserStatusesCollectionRequest is request for UserAppInstallStatus collection
+type MobileAppUserStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserAppInstallStatus collection
+func (r *MobileAppUserStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserAppInstallStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserAppInstallStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserAppInstallStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserAppInstallStatus collection, max N pages
+func (r *MobileAppUserStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]UserAppInstallStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserAppInstallStatus collection
+func (r *MobileAppUserStatusesCollectionRequest) Get(ctx context.Context) ([]UserAppInstallStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserAppInstallStatus collection
+func (r *MobileAppUserStatusesCollectionRequest) Add(ctx context.Context, reqObj *UserAppInstallStatus) (resObj *UserAppInstallStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ContainedApps returns request builder for MobileContainedApp collection
+func (b *MobileAppContentRequestBuilder) ContainedApps() *MobileAppContentContainedAppsCollectionRequestBuilder {
+ bb := &MobileAppContentContainedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/containedApps"
+ return bb
+}
+
+// MobileAppContentContainedAppsCollectionRequestBuilder is request builder for MobileContainedApp collection
+type MobileAppContentContainedAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileContainedApp collection
+func (b *MobileAppContentContainedAppsCollectionRequestBuilder) Request() *MobileAppContentContainedAppsCollectionRequest {
+ return &MobileAppContentContainedAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileContainedApp item
+func (b *MobileAppContentContainedAppsCollectionRequestBuilder) ID(id string) *MobileContainedAppRequestBuilder {
+ bb := &MobileContainedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppContentContainedAppsCollectionRequest is request for MobileContainedApp collection
+type MobileAppContentContainedAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileContainedApp collection
+func (r *MobileAppContentContainedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileContainedApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileContainedApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileContainedApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileContainedApp collection, max N pages
+func (r *MobileAppContentContainedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileContainedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileContainedApp collection
+func (r *MobileAppContentContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileContainedApp collection
+func (r *MobileAppContentContainedAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileContainedApp) (resObj *MobileContainedApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Files returns request builder for MobileAppContentFile collection
+func (b *MobileAppContentRequestBuilder) Files() *MobileAppContentFilesCollectionRequestBuilder {
+ bb := &MobileAppContentFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/files"
+ return bb
+}
+
+// MobileAppContentFilesCollectionRequestBuilder is request builder for MobileAppContentFile collection
+type MobileAppContentFilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppContentFile collection
+func (b *MobileAppContentFilesCollectionRequestBuilder) Request() *MobileAppContentFilesCollectionRequest {
+ return &MobileAppContentFilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppContentFile item
+func (b *MobileAppContentFilesCollectionRequestBuilder) ID(id string) *MobileAppContentFileRequestBuilder {
+ bb := &MobileAppContentFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppContentFilesCollectionRequest is request for MobileAppContentFile collection
+type MobileAppContentFilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppContentFile collection
+func (r *MobileAppContentFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppContentFile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppContentFile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppContentFile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppContentFile collection, max N pages
+func (r *MobileAppContentFilesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppContentFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppContentFile collection
+func (r *MobileAppContentFilesCollectionRequest) Get(ctx context.Context) ([]MobileAppContentFile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppContentFile collection
+func (r *MobileAppContentFilesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppContentFile) (resObj *MobileAppContentFile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// App is navigation property
+func (b *MobileAppInstallStatusRequestBuilder) App() *MobileAppRequestBuilder {
+ bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/app"
+ return bb
+}
+
+// AppLogCollectionRequests returns request builder for AppLogCollectionRequestObject collection
+func (b *MobileAppTroubleshootingEventRequestBuilder) AppLogCollectionRequests() *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder {
+ bb := &MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appLogCollectionRequests"
+ return bb
+}
+
+// MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder is request builder for AppLogCollectionRequestObject collection
+type MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppLogCollectionRequestObject collection
+func (b *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder) Request() *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest {
+ return &MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppLogCollectionRequestObject item
+func (b *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequestBuilder) ID(id string) *AppLogCollectionRequestObjectRequestBuilder {
+ bb := &AppLogCollectionRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest is request for AppLogCollectionRequestObject collection
+type MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppLogCollectionRequestObject collection
+func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppLogCollectionRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppLogCollectionRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppLogCollectionRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppLogCollectionRequestObject collection, max N pages
+func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AppLogCollectionRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppLogCollectionRequestObject collection
+func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Get(ctx context.Context) ([]AppLogCollectionRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppLogCollectionRequestObject collection
+func (r *MobileAppTroubleshootingEventAppLogCollectionRequestsCollectionRequest) Add(ctx context.Context, reqObj *AppLogCollectionRequestObject) (resObj *AppLogCollectionRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ContentVersions returns request builder for MobileAppContent collection
+func (b *MobileLobAppRequestBuilder) ContentVersions() *MobileLobAppContentVersionsCollectionRequestBuilder {
+ bb := &MobileLobAppContentVersionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contentVersions"
+ return bb
+}
+
+// MobileLobAppContentVersionsCollectionRequestBuilder is request builder for MobileAppContent collection
+type MobileLobAppContentVersionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppContent collection
+func (b *MobileLobAppContentVersionsCollectionRequestBuilder) Request() *MobileLobAppContentVersionsCollectionRequest {
+ return &MobileLobAppContentVersionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppContent item
+func (b *MobileLobAppContentVersionsCollectionRequestBuilder) ID(id string) *MobileAppContentRequestBuilder {
+ bb := &MobileAppContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// MobileLobAppContentVersionsCollectionRequest is request for MobileAppContent collection
+type MobileLobAppContentVersionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppContent collection
+func (r *MobileLobAppContentVersionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppContent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppContent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppContent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppContent collection, max N pages
+func (r *MobileLobAppContentVersionsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppContent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppContent collection
+func (r *MobileLobAppContentVersionsCollectionRequest) Get(ctx context.Context) ([]MobileAppContent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppContent collection
+func (r *MobileLobAppContentVersionsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppContent) (resObj *MobileAppContent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotebook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotebook.go
new file mode 100644
index 00000000..174d0d1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotebook.go
@@ -0,0 +1,236 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// NotebookCollectionGetNotebookFromWebURLRequestParameter undocumented
+type NotebookCollectionGetNotebookFromWebURLRequestParameter struct {
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
+
+// NotebookCopyNotebookRequestParameter undocumented
+type NotebookCopyNotebookRequestParameter struct {
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // RenameAs undocumented
+ RenameAs *string `json:"renameAs,omitempty"`
+ // NotebookFolder undocumented
+ NotebookFolder *string `json:"notebookFolder,omitempty"`
+ // SiteCollectionID undocumented
+ SiteCollectionID *string `json:"siteCollectionId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
+
+// SectionGroups returns request builder for SectionGroup collection
+func (b *NotebookRequestBuilder) SectionGroups() *NotebookSectionGroupsCollectionRequestBuilder {
+ bb := &NotebookSectionGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sectionGroups"
+ return bb
+}
+
+// NotebookSectionGroupsCollectionRequestBuilder is request builder for SectionGroup collection
+type NotebookSectionGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SectionGroup collection
+func (b *NotebookSectionGroupsCollectionRequestBuilder) Request() *NotebookSectionGroupsCollectionRequest {
+ return &NotebookSectionGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SectionGroup item
+func (b *NotebookSectionGroupsCollectionRequestBuilder) ID(id string) *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// NotebookSectionGroupsCollectionRequest is request for SectionGroup collection
+type NotebookSectionGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SectionGroup collection
+func (r *NotebookSectionGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SectionGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SectionGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SectionGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SectionGroup collection, max N pages
+func (r *NotebookSectionGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]SectionGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SectionGroup collection
+func (r *NotebookSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SectionGroup collection
+func (r *NotebookSectionGroupsCollectionRequest) Add(ctx context.Context, reqObj *SectionGroup) (resObj *SectionGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sections returns request builder for OnenoteSection collection
+func (b *NotebookRequestBuilder) Sections() *NotebookSectionsCollectionRequestBuilder {
+ bb := &NotebookSectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sections"
+ return bb
+}
+
+// NotebookSectionsCollectionRequestBuilder is request builder for OnenoteSection collection
+type NotebookSectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteSection collection
+func (b *NotebookSectionsCollectionRequestBuilder) Request() *NotebookSectionsCollectionRequest {
+ return &NotebookSectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteSection item
+func (b *NotebookSectionsCollectionRequestBuilder) ID(id string) *OnenoteSectionRequestBuilder {
+ bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// NotebookSectionsCollectionRequest is request for OnenoteSection collection
+type NotebookSectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteSection collection
+func (r *NotebookSectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteSection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteSection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteSection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnenoteSection collection, max N pages
+func (r *NotebookSectionsCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteSection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnenoteSection collection
+func (r *NotebookSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnenoteSection collection
+func (r *NotebookSectionsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteSection) (resObj *OnenoteSection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotification.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotification.go
new file mode 100644
index 00000000..2fbea976
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionNotification.go
@@ -0,0 +1,118 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// NotificationMessageTemplateSendTestMessageRequestParameter undocumented
+type NotificationMessageTemplateSendTestMessageRequestParameter struct {
+}
+
+// LocalizedNotificationMessages returns request builder for LocalizedNotificationMessage collection
+func (b *NotificationMessageTemplateRequestBuilder) LocalizedNotificationMessages() *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder {
+ bb := &NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/localizedNotificationMessages"
+ return bb
+}
+
+// NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder is request builder for LocalizedNotificationMessage collection
+type NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LocalizedNotificationMessage collection
+func (b *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder) Request() *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest {
+ return &NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LocalizedNotificationMessage item
+func (b *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequestBuilder) ID(id string) *LocalizedNotificationMessageRequestBuilder {
+ bb := &LocalizedNotificationMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest is request for LocalizedNotificationMessage collection
+type NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LocalizedNotificationMessage collection
+func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LocalizedNotificationMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LocalizedNotificationMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LocalizedNotificationMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for LocalizedNotificationMessage collection, max N pages
+func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]LocalizedNotificationMessage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for LocalizedNotificationMessage collection
+func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Get(ctx context.Context) ([]LocalizedNotificationMessage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for LocalizedNotificationMessage collection
+func (r *NotificationMessageTemplateLocalizedNotificationMessagesCollectionRequest) Add(ctx context.Context, reqObj *LocalizedNotificationMessage) (resObj *LocalizedNotificationMessage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go
new file mode 100644
index 00000000..a2fdcd2d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOffice.go
@@ -0,0 +1,536 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OfficeClientConfigurationCollectionUpdatePrioritiesRequestParameter undocumented
+type OfficeClientConfigurationCollectionUpdatePrioritiesRequestParameter struct {
+ // OfficeConfigurationPolicyIDs undocumented
+ OfficeConfigurationPolicyIDs []string `json:"officeConfigurationPolicyIds,omitempty"`
+ // OfficeConfigurationPriorities undocumented
+ OfficeConfigurationPriorities []int `json:"officeConfigurationPriorities,omitempty"`
+}
+
+// OfficeClientConfigurationAssignRequestParameter undocumented
+type OfficeClientConfigurationAssignRequestParameter struct {
+ // OfficeConfigurationAssignments undocumented
+ OfficeConfigurationAssignments []OfficeClientConfigurationAssignment `json:"officeConfigurationAssignments,omitempty"`
+}
+
+// Assignments returns request builder for OfficeClientConfigurationAssignment collection
+func (b *OfficeClientConfigurationRequestBuilder) Assignments() *OfficeClientConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &OfficeClientConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// OfficeClientConfigurationAssignmentsCollectionRequestBuilder is request builder for OfficeClientConfigurationAssignment collection
+type OfficeClientConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OfficeClientConfigurationAssignment collection
+func (b *OfficeClientConfigurationAssignmentsCollectionRequestBuilder) Request() *OfficeClientConfigurationAssignmentsCollectionRequest {
+ return &OfficeClientConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OfficeClientConfigurationAssignment item
+func (b *OfficeClientConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *OfficeClientConfigurationAssignmentRequestBuilder {
+ bb := &OfficeClientConfigurationAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeClientConfigurationAssignmentsCollectionRequest is request for OfficeClientConfigurationAssignment collection
+type OfficeClientConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OfficeClientConfigurationAssignment collection
+func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OfficeClientConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OfficeClientConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OfficeClientConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OfficeClientConfigurationAssignment collection, max N pages
+func (r *OfficeClientConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]OfficeClientConfigurationAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OfficeClientConfigurationAssignment collection
+func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]OfficeClientConfigurationAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OfficeClientConfigurationAssignment collection
+func (r *OfficeClientConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *OfficeClientConfigurationAssignment) (resObj *OfficeClientConfigurationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ClientConfigurations returns request builder for OfficeClientConfiguration collection
+func (b *OfficeConfigurationRequestBuilder) ClientConfigurations() *OfficeConfigurationClientConfigurationsCollectionRequestBuilder {
+ bb := &OfficeConfigurationClientConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/clientConfigurations"
+ return bb
+}
+
+// OfficeConfigurationClientConfigurationsCollectionRequestBuilder is request builder for OfficeClientConfiguration collection
+type OfficeConfigurationClientConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OfficeClientConfiguration collection
+func (b *OfficeConfigurationClientConfigurationsCollectionRequestBuilder) Request() *OfficeConfigurationClientConfigurationsCollectionRequest {
+ return &OfficeConfigurationClientConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OfficeClientConfiguration item
+func (b *OfficeConfigurationClientConfigurationsCollectionRequestBuilder) ID(id string) *OfficeClientConfigurationRequestBuilder {
+ bb := &OfficeClientConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeConfigurationClientConfigurationsCollectionRequest is request for OfficeClientConfiguration collection
+type OfficeConfigurationClientConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OfficeClientConfiguration collection
+func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OfficeClientConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OfficeClientConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OfficeClientConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OfficeClientConfiguration collection, max N pages
+func (r *OfficeConfigurationClientConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]OfficeClientConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OfficeClientConfiguration collection
+func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Get(ctx context.Context) ([]OfficeClientConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OfficeClientConfiguration collection
+func (r *OfficeConfigurationClientConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *OfficeClientConfiguration) (resObj *OfficeClientConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Shared returns request builder for SharedInsight collection
+func (b *OfficeGraphInsightsRequestBuilder) Shared() *OfficeGraphInsightsSharedCollectionRequestBuilder {
+ bb := &OfficeGraphInsightsSharedCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shared"
+ return bb
+}
+
+// OfficeGraphInsightsSharedCollectionRequestBuilder is request builder for SharedInsight collection
+type OfficeGraphInsightsSharedCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SharedInsight collection
+func (b *OfficeGraphInsightsSharedCollectionRequestBuilder) Request() *OfficeGraphInsightsSharedCollectionRequest {
+ return &OfficeGraphInsightsSharedCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SharedInsight item
+func (b *OfficeGraphInsightsSharedCollectionRequestBuilder) ID(id string) *SharedInsightRequestBuilder {
+ bb := &SharedInsightRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeGraphInsightsSharedCollectionRequest is request for SharedInsight collection
+type OfficeGraphInsightsSharedCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SharedInsight collection
+func (r *OfficeGraphInsightsSharedCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SharedInsight, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SharedInsight
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SharedInsight
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SharedInsight collection, max N pages
+func (r *OfficeGraphInsightsSharedCollectionRequest) GetN(ctx context.Context, n int) ([]SharedInsight, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SharedInsight collection
+func (r *OfficeGraphInsightsSharedCollectionRequest) Get(ctx context.Context) ([]SharedInsight, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SharedInsight collection
+func (r *OfficeGraphInsightsSharedCollectionRequest) Add(ctx context.Context, reqObj *SharedInsight) (resObj *SharedInsight, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Trending returns request builder for Trending collection
+func (b *OfficeGraphInsightsRequestBuilder) Trending() *OfficeGraphInsightsTrendingCollectionRequestBuilder {
+ bb := &OfficeGraphInsightsTrendingCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/trending"
+ return bb
+}
+
+// OfficeGraphInsightsTrendingCollectionRequestBuilder is request builder for Trending collection
+type OfficeGraphInsightsTrendingCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Trending collection
+func (b *OfficeGraphInsightsTrendingCollectionRequestBuilder) Request() *OfficeGraphInsightsTrendingCollectionRequest {
+ return &OfficeGraphInsightsTrendingCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Trending item
+func (b *OfficeGraphInsightsTrendingCollectionRequestBuilder) ID(id string) *TrendingRequestBuilder {
+ bb := &TrendingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeGraphInsightsTrendingCollectionRequest is request for Trending collection
+type OfficeGraphInsightsTrendingCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Trending collection
+func (r *OfficeGraphInsightsTrendingCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Trending, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Trending
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Trending
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Trending collection, max N pages
+func (r *OfficeGraphInsightsTrendingCollectionRequest) GetN(ctx context.Context, n int) ([]Trending, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Trending collection
+func (r *OfficeGraphInsightsTrendingCollectionRequest) Get(ctx context.Context) ([]Trending, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Trending collection
+func (r *OfficeGraphInsightsTrendingCollectionRequest) Add(ctx context.Context, reqObj *Trending) (resObj *Trending, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Used returns request builder for UsedInsight collection
+func (b *OfficeGraphInsightsRequestBuilder) Used() *OfficeGraphInsightsUsedCollectionRequestBuilder {
+ bb := &OfficeGraphInsightsUsedCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/used"
+ return bb
+}
+
+// OfficeGraphInsightsUsedCollectionRequestBuilder is request builder for UsedInsight collection
+type OfficeGraphInsightsUsedCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UsedInsight collection
+func (b *OfficeGraphInsightsUsedCollectionRequestBuilder) Request() *OfficeGraphInsightsUsedCollectionRequest {
+ return &OfficeGraphInsightsUsedCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UsedInsight item
+func (b *OfficeGraphInsightsUsedCollectionRequestBuilder) ID(id string) *UsedInsightRequestBuilder {
+ bb := &UsedInsightRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OfficeGraphInsightsUsedCollectionRequest is request for UsedInsight collection
+type OfficeGraphInsightsUsedCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UsedInsight collection
+func (r *OfficeGraphInsightsUsedCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UsedInsight, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UsedInsight
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UsedInsight
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UsedInsight collection, max N pages
+func (r *OfficeGraphInsightsUsedCollectionRequest) GetN(ctx context.Context, n int) ([]UsedInsight, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UsedInsight collection
+func (r *OfficeGraphInsightsUsedCollectionRequest) Get(ctx context.Context) ([]UsedInsight, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UsedInsight collection
+func (r *OfficeGraphInsightsUsedCollectionRequest) Add(ctx context.Context, reqObj *UsedInsight) (resObj *UsedInsight, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOn.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOn.go
new file mode 100644
index 00000000..394fbd41
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOn.go
@@ -0,0 +1,624 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AgentGroups returns request builder for OnPremisesAgentGroup collection
+func (b *OnPremisesAgentRequestBuilder) AgentGroups() *OnPremisesAgentAgentGroupsCollectionRequestBuilder {
+ bb := &OnPremisesAgentAgentGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agentGroups"
+ return bb
+}
+
+// OnPremisesAgentAgentGroupsCollectionRequestBuilder is request builder for OnPremisesAgentGroup collection
+type OnPremisesAgentAgentGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgentGroup collection
+func (b *OnPremisesAgentAgentGroupsCollectionRequestBuilder) Request() *OnPremisesAgentAgentGroupsCollectionRequest {
+ return &OnPremisesAgentAgentGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgentGroup item
+func (b *OnPremisesAgentAgentGroupsCollectionRequestBuilder) ID(id string) *OnPremisesAgentGroupRequestBuilder {
+ bb := &OnPremisesAgentGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesAgentAgentGroupsCollectionRequest is request for OnPremisesAgentGroup collection
+type OnPremisesAgentAgentGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgentGroup collection
+func (r *OnPremisesAgentAgentGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgentGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgentGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgentGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnPremisesAgentGroup collection, max N pages
+func (r *OnPremisesAgentAgentGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgentGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnPremisesAgentGroup collection
+func (r *OnPremisesAgentAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnPremisesAgentGroup collection
+func (r *OnPremisesAgentAgentGroupsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgentGroup) (resObj *OnPremisesAgentGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Agents returns request builder for OnPremisesAgent collection
+func (b *OnPremisesAgentGroupRequestBuilder) Agents() *OnPremisesAgentGroupAgentsCollectionRequestBuilder {
+ bb := &OnPremisesAgentGroupAgentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agents"
+ return bb
+}
+
+// OnPremisesAgentGroupAgentsCollectionRequestBuilder is request builder for OnPremisesAgent collection
+type OnPremisesAgentGroupAgentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgent collection
+func (b *OnPremisesAgentGroupAgentsCollectionRequestBuilder) Request() *OnPremisesAgentGroupAgentsCollectionRequest {
+ return &OnPremisesAgentGroupAgentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgent item
+func (b *OnPremisesAgentGroupAgentsCollectionRequestBuilder) ID(id string) *OnPremisesAgentRequestBuilder {
+ bb := &OnPremisesAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesAgentGroupAgentsCollectionRequest is request for OnPremisesAgent collection
+type OnPremisesAgentGroupAgentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgent collection
+func (r *OnPremisesAgentGroupAgentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnPremisesAgent collection, max N pages
+func (r *OnPremisesAgentGroupAgentsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnPremisesAgent collection
+func (r *OnPremisesAgentGroupAgentsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnPremisesAgent collection
+func (r *OnPremisesAgentGroupAgentsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgent) (resObj *OnPremisesAgent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PublishedResources returns request builder for PublishedResource collection
+func (b *OnPremisesAgentGroupRequestBuilder) PublishedResources() *OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder {
+ bb := &OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/publishedResources"
+ return bb
+}
+
+// OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder is request builder for PublishedResource collection
+type OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PublishedResource collection
+func (b *OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder) Request() *OnPremisesAgentGroupPublishedResourcesCollectionRequest {
+ return &OnPremisesAgentGroupPublishedResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PublishedResource item
+func (b *OnPremisesAgentGroupPublishedResourcesCollectionRequestBuilder) ID(id string) *PublishedResourceRequestBuilder {
+ bb := &PublishedResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesAgentGroupPublishedResourcesCollectionRequest is request for PublishedResource collection
+type OnPremisesAgentGroupPublishedResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PublishedResource collection
+func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PublishedResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PublishedResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PublishedResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PublishedResource collection, max N pages
+func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]PublishedResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PublishedResource collection
+func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Get(ctx context.Context) ([]PublishedResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PublishedResource collection
+func (r *OnPremisesAgentGroupPublishedResourcesCollectionRequest) Add(ctx context.Context, reqObj *PublishedResource) (resObj *PublishedResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AgentGroups returns request builder for OnPremisesAgentGroup collection
+func (b *OnPremisesPublishingProfileRequestBuilder) AgentGroups() *OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder {
+ bb := &OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agentGroups"
+ return bb
+}
+
+// OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder is request builder for OnPremisesAgentGroup collection
+type OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgentGroup collection
+func (b *OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder) Request() *OnPremisesPublishingProfileAgentGroupsCollectionRequest {
+ return &OnPremisesPublishingProfileAgentGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgentGroup item
+func (b *OnPremisesPublishingProfileAgentGroupsCollectionRequestBuilder) ID(id string) *OnPremisesAgentGroupRequestBuilder {
+ bb := &OnPremisesAgentGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesPublishingProfileAgentGroupsCollectionRequest is request for OnPremisesAgentGroup collection
+type OnPremisesPublishingProfileAgentGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgentGroup collection
+func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgentGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgentGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgentGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnPremisesAgentGroup collection, max N pages
+func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgentGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnPremisesAgentGroup collection
+func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnPremisesAgentGroup collection
+func (r *OnPremisesPublishingProfileAgentGroupsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgentGroup) (resObj *OnPremisesAgentGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Agents returns request builder for OnPremisesAgent collection
+func (b *OnPremisesPublishingProfileRequestBuilder) Agents() *OnPremisesPublishingProfileAgentsCollectionRequestBuilder {
+ bb := &OnPremisesPublishingProfileAgentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agents"
+ return bb
+}
+
+// OnPremisesPublishingProfileAgentsCollectionRequestBuilder is request builder for OnPremisesAgent collection
+type OnPremisesPublishingProfileAgentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgent collection
+func (b *OnPremisesPublishingProfileAgentsCollectionRequestBuilder) Request() *OnPremisesPublishingProfileAgentsCollectionRequest {
+ return &OnPremisesPublishingProfileAgentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgent item
+func (b *OnPremisesPublishingProfileAgentsCollectionRequestBuilder) ID(id string) *OnPremisesAgentRequestBuilder {
+ bb := &OnPremisesAgentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesPublishingProfileAgentsCollectionRequest is request for OnPremisesAgent collection
+type OnPremisesPublishingProfileAgentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgent collection
+func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnPremisesAgent collection, max N pages
+func (r *OnPremisesPublishingProfileAgentsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnPremisesAgent collection
+func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnPremisesAgent collection
+func (r *OnPremisesPublishingProfileAgentsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgent) (resObj *OnPremisesAgent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PublishedResources returns request builder for PublishedResource collection
+func (b *OnPremisesPublishingProfileRequestBuilder) PublishedResources() *OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder {
+ bb := &OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/publishedResources"
+ return bb
+}
+
+// OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder is request builder for PublishedResource collection
+type OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PublishedResource collection
+func (b *OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder) Request() *OnPremisesPublishingProfilePublishedResourcesCollectionRequest {
+ return &OnPremisesPublishingProfilePublishedResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PublishedResource item
+func (b *OnPremisesPublishingProfilePublishedResourcesCollectionRequestBuilder) ID(id string) *PublishedResourceRequestBuilder {
+ bb := &PublishedResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnPremisesPublishingProfilePublishedResourcesCollectionRequest is request for PublishedResource collection
+type OnPremisesPublishingProfilePublishedResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PublishedResource collection
+func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PublishedResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PublishedResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PublishedResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PublishedResource collection, max N pages
+func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]PublishedResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PublishedResource collection
+func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Get(ctx context.Context) ([]PublishedResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PublishedResource collection
+func (r *OnPremisesPublishingProfilePublishedResourcesCollectionRequest) Add(ctx context.Context, reqObj *PublishedResource) (resObj *PublishedResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOnenote.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOnenote.go
new file mode 100644
index 00000000..979e714b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOnenote.go
@@ -0,0 +1,800 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OnenotePageOnenotePatchContentRequestParameter undocumented
+type OnenotePageOnenotePatchContentRequestParameter struct {
+ // Commands undocumented
+ Commands []OnenotePatchContentCommand `json:"commands,omitempty"`
+}
+
+// OnenotePageCopyToSectionRequestParameter undocumented
+type OnenotePageCopyToSectionRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // SiteCollectionID undocumented
+ SiteCollectionID *string `json:"siteCollectionId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
+
+// OnenoteSectionCopyToNotebookRequestParameter undocumented
+type OnenoteSectionCopyToNotebookRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // RenameAs undocumented
+ RenameAs *string `json:"renameAs,omitempty"`
+ // SiteCollectionID undocumented
+ SiteCollectionID *string `json:"siteCollectionId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
+
+// OnenoteSectionCopyToSectionGroupRequestParameter undocumented
+type OnenoteSectionCopyToSectionGroupRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // RenameAs undocumented
+ RenameAs *string `json:"renameAs,omitempty"`
+ // SiteCollectionID undocumented
+ SiteCollectionID *string `json:"siteCollectionId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
+
+// Notebooks returns request builder for Notebook collection
+func (b *OnenoteRequestBuilder) Notebooks() *OnenoteNotebooksCollectionRequestBuilder {
+ bb := &OnenoteNotebooksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/notebooks"
+ return bb
+}
+
+// OnenoteNotebooksCollectionRequestBuilder is request builder for Notebook collection
+type OnenoteNotebooksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Notebook collection
+func (b *OnenoteNotebooksCollectionRequestBuilder) Request() *OnenoteNotebooksCollectionRequest {
+ return &OnenoteNotebooksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Notebook item
+func (b *OnenoteNotebooksCollectionRequestBuilder) ID(id string) *NotebookRequestBuilder {
+ bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteNotebooksCollectionRequest is request for Notebook collection
+type OnenoteNotebooksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Notebook collection
+func (r *OnenoteNotebooksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Notebook, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Notebook
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Notebook
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Notebook collection, max N pages
+func (r *OnenoteNotebooksCollectionRequest) GetN(ctx context.Context, n int) ([]Notebook, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Notebook collection
+func (r *OnenoteNotebooksCollectionRequest) Get(ctx context.Context) ([]Notebook, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Notebook collection
+func (r *OnenoteNotebooksCollectionRequest) Add(ctx context.Context, reqObj *Notebook) (resObj *Notebook, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for OnenoteOperation collection
+func (b *OnenoteRequestBuilder) Operations() *OnenoteOperationsCollectionRequestBuilder {
+ bb := &OnenoteOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// OnenoteOperationsCollectionRequestBuilder is request builder for OnenoteOperation collection
+type OnenoteOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteOperation collection
+func (b *OnenoteOperationsCollectionRequestBuilder) Request() *OnenoteOperationsCollectionRequest {
+ return &OnenoteOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteOperation item
+func (b *OnenoteOperationsCollectionRequestBuilder) ID(id string) *OnenoteOperationRequestBuilder {
+ bb := &OnenoteOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteOperationsCollectionRequest is request for OnenoteOperation collection
+type OnenoteOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteOperation collection
+func (r *OnenoteOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnenoteOperation collection, max N pages
+func (r *OnenoteOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnenoteOperation collection
+func (r *OnenoteOperationsCollectionRequest) Get(ctx context.Context) ([]OnenoteOperation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnenoteOperation collection
+func (r *OnenoteOperationsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteOperation) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Pages returns request builder for OnenotePage collection
+func (b *OnenoteRequestBuilder) Pages() *OnenotePagesCollectionRequestBuilder {
+ bb := &OnenotePagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/pages"
+ return bb
+}
+
+// OnenotePagesCollectionRequestBuilder is request builder for OnenotePage collection
+type OnenotePagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenotePage collection
+func (b *OnenotePagesCollectionRequestBuilder) Request() *OnenotePagesCollectionRequest {
+ return &OnenotePagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenotePage item
+func (b *OnenotePagesCollectionRequestBuilder) ID(id string) *OnenotePageRequestBuilder {
+ bb := &OnenotePageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenotePagesCollectionRequest is request for OnenotePage collection
+type OnenotePagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenotePage collection
+func (r *OnenotePagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenotePage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenotePage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenotePage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnenotePage collection, max N pages
+func (r *OnenotePagesCollectionRequest) GetN(ctx context.Context, n int) ([]OnenotePage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnenotePage collection
+func (r *OnenotePagesCollectionRequest) Get(ctx context.Context) ([]OnenotePage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnenotePage collection
+func (r *OnenotePagesCollectionRequest) Add(ctx context.Context, reqObj *OnenotePage) (resObj *OnenotePage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Resources returns request builder for OnenoteResource collection
+func (b *OnenoteRequestBuilder) Resources() *OnenoteResourcesCollectionRequestBuilder {
+ bb := &OnenoteResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resources"
+ return bb
+}
+
+// OnenoteResourcesCollectionRequestBuilder is request builder for OnenoteResource collection
+type OnenoteResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteResource collection
+func (b *OnenoteResourcesCollectionRequestBuilder) Request() *OnenoteResourcesCollectionRequest {
+ return &OnenoteResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteResource item
+func (b *OnenoteResourcesCollectionRequestBuilder) ID(id string) *OnenoteResourceRequestBuilder {
+ bb := &OnenoteResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteResourcesCollectionRequest is request for OnenoteResource collection
+type OnenoteResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteResource collection
+func (r *OnenoteResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnenoteResource collection, max N pages
+func (r *OnenoteResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnenoteResource collection
+func (r *OnenoteResourcesCollectionRequest) Get(ctx context.Context) ([]OnenoteResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnenoteResource collection
+func (r *OnenoteResourcesCollectionRequest) Add(ctx context.Context, reqObj *OnenoteResource) (resObj *OnenoteResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SectionGroups returns request builder for SectionGroup collection
+func (b *OnenoteRequestBuilder) SectionGroups() *OnenoteSectionGroupsCollectionRequestBuilder {
+ bb := &OnenoteSectionGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sectionGroups"
+ return bb
+}
+
+// OnenoteSectionGroupsCollectionRequestBuilder is request builder for SectionGroup collection
+type OnenoteSectionGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SectionGroup collection
+func (b *OnenoteSectionGroupsCollectionRequestBuilder) Request() *OnenoteSectionGroupsCollectionRequest {
+ return &OnenoteSectionGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SectionGroup item
+func (b *OnenoteSectionGroupsCollectionRequestBuilder) ID(id string) *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteSectionGroupsCollectionRequest is request for SectionGroup collection
+type OnenoteSectionGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SectionGroup collection
+func (r *OnenoteSectionGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SectionGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SectionGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SectionGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SectionGroup collection, max N pages
+func (r *OnenoteSectionGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]SectionGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SectionGroup collection
+func (r *OnenoteSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SectionGroup collection
+func (r *OnenoteSectionGroupsCollectionRequest) Add(ctx context.Context, reqObj *SectionGroup) (resObj *SectionGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sections returns request builder for OnenoteSection collection
+func (b *OnenoteRequestBuilder) Sections() *OnenoteSectionsCollectionRequestBuilder {
+ bb := &OnenoteSectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sections"
+ return bb
+}
+
+// OnenoteSectionsCollectionRequestBuilder is request builder for OnenoteSection collection
+type OnenoteSectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteSection collection
+func (b *OnenoteSectionsCollectionRequestBuilder) Request() *OnenoteSectionsCollectionRequest {
+ return &OnenoteSectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteSection item
+func (b *OnenoteSectionsCollectionRequestBuilder) ID(id string) *OnenoteSectionRequestBuilder {
+ bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteSectionsCollectionRequest is request for OnenoteSection collection
+type OnenoteSectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteSection collection
+func (r *OnenoteSectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteSection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteSection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteSection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnenoteSection collection, max N pages
+func (r *OnenoteSectionsCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteSection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnenoteSection collection
+func (r *OnenoteSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnenoteSection collection
+func (r *OnenoteSectionsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteSection) (resObj *OnenoteSection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ParentNotebook is navigation property
+func (b *OnenotePageRequestBuilder) ParentNotebook() *NotebookRequestBuilder {
+ bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentNotebook"
+ return bb
+}
+
+// ParentSection is navigation property
+func (b *OnenotePageRequestBuilder) ParentSection() *OnenoteSectionRequestBuilder {
+ bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentSection"
+ return bb
+}
+
+// Pages returns request builder for OnenotePage collection
+func (b *OnenoteSectionRequestBuilder) Pages() *OnenoteSectionPagesCollectionRequestBuilder {
+ bb := &OnenoteSectionPagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/pages"
+ return bb
+}
+
+// OnenoteSectionPagesCollectionRequestBuilder is request builder for OnenotePage collection
+type OnenoteSectionPagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenotePage collection
+func (b *OnenoteSectionPagesCollectionRequestBuilder) Request() *OnenoteSectionPagesCollectionRequest {
+ return &OnenoteSectionPagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenotePage item
+func (b *OnenoteSectionPagesCollectionRequestBuilder) ID(id string) *OnenotePageRequestBuilder {
+ bb := &OnenotePageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OnenoteSectionPagesCollectionRequest is request for OnenotePage collection
+type OnenoteSectionPagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenotePage collection
+func (r *OnenoteSectionPagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenotePage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenotePage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenotePage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnenotePage collection, max N pages
+func (r *OnenoteSectionPagesCollectionRequest) GetN(ctx context.Context, n int) ([]OnenotePage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnenotePage collection
+func (r *OnenoteSectionPagesCollectionRequest) Get(ctx context.Context) ([]OnenotePage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnenotePage collection
+func (r *OnenoteSectionPagesCollectionRequest) Add(ctx context.Context, reqObj *OnenotePage) (resObj *OnenotePage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ParentNotebook is navigation property
+func (b *OnenoteSectionRequestBuilder) ParentNotebook() *NotebookRequestBuilder {
+ bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentNotebook"
+ return bb
+}
+
+// ParentSectionGroup is navigation property
+func (b *OnenoteSectionRequestBuilder) ParentSectionGroup() *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentSectionGroup"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrg.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrg.go
new file mode 100644
index 00000000..e730c543
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrg.go
@@ -0,0 +1,325 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DirectReports returns request builder for DirectoryObject collection
+func (b *OrgContactRequestBuilder) DirectReports() *OrgContactDirectReportsCollectionRequestBuilder {
+ bb := &OrgContactDirectReportsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directReports"
+ return bb
+}
+
+// OrgContactDirectReportsCollectionRequestBuilder is request builder for DirectoryObject collection
+type OrgContactDirectReportsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *OrgContactDirectReportsCollectionRequestBuilder) Request() *OrgContactDirectReportsCollectionRequest {
+ return &OrgContactDirectReportsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *OrgContactDirectReportsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrgContactDirectReportsCollectionRequest is request for DirectoryObject collection
+type OrgContactDirectReportsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *OrgContactDirectReportsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *OrgContactDirectReportsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *OrgContactDirectReportsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *OrgContactDirectReportsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Manager is navigation property
+func (b *OrgContactRequestBuilder) Manager() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/manager"
+ return bb
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *OrgContactRequestBuilder) MemberOf() *OrgContactMemberOfCollectionRequestBuilder {
+ bb := &OrgContactMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// OrgContactMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type OrgContactMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *OrgContactMemberOfCollectionRequestBuilder) Request() *OrgContactMemberOfCollectionRequest {
+ return &OrgContactMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *OrgContactMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrgContactMemberOfCollectionRequest is request for DirectoryObject collection
+type OrgContactMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *OrgContactMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *OrgContactMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *OrgContactMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *OrgContactMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *OrgContactRequestBuilder) TransitiveMemberOf() *OrgContactTransitiveMemberOfCollectionRequestBuilder {
+ bb := &OrgContactTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// OrgContactTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type OrgContactTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) Request() *OrgContactTransitiveMemberOfCollectionRequest {
+ return &OrgContactTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrgContactTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type OrgContactTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *OrgContactTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *OrgContactTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *OrgContactTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *OrgContactTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrganization.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrganization.go
new file mode 100644
index 00000000..4df7f2f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOrganization.go
@@ -0,0 +1,322 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OrganizationSetMobileDeviceManagementAuthorityRequestParameter undocumented
+type OrganizationSetMobileDeviceManagementAuthorityRequestParameter struct {
+}
+
+// Brandings returns request builder for OrganizationalBranding collection
+func (b *OrganizationRequestBuilder) Brandings() *OrganizationBrandingsCollectionRequestBuilder {
+ bb := &OrganizationBrandingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/brandings"
+ return bb
+}
+
+// OrganizationBrandingsCollectionRequestBuilder is request builder for OrganizationalBranding collection
+type OrganizationBrandingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OrganizationalBranding collection
+func (b *OrganizationBrandingsCollectionRequestBuilder) Request() *OrganizationBrandingsCollectionRequest {
+ return &OrganizationBrandingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OrganizationalBranding item
+func (b *OrganizationBrandingsCollectionRequestBuilder) ID(id string) *OrganizationalBrandingRequestBuilder {
+ bb := &OrganizationalBrandingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrganizationBrandingsCollectionRequest is request for OrganizationalBranding collection
+type OrganizationBrandingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OrganizationalBranding collection
+func (r *OrganizationBrandingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OrganizationalBranding, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OrganizationalBranding
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OrganizationalBranding
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OrganizationalBranding collection, max N pages
+func (r *OrganizationBrandingsCollectionRequest) GetN(ctx context.Context, n int) ([]OrganizationalBranding, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OrganizationalBranding collection
+func (r *OrganizationBrandingsCollectionRequest) Get(ctx context.Context) ([]OrganizationalBranding, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OrganizationalBranding collection
+func (r *OrganizationBrandingsCollectionRequest) Add(ctx context.Context, reqObj *OrganizationalBranding) (resObj *OrganizationalBranding, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CertificateBasedAuthConfiguration returns request builder for CertificateBasedAuthConfiguration collection
+func (b *OrganizationRequestBuilder) CertificateBasedAuthConfiguration() *OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder {
+ bb := &OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/certificateBasedAuthConfiguration"
+ return bb
+}
+
+// OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder is request builder for CertificateBasedAuthConfiguration collection
+type OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CertificateBasedAuthConfiguration collection
+func (b *OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder) Request() *OrganizationCertificateBasedAuthConfigurationCollectionRequest {
+ return &OrganizationCertificateBasedAuthConfigurationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CertificateBasedAuthConfiguration item
+func (b *OrganizationCertificateBasedAuthConfigurationCollectionRequestBuilder) ID(id string) *CertificateBasedAuthConfigurationRequestBuilder {
+ bb := &CertificateBasedAuthConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrganizationCertificateBasedAuthConfigurationCollectionRequest is request for CertificateBasedAuthConfiguration collection
+type OrganizationCertificateBasedAuthConfigurationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CertificateBasedAuthConfiguration collection
+func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CertificateBasedAuthConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CertificateBasedAuthConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CertificateBasedAuthConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CertificateBasedAuthConfiguration collection, max N pages
+func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) GetN(ctx context.Context, n int) ([]CertificateBasedAuthConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CertificateBasedAuthConfiguration collection
+func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Get(ctx context.Context) ([]CertificateBasedAuthConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CertificateBasedAuthConfiguration collection
+func (r *OrganizationCertificateBasedAuthConfigurationCollectionRequest) Add(ctx context.Context, reqObj *CertificateBasedAuthConfiguration) (resObj *CertificateBasedAuthConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *OrganizationRequestBuilder) Extensions() *OrganizationExtensionsCollectionRequestBuilder {
+ bb := &OrganizationExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// OrganizationExtensionsCollectionRequestBuilder is request builder for Extension collection
+type OrganizationExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *OrganizationExtensionsCollectionRequestBuilder) Request() *OrganizationExtensionsCollectionRequest {
+ return &OrganizationExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *OrganizationExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OrganizationExtensionsCollectionRequest is request for Extension collection
+type OrganizationExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *OrganizationExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Extension collection, max N pages
+func (r *OrganizationExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Extension collection
+func (r *OrganizationExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Extension collection
+func (r *OrganizationExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionOutlook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOutlook.go
new file mode 100644
index 00000000..95b76a66
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionOutlook.go
@@ -0,0 +1,1138 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OutlookTaskCompleteRequestParameter undocumented
+type OutlookTaskCompleteRequestParameter struct {
+}
+
+// Attachments returns request builder for Attachment collection
+func (b *OutlookTaskRequestBuilder) Attachments() *OutlookTaskAttachmentsCollectionRequestBuilder {
+ bb := &OutlookTaskAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/attachments"
+ return bb
+}
+
+// OutlookTaskAttachmentsCollectionRequestBuilder is request builder for Attachment collection
+type OutlookTaskAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Attachment collection
+func (b *OutlookTaskAttachmentsCollectionRequestBuilder) Request() *OutlookTaskAttachmentsCollectionRequest {
+ return &OutlookTaskAttachmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Attachment item
+func (b *OutlookTaskAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder {
+ bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskAttachmentsCollectionRequest is request for Attachment collection
+type OutlookTaskAttachmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Attachment collection
+func (r *OutlookTaskAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Attachment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Attachment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Attachment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Attachment collection, max N pages
+func (r *OutlookTaskAttachmentsCollectionRequest) GetN(ctx context.Context, n int) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Attachment collection
+func (r *OutlookTaskAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Attachment collection
+func (r *OutlookTaskAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *OutlookTaskRequestBuilder) MultiValueExtendedProperties() *OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskMultiValueExtendedPropertiesCollectionRequest {
+ return &OutlookTaskMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *OutlookTaskMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type OutlookTaskMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages
+func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *OutlookTaskRequestBuilder) SingleValueExtendedProperties() *OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskSingleValueExtendedPropertiesCollectionRequest {
+ return &OutlookTaskSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *OutlookTaskSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type OutlookTaskSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages
+func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *OutlookTaskFolderRequestBuilder) MultiValueExtendedProperties() *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest {
+ return &OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages
+func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *OutlookTaskFolderRequestBuilder) SingleValueExtendedProperties() *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest {
+ return &OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages
+func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *OutlookTaskFolderSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tasks returns request builder for OutlookTask collection
+func (b *OutlookTaskFolderRequestBuilder) Tasks() *OutlookTaskFolderTasksCollectionRequestBuilder {
+ bb := &OutlookTaskFolderTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// OutlookTaskFolderTasksCollectionRequestBuilder is request builder for OutlookTask collection
+type OutlookTaskFolderTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTask collection
+func (b *OutlookTaskFolderTasksCollectionRequestBuilder) Request() *OutlookTaskFolderTasksCollectionRequest {
+ return &OutlookTaskFolderTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTask item
+func (b *OutlookTaskFolderTasksCollectionRequestBuilder) ID(id string) *OutlookTaskRequestBuilder {
+ bb := &OutlookTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskFolderTasksCollectionRequest is request for OutlookTask collection
+type OutlookTaskFolderTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTask collection
+func (r *OutlookTaskFolderTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OutlookTask collection, max N pages
+func (r *OutlookTaskFolderTasksCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OutlookTask collection
+func (r *OutlookTaskFolderTasksCollectionRequest) Get(ctx context.Context) ([]OutlookTask, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OutlookTask collection
+func (r *OutlookTaskFolderTasksCollectionRequest) Add(ctx context.Context, reqObj *OutlookTask) (resObj *OutlookTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaskFolders returns request builder for OutlookTaskFolder collection
+func (b *OutlookTaskGroupRequestBuilder) TaskFolders() *OutlookTaskGroupTaskFoldersCollectionRequestBuilder {
+ bb := &OutlookTaskGroupTaskFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taskFolders"
+ return bb
+}
+
+// OutlookTaskGroupTaskFoldersCollectionRequestBuilder is request builder for OutlookTaskFolder collection
+type OutlookTaskGroupTaskFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTaskFolder collection
+func (b *OutlookTaskGroupTaskFoldersCollectionRequestBuilder) Request() *OutlookTaskGroupTaskFoldersCollectionRequest {
+ return &OutlookTaskGroupTaskFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTaskFolder item
+func (b *OutlookTaskGroupTaskFoldersCollectionRequestBuilder) ID(id string) *OutlookTaskFolderRequestBuilder {
+ bb := &OutlookTaskFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookTaskGroupTaskFoldersCollectionRequest is request for OutlookTaskFolder collection
+type OutlookTaskGroupTaskFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTaskFolder collection
+func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTaskFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTaskFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTaskFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OutlookTaskFolder collection, max N pages
+func (r *OutlookTaskGroupTaskFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTaskFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OutlookTaskFolder collection
+func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Get(ctx context.Context) ([]OutlookTaskFolder, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OutlookTaskFolder collection
+func (r *OutlookTaskGroupTaskFoldersCollectionRequest) Add(ctx context.Context, reqObj *OutlookTaskFolder) (resObj *OutlookTaskFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MasterCategories returns request builder for OutlookCategory collection
+func (b *OutlookUserRequestBuilder) MasterCategories() *OutlookUserMasterCategoriesCollectionRequestBuilder {
+ bb := &OutlookUserMasterCategoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/masterCategories"
+ return bb
+}
+
+// OutlookUserMasterCategoriesCollectionRequestBuilder is request builder for OutlookCategory collection
+type OutlookUserMasterCategoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookCategory collection
+func (b *OutlookUserMasterCategoriesCollectionRequestBuilder) Request() *OutlookUserMasterCategoriesCollectionRequest {
+ return &OutlookUserMasterCategoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookCategory item
+func (b *OutlookUserMasterCategoriesCollectionRequestBuilder) ID(id string) *OutlookCategoryRequestBuilder {
+ bb := &OutlookCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookUserMasterCategoriesCollectionRequest is request for OutlookCategory collection
+type OutlookUserMasterCategoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookCategory collection
+func (r *OutlookUserMasterCategoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookCategory, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookCategory
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookCategory
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OutlookCategory collection, max N pages
+func (r *OutlookUserMasterCategoriesCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookCategory, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OutlookCategory collection
+func (r *OutlookUserMasterCategoriesCollectionRequest) Get(ctx context.Context) ([]OutlookCategory, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OutlookCategory collection
+func (r *OutlookUserMasterCategoriesCollectionRequest) Add(ctx context.Context, reqObj *OutlookCategory) (resObj *OutlookCategory, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaskFolders returns request builder for OutlookTaskFolder collection
+func (b *OutlookUserRequestBuilder) TaskFolders() *OutlookUserTaskFoldersCollectionRequestBuilder {
+ bb := &OutlookUserTaskFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taskFolders"
+ return bb
+}
+
+// OutlookUserTaskFoldersCollectionRequestBuilder is request builder for OutlookTaskFolder collection
+type OutlookUserTaskFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTaskFolder collection
+func (b *OutlookUserTaskFoldersCollectionRequestBuilder) Request() *OutlookUserTaskFoldersCollectionRequest {
+ return &OutlookUserTaskFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTaskFolder item
+func (b *OutlookUserTaskFoldersCollectionRequestBuilder) ID(id string) *OutlookTaskFolderRequestBuilder {
+ bb := &OutlookTaskFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookUserTaskFoldersCollectionRequest is request for OutlookTaskFolder collection
+type OutlookUserTaskFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTaskFolder collection
+func (r *OutlookUserTaskFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTaskFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTaskFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTaskFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OutlookTaskFolder collection, max N pages
+func (r *OutlookUserTaskFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTaskFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OutlookTaskFolder collection
+func (r *OutlookUserTaskFoldersCollectionRequest) Get(ctx context.Context) ([]OutlookTaskFolder, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OutlookTaskFolder collection
+func (r *OutlookUserTaskFoldersCollectionRequest) Add(ctx context.Context, reqObj *OutlookTaskFolder) (resObj *OutlookTaskFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TaskGroups returns request builder for OutlookTaskGroup collection
+func (b *OutlookUserRequestBuilder) TaskGroups() *OutlookUserTaskGroupsCollectionRequestBuilder {
+ bb := &OutlookUserTaskGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/taskGroups"
+ return bb
+}
+
+// OutlookUserTaskGroupsCollectionRequestBuilder is request builder for OutlookTaskGroup collection
+type OutlookUserTaskGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTaskGroup collection
+func (b *OutlookUserTaskGroupsCollectionRequestBuilder) Request() *OutlookUserTaskGroupsCollectionRequest {
+ return &OutlookUserTaskGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTaskGroup item
+func (b *OutlookUserTaskGroupsCollectionRequestBuilder) ID(id string) *OutlookTaskGroupRequestBuilder {
+ bb := &OutlookTaskGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookUserTaskGroupsCollectionRequest is request for OutlookTaskGroup collection
+type OutlookUserTaskGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTaskGroup collection
+func (r *OutlookUserTaskGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTaskGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTaskGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTaskGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OutlookTaskGroup collection, max N pages
+func (r *OutlookUserTaskGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTaskGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OutlookTaskGroup collection
+func (r *OutlookUserTaskGroupsCollectionRequest) Get(ctx context.Context) ([]OutlookTaskGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OutlookTaskGroup collection
+func (r *OutlookUserTaskGroupsCollectionRequest) Add(ctx context.Context, reqObj *OutlookTaskGroup) (resObj *OutlookTaskGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tasks returns request builder for OutlookTask collection
+func (b *OutlookUserRequestBuilder) Tasks() *OutlookUserTasksCollectionRequestBuilder {
+ bb := &OutlookUserTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// OutlookUserTasksCollectionRequestBuilder is request builder for OutlookTask collection
+type OutlookUserTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OutlookTask collection
+func (b *OutlookUserTasksCollectionRequestBuilder) Request() *OutlookUserTasksCollectionRequest {
+ return &OutlookUserTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OutlookTask item
+func (b *OutlookUserTasksCollectionRequestBuilder) ID(id string) *OutlookTaskRequestBuilder {
+ bb := &OutlookTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// OutlookUserTasksCollectionRequest is request for OutlookTask collection
+type OutlookUserTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OutlookTask collection
+func (r *OutlookUserTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OutlookTask collection, max N pages
+func (r *OutlookUserTasksCollectionRequest) GetN(ctx context.Context, n int) ([]OutlookTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OutlookTask collection
+func (r *OutlookUserTasksCollectionRequest) Get(ctx context.Context) ([]OutlookTask, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OutlookTask collection
+func (r *OutlookUserTasksCollectionRequest) Add(ctx context.Context, reqObj *OutlookTask) (resObj *OutlookTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionParticipant.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionParticipant.go
new file mode 100644
index 00000000..5f654253
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionParticipant.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ParticipantCollectionInviteRequestParameter undocumented
+type ParticipantCollectionInviteRequestParameter struct {
+ // Participants undocumented
+ Participants []InvitationParticipantInfo `json:"participants,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// ParticipantCollectionMuteAllRequestParameter undocumented
+type ParticipantCollectionMuteAllRequestParameter struct {
+ // Participants undocumented
+ Participants []string `json:"participants,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
+
+// ParticipantMuteRequestParameter undocumented
+type ParticipantMuteRequestParameter struct {
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPermission.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPermission.go
new file mode 100644
index 00000000..5afe100e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPermission.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PermissionGrantRequestParameter undocumented
+type PermissionGrantRequestParameter struct {
+ // Roles undocumented
+ Roles []string `json:"roles,omitempty"`
+ // Recipients undocumented
+ Recipients []DriveRecipient `json:"recipients,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go
new file mode 100644
index 00000000..65002db3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPlanner.go
@@ -0,0 +1,1271 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Buckets returns request builder for PlannerBucket collection
+func (b *PlannerRequestBuilder) Buckets() *PlannerBucketsCollectionRequestBuilder {
+ bb := &PlannerBucketsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/buckets"
+ return bb
+}
+
+// PlannerBucketsCollectionRequestBuilder is request builder for PlannerBucket collection
+type PlannerBucketsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerBucket collection
+func (b *PlannerBucketsCollectionRequestBuilder) Request() *PlannerBucketsCollectionRequest {
+ return &PlannerBucketsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerBucket item
+func (b *PlannerBucketsCollectionRequestBuilder) ID(id string) *PlannerBucketRequestBuilder {
+ bb := &PlannerBucketRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerBucketsCollectionRequest is request for PlannerBucket collection
+type PlannerBucketsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerBucket collection
+func (r *PlannerBucketsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerBucket, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerBucket
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerBucket
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerBucket collection, max N pages
+func (r *PlannerBucketsCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerBucket, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerBucket collection
+func (r *PlannerBucketsCollectionRequest) Get(ctx context.Context) ([]PlannerBucket, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerBucket collection
+func (r *PlannerBucketsCollectionRequest) Add(ctx context.Context, reqObj *PlannerBucket) (resObj *PlannerBucket, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Plans returns request builder for PlannerPlan collection
+func (b *PlannerRequestBuilder) Plans() *PlannerPlansCollectionRequestBuilder {
+ bb := &PlannerPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/plans"
+ return bb
+}
+
+// PlannerPlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerPlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerPlansCollectionRequestBuilder) Request() *PlannerPlansCollectionRequest {
+ return &PlannerPlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerPlansCollectionRequest is request for PlannerPlan collection
+type PlannerPlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerPlan collection, max N pages
+func (r *PlannerPlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tasks returns request builder for PlannerTask collection
+func (b *PlannerRequestBuilder) Tasks() *PlannerTasksCollectionRequestBuilder {
+ bb := &PlannerTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// PlannerTasksCollectionRequestBuilder is request builder for PlannerTask collection
+type PlannerTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerTask collection
+func (b *PlannerTasksCollectionRequestBuilder) Request() *PlannerTasksCollectionRequest {
+ return &PlannerTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerTask item
+func (b *PlannerTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder {
+ bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerTasksCollectionRequest is request for PlannerTask collection
+type PlannerTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerTask collection
+func (r *PlannerTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerTask collection, max N pages
+func (r *PlannerTasksCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerTask collection
+func (r *PlannerTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tasks returns request builder for PlannerTask collection
+func (b *PlannerBucketRequestBuilder) Tasks() *PlannerBucketTasksCollectionRequestBuilder {
+ bb := &PlannerBucketTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// PlannerBucketTasksCollectionRequestBuilder is request builder for PlannerTask collection
+type PlannerBucketTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerTask collection
+func (b *PlannerBucketTasksCollectionRequestBuilder) Request() *PlannerBucketTasksCollectionRequest {
+ return &PlannerBucketTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerTask item
+func (b *PlannerBucketTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder {
+ bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerBucketTasksCollectionRequest is request for PlannerTask collection
+type PlannerBucketTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerTask collection
+func (r *PlannerBucketTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerTask collection, max N pages
+func (r *PlannerBucketTasksCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerBucketTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerTask collection
+func (r *PlannerBucketTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Plans returns request builder for PlannerPlan collection
+func (b *PlannerGroupRequestBuilder) Plans() *PlannerGroupPlansCollectionRequestBuilder {
+ bb := &PlannerGroupPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/plans"
+ return bb
+}
+
+// PlannerGroupPlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerGroupPlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerGroupPlansCollectionRequestBuilder) Request() *PlannerGroupPlansCollectionRequest {
+ return &PlannerGroupPlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerGroupPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerGroupPlansCollectionRequest is request for PlannerPlan collection
+type PlannerGroupPlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerGroupPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerPlan collection, max N pages
+func (r *PlannerGroupPlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerGroupPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerGroupPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Buckets returns request builder for PlannerBucket collection
+func (b *PlannerPlanRequestBuilder) Buckets() *PlannerPlanBucketsCollectionRequestBuilder {
+ bb := &PlannerPlanBucketsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/buckets"
+ return bb
+}
+
+// PlannerPlanBucketsCollectionRequestBuilder is request builder for PlannerBucket collection
+type PlannerPlanBucketsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerBucket collection
+func (b *PlannerPlanBucketsCollectionRequestBuilder) Request() *PlannerPlanBucketsCollectionRequest {
+ return &PlannerPlanBucketsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerBucket item
+func (b *PlannerPlanBucketsCollectionRequestBuilder) ID(id string) *PlannerBucketRequestBuilder {
+ bb := &PlannerBucketRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerPlanBucketsCollectionRequest is request for PlannerBucket collection
+type PlannerPlanBucketsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerBucket collection
+func (r *PlannerPlanBucketsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerBucket, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerBucket
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerBucket
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerBucket collection, max N pages
+func (r *PlannerPlanBucketsCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerBucket, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerBucket collection
+func (r *PlannerPlanBucketsCollectionRequest) Get(ctx context.Context) ([]PlannerBucket, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerBucket collection
+func (r *PlannerPlanBucketsCollectionRequest) Add(ctx context.Context, reqObj *PlannerBucket) (resObj *PlannerBucket, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Details is navigation property
+func (b *PlannerPlanRequestBuilder) Details() *PlannerPlanDetailsRequestBuilder {
+ bb := &PlannerPlanDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/details"
+ return bb
+}
+
+// Tasks returns request builder for PlannerTask collection
+func (b *PlannerPlanRequestBuilder) Tasks() *PlannerPlanTasksCollectionRequestBuilder {
+ bb := &PlannerPlanTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// PlannerPlanTasksCollectionRequestBuilder is request builder for PlannerTask collection
+type PlannerPlanTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerTask collection
+func (b *PlannerPlanTasksCollectionRequestBuilder) Request() *PlannerPlanTasksCollectionRequest {
+ return &PlannerPlanTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerTask item
+func (b *PlannerPlanTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder {
+ bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerPlanTasksCollectionRequest is request for PlannerTask collection
+type PlannerPlanTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerTask collection
+func (r *PlannerPlanTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerTask collection, max N pages
+func (r *PlannerPlanTasksCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerPlanTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerTask collection
+func (r *PlannerPlanTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AssignedToTaskBoardFormat is navigation property
+func (b *PlannerTaskRequestBuilder) AssignedToTaskBoardFormat() *PlannerAssignedToTaskBoardTaskFormatRequestBuilder {
+ bb := &PlannerAssignedToTaskBoardTaskFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignedToTaskBoardFormat"
+ return bb
+}
+
+// BucketTaskBoardFormat is navigation property
+func (b *PlannerTaskRequestBuilder) BucketTaskBoardFormat() *PlannerBucketTaskBoardTaskFormatRequestBuilder {
+ bb := &PlannerBucketTaskBoardTaskFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bucketTaskBoardFormat"
+ return bb
+}
+
+// Details is navigation property
+func (b *PlannerTaskRequestBuilder) Details() *PlannerTaskDetailsRequestBuilder {
+ bb := &PlannerTaskDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/details"
+ return bb
+}
+
+// ProgressTaskBoardFormat is navigation property
+func (b *PlannerTaskRequestBuilder) ProgressTaskBoardFormat() *PlannerProgressTaskBoardTaskFormatRequestBuilder {
+ bb := &PlannerProgressTaskBoardTaskFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/progressTaskBoardFormat"
+ return bb
+}
+
+// All returns request builder for PlannerDelta collection
+func (b *PlannerUserRequestBuilder) All() *PlannerUserAllCollectionRequestBuilder {
+ bb := &PlannerUserAllCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/all"
+ return bb
+}
+
+// PlannerUserAllCollectionRequestBuilder is request builder for PlannerDelta collection
+type PlannerUserAllCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerDelta collection
+func (b *PlannerUserAllCollectionRequestBuilder) Request() *PlannerUserAllCollectionRequest {
+ return &PlannerUserAllCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerDelta item
+func (b *PlannerUserAllCollectionRequestBuilder) ID(id string) *PlannerDeltaRequestBuilder {
+ bb := &PlannerDeltaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserAllCollectionRequest is request for PlannerDelta collection
+type PlannerUserAllCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerDelta collection
+func (r *PlannerUserAllCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerDelta, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerDelta
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerDelta
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerDelta collection, max N pages
+func (r *PlannerUserAllCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerDelta, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerDelta collection
+func (r *PlannerUserAllCollectionRequest) Get(ctx context.Context) ([]PlannerDelta, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerDelta collection
+func (r *PlannerUserAllCollectionRequest) Add(ctx context.Context, reqObj *PlannerDelta) (resObj *PlannerDelta, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FavoritePlans returns request builder for PlannerPlan collection
+func (b *PlannerUserRequestBuilder) FavoritePlans() *PlannerUserFavoritePlansCollectionRequestBuilder {
+ bb := &PlannerUserFavoritePlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/favoritePlans"
+ return bb
+}
+
+// PlannerUserFavoritePlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerUserFavoritePlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerUserFavoritePlansCollectionRequestBuilder) Request() *PlannerUserFavoritePlansCollectionRequest {
+ return &PlannerUserFavoritePlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerUserFavoritePlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserFavoritePlansCollectionRequest is request for PlannerPlan collection
+type PlannerUserFavoritePlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerUserFavoritePlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerPlan collection, max N pages
+func (r *PlannerUserFavoritePlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerUserFavoritePlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerUserFavoritePlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Plans returns request builder for PlannerPlan collection
+func (b *PlannerUserRequestBuilder) Plans() *PlannerUserPlansCollectionRequestBuilder {
+ bb := &PlannerUserPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/plans"
+ return bb
+}
+
+// PlannerUserPlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerUserPlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerUserPlansCollectionRequestBuilder) Request() *PlannerUserPlansCollectionRequest {
+ return &PlannerUserPlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerUserPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserPlansCollectionRequest is request for PlannerPlan collection
+type PlannerUserPlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerUserPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerPlan collection, max N pages
+func (r *PlannerUserPlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerUserPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerUserPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RecentPlans returns request builder for PlannerPlan collection
+func (b *PlannerUserRequestBuilder) RecentPlans() *PlannerUserRecentPlansCollectionRequestBuilder {
+ bb := &PlannerUserRecentPlansCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/recentPlans"
+ return bb
+}
+
+// PlannerUserRecentPlansCollectionRequestBuilder is request builder for PlannerPlan collection
+type PlannerUserRecentPlansCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerPlan collection
+func (b *PlannerUserRecentPlansCollectionRequestBuilder) Request() *PlannerUserRecentPlansCollectionRequest {
+ return &PlannerUserRecentPlansCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerPlan item
+func (b *PlannerUserRecentPlansCollectionRequestBuilder) ID(id string) *PlannerPlanRequestBuilder {
+ bb := &PlannerPlanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserRecentPlansCollectionRequest is request for PlannerPlan collection
+type PlannerUserRecentPlansCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerPlan collection
+func (r *PlannerUserRecentPlansCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerPlan, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerPlan
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerPlan
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerPlan collection, max N pages
+func (r *PlannerUserRecentPlansCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerPlan, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerPlan collection
+func (r *PlannerUserRecentPlansCollectionRequest) Get(ctx context.Context) ([]PlannerPlan, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerPlan collection
+func (r *PlannerUserRecentPlansCollectionRequest) Add(ctx context.Context, reqObj *PlannerPlan) (resObj *PlannerPlan, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tasks returns request builder for PlannerTask collection
+func (b *PlannerUserRequestBuilder) Tasks() *PlannerUserTasksCollectionRequestBuilder {
+ bb := &PlannerUserTasksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tasks"
+ return bb
+}
+
+// PlannerUserTasksCollectionRequestBuilder is request builder for PlannerTask collection
+type PlannerUserTasksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PlannerTask collection
+func (b *PlannerUserTasksCollectionRequestBuilder) Request() *PlannerUserTasksCollectionRequest {
+ return &PlannerUserTasksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PlannerTask item
+func (b *PlannerUserTasksCollectionRequestBuilder) ID(id string) *PlannerTaskRequestBuilder {
+ bb := &PlannerTaskRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PlannerUserTasksCollectionRequest is request for PlannerTask collection
+type PlannerUserTasksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PlannerTask collection
+func (r *PlannerUserTasksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PlannerTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PlannerTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PlannerTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PlannerTask collection, max N pages
+func (r *PlannerUserTasksCollectionRequest) GetN(ctx context.Context, n int) ([]PlannerTask, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PlannerTask collection
+func (r *PlannerUserTasksCollectionRequest) Get(ctx context.Context) ([]PlannerTask, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PlannerTask collection
+func (r *PlannerUserTasksCollectionRequest) Add(ctx context.Context, reqObj *PlannerTask) (resObj *PlannerTask, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPolicy.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPolicy.go
new file mode 100644
index 00000000..6e95e806
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPolicy.go
@@ -0,0 +1,336 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PolicySetCollectionGetPolicySetsRequestParameter undocumented
+type PolicySetCollectionGetPolicySetsRequestParameter struct {
+ // PolicySetIDs undocumented
+ PolicySetIDs []string `json:"policySetIds,omitempty"`
+}
+
+// PolicySetUpdateRequestParameter undocumented
+type PolicySetUpdateRequestParameter struct {
+ // AddedPolicySetItems undocumented
+ AddedPolicySetItems []PolicySetItem `json:"addedPolicySetItems,omitempty"`
+ // UpdatedPolicySetItems undocumented
+ UpdatedPolicySetItems []PolicySetItem `json:"updatedPolicySetItems,omitempty"`
+ // DeletedPolicySetItems undocumented
+ DeletedPolicySetItems []string `json:"deletedPolicySetItems,omitempty"`
+ // Assignments undocumented
+ Assignments []PolicySetAssignment `json:"assignments,omitempty"`
+}
+
+// AppliesTo returns request builder for DirectoryObject collection
+func (b *PolicyRequestBuilder) AppliesTo() *PolicyAppliesToCollectionRequestBuilder {
+ bb := &PolicyAppliesToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appliesTo"
+ return bb
+}
+
+// PolicyAppliesToCollectionRequestBuilder is request builder for DirectoryObject collection
+type PolicyAppliesToCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *PolicyAppliesToCollectionRequestBuilder) Request() *PolicyAppliesToCollectionRequest {
+ return &PolicyAppliesToCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *PolicyAppliesToCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PolicyAppliesToCollectionRequest is request for DirectoryObject collection
+type PolicyAppliesToCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *PolicyAppliesToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *PolicyAppliesToCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *PolicyAppliesToCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *PolicyAppliesToCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for PolicySetAssignment collection
+func (b *PolicySetRequestBuilder) Assignments() *PolicySetAssignmentsCollectionRequestBuilder {
+ bb := &PolicySetAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// PolicySetAssignmentsCollectionRequestBuilder is request builder for PolicySetAssignment collection
+type PolicySetAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PolicySetAssignment collection
+func (b *PolicySetAssignmentsCollectionRequestBuilder) Request() *PolicySetAssignmentsCollectionRequest {
+ return &PolicySetAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PolicySetAssignment item
+func (b *PolicySetAssignmentsCollectionRequestBuilder) ID(id string) *PolicySetAssignmentRequestBuilder {
+ bb := &PolicySetAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PolicySetAssignmentsCollectionRequest is request for PolicySetAssignment collection
+type PolicySetAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PolicySetAssignment collection
+func (r *PolicySetAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PolicySetAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PolicySetAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PolicySetAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PolicySetAssignment collection, max N pages
+func (r *PolicySetAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]PolicySetAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PolicySetAssignment collection
+func (r *PolicySetAssignmentsCollectionRequest) Get(ctx context.Context) ([]PolicySetAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PolicySetAssignment collection
+func (r *PolicySetAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *PolicySetAssignment) (resObj *PolicySetAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Items returns request builder for PolicySetItem collection
+func (b *PolicySetRequestBuilder) Items() *PolicySetItemsCollectionRequestBuilder {
+ bb := &PolicySetItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// PolicySetItemsCollectionRequestBuilder is request builder for PolicySetItem collection
+type PolicySetItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PolicySetItem collection
+func (b *PolicySetItemsCollectionRequestBuilder) Request() *PolicySetItemsCollectionRequest {
+ return &PolicySetItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PolicySetItem item
+func (b *PolicySetItemsCollectionRequestBuilder) ID(id string) *PolicySetItemRequestBuilder {
+ bb := &PolicySetItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PolicySetItemsCollectionRequest is request for PolicySetItem collection
+type PolicySetItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PolicySetItem collection
+func (r *PolicySetItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PolicySetItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PolicySetItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PolicySetItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PolicySetItem collection, max N pages
+func (r *PolicySetItemsCollectionRequest) GetN(ctx context.Context, n int) ([]PolicySetItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PolicySetItem collection
+func (r *PolicySetItemsCollectionRequest) Get(ctx context.Context) ([]PolicySetItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PolicySetItem collection
+func (r *PolicySetItemsCollectionRequest) Add(ctx context.Context, reqObj *PolicySetItem) (resObj *PolicySetItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPost.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPost.go
new file mode 100644
index 00000000..b0b99a48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPost.go
@@ -0,0 +1,543 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PostReplyRequestParameter undocumented
+type PostReplyRequestParameter struct {
+ // Post undocumented
+ Post *Post `json:"Post,omitempty"`
+}
+
+// PostForwardRequestParameter undocumented
+type PostForwardRequestParameter struct {
+ // Comment undocumented
+ Comment *string `json:"Comment,omitempty"`
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"ToRecipients,omitempty"`
+}
+
+// Attachments returns request builder for Attachment collection
+func (b *PostRequestBuilder) Attachments() *PostAttachmentsCollectionRequestBuilder {
+ bb := &PostAttachmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/attachments"
+ return bb
+}
+
+// PostAttachmentsCollectionRequestBuilder is request builder for Attachment collection
+type PostAttachmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Attachment collection
+func (b *PostAttachmentsCollectionRequestBuilder) Request() *PostAttachmentsCollectionRequest {
+ return &PostAttachmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Attachment item
+func (b *PostAttachmentsCollectionRequestBuilder) ID(id string) *AttachmentRequestBuilder {
+ bb := &AttachmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostAttachmentsCollectionRequest is request for Attachment collection
+type PostAttachmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Attachment collection
+func (r *PostAttachmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Attachment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Attachment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Attachment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Attachment collection, max N pages
+func (r *PostAttachmentsCollectionRequest) GetN(ctx context.Context, n int) ([]Attachment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Attachment collection
+func (r *PostAttachmentsCollectionRequest) Get(ctx context.Context) ([]Attachment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Attachment collection
+func (r *PostAttachmentsCollectionRequest) Add(ctx context.Context, reqObj *Attachment) (resObj *Attachment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *PostRequestBuilder) Extensions() *PostExtensionsCollectionRequestBuilder {
+ bb := &PostExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// PostExtensionsCollectionRequestBuilder is request builder for Extension collection
+type PostExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *PostExtensionsCollectionRequestBuilder) Request() *PostExtensionsCollectionRequest {
+ return &PostExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *PostExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostExtensionsCollectionRequest is request for Extension collection
+type PostExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *PostExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Extension collection, max N pages
+func (r *PostExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Extension collection
+func (r *PostExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Extension collection
+func (r *PostExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// InReplyTo is navigation property
+func (b *PostRequestBuilder) InReplyTo() *PostRequestBuilder {
+ bb := &PostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/inReplyTo"
+ return bb
+}
+
+// Mentions returns request builder for Mention collection
+func (b *PostRequestBuilder) Mentions() *PostMentionsCollectionRequestBuilder {
+ bb := &PostMentionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mentions"
+ return bb
+}
+
+// PostMentionsCollectionRequestBuilder is request builder for Mention collection
+type PostMentionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Mention collection
+func (b *PostMentionsCollectionRequestBuilder) Request() *PostMentionsCollectionRequest {
+ return &PostMentionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Mention item
+func (b *PostMentionsCollectionRequestBuilder) ID(id string) *MentionRequestBuilder {
+ bb := &MentionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostMentionsCollectionRequest is request for Mention collection
+type PostMentionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Mention collection
+func (r *PostMentionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Mention, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Mention
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Mention
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Mention collection, max N pages
+func (r *PostMentionsCollectionRequest) GetN(ctx context.Context, n int) ([]Mention, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Mention collection
+func (r *PostMentionsCollectionRequest) Get(ctx context.Context) ([]Mention, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Mention collection
+func (r *PostMentionsCollectionRequest) Add(ctx context.Context, reqObj *Mention) (resObj *Mention, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MultiValueExtendedProperties returns request builder for MultiValueLegacyExtendedProperty collection
+func (b *PostRequestBuilder) MultiValueExtendedProperties() *PostMultiValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &PostMultiValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/multiValueExtendedProperties"
+ return bb
+}
+
+// PostMultiValueExtendedPropertiesCollectionRequestBuilder is request builder for MultiValueLegacyExtendedProperty collection
+type PostMultiValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MultiValueLegacyExtendedProperty collection
+func (b *PostMultiValueExtendedPropertiesCollectionRequestBuilder) Request() *PostMultiValueExtendedPropertiesCollectionRequest {
+ return &PostMultiValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MultiValueLegacyExtendedProperty item
+func (b *PostMultiValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *MultiValueLegacyExtendedPropertyRequestBuilder {
+ bb := &MultiValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostMultiValueExtendedPropertiesCollectionRequest is request for MultiValueLegacyExtendedProperty collection
+type PostMultiValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MultiValueLegacyExtendedProperty collection
+func (r *PostMultiValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MultiValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MultiValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MultiValueLegacyExtendedProperty collection, max N pages
+func (r *PostMultiValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]MultiValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MultiValueLegacyExtendedProperty collection
+func (r *PostMultiValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]MultiValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MultiValueLegacyExtendedProperty collection
+func (r *PostMultiValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SingleValueExtendedProperties returns request builder for SingleValueLegacyExtendedProperty collection
+func (b *PostRequestBuilder) SingleValueExtendedProperties() *PostSingleValueExtendedPropertiesCollectionRequestBuilder {
+ bb := &PostSingleValueExtendedPropertiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/singleValueExtendedProperties"
+ return bb
+}
+
+// PostSingleValueExtendedPropertiesCollectionRequestBuilder is request builder for SingleValueLegacyExtendedProperty collection
+type PostSingleValueExtendedPropertiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SingleValueLegacyExtendedProperty collection
+func (b *PostSingleValueExtendedPropertiesCollectionRequestBuilder) Request() *PostSingleValueExtendedPropertiesCollectionRequest {
+ return &PostSingleValueExtendedPropertiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SingleValueLegacyExtendedProperty item
+func (b *PostSingleValueExtendedPropertiesCollectionRequestBuilder) ID(id string) *SingleValueLegacyExtendedPropertyRequestBuilder {
+ bb := &SingleValueLegacyExtendedPropertyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PostSingleValueExtendedPropertiesCollectionRequest is request for SingleValueLegacyExtendedProperty collection
+type PostSingleValueExtendedPropertiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SingleValueLegacyExtendedProperty collection
+func (r *PostSingleValueExtendedPropertiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SingleValueLegacyExtendedProperty
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SingleValueLegacyExtendedProperty
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SingleValueLegacyExtendedProperty collection, max N pages
+func (r *PostSingleValueExtendedPropertiesCollectionRequest) GetN(ctx context.Context, n int) ([]SingleValueLegacyExtendedProperty, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SingleValueLegacyExtendedProperty collection
+func (r *PostSingleValueExtendedPropertiesCollectionRequest) Get(ctx context.Context) ([]SingleValueLegacyExtendedProperty, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SingleValueLegacyExtendedProperty collection
+func (r *PostSingleValueExtendedPropertiesCollectionRequest) Add(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPrivileged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPrivileged.go
new file mode 100644
index 00000000..d8ba9470
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPrivileged.go
@@ -0,0 +1,710 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PrivilegedSignupStatusCollectionSignUpRequestParameter undocumented
+type PrivilegedSignupStatusCollectionSignUpRequestParameter struct {
+}
+
+// PrivilegedSignupStatusCollectionCompleteSetupRequestParameter undocumented
+type PrivilegedSignupStatusCollectionCompleteSetupRequestParameter struct {
+ // TenantSetupInfo undocumented
+ TenantSetupInfo *TenantSetupInfo `json:"tenantSetupInfo,omitempty"`
+}
+
+// PrivilegedRoleSelfActivateRequestParameter undocumented
+type PrivilegedRoleSelfActivateRequestParameter struct {
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // Duration undocumented
+ Duration *string `json:"duration,omitempty"`
+ // TicketNumber undocumented
+ TicketNumber *string `json:"ticketNumber,omitempty"`
+ // TicketSystem undocumented
+ TicketSystem *string `json:"ticketSystem,omitempty"`
+}
+
+// PrivilegedRoleSelfDeactivateRequestParameter undocumented
+type PrivilegedRoleSelfDeactivateRequestParameter struct {
+}
+
+// PrivilegedRoleAssignmentMakePermanentRequestParameter undocumented
+type PrivilegedRoleAssignmentMakePermanentRequestParameter struct {
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // TicketNumber undocumented
+ TicketNumber *string `json:"ticketNumber,omitempty"`
+ // TicketSystem undocumented
+ TicketSystem *string `json:"ticketSystem,omitempty"`
+}
+
+// PrivilegedRoleAssignmentMakeEligibleRequestParameter undocumented
+type PrivilegedRoleAssignmentMakeEligibleRequestParameter struct {
+}
+
+// PrivilegedRoleAssignmentRequestObjectCancelRequestParameter undocumented
+type PrivilegedRoleAssignmentRequestObjectCancelRequestParameter struct {
+}
+
+// Resources returns request builder for GovernanceResource collection
+func (b *PrivilegedAccessRequestBuilder) Resources() *PrivilegedAccessResourcesCollectionRequestBuilder {
+ bb := &PrivilegedAccessResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resources"
+ return bb
+}
+
+// PrivilegedAccessResourcesCollectionRequestBuilder is request builder for GovernanceResource collection
+type PrivilegedAccessResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceResource collection
+func (b *PrivilegedAccessResourcesCollectionRequestBuilder) Request() *PrivilegedAccessResourcesCollectionRequest {
+ return &PrivilegedAccessResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceResource item
+func (b *PrivilegedAccessResourcesCollectionRequestBuilder) ID(id string) *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessResourcesCollectionRequest is request for GovernanceResource collection
+type PrivilegedAccessResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceResource collection
+func (r *PrivilegedAccessResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceResource collection, max N pages
+func (r *PrivilegedAccessResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceResource collection
+func (r *PrivilegedAccessResourcesCollectionRequest) Get(ctx context.Context) ([]GovernanceResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceResource collection
+func (r *PrivilegedAccessResourcesCollectionRequest) Add(ctx context.Context, reqObj *GovernanceResource) (resObj *GovernanceResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleAssignmentRequests returns request builder for GovernanceRoleAssignmentRequestObject collection
+func (b *PrivilegedAccessRequestBuilder) RoleAssignmentRequests() *PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder {
+ bb := &PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignmentRequests"
+ return bb
+}
+
+// PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject collection
+type PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignmentRequestObject collection
+func (b *PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder) Request() *PrivilegedAccessRoleAssignmentRequestsCollectionRequest {
+ return &PrivilegedAccessRoleAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignmentRequestObject item
+func (b *PrivilegedAccessRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestObjectRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessRoleAssignmentRequestsCollectionRequest is request for GovernanceRoleAssignmentRequestObject collection
+type PrivilegedAccessRoleAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignmentRequestObject collection
+func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleAssignmentRequestObject collection, max N pages
+func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject collection
+func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleAssignmentRequestObject collection
+func (r *PrivilegedAccessRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleAssignments returns request builder for GovernanceRoleAssignment collection
+func (b *PrivilegedAccessRequestBuilder) RoleAssignments() *PrivilegedAccessRoleAssignmentsCollectionRequestBuilder {
+ bb := &PrivilegedAccessRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// PrivilegedAccessRoleAssignmentsCollectionRequestBuilder is request builder for GovernanceRoleAssignment collection
+type PrivilegedAccessRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignment collection
+func (b *PrivilegedAccessRoleAssignmentsCollectionRequestBuilder) Request() *PrivilegedAccessRoleAssignmentsCollectionRequest {
+ return &PrivilegedAccessRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignment item
+func (b *PrivilegedAccessRoleAssignmentsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessRoleAssignmentsCollectionRequest is request for GovernanceRoleAssignment collection
+type PrivilegedAccessRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignment collection
+func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleAssignment collection, max N pages
+func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleAssignment collection
+func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleAssignment collection
+func (r *PrivilegedAccessRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignment) (resObj *GovernanceRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleDefinitions returns request builder for GovernanceRoleDefinition collection
+func (b *PrivilegedAccessRequestBuilder) RoleDefinitions() *PrivilegedAccessRoleDefinitionsCollectionRequestBuilder {
+ bb := &PrivilegedAccessRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinitions"
+ return bb
+}
+
+// PrivilegedAccessRoleDefinitionsCollectionRequestBuilder is request builder for GovernanceRoleDefinition collection
+type PrivilegedAccessRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleDefinition collection
+func (b *PrivilegedAccessRoleDefinitionsCollectionRequestBuilder) Request() *PrivilegedAccessRoleDefinitionsCollectionRequest {
+ return &PrivilegedAccessRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleDefinition item
+func (b *PrivilegedAccessRoleDefinitionsCollectionRequestBuilder) ID(id string) *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessRoleDefinitionsCollectionRequest is request for GovernanceRoleDefinition collection
+type PrivilegedAccessRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleDefinition collection
+func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleDefinition collection, max N pages
+func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleDefinition collection
+func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleDefinition collection
+func (r *PrivilegedAccessRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleDefinition) (resObj *GovernanceRoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleSettings returns request builder for GovernanceRoleSetting collection
+func (b *PrivilegedAccessRequestBuilder) RoleSettings() *PrivilegedAccessRoleSettingsCollectionRequestBuilder {
+ bb := &PrivilegedAccessRoleSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleSettings"
+ return bb
+}
+
+// PrivilegedAccessRoleSettingsCollectionRequestBuilder is request builder for GovernanceRoleSetting collection
+type PrivilegedAccessRoleSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleSetting collection
+func (b *PrivilegedAccessRoleSettingsCollectionRequestBuilder) Request() *PrivilegedAccessRoleSettingsCollectionRequest {
+ return &PrivilegedAccessRoleSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleSetting item
+func (b *PrivilegedAccessRoleSettingsCollectionRequestBuilder) ID(id string) *GovernanceRoleSettingRequestBuilder {
+ bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedAccessRoleSettingsCollectionRequest is request for GovernanceRoleSetting collection
+type PrivilegedAccessRoleSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleSetting collection
+func (r *PrivilegedAccessRoleSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleSetting collection, max N pages
+func (r *PrivilegedAccessRoleSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleSetting collection
+func (r *PrivilegedAccessRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleSetting collection
+func (r *PrivilegedAccessRoleSettingsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleSetting) (resObj *GovernanceRoleSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RequestNavigation is navigation property
+func (b *PrivilegedApprovalRequestBuilder) RequestNavigation() *PrivilegedRoleAssignmentRequestObjectRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/request"
+ return bb
+}
+
+// RoleInfo is navigation property
+func (b *PrivilegedApprovalRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder {
+ bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleInfo"
+ return bb
+}
+
+// Assignments returns request builder for PrivilegedRoleAssignment collection
+func (b *PrivilegedRoleRequestBuilder) Assignments() *PrivilegedRoleAssignmentsCollectionRequestBuilder {
+ bb := &PrivilegedRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// PrivilegedRoleAssignmentsCollectionRequestBuilder is request builder for PrivilegedRoleAssignment collection
+type PrivilegedRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedRoleAssignment collection
+func (b *PrivilegedRoleAssignmentsCollectionRequestBuilder) Request() *PrivilegedRoleAssignmentsCollectionRequest {
+ return &PrivilegedRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedRoleAssignment item
+func (b *PrivilegedRoleAssignmentsCollectionRequestBuilder) ID(id string) *PrivilegedRoleAssignmentRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PrivilegedRoleAssignmentsCollectionRequest is request for PrivilegedRoleAssignment collection
+type PrivilegedRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedRoleAssignment collection
+func (r *PrivilegedRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PrivilegedRoleAssignment collection, max N pages
+func (r *PrivilegedRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PrivilegedRoleAssignment collection
+func (r *PrivilegedRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PrivilegedRoleAssignment collection
+func (r *PrivilegedRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRoleAssignment) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings is navigation property
+func (b *PrivilegedRoleRequestBuilder) Settings() *PrivilegedRoleSettingsRequestBuilder {
+ bb := &PrivilegedRoleSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// Summary is navigation property
+func (b *PrivilegedRoleRequestBuilder) Summary() *PrivilegedRoleSummaryRequestBuilder {
+ bb := &PrivilegedRoleSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/summary"
+ return bb
+}
+
+// RoleInfo is navigation property
+func (b *PrivilegedRoleAssignmentRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder {
+ bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleInfo"
+ return bb
+}
+
+// RoleInfo is navigation property
+func (b *PrivilegedRoleAssignmentRequestObjectRequestBuilder) RoleInfo() *PrivilegedRoleRequestBuilder {
+ bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleInfo"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionProfile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionProfile.go
new file mode 100644
index 00000000..d640b0a6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionProfile.go
@@ -0,0 +1,1338 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Account returns request builder for UserAccountInformation collection
+func (b *ProfileRequestBuilder) Account() *ProfileAccountCollectionRequestBuilder {
+ bb := &ProfileAccountCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// ProfileAccountCollectionRequestBuilder is request builder for UserAccountInformation collection
+type ProfileAccountCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserAccountInformation collection
+func (b *ProfileAccountCollectionRequestBuilder) Request() *ProfileAccountCollectionRequest {
+ return &ProfileAccountCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserAccountInformation item
+func (b *ProfileAccountCollectionRequestBuilder) ID(id string) *UserAccountInformationRequestBuilder {
+ bb := &UserAccountInformationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileAccountCollectionRequest is request for UserAccountInformation collection
+type ProfileAccountCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserAccountInformation collection
+func (r *ProfileAccountCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserAccountInformation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserAccountInformation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserAccountInformation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserAccountInformation collection, max N pages
+func (r *ProfileAccountCollectionRequest) GetN(ctx context.Context, n int) ([]UserAccountInformation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserAccountInformation collection
+func (r *ProfileAccountCollectionRequest) Get(ctx context.Context) ([]UserAccountInformation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserAccountInformation collection
+func (r *ProfileAccountCollectionRequest) Add(ctx context.Context, reqObj *UserAccountInformation) (resObj *UserAccountInformation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Anniversaries returns request builder for PersonAnniversary collection
+func (b *ProfileRequestBuilder) Anniversaries() *ProfileAnniversariesCollectionRequestBuilder {
+ bb := &ProfileAnniversariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/anniversaries"
+ return bb
+}
+
+// ProfileAnniversariesCollectionRequestBuilder is request builder for PersonAnniversary collection
+type ProfileAnniversariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PersonAnniversary collection
+func (b *ProfileAnniversariesCollectionRequestBuilder) Request() *ProfileAnniversariesCollectionRequest {
+ return &ProfileAnniversariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PersonAnniversary item
+func (b *ProfileAnniversariesCollectionRequestBuilder) ID(id string) *PersonAnniversaryRequestBuilder {
+ bb := &PersonAnniversaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileAnniversariesCollectionRequest is request for PersonAnniversary collection
+type ProfileAnniversariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PersonAnniversary collection
+func (r *ProfileAnniversariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PersonAnniversary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PersonAnniversary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PersonAnniversary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PersonAnniversary collection, max N pages
+func (r *ProfileAnniversariesCollectionRequest) GetN(ctx context.Context, n int) ([]PersonAnniversary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PersonAnniversary collection
+func (r *ProfileAnniversariesCollectionRequest) Get(ctx context.Context) ([]PersonAnniversary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PersonAnniversary collection
+func (r *ProfileAnniversariesCollectionRequest) Add(ctx context.Context, reqObj *PersonAnniversary) (resObj *PersonAnniversary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// EducationalActivities returns request builder for EducationalActivity collection
+func (b *ProfileRequestBuilder) EducationalActivities() *ProfileEducationalActivitiesCollectionRequestBuilder {
+ bb := &ProfileEducationalActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/educationalActivities"
+ return bb
+}
+
+// ProfileEducationalActivitiesCollectionRequestBuilder is request builder for EducationalActivity collection
+type ProfileEducationalActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for EducationalActivity collection
+func (b *ProfileEducationalActivitiesCollectionRequestBuilder) Request() *ProfileEducationalActivitiesCollectionRequest {
+ return &ProfileEducationalActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for EducationalActivity item
+func (b *ProfileEducationalActivitiesCollectionRequestBuilder) ID(id string) *EducationalActivityRequestBuilder {
+ bb := &EducationalActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileEducationalActivitiesCollectionRequest is request for EducationalActivity collection
+type ProfileEducationalActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for EducationalActivity collection
+func (r *ProfileEducationalActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationalActivity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationalActivity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationalActivity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for EducationalActivity collection, max N pages
+func (r *ProfileEducationalActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]EducationalActivity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for EducationalActivity collection
+func (r *ProfileEducationalActivitiesCollectionRequest) Get(ctx context.Context) ([]EducationalActivity, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for EducationalActivity collection
+func (r *ProfileEducationalActivitiesCollectionRequest) Add(ctx context.Context, reqObj *EducationalActivity) (resObj *EducationalActivity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Emails returns request builder for ItemEmail collection
+func (b *ProfileRequestBuilder) Emails() *ProfileEmailsCollectionRequestBuilder {
+ bb := &ProfileEmailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/emails"
+ return bb
+}
+
+// ProfileEmailsCollectionRequestBuilder is request builder for ItemEmail collection
+type ProfileEmailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemEmail collection
+func (b *ProfileEmailsCollectionRequestBuilder) Request() *ProfileEmailsCollectionRequest {
+ return &ProfileEmailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemEmail item
+func (b *ProfileEmailsCollectionRequestBuilder) ID(id string) *ItemEmailRequestBuilder {
+ bb := &ItemEmailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileEmailsCollectionRequest is request for ItemEmail collection
+type ProfileEmailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemEmail collection
+func (r *ProfileEmailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemEmail, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemEmail
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemEmail
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ItemEmail collection, max N pages
+func (r *ProfileEmailsCollectionRequest) GetN(ctx context.Context, n int) ([]ItemEmail, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ItemEmail collection
+func (r *ProfileEmailsCollectionRequest) Get(ctx context.Context) ([]ItemEmail, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ItemEmail collection
+func (r *ProfileEmailsCollectionRequest) Add(ctx context.Context, reqObj *ItemEmail) (resObj *ItemEmail, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Interests returns request builder for PersonInterest collection
+func (b *ProfileRequestBuilder) Interests() *ProfileInterestsCollectionRequestBuilder {
+ bb := &ProfileInterestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/interests"
+ return bb
+}
+
+// ProfileInterestsCollectionRequestBuilder is request builder for PersonInterest collection
+type ProfileInterestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PersonInterest collection
+func (b *ProfileInterestsCollectionRequestBuilder) Request() *ProfileInterestsCollectionRequest {
+ return &ProfileInterestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PersonInterest item
+func (b *ProfileInterestsCollectionRequestBuilder) ID(id string) *PersonInterestRequestBuilder {
+ bb := &PersonInterestRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileInterestsCollectionRequest is request for PersonInterest collection
+type ProfileInterestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PersonInterest collection
+func (r *ProfileInterestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PersonInterest, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PersonInterest
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PersonInterest
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PersonInterest collection, max N pages
+func (r *ProfileInterestsCollectionRequest) GetN(ctx context.Context, n int) ([]PersonInterest, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PersonInterest collection
+func (r *ProfileInterestsCollectionRequest) Get(ctx context.Context) ([]PersonInterest, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PersonInterest collection
+func (r *ProfileInterestsCollectionRequest) Add(ctx context.Context, reqObj *PersonInterest) (resObj *PersonInterest, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Languages returns request builder for LanguageProficiency collection
+func (b *ProfileRequestBuilder) Languages() *ProfileLanguagesCollectionRequestBuilder {
+ bb := &ProfileLanguagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/languages"
+ return bb
+}
+
+// ProfileLanguagesCollectionRequestBuilder is request builder for LanguageProficiency collection
+type ProfileLanguagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LanguageProficiency collection
+func (b *ProfileLanguagesCollectionRequestBuilder) Request() *ProfileLanguagesCollectionRequest {
+ return &ProfileLanguagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LanguageProficiency item
+func (b *ProfileLanguagesCollectionRequestBuilder) ID(id string) *LanguageProficiencyRequestBuilder {
+ bb := &LanguageProficiencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileLanguagesCollectionRequest is request for LanguageProficiency collection
+type ProfileLanguagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LanguageProficiency collection
+func (r *ProfileLanguagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LanguageProficiency, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LanguageProficiency
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LanguageProficiency
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for LanguageProficiency collection, max N pages
+func (r *ProfileLanguagesCollectionRequest) GetN(ctx context.Context, n int) ([]LanguageProficiency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for LanguageProficiency collection
+func (r *ProfileLanguagesCollectionRequest) Get(ctx context.Context) ([]LanguageProficiency, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for LanguageProficiency collection
+func (r *ProfileLanguagesCollectionRequest) Add(ctx context.Context, reqObj *LanguageProficiency) (resObj *LanguageProficiency, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Names returns request builder for PersonName collection
+func (b *ProfileRequestBuilder) Names() *ProfileNamesCollectionRequestBuilder {
+ bb := &ProfileNamesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/names"
+ return bb
+}
+
+// ProfileNamesCollectionRequestBuilder is request builder for PersonName collection
+type ProfileNamesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PersonName collection
+func (b *ProfileNamesCollectionRequestBuilder) Request() *ProfileNamesCollectionRequest {
+ return &ProfileNamesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PersonName item
+func (b *ProfileNamesCollectionRequestBuilder) ID(id string) *PersonNameRequestBuilder {
+ bb := &PersonNameRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileNamesCollectionRequest is request for PersonName collection
+type ProfileNamesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PersonName collection
+func (r *ProfileNamesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PersonName, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PersonName
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PersonName
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PersonName collection, max N pages
+func (r *ProfileNamesCollectionRequest) GetN(ctx context.Context, n int) ([]PersonName, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PersonName collection
+func (r *ProfileNamesCollectionRequest) Get(ctx context.Context) ([]PersonName, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PersonName collection
+func (r *ProfileNamesCollectionRequest) Add(ctx context.Context, reqObj *PersonName) (resObj *PersonName, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Phones returns request builder for ItemPhone collection
+func (b *ProfileRequestBuilder) Phones() *ProfilePhonesCollectionRequestBuilder {
+ bb := &ProfilePhonesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/phones"
+ return bb
+}
+
+// ProfilePhonesCollectionRequestBuilder is request builder for ItemPhone collection
+type ProfilePhonesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ItemPhone collection
+func (b *ProfilePhonesCollectionRequestBuilder) Request() *ProfilePhonesCollectionRequest {
+ return &ProfilePhonesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ItemPhone item
+func (b *ProfilePhonesCollectionRequestBuilder) ID(id string) *ItemPhoneRequestBuilder {
+ bb := &ItemPhoneRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfilePhonesCollectionRequest is request for ItemPhone collection
+type ProfilePhonesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ItemPhone collection
+func (r *ProfilePhonesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ItemPhone, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ItemPhone
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ItemPhone
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ItemPhone collection, max N pages
+func (r *ProfilePhonesCollectionRequest) GetN(ctx context.Context, n int) ([]ItemPhone, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ItemPhone collection
+func (r *ProfilePhonesCollectionRequest) Get(ctx context.Context) ([]ItemPhone, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ItemPhone collection
+func (r *ProfilePhonesCollectionRequest) Add(ctx context.Context, reqObj *ItemPhone) (resObj *ItemPhone, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Positions returns request builder for WorkPosition collection
+func (b *ProfileRequestBuilder) Positions() *ProfilePositionsCollectionRequestBuilder {
+ bb := &ProfilePositionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/positions"
+ return bb
+}
+
+// ProfilePositionsCollectionRequestBuilder is request builder for WorkPosition collection
+type ProfilePositionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkPosition collection
+func (b *ProfilePositionsCollectionRequestBuilder) Request() *ProfilePositionsCollectionRequest {
+ return &ProfilePositionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkPosition item
+func (b *ProfilePositionsCollectionRequestBuilder) ID(id string) *WorkPositionRequestBuilder {
+ bb := &WorkPositionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfilePositionsCollectionRequest is request for WorkPosition collection
+type ProfilePositionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkPosition collection
+func (r *ProfilePositionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkPosition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkPosition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkPosition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkPosition collection, max N pages
+func (r *ProfilePositionsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkPosition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkPosition collection
+func (r *ProfilePositionsCollectionRequest) Get(ctx context.Context) ([]WorkPosition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkPosition collection
+func (r *ProfilePositionsCollectionRequest) Add(ctx context.Context, reqObj *WorkPosition) (resObj *WorkPosition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Projects returns request builder for ProjectParticipation collection
+func (b *ProfileRequestBuilder) Projects() *ProfileProjectsCollectionRequestBuilder {
+ bb := &ProfileProjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/projects"
+ return bb
+}
+
+// ProfileProjectsCollectionRequestBuilder is request builder for ProjectParticipation collection
+type ProfileProjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProjectParticipation collection
+func (b *ProfileProjectsCollectionRequestBuilder) Request() *ProfileProjectsCollectionRequest {
+ return &ProfileProjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProjectParticipation item
+func (b *ProfileProjectsCollectionRequestBuilder) ID(id string) *ProjectParticipationRequestBuilder {
+ bb := &ProjectParticipationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileProjectsCollectionRequest is request for ProjectParticipation collection
+type ProfileProjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProjectParticipation collection
+func (r *ProfileProjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProjectParticipation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProjectParticipation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProjectParticipation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ProjectParticipation collection, max N pages
+func (r *ProfileProjectsCollectionRequest) GetN(ctx context.Context, n int) ([]ProjectParticipation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ProjectParticipation collection
+func (r *ProfileProjectsCollectionRequest) Get(ctx context.Context) ([]ProjectParticipation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ProjectParticipation collection
+func (r *ProfileProjectsCollectionRequest) Add(ctx context.Context, reqObj *ProjectParticipation) (resObj *ProjectParticipation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Skills returns request builder for SkillProficiency collection
+func (b *ProfileRequestBuilder) Skills() *ProfileSkillsCollectionRequestBuilder {
+ bb := &ProfileSkillsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/skills"
+ return bb
+}
+
+// ProfileSkillsCollectionRequestBuilder is request builder for SkillProficiency collection
+type ProfileSkillsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SkillProficiency collection
+func (b *ProfileSkillsCollectionRequestBuilder) Request() *ProfileSkillsCollectionRequest {
+ return &ProfileSkillsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SkillProficiency item
+func (b *ProfileSkillsCollectionRequestBuilder) ID(id string) *SkillProficiencyRequestBuilder {
+ bb := &SkillProficiencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileSkillsCollectionRequest is request for SkillProficiency collection
+type ProfileSkillsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SkillProficiency collection
+func (r *ProfileSkillsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SkillProficiency, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SkillProficiency
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SkillProficiency
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SkillProficiency collection, max N pages
+func (r *ProfileSkillsCollectionRequest) GetN(ctx context.Context, n int) ([]SkillProficiency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SkillProficiency collection
+func (r *ProfileSkillsCollectionRequest) Get(ctx context.Context) ([]SkillProficiency, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SkillProficiency collection
+func (r *ProfileSkillsCollectionRequest) Add(ctx context.Context, reqObj *SkillProficiency) (resObj *SkillProficiency, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WebAccounts returns request builder for WebAccount collection
+func (b *ProfileRequestBuilder) WebAccounts() *ProfileWebAccountsCollectionRequestBuilder {
+ bb := &ProfileWebAccountsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/webAccounts"
+ return bb
+}
+
+// ProfileWebAccountsCollectionRequestBuilder is request builder for WebAccount collection
+type ProfileWebAccountsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WebAccount collection
+func (b *ProfileWebAccountsCollectionRequestBuilder) Request() *ProfileWebAccountsCollectionRequest {
+ return &ProfileWebAccountsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WebAccount item
+func (b *ProfileWebAccountsCollectionRequestBuilder) ID(id string) *WebAccountRequestBuilder {
+ bb := &WebAccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileWebAccountsCollectionRequest is request for WebAccount collection
+type ProfileWebAccountsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WebAccount collection
+func (r *ProfileWebAccountsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WebAccount, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WebAccount
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WebAccount
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WebAccount collection, max N pages
+func (r *ProfileWebAccountsCollectionRequest) GetN(ctx context.Context, n int) ([]WebAccount, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WebAccount collection
+func (r *ProfileWebAccountsCollectionRequest) Get(ctx context.Context) ([]WebAccount, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WebAccount collection
+func (r *ProfileWebAccountsCollectionRequest) Add(ctx context.Context, reqObj *WebAccount) (resObj *WebAccount, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Websites returns request builder for PersonWebsite collection
+func (b *ProfileRequestBuilder) Websites() *ProfileWebsitesCollectionRequestBuilder {
+ bb := &ProfileWebsitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/websites"
+ return bb
+}
+
+// ProfileWebsitesCollectionRequestBuilder is request builder for PersonWebsite collection
+type ProfileWebsitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PersonWebsite collection
+func (b *ProfileWebsitesCollectionRequestBuilder) Request() *ProfileWebsitesCollectionRequest {
+ return &ProfileWebsitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PersonWebsite item
+func (b *ProfileWebsitesCollectionRequestBuilder) ID(id string) *PersonWebsiteRequestBuilder {
+ bb := &PersonWebsiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProfileWebsitesCollectionRequest is request for PersonWebsite collection
+type ProfileWebsitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PersonWebsite collection
+func (r *ProfileWebsitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PersonWebsite, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PersonWebsite
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PersonWebsite
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PersonWebsite collection, max N pages
+func (r *ProfileWebsitesCollectionRequest) GetN(ctx context.Context, n int) ([]PersonWebsite, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PersonWebsite collection
+func (r *ProfileWebsitesCollectionRequest) Get(ctx context.Context) ([]PersonWebsite, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PersonWebsite collection
+func (r *ProfileWebsitesCollectionRequest) Add(ctx context.Context, reqObj *PersonWebsite) (resObj *PersonWebsite, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionProgram.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionProgram.go
new file mode 100644
index 00000000..159823b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionProgram.go
@@ -0,0 +1,121 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Controls returns request builder for ProgramControl collection
+func (b *ProgramRequestBuilder) Controls() *ProgramControlsCollectionRequestBuilder {
+ bb := &ProgramControlsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/controls"
+ return bb
+}
+
+// ProgramControlsCollectionRequestBuilder is request builder for ProgramControl collection
+type ProgramControlsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProgramControl collection
+func (b *ProgramControlsCollectionRequestBuilder) Request() *ProgramControlsCollectionRequest {
+ return &ProgramControlsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProgramControl item
+func (b *ProgramControlsCollectionRequestBuilder) ID(id string) *ProgramControlRequestBuilder {
+ bb := &ProgramControlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ProgramControlsCollectionRequest is request for ProgramControl collection
+type ProgramControlsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProgramControl collection
+func (r *ProgramControlsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProgramControl, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProgramControl
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProgramControl
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ProgramControl collection, max N pages
+func (r *ProgramControlsCollectionRequest) GetN(ctx context.Context, n int) ([]ProgramControl, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ProgramControl collection
+func (r *ProgramControlsCollectionRequest) Get(ctx context.Context) ([]ProgramControl, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ProgramControl collection
+func (r *ProgramControlsCollectionRequest) Add(ctx context.Context, reqObj *ProgramControl) (resObj *ProgramControl, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Program is navigation property
+func (b *ProgramControlRequestBuilder) Program() *ProgramRequestBuilder {
+ bb := &ProgramRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/program"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPublished.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPublished.go
new file mode 100644
index 00000000..26c579d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPublished.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AgentGroups returns request builder for OnPremisesAgentGroup collection
+func (b *PublishedResourceRequestBuilder) AgentGroups() *PublishedResourceAgentGroupsCollectionRequestBuilder {
+ bb := &PublishedResourceAgentGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agentGroups"
+ return bb
+}
+
+// PublishedResourceAgentGroupsCollectionRequestBuilder is request builder for OnPremisesAgentGroup collection
+type PublishedResourceAgentGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesAgentGroup collection
+func (b *PublishedResourceAgentGroupsCollectionRequestBuilder) Request() *PublishedResourceAgentGroupsCollectionRequest {
+ return &PublishedResourceAgentGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesAgentGroup item
+func (b *PublishedResourceAgentGroupsCollectionRequestBuilder) ID(id string) *OnPremisesAgentGroupRequestBuilder {
+ bb := &OnPremisesAgentGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PublishedResourceAgentGroupsCollectionRequest is request for OnPremisesAgentGroup collection
+type PublishedResourceAgentGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesAgentGroup collection
+func (r *PublishedResourceAgentGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesAgentGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesAgentGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesAgentGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnPremisesAgentGroup collection, max N pages
+func (r *PublishedResourceAgentGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesAgentGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnPremisesAgentGroup collection
+func (r *PublishedResourceAgentGroupsCollectionRequest) Get(ctx context.Context) ([]OnPremisesAgentGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnPremisesAgentGroup collection
+func (r *PublishedResourceAgentGroupsCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesAgentGroup) (resObj *OnPremisesAgentGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionPurchase.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPurchase.go
new file mode 100644
index 00000000..67ee6983
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionPurchase.go
@@ -0,0 +1,146 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PurchaseInvoicePostRequestParameter undocumented
+type PurchaseInvoicePostRequestParameter struct {
+}
+
+// Currency is navigation property
+func (b *PurchaseInvoiceRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// PurchaseInvoiceLines returns request builder for PurchaseInvoiceLine collection
+func (b *PurchaseInvoiceRequestBuilder) PurchaseInvoiceLines() *PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder {
+ bb := &PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/purchaseInvoiceLines"
+ return bb
+}
+
+// PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder is request builder for PurchaseInvoiceLine collection
+type PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PurchaseInvoiceLine collection
+func (b *PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder) Request() *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest {
+ return &PurchaseInvoicePurchaseInvoiceLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PurchaseInvoiceLine item
+func (b *PurchaseInvoicePurchaseInvoiceLinesCollectionRequestBuilder) ID(id string) *PurchaseInvoiceLineRequestBuilder {
+ bb := &PurchaseInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// PurchaseInvoicePurchaseInvoiceLinesCollectionRequest is request for PurchaseInvoiceLine collection
+type PurchaseInvoicePurchaseInvoiceLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PurchaseInvoiceLine collection
+func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PurchaseInvoiceLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PurchaseInvoiceLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PurchaseInvoiceLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PurchaseInvoiceLine collection, max N pages
+func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) GetN(ctx context.Context, n int) ([]PurchaseInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PurchaseInvoiceLine collection
+func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]PurchaseInvoiceLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PurchaseInvoiceLine collection
+func (r *PurchaseInvoicePurchaseInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *PurchaseInvoiceLine) (resObj *PurchaseInvoiceLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Vendor is navigation property
+func (b *PurchaseInvoiceRequestBuilder) Vendor() *VendorRequestBuilder {
+ bb := &VendorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/vendor"
+ return bb
+}
+
+// Account is navigation property
+func (b *PurchaseInvoiceLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *PurchaseInvoiceLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRbac.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRbac.go
new file mode 100644
index 00000000..b7af584f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRbac.go
@@ -0,0 +1,216 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RoleAssignments returns request builder for UnifiedRoleAssignment collection
+func (b *RbacApplicationRequestBuilder) RoleAssignments() *RbacApplicationRoleAssignmentsCollectionRequestBuilder {
+ bb := &RbacApplicationRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// RbacApplicationRoleAssignmentsCollectionRequestBuilder is request builder for UnifiedRoleAssignment collection
+type RbacApplicationRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UnifiedRoleAssignment collection
+func (b *RbacApplicationRoleAssignmentsCollectionRequestBuilder) Request() *RbacApplicationRoleAssignmentsCollectionRequest {
+ return &RbacApplicationRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UnifiedRoleAssignment item
+func (b *RbacApplicationRoleAssignmentsCollectionRequestBuilder) ID(id string) *UnifiedRoleAssignmentRequestBuilder {
+ bb := &UnifiedRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RbacApplicationRoleAssignmentsCollectionRequest is request for UnifiedRoleAssignment collection
+type RbacApplicationRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UnifiedRoleAssignment collection
+func (r *RbacApplicationRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UnifiedRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UnifiedRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UnifiedRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UnifiedRoleAssignment collection, max N pages
+func (r *RbacApplicationRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]UnifiedRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UnifiedRoleAssignment collection
+func (r *RbacApplicationRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]UnifiedRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UnifiedRoleAssignment collection
+func (r *RbacApplicationRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *UnifiedRoleAssignment) (resObj *UnifiedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RoleDefinitions returns request builder for UnifiedRoleDefinition collection
+func (b *RbacApplicationRequestBuilder) RoleDefinitions() *RbacApplicationRoleDefinitionsCollectionRequestBuilder {
+ bb := &RbacApplicationRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinitions"
+ return bb
+}
+
+// RbacApplicationRoleDefinitionsCollectionRequestBuilder is request builder for UnifiedRoleDefinition collection
+type RbacApplicationRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UnifiedRoleDefinition collection
+func (b *RbacApplicationRoleDefinitionsCollectionRequestBuilder) Request() *RbacApplicationRoleDefinitionsCollectionRequest {
+ return &RbacApplicationRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UnifiedRoleDefinition item
+func (b *RbacApplicationRoleDefinitionsCollectionRequestBuilder) ID(id string) *UnifiedRoleDefinitionRequestBuilder {
+ bb := &UnifiedRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RbacApplicationRoleDefinitionsCollectionRequest is request for UnifiedRoleDefinition collection
+type RbacApplicationRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UnifiedRoleDefinition collection
+func (r *RbacApplicationRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UnifiedRoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UnifiedRoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UnifiedRoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UnifiedRoleDefinition collection, max N pages
+func (r *RbacApplicationRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]UnifiedRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UnifiedRoleDefinition collection
+func (r *RbacApplicationRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]UnifiedRoleDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UnifiedRoleDefinition collection
+func (r *RbacApplicationRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *UnifiedRoleDefinition) (resObj *UnifiedRoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRemote.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRemote.go
new file mode 100644
index 00000000..91f1bc67
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRemote.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoteAssistancePartnerBeginOnboardingRequestParameter undocumented
+type RemoteAssistancePartnerBeginOnboardingRequestParameter struct {
+}
+
+// RemoteAssistancePartnerDisconnectRequestParameter undocumented
+type RemoteAssistancePartnerDisconnectRequestParameter struct {
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionReport.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionReport.go
new file mode 100644
index 00000000..c5824acc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionReport.go
@@ -0,0 +1,318 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ApplicationSignInDetailedSummary returns request builder for ApplicationSignInDetailedSummary collection
+func (b *ReportRootRequestBuilder) ApplicationSignInDetailedSummary() *ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder {
+ bb := &ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/applicationSignInDetailedSummary"
+ return bb
+}
+
+// ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder is request builder for ApplicationSignInDetailedSummary collection
+type ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ApplicationSignInDetailedSummary collection
+func (b *ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder) Request() *ReportRootApplicationSignInDetailedSummaryCollectionRequest {
+ return &ReportRootApplicationSignInDetailedSummaryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ApplicationSignInDetailedSummary item
+func (b *ReportRootApplicationSignInDetailedSummaryCollectionRequestBuilder) ID(id string) *ApplicationSignInDetailedSummaryRequestBuilder {
+ bb := &ApplicationSignInDetailedSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ReportRootApplicationSignInDetailedSummaryCollectionRequest is request for ApplicationSignInDetailedSummary collection
+type ReportRootApplicationSignInDetailedSummaryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ApplicationSignInDetailedSummary collection
+func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ApplicationSignInDetailedSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ApplicationSignInDetailedSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ApplicationSignInDetailedSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ApplicationSignInDetailedSummary collection, max N pages
+func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) GetN(ctx context.Context, n int) ([]ApplicationSignInDetailedSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ApplicationSignInDetailedSummary collection
+func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Get(ctx context.Context) ([]ApplicationSignInDetailedSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ApplicationSignInDetailedSummary collection
+func (r *ReportRootApplicationSignInDetailedSummaryCollectionRequest) Add(ctx context.Context, reqObj *ApplicationSignInDetailedSummary) (resObj *ApplicationSignInDetailedSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CredentialUserRegistrationDetails returns request builder for CredentialUserRegistrationDetails collection
+func (b *ReportRootRequestBuilder) CredentialUserRegistrationDetails() *ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder {
+ bb := &ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/credentialUserRegistrationDetails"
+ return bb
+}
+
+// ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder is request builder for CredentialUserRegistrationDetails collection
+type ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CredentialUserRegistrationDetails collection
+func (b *ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder) Request() *ReportRootCredentialUserRegistrationDetailsCollectionRequest {
+ return &ReportRootCredentialUserRegistrationDetailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CredentialUserRegistrationDetails item
+func (b *ReportRootCredentialUserRegistrationDetailsCollectionRequestBuilder) ID(id string) *CredentialUserRegistrationDetailsRequestBuilder {
+ bb := &CredentialUserRegistrationDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ReportRootCredentialUserRegistrationDetailsCollectionRequest is request for CredentialUserRegistrationDetails collection
+type ReportRootCredentialUserRegistrationDetailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CredentialUserRegistrationDetails collection
+func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CredentialUserRegistrationDetails, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CredentialUserRegistrationDetails
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CredentialUserRegistrationDetails
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CredentialUserRegistrationDetails collection, max N pages
+func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) GetN(ctx context.Context, n int) ([]CredentialUserRegistrationDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CredentialUserRegistrationDetails collection
+func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Get(ctx context.Context) ([]CredentialUserRegistrationDetails, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CredentialUserRegistrationDetails collection
+func (r *ReportRootCredentialUserRegistrationDetailsCollectionRequest) Add(ctx context.Context, reqObj *CredentialUserRegistrationDetails) (resObj *CredentialUserRegistrationDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserCredentialUsageDetails returns request builder for UserCredentialUsageDetails collection
+func (b *ReportRootRequestBuilder) UserCredentialUsageDetails() *ReportRootUserCredentialUsageDetailsCollectionRequestBuilder {
+ bb := &ReportRootUserCredentialUsageDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userCredentialUsageDetails"
+ return bb
+}
+
+// ReportRootUserCredentialUsageDetailsCollectionRequestBuilder is request builder for UserCredentialUsageDetails collection
+type ReportRootUserCredentialUsageDetailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserCredentialUsageDetails collection
+func (b *ReportRootUserCredentialUsageDetailsCollectionRequestBuilder) Request() *ReportRootUserCredentialUsageDetailsCollectionRequest {
+ return &ReportRootUserCredentialUsageDetailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserCredentialUsageDetails item
+func (b *ReportRootUserCredentialUsageDetailsCollectionRequestBuilder) ID(id string) *UserCredentialUsageDetailsRequestBuilder {
+ bb := &UserCredentialUsageDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ReportRootUserCredentialUsageDetailsCollectionRequest is request for UserCredentialUsageDetails collection
+type ReportRootUserCredentialUsageDetailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserCredentialUsageDetails collection
+func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserCredentialUsageDetails, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserCredentialUsageDetails
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserCredentialUsageDetails
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserCredentialUsageDetails collection, max N pages
+func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) GetN(ctx context.Context, n int) ([]UserCredentialUsageDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserCredentialUsageDetails collection
+func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Get(ctx context.Context) ([]UserCredentialUsageDetails, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserCredentialUsageDetails collection
+func (r *ReportRootUserCredentialUsageDetailsCollectionRequest) Add(ctx context.Context, reqObj *UserCredentialUsageDetails) (resObj *UserCredentialUsageDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRequest.go
new file mode 100644
index 00000000..91bb7c9a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRequest.go
@@ -0,0 +1,228 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RequestObjectStopRequestParameter undocumented
+type RequestObjectStopRequestParameter struct {
+}
+
+// RequestObjectRecordDecisionsRequestParameter undocumented
+type RequestObjectRecordDecisionsRequestParameter struct {
+ // ReviewResult undocumented
+ ReviewResult *string `json:"reviewResult,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+}
+
+// Decisions returns request builder for AccessReviewDecision collection
+func (b *RequestObjectRequestBuilder) Decisions() *RequestObjectDecisionsCollectionRequestBuilder {
+ bb := &RequestObjectDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/decisions"
+ return bb
+}
+
+// RequestObjectDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type RequestObjectDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *RequestObjectDecisionsCollectionRequestBuilder) Request() *RequestObjectDecisionsCollectionRequest {
+ return &RequestObjectDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *RequestObjectDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RequestObjectDecisionsCollectionRequest is request for AccessReviewDecision collection
+type RequestObjectDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *RequestObjectDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessReviewDecision collection, max N pages
+func (r *RequestObjectDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *RequestObjectDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *RequestObjectDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MyDecisions returns request builder for AccessReviewDecision collection
+func (b *RequestObjectRequestBuilder) MyDecisions() *RequestObjectMyDecisionsCollectionRequestBuilder {
+ bb := &RequestObjectMyDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/myDecisions"
+ return bb
+}
+
+// RequestObjectMyDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type RequestObjectMyDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *RequestObjectMyDecisionsCollectionRequestBuilder) Request() *RequestObjectMyDecisionsCollectionRequest {
+ return &RequestObjectMyDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *RequestObjectMyDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RequestObjectMyDecisionsCollectionRequest is request for AccessReviewDecision collection
+type RequestObjectMyDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *RequestObjectMyDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessReviewDecision collection, max N pages
+func (r *RequestObjectMyDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *RequestObjectMyDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *RequestObjectMyDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRisky.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRisky.go
new file mode 100644
index 00000000..0195e85d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRisky.go
@@ -0,0 +1,126 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RiskyUserCollectionDismissRequestParameter undocumented
+type RiskyUserCollectionDismissRequestParameter struct {
+ // UserIDs undocumented
+ UserIDs []string `json:"userIds,omitempty"`
+}
+
+// RiskyUserCollectionConfirmCompromisedRequestParameter undocumented
+type RiskyUserCollectionConfirmCompromisedRequestParameter struct {
+ // UserIDs undocumented
+ UserIDs []string `json:"userIds,omitempty"`
+}
+
+// History returns request builder for RiskyUserHistoryItem collection
+func (b *RiskyUserRequestBuilder) History() *RiskyUserHistoryCollectionRequestBuilder {
+ bb := &RiskyUserHistoryCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/history"
+ return bb
+}
+
+// RiskyUserHistoryCollectionRequestBuilder is request builder for RiskyUserHistoryItem collection
+type RiskyUserHistoryCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RiskyUserHistoryItem collection
+func (b *RiskyUserHistoryCollectionRequestBuilder) Request() *RiskyUserHistoryCollectionRequest {
+ return &RiskyUserHistoryCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RiskyUserHistoryItem item
+func (b *RiskyUserHistoryCollectionRequestBuilder) ID(id string) *RiskyUserHistoryItemRequestBuilder {
+ bb := &RiskyUserHistoryItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RiskyUserHistoryCollectionRequest is request for RiskyUserHistoryItem collection
+type RiskyUserHistoryCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RiskyUserHistoryItem collection
+func (r *RiskyUserHistoryCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RiskyUserHistoryItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RiskyUserHistoryItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RiskyUserHistoryItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RiskyUserHistoryItem collection, max N pages
+func (r *RiskyUserHistoryCollectionRequest) GetN(ctx context.Context, n int) ([]RiskyUserHistoryItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RiskyUserHistoryItem collection
+func (r *RiskyUserHistoryCollectionRequest) Get(ctx context.Context) ([]RiskyUserHistoryItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RiskyUserHistoryItem collection
+func (r *RiskyUserHistoryCollectionRequest) Add(ctx context.Context, reqObj *RiskyUserHistoryItem) (resObj *RiskyUserHistoryItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRole.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRole.go
new file mode 100644
index 00000000..40a2f34f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRole.go
@@ -0,0 +1,242 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter undocumented
+type RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter struct {
+ // RoleScopeTagIDs undocumented
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
+
+// RoleScopeTagAssignRequestParameter undocumented
+type RoleScopeTagAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []RoleScopeTagAutoAssignment `json:"assignments,omitempty"`
+}
+
+// RoleDefinition is navigation property
+func (b *RoleAssignmentRequestBuilder) RoleDefinition() *RoleDefinitionRequestBuilder {
+ bb := &RoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
+
+// RoleAssignments returns request builder for RoleAssignment collection
+func (b *RoleDefinitionRequestBuilder) RoleAssignments() *RoleDefinitionRoleAssignmentsCollectionRequestBuilder {
+ bb := &RoleDefinitionRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleAssignments"
+ return bb
+}
+
+// RoleDefinitionRoleAssignmentsCollectionRequestBuilder is request builder for RoleAssignment collection
+type RoleDefinitionRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleAssignment collection
+func (b *RoleDefinitionRoleAssignmentsCollectionRequestBuilder) Request() *RoleDefinitionRoleAssignmentsCollectionRequest {
+ return &RoleDefinitionRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleAssignment item
+func (b *RoleDefinitionRoleAssignmentsCollectionRequestBuilder) ID(id string) *RoleAssignmentRequestBuilder {
+ bb := &RoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RoleDefinitionRoleAssignmentsCollectionRequest is request for RoleAssignment collection
+type RoleDefinitionRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleAssignment collection
+func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RoleAssignment collection, max N pages
+func (r *RoleDefinitionRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RoleAssignment collection
+func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]RoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RoleAssignment collection
+func (r *RoleDefinitionRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *RoleAssignment) (resObj *RoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Directory is navigation property
+func (b *RoleManagementRequestBuilder) Directory() *RbacApplicationRequestBuilder {
+ bb := &RbacApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directory"
+ return bb
+}
+
+// Assignments returns request builder for RoleScopeTagAutoAssignment collection
+func (b *RoleScopeTagRequestBuilder) Assignments() *RoleScopeTagAssignmentsCollectionRequestBuilder {
+ bb := &RoleScopeTagAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// RoleScopeTagAssignmentsCollectionRequestBuilder is request builder for RoleScopeTagAutoAssignment collection
+type RoleScopeTagAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RoleScopeTagAutoAssignment collection
+func (b *RoleScopeTagAssignmentsCollectionRequestBuilder) Request() *RoleScopeTagAssignmentsCollectionRequest {
+ return &RoleScopeTagAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RoleScopeTagAutoAssignment item
+func (b *RoleScopeTagAssignmentsCollectionRequestBuilder) ID(id string) *RoleScopeTagAutoAssignmentRequestBuilder {
+ bb := &RoleScopeTagAutoAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RoleScopeTagAssignmentsCollectionRequest is request for RoleScopeTagAutoAssignment collection
+type RoleScopeTagAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RoleScopeTagAutoAssignment collection
+func (r *RoleScopeTagAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTagAutoAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleScopeTagAutoAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleScopeTagAutoAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RoleScopeTagAutoAssignment collection, max N pages
+func (r *RoleScopeTagAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]RoleScopeTagAutoAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RoleScopeTagAutoAssignment collection
+func (r *RoleScopeTagAssignmentsCollectionRequest) Get(ctx context.Context) ([]RoleScopeTagAutoAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RoleScopeTagAutoAssignment collection
+func (r *RoleScopeTagAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *RoleScopeTagAutoAssignment) (resObj *RoleScopeTagAutoAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionRoom.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRoom.go
new file mode 100644
index 00000000..8ef13115
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionRoom.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Rooms returns request builder for Room collection
+func (b *RoomListRequestBuilder) Rooms() *RoomListRoomsCollectionRequestBuilder {
+ bb := &RoomListRoomsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rooms"
+ return bb
+}
+
+// RoomListRoomsCollectionRequestBuilder is request builder for Room collection
+type RoomListRoomsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Room collection
+func (b *RoomListRoomsCollectionRequestBuilder) Request() *RoomListRoomsCollectionRequest {
+ return &RoomListRoomsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Room item
+func (b *RoomListRoomsCollectionRequestBuilder) ID(id string) *RoomRequestBuilder {
+ bb := &RoomRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// RoomListRoomsCollectionRequest is request for Room collection
+type RoomListRoomsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Room collection
+func (r *RoomListRoomsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Room, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Room
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Room
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Room collection, max N pages
+func (r *RoomListRoomsCollectionRequest) GetN(ctx context.Context, n int) ([]Room, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Room collection
+func (r *RoomListRoomsCollectionRequest) Get(ctx context.Context) ([]Room, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Room collection
+func (r *RoomListRoomsCollectionRequest) Add(ctx context.Context, reqObj *Room) (resObj *Room, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSales.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSales.go
new file mode 100644
index 00000000..f651d31a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSales.go
@@ -0,0 +1,602 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SalesInvoiceCancelAndSendRequestParameter undocumented
+type SalesInvoiceCancelAndSendRequestParameter struct {
+}
+
+// SalesInvoiceCancelRequestParameter undocumented
+type SalesInvoiceCancelRequestParameter struct {
+}
+
+// SalesInvoicePostAndSendRequestParameter undocumented
+type SalesInvoicePostAndSendRequestParameter struct {
+}
+
+// SalesInvoicePostRequestParameter undocumented
+type SalesInvoicePostRequestParameter struct {
+}
+
+// SalesInvoiceSendRequestParameter undocumented
+type SalesInvoiceSendRequestParameter struct {
+}
+
+// SalesQuoteMakeInvoiceRequestParameter undocumented
+type SalesQuoteMakeInvoiceRequestParameter struct {
+}
+
+// SalesQuoteSendRequestParameter undocumented
+type SalesQuoteSendRequestParameter struct {
+}
+
+// Currency is navigation property
+func (b *SalesCreditMemoRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// Customer is navigation property
+func (b *SalesCreditMemoRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *SalesCreditMemoRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// SalesCreditMemoLines returns request builder for SalesCreditMemoLine collection
+func (b *SalesCreditMemoRequestBuilder) SalesCreditMemoLines() *SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder {
+ bb := &SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesCreditMemoLines"
+ return bb
+}
+
+// SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder is request builder for SalesCreditMemoLine collection
+type SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesCreditMemoLine collection
+func (b *SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder) Request() *SalesCreditMemoSalesCreditMemoLinesCollectionRequest {
+ return &SalesCreditMemoSalesCreditMemoLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesCreditMemoLine item
+func (b *SalesCreditMemoSalesCreditMemoLinesCollectionRequestBuilder) ID(id string) *SalesCreditMemoLineRequestBuilder {
+ bb := &SalesCreditMemoLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SalesCreditMemoSalesCreditMemoLinesCollectionRequest is request for SalesCreditMemoLine collection
+type SalesCreditMemoSalesCreditMemoLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesCreditMemoLine collection
+func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesCreditMemoLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesCreditMemoLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesCreditMemoLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesCreditMemoLine collection, max N pages
+func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesCreditMemoLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesCreditMemoLine collection
+func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Get(ctx context.Context) ([]SalesCreditMemoLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesCreditMemoLine collection
+func (r *SalesCreditMemoSalesCreditMemoLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesCreditMemoLine) (resObj *SalesCreditMemoLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Account is navigation property
+func (b *SalesCreditMemoLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *SalesCreditMemoLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
+
+// Currency is navigation property
+func (b *SalesInvoiceRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// Customer is navigation property
+func (b *SalesInvoiceRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *SalesInvoiceRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// SalesInvoiceLines returns request builder for SalesInvoiceLine collection
+func (b *SalesInvoiceRequestBuilder) SalesInvoiceLines() *SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder {
+ bb := &SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesInvoiceLines"
+ return bb
+}
+
+// SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder is request builder for SalesInvoiceLine collection
+type SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesInvoiceLine collection
+func (b *SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder) Request() *SalesInvoiceSalesInvoiceLinesCollectionRequest {
+ return &SalesInvoiceSalesInvoiceLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesInvoiceLine item
+func (b *SalesInvoiceSalesInvoiceLinesCollectionRequestBuilder) ID(id string) *SalesInvoiceLineRequestBuilder {
+ bb := &SalesInvoiceLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SalesInvoiceSalesInvoiceLinesCollectionRequest is request for SalesInvoiceLine collection
+type SalesInvoiceSalesInvoiceLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesInvoiceLine collection
+func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesInvoiceLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesInvoiceLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesInvoiceLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesInvoiceLine collection, max N pages
+func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesInvoiceLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesInvoiceLine collection
+func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Get(ctx context.Context) ([]SalesInvoiceLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesInvoiceLine collection
+func (r *SalesInvoiceSalesInvoiceLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesInvoiceLine) (resObj *SalesInvoiceLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ShipmentMethod is navigation property
+func (b *SalesInvoiceRequestBuilder) ShipmentMethod() *ShipmentMethodRequestBuilder {
+ bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shipmentMethod"
+ return bb
+}
+
+// Account is navigation property
+func (b *SalesInvoiceLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *SalesInvoiceLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
+
+// Currency is navigation property
+func (b *SalesOrderRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// Customer is navigation property
+func (b *SalesOrderRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *SalesOrderRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// SalesOrderLines returns request builder for SalesOrderLine collection
+func (b *SalesOrderRequestBuilder) SalesOrderLines() *SalesOrderSalesOrderLinesCollectionRequestBuilder {
+ bb := &SalesOrderSalesOrderLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesOrderLines"
+ return bb
+}
+
+// SalesOrderSalesOrderLinesCollectionRequestBuilder is request builder for SalesOrderLine collection
+type SalesOrderSalesOrderLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesOrderLine collection
+func (b *SalesOrderSalesOrderLinesCollectionRequestBuilder) Request() *SalesOrderSalesOrderLinesCollectionRequest {
+ return &SalesOrderSalesOrderLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesOrderLine item
+func (b *SalesOrderSalesOrderLinesCollectionRequestBuilder) ID(id string) *SalesOrderLineRequestBuilder {
+ bb := &SalesOrderLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SalesOrderSalesOrderLinesCollectionRequest is request for SalesOrderLine collection
+type SalesOrderSalesOrderLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesOrderLine collection
+func (r *SalesOrderSalesOrderLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesOrderLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesOrderLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesOrderLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesOrderLine collection, max N pages
+func (r *SalesOrderSalesOrderLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesOrderLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesOrderLine collection
+func (r *SalesOrderSalesOrderLinesCollectionRequest) Get(ctx context.Context) ([]SalesOrderLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesOrderLine collection
+func (r *SalesOrderSalesOrderLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesOrderLine) (resObj *SalesOrderLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Account is navigation property
+func (b *SalesOrderLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *SalesOrderLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
+
+// Currency is navigation property
+func (b *SalesQuoteRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// Customer is navigation property
+func (b *SalesQuoteRequestBuilder) Customer() *CustomerRequestBuilder {
+ bb := &CustomerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/customer"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *SalesQuoteRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// SalesQuoteLines returns request builder for SalesQuoteLine collection
+func (b *SalesQuoteRequestBuilder) SalesQuoteLines() *SalesQuoteSalesQuoteLinesCollectionRequestBuilder {
+ bb := &SalesQuoteSalesQuoteLinesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/salesQuoteLines"
+ return bb
+}
+
+// SalesQuoteSalesQuoteLinesCollectionRequestBuilder is request builder for SalesQuoteLine collection
+type SalesQuoteSalesQuoteLinesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SalesQuoteLine collection
+func (b *SalesQuoteSalesQuoteLinesCollectionRequestBuilder) Request() *SalesQuoteSalesQuoteLinesCollectionRequest {
+ return &SalesQuoteSalesQuoteLinesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SalesQuoteLine item
+func (b *SalesQuoteSalesQuoteLinesCollectionRequestBuilder) ID(id string) *SalesQuoteLineRequestBuilder {
+ bb := &SalesQuoteLineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SalesQuoteSalesQuoteLinesCollectionRequest is request for SalesQuoteLine collection
+type SalesQuoteSalesQuoteLinesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SalesQuoteLine collection
+func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SalesQuoteLine, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SalesQuoteLine
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SalesQuoteLine
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SalesQuoteLine collection, max N pages
+func (r *SalesQuoteSalesQuoteLinesCollectionRequest) GetN(ctx context.Context, n int) ([]SalesQuoteLine, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SalesQuoteLine collection
+func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Get(ctx context.Context) ([]SalesQuoteLine, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SalesQuoteLine collection
+func (r *SalesQuoteSalesQuoteLinesCollectionRequest) Add(ctx context.Context, reqObj *SalesQuoteLine) (resObj *SalesQuoteLine, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ShipmentMethod is navigation property
+func (b *SalesQuoteRequestBuilder) ShipmentMethod() *ShipmentMethodRequestBuilder {
+ bb := &ShipmentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shipmentMethod"
+ return bb
+}
+
+// Account is navigation property
+func (b *SalesQuoteLineRequestBuilder) Account() *AccountRequestBuilder {
+ bb := &AccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/account"
+ return bb
+}
+
+// Item is navigation property
+func (b *SalesQuoteLineRequestBuilder) Item() *ItemRequestBuilder {
+ bb := &ItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/item"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go
new file mode 100644
index 00000000..618e8f93
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSchedule.go
@@ -0,0 +1,851 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "time"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ScheduleShareRequestParameter undocumented
+type ScheduleShareRequestParameter struct {
+ // NotifyTeam undocumented
+ NotifyTeam *bool `json:"notifyTeam,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+}
+
+// ScheduleChangeRequestObjectApproveRequestParameter undocumented
+type ScheduleChangeRequestObjectApproveRequestParameter struct {
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
+
+// ScheduleChangeRequestObjectDeclineRequestParameter undocumented
+type ScheduleChangeRequestObjectDeclineRequestParameter struct {
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
+
+// OpenShiftChangeRequests returns request builder for OpenShiftChangeRequestObject collection
+func (b *ScheduleRequestBuilder) OpenShiftChangeRequests() *ScheduleOpenShiftChangeRequestsCollectionRequestBuilder {
+ bb := &ScheduleOpenShiftChangeRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/openShiftChangeRequests"
+ return bb
+}
+
+// ScheduleOpenShiftChangeRequestsCollectionRequestBuilder is request builder for OpenShiftChangeRequestObject collection
+type ScheduleOpenShiftChangeRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OpenShiftChangeRequestObject collection
+func (b *ScheduleOpenShiftChangeRequestsCollectionRequestBuilder) Request() *ScheduleOpenShiftChangeRequestsCollectionRequest {
+ return &ScheduleOpenShiftChangeRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OpenShiftChangeRequestObject item
+func (b *ScheduleOpenShiftChangeRequestsCollectionRequestBuilder) ID(id string) *OpenShiftChangeRequestObjectRequestBuilder {
+ bb := &OpenShiftChangeRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleOpenShiftChangeRequestsCollectionRequest is request for OpenShiftChangeRequestObject collection
+type ScheduleOpenShiftChangeRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OpenShiftChangeRequestObject collection
+func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OpenShiftChangeRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OpenShiftChangeRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OpenShiftChangeRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OpenShiftChangeRequestObject collection, max N pages
+func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]OpenShiftChangeRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OpenShiftChangeRequestObject collection
+func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Get(ctx context.Context) ([]OpenShiftChangeRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OpenShiftChangeRequestObject collection
+func (r *ScheduleOpenShiftChangeRequestsCollectionRequest) Add(ctx context.Context, reqObj *OpenShiftChangeRequestObject) (resObj *OpenShiftChangeRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OpenShifts returns request builder for OpenShift collection
+func (b *ScheduleRequestBuilder) OpenShifts() *ScheduleOpenShiftsCollectionRequestBuilder {
+ bb := &ScheduleOpenShiftsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/openShifts"
+ return bb
+}
+
+// ScheduleOpenShiftsCollectionRequestBuilder is request builder for OpenShift collection
+type ScheduleOpenShiftsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OpenShift collection
+func (b *ScheduleOpenShiftsCollectionRequestBuilder) Request() *ScheduleOpenShiftsCollectionRequest {
+ return &ScheduleOpenShiftsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OpenShift item
+func (b *ScheduleOpenShiftsCollectionRequestBuilder) ID(id string) *OpenShiftRequestBuilder {
+ bb := &OpenShiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleOpenShiftsCollectionRequest is request for OpenShift collection
+type ScheduleOpenShiftsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OpenShift collection
+func (r *ScheduleOpenShiftsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OpenShift, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OpenShift
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OpenShift
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OpenShift collection, max N pages
+func (r *ScheduleOpenShiftsCollectionRequest) GetN(ctx context.Context, n int) ([]OpenShift, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OpenShift collection
+func (r *ScheduleOpenShiftsCollectionRequest) Get(ctx context.Context) ([]OpenShift, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OpenShift collection
+func (r *ScheduleOpenShiftsCollectionRequest) Add(ctx context.Context, reqObj *OpenShift) (resObj *OpenShift, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SchedulingGroups returns request builder for SchedulingGroup collection
+func (b *ScheduleRequestBuilder) SchedulingGroups() *ScheduleSchedulingGroupsCollectionRequestBuilder {
+ bb := &ScheduleSchedulingGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schedulingGroups"
+ return bb
+}
+
+// ScheduleSchedulingGroupsCollectionRequestBuilder is request builder for SchedulingGroup collection
+type ScheduleSchedulingGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SchedulingGroup collection
+func (b *ScheduleSchedulingGroupsCollectionRequestBuilder) Request() *ScheduleSchedulingGroupsCollectionRequest {
+ return &ScheduleSchedulingGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SchedulingGroup item
+func (b *ScheduleSchedulingGroupsCollectionRequestBuilder) ID(id string) *SchedulingGroupRequestBuilder {
+ bb := &SchedulingGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleSchedulingGroupsCollectionRequest is request for SchedulingGroup collection
+type ScheduleSchedulingGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SchedulingGroup collection
+func (r *ScheduleSchedulingGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SchedulingGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SchedulingGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SchedulingGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SchedulingGroup collection, max N pages
+func (r *ScheduleSchedulingGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]SchedulingGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SchedulingGroup collection
+func (r *ScheduleSchedulingGroupsCollectionRequest) Get(ctx context.Context) ([]SchedulingGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SchedulingGroup collection
+func (r *ScheduleSchedulingGroupsCollectionRequest) Add(ctx context.Context, reqObj *SchedulingGroup) (resObj *SchedulingGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Shifts returns request builder for Shift collection
+func (b *ScheduleRequestBuilder) Shifts() *ScheduleShiftsCollectionRequestBuilder {
+ bb := &ScheduleShiftsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shifts"
+ return bb
+}
+
+// ScheduleShiftsCollectionRequestBuilder is request builder for Shift collection
+type ScheduleShiftsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Shift collection
+func (b *ScheduleShiftsCollectionRequestBuilder) Request() *ScheduleShiftsCollectionRequest {
+ return &ScheduleShiftsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Shift item
+func (b *ScheduleShiftsCollectionRequestBuilder) ID(id string) *ShiftRequestBuilder {
+ bb := &ShiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleShiftsCollectionRequest is request for Shift collection
+type ScheduleShiftsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Shift collection
+func (r *ScheduleShiftsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Shift, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Shift
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Shift
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Shift collection, max N pages
+func (r *ScheduleShiftsCollectionRequest) GetN(ctx context.Context, n int) ([]Shift, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Shift collection
+func (r *ScheduleShiftsCollectionRequest) Get(ctx context.Context) ([]Shift, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Shift collection
+func (r *ScheduleShiftsCollectionRequest) Add(ctx context.Context, reqObj *Shift) (resObj *Shift, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SwapShiftsChangeRequests returns request builder for SwapShiftsChangeRequestObject collection
+func (b *ScheduleRequestBuilder) SwapShiftsChangeRequests() *ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder {
+ bb := &ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/swapShiftsChangeRequests"
+ return bb
+}
+
+// ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder is request builder for SwapShiftsChangeRequestObject collection
+type ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SwapShiftsChangeRequestObject collection
+func (b *ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder) Request() *ScheduleSwapShiftsChangeRequestsCollectionRequest {
+ return &ScheduleSwapShiftsChangeRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SwapShiftsChangeRequestObject item
+func (b *ScheduleSwapShiftsChangeRequestsCollectionRequestBuilder) ID(id string) *SwapShiftsChangeRequestObjectRequestBuilder {
+ bb := &SwapShiftsChangeRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleSwapShiftsChangeRequestsCollectionRequest is request for SwapShiftsChangeRequestObject collection
+type ScheduleSwapShiftsChangeRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SwapShiftsChangeRequestObject collection
+func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SwapShiftsChangeRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SwapShiftsChangeRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SwapShiftsChangeRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SwapShiftsChangeRequestObject collection, max N pages
+func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]SwapShiftsChangeRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SwapShiftsChangeRequestObject collection
+func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Get(ctx context.Context) ([]SwapShiftsChangeRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SwapShiftsChangeRequestObject collection
+func (r *ScheduleSwapShiftsChangeRequestsCollectionRequest) Add(ctx context.Context, reqObj *SwapShiftsChangeRequestObject) (resObj *SwapShiftsChangeRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TimeOffReasons returns request builder for TimeOffReason collection
+func (b *ScheduleRequestBuilder) TimeOffReasons() *ScheduleTimeOffReasonsCollectionRequestBuilder {
+ bb := &ScheduleTimeOffReasonsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/timeOffReasons"
+ return bb
+}
+
+// ScheduleTimeOffReasonsCollectionRequestBuilder is request builder for TimeOffReason collection
+type ScheduleTimeOffReasonsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TimeOffReason collection
+func (b *ScheduleTimeOffReasonsCollectionRequestBuilder) Request() *ScheduleTimeOffReasonsCollectionRequest {
+ return &ScheduleTimeOffReasonsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TimeOffReason item
+func (b *ScheduleTimeOffReasonsCollectionRequestBuilder) ID(id string) *TimeOffReasonRequestBuilder {
+ bb := &TimeOffReasonRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleTimeOffReasonsCollectionRequest is request for TimeOffReason collection
+type ScheduleTimeOffReasonsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TimeOffReason collection
+func (r *ScheduleTimeOffReasonsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TimeOffReason, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TimeOffReason
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TimeOffReason
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TimeOffReason collection, max N pages
+func (r *ScheduleTimeOffReasonsCollectionRequest) GetN(ctx context.Context, n int) ([]TimeOffReason, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TimeOffReason collection
+func (r *ScheduleTimeOffReasonsCollectionRequest) Get(ctx context.Context) ([]TimeOffReason, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TimeOffReason collection
+func (r *ScheduleTimeOffReasonsCollectionRequest) Add(ctx context.Context, reqObj *TimeOffReason) (resObj *TimeOffReason, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TimeOffRequests returns request builder for TimeOffRequestObject collection
+func (b *ScheduleRequestBuilder) TimeOffRequests() *ScheduleTimeOffRequestsCollectionRequestBuilder {
+ bb := &ScheduleTimeOffRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/timeOffRequests"
+ return bb
+}
+
+// ScheduleTimeOffRequestsCollectionRequestBuilder is request builder for TimeOffRequestObject collection
+type ScheduleTimeOffRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TimeOffRequestObject collection
+func (b *ScheduleTimeOffRequestsCollectionRequestBuilder) Request() *ScheduleTimeOffRequestsCollectionRequest {
+ return &ScheduleTimeOffRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TimeOffRequestObject item
+func (b *ScheduleTimeOffRequestsCollectionRequestBuilder) ID(id string) *TimeOffRequestObjectRequestBuilder {
+ bb := &TimeOffRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleTimeOffRequestsCollectionRequest is request for TimeOffRequestObject collection
+type ScheduleTimeOffRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TimeOffRequestObject collection
+func (r *ScheduleTimeOffRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TimeOffRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TimeOffRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TimeOffRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TimeOffRequestObject collection, max N pages
+func (r *ScheduleTimeOffRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]TimeOffRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TimeOffRequestObject collection
+func (r *ScheduleTimeOffRequestsCollectionRequest) Get(ctx context.Context) ([]TimeOffRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TimeOffRequestObject collection
+func (r *ScheduleTimeOffRequestsCollectionRequest) Add(ctx context.Context, reqObj *TimeOffRequestObject) (resObj *TimeOffRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TimesOff returns request builder for TimeOff collection
+func (b *ScheduleRequestBuilder) TimesOff() *ScheduleTimesOffCollectionRequestBuilder {
+ bb := &ScheduleTimesOffCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/timesOff"
+ return bb
+}
+
+// ScheduleTimesOffCollectionRequestBuilder is request builder for TimeOff collection
+type ScheduleTimesOffCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TimeOff collection
+func (b *ScheduleTimesOffCollectionRequestBuilder) Request() *ScheduleTimesOffCollectionRequest {
+ return &ScheduleTimesOffCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TimeOff item
+func (b *ScheduleTimesOffCollectionRequestBuilder) ID(id string) *TimeOffRequestBuilder {
+ bb := &TimeOffRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ScheduleTimesOffCollectionRequest is request for TimeOff collection
+type ScheduleTimesOffCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TimeOff collection
+func (r *ScheduleTimesOffCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TimeOff, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TimeOff
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TimeOff
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TimeOff collection, max N pages
+func (r *ScheduleTimesOffCollectionRequest) GetN(ctx context.Context, n int) ([]TimeOff, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TimeOff collection
+func (r *ScheduleTimesOffCollectionRequest) Get(ctx context.Context) ([]TimeOff, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TimeOff collection
+func (r *ScheduleTimesOffCollectionRequest) Add(ctx context.Context, reqObj *TimeOff) (resObj *TimeOff, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSearch.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSearch.go
new file mode 100644
index 00000000..4c14f08b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSearch.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SearchQueryRequestParameter undocumented
+type SearchQueryRequestParameter struct {
+ // Requests undocumented
+ Requests []SearchRequestObject `json:"requests,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSection.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSection.go
new file mode 100644
index 00000000..322eeed4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSection.go
@@ -0,0 +1,230 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ParentNotebook is navigation property
+func (b *SectionGroupRequestBuilder) ParentNotebook() *NotebookRequestBuilder {
+ bb := &NotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentNotebook"
+ return bb
+}
+
+// ParentSectionGroup is navigation property
+func (b *SectionGroupRequestBuilder) ParentSectionGroup() *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/parentSectionGroup"
+ return bb
+}
+
+// SectionGroups returns request builder for SectionGroup collection
+func (b *SectionGroupRequestBuilder) SectionGroups() *SectionGroupSectionGroupsCollectionRequestBuilder {
+ bb := &SectionGroupSectionGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sectionGroups"
+ return bb
+}
+
+// SectionGroupSectionGroupsCollectionRequestBuilder is request builder for SectionGroup collection
+type SectionGroupSectionGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SectionGroup collection
+func (b *SectionGroupSectionGroupsCollectionRequestBuilder) Request() *SectionGroupSectionGroupsCollectionRequest {
+ return &SectionGroupSectionGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SectionGroup item
+func (b *SectionGroupSectionGroupsCollectionRequestBuilder) ID(id string) *SectionGroupRequestBuilder {
+ bb := &SectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SectionGroupSectionGroupsCollectionRequest is request for SectionGroup collection
+type SectionGroupSectionGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SectionGroup collection
+func (r *SectionGroupSectionGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SectionGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SectionGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SectionGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SectionGroup collection, max N pages
+func (r *SectionGroupSectionGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]SectionGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SectionGroup collection
+func (r *SectionGroupSectionGroupsCollectionRequest) Get(ctx context.Context) ([]SectionGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SectionGroup collection
+func (r *SectionGroupSectionGroupsCollectionRequest) Add(ctx context.Context, reqObj *SectionGroup) (resObj *SectionGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sections returns request builder for OnenoteSection collection
+func (b *SectionGroupRequestBuilder) Sections() *SectionGroupSectionsCollectionRequestBuilder {
+ bb := &SectionGroupSectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sections"
+ return bb
+}
+
+// SectionGroupSectionsCollectionRequestBuilder is request builder for OnenoteSection collection
+type SectionGroupSectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnenoteSection collection
+func (b *SectionGroupSectionsCollectionRequestBuilder) Request() *SectionGroupSectionsCollectionRequest {
+ return &SectionGroupSectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnenoteSection item
+func (b *SectionGroupSectionsCollectionRequestBuilder) ID(id string) *OnenoteSectionRequestBuilder {
+ bb := &OnenoteSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SectionGroupSectionsCollectionRequest is request for OnenoteSection collection
+type SectionGroupSectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnenoteSection collection
+func (r *SectionGroupSectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnenoteSection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnenoteSection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnenoteSection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnenoteSection collection, max N pages
+func (r *SectionGroupSectionsCollectionRequest) GetN(ctx context.Context, n int) ([]OnenoteSection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnenoteSection collection
+func (r *SectionGroupSectionsCollectionRequest) Get(ctx context.Context) ([]OnenoteSection, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnenoteSection collection
+func (r *SectionGroupSectionsCollectionRequest) Add(ctx context.Context, reqObj *OnenoteSection) (resObj *OnenoteSection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go
new file mode 100644
index 00000000..9d0cc978
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSecurity.go
@@ -0,0 +1,1553 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SecurityActionCancelSecurityActionRequestParameter undocumented
+type SecurityActionCancelSecurityActionRequestParameter struct {
+}
+
+// Alerts returns request builder for Alert collection
+func (b *SecurityRequestBuilder) Alerts() *SecurityAlertsCollectionRequestBuilder {
+ bb := &SecurityAlertsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/alerts"
+ return bb
+}
+
+// SecurityAlertsCollectionRequestBuilder is request builder for Alert collection
+type SecurityAlertsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Alert collection
+func (b *SecurityAlertsCollectionRequestBuilder) Request() *SecurityAlertsCollectionRequest {
+ return &SecurityAlertsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Alert item
+func (b *SecurityAlertsCollectionRequestBuilder) ID(id string) *AlertRequestBuilder {
+ bb := &AlertRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityAlertsCollectionRequest is request for Alert collection
+type SecurityAlertsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Alert collection
+func (r *SecurityAlertsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Alert, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Alert
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Alert
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Alert collection, max N pages
+func (r *SecurityAlertsCollectionRequest) GetN(ctx context.Context, n int) ([]Alert, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Alert collection
+func (r *SecurityAlertsCollectionRequest) Get(ctx context.Context) ([]Alert, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Alert collection
+func (r *SecurityAlertsCollectionRequest) Add(ctx context.Context, reqObj *Alert) (resObj *Alert, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CloudAppSecurityProfiles returns request builder for CloudAppSecurityProfile collection
+func (b *SecurityRequestBuilder) CloudAppSecurityProfiles() *SecurityCloudAppSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityCloudAppSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/cloudAppSecurityProfiles"
+ return bb
+}
+
+// SecurityCloudAppSecurityProfilesCollectionRequestBuilder is request builder for CloudAppSecurityProfile collection
+type SecurityCloudAppSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CloudAppSecurityProfile collection
+func (b *SecurityCloudAppSecurityProfilesCollectionRequestBuilder) Request() *SecurityCloudAppSecurityProfilesCollectionRequest {
+ return &SecurityCloudAppSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CloudAppSecurityProfile item
+func (b *SecurityCloudAppSecurityProfilesCollectionRequestBuilder) ID(id string) *CloudAppSecurityProfileRequestBuilder {
+ bb := &CloudAppSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityCloudAppSecurityProfilesCollectionRequest is request for CloudAppSecurityProfile collection
+type SecurityCloudAppSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CloudAppSecurityProfile collection
+func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CloudAppSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CloudAppSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CloudAppSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CloudAppSecurityProfile collection, max N pages
+func (r *SecurityCloudAppSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]CloudAppSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CloudAppSecurityProfile collection
+func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]CloudAppSecurityProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CloudAppSecurityProfile collection
+func (r *SecurityCloudAppSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *CloudAppSecurityProfile) (resObj *CloudAppSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DomainSecurityProfiles returns request builder for DomainSecurityProfile collection
+func (b *SecurityRequestBuilder) DomainSecurityProfiles() *SecurityDomainSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityDomainSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainSecurityProfiles"
+ return bb
+}
+
+// SecurityDomainSecurityProfilesCollectionRequestBuilder is request builder for DomainSecurityProfile collection
+type SecurityDomainSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DomainSecurityProfile collection
+func (b *SecurityDomainSecurityProfilesCollectionRequestBuilder) Request() *SecurityDomainSecurityProfilesCollectionRequest {
+ return &SecurityDomainSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DomainSecurityProfile item
+func (b *SecurityDomainSecurityProfilesCollectionRequestBuilder) ID(id string) *DomainSecurityProfileRequestBuilder {
+ bb := &DomainSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityDomainSecurityProfilesCollectionRequest is request for DomainSecurityProfile collection
+type SecurityDomainSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DomainSecurityProfile collection
+func (r *SecurityDomainSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DomainSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DomainSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DomainSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DomainSecurityProfile collection, max N pages
+func (r *SecurityDomainSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]DomainSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DomainSecurityProfile collection
+func (r *SecurityDomainSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]DomainSecurityProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DomainSecurityProfile collection
+func (r *SecurityDomainSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *DomainSecurityProfile) (resObj *DomainSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FileSecurityProfiles returns request builder for FileSecurityProfile collection
+func (b *SecurityRequestBuilder) FileSecurityProfiles() *SecurityFileSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityFileSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fileSecurityProfiles"
+ return bb
+}
+
+// SecurityFileSecurityProfilesCollectionRequestBuilder is request builder for FileSecurityProfile collection
+type SecurityFileSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for FileSecurityProfile collection
+func (b *SecurityFileSecurityProfilesCollectionRequestBuilder) Request() *SecurityFileSecurityProfilesCollectionRequest {
+ return &SecurityFileSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for FileSecurityProfile item
+func (b *SecurityFileSecurityProfilesCollectionRequestBuilder) ID(id string) *FileSecurityProfileRequestBuilder {
+ bb := &FileSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityFileSecurityProfilesCollectionRequest is request for FileSecurityProfile collection
+type SecurityFileSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for FileSecurityProfile collection
+func (r *SecurityFileSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]FileSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []FileSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []FileSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for FileSecurityProfile collection, max N pages
+func (r *SecurityFileSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]FileSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for FileSecurityProfile collection
+func (r *SecurityFileSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]FileSecurityProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for FileSecurityProfile collection
+func (r *SecurityFileSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *FileSecurityProfile) (resObj *FileSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// HostSecurityProfiles returns request builder for HostSecurityProfile collection
+func (b *SecurityRequestBuilder) HostSecurityProfiles() *SecurityHostSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityHostSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/hostSecurityProfiles"
+ return bb
+}
+
+// SecurityHostSecurityProfilesCollectionRequestBuilder is request builder for HostSecurityProfile collection
+type SecurityHostSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for HostSecurityProfile collection
+func (b *SecurityHostSecurityProfilesCollectionRequestBuilder) Request() *SecurityHostSecurityProfilesCollectionRequest {
+ return &SecurityHostSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for HostSecurityProfile item
+func (b *SecurityHostSecurityProfilesCollectionRequestBuilder) ID(id string) *HostSecurityProfileRequestBuilder {
+ bb := &HostSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityHostSecurityProfilesCollectionRequest is request for HostSecurityProfile collection
+type SecurityHostSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for HostSecurityProfile collection
+func (r *SecurityHostSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HostSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HostSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HostSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for HostSecurityProfile collection, max N pages
+func (r *SecurityHostSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]HostSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for HostSecurityProfile collection
+func (r *SecurityHostSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]HostSecurityProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for HostSecurityProfile collection
+func (r *SecurityHostSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *HostSecurityProfile) (resObj *HostSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IPSecurityProfiles returns request builder for IPSecurityProfile collection
+func (b *SecurityRequestBuilder) IPSecurityProfiles() *SecurityIPSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityIPSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ipSecurityProfiles"
+ return bb
+}
+
+// SecurityIPSecurityProfilesCollectionRequestBuilder is request builder for IPSecurityProfile collection
+type SecurityIPSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IPSecurityProfile collection
+func (b *SecurityIPSecurityProfilesCollectionRequestBuilder) Request() *SecurityIPSecurityProfilesCollectionRequest {
+ return &SecurityIPSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IPSecurityProfile item
+func (b *SecurityIPSecurityProfilesCollectionRequestBuilder) ID(id string) *IPSecurityProfileRequestBuilder {
+ bb := &IPSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityIPSecurityProfilesCollectionRequest is request for IPSecurityProfile collection
+type SecurityIPSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IPSecurityProfile collection
+func (r *SecurityIPSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IPSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IPSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IPSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IPSecurityProfile collection, max N pages
+func (r *SecurityIPSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]IPSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IPSecurityProfile collection
+func (r *SecurityIPSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]IPSecurityProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IPSecurityProfile collection
+func (r *SecurityIPSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *IPSecurityProfile) (resObj *IPSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ProviderTenantSettings returns request builder for ProviderTenantSetting collection
+func (b *SecurityRequestBuilder) ProviderTenantSettings() *SecurityProviderTenantSettingsCollectionRequestBuilder {
+ bb := &SecurityProviderTenantSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/providerTenantSettings"
+ return bb
+}
+
+// SecurityProviderTenantSettingsCollectionRequestBuilder is request builder for ProviderTenantSetting collection
+type SecurityProviderTenantSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProviderTenantSetting collection
+func (b *SecurityProviderTenantSettingsCollectionRequestBuilder) Request() *SecurityProviderTenantSettingsCollectionRequest {
+ return &SecurityProviderTenantSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProviderTenantSetting item
+func (b *SecurityProviderTenantSettingsCollectionRequestBuilder) ID(id string) *ProviderTenantSettingRequestBuilder {
+ bb := &ProviderTenantSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityProviderTenantSettingsCollectionRequest is request for ProviderTenantSetting collection
+type SecurityProviderTenantSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProviderTenantSetting collection
+func (r *SecurityProviderTenantSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProviderTenantSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProviderTenantSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProviderTenantSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ProviderTenantSetting collection, max N pages
+func (r *SecurityProviderTenantSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]ProviderTenantSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ProviderTenantSetting collection
+func (r *SecurityProviderTenantSettingsCollectionRequest) Get(ctx context.Context) ([]ProviderTenantSetting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ProviderTenantSetting collection
+func (r *SecurityProviderTenantSettingsCollectionRequest) Add(ctx context.Context, reqObj *ProviderTenantSetting) (resObj *ProviderTenantSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SecureScoreControlProfiles returns request builder for SecureScoreControlProfile collection
+func (b *SecurityRequestBuilder) SecureScoreControlProfiles() *SecuritySecureScoreControlProfilesCollectionRequestBuilder {
+ bb := &SecuritySecureScoreControlProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/secureScoreControlProfiles"
+ return bb
+}
+
+// SecuritySecureScoreControlProfilesCollectionRequestBuilder is request builder for SecureScoreControlProfile collection
+type SecuritySecureScoreControlProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecureScoreControlProfile collection
+func (b *SecuritySecureScoreControlProfilesCollectionRequestBuilder) Request() *SecuritySecureScoreControlProfilesCollectionRequest {
+ return &SecuritySecureScoreControlProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecureScoreControlProfile item
+func (b *SecuritySecureScoreControlProfilesCollectionRequestBuilder) ID(id string) *SecureScoreControlProfileRequestBuilder {
+ bb := &SecureScoreControlProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecuritySecureScoreControlProfilesCollectionRequest is request for SecureScoreControlProfile collection
+type SecuritySecureScoreControlProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecureScoreControlProfile collection
+func (r *SecuritySecureScoreControlProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecureScoreControlProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecureScoreControlProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecureScoreControlProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SecureScoreControlProfile collection, max N pages
+func (r *SecuritySecureScoreControlProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]SecureScoreControlProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SecureScoreControlProfile collection
+func (r *SecuritySecureScoreControlProfilesCollectionRequest) Get(ctx context.Context) ([]SecureScoreControlProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SecureScoreControlProfile collection
+func (r *SecuritySecureScoreControlProfilesCollectionRequest) Add(ctx context.Context, reqObj *SecureScoreControlProfile) (resObj *SecureScoreControlProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SecureScores returns request builder for SecureScore collection
+func (b *SecurityRequestBuilder) SecureScores() *SecuritySecureScoresCollectionRequestBuilder {
+ bb := &SecuritySecureScoresCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/secureScores"
+ return bb
+}
+
+// SecuritySecureScoresCollectionRequestBuilder is request builder for SecureScore collection
+type SecuritySecureScoresCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecureScore collection
+func (b *SecuritySecureScoresCollectionRequestBuilder) Request() *SecuritySecureScoresCollectionRequest {
+ return &SecuritySecureScoresCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecureScore item
+func (b *SecuritySecureScoresCollectionRequestBuilder) ID(id string) *SecureScoreRequestBuilder {
+ bb := &SecureScoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecuritySecureScoresCollectionRequest is request for SecureScore collection
+type SecuritySecureScoresCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecureScore collection
+func (r *SecuritySecureScoresCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecureScore, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecureScore
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecureScore
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SecureScore collection, max N pages
+func (r *SecuritySecureScoresCollectionRequest) GetN(ctx context.Context, n int) ([]SecureScore, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SecureScore collection
+func (r *SecuritySecureScoresCollectionRequest) Get(ctx context.Context) ([]SecureScore, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SecureScore collection
+func (r *SecuritySecureScoresCollectionRequest) Add(ctx context.Context, reqObj *SecureScore) (resObj *SecureScore, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SecurityActions returns request builder for SecurityAction collection
+func (b *SecurityRequestBuilder) SecurityActions() *SecuritySecurityActionsCollectionRequestBuilder {
+ bb := &SecuritySecurityActionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/securityActions"
+ return bb
+}
+
+// SecuritySecurityActionsCollectionRequestBuilder is request builder for SecurityAction collection
+type SecuritySecurityActionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityAction collection
+func (b *SecuritySecurityActionsCollectionRequestBuilder) Request() *SecuritySecurityActionsCollectionRequest {
+ return &SecuritySecurityActionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityAction item
+func (b *SecuritySecurityActionsCollectionRequestBuilder) ID(id string) *SecurityActionRequestBuilder {
+ bb := &SecurityActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecuritySecurityActionsCollectionRequest is request for SecurityAction collection
+type SecuritySecurityActionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityAction collection
+func (r *SecuritySecurityActionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SecurityAction collection, max N pages
+func (r *SecuritySecurityActionsCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityAction, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SecurityAction collection
+func (r *SecuritySecurityActionsCollectionRequest) Get(ctx context.Context) ([]SecurityAction, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SecurityAction collection
+func (r *SecuritySecurityActionsCollectionRequest) Add(ctx context.Context, reqObj *SecurityAction) (resObj *SecurityAction, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TiIndicators returns request builder for TiIndicator collection
+func (b *SecurityRequestBuilder) TiIndicators() *SecurityTiIndicatorsCollectionRequestBuilder {
+ bb := &SecurityTiIndicatorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tiIndicators"
+ return bb
+}
+
+// SecurityTiIndicatorsCollectionRequestBuilder is request builder for TiIndicator collection
+type SecurityTiIndicatorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TiIndicator collection
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) Request() *SecurityTiIndicatorsCollectionRequest {
+ return &SecurityTiIndicatorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TiIndicator item
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) ID(id string) *TiIndicatorRequestBuilder {
+ bb := &TiIndicatorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityTiIndicatorsCollectionRequest is request for TiIndicator collection
+type SecurityTiIndicatorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TiIndicator collection
+func (r *SecurityTiIndicatorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TiIndicator, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TiIndicator
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TiIndicator
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TiIndicator collection, max N pages
+func (r *SecurityTiIndicatorsCollectionRequest) GetN(ctx context.Context, n int) ([]TiIndicator, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TiIndicator collection
+func (r *SecurityTiIndicatorsCollectionRequest) Get(ctx context.Context) ([]TiIndicator, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TiIndicator collection
+func (r *SecurityTiIndicatorsCollectionRequest) Add(ctx context.Context, reqObj *TiIndicator) (resObj *TiIndicator, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UserSecurityProfiles returns request builder for UserSecurityProfile collection
+func (b *SecurityRequestBuilder) UserSecurityProfiles() *SecurityUserSecurityProfilesCollectionRequestBuilder {
+ bb := &SecurityUserSecurityProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/userSecurityProfiles"
+ return bb
+}
+
+// SecurityUserSecurityProfilesCollectionRequestBuilder is request builder for UserSecurityProfile collection
+type SecurityUserSecurityProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserSecurityProfile collection
+func (b *SecurityUserSecurityProfilesCollectionRequestBuilder) Request() *SecurityUserSecurityProfilesCollectionRequest {
+ return &SecurityUserSecurityProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserSecurityProfile item
+func (b *SecurityUserSecurityProfilesCollectionRequestBuilder) ID(id string) *UserSecurityProfileRequestBuilder {
+ bb := &UserSecurityProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityUserSecurityProfilesCollectionRequest is request for UserSecurityProfile collection
+type SecurityUserSecurityProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserSecurityProfile collection
+func (r *SecurityUserSecurityProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserSecurityProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserSecurityProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserSecurityProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserSecurityProfile collection, max N pages
+func (r *SecurityUserSecurityProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]UserSecurityProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserSecurityProfile collection
+func (r *SecurityUserSecurityProfilesCollectionRequest) Get(ctx context.Context) ([]UserSecurityProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserSecurityProfile collection
+func (r *SecurityUserSecurityProfilesCollectionRequest) Add(ctx context.Context, reqObj *UserSecurityProfile) (resObj *UserSecurityProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SettingStates returns request builder for SecurityBaselineSettingState collection
+func (b *SecurityBaselineStateRequestBuilder) SettingStates() *SecurityBaselineStateSettingStatesCollectionRequestBuilder {
+ bb := &SecurityBaselineStateSettingStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settingStates"
+ return bb
+}
+
+// SecurityBaselineStateSettingStatesCollectionRequestBuilder is request builder for SecurityBaselineSettingState collection
+type SecurityBaselineStateSettingStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityBaselineSettingState collection
+func (b *SecurityBaselineStateSettingStatesCollectionRequestBuilder) Request() *SecurityBaselineStateSettingStatesCollectionRequest {
+ return &SecurityBaselineStateSettingStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityBaselineSettingState item
+func (b *SecurityBaselineStateSettingStatesCollectionRequestBuilder) ID(id string) *SecurityBaselineSettingStateRequestBuilder {
+ bb := &SecurityBaselineSettingStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityBaselineStateSettingStatesCollectionRequest is request for SecurityBaselineSettingState collection
+type SecurityBaselineStateSettingStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityBaselineSettingState collection
+func (r *SecurityBaselineStateSettingStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityBaselineSettingState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityBaselineSettingState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityBaselineSettingState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SecurityBaselineSettingState collection, max N pages
+func (r *SecurityBaselineStateSettingStatesCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityBaselineSettingState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SecurityBaselineSettingState collection
+func (r *SecurityBaselineStateSettingStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineSettingState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SecurityBaselineSettingState collection
+func (r *SecurityBaselineStateSettingStatesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineSettingState) (resObj *SecurityBaselineSettingState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CategoryDeviceStateSummaries returns request builder for SecurityBaselineCategoryStateSummary collection
+func (b *SecurityBaselineTemplateRequestBuilder) CategoryDeviceStateSummaries() *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder {
+ bb := &SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categoryDeviceStateSummaries"
+ return bb
+}
+
+// SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder is request builder for SecurityBaselineCategoryStateSummary collection
+type SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityBaselineCategoryStateSummary collection
+func (b *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder) Request() *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest {
+ return &SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityBaselineCategoryStateSummary item
+func (b *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequestBuilder) ID(id string) *SecurityBaselineCategoryStateSummaryRequestBuilder {
+ bb := &SecurityBaselineCategoryStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest is request for SecurityBaselineCategoryStateSummary collection
+type SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityBaselineCategoryStateSummary collection
+func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityBaselineCategoryStateSummary, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityBaselineCategoryStateSummary
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityBaselineCategoryStateSummary
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SecurityBaselineCategoryStateSummary collection, max N pages
+func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityBaselineCategoryStateSummary, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SecurityBaselineCategoryStateSummary collection
+func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineCategoryStateSummary, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SecurityBaselineCategoryStateSummary collection
+func (r *SecurityBaselineTemplateCategoryDeviceStateSummariesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineCategoryStateSummary) (resObj *SecurityBaselineCategoryStateSummary, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStateSummary is navigation property
+func (b *SecurityBaselineTemplateRequestBuilder) DeviceStateSummary() *SecurityBaselineStateSummaryRequestBuilder {
+ bb := &SecurityBaselineStateSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStateSummary"
+ return bb
+}
+
+// DeviceStates returns request builder for SecurityBaselineDeviceState collection
+func (b *SecurityBaselineTemplateRequestBuilder) DeviceStates() *SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder {
+ bb := &SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder is request builder for SecurityBaselineDeviceState collection
+type SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SecurityBaselineDeviceState collection
+func (b *SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder) Request() *SecurityBaselineTemplateDeviceStatesCollectionRequest {
+ return &SecurityBaselineTemplateDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SecurityBaselineDeviceState item
+func (b *SecurityBaselineTemplateDeviceStatesCollectionRequestBuilder) ID(id string) *SecurityBaselineDeviceStateRequestBuilder {
+ bb := &SecurityBaselineDeviceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SecurityBaselineTemplateDeviceStatesCollectionRequest is request for SecurityBaselineDeviceState collection
+type SecurityBaselineTemplateDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SecurityBaselineDeviceState collection
+func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SecurityBaselineDeviceState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SecurityBaselineDeviceState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SecurityBaselineDeviceState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SecurityBaselineDeviceState collection, max N pages
+func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]SecurityBaselineDeviceState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SecurityBaselineDeviceState collection
+func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Get(ctx context.Context) ([]SecurityBaselineDeviceState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SecurityBaselineDeviceState collection
+func (r *SecurityBaselineTemplateDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *SecurityBaselineDeviceState) (resObj *SecurityBaselineDeviceState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSensitivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSensitivity.go
new file mode 100644
index 00000000..b1fe3746
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSensitivity.go
@@ -0,0 +1,122 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SensitivityLabelCollectionEvaluateRequestParameter undocumented
+type SensitivityLabelCollectionEvaluateRequestParameter struct {
+ // DiscoveredSensitiveTypes undocumented
+ DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"`
+ // CurrentLabel undocumented
+ CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"`
+}
+
+// Sublabels returns request builder for SensitivityLabel collection
+func (b *SensitivityLabelRequestBuilder) Sublabels() *SensitivityLabelSublabelsCollectionRequestBuilder {
+ bb := &SensitivityLabelSublabelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sublabels"
+ return bb
+}
+
+// SensitivityLabelSublabelsCollectionRequestBuilder is request builder for SensitivityLabel collection
+type SensitivityLabelSublabelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SensitivityLabel collection
+func (b *SensitivityLabelSublabelsCollectionRequestBuilder) Request() *SensitivityLabelSublabelsCollectionRequest {
+ return &SensitivityLabelSublabelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SensitivityLabel item
+func (b *SensitivityLabelSublabelsCollectionRequestBuilder) ID(id string) *SensitivityLabelRequestBuilder {
+ bb := &SensitivityLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SensitivityLabelSublabelsCollectionRequest is request for SensitivityLabel collection
+type SensitivityLabelSublabelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SensitivityLabel collection
+func (r *SensitivityLabelSublabelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SensitivityLabel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SensitivityLabel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SensitivityLabel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SensitivityLabel collection, max N pages
+func (r *SensitivityLabelSublabelsCollectionRequest) GetN(ctx context.Context, n int) ([]SensitivityLabel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SensitivityLabel collection
+func (r *SensitivityLabelSublabelsCollectionRequest) Get(ctx context.Context) ([]SensitivityLabel, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SensitivityLabel collection
+func (r *SensitivityLabelSublabelsCollectionRequest) Add(ctx context.Context, reqObj *SensitivityLabel) (resObj *SensitivityLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go
new file mode 100644
index 00000000..07d10ab1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionService.go
@@ -0,0 +1,1067 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestParameter undocumented
+type ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Credentials undocumented
+ Credentials []Credential `json:"credentials,omitempty"`
+}
+
+// ServicePrincipalGetPasswordSingleSignOnCredentialsRequestParameter undocumented
+type ServicePrincipalGetPasswordSingleSignOnCredentialsRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+}
+
+// ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestParameter undocumented
+type ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+}
+
+// ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestParameter undocumented
+type ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestParameter struct {
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Credentials undocumented
+ Credentials []Credential `json:"credentials,omitempty"`
+}
+
+// AppRoleAssignedTo returns request builder for AppRoleAssignment collection
+func (b *ServicePrincipalRequestBuilder) AppRoleAssignedTo() *ServicePrincipalAppRoleAssignedToCollectionRequestBuilder {
+ bb := &ServicePrincipalAppRoleAssignedToCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignedTo"
+ return bb
+}
+
+// ServicePrincipalAppRoleAssignedToCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type ServicePrincipalAppRoleAssignedToCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *ServicePrincipalAppRoleAssignedToCollectionRequestBuilder) Request() *ServicePrincipalAppRoleAssignedToCollectionRequest {
+ return &ServicePrincipalAppRoleAssignedToCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *ServicePrincipalAppRoleAssignedToCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalAppRoleAssignedToCollectionRequest is request for AppRoleAssignment collection
+type ServicePrincipalAppRoleAssignedToCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppRoleAssignment collection, max N pages
+func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignedToCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AppRoleAssignments returns request builder for AppRoleAssignment collection
+func (b *ServicePrincipalRequestBuilder) AppRoleAssignments() *ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder {
+ bb := &ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignments"
+ return bb
+}
+
+// ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder) Request() *ServicePrincipalAppRoleAssignmentsCollectionRequest {
+ return &ServicePrincipalAppRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *ServicePrincipalAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection
+type ServicePrincipalAppRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppRoleAssignment collection, max N pages
+func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *ServicePrincipalAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CreatedObjects returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) CreatedObjects() *ServicePrincipalCreatedObjectsCollectionRequestBuilder {
+ bb := &ServicePrincipalCreatedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdObjects"
+ return bb
+}
+
+// ServicePrincipalCreatedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalCreatedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) Request() *ServicePrincipalCreatedObjectsCollectionRequest {
+ return &ServicePrincipalCreatedObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalCreatedObjectsCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalCreatedObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalCreatedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *ServicePrincipalCreatedObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalCreatedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalCreatedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LicenseDetails returns request builder for LicenseDetails collection
+func (b *ServicePrincipalRequestBuilder) LicenseDetails() *ServicePrincipalLicenseDetailsCollectionRequestBuilder {
+ bb := &ServicePrincipalLicenseDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/licenseDetails"
+ return bb
+}
+
+// ServicePrincipalLicenseDetailsCollectionRequestBuilder is request builder for LicenseDetails collection
+type ServicePrincipalLicenseDetailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LicenseDetails collection
+func (b *ServicePrincipalLicenseDetailsCollectionRequestBuilder) Request() *ServicePrincipalLicenseDetailsCollectionRequest {
+ return &ServicePrincipalLicenseDetailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LicenseDetails item
+func (b *ServicePrincipalLicenseDetailsCollectionRequestBuilder) ID(id string) *LicenseDetailsRequestBuilder {
+ bb := &LicenseDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalLicenseDetailsCollectionRequest is request for LicenseDetails collection
+type ServicePrincipalLicenseDetailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LicenseDetails collection
+func (r *ServicePrincipalLicenseDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LicenseDetails, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LicenseDetails
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LicenseDetails
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for LicenseDetails collection, max N pages
+func (r *ServicePrincipalLicenseDetailsCollectionRequest) GetN(ctx context.Context, n int) ([]LicenseDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for LicenseDetails collection
+func (r *ServicePrincipalLicenseDetailsCollectionRequest) Get(ctx context.Context) ([]LicenseDetails, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for LicenseDetails collection
+func (r *ServicePrincipalLicenseDetailsCollectionRequest) Add(ctx context.Context, reqObj *LicenseDetails) (resObj *LicenseDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) MemberOf() *ServicePrincipalMemberOfCollectionRequestBuilder {
+ bb := &ServicePrincipalMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// ServicePrincipalMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) Request() *ServicePrincipalMemberOfCollectionRequest {
+ return &ServicePrincipalMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalMemberOfCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *ServicePrincipalMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Oauth2PermissionGrants returns request builder for OAuth2PermissionGrant collection
+func (b *ServicePrincipalRequestBuilder) Oauth2PermissionGrants() *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder {
+ bb := &ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/oauth2PermissionGrants"
+ return bb
+}
+
+// ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder is request builder for OAuth2PermissionGrant collection
+type ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OAuth2PermissionGrant collection
+func (b *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder) Request() *ServicePrincipalOauth2PermissionGrantsCollectionRequest {
+ return &ServicePrincipalOauth2PermissionGrantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OAuth2PermissionGrant item
+func (b *ServicePrincipalOauth2PermissionGrantsCollectionRequestBuilder) ID(id string) *OAuth2PermissionGrantRequestBuilder {
+ bb := &OAuth2PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalOauth2PermissionGrantsCollectionRequest is request for OAuth2PermissionGrant collection
+type ServicePrincipalOauth2PermissionGrantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OAuth2PermissionGrant collection
+func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OAuth2PermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OAuth2PermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OAuth2PermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OAuth2PermissionGrant collection, max N pages
+func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]OAuth2PermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OAuth2PermissionGrant collection
+func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OAuth2PermissionGrant collection
+func (r *ServicePrincipalOauth2PermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *OAuth2PermissionGrant) (resObj *OAuth2PermissionGrant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OwnedObjects returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) OwnedObjects() *ServicePrincipalOwnedObjectsCollectionRequestBuilder {
+ bb := &ServicePrincipalOwnedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ownedObjects"
+ return bb
+}
+
+// ServicePrincipalOwnedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalOwnedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) Request() *ServicePrincipalOwnedObjectsCollectionRequest {
+ return &ServicePrincipalOwnedObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalOwnedObjectsCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalOwnedObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalOwnedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *ServicePrincipalOwnedObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalOwnedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalOwnedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Owners returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) Owners() *ServicePrincipalOwnersCollectionRequestBuilder {
+ bb := &ServicePrincipalOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/owners"
+ return bb
+}
+
+// ServicePrincipalOwnersCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) Request() *ServicePrincipalOwnersCollectionRequest {
+ return &ServicePrincipalOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalOwnersCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *ServicePrincipalOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalOwnersCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalOwnersCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) Policies() *ServicePrincipalPoliciesCollectionRequestBuilder {
+ bb := &ServicePrincipalPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// ServicePrincipalPoliciesCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) Request() *ServicePrincipalPoliciesCollectionRequest {
+ return &ServicePrincipalPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalPoliciesCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *ServicePrincipalPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalPoliciesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalPoliciesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Synchronization is navigation property
+func (b *ServicePrincipalRequestBuilder) Synchronization() *SynchronizationRequestBuilder {
+ bb := &SynchronizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/synchronization"
+ return bb
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *ServicePrincipalRequestBuilder) TransitiveMemberOf() *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder {
+ bb := &ServicePrincipalTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// ServicePrincipalTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type ServicePrincipalTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) Request() *ServicePrincipalTransitiveMemberOfCollectionRequest {
+ return &ServicePrincipalTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ServicePrincipalTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type ServicePrincipalTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *ServicePrincipalTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionShared.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionShared.go
new file mode 100644
index 00000000..9e9069cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionShared.go
@@ -0,0 +1,170 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DriveItem is navigation property
+func (b *SharedDriveItemRequestBuilder) DriveItem() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/driveItem"
+ return bb
+}
+
+// Items returns request builder for DriveItem collection
+func (b *SharedDriveItemRequestBuilder) Items() *SharedDriveItemItemsCollectionRequestBuilder {
+ bb := &SharedDriveItemItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// SharedDriveItemItemsCollectionRequestBuilder is request builder for DriveItem collection
+type SharedDriveItemItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *SharedDriveItemItemsCollectionRequestBuilder) Request() *SharedDriveItemItemsCollectionRequest {
+ return &SharedDriveItemItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *SharedDriveItemItemsCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SharedDriveItemItemsCollectionRequest is request for DriveItem collection
+type SharedDriveItemItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *SharedDriveItemItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DriveItem collection, max N pages
+func (r *SharedDriveItemItemsCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DriveItem collection
+func (r *SharedDriveItemItemsCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *SharedDriveItemItemsCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// List is navigation property
+func (b *SharedDriveItemRequestBuilder) List() *ListRequestBuilder {
+ bb := &ListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/list"
+ return bb
+}
+
+// ListItem is navigation property
+func (b *SharedDriveItemRequestBuilder) ListItem() *ListItemRequestBuilder {
+ bb := &ListItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/listItem"
+ return bb
+}
+
+// Permission is navigation property
+func (b *SharedDriveItemRequestBuilder) Permission() *PermissionRequestBuilder {
+ bb := &PermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/permission"
+ return bb
+}
+
+// Root is navigation property
+func (b *SharedDriveItemRequestBuilder) Root() *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/root"
+ return bb
+}
+
+// Site is navigation property
+func (b *SharedDriveItemRequestBuilder) Site() *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/site"
+ return bb
+}
+
+// LastSharedMethod is navigation property
+func (b *SharedInsightRequestBuilder) LastSharedMethod() *EntityRequestBuilder {
+ bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/lastSharedMethod"
+ return bb
+}
+
+// Resource is navigation property
+func (b *SharedInsightRequestBuilder) Resource() *EntityRequestBuilder {
+ bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go
new file mode 100644
index 00000000..31140197
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSite.go
@@ -0,0 +1,763 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SiteCollectionAddRequestParameter undocumented
+type SiteCollectionAddRequestParameter struct {
+ // Value undocumented
+ Value []Site `json:"value,omitempty"`
+}
+
+// SiteCollectionRemoveRequestParameter undocumented
+type SiteCollectionRemoveRequestParameter struct {
+ // Value undocumented
+ Value []Site `json:"value,omitempty"`
+}
+
+// SitePagePublishRequestParameter undocumented
+type SitePagePublishRequestParameter struct {
+}
+
+// Analytics is navigation property
+func (b *SiteRequestBuilder) Analytics() *ItemAnalyticsRequestBuilder {
+ bb := &ItemAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/analytics"
+ return bb
+}
+
+// Columns returns request builder for ColumnDefinition collection
+func (b *SiteRequestBuilder) Columns() *SiteColumnsCollectionRequestBuilder {
+ bb := &SiteColumnsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/columns"
+ return bb
+}
+
+// SiteColumnsCollectionRequestBuilder is request builder for ColumnDefinition collection
+type SiteColumnsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ColumnDefinition collection
+func (b *SiteColumnsCollectionRequestBuilder) Request() *SiteColumnsCollectionRequest {
+ return &SiteColumnsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ColumnDefinition item
+func (b *SiteColumnsCollectionRequestBuilder) ID(id string) *ColumnDefinitionRequestBuilder {
+ bb := &ColumnDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteColumnsCollectionRequest is request for ColumnDefinition collection
+type SiteColumnsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ColumnDefinition collection
+func (r *SiteColumnsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ColumnDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ColumnDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ColumnDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ColumnDefinition collection, max N pages
+func (r *SiteColumnsCollectionRequest) GetN(ctx context.Context, n int) ([]ColumnDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ColumnDefinition collection
+func (r *SiteColumnsCollectionRequest) Get(ctx context.Context) ([]ColumnDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ColumnDefinition collection
+func (r *SiteColumnsCollectionRequest) Add(ctx context.Context, reqObj *ColumnDefinition) (resObj *ColumnDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ContentTypes returns request builder for ContentType collection
+func (b *SiteRequestBuilder) ContentTypes() *SiteContentTypesCollectionRequestBuilder {
+ bb := &SiteContentTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contentTypes"
+ return bb
+}
+
+// SiteContentTypesCollectionRequestBuilder is request builder for ContentType collection
+type SiteContentTypesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ContentType collection
+func (b *SiteContentTypesCollectionRequestBuilder) Request() *SiteContentTypesCollectionRequest {
+ return &SiteContentTypesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ContentType item
+func (b *SiteContentTypesCollectionRequestBuilder) ID(id string) *ContentTypeRequestBuilder {
+ bb := &ContentTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteContentTypesCollectionRequest is request for ContentType collection
+type SiteContentTypesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ContentType collection
+func (r *SiteContentTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ContentType, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ContentType
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ContentType
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ContentType collection, max N pages
+func (r *SiteContentTypesCollectionRequest) GetN(ctx context.Context, n int) ([]ContentType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ContentType collection
+func (r *SiteContentTypesCollectionRequest) Get(ctx context.Context) ([]ContentType, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ContentType collection
+func (r *SiteContentTypesCollectionRequest) Add(ctx context.Context, reqObj *ContentType) (resObj *ContentType, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Drive is navigation property
+func (b *SiteRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Drives returns request builder for Drive collection
+func (b *SiteRequestBuilder) Drives() *SiteDrivesCollectionRequestBuilder {
+ bb := &SiteDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drives"
+ return bb
+}
+
+// SiteDrivesCollectionRequestBuilder is request builder for Drive collection
+type SiteDrivesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Drive collection
+func (b *SiteDrivesCollectionRequestBuilder) Request() *SiteDrivesCollectionRequest {
+ return &SiteDrivesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Drive item
+func (b *SiteDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteDrivesCollectionRequest is request for Drive collection
+type SiteDrivesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Drive collection
+func (r *SiteDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Drive, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Drive
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Drive
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Drive collection, max N pages
+func (r *SiteDrivesCollectionRequest) GetN(ctx context.Context, n int) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Drive collection
+func (r *SiteDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Drive collection
+func (r *SiteDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Items returns request builder for BaseItem collection
+func (b *SiteRequestBuilder) Items() *SiteItemsCollectionRequestBuilder {
+ bb := &SiteItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/items"
+ return bb
+}
+
+// SiteItemsCollectionRequestBuilder is request builder for BaseItem collection
+type SiteItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BaseItem collection
+func (b *SiteItemsCollectionRequestBuilder) Request() *SiteItemsCollectionRequest {
+ return &SiteItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BaseItem item
+func (b *SiteItemsCollectionRequestBuilder) ID(id string) *BaseItemRequestBuilder {
+ bb := &BaseItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteItemsCollectionRequest is request for BaseItem collection
+type SiteItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BaseItem collection
+func (r *SiteItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BaseItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BaseItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BaseItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BaseItem collection, max N pages
+func (r *SiteItemsCollectionRequest) GetN(ctx context.Context, n int) ([]BaseItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BaseItem collection
+func (r *SiteItemsCollectionRequest) Get(ctx context.Context) ([]BaseItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BaseItem collection
+func (r *SiteItemsCollectionRequest) Add(ctx context.Context, reqObj *BaseItem) (resObj *BaseItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Lists returns request builder for List collection
+func (b *SiteRequestBuilder) Lists() *SiteListsCollectionRequestBuilder {
+ bb := &SiteListsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/lists"
+ return bb
+}
+
+// SiteListsCollectionRequestBuilder is request builder for List collection
+type SiteListsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for List collection
+func (b *SiteListsCollectionRequestBuilder) Request() *SiteListsCollectionRequest {
+ return &SiteListsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for List item
+func (b *SiteListsCollectionRequestBuilder) ID(id string) *ListRequestBuilder {
+ bb := &ListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteListsCollectionRequest is request for List collection
+type SiteListsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for List collection
+func (r *SiteListsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]List, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []List
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []List
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for List collection, max N pages
+func (r *SiteListsCollectionRequest) GetN(ctx context.Context, n int) ([]List, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for List collection
+func (r *SiteListsCollectionRequest) Get(ctx context.Context) ([]List, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for List collection
+func (r *SiteListsCollectionRequest) Add(ctx context.Context, reqObj *List) (resObj *List, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Onenote is navigation property
+func (b *SiteRequestBuilder) Onenote() *OnenoteRequestBuilder {
+ bb := &OnenoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onenote"
+ return bb
+}
+
+// Pages returns request builder for SitePage collection
+func (b *SiteRequestBuilder) Pages() *SitePagesCollectionRequestBuilder {
+ bb := &SitePagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/pages"
+ return bb
+}
+
+// SitePagesCollectionRequestBuilder is request builder for SitePage collection
+type SitePagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SitePage collection
+func (b *SitePagesCollectionRequestBuilder) Request() *SitePagesCollectionRequest {
+ return &SitePagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SitePage item
+func (b *SitePagesCollectionRequestBuilder) ID(id string) *SitePageRequestBuilder {
+ bb := &SitePageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SitePagesCollectionRequest is request for SitePage collection
+type SitePagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SitePage collection
+func (r *SitePagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SitePage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SitePage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SitePage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SitePage collection, max N pages
+func (r *SitePagesCollectionRequest) GetN(ctx context.Context, n int) ([]SitePage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SitePage collection
+func (r *SitePagesCollectionRequest) Get(ctx context.Context) ([]SitePage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SitePage collection
+func (r *SitePagesCollectionRequest) Add(ctx context.Context, reqObj *SitePage) (resObj *SitePage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sites returns request builder for Site collection
+func (b *SiteRequestBuilder) Sites() *SiteSitesCollectionRequestBuilder {
+ bb := &SiteSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sites"
+ return bb
+}
+
+// SiteSitesCollectionRequestBuilder is request builder for Site collection
+type SiteSitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Site collection
+func (b *SiteSitesCollectionRequestBuilder) Request() *SiteSitesCollectionRequest {
+ return &SiteSitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Site item
+func (b *SiteSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SiteSitesCollectionRequest is request for Site collection
+type SiteSitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Site collection
+func (r *SiteSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Site collection, max N pages
+func (r *SiteSitesCollectionRequest) GetN(ctx context.Context, n int) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Site collection
+func (r *SiteSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Site collection
+func (r *SiteSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionSynchronization.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSynchronization.go
new file mode 100644
index 00000000..1e8b1d2c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionSynchronization.go
@@ -0,0 +1,394 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SynchronizationJobCollectionValidateCredentialsRequestParameter undocumented
+type SynchronizationJobCollectionValidateCredentialsRequestParameter struct {
+ // ApplicationIdentifier undocumented
+ ApplicationIdentifier *string `json:"applicationIdentifier,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // UseSavedCredentials undocumented
+ UseSavedCredentials *bool `json:"useSavedCredentials,omitempty"`
+ // Credentials undocumented
+ Credentials []SynchronizationSecretKeyStringValuePair `json:"credentials,omitempty"`
+}
+
+// SynchronizationJobPauseRequestParameter undocumented
+type SynchronizationJobPauseRequestParameter struct {
+}
+
+// SynchronizationJobStartRequestParameter undocumented
+type SynchronizationJobStartRequestParameter struct {
+}
+
+// SynchronizationJobStopRequestParameter undocumented
+type SynchronizationJobStopRequestParameter struct {
+}
+
+// SynchronizationJobApplyRequestParameter undocumented
+type SynchronizationJobApplyRequestParameter struct {
+ // ObjectID undocumented
+ ObjectID *string `json:"objectId,omitempty"`
+ // TypeName undocumented
+ TypeName *string `json:"typeName,omitempty"`
+ // RuleID undocumented
+ RuleID *string `json:"ruleId,omitempty"`
+}
+
+// SynchronizationJobRestartRequestParameter undocumented
+type SynchronizationJobRestartRequestParameter struct {
+ // Criteria undocumented
+ Criteria *SynchronizationJobRestartCriteria `json:"criteria,omitempty"`
+}
+
+// SynchronizationJobValidateCredentialsRequestParameter undocumented
+type SynchronizationJobValidateCredentialsRequestParameter struct {
+ // ApplicationIdentifier undocumented
+ ApplicationIdentifier *string `json:"applicationIdentifier,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // UseSavedCredentials undocumented
+ UseSavedCredentials *bool `json:"useSavedCredentials,omitempty"`
+ // Credentials undocumented
+ Credentials []SynchronizationSecretKeyStringValuePair `json:"credentials,omitempty"`
+}
+
+// SynchronizationSchemaParseExpressionRequestParameter undocumented
+type SynchronizationSchemaParseExpressionRequestParameter struct {
+ // Expression undocumented
+ Expression *string `json:"expression,omitempty"`
+ // TestInputObject undocumented
+ TestInputObject *ExpressionInputObject `json:"testInputObject,omitempty"`
+ // TargetAttributeDefinition undocumented
+ TargetAttributeDefinition *AttributeDefinition `json:"targetAttributeDefinition,omitempty"`
+}
+
+// Jobs returns request builder for SynchronizationJob collection
+func (b *SynchronizationRequestBuilder) Jobs() *SynchronizationJobsCollectionRequestBuilder {
+ bb := &SynchronizationJobsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/jobs"
+ return bb
+}
+
+// SynchronizationJobsCollectionRequestBuilder is request builder for SynchronizationJob collection
+type SynchronizationJobsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SynchronizationJob collection
+func (b *SynchronizationJobsCollectionRequestBuilder) Request() *SynchronizationJobsCollectionRequest {
+ return &SynchronizationJobsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SynchronizationJob item
+func (b *SynchronizationJobsCollectionRequestBuilder) ID(id string) *SynchronizationJobRequestBuilder {
+ bb := &SynchronizationJobRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SynchronizationJobsCollectionRequest is request for SynchronizationJob collection
+type SynchronizationJobsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SynchronizationJob collection
+func (r *SynchronizationJobsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SynchronizationJob, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SynchronizationJob
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SynchronizationJob
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SynchronizationJob collection, max N pages
+func (r *SynchronizationJobsCollectionRequest) GetN(ctx context.Context, n int) ([]SynchronizationJob, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SynchronizationJob collection
+func (r *SynchronizationJobsCollectionRequest) Get(ctx context.Context) ([]SynchronizationJob, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SynchronizationJob collection
+func (r *SynchronizationJobsCollectionRequest) Add(ctx context.Context, reqObj *SynchronizationJob) (resObj *SynchronizationJob, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Templates returns request builder for SynchronizationTemplate collection
+func (b *SynchronizationRequestBuilder) Templates() *SynchronizationTemplatesCollectionRequestBuilder {
+ bb := &SynchronizationTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/templates"
+ return bb
+}
+
+// SynchronizationTemplatesCollectionRequestBuilder is request builder for SynchronizationTemplate collection
+type SynchronizationTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SynchronizationTemplate collection
+func (b *SynchronizationTemplatesCollectionRequestBuilder) Request() *SynchronizationTemplatesCollectionRequest {
+ return &SynchronizationTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SynchronizationTemplate item
+func (b *SynchronizationTemplatesCollectionRequestBuilder) ID(id string) *SynchronizationTemplateRequestBuilder {
+ bb := &SynchronizationTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SynchronizationTemplatesCollectionRequest is request for SynchronizationTemplate collection
+type SynchronizationTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SynchronizationTemplate collection
+func (r *SynchronizationTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SynchronizationTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SynchronizationTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SynchronizationTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SynchronizationTemplate collection, max N pages
+func (r *SynchronizationTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]SynchronizationTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SynchronizationTemplate collection
+func (r *SynchronizationTemplatesCollectionRequest) Get(ctx context.Context) ([]SynchronizationTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SynchronizationTemplate collection
+func (r *SynchronizationTemplatesCollectionRequest) Add(ctx context.Context, reqObj *SynchronizationTemplate) (resObj *SynchronizationTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Schema is navigation property
+func (b *SynchronizationJobRequestBuilder) Schema() *SynchronizationSchemaRequestBuilder {
+ bb := &SynchronizationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schema"
+ return bb
+}
+
+// Directories returns request builder for DirectoryDefinition collection
+func (b *SynchronizationSchemaRequestBuilder) Directories() *SynchronizationSchemaDirectoriesCollectionRequestBuilder {
+ bb := &SynchronizationSchemaDirectoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directories"
+ return bb
+}
+
+// SynchronizationSchemaDirectoriesCollectionRequestBuilder is request builder for DirectoryDefinition collection
+type SynchronizationSchemaDirectoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryDefinition collection
+func (b *SynchronizationSchemaDirectoriesCollectionRequestBuilder) Request() *SynchronizationSchemaDirectoriesCollectionRequest {
+ return &SynchronizationSchemaDirectoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryDefinition item
+func (b *SynchronizationSchemaDirectoriesCollectionRequestBuilder) ID(id string) *DirectoryDefinitionRequestBuilder {
+ bb := &DirectoryDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// SynchronizationSchemaDirectoriesCollectionRequest is request for DirectoryDefinition collection
+type SynchronizationSchemaDirectoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryDefinition collection
+func (r *SynchronizationSchemaDirectoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryDefinition collection, max N pages
+func (r *SynchronizationSchemaDirectoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryDefinition collection
+func (r *SynchronizationSchemaDirectoriesCollectionRequest) Get(ctx context.Context) ([]DirectoryDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryDefinition collection
+func (r *SynchronizationSchemaDirectoriesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryDefinition) (resObj *DirectoryDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Schema is navigation property
+func (b *SynchronizationTemplateRequestBuilder) Schema() *SynchronizationSchemaRequestBuilder {
+ bb := &SynchronizationSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schema"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTargeted.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTargeted.go
new file mode 100644
index 00000000..e03fa2cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTargeted.go
@@ -0,0 +1,349 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestParameter undocumented
+type TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// TargetedManagedAppConfigurationAssignRequestParameter undocumented
+type TargetedManagedAppConfigurationAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
+
+// TargetedManagedAppConfigurationTargetAppsRequestParameter undocumented
+type TargetedManagedAppConfigurationTargetAppsRequestParameter struct {
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+}
+
+// TargetedManagedAppProtectionAssignRequestParameter undocumented
+type TargetedManagedAppProtectionAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
+
+// Apps returns request builder for ManagedMobileApp collection
+func (b *TargetedManagedAppConfigurationRequestBuilder) Apps() *TargetedManagedAppConfigurationAppsCollectionRequestBuilder {
+ bb := &TargetedManagedAppConfigurationAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// TargetedManagedAppConfigurationAppsCollectionRequestBuilder is request builder for ManagedMobileApp collection
+type TargetedManagedAppConfigurationAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedMobileApp collection
+func (b *TargetedManagedAppConfigurationAppsCollectionRequestBuilder) Request() *TargetedManagedAppConfigurationAppsCollectionRequest {
+ return &TargetedManagedAppConfigurationAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedMobileApp item
+func (b *TargetedManagedAppConfigurationAppsCollectionRequestBuilder) ID(id string) *ManagedMobileAppRequestBuilder {
+ bb := &ManagedMobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TargetedManagedAppConfigurationAppsCollectionRequest is request for ManagedMobileApp collection
+type TargetedManagedAppConfigurationAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedMobileApp collection
+func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedMobileApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedMobileApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedMobileApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedMobileApp collection, max N pages
+func (r *TargetedManagedAppConfigurationAppsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedMobileApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedMobileApp collection
+func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Get(ctx context.Context) ([]ManagedMobileApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedMobileApp collection
+func (r *TargetedManagedAppConfigurationAppsCollectionRequest) Add(ctx context.Context, reqObj *ManagedMobileApp) (resObj *ManagedMobileApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for TargetedManagedAppPolicyAssignment collection
+func (b *TargetedManagedAppConfigurationRequestBuilder) Assignments() *TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder {
+ bb := &TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder is request builder for TargetedManagedAppPolicyAssignment collection
+type TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TargetedManagedAppPolicyAssignment collection
+func (b *TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder) Request() *TargetedManagedAppConfigurationAssignmentsCollectionRequest {
+ return &TargetedManagedAppConfigurationAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TargetedManagedAppPolicyAssignment item
+func (b *TargetedManagedAppConfigurationAssignmentsCollectionRequestBuilder) ID(id string) *TargetedManagedAppPolicyAssignmentRequestBuilder {
+ bb := &TargetedManagedAppPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TargetedManagedAppConfigurationAssignmentsCollectionRequest is request for TargetedManagedAppPolicyAssignment collection
+type TargetedManagedAppConfigurationAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TargetedManagedAppPolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TargetedManagedAppPolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TargetedManagedAppPolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TargetedManagedAppPolicyAssignment collection, max N pages
+func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TargetedManagedAppPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppConfigurationAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) (resObj *TargetedManagedAppPolicyAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploymentSummary is navigation property
+func (b *TargetedManagedAppConfigurationRequestBuilder) DeploymentSummary() *ManagedAppPolicyDeploymentSummaryRequestBuilder {
+ bb := &ManagedAppPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentSummary"
+ return bb
+}
+
+// Assignments returns request builder for TargetedManagedAppPolicyAssignment collection
+func (b *TargetedManagedAppProtectionRequestBuilder) Assignments() *TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder {
+ bb := &TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder is request builder for TargetedManagedAppPolicyAssignment collection
+type TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TargetedManagedAppPolicyAssignment collection
+func (b *TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder) Request() *TargetedManagedAppProtectionAssignmentsCollectionRequest {
+ return &TargetedManagedAppProtectionAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TargetedManagedAppPolicyAssignment item
+func (b *TargetedManagedAppProtectionAssignmentsCollectionRequestBuilder) ID(id string) *TargetedManagedAppPolicyAssignmentRequestBuilder {
+ bb := &TargetedManagedAppPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TargetedManagedAppProtectionAssignmentsCollectionRequest is request for TargetedManagedAppPolicyAssignment collection
+type TargetedManagedAppProtectionAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TargetedManagedAppPolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TargetedManagedAppPolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TargetedManagedAppPolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TargetedManagedAppPolicyAssignment collection, max N pages
+func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TargetedManagedAppPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TargetedManagedAppPolicyAssignment collection
+func (r *TargetedManagedAppProtectionAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) (resObj *TargetedManagedAppPolicyAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeam.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeam.go
new file mode 100644
index 00000000..e443f5d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeam.go
@@ -0,0 +1,583 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TeamCloneRequestParameter undocumented
+type TeamCloneRequestParameter struct {
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // Classification undocumented
+ Classification *string `json:"classification,omitempty"`
+ // Visibility undocumented
+ Visibility *TeamVisibilityType `json:"visibility,omitempty"`
+ // PartsToClone undocumented
+ PartsToClone *ClonableTeamParts `json:"partsToClone,omitempty"`
+}
+
+// TeamArchiveRequestParameter undocumented
+type TeamArchiveRequestParameter struct {
+ // ShouldSetSpoSiteReadOnlyForMembers undocumented
+ ShouldSetSpoSiteReadOnlyForMembers *bool `json:"shouldSetSpoSiteReadOnlyForMembers,omitempty"`
+}
+
+// TeamUnarchiveRequestParameter undocumented
+type TeamUnarchiveRequestParameter struct {
+}
+
+// Apps returns request builder for TeamsCatalogApp collection
+func (b *TeamRequestBuilder) Apps() *TeamAppsCollectionRequestBuilder {
+ bb := &TeamAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/apps"
+ return bb
+}
+
+// TeamAppsCollectionRequestBuilder is request builder for TeamsCatalogApp collection
+type TeamAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsCatalogApp collection
+func (b *TeamAppsCollectionRequestBuilder) Request() *TeamAppsCollectionRequest {
+ return &TeamAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsCatalogApp item
+func (b *TeamAppsCollectionRequestBuilder) ID(id string) *TeamsCatalogAppRequestBuilder {
+ bb := &TeamsCatalogAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamAppsCollectionRequest is request for TeamsCatalogApp collection
+type TeamAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsCatalogApp collection
+func (r *TeamAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsCatalogApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsCatalogApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsCatalogApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TeamsCatalogApp collection, max N pages
+func (r *TeamAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsCatalogApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TeamsCatalogApp collection
+func (r *TeamAppsCollectionRequest) Get(ctx context.Context) ([]TeamsCatalogApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TeamsCatalogApp collection
+func (r *TeamAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsCatalogApp) (resObj *TeamsCatalogApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Channels returns request builder for Channel collection
+func (b *TeamRequestBuilder) Channels() *TeamChannelsCollectionRequestBuilder {
+ bb := &TeamChannelsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/channels"
+ return bb
+}
+
+// TeamChannelsCollectionRequestBuilder is request builder for Channel collection
+type TeamChannelsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Channel collection
+func (b *TeamChannelsCollectionRequestBuilder) Request() *TeamChannelsCollectionRequest {
+ return &TeamChannelsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Channel item
+func (b *TeamChannelsCollectionRequestBuilder) ID(id string) *ChannelRequestBuilder {
+ bb := &ChannelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamChannelsCollectionRequest is request for Channel collection
+type TeamChannelsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Channel collection
+func (r *TeamChannelsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Channel, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Channel
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Channel
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Channel collection, max N pages
+func (r *TeamChannelsCollectionRequest) GetN(ctx context.Context, n int) ([]Channel, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Channel collection
+func (r *TeamChannelsCollectionRequest) Get(ctx context.Context) ([]Channel, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Channel collection
+func (r *TeamChannelsCollectionRequest) Add(ctx context.Context, reqObj *Channel) (resObj *Channel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Group is navigation property
+func (b *TeamRequestBuilder) Group() *GroupRequestBuilder {
+ bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/group"
+ return bb
+}
+
+// InstalledApps returns request builder for TeamsAppInstallation collection
+func (b *TeamRequestBuilder) InstalledApps() *TeamInstalledAppsCollectionRequestBuilder {
+ bb := &TeamInstalledAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installedApps"
+ return bb
+}
+
+// TeamInstalledAppsCollectionRequestBuilder is request builder for TeamsAppInstallation collection
+type TeamInstalledAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAppInstallation collection
+func (b *TeamInstalledAppsCollectionRequestBuilder) Request() *TeamInstalledAppsCollectionRequest {
+ return &TeamInstalledAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAppInstallation item
+func (b *TeamInstalledAppsCollectionRequestBuilder) ID(id string) *TeamsAppInstallationRequestBuilder {
+ bb := &TeamsAppInstallationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamInstalledAppsCollectionRequest is request for TeamsAppInstallation collection
+type TeamInstalledAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAppInstallation collection
+func (r *TeamInstalledAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAppInstallation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAppInstallation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAppInstallation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TeamsAppInstallation collection, max N pages
+func (r *TeamInstalledAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAppInstallation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TeamsAppInstallation collection
+func (r *TeamInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TeamsAppInstallation collection
+func (r *TeamInstalledAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppInstallation) (resObj *TeamsAppInstallation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Operations returns request builder for TeamsAsyncOperation collection
+func (b *TeamRequestBuilder) Operations() *TeamOperationsCollectionRequestBuilder {
+ bb := &TeamOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operations"
+ return bb
+}
+
+// TeamOperationsCollectionRequestBuilder is request builder for TeamsAsyncOperation collection
+type TeamOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAsyncOperation collection
+func (b *TeamOperationsCollectionRequestBuilder) Request() *TeamOperationsCollectionRequest {
+ return &TeamOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAsyncOperation item
+func (b *TeamOperationsCollectionRequestBuilder) ID(id string) *TeamsAsyncOperationRequestBuilder {
+ bb := &TeamsAsyncOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamOperationsCollectionRequest is request for TeamsAsyncOperation collection
+type TeamOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAsyncOperation collection
+func (r *TeamOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAsyncOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAsyncOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAsyncOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TeamsAsyncOperation collection, max N pages
+func (r *TeamOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAsyncOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TeamsAsyncOperation collection
+func (r *TeamOperationsCollectionRequest) Get(ctx context.Context) ([]TeamsAsyncOperation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TeamsAsyncOperation collection
+func (r *TeamOperationsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAsyncOperation) (resObj *TeamsAsyncOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Owners returns request builder for User collection
+func (b *TeamRequestBuilder) Owners() *TeamOwnersCollectionRequestBuilder {
+ bb := &TeamOwnersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/owners"
+ return bb
+}
+
+// TeamOwnersCollectionRequestBuilder is request builder for User collection
+type TeamOwnersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for User collection
+func (b *TeamOwnersCollectionRequestBuilder) Request() *TeamOwnersCollectionRequest {
+ return &TeamOwnersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for User item
+func (b *TeamOwnersCollectionRequestBuilder) ID(id string) *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamOwnersCollectionRequest is request for User collection
+type TeamOwnersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for User collection
+func (r *TeamOwnersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]User, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []User
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []User
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for User collection, max N pages
+func (r *TeamOwnersCollectionRequest) GetN(ctx context.Context, n int) ([]User, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for User collection
+func (r *TeamOwnersCollectionRequest) Get(ctx context.Context) ([]User, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for User collection
+func (r *TeamOwnersCollectionRequest) Add(ctx context.Context, reqObj *User) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Photo is navigation property
+func (b *TeamRequestBuilder) Photo() *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photo"
+ return bb
+}
+
+// PrimaryChannel is navigation property
+func (b *TeamRequestBuilder) PrimaryChannel() *ChannelRequestBuilder {
+ bb := &ChannelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/primaryChannel"
+ return bb
+}
+
+// Schedule is navigation property
+func (b *TeamRequestBuilder) Schedule() *ScheduleRequestBuilder {
+ bb := &ScheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schedule"
+ return bb
+}
+
+// Template is navigation property
+func (b *TeamRequestBuilder) Template() *TeamsTemplateRequestBuilder {
+ bb := &TeamsTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/template"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeams.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeams.go
new file mode 100644
index 00000000..21bb9a27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeams.go
@@ -0,0 +1,139 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TeamsAppInstallationUpgradeRequestParameter undocumented
+type TeamsAppInstallationUpgradeRequestParameter struct {
+}
+
+// AppDefinitions returns request builder for TeamsAppDefinition collection
+func (b *TeamsAppRequestBuilder) AppDefinitions() *TeamsAppAppDefinitionsCollectionRequestBuilder {
+ bb := &TeamsAppAppDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appDefinitions"
+ return bb
+}
+
+// TeamsAppAppDefinitionsCollectionRequestBuilder is request builder for TeamsAppDefinition collection
+type TeamsAppAppDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAppDefinition collection
+func (b *TeamsAppAppDefinitionsCollectionRequestBuilder) Request() *TeamsAppAppDefinitionsCollectionRequest {
+ return &TeamsAppAppDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAppDefinition item
+func (b *TeamsAppAppDefinitionsCollectionRequestBuilder) ID(id string) *TeamsAppDefinitionRequestBuilder {
+ bb := &TeamsAppDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamsAppAppDefinitionsCollectionRequest is request for TeamsAppDefinition collection
+type TeamsAppAppDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAppDefinition collection
+func (r *TeamsAppAppDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAppDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAppDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAppDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TeamsAppDefinition collection, max N pages
+func (r *TeamsAppAppDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAppDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TeamsAppDefinition collection
+func (r *TeamsAppAppDefinitionsCollectionRequest) Get(ctx context.Context) ([]TeamsAppDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TeamsAppDefinition collection
+func (r *TeamsAppAppDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppDefinition) (resObj *TeamsAppDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TeamsApp is navigation property
+func (b *TeamsAppInstallationRequestBuilder) TeamsApp() *TeamsAppRequestBuilder {
+ bb := &TeamsAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsApp"
+ return bb
+}
+
+// TeamsAppDefinition is navigation property
+func (b *TeamsAppInstallationRequestBuilder) TeamsAppDefinition() *TeamsAppDefinitionRequestBuilder {
+ bb := &TeamsAppDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsAppDefinition"
+ return bb
+}
+
+// TeamsApp is navigation property
+func (b *TeamsTabRequestBuilder) TeamsApp() *TeamsAppRequestBuilder {
+ bb := &TeamsAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsApp"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeamwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeamwork.go
new file mode 100644
index 00000000..a1b63897
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTeamwork.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// WorkforceIntegrations returns request builder for WorkforceIntegration collection
+func (b *TeamworkRequestBuilder) WorkforceIntegrations() *TeamworkWorkforceIntegrationsCollectionRequestBuilder {
+ bb := &TeamworkWorkforceIntegrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/workforceIntegrations"
+ return bb
+}
+
+// TeamworkWorkforceIntegrationsCollectionRequestBuilder is request builder for WorkforceIntegration collection
+type TeamworkWorkforceIntegrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkforceIntegration collection
+func (b *TeamworkWorkforceIntegrationsCollectionRequestBuilder) Request() *TeamworkWorkforceIntegrationsCollectionRequest {
+ return &TeamworkWorkforceIntegrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkforceIntegration item
+func (b *TeamworkWorkforceIntegrationsCollectionRequestBuilder) ID(id string) *WorkforceIntegrationRequestBuilder {
+ bb := &WorkforceIntegrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TeamworkWorkforceIntegrationsCollectionRequest is request for WorkforceIntegration collection
+type TeamworkWorkforceIntegrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkforceIntegration collection
+func (r *TeamworkWorkforceIntegrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkforceIntegration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkforceIntegration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkforceIntegration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkforceIntegration collection, max N pages
+func (r *TeamworkWorkforceIntegrationsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkforceIntegration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkforceIntegration collection
+func (r *TeamworkWorkforceIntegrationsCollectionRequest) Get(ctx context.Context) ([]WorkforceIntegration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkforceIntegration collection
+func (r *TeamworkWorkforceIntegrationsCollectionRequest) Add(ctx context.Context, reqObj *WorkforceIntegration) (resObj *WorkforceIntegration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTenant.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTenant.go
new file mode 100644
index 00000000..9610c2a4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTenant.go
@@ -0,0 +1,10 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefaultRolesSettings is navigation property
+func (b *TenantSetupInfoRequestBuilder) DefaultRolesSettings() *PrivilegedRoleSettingsRequestBuilder {
+ bb := &PrivilegedRoleSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/defaultRolesSettings"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTerms.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTerms.go
new file mode 100644
index 00000000..7cbfb5ce
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTerms.go
@@ -0,0 +1,332 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AcceptanceStatuses returns request builder for TermsAndConditionsAcceptanceStatus collection
+func (b *TermsAndConditionsRequestBuilder) AcceptanceStatuses() *TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder {
+ bb := &TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/acceptanceStatuses"
+ return bb
+}
+
+// TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder is request builder for TermsAndConditionsAcceptanceStatus collection
+type TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TermsAndConditionsAcceptanceStatus collection
+func (b *TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder) Request() *TermsAndConditionsAcceptanceStatusesCollectionRequest {
+ return &TermsAndConditionsAcceptanceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TermsAndConditionsAcceptanceStatus item
+func (b *TermsAndConditionsAcceptanceStatusesCollectionRequestBuilder) ID(id string) *TermsAndConditionsAcceptanceStatusRequestBuilder {
+ bb := &TermsAndConditionsAcceptanceStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TermsAndConditionsAcceptanceStatusesCollectionRequest is request for TermsAndConditionsAcceptanceStatus collection
+type TermsAndConditionsAcceptanceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TermsAndConditionsAcceptanceStatus collection
+func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TermsAndConditionsAcceptanceStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TermsAndConditionsAcceptanceStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TermsAndConditionsAcceptanceStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TermsAndConditionsAcceptanceStatus collection, max N pages
+func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]TermsAndConditionsAcceptanceStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TermsAndConditionsAcceptanceStatus collection
+func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsAcceptanceStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TermsAndConditionsAcceptanceStatus collection
+func (r *TermsAndConditionsAcceptanceStatusesCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditionsAcceptanceStatus) (resObj *TermsAndConditionsAcceptanceStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for TermsAndConditionsAssignment collection
+func (b *TermsAndConditionsRequestBuilder) Assignments() *TermsAndConditionsAssignmentsCollectionRequestBuilder {
+ bb := &TermsAndConditionsAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// TermsAndConditionsAssignmentsCollectionRequestBuilder is request builder for TermsAndConditionsAssignment collection
+type TermsAndConditionsAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TermsAndConditionsAssignment collection
+func (b *TermsAndConditionsAssignmentsCollectionRequestBuilder) Request() *TermsAndConditionsAssignmentsCollectionRequest {
+ return &TermsAndConditionsAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TermsAndConditionsAssignment item
+func (b *TermsAndConditionsAssignmentsCollectionRequestBuilder) ID(id string) *TermsAndConditionsAssignmentRequestBuilder {
+ bb := &TermsAndConditionsAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TermsAndConditionsAssignmentsCollectionRequest is request for TermsAndConditionsAssignment collection
+type TermsAndConditionsAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TermsAndConditionsAssignment collection
+func (r *TermsAndConditionsAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TermsAndConditionsAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TermsAndConditionsAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TermsAndConditionsAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TermsAndConditionsAssignment collection, max N pages
+func (r *TermsAndConditionsAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TermsAndConditionsAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TermsAndConditionsAssignment collection
+func (r *TermsAndConditionsAssignmentsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TermsAndConditionsAssignment collection
+func (r *TermsAndConditionsAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditionsAssignment) (resObj *TermsAndConditionsAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupAssignments returns request builder for TermsAndConditionsGroupAssignment collection
+func (b *TermsAndConditionsRequestBuilder) GroupAssignments() *TermsAndConditionsGroupAssignmentsCollectionRequestBuilder {
+ bb := &TermsAndConditionsGroupAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupAssignments"
+ return bb
+}
+
+// TermsAndConditionsGroupAssignmentsCollectionRequestBuilder is request builder for TermsAndConditionsGroupAssignment collection
+type TermsAndConditionsGroupAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TermsAndConditionsGroupAssignment collection
+func (b *TermsAndConditionsGroupAssignmentsCollectionRequestBuilder) Request() *TermsAndConditionsGroupAssignmentsCollectionRequest {
+ return &TermsAndConditionsGroupAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TermsAndConditionsGroupAssignment item
+func (b *TermsAndConditionsGroupAssignmentsCollectionRequestBuilder) ID(id string) *TermsAndConditionsGroupAssignmentRequestBuilder {
+ bb := &TermsAndConditionsGroupAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TermsAndConditionsGroupAssignmentsCollectionRequest is request for TermsAndConditionsGroupAssignment collection
+type TermsAndConditionsGroupAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TermsAndConditionsGroupAssignment collection
+func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TermsAndConditionsGroupAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TermsAndConditionsGroupAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TermsAndConditionsGroupAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TermsAndConditionsGroupAssignment collection, max N pages
+func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TermsAndConditionsGroupAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TermsAndConditionsGroupAssignment collection
+func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Get(ctx context.Context) ([]TermsAndConditionsGroupAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TermsAndConditionsGroupAssignment collection
+func (r *TermsAndConditionsGroupAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TermsAndConditionsGroupAssignment) (resObj *TermsAndConditionsGroupAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TermsAndConditions is navigation property
+func (b *TermsAndConditionsAcceptanceStatusRequestBuilder) TermsAndConditions() *TermsAndConditionsRequestBuilder {
+ bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/termsAndConditions"
+ return bb
+}
+
+// TermsAndConditions is navigation property
+func (b *TermsAndConditionsGroupAssignmentRequestBuilder) TermsAndConditions() *TermsAndConditionsRequestBuilder {
+ bb := &TermsAndConditionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/termsAndConditions"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionThreat.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionThreat.go
new file mode 100644
index 00000000..a5146dcd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionThreat.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Results returns request builder for ThreatAssessmentResult collection
+func (b *ThreatAssessmentRequestObjectRequestBuilder) Results() *ThreatAssessmentRequestObjectResultsCollectionRequestBuilder {
+ bb := &ThreatAssessmentRequestObjectResultsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/results"
+ return bb
+}
+
+// ThreatAssessmentRequestObjectResultsCollectionRequestBuilder is request builder for ThreatAssessmentResult collection
+type ThreatAssessmentRequestObjectResultsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ThreatAssessmentResult collection
+func (b *ThreatAssessmentRequestObjectResultsCollectionRequestBuilder) Request() *ThreatAssessmentRequestObjectResultsCollectionRequest {
+ return &ThreatAssessmentRequestObjectResultsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ThreatAssessmentResult item
+func (b *ThreatAssessmentRequestObjectResultsCollectionRequestBuilder) ID(id string) *ThreatAssessmentResultRequestBuilder {
+ bb := &ThreatAssessmentResultRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// ThreatAssessmentRequestObjectResultsCollectionRequest is request for ThreatAssessmentResult collection
+type ThreatAssessmentRequestObjectResultsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ThreatAssessmentResult collection
+func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ThreatAssessmentResult, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ThreatAssessmentResult
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ThreatAssessmentResult
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ThreatAssessmentResult collection, max N pages
+func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) GetN(ctx context.Context, n int) ([]ThreatAssessmentResult, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ThreatAssessmentResult collection
+func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Get(ctx context.Context) ([]ThreatAssessmentResult, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ThreatAssessmentResult collection
+func (r *ThreatAssessmentRequestObjectResultsCollectionRequest) Add(ctx context.Context, reqObj *ThreatAssessmentResult) (resObj *ThreatAssessmentResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTi.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTi.go
new file mode 100644
index 00000000..230969e5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTi.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TiIndicatorCollectionSubmitTiIndicatorsRequestParameter undocumented
+type TiIndicatorCollectionSubmitTiIndicatorsRequestParameter struct {
+ // Value undocumented
+ Value []TiIndicator `json:"value,omitempty"`
+}
+
+// TiIndicatorCollectionUpdateTiIndicatorsRequestParameter undocumented
+type TiIndicatorCollectionUpdateTiIndicatorsRequestParameter struct {
+ // Value undocumented
+ Value []TiIndicator `json:"value,omitempty"`
+}
+
+// TiIndicatorCollectionDeleteTiIndicatorsRequestParameter undocumented
+type TiIndicatorCollectionDeleteTiIndicatorsRequestParameter struct {
+ // Value undocumented
+ Value []string `json:"value,omitempty"`
+}
+
+// TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestParameter undocumented
+type TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestParameter struct {
+ // Value undocumented
+ Value []string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrending.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrending.go
new file mode 100644
index 00000000..7729691d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrending.go
@@ -0,0 +1,10 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Resource is navigation property
+func (b *TrendingRequestBuilder) Resource() *EntityRequestBuilder {
+ bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrust.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrust.go
new file mode 100644
index 00000000..16898e36
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionTrust.go
@@ -0,0 +1,254 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TrustFrameworkKeySetGenerateKeyRequestParameter undocumented
+type TrustFrameworkKeySetGenerateKeyRequestParameter struct {
+ // Use undocumented
+ Use *string `json:"use,omitempty"`
+ // Kty undocumented
+ Kty *string `json:"kty,omitempty"`
+ // Nbf undocumented
+ Nbf *int `json:"nbf,omitempty"`
+ // Exp undocumented
+ Exp *int `json:"exp,omitempty"`
+}
+
+// TrustFrameworkKeySetUploadSecretRequestParameter undocumented
+type TrustFrameworkKeySetUploadSecretRequestParameter struct {
+ // Use undocumented
+ Use *string `json:"use,omitempty"`
+ // K undocumented
+ K *string `json:"k,omitempty"`
+ // Nbf undocumented
+ Nbf *int `json:"nbf,omitempty"`
+ // Exp undocumented
+ Exp *int `json:"exp,omitempty"`
+}
+
+// TrustFrameworkKeySetUploadCertificateRequestParameter undocumented
+type TrustFrameworkKeySetUploadCertificateRequestParameter struct {
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+}
+
+// TrustFrameworkKeySetUploadPkcs12RequestParameter undocumented
+type TrustFrameworkKeySetUploadPkcs12RequestParameter struct {
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+}
+
+// KeySets returns request builder for TrustFrameworkKeySet collection
+func (b *TrustFrameworkRequestBuilder) KeySets() *TrustFrameworkKeySetsCollectionRequestBuilder {
+ bb := &TrustFrameworkKeySetsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/keySets"
+ return bb
+}
+
+// TrustFrameworkKeySetsCollectionRequestBuilder is request builder for TrustFrameworkKeySet collection
+type TrustFrameworkKeySetsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TrustFrameworkKeySet collection
+func (b *TrustFrameworkKeySetsCollectionRequestBuilder) Request() *TrustFrameworkKeySetsCollectionRequest {
+ return &TrustFrameworkKeySetsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TrustFrameworkKeySet item
+func (b *TrustFrameworkKeySetsCollectionRequestBuilder) ID(id string) *TrustFrameworkKeySetRequestBuilder {
+ bb := &TrustFrameworkKeySetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TrustFrameworkKeySetsCollectionRequest is request for TrustFrameworkKeySet collection
+type TrustFrameworkKeySetsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TrustFrameworkKeySet collection
+func (r *TrustFrameworkKeySetsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TrustFrameworkKeySet, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TrustFrameworkKeySet
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TrustFrameworkKeySet
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TrustFrameworkKeySet collection, max N pages
+func (r *TrustFrameworkKeySetsCollectionRequest) GetN(ctx context.Context, n int) ([]TrustFrameworkKeySet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TrustFrameworkKeySet collection
+func (r *TrustFrameworkKeySetsCollectionRequest) Get(ctx context.Context) ([]TrustFrameworkKeySet, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TrustFrameworkKeySet collection
+func (r *TrustFrameworkKeySetsCollectionRequest) Add(ctx context.Context, reqObj *TrustFrameworkKeySet) (resObj *TrustFrameworkKeySet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for TrustFrameworkPolicy collection
+func (b *TrustFrameworkRequestBuilder) Policies() *TrustFrameworkPoliciesCollectionRequestBuilder {
+ bb := &TrustFrameworkPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// TrustFrameworkPoliciesCollectionRequestBuilder is request builder for TrustFrameworkPolicy collection
+type TrustFrameworkPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TrustFrameworkPolicy collection
+func (b *TrustFrameworkPoliciesCollectionRequestBuilder) Request() *TrustFrameworkPoliciesCollectionRequest {
+ return &TrustFrameworkPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TrustFrameworkPolicy item
+func (b *TrustFrameworkPoliciesCollectionRequestBuilder) ID(id string) *TrustFrameworkPolicyRequestBuilder {
+ bb := &TrustFrameworkPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// TrustFrameworkPoliciesCollectionRequest is request for TrustFrameworkPolicy collection
+type TrustFrameworkPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TrustFrameworkPolicy collection
+func (r *TrustFrameworkPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TrustFrameworkPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TrustFrameworkPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TrustFrameworkPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TrustFrameworkPolicy collection, max N pages
+func (r *TrustFrameworkPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]TrustFrameworkPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TrustFrameworkPolicy collection
+func (r *TrustFrameworkPoliciesCollectionRequest) Get(ctx context.Context) ([]TrustFrameworkPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TrustFrameworkPolicy collection
+func (r *TrustFrameworkPoliciesCollectionRequest) Add(ctx context.Context, reqObj *TrustFrameworkPolicy) (resObj *TrustFrameworkPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionUnified.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUnified.go
new file mode 100644
index 00000000..bfba2454
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUnified.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Principal is navigation property
+func (b *UnifiedRoleAssignmentRequestBuilder) Principal() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/principal"
+ return bb
+}
+
+// RoleDefinition is navigation property
+func (b *UnifiedRoleAssignmentRequestBuilder) RoleDefinition() *UnifiedRoleDefinitionRequestBuilder {
+ bb := &UnifiedRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleDefinition"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionUsed.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUsed.go
new file mode 100644
index 00000000..e79d2cc1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUsed.go
@@ -0,0 +1,10 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Resource is navigation property
+func (b *UsedInsightRequestBuilder) Resource() *EntityRequestBuilder {
+ bb := &EntityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/resource"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go
new file mode 100644
index 00000000..ffddabad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionUser.go
@@ -0,0 +1,5028 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserAssignLicenseRequestParameter undocumented
+type UserAssignLicenseRequestParameter struct {
+ // AddLicenses undocumented
+ AddLicenses []AssignedLicense `json:"addLicenses,omitempty"`
+ // RemoveLicenses undocumented
+ RemoveLicenses []UUID `json:"removeLicenses,omitempty"`
+}
+
+// UserChangePasswordRequestParameter undocumented
+type UserChangePasswordRequestParameter struct {
+ // CurrentPassword undocumented
+ CurrentPassword *string `json:"currentPassword,omitempty"`
+ // NewPassword undocumented
+ NewPassword *string `json:"newPassword,omitempty"`
+}
+
+// UserInvalidateAllRefreshTokensRequestParameter undocumented
+type UserInvalidateAllRefreshTokensRequestParameter struct {
+}
+
+// UserRevokeSignInSessionsRequestParameter undocumented
+type UserRevokeSignInSessionsRequestParameter struct {
+}
+
+// UserReprocessLicenseAssignmentRequestParameter undocumented
+type UserReprocessLicenseAssignmentRequestParameter struct {
+}
+
+// UserFindMeetingTimesRequestParameter undocumented
+type UserFindMeetingTimesRequestParameter struct {
+ // Attendees undocumented
+ Attendees []AttendeeBase `json:"attendees,omitempty"`
+ // LocationConstraint undocumented
+ LocationConstraint *LocationConstraint `json:"locationConstraint,omitempty"`
+ // TimeConstraint undocumented
+ TimeConstraint *TimeConstraint `json:"timeConstraint,omitempty"`
+ // MeetingDuration undocumented
+ MeetingDuration *Duration `json:"meetingDuration,omitempty"`
+ // MaxCandidates undocumented
+ MaxCandidates *int `json:"maxCandidates,omitempty"`
+ // IsOrganizerOptional undocumented
+ IsOrganizerOptional *bool `json:"isOrganizerOptional,omitempty"`
+ // ReturnSuggestionReasons undocumented
+ ReturnSuggestionReasons *bool `json:"returnSuggestionReasons,omitempty"`
+ // MinimumAttendeePercentage undocumented
+ MinimumAttendeePercentage *float64 `json:"minimumAttendeePercentage,omitempty"`
+}
+
+// UserSendMailRequestParameter undocumented
+type UserSendMailRequestParameter struct {
+ // Message undocumented
+ Message *Message `json:"Message,omitempty"`
+ // SaveToSentItems undocumented
+ SaveToSentItems *bool `json:"SaveToSentItems,omitempty"`
+}
+
+// UserGetMailTipsRequestParameter undocumented
+type UserGetMailTipsRequestParameter struct {
+ // EmailAddresses undocumented
+ EmailAddresses []string `json:"EmailAddresses,omitempty"`
+ // MailTipsOptions undocumented
+ MailTipsOptions *MailTipsType `json:"MailTipsOptions,omitempty"`
+}
+
+// UserTranslateExchangeIDsRequestParameter undocumented
+type UserTranslateExchangeIDsRequestParameter struct {
+ // InputIDs undocumented
+ InputIDs []string `json:"InputIds,omitempty"`
+ // TargetIDType undocumented
+ TargetIDType *ExchangeIDFormat `json:"TargetIdType,omitempty"`
+ // SourceIDType undocumented
+ SourceIDType *ExchangeIDFormat `json:"SourceIdType,omitempty"`
+}
+
+// UserRemoveAllDevicesFromManagementRequestParameter undocumented
+type UserRemoveAllDevicesFromManagementRequestParameter struct {
+}
+
+// UserWipeManagedAppRegistrationByDeviceTagRequestParameter undocumented
+type UserWipeManagedAppRegistrationByDeviceTagRequestParameter struct {
+ // DeviceTag undocumented
+ DeviceTag *string `json:"deviceTag,omitempty"`
+}
+
+// UserWipeManagedAppRegistrationsByDeviceTagRequestParameter undocumented
+type UserWipeManagedAppRegistrationsByDeviceTagRequestParameter struct {
+ // DeviceTag undocumented
+ DeviceTag *string `json:"deviceTag,omitempty"`
+}
+
+// UserExportPersonalDataRequestParameter undocumented
+type UserExportPersonalDataRequestParameter struct {
+ // StorageLocation undocumented
+ StorageLocation *string `json:"storageLocation,omitempty"`
+}
+
+// Activities returns request builder for UserActivity collection
+func (b *UserRequestBuilder) Activities() *UserActivitiesCollectionRequestBuilder {
+ bb := &UserActivitiesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activities"
+ return bb
+}
+
+// UserActivitiesCollectionRequestBuilder is request builder for UserActivity collection
+type UserActivitiesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserActivity collection
+func (b *UserActivitiesCollectionRequestBuilder) Request() *UserActivitiesCollectionRequest {
+ return &UserActivitiesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserActivity item
+func (b *UserActivitiesCollectionRequestBuilder) ID(id string) *UserActivityRequestBuilder {
+ bb := &UserActivityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserActivitiesCollectionRequest is request for UserActivity collection
+type UserActivitiesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserActivity collection
+func (r *UserActivitiesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserActivity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserActivity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserActivity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserActivity collection, max N pages
+func (r *UserActivitiesCollectionRequest) GetN(ctx context.Context, n int) ([]UserActivity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserActivity collection
+func (r *UserActivitiesCollectionRequest) Get(ctx context.Context) ([]UserActivity, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserActivity collection
+func (r *UserActivitiesCollectionRequest) Add(ctx context.Context, reqObj *UserActivity) (resObj *UserActivity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AgreementAcceptances returns request builder for AgreementAcceptance collection
+func (b *UserRequestBuilder) AgreementAcceptances() *UserAgreementAcceptancesCollectionRequestBuilder {
+ bb := &UserAgreementAcceptancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agreementAcceptances"
+ return bb
+}
+
+// UserAgreementAcceptancesCollectionRequestBuilder is request builder for AgreementAcceptance collection
+type UserAgreementAcceptancesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgreementAcceptance collection
+func (b *UserAgreementAcceptancesCollectionRequestBuilder) Request() *UserAgreementAcceptancesCollectionRequest {
+ return &UserAgreementAcceptancesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgreementAcceptance item
+func (b *UserAgreementAcceptancesCollectionRequestBuilder) ID(id string) *AgreementAcceptanceRequestBuilder {
+ bb := &AgreementAcceptanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserAgreementAcceptancesCollectionRequest is request for AgreementAcceptance collection
+type UserAgreementAcceptancesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgreementAcceptance collection
+func (r *UserAgreementAcceptancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgreementAcceptance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgreementAcceptance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgreementAcceptance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AgreementAcceptance collection, max N pages
+func (r *UserAgreementAcceptancesCollectionRequest) GetN(ctx context.Context, n int) ([]AgreementAcceptance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AgreementAcceptance collection
+func (r *UserAgreementAcceptancesCollectionRequest) Get(ctx context.Context) ([]AgreementAcceptance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AgreementAcceptance collection
+func (r *UserAgreementAcceptancesCollectionRequest) Add(ctx context.Context, reqObj *AgreementAcceptance) (resObj *AgreementAcceptance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Analytics is navigation property
+func (b *UserRequestBuilder) Analytics() *UserAnalyticsRequestBuilder {
+ bb := &UserAnalyticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/analytics"
+ return bb
+}
+
+// AppRoleAssignments returns request builder for AppRoleAssignment collection
+func (b *UserRequestBuilder) AppRoleAssignments() *UserAppRoleAssignmentsCollectionRequestBuilder {
+ bb := &UserAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignments"
+ return bb
+}
+
+// UserAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type UserAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *UserAppRoleAssignmentsCollectionRequestBuilder) Request() *UserAppRoleAssignmentsCollectionRequest {
+ return &UserAppRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *UserAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection
+type UserAppRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *UserAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppRoleAssignment collection, max N pages
+func (r *UserAppRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *UserAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *UserAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Calendar is navigation property
+func (b *UserRequestBuilder) Calendar() *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendar"
+ return bb
+}
+
+// CalendarGroups returns request builder for CalendarGroup collection
+func (b *UserRequestBuilder) CalendarGroups() *UserCalendarGroupsCollectionRequestBuilder {
+ bb := &UserCalendarGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarGroups"
+ return bb
+}
+
+// UserCalendarGroupsCollectionRequestBuilder is request builder for CalendarGroup collection
+type UserCalendarGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CalendarGroup collection
+func (b *UserCalendarGroupsCollectionRequestBuilder) Request() *UserCalendarGroupsCollectionRequest {
+ return &UserCalendarGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CalendarGroup item
+func (b *UserCalendarGroupsCollectionRequestBuilder) ID(id string) *CalendarGroupRequestBuilder {
+ bb := &CalendarGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserCalendarGroupsCollectionRequest is request for CalendarGroup collection
+type UserCalendarGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CalendarGroup collection
+func (r *UserCalendarGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CalendarGroup, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CalendarGroup
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CalendarGroup
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CalendarGroup collection, max N pages
+func (r *UserCalendarGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]CalendarGroup, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CalendarGroup collection
+func (r *UserCalendarGroupsCollectionRequest) Get(ctx context.Context) ([]CalendarGroup, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CalendarGroup collection
+func (r *UserCalendarGroupsCollectionRequest) Add(ctx context.Context, reqObj *CalendarGroup) (resObj *CalendarGroup, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CalendarView returns request builder for Event collection
+func (b *UserRequestBuilder) CalendarView() *UserCalendarViewCollectionRequestBuilder {
+ bb := &UserCalendarViewCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendarView"
+ return bb
+}
+
+// UserCalendarViewCollectionRequestBuilder is request builder for Event collection
+type UserCalendarViewCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *UserCalendarViewCollectionRequestBuilder) Request() *UserCalendarViewCollectionRequest {
+ return &UserCalendarViewCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *UserCalendarViewCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserCalendarViewCollectionRequest is request for Event collection
+type UserCalendarViewCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *UserCalendarViewCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Event collection, max N pages
+func (r *UserCalendarViewCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Event collection
+func (r *UserCalendarViewCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Event collection
+func (r *UserCalendarViewCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Calendars returns request builder for Calendar collection
+func (b *UserRequestBuilder) Calendars() *UserCalendarsCollectionRequestBuilder {
+ bb := &UserCalendarsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/calendars"
+ return bb
+}
+
+// UserCalendarsCollectionRequestBuilder is request builder for Calendar collection
+type UserCalendarsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Calendar collection
+func (b *UserCalendarsCollectionRequestBuilder) Request() *UserCalendarsCollectionRequest {
+ return &UserCalendarsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Calendar item
+func (b *UserCalendarsCollectionRequestBuilder) ID(id string) *CalendarRequestBuilder {
+ bb := &CalendarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserCalendarsCollectionRequest is request for Calendar collection
+type UserCalendarsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Calendar collection
+func (r *UserCalendarsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Calendar, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Calendar
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Calendar
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Calendar collection, max N pages
+func (r *UserCalendarsCollectionRequest) GetN(ctx context.Context, n int) ([]Calendar, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Calendar collection
+func (r *UserCalendarsCollectionRequest) Get(ctx context.Context) ([]Calendar, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Calendar collection
+func (r *UserCalendarsCollectionRequest) Add(ctx context.Context, reqObj *Calendar) (resObj *Calendar, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Chats returns request builder for Chat collection
+func (b *UserRequestBuilder) Chats() *UserChatsCollectionRequestBuilder {
+ bb := &UserChatsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/chats"
+ return bb
+}
+
+// UserChatsCollectionRequestBuilder is request builder for Chat collection
+type UserChatsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Chat collection
+func (b *UserChatsCollectionRequestBuilder) Request() *UserChatsCollectionRequest {
+ return &UserChatsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Chat item
+func (b *UserChatsCollectionRequestBuilder) ID(id string) *ChatRequestBuilder {
+ bb := &ChatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserChatsCollectionRequest is request for Chat collection
+type UserChatsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Chat collection
+func (r *UserChatsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Chat, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Chat
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Chat
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Chat collection, max N pages
+func (r *UserChatsCollectionRequest) GetN(ctx context.Context, n int) ([]Chat, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Chat collection
+func (r *UserChatsCollectionRequest) Get(ctx context.Context) ([]Chat, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Chat collection
+func (r *UserChatsCollectionRequest) Add(ctx context.Context, reqObj *Chat) (resObj *Chat, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ContactFolders returns request builder for ContactFolder collection
+func (b *UserRequestBuilder) ContactFolders() *UserContactFoldersCollectionRequestBuilder {
+ bb := &UserContactFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contactFolders"
+ return bb
+}
+
+// UserContactFoldersCollectionRequestBuilder is request builder for ContactFolder collection
+type UserContactFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ContactFolder collection
+func (b *UserContactFoldersCollectionRequestBuilder) Request() *UserContactFoldersCollectionRequest {
+ return &UserContactFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ContactFolder item
+func (b *UserContactFoldersCollectionRequestBuilder) ID(id string) *ContactFolderRequestBuilder {
+ bb := &ContactFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserContactFoldersCollectionRequest is request for ContactFolder collection
+type UserContactFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ContactFolder collection
+func (r *UserContactFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ContactFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ContactFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ContactFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ContactFolder collection, max N pages
+func (r *UserContactFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]ContactFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ContactFolder collection
+func (r *UserContactFoldersCollectionRequest) Get(ctx context.Context) ([]ContactFolder, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ContactFolder collection
+func (r *UserContactFoldersCollectionRequest) Add(ctx context.Context, reqObj *ContactFolder) (resObj *ContactFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Contacts returns request builder for Contact collection
+func (b *UserRequestBuilder) Contacts() *UserContactsCollectionRequestBuilder {
+ bb := &UserContactsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contacts"
+ return bb
+}
+
+// UserContactsCollectionRequestBuilder is request builder for Contact collection
+type UserContactsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Contact collection
+func (b *UserContactsCollectionRequestBuilder) Request() *UserContactsCollectionRequest {
+ return &UserContactsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Contact item
+func (b *UserContactsCollectionRequestBuilder) ID(id string) *ContactRequestBuilder {
+ bb := &ContactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserContactsCollectionRequest is request for Contact collection
+type UserContactsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Contact collection
+func (r *UserContactsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Contact, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Contact
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Contact
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Contact collection, max N pages
+func (r *UserContactsCollectionRequest) GetN(ctx context.Context, n int) ([]Contact, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Contact collection
+func (r *UserContactsCollectionRequest) Get(ctx context.Context) ([]Contact, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Contact collection
+func (r *UserContactsCollectionRequest) Add(ctx context.Context, reqObj *Contact) (resObj *Contact, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CreatedObjects returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) CreatedObjects() *UserCreatedObjectsCollectionRequestBuilder {
+ bb := &UserCreatedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/createdObjects"
+ return bb
+}
+
+// UserCreatedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserCreatedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserCreatedObjectsCollectionRequestBuilder) Request() *UserCreatedObjectsCollectionRequest {
+ return &UserCreatedObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserCreatedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserCreatedObjectsCollectionRequest is request for DirectoryObject collection
+type UserCreatedObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserCreatedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *UserCreatedObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserCreatedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserCreatedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceEnrollmentConfigurations returns request builder for DeviceEnrollmentConfiguration collection
+func (b *UserRequestBuilder) DeviceEnrollmentConfigurations() *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder {
+ bb := &UserDeviceEnrollmentConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceEnrollmentConfigurations"
+ return bb
+}
+
+// UserDeviceEnrollmentConfigurationsCollectionRequestBuilder is request builder for DeviceEnrollmentConfiguration collection
+type UserDeviceEnrollmentConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceEnrollmentConfiguration collection
+func (b *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder) Request() *UserDeviceEnrollmentConfigurationsCollectionRequest {
+ return &UserDeviceEnrollmentConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceEnrollmentConfiguration item
+func (b *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder) ID(id string) *DeviceEnrollmentConfigurationRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDeviceEnrollmentConfigurationsCollectionRequest is request for DeviceEnrollmentConfiguration collection
+type UserDeviceEnrollmentConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceEnrollmentConfiguration collection
+func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceEnrollmentConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceEnrollmentConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceEnrollmentConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceEnrollmentConfiguration collection, max N pages
+func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceEnrollmentConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceEnrollmentConfiguration collection
+func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceEnrollmentConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceEnrollmentConfiguration collection
+func (r *UserDeviceEnrollmentConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceEnrollmentConfiguration) (resObj *DeviceEnrollmentConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceManagementTroubleshootingEvents returns request builder for DeviceManagementTroubleshootingEvent collection
+func (b *UserRequestBuilder) DeviceManagementTroubleshootingEvents() *UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder {
+ bb := &UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceManagementTroubleshootingEvents"
+ return bb
+}
+
+// UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder is request builder for DeviceManagementTroubleshootingEvent collection
+type UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceManagementTroubleshootingEvent collection
+func (b *UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder) Request() *UserDeviceManagementTroubleshootingEventsCollectionRequest {
+ return &UserDeviceManagementTroubleshootingEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceManagementTroubleshootingEvent item
+func (b *UserDeviceManagementTroubleshootingEventsCollectionRequestBuilder) ID(id string) *DeviceManagementTroubleshootingEventRequestBuilder {
+ bb := &DeviceManagementTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDeviceManagementTroubleshootingEventsCollectionRequest is request for DeviceManagementTroubleshootingEvent collection
+type UserDeviceManagementTroubleshootingEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceManagementTroubleshootingEvent collection
+func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceManagementTroubleshootingEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceManagementTroubleshootingEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceManagementTroubleshootingEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceManagementTroubleshootingEvent collection, max N pages
+func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceManagementTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceManagementTroubleshootingEvent collection
+func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]DeviceManagementTroubleshootingEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceManagementTroubleshootingEvent collection
+func (r *UserDeviceManagementTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *DeviceManagementTroubleshootingEvent) (resObj *DeviceManagementTroubleshootingEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Devices returns request builder for Device collection
+func (b *UserRequestBuilder) Devices() *UserDevicesCollectionRequestBuilder {
+ bb := &UserDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/devices"
+ return bb
+}
+
+// UserDevicesCollectionRequestBuilder is request builder for Device collection
+type UserDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Device collection
+func (b *UserDevicesCollectionRequestBuilder) Request() *UserDevicesCollectionRequest {
+ return &UserDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Device item
+func (b *UserDevicesCollectionRequestBuilder) ID(id string) *DeviceRequestBuilder {
+ bb := &DeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDevicesCollectionRequest is request for Device collection
+type UserDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Device collection
+func (r *UserDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Device, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Device
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Device
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Device collection, max N pages
+func (r *UserDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]Device, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Device collection
+func (r *UserDevicesCollectionRequest) Get(ctx context.Context) ([]Device, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Device collection
+func (r *UserDevicesCollectionRequest) Add(ctx context.Context, reqObj *Device) (resObj *Device, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectReports returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) DirectReports() *UserDirectReportsCollectionRequestBuilder {
+ bb := &UserDirectReportsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directReports"
+ return bb
+}
+
+// UserDirectReportsCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserDirectReportsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserDirectReportsCollectionRequestBuilder) Request() *UserDirectReportsCollectionRequest {
+ return &UserDirectReportsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserDirectReportsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDirectReportsCollectionRequest is request for DirectoryObject collection
+type UserDirectReportsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserDirectReportsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *UserDirectReportsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserDirectReportsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserDirectReportsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Drive is navigation property
+func (b *UserRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Drives returns request builder for Drive collection
+func (b *UserRequestBuilder) Drives() *UserDrivesCollectionRequestBuilder {
+ bb := &UserDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drives"
+ return bb
+}
+
+// UserDrivesCollectionRequestBuilder is request builder for Drive collection
+type UserDrivesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Drive collection
+func (b *UserDrivesCollectionRequestBuilder) Request() *UserDrivesCollectionRequest {
+ return &UserDrivesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Drive item
+func (b *UserDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserDrivesCollectionRequest is request for Drive collection
+type UserDrivesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Drive collection
+func (r *UserDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Drive, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Drive
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Drive
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Drive collection, max N pages
+func (r *UserDrivesCollectionRequest) GetN(ctx context.Context, n int) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Drive collection
+func (r *UserDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Drive collection
+func (r *UserDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Events returns request builder for Event collection
+func (b *UserRequestBuilder) Events() *UserEventsCollectionRequestBuilder {
+ bb := &UserEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/events"
+ return bb
+}
+
+// UserEventsCollectionRequestBuilder is request builder for Event collection
+type UserEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Event collection
+func (b *UserEventsCollectionRequestBuilder) Request() *UserEventsCollectionRequest {
+ return &UserEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Event item
+func (b *UserEventsCollectionRequestBuilder) ID(id string) *EventRequestBuilder {
+ bb := &EventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserEventsCollectionRequest is request for Event collection
+type UserEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Event collection
+func (r *UserEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Event, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Event
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Event
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Event collection, max N pages
+func (r *UserEventsCollectionRequest) GetN(ctx context.Context, n int) ([]Event, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Event collection
+func (r *UserEventsCollectionRequest) Get(ctx context.Context) ([]Event, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Event collection
+func (r *UserEventsCollectionRequest) Add(ctx context.Context, reqObj *Event) (resObj *Event, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Extensions returns request builder for Extension collection
+func (b *UserRequestBuilder) Extensions() *UserExtensionsCollectionRequestBuilder {
+ bb := &UserExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/extensions"
+ return bb
+}
+
+// UserExtensionsCollectionRequestBuilder is request builder for Extension collection
+type UserExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Extension collection
+func (b *UserExtensionsCollectionRequestBuilder) Request() *UserExtensionsCollectionRequest {
+ return &UserExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Extension item
+func (b *UserExtensionsCollectionRequestBuilder) ID(id string) *ExtensionRequestBuilder {
+ bb := &ExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExtensionsCollectionRequest is request for Extension collection
+type UserExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Extension collection
+func (r *UserExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Extension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Extension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Extension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Extension collection, max N pages
+func (r *UserExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]Extension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Extension collection
+func (r *UserExtensionsCollectionRequest) Get(ctx context.Context) ([]Extension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Extension collection
+func (r *UserExtensionsCollectionRequest) Add(ctx context.Context, reqObj *Extension) (resObj *Extension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FollowedSites returns request builder for Site collection
+func (b *UserRequestBuilder) FollowedSites() *UserFollowedSitesCollectionRequestBuilder {
+ bb := &UserFollowedSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/followedSites"
+ return bb
+}
+
+// UserFollowedSitesCollectionRequestBuilder is request builder for Site collection
+type UserFollowedSitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Site collection
+func (b *UserFollowedSitesCollectionRequestBuilder) Request() *UserFollowedSitesCollectionRequest {
+ return &UserFollowedSitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Site item
+func (b *UserFollowedSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserFollowedSitesCollectionRequest is request for Site collection
+type UserFollowedSitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Site collection
+func (r *UserFollowedSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Site collection, max N pages
+func (r *UserFollowedSitesCollectionRequest) GetN(ctx context.Context, n int) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Site collection
+func (r *UserFollowedSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Site collection
+func (r *UserFollowedSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// InferenceClassification is navigation property
+func (b *UserRequestBuilder) InferenceClassification() *InferenceClassificationRequestBuilder {
+ bb := &InferenceClassificationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/inferenceClassification"
+ return bb
+}
+
+// InformationProtection is navigation property
+func (b *UserRequestBuilder) InformationProtection() *InformationProtectionRequestBuilder {
+ bb := &InformationProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/informationProtection"
+ return bb
+}
+
+// Insights is navigation property
+func (b *UserRequestBuilder) Insights() *OfficeGraphInsightsRequestBuilder {
+ bb := &OfficeGraphInsightsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/insights"
+ return bb
+}
+
+// JoinedGroups returns request builder for Group collection
+func (b *UserRequestBuilder) JoinedGroups() *UserJoinedGroupsCollectionRequestBuilder {
+ bb := &UserJoinedGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/joinedGroups"
+ return bb
+}
+
+// UserJoinedGroupsCollectionRequestBuilder is request builder for Group collection
+type UserJoinedGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Group collection
+func (b *UserJoinedGroupsCollectionRequestBuilder) Request() *UserJoinedGroupsCollectionRequest {
+ return &UserJoinedGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Group item
+func (b *UserJoinedGroupsCollectionRequestBuilder) ID(id string) *GroupRequestBuilder {
+ bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserJoinedGroupsCollectionRequest is request for Group collection
+type UserJoinedGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Group collection
+func (r *UserJoinedGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Group, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Group
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Group
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Group collection, max N pages
+func (r *UserJoinedGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]Group, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Group collection
+func (r *UserJoinedGroupsCollectionRequest) Get(ctx context.Context) ([]Group, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Group collection
+func (r *UserJoinedGroupsCollectionRequest) Add(ctx context.Context, reqObj *Group) (resObj *Group, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// JoinedTeams returns request builder for Team collection
+func (b *UserRequestBuilder) JoinedTeams() *UserJoinedTeamsCollectionRequestBuilder {
+ bb := &UserJoinedTeamsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/joinedTeams"
+ return bb
+}
+
+// UserJoinedTeamsCollectionRequestBuilder is request builder for Team collection
+type UserJoinedTeamsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Team collection
+func (b *UserJoinedTeamsCollectionRequestBuilder) Request() *UserJoinedTeamsCollectionRequest {
+ return &UserJoinedTeamsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Team item
+func (b *UserJoinedTeamsCollectionRequestBuilder) ID(id string) *TeamRequestBuilder {
+ bb := &TeamRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserJoinedTeamsCollectionRequest is request for Team collection
+type UserJoinedTeamsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Team collection
+func (r *UserJoinedTeamsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Team, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Team
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Team
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Team collection, max N pages
+func (r *UserJoinedTeamsCollectionRequest) GetN(ctx context.Context, n int) ([]Team, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Team collection
+func (r *UserJoinedTeamsCollectionRequest) Get(ctx context.Context) ([]Team, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Team collection
+func (r *UserJoinedTeamsCollectionRequest) Add(ctx context.Context, reqObj *Team) (resObj *Team, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LicenseDetails returns request builder for LicenseDetails collection
+func (b *UserRequestBuilder) LicenseDetails() *UserLicenseDetailsCollectionRequestBuilder {
+ bb := &UserLicenseDetailsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/licenseDetails"
+ return bb
+}
+
+// UserLicenseDetailsCollectionRequestBuilder is request builder for LicenseDetails collection
+type UserLicenseDetailsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LicenseDetails collection
+func (b *UserLicenseDetailsCollectionRequestBuilder) Request() *UserLicenseDetailsCollectionRequest {
+ return &UserLicenseDetailsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LicenseDetails item
+func (b *UserLicenseDetailsCollectionRequestBuilder) ID(id string) *LicenseDetailsRequestBuilder {
+ bb := &LicenseDetailsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserLicenseDetailsCollectionRequest is request for LicenseDetails collection
+type UserLicenseDetailsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LicenseDetails collection
+func (r *UserLicenseDetailsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LicenseDetails, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LicenseDetails
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LicenseDetails
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for LicenseDetails collection, max N pages
+func (r *UserLicenseDetailsCollectionRequest) GetN(ctx context.Context, n int) ([]LicenseDetails, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for LicenseDetails collection
+func (r *UserLicenseDetailsCollectionRequest) Get(ctx context.Context) ([]LicenseDetails, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for LicenseDetails collection
+func (r *UserLicenseDetailsCollectionRequest) Add(ctx context.Context, reqObj *LicenseDetails) (resObj *LicenseDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MailFolders returns request builder for MailFolder collection
+func (b *UserRequestBuilder) MailFolders() *UserMailFoldersCollectionRequestBuilder {
+ bb := &UserMailFoldersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mailFolders"
+ return bb
+}
+
+// UserMailFoldersCollectionRequestBuilder is request builder for MailFolder collection
+type UserMailFoldersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MailFolder collection
+func (b *UserMailFoldersCollectionRequestBuilder) Request() *UserMailFoldersCollectionRequest {
+ return &UserMailFoldersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MailFolder item
+func (b *UserMailFoldersCollectionRequestBuilder) ID(id string) *MailFolderRequestBuilder {
+ bb := &MailFolderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMailFoldersCollectionRequest is request for MailFolder collection
+type UserMailFoldersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MailFolder collection
+func (r *UserMailFoldersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MailFolder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MailFolder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MailFolder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MailFolder collection, max N pages
+func (r *UserMailFoldersCollectionRequest) GetN(ctx context.Context, n int) ([]MailFolder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MailFolder collection
+func (r *UserMailFoldersCollectionRequest) Get(ctx context.Context) ([]MailFolder, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MailFolder collection
+func (r *UserMailFoldersCollectionRequest) Add(ctx context.Context, reqObj *MailFolder) (resObj *MailFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedAppRegistrations returns request builder for ManagedAppRegistration collection
+func (b *UserRequestBuilder) ManagedAppRegistrations() *UserManagedAppRegistrationsCollectionRequestBuilder {
+ bb := &UserManagedAppRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedAppRegistrations"
+ return bb
+}
+
+// UserManagedAppRegistrationsCollectionRequestBuilder is request builder for ManagedAppRegistration collection
+type UserManagedAppRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedAppRegistration collection
+func (b *UserManagedAppRegistrationsCollectionRequestBuilder) Request() *UserManagedAppRegistrationsCollectionRequest {
+ return &UserManagedAppRegistrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedAppRegistration item
+func (b *UserManagedAppRegistrationsCollectionRequestBuilder) ID(id string) *ManagedAppRegistrationRequestBuilder {
+ bb := &ManagedAppRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserManagedAppRegistrationsCollectionRequest is request for ManagedAppRegistration collection
+type UserManagedAppRegistrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedAppRegistration collection
+func (r *UserManagedAppRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedAppRegistration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedAppRegistration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedAppRegistration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedAppRegistration collection, max N pages
+func (r *UserManagedAppRegistrationsCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedAppRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedAppRegistration collection
+func (r *UserManagedAppRegistrationsCollectionRequest) Get(ctx context.Context) ([]ManagedAppRegistration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedAppRegistration collection
+func (r *UserManagedAppRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *ManagedAppRegistration) (resObj *ManagedAppRegistration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDevices returns request builder for ManagedDevice collection
+func (b *UserRequestBuilder) ManagedDevices() *UserManagedDevicesCollectionRequestBuilder {
+ bb := &UserManagedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDevices"
+ return bb
+}
+
+// UserManagedDevicesCollectionRequestBuilder is request builder for ManagedDevice collection
+type UserManagedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDevice collection
+func (b *UserManagedDevicesCollectionRequestBuilder) Request() *UserManagedDevicesCollectionRequest {
+ return &UserManagedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDevice item
+func (b *UserManagedDevicesCollectionRequestBuilder) ID(id string) *ManagedDeviceRequestBuilder {
+ bb := &ManagedDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserManagedDevicesCollectionRequest is request for ManagedDevice collection
+type UserManagedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDevice collection
+func (r *UserManagedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDevice collection, max N pages
+func (r *UserManagedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDevice, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDevice collection
+func (r *UserManagedDevicesCollectionRequest) Get(ctx context.Context) ([]ManagedDevice, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDevice collection
+func (r *UserManagedDevicesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDevice) (resObj *ManagedDevice, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Manager is navigation property
+func (b *UserRequestBuilder) Manager() *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/manager"
+ return bb
+}
+
+// MemberOf returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) MemberOf() *UserMemberOfCollectionRequestBuilder {
+ bb := &UserMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/memberOf"
+ return bb
+}
+
+// UserMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserMemberOfCollectionRequestBuilder) Request() *UserMemberOfCollectionRequest {
+ return &UserMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMemberOfCollectionRequest is request for DirectoryObject collection
+type UserMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *UserMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Messages returns request builder for Message collection
+func (b *UserRequestBuilder) Messages() *UserMessagesCollectionRequestBuilder {
+ bb := &UserMessagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/messages"
+ return bb
+}
+
+// UserMessagesCollectionRequestBuilder is request builder for Message collection
+type UserMessagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Message collection
+func (b *UserMessagesCollectionRequestBuilder) Request() *UserMessagesCollectionRequest {
+ return &UserMessagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Message item
+func (b *UserMessagesCollectionRequestBuilder) ID(id string) *MessageRequestBuilder {
+ bb := &MessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMessagesCollectionRequest is request for Message collection
+type UserMessagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Message collection
+func (r *UserMessagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Message, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Message
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Message
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Message collection, max N pages
+func (r *UserMessagesCollectionRequest) GetN(ctx context.Context, n int) ([]Message, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Message collection
+func (r *UserMessagesCollectionRequest) Get(ctx context.Context) ([]Message, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Message collection
+func (r *UserMessagesCollectionRequest) Add(ctx context.Context, reqObj *Message) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppIntentAndStates returns request builder for MobileAppIntentAndState collection
+func (b *UserRequestBuilder) MobileAppIntentAndStates() *UserMobileAppIntentAndStatesCollectionRequestBuilder {
+ bb := &UserMobileAppIntentAndStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppIntentAndStates"
+ return bb
+}
+
+// UserMobileAppIntentAndStatesCollectionRequestBuilder is request builder for MobileAppIntentAndState collection
+type UserMobileAppIntentAndStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppIntentAndState collection
+func (b *UserMobileAppIntentAndStatesCollectionRequestBuilder) Request() *UserMobileAppIntentAndStatesCollectionRequest {
+ return &UserMobileAppIntentAndStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppIntentAndState item
+func (b *UserMobileAppIntentAndStatesCollectionRequestBuilder) ID(id string) *MobileAppIntentAndStateRequestBuilder {
+ bb := &MobileAppIntentAndStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMobileAppIntentAndStatesCollectionRequest is request for MobileAppIntentAndState collection
+type UserMobileAppIntentAndStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppIntentAndState collection
+func (r *UserMobileAppIntentAndStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppIntentAndState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppIntentAndState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppIntentAndState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppIntentAndState collection, max N pages
+func (r *UserMobileAppIntentAndStatesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppIntentAndState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppIntentAndState collection
+func (r *UserMobileAppIntentAndStatesCollectionRequest) Get(ctx context.Context) ([]MobileAppIntentAndState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppIntentAndState collection
+func (r *UserMobileAppIntentAndStatesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppIntentAndState) (resObj *MobileAppIntentAndState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MobileAppTroubleshootingEvents returns request builder for MobileAppTroubleshootingEvent collection
+func (b *UserRequestBuilder) MobileAppTroubleshootingEvents() *UserMobileAppTroubleshootingEventsCollectionRequestBuilder {
+ bb := &UserMobileAppTroubleshootingEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/mobileAppTroubleshootingEvents"
+ return bb
+}
+
+// UserMobileAppTroubleshootingEventsCollectionRequestBuilder is request builder for MobileAppTroubleshootingEvent collection
+type UserMobileAppTroubleshootingEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppTroubleshootingEvent collection
+func (b *UserMobileAppTroubleshootingEventsCollectionRequestBuilder) Request() *UserMobileAppTroubleshootingEventsCollectionRequest {
+ return &UserMobileAppTroubleshootingEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppTroubleshootingEvent item
+func (b *UserMobileAppTroubleshootingEventsCollectionRequestBuilder) ID(id string) *MobileAppTroubleshootingEventRequestBuilder {
+ bb := &MobileAppTroubleshootingEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserMobileAppTroubleshootingEventsCollectionRequest is request for MobileAppTroubleshootingEvent collection
+type UserMobileAppTroubleshootingEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppTroubleshootingEvent collection
+func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppTroubleshootingEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppTroubleshootingEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppTroubleshootingEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppTroubleshootingEvent collection, max N pages
+func (r *UserMobileAppTroubleshootingEventsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppTroubleshootingEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppTroubleshootingEvent collection
+func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Get(ctx context.Context) ([]MobileAppTroubleshootingEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppTroubleshootingEvent collection
+func (r *UserMobileAppTroubleshootingEventsCollectionRequest) Add(ctx context.Context, reqObj *MobileAppTroubleshootingEvent) (resObj *MobileAppTroubleshootingEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Notifications returns request builder for Notification collection
+func (b *UserRequestBuilder) Notifications() *UserNotificationsCollectionRequestBuilder {
+ bb := &UserNotificationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/notifications"
+ return bb
+}
+
+// UserNotificationsCollectionRequestBuilder is request builder for Notification collection
+type UserNotificationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Notification collection
+func (b *UserNotificationsCollectionRequestBuilder) Request() *UserNotificationsCollectionRequest {
+ return &UserNotificationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Notification item
+func (b *UserNotificationsCollectionRequestBuilder) ID(id string) *NotificationRequestBuilder {
+ bb := &NotificationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserNotificationsCollectionRequest is request for Notification collection
+type UserNotificationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Notification collection
+func (r *UserNotificationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Notification, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Notification
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Notification
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Notification collection, max N pages
+func (r *UserNotificationsCollectionRequest) GetN(ctx context.Context, n int) ([]Notification, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Notification collection
+func (r *UserNotificationsCollectionRequest) Get(ctx context.Context) ([]Notification, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Notification collection
+func (r *UserNotificationsCollectionRequest) Add(ctx context.Context, reqObj *Notification) (resObj *Notification, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Onenote is navigation property
+func (b *UserRequestBuilder) Onenote() *OnenoteRequestBuilder {
+ bb := &OnenoteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onenote"
+ return bb
+}
+
+// OnlineMeetings returns request builder for OnlineMeeting collection
+func (b *UserRequestBuilder) OnlineMeetings() *UserOnlineMeetingsCollectionRequestBuilder {
+ bb := &UserOnlineMeetingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onlineMeetings"
+ return bb
+}
+
+// UserOnlineMeetingsCollectionRequestBuilder is request builder for OnlineMeeting collection
+type UserOnlineMeetingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnlineMeeting collection
+func (b *UserOnlineMeetingsCollectionRequestBuilder) Request() *UserOnlineMeetingsCollectionRequest {
+ return &UserOnlineMeetingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnlineMeeting item
+func (b *UserOnlineMeetingsCollectionRequestBuilder) ID(id string) *OnlineMeetingRequestBuilder {
+ bb := &OnlineMeetingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserOnlineMeetingsCollectionRequest is request for OnlineMeeting collection
+type UserOnlineMeetingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnlineMeeting collection
+func (r *UserOnlineMeetingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnlineMeeting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnlineMeeting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnlineMeeting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnlineMeeting collection, max N pages
+func (r *UserOnlineMeetingsCollectionRequest) GetN(ctx context.Context, n int) ([]OnlineMeeting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnlineMeeting collection
+func (r *UserOnlineMeetingsCollectionRequest) Get(ctx context.Context) ([]OnlineMeeting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnlineMeeting collection
+func (r *UserOnlineMeetingsCollectionRequest) Add(ctx context.Context, reqObj *OnlineMeeting) (resObj *OnlineMeeting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Outlook is navigation property
+func (b *UserRequestBuilder) Outlook() *OutlookUserRequestBuilder {
+ bb := &OutlookUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/outlook"
+ return bb
+}
+
+// OwnedDevices returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) OwnedDevices() *UserOwnedDevicesCollectionRequestBuilder {
+ bb := &UserOwnedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ownedDevices"
+ return bb
+}
+
+// UserOwnedDevicesCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserOwnedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserOwnedDevicesCollectionRequestBuilder) Request() *UserOwnedDevicesCollectionRequest {
+ return &UserOwnedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserOwnedDevicesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserOwnedDevicesCollectionRequest is request for DirectoryObject collection
+type UserOwnedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserOwnedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *UserOwnedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserOwnedDevicesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserOwnedDevicesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OwnedObjects returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) OwnedObjects() *UserOwnedObjectsCollectionRequestBuilder {
+ bb := &UserOwnedObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/ownedObjects"
+ return bb
+}
+
+// UserOwnedObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserOwnedObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserOwnedObjectsCollectionRequestBuilder) Request() *UserOwnedObjectsCollectionRequest {
+ return &UserOwnedObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserOwnedObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserOwnedObjectsCollectionRequest is request for DirectoryObject collection
+type UserOwnedObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserOwnedObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *UserOwnedObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserOwnedObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserOwnedObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// People returns request builder for Person collection
+func (b *UserRequestBuilder) People() *UserPeopleCollectionRequestBuilder {
+ bb := &UserPeopleCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/people"
+ return bb
+}
+
+// UserPeopleCollectionRequestBuilder is request builder for Person collection
+type UserPeopleCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Person collection
+func (b *UserPeopleCollectionRequestBuilder) Request() *UserPeopleCollectionRequest {
+ return &UserPeopleCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Person item
+func (b *UserPeopleCollectionRequestBuilder) ID(id string) *PersonRequestBuilder {
+ bb := &PersonRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserPeopleCollectionRequest is request for Person collection
+type UserPeopleCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Person collection
+func (r *UserPeopleCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Person, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Person
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Person
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Person collection, max N pages
+func (r *UserPeopleCollectionRequest) GetN(ctx context.Context, n int) ([]Person, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Person collection
+func (r *UserPeopleCollectionRequest) Get(ctx context.Context) ([]Person, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Person collection
+func (r *UserPeopleCollectionRequest) Add(ctx context.Context, reqObj *Person) (resObj *Person, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Photo is navigation property
+func (b *UserRequestBuilder) Photo() *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photo"
+ return bb
+}
+
+// Photos returns request builder for ProfilePhoto collection
+func (b *UserRequestBuilder) Photos() *UserPhotosCollectionRequestBuilder {
+ bb := &UserPhotosCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/photos"
+ return bb
+}
+
+// UserPhotosCollectionRequestBuilder is request builder for ProfilePhoto collection
+type UserPhotosCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProfilePhoto collection
+func (b *UserPhotosCollectionRequestBuilder) Request() *UserPhotosCollectionRequest {
+ return &UserPhotosCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProfilePhoto item
+func (b *UserPhotosCollectionRequestBuilder) ID(id string) *ProfilePhotoRequestBuilder {
+ bb := &ProfilePhotoRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserPhotosCollectionRequest is request for ProfilePhoto collection
+type UserPhotosCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProfilePhoto collection
+func (r *UserPhotosCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProfilePhoto, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProfilePhoto
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProfilePhoto
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ProfilePhoto collection, max N pages
+func (r *UserPhotosCollectionRequest) GetN(ctx context.Context, n int) ([]ProfilePhoto, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ProfilePhoto collection
+func (r *UserPhotosCollectionRequest) Get(ctx context.Context) ([]ProfilePhoto, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ProfilePhoto collection
+func (r *UserPhotosCollectionRequest) Add(ctx context.Context, reqObj *ProfilePhoto) (resObj *ProfilePhoto, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Planner is navigation property
+func (b *UserRequestBuilder) Planner() *PlannerUserRequestBuilder {
+ bb := &PlannerUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/planner"
+ return bb
+}
+
+// Presence is navigation property
+func (b *UserRequestBuilder) Presence() *PresenceRequestBuilder {
+ bb := &PresenceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/presence"
+ return bb
+}
+
+// Profile is navigation property
+func (b *UserRequestBuilder) Profile() *ProfileRequestBuilder {
+ bb := &ProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/profile"
+ return bb
+}
+
+// RegisteredDevices returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) RegisteredDevices() *UserRegisteredDevicesCollectionRequestBuilder {
+ bb := &UserRegisteredDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/registeredDevices"
+ return bb
+}
+
+// UserRegisteredDevicesCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserRegisteredDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserRegisteredDevicesCollectionRequestBuilder) Request() *UserRegisteredDevicesCollectionRequest {
+ return &UserRegisteredDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserRegisteredDevicesCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserRegisteredDevicesCollectionRequest is request for DirectoryObject collection
+type UserRegisteredDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserRegisteredDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *UserRegisteredDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserRegisteredDevicesCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserRegisteredDevicesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScopedRoleMemberOf returns request builder for ScopedRoleMembership collection
+func (b *UserRequestBuilder) ScopedRoleMemberOf() *UserScopedRoleMemberOfCollectionRequestBuilder {
+ bb := &UserScopedRoleMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scopedRoleMemberOf"
+ return bb
+}
+
+// UserScopedRoleMemberOfCollectionRequestBuilder is request builder for ScopedRoleMembership collection
+type UserScopedRoleMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ScopedRoleMembership collection
+func (b *UserScopedRoleMemberOfCollectionRequestBuilder) Request() *UserScopedRoleMemberOfCollectionRequest {
+ return &UserScopedRoleMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ScopedRoleMembership item
+func (b *UserScopedRoleMemberOfCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder {
+ bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserScopedRoleMemberOfCollectionRequest is request for ScopedRoleMembership collection
+type UserScopedRoleMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ScopedRoleMembership collection
+func (r *UserScopedRoleMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScopedRoleMembership, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ScopedRoleMembership
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ScopedRoleMembership
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ScopedRoleMembership collection, max N pages
+func (r *UserScopedRoleMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *UserScopedRoleMemberOfCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ScopedRoleMembership collection
+func (r *UserScopedRoleMemberOfCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings is navigation property
+func (b *UserRequestBuilder) Settings() *UserSettingsRequestBuilder {
+ bb := &UserSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// Teamwork is navigation property
+func (b *UserRequestBuilder) Teamwork() *UserTeamworkRequestBuilder {
+ bb := &UserTeamworkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamwork"
+ return bb
+}
+
+// TransitiveMemberOf returns request builder for DirectoryObject collection
+func (b *UserRequestBuilder) TransitiveMemberOf() *UserTransitiveMemberOfCollectionRequestBuilder {
+ bb := &UserTransitiveMemberOfCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/transitiveMemberOf"
+ return bb
+}
+
+// UserTransitiveMemberOfCollectionRequestBuilder is request builder for DirectoryObject collection
+type UserTransitiveMemberOfCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) Request() *UserTransitiveMemberOfCollectionRequest {
+ return &UserTransitiveMemberOfCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserTransitiveMemberOfCollectionRequest is request for DirectoryObject collection
+type UserTransitiveMemberOfCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *UserTransitiveMemberOfCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *UserTransitiveMemberOfCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *UserTransitiveMemberOfCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *UserTransitiveMemberOfCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsInformationProtectionDeviceRegistrations returns request builder for WindowsInformationProtectionDeviceRegistration collection
+func (b *UserRequestBuilder) WindowsInformationProtectionDeviceRegistrations() *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder {
+ bb := &UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsInformationProtectionDeviceRegistrations"
+ return bb
+}
+
+// UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder is request builder for WindowsInformationProtectionDeviceRegistration collection
+type UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionDeviceRegistration collection
+func (b *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) Request() *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest {
+ return &UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionDeviceRegistration item
+func (b *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionDeviceRegistrationRequestBuilder {
+ bb := &WindowsInformationProtectionDeviceRegistrationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest is request for WindowsInformationProtectionDeviceRegistration collection
+type UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionDeviceRegistration collection
+func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionDeviceRegistration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionDeviceRegistration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsInformationProtectionDeviceRegistration collection, max N pages
+func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsInformationProtectionDeviceRegistration collection
+func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionDeviceRegistration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsInformationProtectionDeviceRegistration collection
+func (r *UserWindowsInformationProtectionDeviceRegistrationsCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionDeviceRegistration) (resObj *WindowsInformationProtectionDeviceRegistration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// HistoryItems returns request builder for ActivityHistoryItem collection
+func (b *UserActivityRequestBuilder) HistoryItems() *UserActivityHistoryItemsCollectionRequestBuilder {
+ bb := &UserActivityHistoryItemsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/historyItems"
+ return bb
+}
+
+// UserActivityHistoryItemsCollectionRequestBuilder is request builder for ActivityHistoryItem collection
+type UserActivityHistoryItemsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ActivityHistoryItem collection
+func (b *UserActivityHistoryItemsCollectionRequestBuilder) Request() *UserActivityHistoryItemsCollectionRequest {
+ return &UserActivityHistoryItemsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ActivityHistoryItem item
+func (b *UserActivityHistoryItemsCollectionRequestBuilder) ID(id string) *ActivityHistoryItemRequestBuilder {
+ bb := &ActivityHistoryItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserActivityHistoryItemsCollectionRequest is request for ActivityHistoryItem collection
+type UserActivityHistoryItemsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ActivityHistoryItem collection
+func (r *UserActivityHistoryItemsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ActivityHistoryItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ActivityHistoryItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ActivityHistoryItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ActivityHistoryItem collection, max N pages
+func (r *UserActivityHistoryItemsCollectionRequest) GetN(ctx context.Context, n int) ([]ActivityHistoryItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ActivityHistoryItem collection
+func (r *UserActivityHistoryItemsCollectionRequest) Get(ctx context.Context) ([]ActivityHistoryItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ActivityHistoryItem collection
+func (r *UserActivityHistoryItemsCollectionRequest) Add(ctx context.Context, reqObj *ActivityHistoryItem) (resObj *ActivityHistoryItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ActivityStatistics returns request builder for ActivityStatistics collection
+func (b *UserAnalyticsRequestBuilder) ActivityStatistics() *UserAnalyticsActivityStatisticsCollectionRequestBuilder {
+ bb := &UserAnalyticsActivityStatisticsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activityStatistics"
+ return bb
+}
+
+// UserAnalyticsActivityStatisticsCollectionRequestBuilder is request builder for ActivityStatistics collection
+type UserAnalyticsActivityStatisticsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ActivityStatistics collection
+func (b *UserAnalyticsActivityStatisticsCollectionRequestBuilder) Request() *UserAnalyticsActivityStatisticsCollectionRequest {
+ return &UserAnalyticsActivityStatisticsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ActivityStatistics item
+func (b *UserAnalyticsActivityStatisticsCollectionRequestBuilder) ID(id string) *ActivityStatisticsRequestBuilder {
+ bb := &ActivityStatisticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserAnalyticsActivityStatisticsCollectionRequest is request for ActivityStatistics collection
+type UserAnalyticsActivityStatisticsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ActivityStatistics collection
+func (r *UserAnalyticsActivityStatisticsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ActivityStatistics, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ActivityStatistics
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ActivityStatistics
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ActivityStatistics collection, max N pages
+func (r *UserAnalyticsActivityStatisticsCollectionRequest) GetN(ctx context.Context, n int) ([]ActivityStatistics, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ActivityStatistics collection
+func (r *UserAnalyticsActivityStatisticsCollectionRequest) Get(ctx context.Context) ([]ActivityStatistics, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ActivityStatistics collection
+func (r *UserAnalyticsActivityStatisticsCollectionRequest) Add(ctx context.Context, reqObj *ActivityStatistics) (resObj *ActivityStatistics, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// App is navigation property
+func (b *UserAppInstallStatusRequestBuilder) App() *MobileAppRequestBuilder {
+ bb := &MobileAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/app"
+ return bb
+}
+
+// DeviceStatuses returns request builder for MobileAppInstallStatus collection
+func (b *UserAppInstallStatusRequestBuilder) DeviceStatuses() *UserAppInstallStatusDeviceStatusesCollectionRequestBuilder {
+ bb := &UserAppInstallStatusDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// UserAppInstallStatusDeviceStatusesCollectionRequestBuilder is request builder for MobileAppInstallStatus collection
+type UserAppInstallStatusDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileAppInstallStatus collection
+func (b *UserAppInstallStatusDeviceStatusesCollectionRequestBuilder) Request() *UserAppInstallStatusDeviceStatusesCollectionRequest {
+ return &UserAppInstallStatusDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileAppInstallStatus item
+func (b *UserAppInstallStatusDeviceStatusesCollectionRequestBuilder) ID(id string) *MobileAppInstallStatusRequestBuilder {
+ bb := &MobileAppInstallStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserAppInstallStatusDeviceStatusesCollectionRequest is request for MobileAppInstallStatus collection
+type UserAppInstallStatusDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileAppInstallStatus collection
+func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileAppInstallStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileAppInstallStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileAppInstallStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileAppInstallStatus collection, max N pages
+func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]MobileAppInstallStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileAppInstallStatus collection
+func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]MobileAppInstallStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileAppInstallStatus collection
+func (r *UserAppInstallStatusDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *MobileAppInstallStatus) (resObj *MobileAppInstallStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// BestPracticesMetrics is navigation property
+func (b *UserExperienceAnalyticsBaselineRequestBuilder) BestPracticesMetrics() *UserExperienceAnalyticsCategoryRequestBuilder {
+ bb := &UserExperienceAnalyticsCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bestPracticesMetrics"
+ return bb
+}
+
+// DeviceBootPerformanceMetrics is navigation property
+func (b *UserExperienceAnalyticsBaselineRequestBuilder) DeviceBootPerformanceMetrics() *UserExperienceAnalyticsCategoryRequestBuilder {
+ bb := &UserExperienceAnalyticsCategoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceBootPerformanceMetrics"
+ return bb
+}
+
+// MetricValues returns request builder for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsCategoryRequestBuilder) MetricValues() *UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder {
+ bb := &UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/metricValues"
+ return bb
+}
+
+// UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder) Request() *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest {
+ return &UserExperienceAnalyticsCategoryMetricValuesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsMetric item
+func (b *UserExperienceAnalyticsCategoryMetricValuesCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder {
+ bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExperienceAnalyticsCategoryMetricValuesCollectionRequest is request for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsCategoryMetricValuesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsMetric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsMetric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsMetric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserExperienceAnalyticsMetric collection, max N pages
+func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsCategoryMetricValuesCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManufacturerRegression returns request builder for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) ManufacturerRegression() *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder {
+ bb := &UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/manufacturerRegression"
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest {
+ return &UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsMetric item
+func (b *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder {
+ bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest is request for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsMetric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsMetric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsMetric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserExperienceAnalyticsMetric collection, max N pages
+func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryManufacturerRegressionCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ModelRegression returns request builder for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) ModelRegression() *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder {
+ bb := &UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/modelRegression"
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest {
+ return &UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsMetric item
+func (b *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder {
+ bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest is request for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsMetric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsMetric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsMetric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserExperienceAnalyticsMetric collection, max N pages
+func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryModelRegressionCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OperatingSystemRegression returns request builder for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) OperatingSystemRegression() *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder {
+ bb := &UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/operatingSystemRegression"
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder is request builder for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UserExperienceAnalyticsMetric collection
+func (b *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest {
+ return &UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UserExperienceAnalyticsMetric item
+func (b *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequestBuilder) ID(id string) *UserExperienceAnalyticsMetricRequestBuilder {
+ bb := &UserExperienceAnalyticsMetricRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest is request for UserExperienceAnalyticsMetric collection
+type UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UserExperienceAnalyticsMetric, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UserExperienceAnalyticsMetric
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UserExperienceAnalyticsMetric
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UserExperienceAnalyticsMetric collection, max N pages
+func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) GetN(ctx context.Context, n int) ([]UserExperienceAnalyticsMetric, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Get(ctx context.Context) ([]UserExperienceAnalyticsMetric, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UserExperienceAnalyticsMetric collection
+func (r *UserExperienceAnalyticsRegressionSummaryOperatingSystemRegressionCollectionRequest) Add(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) (resObj *UserExperienceAnalyticsMetric, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceStates returns request builder for DeviceInstallState collection
+func (b *UserInstallStateSummaryRequestBuilder) DeviceStates() *UserInstallStateSummaryDeviceStatesCollectionRequestBuilder {
+ bb := &UserInstallStateSummaryDeviceStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStates"
+ return bb
+}
+
+// UserInstallStateSummaryDeviceStatesCollectionRequestBuilder is request builder for DeviceInstallState collection
+type UserInstallStateSummaryDeviceStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceInstallState collection
+func (b *UserInstallStateSummaryDeviceStatesCollectionRequestBuilder) Request() *UserInstallStateSummaryDeviceStatesCollectionRequest {
+ return &UserInstallStateSummaryDeviceStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceInstallState item
+func (b *UserInstallStateSummaryDeviceStatesCollectionRequestBuilder) ID(id string) *DeviceInstallStateRequestBuilder {
+ bb := &DeviceInstallStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserInstallStateSummaryDeviceStatesCollectionRequest is request for DeviceInstallState collection
+type UserInstallStateSummaryDeviceStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceInstallState collection
+func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceInstallState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceInstallState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceInstallState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceInstallState collection, max N pages
+func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceInstallState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceInstallState collection
+func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Get(ctx context.Context) ([]DeviceInstallState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceInstallState collection
+func (r *UserInstallStateSummaryDeviceStatesCollectionRequest) Add(ctx context.Context, reqObj *DeviceInstallState) (resObj *DeviceInstallState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// InstalledApps returns request builder for TeamsAppInstallation collection
+func (b *UserTeamworkRequestBuilder) InstalledApps() *UserTeamworkInstalledAppsCollectionRequestBuilder {
+ bb := &UserTeamworkInstalledAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/installedApps"
+ return bb
+}
+
+// UserTeamworkInstalledAppsCollectionRequestBuilder is request builder for TeamsAppInstallation collection
+type UserTeamworkInstalledAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsAppInstallation collection
+func (b *UserTeamworkInstalledAppsCollectionRequestBuilder) Request() *UserTeamworkInstalledAppsCollectionRequest {
+ return &UserTeamworkInstalledAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsAppInstallation item
+func (b *UserTeamworkInstalledAppsCollectionRequestBuilder) ID(id string) *TeamsAppInstallationRequestBuilder {
+ bb := &TeamsAppInstallationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// UserTeamworkInstalledAppsCollectionRequest is request for TeamsAppInstallation collection
+type UserTeamworkInstalledAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsAppInstallation collection
+func (r *UserTeamworkInstalledAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsAppInstallation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsAppInstallation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsAppInstallation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TeamsAppInstallation collection, max N pages
+func (r *UserTeamworkInstalledAppsCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsAppInstallation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TeamsAppInstallation collection
+func (r *UserTeamworkInstalledAppsCollectionRequest) Get(ctx context.Context) ([]TeamsAppInstallation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TeamsAppInstallation collection
+func (r *UserTeamworkInstalledAppsCollectionRequest) Add(ctx context.Context, reqObj *TeamsAppInstallation) (resObj *TeamsAppInstallation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionVPP.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionVPP.go
new file mode 100644
index 00000000..e86b2e78
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionVPP.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VPPTokenSyncLicensesRequestParameter undocumented
+type VPPTokenSyncLicensesRequestParameter struct {
+}
+
+// VPPTokenRevokeLicensesRequestParameter undocumented
+type VPPTokenRevokeLicensesRequestParameter struct {
+ // NotifyManagedDevices undocumented
+ NotifyManagedDevices *bool `json:"notifyManagedDevices,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionVendor.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionVendor.go
new file mode 100644
index 00000000..2f4ca017
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionVendor.go
@@ -0,0 +1,135 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// Currency is navigation property
+func (b *VendorRequestBuilder) Currency() *CurrencyRequestBuilder {
+ bb := &CurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/currency"
+ return bb
+}
+
+// PaymentMethod is navigation property
+func (b *VendorRequestBuilder) PaymentMethod() *PaymentMethodRequestBuilder {
+ bb := &PaymentMethodRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentMethod"
+ return bb
+}
+
+// PaymentTerm is navigation property
+func (b *VendorRequestBuilder) PaymentTerm() *PaymentTermRequestBuilder {
+ bb := &PaymentTermRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/paymentTerm"
+ return bb
+}
+
+// Picture returns request builder for Picture collection
+func (b *VendorRequestBuilder) Picture() *VendorPictureCollectionRequestBuilder {
+ bb := &VendorPictureCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/picture"
+ return bb
+}
+
+// VendorPictureCollectionRequestBuilder is request builder for Picture collection
+type VendorPictureCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Picture collection
+func (b *VendorPictureCollectionRequestBuilder) Request() *VendorPictureCollectionRequest {
+ return &VendorPictureCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Picture item
+func (b *VendorPictureCollectionRequestBuilder) ID(id string) *PictureRequestBuilder {
+ bb := &PictureRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// VendorPictureCollectionRequest is request for Picture collection
+type VendorPictureCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Picture collection
+func (r *VendorPictureCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Picture, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Picture
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Picture
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Picture collection, max N pages
+func (r *VendorPictureCollectionRequest) GetN(ctx context.Context, n int) ([]Picture, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Picture collection
+func (r *VendorPictureCollectionRequest) Get(ctx context.Context) ([]Picture, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Picture collection
+func (r *VendorPictureCollectionRequest) Add(ctx context.Context, reqObj *Picture) (resObj *Picture, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go
new file mode 100644
index 00000000..a35e080b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows.go
@@ -0,0 +1,1981 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestParameter undocumented
+type WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestParameter struct {
+ // PayloadIDs undocumented
+ PayloadIDs []string `json:"payloadIds,omitempty"`
+}
+
+// WindowsAutopilotDeploymentProfileAssignRequestParameter undocumented
+type WindowsAutopilotDeploymentProfileAssignRequestParameter struct {
+ // DeviceIDs undocumented
+ DeviceIDs []string `json:"deviceIds,omitempty"`
+}
+
+// WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestParameter struct {
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // AddressableUserName undocumented
+ AddressableUserName *string `json:"addressableUserName,omitempty"`
+}
+
+// WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestParameter struct {
+}
+
+// WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestParameter struct {
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // AddressableUserName undocumented
+ AddressableUserName *string `json:"addressableUserName,omitempty"`
+ // GroupTag undocumented
+ GroupTag *string `json:"groupTag,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestParameter struct {
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // AddressableUserName undocumented
+ AddressableUserName *string `json:"addressableUserName,omitempty"`
+ // ResourceAccountName undocumented
+ ResourceAccountName *string `json:"resourceAccountName,omitempty"`
+}
+
+// WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestParameter undocumented
+type WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestParameter struct {
+}
+
+// WindowsAutopilotSettingsSyncRequestParameter undocumented
+type WindowsAutopilotSettingsSyncRequestParameter struct {
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter undocumented
+type WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter struct {
+ // WdacPolicyAssignments undocumented
+ WdacPolicyAssignments []WindowsDefenderApplicationControlSupplementalPolicyAssignment `json:"wdacPolicyAssignments,omitempty"`
+}
+
+// WindowsFeatureUpdateProfileAssignRequestParameter undocumented
+type WindowsFeatureUpdateProfileAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []WindowsFeatureUpdateProfileAssignment `json:"assignments,omitempty"`
+}
+
+// WindowsInformationProtectionAssignRequestParameter undocumented
+type WindowsInformationProtectionAssignRequestParameter struct {
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
+
+// WindowsInformationProtectionDeviceRegistrationWipeRequestParameter undocumented
+type WindowsInformationProtectionDeviceRegistrationWipeRequestParameter struct {
+}
+
+// WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestParameter undocumented
+type WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestParameter struct {
+}
+
+// WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestParameter undocumented
+type WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestParameter struct {
+}
+
+// AssignedDevices returns request builder for WindowsAutopilotDeviceIdentity collection
+func (b *WindowsAutopilotDeploymentProfileRequestBuilder) AssignedDevices() *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignedDevices"
+ return bb
+}
+
+// WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder is request builder for WindowsAutopilotDeviceIdentity collection
+type WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsAutopilotDeviceIdentity collection
+func (b *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest {
+ return &WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsAutopilotDeviceIdentity item
+func (b *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeviceIdentityRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest is request for WindowsAutopilotDeviceIdentity collection
+type WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsAutopilotDeviceIdentity collection
+func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsAutopilotDeviceIdentity collection, max N pages
+func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsAutopilotDeviceIdentity, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsAutopilotDeviceIdentity collection
+func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeviceIdentity, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsAutopilotDeviceIdentity collection
+func (r *WindowsAutopilotDeploymentProfileAssignedDevicesCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeviceIdentity) (resObj *WindowsAutopilotDeviceIdentity, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for WindowsAutopilotDeploymentProfileAssignment collection
+func (b *WindowsAutopilotDeploymentProfileRequestBuilder) Assignments() *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder is request builder for WindowsAutopilotDeploymentProfileAssignment collection
+type WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsAutopilotDeploymentProfileAssignment collection
+func (b *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest {
+ return &WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsAutopilotDeploymentProfileAssignment item
+func (b *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequestBuilder) ID(id string) *WindowsAutopilotDeploymentProfileAssignmentRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest is request for WindowsAutopilotDeploymentProfileAssignment collection
+type WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsAutopilotDeploymentProfileAssignment collection
+func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsAutopilotDeploymentProfileAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsAutopilotDeploymentProfileAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsAutopilotDeploymentProfileAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsAutopilotDeploymentProfileAssignment collection, max N pages
+func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsAutopilotDeploymentProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsAutopilotDeploymentProfileAssignment collection
+func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsAutopilotDeploymentProfileAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsAutopilotDeploymentProfileAssignment collection
+func (r *WindowsAutopilotDeploymentProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfileAssignment) (resObj *WindowsAutopilotDeploymentProfileAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploymentProfile is navigation property
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) DeploymentProfile() *WindowsAutopilotDeploymentProfileRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploymentProfile"
+ return bb
+}
+
+// IntendedDeploymentProfile is navigation property
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) IntendedDeploymentProfile() *WindowsAutopilotDeploymentProfileRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/intendedDeploymentProfile"
+ return bb
+}
+
+// Assignments returns request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) Assignments() *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+type WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment item
+func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequestBuilder) ID(id string) *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest is request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+type WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsDefenderApplicationControlSupplementalPolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsDefenderApplicationControlSupplementalPolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsDefenderApplicationControlSupplementalPolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection, max N pages
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsDefenderApplicationControlSupplementalPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicyAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsDefenderApplicationControlSupplementalPolicyAssignment collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment) (resObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeploySummary is navigation property
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) DeploySummary() *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deploySummary"
+ return bb
+}
+
+// DeviceStatuses returns request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) DeviceStatuses() *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceStatuses"
+ return bb
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+type WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus item
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequestBuilder) ID(id string) *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest is request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+type WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection, max N pages
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Get(ctx context.Context) ([]WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus collection
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeviceStatusesCollectionRequest) Add(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus) (resObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policy is navigation property
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder) Policy() *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policy"
+ return bb
+}
+
+// NetworkAccessConfigurations returns request builder for DeviceConfiguration collection
+func (b *WindowsDomainJoinConfigurationRequestBuilder) NetworkAccessConfigurations() *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder {
+ bb := &WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/networkAccessConfigurations"
+ return bb
+}
+
+// WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder is request builder for DeviceConfiguration collection
+type WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DeviceConfiguration collection
+func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) Request() *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest {
+ return &WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DeviceConfiguration item
+func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) ID(id string) *DeviceConfigurationRequestBuilder {
+ bb := &DeviceConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest is request for DeviceConfiguration collection
+type WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DeviceConfiguration collection
+func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DeviceConfiguration collection, max N pages
+func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) GetN(ctx context.Context, n int) ([]DeviceConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DeviceConfiguration collection
+func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Get(ctx context.Context) ([]DeviceConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DeviceConfiguration collection
+func (r *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequest) Add(ctx context.Context, reqObj *DeviceConfiguration) (resObj *DeviceConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for WindowsFeatureUpdateProfileAssignment collection
+func (b *WindowsFeatureUpdateProfileRequestBuilder) Assignments() *WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder is request builder for WindowsFeatureUpdateProfileAssignment collection
+type WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsFeatureUpdateProfileAssignment collection
+func (b *WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder) Request() *WindowsFeatureUpdateProfileAssignmentsCollectionRequest {
+ return &WindowsFeatureUpdateProfileAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsFeatureUpdateProfileAssignment item
+func (b *WindowsFeatureUpdateProfileAssignmentsCollectionRequestBuilder) ID(id string) *WindowsFeatureUpdateProfileAssignmentRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsFeatureUpdateProfileAssignmentsCollectionRequest is request for WindowsFeatureUpdateProfileAssignment collection
+type WindowsFeatureUpdateProfileAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsFeatureUpdateProfileAssignment collection
+func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsFeatureUpdateProfileAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsFeatureUpdateProfileAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsFeatureUpdateProfileAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsFeatureUpdateProfileAssignment collection, max N pages
+func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsFeatureUpdateProfileAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsFeatureUpdateProfileAssignment collection
+func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Get(ctx context.Context) ([]WindowsFeatureUpdateProfileAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsFeatureUpdateProfileAssignment collection
+func (r *WindowsFeatureUpdateProfileAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *WindowsFeatureUpdateProfileAssignment) (resObj *WindowsFeatureUpdateProfileAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceUpdateStates returns request builder for WindowsUpdateState collection
+func (b *WindowsFeatureUpdateProfileRequestBuilder) DeviceUpdateStates() *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceUpdateStates"
+ return bb
+}
+
+// WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder is request builder for WindowsUpdateState collection
+type WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsUpdateState collection
+func (b *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder) Request() *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest {
+ return &WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsUpdateState item
+func (b *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequestBuilder) ID(id string) *WindowsUpdateStateRequestBuilder {
+ bb := &WindowsUpdateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest is request for WindowsUpdateState collection
+type WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsUpdateState collection
+func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsUpdateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsUpdateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsUpdateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsUpdateState collection, max N pages
+func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsUpdateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsUpdateState collection
+func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Get(ctx context.Context) ([]WindowsUpdateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsUpdateState collection
+func (r *WindowsFeatureUpdateProfileDeviceUpdateStatesCollectionRequest) Add(ctx context.Context, reqObj *WindowsUpdateState) (resObj *WindowsUpdateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Assignments returns request builder for TargetedManagedAppPolicyAssignment collection
+func (b *WindowsInformationProtectionRequestBuilder) Assignments() *WindowsInformationProtectionAssignmentsCollectionRequestBuilder {
+ bb := &WindowsInformationProtectionAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/assignments"
+ return bb
+}
+
+// WindowsInformationProtectionAssignmentsCollectionRequestBuilder is request builder for TargetedManagedAppPolicyAssignment collection
+type WindowsInformationProtectionAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TargetedManagedAppPolicyAssignment collection
+func (b *WindowsInformationProtectionAssignmentsCollectionRequestBuilder) Request() *WindowsInformationProtectionAssignmentsCollectionRequest {
+ return &WindowsInformationProtectionAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TargetedManagedAppPolicyAssignment item
+func (b *WindowsInformationProtectionAssignmentsCollectionRequestBuilder) ID(id string) *TargetedManagedAppPolicyAssignmentRequestBuilder {
+ bb := &TargetedManagedAppPolicyAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsInformationProtectionAssignmentsCollectionRequest is request for TargetedManagedAppPolicyAssignment collection
+type WindowsInformationProtectionAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TargetedManagedAppPolicyAssignment collection
+func (r *WindowsInformationProtectionAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TargetedManagedAppPolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TargetedManagedAppPolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TargetedManagedAppPolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TargetedManagedAppPolicyAssignment collection, max N pages
+func (r *WindowsInformationProtectionAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]TargetedManagedAppPolicyAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment collection
+func (r *WindowsInformationProtectionAssignmentsCollectionRequest) Get(ctx context.Context) ([]TargetedManagedAppPolicyAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TargetedManagedAppPolicyAssignment collection
+func (r *WindowsInformationProtectionAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) (resObj *TargetedManagedAppPolicyAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ExemptAppLockerFiles returns request builder for WindowsInformationProtectionAppLockerFile collection
+func (b *WindowsInformationProtectionRequestBuilder) ExemptAppLockerFiles() *WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder {
+ bb := &WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/exemptAppLockerFiles"
+ return bb
+}
+
+// WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder is request builder for WindowsInformationProtectionAppLockerFile collection
+type WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionAppLockerFile collection
+func (b *WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder) Request() *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest {
+ return &WindowsInformationProtectionExemptAppLockerFilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionAppLockerFile item
+func (b *WindowsInformationProtectionExemptAppLockerFilesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionAppLockerFileRequestBuilder {
+ bb := &WindowsInformationProtectionAppLockerFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsInformationProtectionExemptAppLockerFilesCollectionRequest is request for WindowsInformationProtectionAppLockerFile collection
+type WindowsInformationProtectionExemptAppLockerFilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionAppLockerFile collection
+func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionAppLockerFile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionAppLockerFile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionAppLockerFile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsInformationProtectionAppLockerFile collection, max N pages
+func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionAppLockerFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsInformationProtectionAppLockerFile collection
+func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLockerFile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsInformationProtectionAppLockerFile collection
+func (r *WindowsInformationProtectionExemptAppLockerFilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionAppLockerFile) (resObj *WindowsInformationProtectionAppLockerFile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ProtectedAppLockerFiles returns request builder for WindowsInformationProtectionAppLockerFile collection
+func (b *WindowsInformationProtectionRequestBuilder) ProtectedAppLockerFiles() *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder {
+ bb := &WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/protectedAppLockerFiles"
+ return bb
+}
+
+// WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder is request builder for WindowsInformationProtectionAppLockerFile collection
+type WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsInformationProtectionAppLockerFile collection
+func (b *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder) Request() *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest {
+ return &WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsInformationProtectionAppLockerFile item
+func (b *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequestBuilder) ID(id string) *WindowsInformationProtectionAppLockerFileRequestBuilder {
+ bb := &WindowsInformationProtectionAppLockerFileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest is request for WindowsInformationProtectionAppLockerFile collection
+type WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsInformationProtectionAppLockerFile collection
+func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsInformationProtectionAppLockerFile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsInformationProtectionAppLockerFile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsInformationProtectionAppLockerFile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsInformationProtectionAppLockerFile collection, max N pages
+func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsInformationProtectionAppLockerFile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsInformationProtectionAppLockerFile collection
+func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) Get(ctx context.Context) ([]WindowsInformationProtectionAppLockerFile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsInformationProtectionAppLockerFile collection
+func (r *WindowsInformationProtectionProtectedAppLockerFilesCollectionRequest) Add(ctx context.Context, reqObj *WindowsInformationProtectionAppLockerFile) (resObj *WindowsInformationProtectionAppLockerFile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// WindowsDevicesProtectionState returns request builder for WindowsProtectionState collection
+func (b *WindowsMalwareInformationRequestBuilder) WindowsDevicesProtectionState() *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder {
+ bb := &WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/windowsDevicesProtectionState"
+ return bb
+}
+
+// WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder is request builder for WindowsProtectionState collection
+type WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsProtectionState collection
+func (b *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder) Request() *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest {
+ return &WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsProtectionState item
+func (b *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequestBuilder) ID(id string) *WindowsProtectionStateRequestBuilder {
+ bb := &WindowsProtectionStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest is request for WindowsProtectionState collection
+type WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsProtectionState collection
+func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsProtectionState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsProtectionState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsProtectionState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsProtectionState collection, max N pages
+func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsProtectionState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsProtectionState collection
+func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest) Get(ctx context.Context) ([]WindowsProtectionState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsProtectionState collection
+func (r *WindowsMalwareInformationWindowsDevicesProtectionStateCollectionRequest) Add(ctx context.Context, reqObj *WindowsProtectionState) (resObj *WindowsProtectionState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// HealthStates returns request builder for WindowsManagementAppHealthState collection
+func (b *WindowsManagementAppRequestBuilder) HealthStates() *WindowsManagementAppHealthStatesCollectionRequestBuilder {
+ bb := &WindowsManagementAppHealthStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/healthStates"
+ return bb
+}
+
+// WindowsManagementAppHealthStatesCollectionRequestBuilder is request builder for WindowsManagementAppHealthState collection
+type WindowsManagementAppHealthStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsManagementAppHealthState collection
+func (b *WindowsManagementAppHealthStatesCollectionRequestBuilder) Request() *WindowsManagementAppHealthStatesCollectionRequest {
+ return &WindowsManagementAppHealthStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsManagementAppHealthState item
+func (b *WindowsManagementAppHealthStatesCollectionRequestBuilder) ID(id string) *WindowsManagementAppHealthStateRequestBuilder {
+ bb := &WindowsManagementAppHealthStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsManagementAppHealthStatesCollectionRequest is request for WindowsManagementAppHealthState collection
+type WindowsManagementAppHealthStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsManagementAppHealthState collection
+func (r *WindowsManagementAppHealthStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsManagementAppHealthState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsManagementAppHealthState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsManagementAppHealthState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsManagementAppHealthState collection, max N pages
+func (r *WindowsManagementAppHealthStatesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsManagementAppHealthState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsManagementAppHealthState collection
+func (r *WindowsManagementAppHealthStatesCollectionRequest) Get(ctx context.Context) ([]WindowsManagementAppHealthState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsManagementAppHealthState collection
+func (r *WindowsManagementAppHealthStatesCollectionRequest) Add(ctx context.Context, reqObj *WindowsManagementAppHealthState) (resObj *WindowsManagementAppHealthState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *WindowsPhone81ImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *WindowsPhone81ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *WindowsPhone81SCEPCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *WindowsPhone81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RootCertificate is navigation property
+func (b *WindowsPhone81SCEPCertificateProfileRequestBuilder) RootCertificate() *WindowsPhone81TrustedRootCertificateRequestBuilder {
+ bb := &WindowsPhone81TrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
+
+// IdentityCertificate is navigation property
+func (b *WindowsPhone81VpnConfigurationRequestBuilder) IdentityCertificate() *WindowsPhone81CertificateProfileBaseRequestBuilder {
+ bb := &WindowsPhone81CertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
+
+// DetectedMalwareState returns request builder for WindowsDeviceMalwareState collection
+func (b *WindowsProtectionStateRequestBuilder) DetectedMalwareState() *WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder {
+ bb := &WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/detectedMalwareState"
+ return bb
+}
+
+// WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder is request builder for WindowsDeviceMalwareState collection
+type WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsDeviceMalwareState collection
+func (b *WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder) Request() *WindowsProtectionStateDetectedMalwareStateCollectionRequest {
+ return &WindowsProtectionStateDetectedMalwareStateCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsDeviceMalwareState item
+func (b *WindowsProtectionStateDetectedMalwareStateCollectionRequestBuilder) ID(id string) *WindowsDeviceMalwareStateRequestBuilder {
+ bb := &WindowsDeviceMalwareStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsProtectionStateDetectedMalwareStateCollectionRequest is request for WindowsDeviceMalwareState collection
+type WindowsProtectionStateDetectedMalwareStateCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsDeviceMalwareState collection
+func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsDeviceMalwareState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsDeviceMalwareState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsDeviceMalwareState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsDeviceMalwareState collection, max N pages
+func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsDeviceMalwareState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsDeviceMalwareState collection
+func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) Get(ctx context.Context) ([]WindowsDeviceMalwareState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsDeviceMalwareState collection
+func (r *WindowsProtectionStateDetectedMalwareStateCollectionRequest) Add(ctx context.Context, reqObj *WindowsDeviceMalwareState) (resObj *WindowsDeviceMalwareState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CommittedContainedApps returns request builder for MobileContainedApp collection
+func (b *WindowsUniversalAppXRequestBuilder) CommittedContainedApps() *WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder {
+ bb := &WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/committedContainedApps"
+ return bb
+}
+
+// WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder is request builder for MobileContainedApp collection
+type WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MobileContainedApp collection
+func (b *WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder) Request() *WindowsUniversalAppXCommittedContainedAppsCollectionRequest {
+ return &WindowsUniversalAppXCommittedContainedAppsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MobileContainedApp item
+func (b *WindowsUniversalAppXCommittedContainedAppsCollectionRequestBuilder) ID(id string) *MobileContainedAppRequestBuilder {
+ bb := &MobileContainedAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsUniversalAppXCommittedContainedAppsCollectionRequest is request for MobileContainedApp collection
+type WindowsUniversalAppXCommittedContainedAppsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MobileContainedApp collection
+func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MobileContainedApp, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MobileContainedApp
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MobileContainedApp
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MobileContainedApp collection, max N pages
+func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) GetN(ctx context.Context, n int) ([]MobileContainedApp, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MobileContainedApp collection
+func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) Get(ctx context.Context) ([]MobileContainedApp, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MobileContainedApp collection
+func (r *WindowsUniversalAppXCommittedContainedAppsCollectionRequest) Add(ctx context.Context, reqObj *MobileContainedApp) (resObj *MobileContainedApp, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DeviceUpdateStates returns request builder for WindowsUpdateState collection
+func (b *WindowsUpdateForBusinessConfigurationRequestBuilder) DeviceUpdateStates() *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder {
+ bb := &WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceUpdateStates"
+ return bb
+}
+
+// WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder is request builder for WindowsUpdateState collection
+type WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsUpdateState collection
+func (b *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder) Request() *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest {
+ return &WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsUpdateState item
+func (b *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequestBuilder) ID(id string) *WindowsUpdateStateRequestBuilder {
+ bb := &WindowsUpdateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest is request for WindowsUpdateState collection
+type WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsUpdateState collection
+func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsUpdateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsUpdateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsUpdateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsUpdateState collection, max N pages
+func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsUpdateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsUpdateState collection
+func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest) Get(ctx context.Context) ([]WindowsUpdateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsUpdateState collection
+func (r *WindowsUpdateForBusinessConfigurationDeviceUpdateStatesCollectionRequest) Add(ctx context.Context, reqObj *WindowsUpdateState) (resObj *WindowsUpdateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityCertificateForClientAuthentication is navigation property
+func (b *WindowsWiFiEnterpriseEAPConfigurationRequestBuilder) IdentityCertificateForClientAuthentication() *WindowsCertificateProfileBaseRequestBuilder {
+ bb := &WindowsCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificateForClientAuthentication"
+ return bb
+}
+
+// RootCertificatesForServerValidation returns request builder for Windows81TrustedRootCertificate collection
+func (b *WindowsWiFiEnterpriseEAPConfigurationRequestBuilder) RootCertificatesForServerValidation() *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder {
+ bb := &WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificatesForServerValidation"
+ return bb
+}
+
+// WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder is request builder for Windows81TrustedRootCertificate collection
+type WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Windows81TrustedRootCertificate collection
+func (b *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) Request() *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest {
+ return &WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Windows81TrustedRootCertificate item
+func (b *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequestBuilder) ID(id string) *Windows81TrustedRootCertificateRequestBuilder {
+ bb := &Windows81TrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest is request for Windows81TrustedRootCertificate collection
+type WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Windows81TrustedRootCertificate collection
+func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Windows81TrustedRootCertificate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Windows81TrustedRootCertificate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Windows81TrustedRootCertificate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Windows81TrustedRootCertificate collection, max N pages
+func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest) GetN(ctx context.Context, n int) ([]Windows81TrustedRootCertificate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Windows81TrustedRootCertificate collection
+func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest) Get(ctx context.Context) ([]Windows81TrustedRootCertificate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Windows81TrustedRootCertificate collection
+func (r *WindowsWiFiEnterpriseEAPConfigurationRootCertificatesForServerValidationCollectionRequest) Add(ctx context.Context, reqObj *Windows81TrustedRootCertificate) (resObj *Windows81TrustedRootCertificate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows10.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows10.go
new file mode 100644
index 00000000..bbe62069
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows10.go
@@ -0,0 +1,325 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PrivacyAccessControls returns request builder for WindowsPrivacyDataAccessControlItem collection
+func (b *Windows10GeneralConfigurationRequestBuilder) PrivacyAccessControls() *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder {
+ bb := &Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privacyAccessControls"
+ return bb
+}
+
+// Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder is request builder for WindowsPrivacyDataAccessControlItem collection
+type Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WindowsPrivacyDataAccessControlItem collection
+func (b *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder) Request() *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest {
+ return &Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WindowsPrivacyDataAccessControlItem item
+func (b *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequestBuilder) ID(id string) *WindowsPrivacyDataAccessControlItemRequestBuilder {
+ bb := &WindowsPrivacyDataAccessControlItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest is request for WindowsPrivacyDataAccessControlItem collection
+type Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WindowsPrivacyDataAccessControlItem collection
+func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WindowsPrivacyDataAccessControlItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WindowsPrivacyDataAccessControlItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WindowsPrivacyDataAccessControlItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WindowsPrivacyDataAccessControlItem collection, max N pages
+func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) GetN(ctx context.Context, n int) ([]WindowsPrivacyDataAccessControlItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WindowsPrivacyDataAccessControlItem collection
+func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Get(ctx context.Context) ([]WindowsPrivacyDataAccessControlItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WindowsPrivacyDataAccessControlItem collection
+func (r *Windows10GeneralConfigurationPrivacyAccessControlsCollectionRequest) Add(ctx context.Context, reqObj *WindowsPrivacyDataAccessControlItem) (resObj *WindowsPrivacyDataAccessControlItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *Windows10ImportedPFXCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *Windows10ImportedPFXCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *Windows10PkcsCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *Windows10PkcsCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityCertificate is navigation property
+func (b *Windows10VpnConfigurationRequestBuilder) IdentityCertificate() *WindowsCertificateProfileBaseRequestBuilder {
+ bb := &WindowsCertificateProfileBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows81.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows81.go
new file mode 100644
index 00000000..77815fab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWindows81.go
@@ -0,0 +1,121 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ManagedDeviceCertificateStates returns request builder for ManagedDeviceCertificateState collection
+func (b *Windows81SCEPCertificateProfileRequestBuilder) ManagedDeviceCertificateStates() *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder {
+ bb := &Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/managedDeviceCertificateStates"
+ return bb
+}
+
+// Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder is request builder for ManagedDeviceCertificateState collection
+type Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ManagedDeviceCertificateState collection
+func (b *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) Request() *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest {
+ return &Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ManagedDeviceCertificateState item
+func (b *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequestBuilder) ID(id string) *ManagedDeviceCertificateStateRequestBuilder {
+ bb := &ManagedDeviceCertificateStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest is request for ManagedDeviceCertificateState collection
+type Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ManagedDeviceCertificateState collection
+func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ManagedDeviceCertificateState, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ManagedDeviceCertificateState
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ManagedDeviceCertificateState
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ManagedDeviceCertificateState collection, max N pages
+func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) GetN(ctx context.Context, n int) ([]ManagedDeviceCertificateState, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ManagedDeviceCertificateState collection
+func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Get(ctx context.Context) ([]ManagedDeviceCertificateState, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ManagedDeviceCertificateState collection
+func (r *Windows81SCEPCertificateProfileManagedDeviceCertificateStatesCollectionRequest) Add(ctx context.Context, reqObj *ManagedDeviceCertificateState) (resObj *ManagedDeviceCertificateState, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RootCertificate is navigation property
+func (b *Windows81SCEPCertificateProfileRequestBuilder) RootCertificate() *Windows81TrustedRootCertificateRequestBuilder {
+ bb := &Windows81TrustedRootCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rootCertificate"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go
new file mode 100644
index 00000000..296dffc8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ActionWorkbook.go
@@ -0,0 +1,5268 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "encoding/json"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// WorkbookChartCollectionAddRequestParameter undocumented
+type WorkbookChartCollectionAddRequestParameter struct {
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // SourceData undocumented
+ SourceData json.RawMessage `json:"sourceData,omitempty"`
+ // SeriesBy undocumented
+ SeriesBy *string `json:"seriesBy,omitempty"`
+}
+
+// WorkbookNamedItemCollectionAddRequestParameter undocumented
+type WorkbookNamedItemCollectionAddRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Reference undocumented
+ Reference json.RawMessage `json:"reference,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+}
+
+// WorkbookNamedItemCollectionAddFormulaLocalRequestParameter undocumented
+type WorkbookNamedItemCollectionAddFormulaLocalRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Formula undocumented
+ Formula *string `json:"formula,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+}
+
+// WorkbookPivotTableCollectionRefreshAllRequestParameter undocumented
+type WorkbookPivotTableCollectionRefreshAllRequestParameter struct {
+}
+
+// WorkbookTableCollectionAddRequestParameter undocumented
+type WorkbookTableCollectionAddRequestParameter struct {
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // HasHeaders undocumented
+ HasHeaders *bool `json:"hasHeaders,omitempty"`
+}
+
+// WorkbookTableColumnCollectionAddRequestParameter undocumented
+type WorkbookTableColumnCollectionAddRequestParameter struct {
+ // Index undocumented
+ Index *int `json:"index,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// WorkbookTableRowCollectionAddRequestParameter undocumented
+type WorkbookTableRowCollectionAddRequestParameter struct {
+ // Index undocumented
+ Index *int `json:"index,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookWorksheetCollectionAddRequestParameter undocumented
+type WorkbookWorksheetCollectionAddRequestParameter struct {
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// WorkbookCreateSessionRequestParameter undocumented
+type WorkbookCreateSessionRequestParameter struct {
+ // PersistChanges undocumented
+ PersistChanges *bool `json:"persistChanges,omitempty"`
+}
+
+// WorkbookCloseSessionRequestParameter undocumented
+type WorkbookCloseSessionRequestParameter struct {
+}
+
+// WorkbookRefreshSessionRequestParameter undocumented
+type WorkbookRefreshSessionRequestParameter struct {
+}
+
+// WorkbookApplicationCalculateRequestParameter undocumented
+type WorkbookApplicationCalculateRequestParameter struct {
+ // CalculationType undocumented
+ CalculationType *string `json:"calculationType,omitempty"`
+}
+
+// WorkbookChartSetDataRequestParameter undocumented
+type WorkbookChartSetDataRequestParameter struct {
+ // SourceData undocumented
+ SourceData json.RawMessage `json:"sourceData,omitempty"`
+ // SeriesBy undocumented
+ SeriesBy *string `json:"seriesBy,omitempty"`
+}
+
+// WorkbookChartSetPositionRequestParameter undocumented
+type WorkbookChartSetPositionRequestParameter struct {
+ // StartCell undocumented
+ StartCell json.RawMessage `json:"startCell,omitempty"`
+ // EndCell undocumented
+ EndCell json.RawMessage `json:"endCell,omitempty"`
+}
+
+// WorkbookChartFillClearRequestParameter undocumented
+type WorkbookChartFillClearRequestParameter struct {
+}
+
+// WorkbookChartFillSetSolidColorRequestParameter undocumented
+type WorkbookChartFillSetSolidColorRequestParameter struct {
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+}
+
+// WorkbookChartLineFormatClearRequestParameter undocumented
+type WorkbookChartLineFormatClearRequestParameter struct {
+}
+
+// WorkbookFilterApplyRequestParameter undocumented
+type WorkbookFilterApplyRequestParameter struct {
+ // Criteria undocumented
+ Criteria *WorkbookFilterCriteria `json:"criteria,omitempty"`
+}
+
+// WorkbookFilterApplyBottomItemsFilterRequestParameter undocumented
+type WorkbookFilterApplyBottomItemsFilterRequestParameter struct {
+ // Count undocumented
+ Count *int `json:"count,omitempty"`
+}
+
+// WorkbookFilterApplyBottomPercentFilterRequestParameter undocumented
+type WorkbookFilterApplyBottomPercentFilterRequestParameter struct {
+ // Percent undocumented
+ Percent *int `json:"percent,omitempty"`
+}
+
+// WorkbookFilterApplyCellColorFilterRequestParameter undocumented
+type WorkbookFilterApplyCellColorFilterRequestParameter struct {
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+}
+
+// WorkbookFilterApplyCustomFilterRequestParameter undocumented
+type WorkbookFilterApplyCustomFilterRequestParameter struct {
+ // Criteria1 undocumented
+ Criteria1 *string `json:"criteria1,omitempty"`
+ // Criteria2 undocumented
+ Criteria2 *string `json:"criteria2,omitempty"`
+ // Oper undocumented
+ Oper *string `json:"oper,omitempty"`
+}
+
+// WorkbookFilterApplyDynamicFilterRequestParameter undocumented
+type WorkbookFilterApplyDynamicFilterRequestParameter struct {
+ // Criteria undocumented
+ Criteria *string `json:"criteria,omitempty"`
+}
+
+// WorkbookFilterApplyFontColorFilterRequestParameter undocumented
+type WorkbookFilterApplyFontColorFilterRequestParameter struct {
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+}
+
+// WorkbookFilterApplyIconFilterRequestParameter undocumented
+type WorkbookFilterApplyIconFilterRequestParameter struct {
+ // Icon undocumented
+ Icon *WorkbookIcon `json:"icon,omitempty"`
+}
+
+// WorkbookFilterApplyTopItemsFilterRequestParameter undocumented
+type WorkbookFilterApplyTopItemsFilterRequestParameter struct {
+ // Count undocumented
+ Count *int `json:"count,omitempty"`
+}
+
+// WorkbookFilterApplyTopPercentFilterRequestParameter undocumented
+type WorkbookFilterApplyTopPercentFilterRequestParameter struct {
+ // Percent undocumented
+ Percent *int `json:"percent,omitempty"`
+}
+
+// WorkbookFilterApplyValuesFilterRequestParameter undocumented
+type WorkbookFilterApplyValuesFilterRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFilterClearRequestParameter undocumented
+type WorkbookFilterClearRequestParameter struct {
+}
+
+// WorkbookFunctionsAbsRequestParameter undocumented
+type WorkbookFunctionsAbsRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsAccrIntRequestParameter undocumented
+type WorkbookFunctionsAccrIntRequestParameter struct {
+ // Issue undocumented
+ Issue json.RawMessage `json:"issue,omitempty"`
+ // FirstInterest undocumented
+ FirstInterest json.RawMessage `json:"firstInterest,omitempty"`
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Par undocumented
+ Par json.RawMessage `json:"par,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+ // CalcMethod undocumented
+ CalcMethod json.RawMessage `json:"calcMethod,omitempty"`
+}
+
+// WorkbookFunctionsAccrIntMRequestParameter undocumented
+type WorkbookFunctionsAccrIntMRequestParameter struct {
+ // Issue undocumented
+ Issue json.RawMessage `json:"issue,omitempty"`
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Par undocumented
+ Par json.RawMessage `json:"par,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsAcosRequestParameter undocumented
+type WorkbookFunctionsAcosRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsAcoshRequestParameter undocumented
+type WorkbookFunctionsAcoshRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsAcotRequestParameter undocumented
+type WorkbookFunctionsAcotRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsAcothRequestParameter undocumented
+type WorkbookFunctionsAcothRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsAmorDegrcRequestParameter undocumented
+type WorkbookFunctionsAmorDegrcRequestParameter struct {
+ // Cost undocumented
+ Cost json.RawMessage `json:"cost,omitempty"`
+ // DatePurchased undocumented
+ DatePurchased json.RawMessage `json:"datePurchased,omitempty"`
+ // FirstPeriod undocumented
+ FirstPeriod json.RawMessage `json:"firstPeriod,omitempty"`
+ // Salvage undocumented
+ Salvage json.RawMessage `json:"salvage,omitempty"`
+ // Period undocumented
+ Period json.RawMessage `json:"period,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsAmorLincRequestParameter undocumented
+type WorkbookFunctionsAmorLincRequestParameter struct {
+ // Cost undocumented
+ Cost json.RawMessage `json:"cost,omitempty"`
+ // DatePurchased undocumented
+ DatePurchased json.RawMessage `json:"datePurchased,omitempty"`
+ // FirstPeriod undocumented
+ FirstPeriod json.RawMessage `json:"firstPeriod,omitempty"`
+ // Salvage undocumented
+ Salvage json.RawMessage `json:"salvage,omitempty"`
+ // Period undocumented
+ Period json.RawMessage `json:"period,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsAndRequestParameter undocumented
+type WorkbookFunctionsAndRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsArabicRequestParameter undocumented
+type WorkbookFunctionsArabicRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsAreasRequestParameter undocumented
+type WorkbookFunctionsAreasRequestParameter struct {
+ // Reference undocumented
+ Reference json.RawMessage `json:"reference,omitempty"`
+}
+
+// WorkbookFunctionsAscRequestParameter undocumented
+type WorkbookFunctionsAscRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsAsinRequestParameter undocumented
+type WorkbookFunctionsAsinRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsAsinhRequestParameter undocumented
+type WorkbookFunctionsAsinhRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsAtanRequestParameter undocumented
+type WorkbookFunctionsAtanRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsAtan2RequestParameter undocumented
+type WorkbookFunctionsAtan2RequestParameter struct {
+ // XNum undocumented
+ XNum json.RawMessage `json:"xNum,omitempty"`
+ // YNum undocumented
+ YNum json.RawMessage `json:"yNum,omitempty"`
+}
+
+// WorkbookFunctionsAtanhRequestParameter undocumented
+type WorkbookFunctionsAtanhRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsAveDevRequestParameter undocumented
+type WorkbookFunctionsAveDevRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsAverageRequestParameter undocumented
+type WorkbookFunctionsAverageRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsAverageARequestParameter undocumented
+type WorkbookFunctionsAverageARequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsAverageIfRequestParameter undocumented
+type WorkbookFunctionsAverageIfRequestParameter struct {
+ // Range undocumented
+ Range json.RawMessage `json:"range,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+ // AverageRange undocumented
+ AverageRange json.RawMessage `json:"averageRange,omitempty"`
+}
+
+// WorkbookFunctionsAverageIfsRequestParameter undocumented
+type WorkbookFunctionsAverageIfsRequestParameter struct {
+ // AverageRange undocumented
+ AverageRange json.RawMessage `json:"averageRange,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsBahtTextRequestParameter undocumented
+type WorkbookFunctionsBahtTextRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsBaseRequestParameter undocumented
+type WorkbookFunctionsBaseRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Radix undocumented
+ Radix json.RawMessage `json:"radix,omitempty"`
+ // MinLength undocumented
+ MinLength json.RawMessage `json:"minLength,omitempty"`
+}
+
+// WorkbookFunctionsBesselIRequestParameter undocumented
+type WorkbookFunctionsBesselIRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // N undocumented
+ N json.RawMessage `json:"n,omitempty"`
+}
+
+// WorkbookFunctionsBesselJRequestParameter undocumented
+type WorkbookFunctionsBesselJRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // N undocumented
+ N json.RawMessage `json:"n,omitempty"`
+}
+
+// WorkbookFunctionsBesselKRequestParameter undocumented
+type WorkbookFunctionsBesselKRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // N undocumented
+ N json.RawMessage `json:"n,omitempty"`
+}
+
+// WorkbookFunctionsBesselYRequestParameter undocumented
+type WorkbookFunctionsBesselYRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // N undocumented
+ N json.RawMessage `json:"n,omitempty"`
+}
+
+// WorkbookFunctionsBeta_DistRequestParameter undocumented
+type WorkbookFunctionsBeta_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Alpha undocumented
+ Alpha json.RawMessage `json:"alpha,omitempty"`
+ // Beta undocumented
+ Beta json.RawMessage `json:"beta,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+ // A undocumented
+ A json.RawMessage `json:"A,omitempty"`
+ // B undocumented
+ B json.RawMessage `json:"B,omitempty"`
+}
+
+// WorkbookFunctionsBeta_InvRequestParameter undocumented
+type WorkbookFunctionsBeta_InvRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // Alpha undocumented
+ Alpha json.RawMessage `json:"alpha,omitempty"`
+ // Beta undocumented
+ Beta json.RawMessage `json:"beta,omitempty"`
+ // A undocumented
+ A json.RawMessage `json:"A,omitempty"`
+ // B undocumented
+ B json.RawMessage `json:"B,omitempty"`
+}
+
+// WorkbookFunctionsBin2DecRequestParameter undocumented
+type WorkbookFunctionsBin2DecRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsBin2HexRequestParameter undocumented
+type WorkbookFunctionsBin2HexRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Places undocumented
+ Places json.RawMessage `json:"places,omitempty"`
+}
+
+// WorkbookFunctionsBin2OctRequestParameter undocumented
+type WorkbookFunctionsBin2OctRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Places undocumented
+ Places json.RawMessage `json:"places,omitempty"`
+}
+
+// WorkbookFunctionsBinom_DistRequestParameter undocumented
+type WorkbookFunctionsBinom_DistRequestParameter struct {
+ // NumberS undocumented
+ NumberS json.RawMessage `json:"numberS,omitempty"`
+ // Trials undocumented
+ Trials json.RawMessage `json:"trials,omitempty"`
+ // ProbabilityS undocumented
+ ProbabilityS json.RawMessage `json:"probabilityS,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsBinom_Dist_RangeRequestParameter undocumented
+type WorkbookFunctionsBinom_Dist_RangeRequestParameter struct {
+ // Trials undocumented
+ Trials json.RawMessage `json:"trials,omitempty"`
+ // ProbabilityS undocumented
+ ProbabilityS json.RawMessage `json:"probabilityS,omitempty"`
+ // NumberS undocumented
+ NumberS json.RawMessage `json:"numberS,omitempty"`
+ // NumberS2 undocumented
+ NumberS2 json.RawMessage `json:"numberS2,omitempty"`
+}
+
+// WorkbookFunctionsBinom_InvRequestParameter undocumented
+type WorkbookFunctionsBinom_InvRequestParameter struct {
+ // Trials undocumented
+ Trials json.RawMessage `json:"trials,omitempty"`
+ // ProbabilityS undocumented
+ ProbabilityS json.RawMessage `json:"probabilityS,omitempty"`
+ // Alpha undocumented
+ Alpha json.RawMessage `json:"alpha,omitempty"`
+}
+
+// WorkbookFunctionsBitandRequestParameter undocumented
+type WorkbookFunctionsBitandRequestParameter struct {
+ // Number1 undocumented
+ Number1 json.RawMessage `json:"number1,omitempty"`
+ // Number2 undocumented
+ Number2 json.RawMessage `json:"number2,omitempty"`
+}
+
+// WorkbookFunctionsBitlshiftRequestParameter undocumented
+type WorkbookFunctionsBitlshiftRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // ShiftAmount undocumented
+ ShiftAmount json.RawMessage `json:"shiftAmount,omitempty"`
+}
+
+// WorkbookFunctionsBitorRequestParameter undocumented
+type WorkbookFunctionsBitorRequestParameter struct {
+ // Number1 undocumented
+ Number1 json.RawMessage `json:"number1,omitempty"`
+ // Number2 undocumented
+ Number2 json.RawMessage `json:"number2,omitempty"`
+}
+
+// WorkbookFunctionsBitrshiftRequestParameter undocumented
+type WorkbookFunctionsBitrshiftRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // ShiftAmount undocumented
+ ShiftAmount json.RawMessage `json:"shiftAmount,omitempty"`
+}
+
+// WorkbookFunctionsBitxorRequestParameter undocumented
+type WorkbookFunctionsBitxorRequestParameter struct {
+ // Number1 undocumented
+ Number1 json.RawMessage `json:"number1,omitempty"`
+ // Number2 undocumented
+ Number2 json.RawMessage `json:"number2,omitempty"`
+}
+
+// WorkbookFunctionsCeiling_MathRequestParameter undocumented
+type WorkbookFunctionsCeiling_MathRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Significance undocumented
+ Significance json.RawMessage `json:"significance,omitempty"`
+ // Mode undocumented
+ Mode json.RawMessage `json:"mode,omitempty"`
+}
+
+// WorkbookFunctionsCeiling_PreciseRequestParameter undocumented
+type WorkbookFunctionsCeiling_PreciseRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Significance undocumented
+ Significance json.RawMessage `json:"significance,omitempty"`
+}
+
+// WorkbookFunctionsCharRequestParameter undocumented
+type WorkbookFunctionsCharRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsChiSq_DistRequestParameter undocumented
+type WorkbookFunctionsChiSq_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // DegFreedom undocumented
+ DegFreedom json.RawMessage `json:"degFreedom,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsChiSq_Dist_RTRequestParameter undocumented
+type WorkbookFunctionsChiSq_Dist_RTRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // DegFreedom undocumented
+ DegFreedom json.RawMessage `json:"degFreedom,omitempty"`
+}
+
+// WorkbookFunctionsChiSq_InvRequestParameter undocumented
+type WorkbookFunctionsChiSq_InvRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // DegFreedom undocumented
+ DegFreedom json.RawMessage `json:"degFreedom,omitempty"`
+}
+
+// WorkbookFunctionsChiSq_Inv_RTRequestParameter undocumented
+type WorkbookFunctionsChiSq_Inv_RTRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // DegFreedom undocumented
+ DegFreedom json.RawMessage `json:"degFreedom,omitempty"`
+}
+
+// WorkbookFunctionsChooseRequestParameter undocumented
+type WorkbookFunctionsChooseRequestParameter struct {
+ // IndexNum undocumented
+ IndexNum json.RawMessage `json:"indexNum,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsCleanRequestParameter undocumented
+type WorkbookFunctionsCleanRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsCodeRequestParameter undocumented
+type WorkbookFunctionsCodeRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsColumnsRequestParameter undocumented
+type WorkbookFunctionsColumnsRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+}
+
+// WorkbookFunctionsCombinRequestParameter undocumented
+type WorkbookFunctionsCombinRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // NumberChosen undocumented
+ NumberChosen json.RawMessage `json:"numberChosen,omitempty"`
+}
+
+// WorkbookFunctionsCombinaRequestParameter undocumented
+type WorkbookFunctionsCombinaRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // NumberChosen undocumented
+ NumberChosen json.RawMessage `json:"numberChosen,omitempty"`
+}
+
+// WorkbookFunctionsComplexRequestParameter undocumented
+type WorkbookFunctionsComplexRequestParameter struct {
+ // RealNum undocumented
+ RealNum json.RawMessage `json:"realNum,omitempty"`
+ // INum undocumented
+ INum json.RawMessage `json:"iNum,omitempty"`
+ // Suffix undocumented
+ Suffix json.RawMessage `json:"suffix,omitempty"`
+}
+
+// WorkbookFunctionsConcatenateRequestParameter undocumented
+type WorkbookFunctionsConcatenateRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsConfidence_NormRequestParameter undocumented
+type WorkbookFunctionsConfidence_NormRequestParameter struct {
+ // Alpha undocumented
+ Alpha json.RawMessage `json:"alpha,omitempty"`
+ // StandardDev undocumented
+ StandardDev json.RawMessage `json:"standardDev,omitempty"`
+ // Size undocumented
+ Size json.RawMessage `json:"size,omitempty"`
+}
+
+// WorkbookFunctionsConfidence_TRequestParameter undocumented
+type WorkbookFunctionsConfidence_TRequestParameter struct {
+ // Alpha undocumented
+ Alpha json.RawMessage `json:"alpha,omitempty"`
+ // StandardDev undocumented
+ StandardDev json.RawMessage `json:"standardDev,omitempty"`
+ // Size undocumented
+ Size json.RawMessage `json:"size,omitempty"`
+}
+
+// WorkbookFunctionsConvertRequestParameter undocumented
+type WorkbookFunctionsConvertRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // FromUnit undocumented
+ FromUnit json.RawMessage `json:"fromUnit,omitempty"`
+ // ToUnit undocumented
+ ToUnit json.RawMessage `json:"toUnit,omitempty"`
+}
+
+// WorkbookFunctionsCosRequestParameter undocumented
+type WorkbookFunctionsCosRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsCoshRequestParameter undocumented
+type WorkbookFunctionsCoshRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsCotRequestParameter undocumented
+type WorkbookFunctionsCotRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsCothRequestParameter undocumented
+type WorkbookFunctionsCothRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsCountRequestParameter undocumented
+type WorkbookFunctionsCountRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsCountARequestParameter undocumented
+type WorkbookFunctionsCountARequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsCountBlankRequestParameter undocumented
+type WorkbookFunctionsCountBlankRequestParameter struct {
+ // Range undocumented
+ Range json.RawMessage `json:"range,omitempty"`
+}
+
+// WorkbookFunctionsCountIfRequestParameter undocumented
+type WorkbookFunctionsCountIfRequestParameter struct {
+ // Range undocumented
+ Range json.RawMessage `json:"range,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsCountIfsRequestParameter undocumented
+type WorkbookFunctionsCountIfsRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsCoupDayBsRequestParameter undocumented
+type WorkbookFunctionsCoupDayBsRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsCoupDaysRequestParameter undocumented
+type WorkbookFunctionsCoupDaysRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsCoupDaysNcRequestParameter undocumented
+type WorkbookFunctionsCoupDaysNcRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsCoupNcdRequestParameter undocumented
+type WorkbookFunctionsCoupNcdRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsCoupNumRequestParameter undocumented
+type WorkbookFunctionsCoupNumRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsCoupPcdRequestParameter undocumented
+type WorkbookFunctionsCoupPcdRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsCscRequestParameter undocumented
+type WorkbookFunctionsCscRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsCschRequestParameter undocumented
+type WorkbookFunctionsCschRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsCumIPmtRequestParameter undocumented
+type WorkbookFunctionsCumIPmtRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // StartPeriod undocumented
+ StartPeriod json.RawMessage `json:"startPeriod,omitempty"`
+ // EndPeriod undocumented
+ EndPeriod json.RawMessage `json:"endPeriod,omitempty"`
+ // Type undocumented
+ Type json.RawMessage `json:"type,omitempty"`
+}
+
+// WorkbookFunctionsCumPrincRequestParameter undocumented
+type WorkbookFunctionsCumPrincRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // StartPeriod undocumented
+ StartPeriod json.RawMessage `json:"startPeriod,omitempty"`
+ // EndPeriod undocumented
+ EndPeriod json.RawMessage `json:"endPeriod,omitempty"`
+ // Type undocumented
+ Type json.RawMessage `json:"type,omitempty"`
+}
+
+// WorkbookFunctionsDaverageRequestParameter undocumented
+type WorkbookFunctionsDaverageRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDcountRequestParameter undocumented
+type WorkbookFunctionsDcountRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDcountARequestParameter undocumented
+type WorkbookFunctionsDcountARequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDgetRequestParameter undocumented
+type WorkbookFunctionsDgetRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDmaxRequestParameter undocumented
+type WorkbookFunctionsDmaxRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDminRequestParameter undocumented
+type WorkbookFunctionsDminRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDproductRequestParameter undocumented
+type WorkbookFunctionsDproductRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDstDevRequestParameter undocumented
+type WorkbookFunctionsDstDevRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDstDevPRequestParameter undocumented
+type WorkbookFunctionsDstDevPRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDsumRequestParameter undocumented
+type WorkbookFunctionsDsumRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDvarRequestParameter undocumented
+type WorkbookFunctionsDvarRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDvarPRequestParameter undocumented
+type WorkbookFunctionsDvarPRequestParameter struct {
+ // Database undocumented
+ Database json.RawMessage `json:"database,omitempty"`
+ // Field undocumented
+ Field json.RawMessage `json:"field,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+}
+
+// WorkbookFunctionsDateRequestParameter undocumented
+type WorkbookFunctionsDateRequestParameter struct {
+ // Year undocumented
+ Year json.RawMessage `json:"year,omitempty"`
+ // Month undocumented
+ Month json.RawMessage `json:"month,omitempty"`
+ // Day undocumented
+ Day json.RawMessage `json:"day,omitempty"`
+}
+
+// WorkbookFunctionsDatevalueRequestParameter undocumented
+type WorkbookFunctionsDatevalueRequestParameter struct {
+ // DateText undocumented
+ DateText json.RawMessage `json:"dateText,omitempty"`
+}
+
+// WorkbookFunctionsDayRequestParameter undocumented
+type WorkbookFunctionsDayRequestParameter struct {
+ // SerialNumber undocumented
+ SerialNumber json.RawMessage `json:"serialNumber,omitempty"`
+}
+
+// WorkbookFunctionsDaysRequestParameter undocumented
+type WorkbookFunctionsDaysRequestParameter struct {
+ // EndDate undocumented
+ EndDate json.RawMessage `json:"endDate,omitempty"`
+ // StartDate undocumented
+ StartDate json.RawMessage `json:"startDate,omitempty"`
+}
+
+// WorkbookFunctionsDays360RequestParameter undocumented
+type WorkbookFunctionsDays360RequestParameter struct {
+ // StartDate undocumented
+ StartDate json.RawMessage `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate json.RawMessage `json:"endDate,omitempty"`
+ // Method undocumented
+ Method json.RawMessage `json:"method,omitempty"`
+}
+
+// WorkbookFunctionsDbRequestParameter undocumented
+type WorkbookFunctionsDbRequestParameter struct {
+ // Cost undocumented
+ Cost json.RawMessage `json:"cost,omitempty"`
+ // Salvage undocumented
+ Salvage json.RawMessage `json:"salvage,omitempty"`
+ // Life undocumented
+ Life json.RawMessage `json:"life,omitempty"`
+ // Period undocumented
+ Period json.RawMessage `json:"period,omitempty"`
+ // Month undocumented
+ Month json.RawMessage `json:"month,omitempty"`
+}
+
+// WorkbookFunctionsDbcsRequestParameter undocumented
+type WorkbookFunctionsDbcsRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsDdbRequestParameter undocumented
+type WorkbookFunctionsDdbRequestParameter struct {
+ // Cost undocumented
+ Cost json.RawMessage `json:"cost,omitempty"`
+ // Salvage undocumented
+ Salvage json.RawMessage `json:"salvage,omitempty"`
+ // Life undocumented
+ Life json.RawMessage `json:"life,omitempty"`
+ // Period undocumented
+ Period json.RawMessage `json:"period,omitempty"`
+ // Factor undocumented
+ Factor json.RawMessage `json:"factor,omitempty"`
+}
+
+// WorkbookFunctionsDec2BinRequestParameter undocumented
+type WorkbookFunctionsDec2BinRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Places undocumented
+ Places json.RawMessage `json:"places,omitempty"`
+}
+
+// WorkbookFunctionsDec2HexRequestParameter undocumented
+type WorkbookFunctionsDec2HexRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Places undocumented
+ Places json.RawMessage `json:"places,omitempty"`
+}
+
+// WorkbookFunctionsDec2OctRequestParameter undocumented
+type WorkbookFunctionsDec2OctRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Places undocumented
+ Places json.RawMessage `json:"places,omitempty"`
+}
+
+// WorkbookFunctionsDecimalRequestParameter undocumented
+type WorkbookFunctionsDecimalRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Radix undocumented
+ Radix json.RawMessage `json:"radix,omitempty"`
+}
+
+// WorkbookFunctionsDegreesRequestParameter undocumented
+type WorkbookFunctionsDegreesRequestParameter struct {
+ // Angle undocumented
+ Angle json.RawMessage `json:"angle,omitempty"`
+}
+
+// WorkbookFunctionsDeltaRequestParameter undocumented
+type WorkbookFunctionsDeltaRequestParameter struct {
+ // Number1 undocumented
+ Number1 json.RawMessage `json:"number1,omitempty"`
+ // Number2 undocumented
+ Number2 json.RawMessage `json:"number2,omitempty"`
+}
+
+// WorkbookFunctionsDevSqRequestParameter undocumented
+type WorkbookFunctionsDevSqRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsDiscRequestParameter undocumented
+type WorkbookFunctionsDiscRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Pr undocumented
+ Pr json.RawMessage `json:"pr,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsDollarRequestParameter undocumented
+type WorkbookFunctionsDollarRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Decimals undocumented
+ Decimals json.RawMessage `json:"decimals,omitempty"`
+}
+
+// WorkbookFunctionsDollarDeRequestParameter undocumented
+type WorkbookFunctionsDollarDeRequestParameter struct {
+ // FractionalDollar undocumented
+ FractionalDollar json.RawMessage `json:"fractionalDollar,omitempty"`
+ // Fraction undocumented
+ Fraction json.RawMessage `json:"fraction,omitempty"`
+}
+
+// WorkbookFunctionsDollarFrRequestParameter undocumented
+type WorkbookFunctionsDollarFrRequestParameter struct {
+ // DecimalDollar undocumented
+ DecimalDollar json.RawMessage `json:"decimalDollar,omitempty"`
+ // Fraction undocumented
+ Fraction json.RawMessage `json:"fraction,omitempty"`
+}
+
+// WorkbookFunctionsDurationRequestParameter undocumented
+type WorkbookFunctionsDurationRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Coupon undocumented
+ Coupon json.RawMessage `json:"coupon,omitempty"`
+ // Yld undocumented
+ Yld json.RawMessage `json:"yld,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsEcma_CeilingRequestParameter undocumented
+type WorkbookFunctionsEcma_CeilingRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Significance undocumented
+ Significance json.RawMessage `json:"significance,omitempty"`
+}
+
+// WorkbookFunctionsEdateRequestParameter undocumented
+type WorkbookFunctionsEdateRequestParameter struct {
+ // StartDate undocumented
+ StartDate json.RawMessage `json:"startDate,omitempty"`
+ // Months undocumented
+ Months json.RawMessage `json:"months,omitempty"`
+}
+
+// WorkbookFunctionsEffectRequestParameter undocumented
+type WorkbookFunctionsEffectRequestParameter struct {
+ // NominalRate undocumented
+ NominalRate json.RawMessage `json:"nominalRate,omitempty"`
+ // Npery undocumented
+ Npery json.RawMessage `json:"npery,omitempty"`
+}
+
+// WorkbookFunctionsEoMonthRequestParameter undocumented
+type WorkbookFunctionsEoMonthRequestParameter struct {
+ // StartDate undocumented
+ StartDate json.RawMessage `json:"startDate,omitempty"`
+ // Months undocumented
+ Months json.RawMessage `json:"months,omitempty"`
+}
+
+// WorkbookFunctionsErfRequestParameter undocumented
+type WorkbookFunctionsErfRequestParameter struct {
+ // LowerLimit undocumented
+ LowerLimit json.RawMessage `json:"lowerLimit,omitempty"`
+ // UpperLimit undocumented
+ UpperLimit json.RawMessage `json:"upperLimit,omitempty"`
+}
+
+// WorkbookFunctionsErfCRequestParameter undocumented
+type WorkbookFunctionsErfCRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+}
+
+// WorkbookFunctionsErfC_PreciseRequestParameter undocumented
+type WorkbookFunctionsErfC_PreciseRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"X,omitempty"`
+}
+
+// WorkbookFunctionsErf_PreciseRequestParameter undocumented
+type WorkbookFunctionsErf_PreciseRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"X,omitempty"`
+}
+
+// WorkbookFunctionsError_TypeRequestParameter undocumented
+type WorkbookFunctionsError_TypeRequestParameter struct {
+ // ErrorVal undocumented
+ ErrorVal json.RawMessage `json:"errorVal,omitempty"`
+}
+
+// WorkbookFunctionsEvenRequestParameter undocumented
+type WorkbookFunctionsEvenRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsExactRequestParameter undocumented
+type WorkbookFunctionsExactRequestParameter struct {
+ // Text1 undocumented
+ Text1 json.RawMessage `json:"text1,omitempty"`
+ // Text2 undocumented
+ Text2 json.RawMessage `json:"text2,omitempty"`
+}
+
+// WorkbookFunctionsExpRequestParameter undocumented
+type WorkbookFunctionsExpRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsExpon_DistRequestParameter undocumented
+type WorkbookFunctionsExpon_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Lambda undocumented
+ Lambda json.RawMessage `json:"lambda,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsFvscheduleRequestParameter undocumented
+type WorkbookFunctionsFvscheduleRequestParameter struct {
+ // Principal undocumented
+ Principal json.RawMessage `json:"principal,omitempty"`
+ // Schedule undocumented
+ Schedule json.RawMessage `json:"schedule,omitempty"`
+}
+
+// WorkbookFunctionsF_DistRequestParameter undocumented
+type WorkbookFunctionsF_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // DegFreedom1 undocumented
+ DegFreedom1 json.RawMessage `json:"degFreedom1,omitempty"`
+ // DegFreedom2 undocumented
+ DegFreedom2 json.RawMessage `json:"degFreedom2,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsF_Dist_RTRequestParameter undocumented
+type WorkbookFunctionsF_Dist_RTRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // DegFreedom1 undocumented
+ DegFreedom1 json.RawMessage `json:"degFreedom1,omitempty"`
+ // DegFreedom2 undocumented
+ DegFreedom2 json.RawMessage `json:"degFreedom2,omitempty"`
+}
+
+// WorkbookFunctionsF_InvRequestParameter undocumented
+type WorkbookFunctionsF_InvRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // DegFreedom1 undocumented
+ DegFreedom1 json.RawMessage `json:"degFreedom1,omitempty"`
+ // DegFreedom2 undocumented
+ DegFreedom2 json.RawMessage `json:"degFreedom2,omitempty"`
+}
+
+// WorkbookFunctionsF_Inv_RTRequestParameter undocumented
+type WorkbookFunctionsF_Inv_RTRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // DegFreedom1 undocumented
+ DegFreedom1 json.RawMessage `json:"degFreedom1,omitempty"`
+ // DegFreedom2 undocumented
+ DegFreedom2 json.RawMessage `json:"degFreedom2,omitempty"`
+}
+
+// WorkbookFunctionsFactRequestParameter undocumented
+type WorkbookFunctionsFactRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsFactDoubleRequestParameter undocumented
+type WorkbookFunctionsFactDoubleRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsFalseRequestParameter undocumented
+type WorkbookFunctionsFalseRequestParameter struct {
+}
+
+// WorkbookFunctionsFindRequestParameter undocumented
+type WorkbookFunctionsFindRequestParameter struct {
+ // FindText undocumented
+ FindText json.RawMessage `json:"findText,omitempty"`
+ // WithinText undocumented
+ WithinText json.RawMessage `json:"withinText,omitempty"`
+ // StartNum undocumented
+ StartNum json.RawMessage `json:"startNum,omitempty"`
+}
+
+// WorkbookFunctionsFindBRequestParameter undocumented
+type WorkbookFunctionsFindBRequestParameter struct {
+ // FindText undocumented
+ FindText json.RawMessage `json:"findText,omitempty"`
+ // WithinText undocumented
+ WithinText json.RawMessage `json:"withinText,omitempty"`
+ // StartNum undocumented
+ StartNum json.RawMessage `json:"startNum,omitempty"`
+}
+
+// WorkbookFunctionsFisherRequestParameter undocumented
+type WorkbookFunctionsFisherRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+}
+
+// WorkbookFunctionsFisherInvRequestParameter undocumented
+type WorkbookFunctionsFisherInvRequestParameter struct {
+ // Y undocumented
+ Y json.RawMessage `json:"y,omitempty"`
+}
+
+// WorkbookFunctionsFixedRequestParameter undocumented
+type WorkbookFunctionsFixedRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Decimals undocumented
+ Decimals json.RawMessage `json:"decimals,omitempty"`
+ // NoCommas undocumented
+ NoCommas json.RawMessage `json:"noCommas,omitempty"`
+}
+
+// WorkbookFunctionsFloor_MathRequestParameter undocumented
+type WorkbookFunctionsFloor_MathRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Significance undocumented
+ Significance json.RawMessage `json:"significance,omitempty"`
+ // Mode undocumented
+ Mode json.RawMessage `json:"mode,omitempty"`
+}
+
+// WorkbookFunctionsFloor_PreciseRequestParameter undocumented
+type WorkbookFunctionsFloor_PreciseRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Significance undocumented
+ Significance json.RawMessage `json:"significance,omitempty"`
+}
+
+// WorkbookFunctionsFvRequestParameter undocumented
+type WorkbookFunctionsFvRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pmt undocumented
+ Pmt json.RawMessage `json:"pmt,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // Type undocumented
+ Type json.RawMessage `json:"type,omitempty"`
+}
+
+// WorkbookFunctionsGammaRequestParameter undocumented
+type WorkbookFunctionsGammaRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+}
+
+// WorkbookFunctionsGammaLnRequestParameter undocumented
+type WorkbookFunctionsGammaLnRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+}
+
+// WorkbookFunctionsGammaLn_PreciseRequestParameter undocumented
+type WorkbookFunctionsGammaLn_PreciseRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+}
+
+// WorkbookFunctionsGamma_DistRequestParameter undocumented
+type WorkbookFunctionsGamma_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Alpha undocumented
+ Alpha json.RawMessage `json:"alpha,omitempty"`
+ // Beta undocumented
+ Beta json.RawMessage `json:"beta,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsGamma_InvRequestParameter undocumented
+type WorkbookFunctionsGamma_InvRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // Alpha undocumented
+ Alpha json.RawMessage `json:"alpha,omitempty"`
+ // Beta undocumented
+ Beta json.RawMessage `json:"beta,omitempty"`
+}
+
+// WorkbookFunctionsGaussRequestParameter undocumented
+type WorkbookFunctionsGaussRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+}
+
+// WorkbookFunctionsGcdRequestParameter undocumented
+type WorkbookFunctionsGcdRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsGeStepRequestParameter undocumented
+type WorkbookFunctionsGeStepRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Step undocumented
+ Step json.RawMessage `json:"step,omitempty"`
+}
+
+// WorkbookFunctionsGeoMeanRequestParameter undocumented
+type WorkbookFunctionsGeoMeanRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsHlookupRequestParameter undocumented
+type WorkbookFunctionsHlookupRequestParameter struct {
+ // LookupValue undocumented
+ LookupValue json.RawMessage `json:"lookupValue,omitempty"`
+ // TableArray undocumented
+ TableArray json.RawMessage `json:"tableArray,omitempty"`
+ // RowIndexNum undocumented
+ RowIndexNum json.RawMessage `json:"rowIndexNum,omitempty"`
+ // RangeLookup undocumented
+ RangeLookup json.RawMessage `json:"rangeLookup,omitempty"`
+}
+
+// WorkbookFunctionsHarMeanRequestParameter undocumented
+type WorkbookFunctionsHarMeanRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsHex2BinRequestParameter undocumented
+type WorkbookFunctionsHex2BinRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Places undocumented
+ Places json.RawMessage `json:"places,omitempty"`
+}
+
+// WorkbookFunctionsHex2DecRequestParameter undocumented
+type WorkbookFunctionsHex2DecRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsHex2OctRequestParameter undocumented
+type WorkbookFunctionsHex2OctRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Places undocumented
+ Places json.RawMessage `json:"places,omitempty"`
+}
+
+// WorkbookFunctionsHourRequestParameter undocumented
+type WorkbookFunctionsHourRequestParameter struct {
+ // SerialNumber undocumented
+ SerialNumber json.RawMessage `json:"serialNumber,omitempty"`
+}
+
+// WorkbookFunctionsHypGeom_DistRequestParameter undocumented
+type WorkbookFunctionsHypGeom_DistRequestParameter struct {
+ // SampleS undocumented
+ SampleS json.RawMessage `json:"sampleS,omitempty"`
+ // NumberSample undocumented
+ NumberSample json.RawMessage `json:"numberSample,omitempty"`
+ // PopulationS undocumented
+ PopulationS json.RawMessage `json:"populationS,omitempty"`
+ // NumberPop undocumented
+ NumberPop json.RawMessage `json:"numberPop,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsHyperlinkRequestParameter undocumented
+type WorkbookFunctionsHyperlinkRequestParameter struct {
+ // LinkLocation undocumented
+ LinkLocation json.RawMessage `json:"linkLocation,omitempty"`
+ // FriendlyName undocumented
+ FriendlyName json.RawMessage `json:"friendlyName,omitempty"`
+}
+
+// WorkbookFunctionsIso_CeilingRequestParameter undocumented
+type WorkbookFunctionsIso_CeilingRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Significance undocumented
+ Significance json.RawMessage `json:"significance,omitempty"`
+}
+
+// WorkbookFunctionsIfRequestParameter undocumented
+type WorkbookFunctionsIfRequestParameter struct {
+ // LogicalTest undocumented
+ LogicalTest json.RawMessage `json:"logicalTest,omitempty"`
+ // ValueIfTrue undocumented
+ ValueIfTrue json.RawMessage `json:"valueIfTrue,omitempty"`
+ // ValueIfFalse undocumented
+ ValueIfFalse json.RawMessage `json:"valueIfFalse,omitempty"`
+}
+
+// WorkbookFunctionsImAbsRequestParameter undocumented
+type WorkbookFunctionsImAbsRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImArgumentRequestParameter undocumented
+type WorkbookFunctionsImArgumentRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImConjugateRequestParameter undocumented
+type WorkbookFunctionsImConjugateRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImCosRequestParameter undocumented
+type WorkbookFunctionsImCosRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImCoshRequestParameter undocumented
+type WorkbookFunctionsImCoshRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImCotRequestParameter undocumented
+type WorkbookFunctionsImCotRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImCscRequestParameter undocumented
+type WorkbookFunctionsImCscRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImCschRequestParameter undocumented
+type WorkbookFunctionsImCschRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImDivRequestParameter undocumented
+type WorkbookFunctionsImDivRequestParameter struct {
+ // Inumber1 undocumented
+ Inumber1 json.RawMessage `json:"inumber1,omitempty"`
+ // Inumber2 undocumented
+ Inumber2 json.RawMessage `json:"inumber2,omitempty"`
+}
+
+// WorkbookFunctionsImExpRequestParameter undocumented
+type WorkbookFunctionsImExpRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImLnRequestParameter undocumented
+type WorkbookFunctionsImLnRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImLog10RequestParameter undocumented
+type WorkbookFunctionsImLog10RequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImLog2RequestParameter undocumented
+type WorkbookFunctionsImLog2RequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImPowerRequestParameter undocumented
+type WorkbookFunctionsImPowerRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsImProductRequestParameter undocumented
+type WorkbookFunctionsImProductRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsImRealRequestParameter undocumented
+type WorkbookFunctionsImRealRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImSecRequestParameter undocumented
+type WorkbookFunctionsImSecRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImSechRequestParameter undocumented
+type WorkbookFunctionsImSechRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImSinRequestParameter undocumented
+type WorkbookFunctionsImSinRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImSinhRequestParameter undocumented
+type WorkbookFunctionsImSinhRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImSqrtRequestParameter undocumented
+type WorkbookFunctionsImSqrtRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImSubRequestParameter undocumented
+type WorkbookFunctionsImSubRequestParameter struct {
+ // Inumber1 undocumented
+ Inumber1 json.RawMessage `json:"inumber1,omitempty"`
+ // Inumber2 undocumented
+ Inumber2 json.RawMessage `json:"inumber2,omitempty"`
+}
+
+// WorkbookFunctionsImSumRequestParameter undocumented
+type WorkbookFunctionsImSumRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsImTanRequestParameter undocumented
+type WorkbookFunctionsImTanRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsImaginaryRequestParameter undocumented
+type WorkbookFunctionsImaginaryRequestParameter struct {
+ // Inumber undocumented
+ Inumber json.RawMessage `json:"inumber,omitempty"`
+}
+
+// WorkbookFunctionsIntRequestParameter undocumented
+type WorkbookFunctionsIntRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsIntRateRequestParameter undocumented
+type WorkbookFunctionsIntRateRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Investment undocumented
+ Investment json.RawMessage `json:"investment,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsIpmtRequestParameter undocumented
+type WorkbookFunctionsIpmtRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Per undocumented
+ Per json.RawMessage `json:"per,omitempty"`
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // Fv undocumented
+ Fv json.RawMessage `json:"fv,omitempty"`
+ // Type undocumented
+ Type json.RawMessage `json:"type,omitempty"`
+}
+
+// WorkbookFunctionsIrrRequestParameter undocumented
+type WorkbookFunctionsIrrRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+ // Guess undocumented
+ Guess json.RawMessage `json:"guess,omitempty"`
+}
+
+// WorkbookFunctionsIsErrRequestParameter undocumented
+type WorkbookFunctionsIsErrRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsIsErrorRequestParameter undocumented
+type WorkbookFunctionsIsErrorRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsIsEvenRequestParameter undocumented
+type WorkbookFunctionsIsEvenRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsIsFormulaRequestParameter undocumented
+type WorkbookFunctionsIsFormulaRequestParameter struct {
+ // Reference undocumented
+ Reference json.RawMessage `json:"reference,omitempty"`
+}
+
+// WorkbookFunctionsIsLogicalRequestParameter undocumented
+type WorkbookFunctionsIsLogicalRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsIsNARequestParameter undocumented
+type WorkbookFunctionsIsNARequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsIsNonTextRequestParameter undocumented
+type WorkbookFunctionsIsNonTextRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsIsNumberRequestParameter undocumented
+type WorkbookFunctionsIsNumberRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsIsOddRequestParameter undocumented
+type WorkbookFunctionsIsOddRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsIsTextRequestParameter undocumented
+type WorkbookFunctionsIsTextRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsIsoWeekNumRequestParameter undocumented
+type WorkbookFunctionsIsoWeekNumRequestParameter struct {
+ // Date undocumented
+ Date json.RawMessage `json:"date,omitempty"`
+}
+
+// WorkbookFunctionsIspmtRequestParameter undocumented
+type WorkbookFunctionsIspmtRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Per undocumented
+ Per json.RawMessage `json:"per,omitempty"`
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+}
+
+// WorkbookFunctionsIsrefRequestParameter undocumented
+type WorkbookFunctionsIsrefRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsKurtRequestParameter undocumented
+type WorkbookFunctionsKurtRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsLargeRequestParameter undocumented
+type WorkbookFunctionsLargeRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // K undocumented
+ K json.RawMessage `json:"k,omitempty"`
+}
+
+// WorkbookFunctionsLcmRequestParameter undocumented
+type WorkbookFunctionsLcmRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsLeftRequestParameter undocumented
+type WorkbookFunctionsLeftRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // NumChars undocumented
+ NumChars json.RawMessage `json:"numChars,omitempty"`
+}
+
+// WorkbookFunctionsLeftbRequestParameter undocumented
+type WorkbookFunctionsLeftbRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // NumBytes undocumented
+ NumBytes json.RawMessage `json:"numBytes,omitempty"`
+}
+
+// WorkbookFunctionsLenRequestParameter undocumented
+type WorkbookFunctionsLenRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsLenbRequestParameter undocumented
+type WorkbookFunctionsLenbRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsLnRequestParameter undocumented
+type WorkbookFunctionsLnRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsLogRequestParameter undocumented
+type WorkbookFunctionsLogRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Base undocumented
+ Base json.RawMessage `json:"base,omitempty"`
+}
+
+// WorkbookFunctionsLog10RequestParameter undocumented
+type WorkbookFunctionsLog10RequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsLogNorm_DistRequestParameter undocumented
+type WorkbookFunctionsLogNorm_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Mean undocumented
+ Mean json.RawMessage `json:"mean,omitempty"`
+ // StandardDev undocumented
+ StandardDev json.RawMessage `json:"standardDev,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsLogNorm_InvRequestParameter undocumented
+type WorkbookFunctionsLogNorm_InvRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // Mean undocumented
+ Mean json.RawMessage `json:"mean,omitempty"`
+ // StandardDev undocumented
+ StandardDev json.RawMessage `json:"standardDev,omitempty"`
+}
+
+// WorkbookFunctionsLookupRequestParameter undocumented
+type WorkbookFunctionsLookupRequestParameter struct {
+ // LookupValue undocumented
+ LookupValue json.RawMessage `json:"lookupValue,omitempty"`
+ // LookupVector undocumented
+ LookupVector json.RawMessage `json:"lookupVector,omitempty"`
+ // ResultVector undocumented
+ ResultVector json.RawMessage `json:"resultVector,omitempty"`
+}
+
+// WorkbookFunctionsLowerRequestParameter undocumented
+type WorkbookFunctionsLowerRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsMdurationRequestParameter undocumented
+type WorkbookFunctionsMdurationRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Coupon undocumented
+ Coupon json.RawMessage `json:"coupon,omitempty"`
+ // Yld undocumented
+ Yld json.RawMessage `json:"yld,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsMirrRequestParameter undocumented
+type WorkbookFunctionsMirrRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+ // FinanceRate undocumented
+ FinanceRate json.RawMessage `json:"financeRate,omitempty"`
+ // ReinvestRate undocumented
+ ReinvestRate json.RawMessage `json:"reinvestRate,omitempty"`
+}
+
+// WorkbookFunctionsMroundRequestParameter undocumented
+type WorkbookFunctionsMroundRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Multiple undocumented
+ Multiple json.RawMessage `json:"multiple,omitempty"`
+}
+
+// WorkbookFunctionsMatchRequestParameter undocumented
+type WorkbookFunctionsMatchRequestParameter struct {
+ // LookupValue undocumented
+ LookupValue json.RawMessage `json:"lookupValue,omitempty"`
+ // LookupArray undocumented
+ LookupArray json.RawMessage `json:"lookupArray,omitempty"`
+ // MatchType undocumented
+ MatchType json.RawMessage `json:"matchType,omitempty"`
+}
+
+// WorkbookFunctionsMaxRequestParameter undocumented
+type WorkbookFunctionsMaxRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsMaxARequestParameter undocumented
+type WorkbookFunctionsMaxARequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsMedianRequestParameter undocumented
+type WorkbookFunctionsMedianRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsMidRequestParameter undocumented
+type WorkbookFunctionsMidRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // StartNum undocumented
+ StartNum json.RawMessage `json:"startNum,omitempty"`
+ // NumChars undocumented
+ NumChars json.RawMessage `json:"numChars,omitempty"`
+}
+
+// WorkbookFunctionsMidbRequestParameter undocumented
+type WorkbookFunctionsMidbRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // StartNum undocumented
+ StartNum json.RawMessage `json:"startNum,omitempty"`
+ // NumBytes undocumented
+ NumBytes json.RawMessage `json:"numBytes,omitempty"`
+}
+
+// WorkbookFunctionsMinRequestParameter undocumented
+type WorkbookFunctionsMinRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsMinARequestParameter undocumented
+type WorkbookFunctionsMinARequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsMinuteRequestParameter undocumented
+type WorkbookFunctionsMinuteRequestParameter struct {
+ // SerialNumber undocumented
+ SerialNumber json.RawMessage `json:"serialNumber,omitempty"`
+}
+
+// WorkbookFunctionsModRequestParameter undocumented
+type WorkbookFunctionsModRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Divisor undocumented
+ Divisor json.RawMessage `json:"divisor,omitempty"`
+}
+
+// WorkbookFunctionsMonthRequestParameter undocumented
+type WorkbookFunctionsMonthRequestParameter struct {
+ // SerialNumber undocumented
+ SerialNumber json.RawMessage `json:"serialNumber,omitempty"`
+}
+
+// WorkbookFunctionsMultiNomialRequestParameter undocumented
+type WorkbookFunctionsMultiNomialRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsNRequestParameter undocumented
+type WorkbookFunctionsNRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsNperRequestParameter undocumented
+type WorkbookFunctionsNperRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Pmt undocumented
+ Pmt json.RawMessage `json:"pmt,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // Fv undocumented
+ Fv json.RawMessage `json:"fv,omitempty"`
+ // Type undocumented
+ Type json.RawMessage `json:"type,omitempty"`
+}
+
+// WorkbookFunctionsNaRequestParameter undocumented
+type WorkbookFunctionsNaRequestParameter struct {
+}
+
+// WorkbookFunctionsNegBinom_DistRequestParameter undocumented
+type WorkbookFunctionsNegBinom_DistRequestParameter struct {
+ // NumberF undocumented
+ NumberF json.RawMessage `json:"numberF,omitempty"`
+ // NumberS undocumented
+ NumberS json.RawMessage `json:"numberS,omitempty"`
+ // ProbabilityS undocumented
+ ProbabilityS json.RawMessage `json:"probabilityS,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsNetworkDaysRequestParameter undocumented
+type WorkbookFunctionsNetworkDaysRequestParameter struct {
+ // StartDate undocumented
+ StartDate json.RawMessage `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate json.RawMessage `json:"endDate,omitempty"`
+ // Holidays undocumented
+ Holidays json.RawMessage `json:"holidays,omitempty"`
+}
+
+// WorkbookFunctionsNetworkDays_IntlRequestParameter undocumented
+type WorkbookFunctionsNetworkDays_IntlRequestParameter struct {
+ // StartDate undocumented
+ StartDate json.RawMessage `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate json.RawMessage `json:"endDate,omitempty"`
+ // Weekend undocumented
+ Weekend json.RawMessage `json:"weekend,omitempty"`
+ // Holidays undocumented
+ Holidays json.RawMessage `json:"holidays,omitempty"`
+}
+
+// WorkbookFunctionsNominalRequestParameter undocumented
+type WorkbookFunctionsNominalRequestParameter struct {
+ // EffectRate undocumented
+ EffectRate json.RawMessage `json:"effectRate,omitempty"`
+ // Npery undocumented
+ Npery json.RawMessage `json:"npery,omitempty"`
+}
+
+// WorkbookFunctionsNorm_DistRequestParameter undocumented
+type WorkbookFunctionsNorm_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Mean undocumented
+ Mean json.RawMessage `json:"mean,omitempty"`
+ // StandardDev undocumented
+ StandardDev json.RawMessage `json:"standardDev,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsNorm_InvRequestParameter undocumented
+type WorkbookFunctionsNorm_InvRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // Mean undocumented
+ Mean json.RawMessage `json:"mean,omitempty"`
+ // StandardDev undocumented
+ StandardDev json.RawMessage `json:"standardDev,omitempty"`
+}
+
+// WorkbookFunctionsNorm_S_DistRequestParameter undocumented
+type WorkbookFunctionsNorm_S_DistRequestParameter struct {
+ // Z undocumented
+ Z json.RawMessage `json:"z,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsNorm_S_InvRequestParameter undocumented
+type WorkbookFunctionsNorm_S_InvRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+}
+
+// WorkbookFunctionsNotRequestParameter undocumented
+type WorkbookFunctionsNotRequestParameter struct {
+ // Logical undocumented
+ Logical json.RawMessage `json:"logical,omitempty"`
+}
+
+// WorkbookFunctionsNowRequestParameter undocumented
+type WorkbookFunctionsNowRequestParameter struct {
+}
+
+// WorkbookFunctionsNpvRequestParameter undocumented
+type WorkbookFunctionsNpvRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsNumberValueRequestParameter undocumented
+type WorkbookFunctionsNumberValueRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // DecimalSeparator undocumented
+ DecimalSeparator json.RawMessage `json:"decimalSeparator,omitempty"`
+ // GroupSeparator undocumented
+ GroupSeparator json.RawMessage `json:"groupSeparator,omitempty"`
+}
+
+// WorkbookFunctionsOct2BinRequestParameter undocumented
+type WorkbookFunctionsOct2BinRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Places undocumented
+ Places json.RawMessage `json:"places,omitempty"`
+}
+
+// WorkbookFunctionsOct2DecRequestParameter undocumented
+type WorkbookFunctionsOct2DecRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsOct2HexRequestParameter undocumented
+type WorkbookFunctionsOct2HexRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Places undocumented
+ Places json.RawMessage `json:"places,omitempty"`
+}
+
+// WorkbookFunctionsOddRequestParameter undocumented
+type WorkbookFunctionsOddRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsOddFPriceRequestParameter undocumented
+type WorkbookFunctionsOddFPriceRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Issue undocumented
+ Issue json.RawMessage `json:"issue,omitempty"`
+ // FirstCoupon undocumented
+ FirstCoupon json.RawMessage `json:"firstCoupon,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Yld undocumented
+ Yld json.RawMessage `json:"yld,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsOddFYieldRequestParameter undocumented
+type WorkbookFunctionsOddFYieldRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Issue undocumented
+ Issue json.RawMessage `json:"issue,omitempty"`
+ // FirstCoupon undocumented
+ FirstCoupon json.RawMessage `json:"firstCoupon,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Pr undocumented
+ Pr json.RawMessage `json:"pr,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsOddLPriceRequestParameter undocumented
+type WorkbookFunctionsOddLPriceRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // LastInterest undocumented
+ LastInterest json.RawMessage `json:"lastInterest,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Yld undocumented
+ Yld json.RawMessage `json:"yld,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsOddLYieldRequestParameter undocumented
+type WorkbookFunctionsOddLYieldRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // LastInterest undocumented
+ LastInterest json.RawMessage `json:"lastInterest,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Pr undocumented
+ Pr json.RawMessage `json:"pr,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsOrRequestParameter undocumented
+type WorkbookFunctionsOrRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsPdurationRequestParameter undocumented
+type WorkbookFunctionsPdurationRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // Fv undocumented
+ Fv json.RawMessage `json:"fv,omitempty"`
+}
+
+// WorkbookFunctionsPercentRank_ExcRequestParameter undocumented
+type WorkbookFunctionsPercentRank_ExcRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Significance undocumented
+ Significance json.RawMessage `json:"significance,omitempty"`
+}
+
+// WorkbookFunctionsPercentRank_IncRequestParameter undocumented
+type WorkbookFunctionsPercentRank_IncRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Significance undocumented
+ Significance json.RawMessage `json:"significance,omitempty"`
+}
+
+// WorkbookFunctionsPercentile_ExcRequestParameter undocumented
+type WorkbookFunctionsPercentile_ExcRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // K undocumented
+ K json.RawMessage `json:"k,omitempty"`
+}
+
+// WorkbookFunctionsPercentile_IncRequestParameter undocumented
+type WorkbookFunctionsPercentile_IncRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // K undocumented
+ K json.RawMessage `json:"k,omitempty"`
+}
+
+// WorkbookFunctionsPermutRequestParameter undocumented
+type WorkbookFunctionsPermutRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // NumberChosen undocumented
+ NumberChosen json.RawMessage `json:"numberChosen,omitempty"`
+}
+
+// WorkbookFunctionsPermutationaRequestParameter undocumented
+type WorkbookFunctionsPermutationaRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // NumberChosen undocumented
+ NumberChosen json.RawMessage `json:"numberChosen,omitempty"`
+}
+
+// WorkbookFunctionsPhiRequestParameter undocumented
+type WorkbookFunctionsPhiRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+}
+
+// WorkbookFunctionsPiRequestParameter undocumented
+type WorkbookFunctionsPiRequestParameter struct {
+}
+
+// WorkbookFunctionsPmtRequestParameter undocumented
+type WorkbookFunctionsPmtRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // Fv undocumented
+ Fv json.RawMessage `json:"fv,omitempty"`
+ // Type undocumented
+ Type json.RawMessage `json:"type,omitempty"`
+}
+
+// WorkbookFunctionsPoisson_DistRequestParameter undocumented
+type WorkbookFunctionsPoisson_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Mean undocumented
+ Mean json.RawMessage `json:"mean,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsPowerRequestParameter undocumented
+type WorkbookFunctionsPowerRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Power undocumented
+ Power json.RawMessage `json:"power,omitempty"`
+}
+
+// WorkbookFunctionsPpmtRequestParameter undocumented
+type WorkbookFunctionsPpmtRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Per undocumented
+ Per json.RawMessage `json:"per,omitempty"`
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // Fv undocumented
+ Fv json.RawMessage `json:"fv,omitempty"`
+ // Type undocumented
+ Type json.RawMessage `json:"type,omitempty"`
+}
+
+// WorkbookFunctionsPriceRequestParameter undocumented
+type WorkbookFunctionsPriceRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Yld undocumented
+ Yld json.RawMessage `json:"yld,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsPriceDiscRequestParameter undocumented
+type WorkbookFunctionsPriceDiscRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Discount undocumented
+ Discount json.RawMessage `json:"discount,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsPriceMatRequestParameter undocumented
+type WorkbookFunctionsPriceMatRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Issue undocumented
+ Issue json.RawMessage `json:"issue,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Yld undocumented
+ Yld json.RawMessage `json:"yld,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsProductRequestParameter undocumented
+type WorkbookFunctionsProductRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsProperRequestParameter undocumented
+type WorkbookFunctionsProperRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsPvRequestParameter undocumented
+type WorkbookFunctionsPvRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pmt undocumented
+ Pmt json.RawMessage `json:"pmt,omitempty"`
+ // Fv undocumented
+ Fv json.RawMessage `json:"fv,omitempty"`
+ // Type undocumented
+ Type json.RawMessage `json:"type,omitempty"`
+}
+
+// WorkbookFunctionsQuartile_ExcRequestParameter undocumented
+type WorkbookFunctionsQuartile_ExcRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // Quart undocumented
+ Quart json.RawMessage `json:"quart,omitempty"`
+}
+
+// WorkbookFunctionsQuartile_IncRequestParameter undocumented
+type WorkbookFunctionsQuartile_IncRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // Quart undocumented
+ Quart json.RawMessage `json:"quart,omitempty"`
+}
+
+// WorkbookFunctionsQuotientRequestParameter undocumented
+type WorkbookFunctionsQuotientRequestParameter struct {
+ // Numerator undocumented
+ Numerator json.RawMessage `json:"numerator,omitempty"`
+ // Denominator undocumented
+ Denominator json.RawMessage `json:"denominator,omitempty"`
+}
+
+// WorkbookFunctionsRadiansRequestParameter undocumented
+type WorkbookFunctionsRadiansRequestParameter struct {
+ // Angle undocumented
+ Angle json.RawMessage `json:"angle,omitempty"`
+}
+
+// WorkbookFunctionsRandRequestParameter undocumented
+type WorkbookFunctionsRandRequestParameter struct {
+}
+
+// WorkbookFunctionsRandBetweenRequestParameter undocumented
+type WorkbookFunctionsRandBetweenRequestParameter struct {
+ // Bottom undocumented
+ Bottom json.RawMessage `json:"bottom,omitempty"`
+ // Top undocumented
+ Top json.RawMessage `json:"top,omitempty"`
+}
+
+// WorkbookFunctionsRank_AvgRequestParameter undocumented
+type WorkbookFunctionsRank_AvgRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Ref undocumented
+ Ref json.RawMessage `json:"ref,omitempty"`
+ // Order undocumented
+ Order json.RawMessage `json:"order,omitempty"`
+}
+
+// WorkbookFunctionsRank_EqRequestParameter undocumented
+type WorkbookFunctionsRank_EqRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Ref undocumented
+ Ref json.RawMessage `json:"ref,omitempty"`
+ // Order undocumented
+ Order json.RawMessage `json:"order,omitempty"`
+}
+
+// WorkbookFunctionsRateRequestParameter undocumented
+type WorkbookFunctionsRateRequestParameter struct {
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pmt undocumented
+ Pmt json.RawMessage `json:"pmt,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // Fv undocumented
+ Fv json.RawMessage `json:"fv,omitempty"`
+ // Type undocumented
+ Type json.RawMessage `json:"type,omitempty"`
+ // Guess undocumented
+ Guess json.RawMessage `json:"guess,omitempty"`
+}
+
+// WorkbookFunctionsReceivedRequestParameter undocumented
+type WorkbookFunctionsReceivedRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Investment undocumented
+ Investment json.RawMessage `json:"investment,omitempty"`
+ // Discount undocumented
+ Discount json.RawMessage `json:"discount,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsReplaceRequestParameter undocumented
+type WorkbookFunctionsReplaceRequestParameter struct {
+ // OldText undocumented
+ OldText json.RawMessage `json:"oldText,omitempty"`
+ // StartNum undocumented
+ StartNum json.RawMessage `json:"startNum,omitempty"`
+ // NumChars undocumented
+ NumChars json.RawMessage `json:"numChars,omitempty"`
+ // NewText undocumented
+ NewText json.RawMessage `json:"newText,omitempty"`
+}
+
+// WorkbookFunctionsReplaceBRequestParameter undocumented
+type WorkbookFunctionsReplaceBRequestParameter struct {
+ // OldText undocumented
+ OldText json.RawMessage `json:"oldText,omitempty"`
+ // StartNum undocumented
+ StartNum json.RawMessage `json:"startNum,omitempty"`
+ // NumBytes undocumented
+ NumBytes json.RawMessage `json:"numBytes,omitempty"`
+ // NewText undocumented
+ NewText json.RawMessage `json:"newText,omitempty"`
+}
+
+// WorkbookFunctionsReptRequestParameter undocumented
+type WorkbookFunctionsReptRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // NumberTimes undocumented
+ NumberTimes json.RawMessage `json:"numberTimes,omitempty"`
+}
+
+// WorkbookFunctionsRightRequestParameter undocumented
+type WorkbookFunctionsRightRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // NumChars undocumented
+ NumChars json.RawMessage `json:"numChars,omitempty"`
+}
+
+// WorkbookFunctionsRightbRequestParameter undocumented
+type WorkbookFunctionsRightbRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // NumBytes undocumented
+ NumBytes json.RawMessage `json:"numBytes,omitempty"`
+}
+
+// WorkbookFunctionsRomanRequestParameter undocumented
+type WorkbookFunctionsRomanRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Form undocumented
+ Form json.RawMessage `json:"form,omitempty"`
+}
+
+// WorkbookFunctionsRoundRequestParameter undocumented
+type WorkbookFunctionsRoundRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // NumDigits undocumented
+ NumDigits json.RawMessage `json:"numDigits,omitempty"`
+}
+
+// WorkbookFunctionsRoundDownRequestParameter undocumented
+type WorkbookFunctionsRoundDownRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // NumDigits undocumented
+ NumDigits json.RawMessage `json:"numDigits,omitempty"`
+}
+
+// WorkbookFunctionsRoundUpRequestParameter undocumented
+type WorkbookFunctionsRoundUpRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // NumDigits undocumented
+ NumDigits json.RawMessage `json:"numDigits,omitempty"`
+}
+
+// WorkbookFunctionsRowsRequestParameter undocumented
+type WorkbookFunctionsRowsRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+}
+
+// WorkbookFunctionsRriRequestParameter undocumented
+type WorkbookFunctionsRriRequestParameter struct {
+ // Nper undocumented
+ Nper json.RawMessage `json:"nper,omitempty"`
+ // Pv undocumented
+ Pv json.RawMessage `json:"pv,omitempty"`
+ // Fv undocumented
+ Fv json.RawMessage `json:"fv,omitempty"`
+}
+
+// WorkbookFunctionsSecRequestParameter undocumented
+type WorkbookFunctionsSecRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsSechRequestParameter undocumented
+type WorkbookFunctionsSechRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsSecondRequestParameter undocumented
+type WorkbookFunctionsSecondRequestParameter struct {
+ // SerialNumber undocumented
+ SerialNumber json.RawMessage `json:"serialNumber,omitempty"`
+}
+
+// WorkbookFunctionsSeriesSumRequestParameter undocumented
+type WorkbookFunctionsSeriesSumRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // N undocumented
+ N json.RawMessage `json:"n,omitempty"`
+ // M undocumented
+ M json.RawMessage `json:"m,omitempty"`
+ // Coefficients undocumented
+ Coefficients json.RawMessage `json:"coefficients,omitempty"`
+}
+
+// WorkbookFunctionsSheetRequestParameter undocumented
+type WorkbookFunctionsSheetRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsSheetsRequestParameter undocumented
+type WorkbookFunctionsSheetsRequestParameter struct {
+ // Reference undocumented
+ Reference json.RawMessage `json:"reference,omitempty"`
+}
+
+// WorkbookFunctionsSignRequestParameter undocumented
+type WorkbookFunctionsSignRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsSinRequestParameter undocumented
+type WorkbookFunctionsSinRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsSinhRequestParameter undocumented
+type WorkbookFunctionsSinhRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsSkewRequestParameter undocumented
+type WorkbookFunctionsSkewRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsSkew_pRequestParameter undocumented
+type WorkbookFunctionsSkew_pRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsSlnRequestParameter undocumented
+type WorkbookFunctionsSlnRequestParameter struct {
+ // Cost undocumented
+ Cost json.RawMessage `json:"cost,omitempty"`
+ // Salvage undocumented
+ Salvage json.RawMessage `json:"salvage,omitempty"`
+ // Life undocumented
+ Life json.RawMessage `json:"life,omitempty"`
+}
+
+// WorkbookFunctionsSmallRequestParameter undocumented
+type WorkbookFunctionsSmallRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // K undocumented
+ K json.RawMessage `json:"k,omitempty"`
+}
+
+// WorkbookFunctionsSqrtRequestParameter undocumented
+type WorkbookFunctionsSqrtRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsSqrtPiRequestParameter undocumented
+type WorkbookFunctionsSqrtPiRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsStDevARequestParameter undocumented
+type WorkbookFunctionsStDevARequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsStDevPARequestParameter undocumented
+type WorkbookFunctionsStDevPARequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsStDev_PRequestParameter undocumented
+type WorkbookFunctionsStDev_PRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsStDev_SRequestParameter undocumented
+type WorkbookFunctionsStDev_SRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsStandardizeRequestParameter undocumented
+type WorkbookFunctionsStandardizeRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Mean undocumented
+ Mean json.RawMessage `json:"mean,omitempty"`
+ // StandardDev undocumented
+ StandardDev json.RawMessage `json:"standardDev,omitempty"`
+}
+
+// WorkbookFunctionsSubstituteRequestParameter undocumented
+type WorkbookFunctionsSubstituteRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // OldText undocumented
+ OldText json.RawMessage `json:"oldText,omitempty"`
+ // NewText undocumented
+ NewText json.RawMessage `json:"newText,omitempty"`
+ // InstanceNum undocumented
+ InstanceNum json.RawMessage `json:"instanceNum,omitempty"`
+}
+
+// WorkbookFunctionsSubtotalRequestParameter undocumented
+type WorkbookFunctionsSubtotalRequestParameter struct {
+ // FunctionNum undocumented
+ FunctionNum json.RawMessage `json:"functionNum,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsSumRequestParameter undocumented
+type WorkbookFunctionsSumRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsSumIfRequestParameter undocumented
+type WorkbookFunctionsSumIfRequestParameter struct {
+ // Range undocumented
+ Range json.RawMessage `json:"range,omitempty"`
+ // Criteria undocumented
+ Criteria json.RawMessage `json:"criteria,omitempty"`
+ // SumRange undocumented
+ SumRange json.RawMessage `json:"sumRange,omitempty"`
+}
+
+// WorkbookFunctionsSumIfsRequestParameter undocumented
+type WorkbookFunctionsSumIfsRequestParameter struct {
+ // SumRange undocumented
+ SumRange json.RawMessage `json:"sumRange,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsSumSqRequestParameter undocumented
+type WorkbookFunctionsSumSqRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsSydRequestParameter undocumented
+type WorkbookFunctionsSydRequestParameter struct {
+ // Cost undocumented
+ Cost json.RawMessage `json:"cost,omitempty"`
+ // Salvage undocumented
+ Salvage json.RawMessage `json:"salvage,omitempty"`
+ // Life undocumented
+ Life json.RawMessage `json:"life,omitempty"`
+ // Per undocumented
+ Per json.RawMessage `json:"per,omitempty"`
+}
+
+// WorkbookFunctionsTRequestParameter undocumented
+type WorkbookFunctionsTRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsTbillEqRequestParameter undocumented
+type WorkbookFunctionsTbillEqRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Discount undocumented
+ Discount json.RawMessage `json:"discount,omitempty"`
+}
+
+// WorkbookFunctionsTbillPriceRequestParameter undocumented
+type WorkbookFunctionsTbillPriceRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Discount undocumented
+ Discount json.RawMessage `json:"discount,omitempty"`
+}
+
+// WorkbookFunctionsTbillYieldRequestParameter undocumented
+type WorkbookFunctionsTbillYieldRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Pr undocumented
+ Pr json.RawMessage `json:"pr,omitempty"`
+}
+
+// WorkbookFunctionsT_DistRequestParameter undocumented
+type WorkbookFunctionsT_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // DegFreedom undocumented
+ DegFreedom json.RawMessage `json:"degFreedom,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsT_Dist_2TRequestParameter undocumented
+type WorkbookFunctionsT_Dist_2TRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // DegFreedom undocumented
+ DegFreedom json.RawMessage `json:"degFreedom,omitempty"`
+}
+
+// WorkbookFunctionsT_Dist_RTRequestParameter undocumented
+type WorkbookFunctionsT_Dist_RTRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // DegFreedom undocumented
+ DegFreedom json.RawMessage `json:"degFreedom,omitempty"`
+}
+
+// WorkbookFunctionsT_InvRequestParameter undocumented
+type WorkbookFunctionsT_InvRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // DegFreedom undocumented
+ DegFreedom json.RawMessage `json:"degFreedom,omitempty"`
+}
+
+// WorkbookFunctionsT_Inv_2TRequestParameter undocumented
+type WorkbookFunctionsT_Inv_2TRequestParameter struct {
+ // Probability undocumented
+ Probability json.RawMessage `json:"probability,omitempty"`
+ // DegFreedom undocumented
+ DegFreedom json.RawMessage `json:"degFreedom,omitempty"`
+}
+
+// WorkbookFunctionsTanRequestParameter undocumented
+type WorkbookFunctionsTanRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsTanhRequestParameter undocumented
+type WorkbookFunctionsTanhRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsTextRequestParameter undocumented
+type WorkbookFunctionsTextRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+ // FormatText undocumented
+ FormatText json.RawMessage `json:"formatText,omitempty"`
+}
+
+// WorkbookFunctionsTimeRequestParameter undocumented
+type WorkbookFunctionsTimeRequestParameter struct {
+ // Hour undocumented
+ Hour json.RawMessage `json:"hour,omitempty"`
+ // Minute undocumented
+ Minute json.RawMessage `json:"minute,omitempty"`
+ // Second undocumented
+ Second json.RawMessage `json:"second,omitempty"`
+}
+
+// WorkbookFunctionsTimevalueRequestParameter undocumented
+type WorkbookFunctionsTimevalueRequestParameter struct {
+ // TimeText undocumented
+ TimeText json.RawMessage `json:"timeText,omitempty"`
+}
+
+// WorkbookFunctionsTodayRequestParameter undocumented
+type WorkbookFunctionsTodayRequestParameter struct {
+}
+
+// WorkbookFunctionsTrimRequestParameter undocumented
+type WorkbookFunctionsTrimRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsTrimMeanRequestParameter undocumented
+type WorkbookFunctionsTrimMeanRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // Percent undocumented
+ Percent json.RawMessage `json:"percent,omitempty"`
+}
+
+// WorkbookFunctionsTrueRequestParameter undocumented
+type WorkbookFunctionsTrueRequestParameter struct {
+}
+
+// WorkbookFunctionsTruncRequestParameter undocumented
+type WorkbookFunctionsTruncRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // NumDigits undocumented
+ NumDigits json.RawMessage `json:"numDigits,omitempty"`
+}
+
+// WorkbookFunctionsTypeRequestParameter undocumented
+type WorkbookFunctionsTypeRequestParameter struct {
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctionsUsdollarRequestParameter undocumented
+type WorkbookFunctionsUsdollarRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+ // Decimals undocumented
+ Decimals json.RawMessage `json:"decimals,omitempty"`
+}
+
+// WorkbookFunctionsUnicharRequestParameter undocumented
+type WorkbookFunctionsUnicharRequestParameter struct {
+ // Number undocumented
+ Number json.RawMessage `json:"number,omitempty"`
+}
+
+// WorkbookFunctionsUnicodeRequestParameter undocumented
+type WorkbookFunctionsUnicodeRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsUpperRequestParameter undocumented
+type WorkbookFunctionsUpperRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsVlookupRequestParameter undocumented
+type WorkbookFunctionsVlookupRequestParameter struct {
+ // LookupValue undocumented
+ LookupValue json.RawMessage `json:"lookupValue,omitempty"`
+ // TableArray undocumented
+ TableArray json.RawMessage `json:"tableArray,omitempty"`
+ // ColIndexNum undocumented
+ ColIndexNum json.RawMessage `json:"colIndexNum,omitempty"`
+ // RangeLookup undocumented
+ RangeLookup json.RawMessage `json:"rangeLookup,omitempty"`
+}
+
+// WorkbookFunctionsValueRequestParameter undocumented
+type WorkbookFunctionsValueRequestParameter struct {
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+}
+
+// WorkbookFunctionsVarARequestParameter undocumented
+type WorkbookFunctionsVarARequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsVarPARequestParameter undocumented
+type WorkbookFunctionsVarPARequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsVar_PRequestParameter undocumented
+type WorkbookFunctionsVar_PRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsVar_SRequestParameter undocumented
+type WorkbookFunctionsVar_SRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsVdbRequestParameter undocumented
+type WorkbookFunctionsVdbRequestParameter struct {
+ // Cost undocumented
+ Cost json.RawMessage `json:"cost,omitempty"`
+ // Salvage undocumented
+ Salvage json.RawMessage `json:"salvage,omitempty"`
+ // Life undocumented
+ Life json.RawMessage `json:"life,omitempty"`
+ // StartPeriod undocumented
+ StartPeriod json.RawMessage `json:"startPeriod,omitempty"`
+ // EndPeriod undocumented
+ EndPeriod json.RawMessage `json:"endPeriod,omitempty"`
+ // Factor undocumented
+ Factor json.RawMessage `json:"factor,omitempty"`
+ // NoSwitch undocumented
+ NoSwitch json.RawMessage `json:"noSwitch,omitempty"`
+}
+
+// WorkbookFunctionsWeekNumRequestParameter undocumented
+type WorkbookFunctionsWeekNumRequestParameter struct {
+ // SerialNumber undocumented
+ SerialNumber json.RawMessage `json:"serialNumber,omitempty"`
+ // ReturnType undocumented
+ ReturnType json.RawMessage `json:"returnType,omitempty"`
+}
+
+// WorkbookFunctionsWeekdayRequestParameter undocumented
+type WorkbookFunctionsWeekdayRequestParameter struct {
+ // SerialNumber undocumented
+ SerialNumber json.RawMessage `json:"serialNumber,omitempty"`
+ // ReturnType undocumented
+ ReturnType json.RawMessage `json:"returnType,omitempty"`
+}
+
+// WorkbookFunctionsWeibull_DistRequestParameter undocumented
+type WorkbookFunctionsWeibull_DistRequestParameter struct {
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Alpha undocumented
+ Alpha json.RawMessage `json:"alpha,omitempty"`
+ // Beta undocumented
+ Beta json.RawMessage `json:"beta,omitempty"`
+ // Cumulative undocumented
+ Cumulative json.RawMessage `json:"cumulative,omitempty"`
+}
+
+// WorkbookFunctionsWorkDayRequestParameter undocumented
+type WorkbookFunctionsWorkDayRequestParameter struct {
+ // StartDate undocumented
+ StartDate json.RawMessage `json:"startDate,omitempty"`
+ // Days undocumented
+ Days json.RawMessage `json:"days,omitempty"`
+ // Holidays undocumented
+ Holidays json.RawMessage `json:"holidays,omitempty"`
+}
+
+// WorkbookFunctionsWorkDay_IntlRequestParameter undocumented
+type WorkbookFunctionsWorkDay_IntlRequestParameter struct {
+ // StartDate undocumented
+ StartDate json.RawMessage `json:"startDate,omitempty"`
+ // Days undocumented
+ Days json.RawMessage `json:"days,omitempty"`
+ // Weekend undocumented
+ Weekend json.RawMessage `json:"weekend,omitempty"`
+ // Holidays undocumented
+ Holidays json.RawMessage `json:"holidays,omitempty"`
+}
+
+// WorkbookFunctionsXirrRequestParameter undocumented
+type WorkbookFunctionsXirrRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+ // Dates undocumented
+ Dates json.RawMessage `json:"dates,omitempty"`
+ // Guess undocumented
+ Guess json.RawMessage `json:"guess,omitempty"`
+}
+
+// WorkbookFunctionsXnpvRequestParameter undocumented
+type WorkbookFunctionsXnpvRequestParameter struct {
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+ // Dates undocumented
+ Dates json.RawMessage `json:"dates,omitempty"`
+}
+
+// WorkbookFunctionsXorRequestParameter undocumented
+type WorkbookFunctionsXorRequestParameter struct {
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFunctionsYearRequestParameter undocumented
+type WorkbookFunctionsYearRequestParameter struct {
+ // SerialNumber undocumented
+ SerialNumber json.RawMessage `json:"serialNumber,omitempty"`
+}
+
+// WorkbookFunctionsYearFracRequestParameter undocumented
+type WorkbookFunctionsYearFracRequestParameter struct {
+ // StartDate undocumented
+ StartDate json.RawMessage `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate json.RawMessage `json:"endDate,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsYieldRequestParameter undocumented
+type WorkbookFunctionsYieldRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Pr undocumented
+ Pr json.RawMessage `json:"pr,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Frequency undocumented
+ Frequency json.RawMessage `json:"frequency,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsYieldDiscRequestParameter undocumented
+type WorkbookFunctionsYieldDiscRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Pr undocumented
+ Pr json.RawMessage `json:"pr,omitempty"`
+ // Redemption undocumented
+ Redemption json.RawMessage `json:"redemption,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsYieldMatRequestParameter undocumented
+type WorkbookFunctionsYieldMatRequestParameter struct {
+ // Settlement undocumented
+ Settlement json.RawMessage `json:"settlement,omitempty"`
+ // Maturity undocumented
+ Maturity json.RawMessage `json:"maturity,omitempty"`
+ // Issue undocumented
+ Issue json.RawMessage `json:"issue,omitempty"`
+ // Rate undocumented
+ Rate json.RawMessage `json:"rate,omitempty"`
+ // Pr undocumented
+ Pr json.RawMessage `json:"pr,omitempty"`
+ // Basis undocumented
+ Basis json.RawMessage `json:"basis,omitempty"`
+}
+
+// WorkbookFunctionsZ_TestRequestParameter undocumented
+type WorkbookFunctionsZ_TestRequestParameter struct {
+ // Array undocumented
+ Array json.RawMessage `json:"array,omitempty"`
+ // X undocumented
+ X json.RawMessage `json:"x,omitempty"`
+ // Sigma undocumented
+ Sigma json.RawMessage `json:"sigma,omitempty"`
+}
+
+// WorkbookPivotTableRefreshRequestParameter undocumented
+type WorkbookPivotTableRefreshRequestParameter struct {
+}
+
+// WorkbookRangeClearRequestParameter undocumented
+type WorkbookRangeClearRequestParameter struct {
+ // ApplyTo undocumented
+ ApplyTo *string `json:"applyTo,omitempty"`
+}
+
+// WorkbookRangeDeleteRequestParameter undocumented
+type WorkbookRangeDeleteRequestParameter struct {
+ // Shift undocumented
+ Shift *string `json:"shift,omitempty"`
+}
+
+// WorkbookRangeInsertRequestParameter undocumented
+type WorkbookRangeInsertRequestParameter struct {
+ // Shift undocumented
+ Shift *string `json:"shift,omitempty"`
+}
+
+// WorkbookRangeMergeRequestParameter undocumented
+type WorkbookRangeMergeRequestParameter struct {
+ // Across undocumented
+ Across *bool `json:"across,omitempty"`
+}
+
+// WorkbookRangeUnmergeRequestParameter undocumented
+type WorkbookRangeUnmergeRequestParameter struct {
+}
+
+// WorkbookRangeFillClearRequestParameter undocumented
+type WorkbookRangeFillClearRequestParameter struct {
+}
+
+// WorkbookRangeFormatAutofitColumnsRequestParameter undocumented
+type WorkbookRangeFormatAutofitColumnsRequestParameter struct {
+}
+
+// WorkbookRangeFormatAutofitRowsRequestParameter undocumented
+type WorkbookRangeFormatAutofitRowsRequestParameter struct {
+}
+
+// WorkbookRangeSortApplyRequestParameter undocumented
+type WorkbookRangeSortApplyRequestParameter struct {
+ // Fields undocumented
+ Fields []WorkbookSortField `json:"fields,omitempty"`
+ // MatchCase undocumented
+ MatchCase *bool `json:"matchCase,omitempty"`
+ // HasHeaders undocumented
+ HasHeaders *bool `json:"hasHeaders,omitempty"`
+ // Orientation undocumented
+ Orientation *string `json:"orientation,omitempty"`
+ // Method undocumented
+ Method *string `json:"method,omitempty"`
+}
+
+// WorkbookTableClearFiltersRequestParameter undocumented
+type WorkbookTableClearFiltersRequestParameter struct {
+}
+
+// WorkbookTableConvertToRangeRequestParameter undocumented
+type WorkbookTableConvertToRangeRequestParameter struct {
+}
+
+// WorkbookTableReapplyFiltersRequestParameter undocumented
+type WorkbookTableReapplyFiltersRequestParameter struct {
+}
+
+// WorkbookTableSortApplyRequestParameter undocumented
+type WorkbookTableSortApplyRequestParameter struct {
+ // Fields undocumented
+ Fields []WorkbookSortField `json:"fields,omitempty"`
+ // MatchCase undocumented
+ MatchCase *bool `json:"matchCase,omitempty"`
+ // Method undocumented
+ Method *string `json:"method,omitempty"`
+}
+
+// WorkbookTableSortClearRequestParameter undocumented
+type WorkbookTableSortClearRequestParameter struct {
+}
+
+// WorkbookTableSortReapplyRequestParameter undocumented
+type WorkbookTableSortReapplyRequestParameter struct {
+}
+
+// WorkbookWorksheetProtectionProtectRequestParameter undocumented
+type WorkbookWorksheetProtectionProtectRequestParameter struct {
+ // Options undocumented
+ Options *WorkbookWorksheetProtectionOptions `json:"options,omitempty"`
+}
+
+// WorkbookWorksheetProtectionUnprotectRequestParameter undocumented
+type WorkbookWorksheetProtectionUnprotectRequestParameter struct {
+}
+
+// Application is navigation property
+func (b *WorkbookRequestBuilder) Application() *WorkbookApplicationRequestBuilder {
+ bb := &WorkbookApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/application"
+ return bb
+}
+
+// Comments returns request builder for WorkbookComment collection
+func (b *WorkbookRequestBuilder) Comments() *WorkbookCommentsCollectionRequestBuilder {
+ bb := &WorkbookCommentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/comments"
+ return bb
+}
+
+// WorkbookCommentsCollectionRequestBuilder is request builder for WorkbookComment collection
+type WorkbookCommentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookComment collection
+func (b *WorkbookCommentsCollectionRequestBuilder) Request() *WorkbookCommentsCollectionRequest {
+ return &WorkbookCommentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookComment item
+func (b *WorkbookCommentsCollectionRequestBuilder) ID(id string) *WorkbookCommentRequestBuilder {
+ bb := &WorkbookCommentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookCommentsCollectionRequest is request for WorkbookComment collection
+type WorkbookCommentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookComment collection
+func (r *WorkbookCommentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookComment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookComment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookComment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookComment collection, max N pages
+func (r *WorkbookCommentsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookComment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookComment collection
+func (r *WorkbookCommentsCollectionRequest) Get(ctx context.Context) ([]WorkbookComment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookComment collection
+func (r *WorkbookCommentsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookComment) (resObj *WorkbookComment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Functions is navigation property
+func (b *WorkbookRequestBuilder) Functions() *WorkbookFunctionsRequestBuilder {
+ bb := &WorkbookFunctionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/functions"
+ return bb
+}
+
+// Names returns request builder for WorkbookNamedItem collection
+func (b *WorkbookRequestBuilder) Names() *WorkbookNamesCollectionRequestBuilder {
+ bb := &WorkbookNamesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/names"
+ return bb
+}
+
+// WorkbookNamesCollectionRequestBuilder is request builder for WorkbookNamedItem collection
+type WorkbookNamesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookNamedItem collection
+func (b *WorkbookNamesCollectionRequestBuilder) Request() *WorkbookNamesCollectionRequest {
+ return &WorkbookNamesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookNamedItem item
+func (b *WorkbookNamesCollectionRequestBuilder) ID(id string) *WorkbookNamedItemRequestBuilder {
+ bb := &WorkbookNamedItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookNamesCollectionRequest is request for WorkbookNamedItem collection
+type WorkbookNamesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookNamedItem collection
+func (r *WorkbookNamesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookNamedItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookNamedItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookNamedItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookNamedItem collection, max N pages
+func (r *WorkbookNamesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookNamedItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookNamedItem collection
+func (r *WorkbookNamesCollectionRequest) Get(ctx context.Context) ([]WorkbookNamedItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookNamedItem collection
+func (r *WorkbookNamesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookNamedItem) (resObj *WorkbookNamedItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Tables returns request builder for WorkbookTable collection
+func (b *WorkbookRequestBuilder) Tables() *WorkbookTablesCollectionRequestBuilder {
+ bb := &WorkbookTablesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tables"
+ return bb
+}
+
+// WorkbookTablesCollectionRequestBuilder is request builder for WorkbookTable collection
+type WorkbookTablesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookTable collection
+func (b *WorkbookTablesCollectionRequestBuilder) Request() *WorkbookTablesCollectionRequest {
+ return &WorkbookTablesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookTable item
+func (b *WorkbookTablesCollectionRequestBuilder) ID(id string) *WorkbookTableRequestBuilder {
+ bb := &WorkbookTableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookTablesCollectionRequest is request for WorkbookTable collection
+type WorkbookTablesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookTable collection
+func (r *WorkbookTablesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookTable, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookTable
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookTable
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookTable collection, max N pages
+func (r *WorkbookTablesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookTable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookTable collection
+func (r *WorkbookTablesCollectionRequest) Get(ctx context.Context) ([]WorkbookTable, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookTable collection
+func (r *WorkbookTablesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookTable) (resObj *WorkbookTable, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Worksheets returns request builder for WorkbookWorksheet collection
+func (b *WorkbookRequestBuilder) Worksheets() *WorkbookWorksheetsCollectionRequestBuilder {
+ bb := &WorkbookWorksheetsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/worksheets"
+ return bb
+}
+
+// WorkbookWorksheetsCollectionRequestBuilder is request builder for WorkbookWorksheet collection
+type WorkbookWorksheetsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookWorksheet collection
+func (b *WorkbookWorksheetsCollectionRequestBuilder) Request() *WorkbookWorksheetsCollectionRequest {
+ return &WorkbookWorksheetsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookWorksheet item
+func (b *WorkbookWorksheetsCollectionRequestBuilder) ID(id string) *WorkbookWorksheetRequestBuilder {
+ bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookWorksheetsCollectionRequest is request for WorkbookWorksheet collection
+type WorkbookWorksheetsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookWorksheet collection
+func (r *WorkbookWorksheetsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookWorksheet, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookWorksheet
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookWorksheet
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookWorksheet collection, max N pages
+func (r *WorkbookWorksheetsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookWorksheet, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookWorksheet collection
+func (r *WorkbookWorksheetsCollectionRequest) Get(ctx context.Context) ([]WorkbookWorksheet, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookWorksheet collection
+func (r *WorkbookWorksheetsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookWorksheet) (resObj *WorkbookWorksheet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Axes is navigation property
+func (b *WorkbookChartRequestBuilder) Axes() *WorkbookChartAxesRequestBuilder {
+ bb := &WorkbookChartAxesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/axes"
+ return bb
+}
+
+// DataLabels is navigation property
+func (b *WorkbookChartRequestBuilder) DataLabels() *WorkbookChartDataLabelsRequestBuilder {
+ bb := &WorkbookChartDataLabelsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dataLabels"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookChartRequestBuilder) Format() *WorkbookChartAreaFormatRequestBuilder {
+ bb := &WorkbookChartAreaFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// Legend is navigation property
+func (b *WorkbookChartRequestBuilder) Legend() *WorkbookChartLegendRequestBuilder {
+ bb := &WorkbookChartLegendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/legend"
+ return bb
+}
+
+// Series returns request builder for WorkbookChartSeries collection
+func (b *WorkbookChartRequestBuilder) Series() *WorkbookChartSeriesCollectionRequestBuilder {
+ bb := &WorkbookChartSeriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/series"
+ return bb
+}
+
+// WorkbookChartSeriesCollectionRequestBuilder is request builder for WorkbookChartSeries collection
+type WorkbookChartSeriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookChartSeries collection
+func (b *WorkbookChartSeriesCollectionRequestBuilder) Request() *WorkbookChartSeriesCollectionRequest {
+ return &WorkbookChartSeriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookChartSeries item
+func (b *WorkbookChartSeriesCollectionRequestBuilder) ID(id string) *WorkbookChartSeriesRequestBuilder {
+ bb := &WorkbookChartSeriesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookChartSeriesCollectionRequest is request for WorkbookChartSeries collection
+type WorkbookChartSeriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookChartSeries collection
+func (r *WorkbookChartSeriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookChartSeries, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookChartSeries
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookChartSeries
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookChartSeries collection, max N pages
+func (r *WorkbookChartSeriesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookChartSeries, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookChartSeries collection
+func (r *WorkbookChartSeriesCollectionRequest) Get(ctx context.Context) ([]WorkbookChartSeries, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookChartSeries collection
+func (r *WorkbookChartSeriesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookChartSeries) (resObj *WorkbookChartSeries, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Title is navigation property
+func (b *WorkbookChartRequestBuilder) Title() *WorkbookChartTitleRequestBuilder {
+ bb := &WorkbookChartTitleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/title"
+ return bb
+}
+
+// Worksheet is navigation property
+func (b *WorkbookChartRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder {
+ bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/worksheet"
+ return bb
+}
+
+// Fill is navigation property
+func (b *WorkbookChartAreaFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder {
+ bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fill"
+ return bb
+}
+
+// Font is navigation property
+func (b *WorkbookChartAreaFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder {
+ bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/font"
+ return bb
+}
+
+// CategoryAxis is navigation property
+func (b *WorkbookChartAxesRequestBuilder) CategoryAxis() *WorkbookChartAxisRequestBuilder {
+ bb := &WorkbookChartAxisRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/categoryAxis"
+ return bb
+}
+
+// SeriesAxis is navigation property
+func (b *WorkbookChartAxesRequestBuilder) SeriesAxis() *WorkbookChartAxisRequestBuilder {
+ bb := &WorkbookChartAxisRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/seriesAxis"
+ return bb
+}
+
+// ValueAxis is navigation property
+func (b *WorkbookChartAxesRequestBuilder) ValueAxis() *WorkbookChartAxisRequestBuilder {
+ bb := &WorkbookChartAxisRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/valueAxis"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookChartAxisRequestBuilder) Format() *WorkbookChartAxisFormatRequestBuilder {
+ bb := &WorkbookChartAxisFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// MajorGridlines is navigation property
+func (b *WorkbookChartAxisRequestBuilder) MajorGridlines() *WorkbookChartGridlinesRequestBuilder {
+ bb := &WorkbookChartGridlinesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/majorGridlines"
+ return bb
+}
+
+// MinorGridlines is navigation property
+func (b *WorkbookChartAxisRequestBuilder) MinorGridlines() *WorkbookChartGridlinesRequestBuilder {
+ bb := &WorkbookChartGridlinesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/minorGridlines"
+ return bb
+}
+
+// Title is navigation property
+func (b *WorkbookChartAxisRequestBuilder) Title() *WorkbookChartAxisTitleRequestBuilder {
+ bb := &WorkbookChartAxisTitleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/title"
+ return bb
+}
+
+// Font is navigation property
+func (b *WorkbookChartAxisFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder {
+ bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/font"
+ return bb
+}
+
+// Line is navigation property
+func (b *WorkbookChartAxisFormatRequestBuilder) Line() *WorkbookChartLineFormatRequestBuilder {
+ bb := &WorkbookChartLineFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/line"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookChartAxisTitleRequestBuilder) Format() *WorkbookChartAxisTitleFormatRequestBuilder {
+ bb := &WorkbookChartAxisTitleFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// Font is navigation property
+func (b *WorkbookChartAxisTitleFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder {
+ bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/font"
+ return bb
+}
+
+// Fill is navigation property
+func (b *WorkbookChartDataLabelFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder {
+ bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fill"
+ return bb
+}
+
+// Font is navigation property
+func (b *WorkbookChartDataLabelFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder {
+ bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/font"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookChartDataLabelsRequestBuilder) Format() *WorkbookChartDataLabelFormatRequestBuilder {
+ bb := &WorkbookChartDataLabelFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookChartGridlinesRequestBuilder) Format() *WorkbookChartGridlinesFormatRequestBuilder {
+ bb := &WorkbookChartGridlinesFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// Line is navigation property
+func (b *WorkbookChartGridlinesFormatRequestBuilder) Line() *WorkbookChartLineFormatRequestBuilder {
+ bb := &WorkbookChartLineFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/line"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookChartLegendRequestBuilder) Format() *WorkbookChartLegendFormatRequestBuilder {
+ bb := &WorkbookChartLegendFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// Fill is navigation property
+func (b *WorkbookChartLegendFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder {
+ bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fill"
+ return bb
+}
+
+// Font is navigation property
+func (b *WorkbookChartLegendFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder {
+ bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/font"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookChartPointRequestBuilder) Format() *WorkbookChartPointFormatRequestBuilder {
+ bb := &WorkbookChartPointFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// Fill is navigation property
+func (b *WorkbookChartPointFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder {
+ bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fill"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookChartSeriesRequestBuilder) Format() *WorkbookChartSeriesFormatRequestBuilder {
+ bb := &WorkbookChartSeriesFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// Points returns request builder for WorkbookChartPoint collection
+func (b *WorkbookChartSeriesRequestBuilder) Points() *WorkbookChartSeriesPointsCollectionRequestBuilder {
+ bb := &WorkbookChartSeriesPointsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/points"
+ return bb
+}
+
+// WorkbookChartSeriesPointsCollectionRequestBuilder is request builder for WorkbookChartPoint collection
+type WorkbookChartSeriesPointsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookChartPoint collection
+func (b *WorkbookChartSeriesPointsCollectionRequestBuilder) Request() *WorkbookChartSeriesPointsCollectionRequest {
+ return &WorkbookChartSeriesPointsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookChartPoint item
+func (b *WorkbookChartSeriesPointsCollectionRequestBuilder) ID(id string) *WorkbookChartPointRequestBuilder {
+ bb := &WorkbookChartPointRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookChartSeriesPointsCollectionRequest is request for WorkbookChartPoint collection
+type WorkbookChartSeriesPointsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookChartPoint collection
+func (r *WorkbookChartSeriesPointsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookChartPoint, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookChartPoint
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookChartPoint
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookChartPoint collection, max N pages
+func (r *WorkbookChartSeriesPointsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookChartPoint, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookChartPoint collection
+func (r *WorkbookChartSeriesPointsCollectionRequest) Get(ctx context.Context) ([]WorkbookChartPoint, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookChartPoint collection
+func (r *WorkbookChartSeriesPointsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookChartPoint) (resObj *WorkbookChartPoint, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Fill is navigation property
+func (b *WorkbookChartSeriesFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder {
+ bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fill"
+ return bb
+}
+
+// Line is navigation property
+func (b *WorkbookChartSeriesFormatRequestBuilder) Line() *WorkbookChartLineFormatRequestBuilder {
+ bb := &WorkbookChartLineFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/line"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookChartTitleRequestBuilder) Format() *WorkbookChartTitleFormatRequestBuilder {
+ bb := &WorkbookChartTitleFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// Fill is navigation property
+func (b *WorkbookChartTitleFormatRequestBuilder) Fill() *WorkbookChartFillRequestBuilder {
+ bb := &WorkbookChartFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fill"
+ return bb
+}
+
+// Font is navigation property
+func (b *WorkbookChartTitleFormatRequestBuilder) Font() *WorkbookChartFontRequestBuilder {
+ bb := &WorkbookChartFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/font"
+ return bb
+}
+
+// Replies returns request builder for WorkbookCommentReply collection
+func (b *WorkbookCommentRequestBuilder) Replies() *WorkbookCommentRepliesCollectionRequestBuilder {
+ bb := &WorkbookCommentRepliesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/replies"
+ return bb
+}
+
+// WorkbookCommentRepliesCollectionRequestBuilder is request builder for WorkbookCommentReply collection
+type WorkbookCommentRepliesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookCommentReply collection
+func (b *WorkbookCommentRepliesCollectionRequestBuilder) Request() *WorkbookCommentRepliesCollectionRequest {
+ return &WorkbookCommentRepliesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookCommentReply item
+func (b *WorkbookCommentRepliesCollectionRequestBuilder) ID(id string) *WorkbookCommentReplyRequestBuilder {
+ bb := &WorkbookCommentReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookCommentRepliesCollectionRequest is request for WorkbookCommentReply collection
+type WorkbookCommentRepliesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookCommentReply collection
+func (r *WorkbookCommentRepliesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookCommentReply, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookCommentReply
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookCommentReply
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookCommentReply collection, max N pages
+func (r *WorkbookCommentRepliesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookCommentReply, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookCommentReply collection
+func (r *WorkbookCommentRepliesCollectionRequest) Get(ctx context.Context) ([]WorkbookCommentReply, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookCommentReply collection
+func (r *WorkbookCommentRepliesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookCommentReply) (resObj *WorkbookCommentReply, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Worksheet is navigation property
+func (b *WorkbookNamedItemRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder {
+ bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/worksheet"
+ return bb
+}
+
+// Worksheet is navigation property
+func (b *WorkbookPivotTableRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder {
+ bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/worksheet"
+ return bb
+}
+
+// Format is navigation property
+func (b *WorkbookRangeRequestBuilder) Format() *WorkbookRangeFormatRequestBuilder {
+ bb := &WorkbookRangeFormatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/format"
+ return bb
+}
+
+// Sort is navigation property
+func (b *WorkbookRangeRequestBuilder) Sort() *WorkbookRangeSortRequestBuilder {
+ bb := &WorkbookRangeSortRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sort"
+ return bb
+}
+
+// Worksheet is navigation property
+func (b *WorkbookRangeRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder {
+ bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/worksheet"
+ return bb
+}
+
+// Borders returns request builder for WorkbookRangeBorder collection
+func (b *WorkbookRangeFormatRequestBuilder) Borders() *WorkbookRangeFormatBordersCollectionRequestBuilder {
+ bb := &WorkbookRangeFormatBordersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/borders"
+ return bb
+}
+
+// WorkbookRangeFormatBordersCollectionRequestBuilder is request builder for WorkbookRangeBorder collection
+type WorkbookRangeFormatBordersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookRangeBorder collection
+func (b *WorkbookRangeFormatBordersCollectionRequestBuilder) Request() *WorkbookRangeFormatBordersCollectionRequest {
+ return &WorkbookRangeFormatBordersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookRangeBorder item
+func (b *WorkbookRangeFormatBordersCollectionRequestBuilder) ID(id string) *WorkbookRangeBorderRequestBuilder {
+ bb := &WorkbookRangeBorderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookRangeFormatBordersCollectionRequest is request for WorkbookRangeBorder collection
+type WorkbookRangeFormatBordersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookRangeBorder collection
+func (r *WorkbookRangeFormatBordersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookRangeBorder, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookRangeBorder
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookRangeBorder
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookRangeBorder collection, max N pages
+func (r *WorkbookRangeFormatBordersCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookRangeBorder, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookRangeBorder collection
+func (r *WorkbookRangeFormatBordersCollectionRequest) Get(ctx context.Context) ([]WorkbookRangeBorder, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookRangeBorder collection
+func (r *WorkbookRangeFormatBordersCollectionRequest) Add(ctx context.Context, reqObj *WorkbookRangeBorder) (resObj *WorkbookRangeBorder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Fill is navigation property
+func (b *WorkbookRangeFormatRequestBuilder) Fill() *WorkbookRangeFillRequestBuilder {
+ bb := &WorkbookRangeFillRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/fill"
+ return bb
+}
+
+// Font is navigation property
+func (b *WorkbookRangeFormatRequestBuilder) Font() *WorkbookRangeFontRequestBuilder {
+ bb := &WorkbookRangeFontRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/font"
+ return bb
+}
+
+// Protection is navigation property
+func (b *WorkbookRangeFormatRequestBuilder) Protection() *WorkbookFormatProtectionRequestBuilder {
+ bb := &WorkbookFormatProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/protection"
+ return bb
+}
+
+// Rows returns request builder for WorkbookRangeView collection
+func (b *WorkbookRangeViewRequestBuilder) Rows() *WorkbookRangeViewRowsCollectionRequestBuilder {
+ bb := &WorkbookRangeViewRowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rows"
+ return bb
+}
+
+// WorkbookRangeViewRowsCollectionRequestBuilder is request builder for WorkbookRangeView collection
+type WorkbookRangeViewRowsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookRangeView collection
+func (b *WorkbookRangeViewRowsCollectionRequestBuilder) Request() *WorkbookRangeViewRowsCollectionRequest {
+ return &WorkbookRangeViewRowsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookRangeView item
+func (b *WorkbookRangeViewRowsCollectionRequestBuilder) ID(id string) *WorkbookRangeViewRequestBuilder {
+ bb := &WorkbookRangeViewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookRangeViewRowsCollectionRequest is request for WorkbookRangeView collection
+type WorkbookRangeViewRowsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookRangeView collection
+func (r *WorkbookRangeViewRowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookRangeView, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookRangeView
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookRangeView
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookRangeView collection, max N pages
+func (r *WorkbookRangeViewRowsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookRangeView, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookRangeView collection
+func (r *WorkbookRangeViewRowsCollectionRequest) Get(ctx context.Context) ([]WorkbookRangeView, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookRangeView collection
+func (r *WorkbookRangeViewRowsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookRangeView) (resObj *WorkbookRangeView, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Columns returns request builder for WorkbookTableColumn collection
+func (b *WorkbookTableRequestBuilder) Columns() *WorkbookTableColumnsCollectionRequestBuilder {
+ bb := &WorkbookTableColumnsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/columns"
+ return bb
+}
+
+// WorkbookTableColumnsCollectionRequestBuilder is request builder for WorkbookTableColumn collection
+type WorkbookTableColumnsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookTableColumn collection
+func (b *WorkbookTableColumnsCollectionRequestBuilder) Request() *WorkbookTableColumnsCollectionRequest {
+ return &WorkbookTableColumnsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookTableColumn item
+func (b *WorkbookTableColumnsCollectionRequestBuilder) ID(id string) *WorkbookTableColumnRequestBuilder {
+ bb := &WorkbookTableColumnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookTableColumnsCollectionRequest is request for WorkbookTableColumn collection
+type WorkbookTableColumnsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookTableColumn collection
+func (r *WorkbookTableColumnsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookTableColumn, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookTableColumn
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookTableColumn
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookTableColumn collection, max N pages
+func (r *WorkbookTableColumnsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookTableColumn, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookTableColumn collection
+func (r *WorkbookTableColumnsCollectionRequest) Get(ctx context.Context) ([]WorkbookTableColumn, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookTableColumn collection
+func (r *WorkbookTableColumnsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookTableColumn) (resObj *WorkbookTableColumn, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Rows returns request builder for WorkbookTableRow collection
+func (b *WorkbookTableRequestBuilder) Rows() *WorkbookTableRowsCollectionRequestBuilder {
+ bb := &WorkbookTableRowsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/rows"
+ return bb
+}
+
+// WorkbookTableRowsCollectionRequestBuilder is request builder for WorkbookTableRow collection
+type WorkbookTableRowsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookTableRow collection
+func (b *WorkbookTableRowsCollectionRequestBuilder) Request() *WorkbookTableRowsCollectionRequest {
+ return &WorkbookTableRowsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookTableRow item
+func (b *WorkbookTableRowsCollectionRequestBuilder) ID(id string) *WorkbookTableRowRequestBuilder {
+ bb := &WorkbookTableRowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookTableRowsCollectionRequest is request for WorkbookTableRow collection
+type WorkbookTableRowsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookTableRow collection
+func (r *WorkbookTableRowsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookTableRow, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookTableRow
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookTableRow
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookTableRow collection, max N pages
+func (r *WorkbookTableRowsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookTableRow, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookTableRow collection
+func (r *WorkbookTableRowsCollectionRequest) Get(ctx context.Context) ([]WorkbookTableRow, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookTableRow collection
+func (r *WorkbookTableRowsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookTableRow) (resObj *WorkbookTableRow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sort is navigation property
+func (b *WorkbookTableRequestBuilder) Sort() *WorkbookTableSortRequestBuilder {
+ bb := &WorkbookTableSortRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sort"
+ return bb
+}
+
+// Worksheet is navigation property
+func (b *WorkbookTableRequestBuilder) Worksheet() *WorkbookWorksheetRequestBuilder {
+ bb := &WorkbookWorksheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/worksheet"
+ return bb
+}
+
+// Filter is navigation property
+func (b *WorkbookTableColumnRequestBuilder) Filter() *WorkbookFilterRequestBuilder {
+ bb := &WorkbookFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/filter"
+ return bb
+}
+
+// Charts returns request builder for WorkbookChart collection
+func (b *WorkbookWorksheetRequestBuilder) Charts() *WorkbookWorksheetChartsCollectionRequestBuilder {
+ bb := &WorkbookWorksheetChartsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/charts"
+ return bb
+}
+
+// WorkbookWorksheetChartsCollectionRequestBuilder is request builder for WorkbookChart collection
+type WorkbookWorksheetChartsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookChart collection
+func (b *WorkbookWorksheetChartsCollectionRequestBuilder) Request() *WorkbookWorksheetChartsCollectionRequest {
+ return &WorkbookWorksheetChartsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookChart item
+func (b *WorkbookWorksheetChartsCollectionRequestBuilder) ID(id string) *WorkbookChartRequestBuilder {
+ bb := &WorkbookChartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookWorksheetChartsCollectionRequest is request for WorkbookChart collection
+type WorkbookWorksheetChartsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookChart collection
+func (r *WorkbookWorksheetChartsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookChart, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookChart
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookChart
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookChart collection, max N pages
+func (r *WorkbookWorksheetChartsCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookChart, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookChart collection
+func (r *WorkbookWorksheetChartsCollectionRequest) Get(ctx context.Context) ([]WorkbookChart, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookChart collection
+func (r *WorkbookWorksheetChartsCollectionRequest) Add(ctx context.Context, reqObj *WorkbookChart) (resObj *WorkbookChart, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Names returns request builder for WorkbookNamedItem collection
+func (b *WorkbookWorksheetRequestBuilder) Names() *WorkbookWorksheetNamesCollectionRequestBuilder {
+ bb := &WorkbookWorksheetNamesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/names"
+ return bb
+}
+
+// WorkbookWorksheetNamesCollectionRequestBuilder is request builder for WorkbookNamedItem collection
+type WorkbookWorksheetNamesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookNamedItem collection
+func (b *WorkbookWorksheetNamesCollectionRequestBuilder) Request() *WorkbookWorksheetNamesCollectionRequest {
+ return &WorkbookWorksheetNamesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookNamedItem item
+func (b *WorkbookWorksheetNamesCollectionRequestBuilder) ID(id string) *WorkbookNamedItemRequestBuilder {
+ bb := &WorkbookNamedItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookWorksheetNamesCollectionRequest is request for WorkbookNamedItem collection
+type WorkbookWorksheetNamesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookNamedItem collection
+func (r *WorkbookWorksheetNamesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookNamedItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookNamedItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookNamedItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookNamedItem collection, max N pages
+func (r *WorkbookWorksheetNamesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookNamedItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookNamedItem collection
+func (r *WorkbookWorksheetNamesCollectionRequest) Get(ctx context.Context) ([]WorkbookNamedItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookNamedItem collection
+func (r *WorkbookWorksheetNamesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookNamedItem) (resObj *WorkbookNamedItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PivotTables returns request builder for WorkbookPivotTable collection
+func (b *WorkbookWorksheetRequestBuilder) PivotTables() *WorkbookWorksheetPivotTablesCollectionRequestBuilder {
+ bb := &WorkbookWorksheetPivotTablesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/pivotTables"
+ return bb
+}
+
+// WorkbookWorksheetPivotTablesCollectionRequestBuilder is request builder for WorkbookPivotTable collection
+type WorkbookWorksheetPivotTablesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookPivotTable collection
+func (b *WorkbookWorksheetPivotTablesCollectionRequestBuilder) Request() *WorkbookWorksheetPivotTablesCollectionRequest {
+ return &WorkbookWorksheetPivotTablesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookPivotTable item
+func (b *WorkbookWorksheetPivotTablesCollectionRequestBuilder) ID(id string) *WorkbookPivotTableRequestBuilder {
+ bb := &WorkbookPivotTableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookWorksheetPivotTablesCollectionRequest is request for WorkbookPivotTable collection
+type WorkbookWorksheetPivotTablesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookPivotTable collection
+func (r *WorkbookWorksheetPivotTablesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookPivotTable, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookPivotTable
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookPivotTable
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookPivotTable collection, max N pages
+func (r *WorkbookWorksheetPivotTablesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookPivotTable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookPivotTable collection
+func (r *WorkbookWorksheetPivotTablesCollectionRequest) Get(ctx context.Context) ([]WorkbookPivotTable, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookPivotTable collection
+func (r *WorkbookWorksheetPivotTablesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookPivotTable) (resObj *WorkbookPivotTable, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Protection is navigation property
+func (b *WorkbookWorksheetRequestBuilder) Protection() *WorkbookWorksheetProtectionRequestBuilder {
+ bb := &WorkbookWorksheetProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/protection"
+ return bb
+}
+
+// Tables returns request builder for WorkbookTable collection
+func (b *WorkbookWorksheetRequestBuilder) Tables() *WorkbookWorksheetTablesCollectionRequestBuilder {
+ bb := &WorkbookWorksheetTablesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/tables"
+ return bb
+}
+
+// WorkbookWorksheetTablesCollectionRequestBuilder is request builder for WorkbookTable collection
+type WorkbookWorksheetTablesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for WorkbookTable collection
+func (b *WorkbookWorksheetTablesCollectionRequestBuilder) Request() *WorkbookWorksheetTablesCollectionRequest {
+ return &WorkbookWorksheetTablesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for WorkbookTable item
+func (b *WorkbookWorksheetTablesCollectionRequestBuilder) ID(id string) *WorkbookTableRequestBuilder {
+ bb := &WorkbookTableRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// WorkbookWorksheetTablesCollectionRequest is request for WorkbookTable collection
+type WorkbookWorksheetTablesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for WorkbookTable collection
+func (r *WorkbookWorksheetTablesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]WorkbookTable, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []WorkbookTable
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []WorkbookTable
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for WorkbookTable collection, max N pages
+func (r *WorkbookWorksheetTablesCollectionRequest) GetN(ctx context.Context, n int) ([]WorkbookTable, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for WorkbookTable collection
+func (r *WorkbookWorksheetTablesCollectionRequest) Get(ctx context.Context) ([]WorkbookTable, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for WorkbookTable collection
+func (r *WorkbookWorksheetTablesCollectionRequest) Add(ctx context.Context, reqObj *WorkbookTable) (resObj *WorkbookTable, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumACL.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumACL.go
new file mode 100644
index 00000000..37903b1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumACL.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ACLType undocumented
+type ACLType string
+
+const (
+ // ACLTypeVUser undocumented
+ ACLTypeVUser ACLType = "user"
+ // ACLTypeVGroup undocumented
+ ACLTypeVGroup ACLType = "group"
+ // ACLTypeVEveryone undocumented
+ ACLTypeVEveryone ACLType = "everyone"
+ // ACLTypeVEveryoneExceptGuests undocumented
+ ACLTypeVEveryoneExceptGuests ACLType = "everyoneExceptGuests"
+)
+
+var (
+ // ACLTypePUser is a pointer to ACLTypeVUser
+ ACLTypePUser = &_ACLTypePUser
+ // ACLTypePGroup is a pointer to ACLTypeVGroup
+ ACLTypePGroup = &_ACLTypePGroup
+ // ACLTypePEveryone is a pointer to ACLTypeVEveryone
+ ACLTypePEveryone = &_ACLTypePEveryone
+ // ACLTypePEveryoneExceptGuests is a pointer to ACLTypeVEveryoneExceptGuests
+ ACLTypePEveryoneExceptGuests = &_ACLTypePEveryoneExceptGuests
+)
+
+var (
+ _ACLTypePUser = ACLTypeVUser
+ _ACLTypePGroup = ACLTypeVGroup
+ _ACLTypePEveryone = ACLTypeVEveryone
+ _ACLTypePEveryoneExceptGuests = ACLTypeVEveryoneExceptGuests
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccess.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccess.go
new file mode 100644
index 00000000..d777e794
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccess.go
@@ -0,0 +1,84 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccessLevel undocumented
+type AccessLevel string
+
+const (
+ // AccessLevelVEveryone undocumented
+ AccessLevelVEveryone AccessLevel = "everyone"
+ // AccessLevelVInvited undocumented
+ AccessLevelVInvited AccessLevel = "invited"
+ // AccessLevelVLocked undocumented
+ AccessLevelVLocked AccessLevel = "locked"
+ // AccessLevelVSameEnterprise undocumented
+ AccessLevelVSameEnterprise AccessLevel = "sameEnterprise"
+ // AccessLevelVSameEnterpriseAndFederated undocumented
+ AccessLevelVSameEnterpriseAndFederated AccessLevel = "sameEnterpriseAndFederated"
+)
+
+var (
+ // AccessLevelPEveryone is a pointer to AccessLevelVEveryone
+ AccessLevelPEveryone = &_AccessLevelPEveryone
+ // AccessLevelPInvited is a pointer to AccessLevelVInvited
+ AccessLevelPInvited = &_AccessLevelPInvited
+ // AccessLevelPLocked is a pointer to AccessLevelVLocked
+ AccessLevelPLocked = &_AccessLevelPLocked
+ // AccessLevelPSameEnterprise is a pointer to AccessLevelVSameEnterprise
+ AccessLevelPSameEnterprise = &_AccessLevelPSameEnterprise
+ // AccessLevelPSameEnterpriseAndFederated is a pointer to AccessLevelVSameEnterpriseAndFederated
+ AccessLevelPSameEnterpriseAndFederated = &_AccessLevelPSameEnterpriseAndFederated
+)
+
+var (
+ _AccessLevelPEveryone = AccessLevelVEveryone
+ _AccessLevelPInvited = AccessLevelVInvited
+ _AccessLevelPLocked = AccessLevelVLocked
+ _AccessLevelPSameEnterprise = AccessLevelVSameEnterprise
+ _AccessLevelPSameEnterpriseAndFederated = AccessLevelVSameEnterpriseAndFederated
+)
+
+// AccessScope undocumented
+type AccessScope string
+
+const (
+ // AccessScopeVInOrganization undocumented
+ AccessScopeVInOrganization AccessScope = "inOrganization"
+ // AccessScopeVNotInOrganization undocumented
+ AccessScopeVNotInOrganization AccessScope = "notInOrganization"
+)
+
+var (
+ // AccessScopePInOrganization is a pointer to AccessScopeVInOrganization
+ AccessScopePInOrganization = &_AccessScopePInOrganization
+ // AccessScopePNotInOrganization is a pointer to AccessScopeVNotInOrganization
+ AccessScopePNotInOrganization = &_AccessScopePNotInOrganization
+)
+
+var (
+ _AccessScopePInOrganization = AccessScopeVInOrganization
+ _AccessScopePNotInOrganization = AccessScopeVNotInOrganization
+)
+
+// AccessType undocumented
+type AccessType string
+
+const (
+ // AccessTypeVGrant undocumented
+ AccessTypeVGrant AccessType = "grant"
+ // AccessTypeVDeny undocumented
+ AccessTypeVDeny AccessType = "deny"
+)
+
+var (
+ // AccessTypePGrant is a pointer to AccessTypeVGrant
+ AccessTypePGrant = &_AccessTypePGrant
+ // AccessTypePDeny is a pointer to AccessTypeVDeny
+ AccessTypePDeny = &_AccessTypePDeny
+)
+
+var (
+ _AccessTypePGrant = AccessTypeVGrant
+ _AccessTypePDeny = AccessTypeVDeny
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccount.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccount.go
new file mode 100644
index 00000000..1c198528
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAccount.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AccountStatus undocumented
+type AccountStatus string
+
+const (
+ // AccountStatusVUnknown undocumented
+ AccountStatusVUnknown AccountStatus = "unknown"
+ // AccountStatusVStaged undocumented
+ AccountStatusVStaged AccountStatus = "staged"
+ // AccountStatusVActive undocumented
+ AccountStatusVActive AccountStatus = "active"
+ // AccountStatusVSuspended undocumented
+ AccountStatusVSuspended AccountStatus = "suspended"
+ // AccountStatusVDeleted undocumented
+ AccountStatusVDeleted AccountStatus = "deleted"
+ // AccountStatusVUnknownFutureValue undocumented
+ AccountStatusVUnknownFutureValue AccountStatus = "unknownFutureValue"
+)
+
+var (
+ // AccountStatusPUnknown is a pointer to AccountStatusVUnknown
+ AccountStatusPUnknown = &_AccountStatusPUnknown
+ // AccountStatusPStaged is a pointer to AccountStatusVStaged
+ AccountStatusPStaged = &_AccountStatusPStaged
+ // AccountStatusPActive is a pointer to AccountStatusVActive
+ AccountStatusPActive = &_AccountStatusPActive
+ // AccountStatusPSuspended is a pointer to AccountStatusVSuspended
+ AccountStatusPSuspended = &_AccountStatusPSuspended
+ // AccountStatusPDeleted is a pointer to AccountStatusVDeleted
+ AccountStatusPDeleted = &_AccountStatusPDeleted
+ // AccountStatusPUnknownFutureValue is a pointer to AccountStatusVUnknownFutureValue
+ AccountStatusPUnknownFutureValue = &_AccountStatusPUnknownFutureValue
+)
+
+var (
+ _AccountStatusPUnknown = AccountStatusVUnknown
+ _AccountStatusPStaged = AccountStatusVStaged
+ _AccountStatusPActive = AccountStatusVActive
+ _AccountStatusPSuspended = AccountStatusVSuspended
+ _AccountStatusPDeleted = AccountStatusVDeleted
+ _AccountStatusPUnknownFutureValue = AccountStatusVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAction.go
new file mode 100644
index 00000000..8b40a3e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAction.go
@@ -0,0 +1,82 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActionSource undocumented
+type ActionSource string
+
+const (
+ // ActionSourceVManual undocumented
+ ActionSourceVManual ActionSource = "manual"
+ // ActionSourceVAutomatic undocumented
+ ActionSourceVAutomatic ActionSource = "automatic"
+ // ActionSourceVRecommended undocumented
+ ActionSourceVRecommended ActionSource = "recommended"
+ // ActionSourceVDefault undocumented
+ ActionSourceVDefault ActionSource = "default"
+)
+
+var (
+ // ActionSourcePManual is a pointer to ActionSourceVManual
+ ActionSourcePManual = &_ActionSourcePManual
+ // ActionSourcePAutomatic is a pointer to ActionSourceVAutomatic
+ ActionSourcePAutomatic = &_ActionSourcePAutomatic
+ // ActionSourcePRecommended is a pointer to ActionSourceVRecommended
+ ActionSourcePRecommended = &_ActionSourcePRecommended
+ // ActionSourcePDefault is a pointer to ActionSourceVDefault
+ ActionSourcePDefault = &_ActionSourcePDefault
+)
+
+var (
+ _ActionSourcePManual = ActionSourceVManual
+ _ActionSourcePAutomatic = ActionSourceVAutomatic
+ _ActionSourcePRecommended = ActionSourceVRecommended
+ _ActionSourcePDefault = ActionSourceVDefault
+)
+
+// ActionState undocumented
+type ActionState string
+
+const (
+ // ActionStateVNone undocumented
+ ActionStateVNone ActionState = "none"
+ // ActionStateVPending undocumented
+ ActionStateVPending ActionState = "pending"
+ // ActionStateVCanceled undocumented
+ ActionStateVCanceled ActionState = "canceled"
+ // ActionStateVActive undocumented
+ ActionStateVActive ActionState = "active"
+ // ActionStateVDone undocumented
+ ActionStateVDone ActionState = "done"
+ // ActionStateVFailed undocumented
+ ActionStateVFailed ActionState = "failed"
+ // ActionStateVNotSupported undocumented
+ ActionStateVNotSupported ActionState = "notSupported"
+)
+
+var (
+ // ActionStatePNone is a pointer to ActionStateVNone
+ ActionStatePNone = &_ActionStatePNone
+ // ActionStatePPending is a pointer to ActionStateVPending
+ ActionStatePPending = &_ActionStatePPending
+ // ActionStatePCanceled is a pointer to ActionStateVCanceled
+ ActionStatePCanceled = &_ActionStatePCanceled
+ // ActionStatePActive is a pointer to ActionStateVActive
+ ActionStatePActive = &_ActionStatePActive
+ // ActionStatePDone is a pointer to ActionStateVDone
+ ActionStatePDone = &_ActionStatePDone
+ // ActionStatePFailed is a pointer to ActionStateVFailed
+ ActionStatePFailed = &_ActionStatePFailed
+ // ActionStatePNotSupported is a pointer to ActionStateVNotSupported
+ ActionStatePNotSupported = &_ActionStatePNotSupported
+)
+
+var (
+ _ActionStatePNone = ActionStateVNone
+ _ActionStatePPending = ActionStateVPending
+ _ActionStatePCanceled = ActionStateVCanceled
+ _ActionStatePActive = ActionStateVActive
+ _ActionStatePDone = ActionStateVDone
+ _ActionStatePFailed = ActionStateVFailed
+ _ActionStatePNotSupported = ActionStateVNotSupported
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumActivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumActivity.go
new file mode 100644
index 00000000..8cdfa92a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumActivity.go
@@ -0,0 +1,62 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActivityDomain undocumented
+type ActivityDomain string
+
+const (
+ // ActivityDomainVUnknown undocumented
+ ActivityDomainVUnknown ActivityDomain = "unknown"
+ // ActivityDomainVWork undocumented
+ ActivityDomainVWork ActivityDomain = "work"
+ // ActivityDomainVPersonal undocumented
+ ActivityDomainVPersonal ActivityDomain = "personal"
+ // ActivityDomainVUnrestricted undocumented
+ ActivityDomainVUnrestricted ActivityDomain = "unrestricted"
+)
+
+var (
+ // ActivityDomainPUnknown is a pointer to ActivityDomainVUnknown
+ ActivityDomainPUnknown = &_ActivityDomainPUnknown
+ // ActivityDomainPWork is a pointer to ActivityDomainVWork
+ ActivityDomainPWork = &_ActivityDomainPWork
+ // ActivityDomainPPersonal is a pointer to ActivityDomainVPersonal
+ ActivityDomainPPersonal = &_ActivityDomainPPersonal
+ // ActivityDomainPUnrestricted is a pointer to ActivityDomainVUnrestricted
+ ActivityDomainPUnrestricted = &_ActivityDomainPUnrestricted
+)
+
+var (
+ _ActivityDomainPUnknown = ActivityDomainVUnknown
+ _ActivityDomainPWork = ActivityDomainVWork
+ _ActivityDomainPPersonal = ActivityDomainVPersonal
+ _ActivityDomainPUnrestricted = ActivityDomainVUnrestricted
+)
+
+// ActivityType undocumented
+type ActivityType string
+
+const (
+ // ActivityTypeVSignin undocumented
+ ActivityTypeVSignin ActivityType = "signin"
+ // ActivityTypeVUser undocumented
+ ActivityTypeVUser ActivityType = "user"
+ // ActivityTypeVUnknownFutureValue undocumented
+ ActivityTypeVUnknownFutureValue ActivityType = "unknownFutureValue"
+)
+
+var (
+ // ActivityTypePSignin is a pointer to ActivityTypeVSignin
+ ActivityTypePSignin = &_ActivityTypePSignin
+ // ActivityTypePUser is a pointer to ActivityTypeVUser
+ ActivityTypePUser = &_ActivityTypePUser
+ // ActivityTypePUnknownFutureValue is a pointer to ActivityTypeVUnknownFutureValue
+ ActivityTypePUnknownFutureValue = &_ActivityTypePUnknownFutureValue
+)
+
+var (
+ _ActivityTypePSignin = ActivityTypeVSignin
+ _ActivityTypePUser = ActivityTypeVUser
+ _ActivityTypePUnknownFutureValue = ActivityTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdmin.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdmin.go
new file mode 100644
index 00000000..dfdc338d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdmin.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdminConsentState undocumented
+type AdminConsentState string
+
+const (
+ // AdminConsentStateVNotConfigured undocumented
+ AdminConsentStateVNotConfigured AdminConsentState = "notConfigured"
+ // AdminConsentStateVGranted undocumented
+ AdminConsentStateVGranted AdminConsentState = "granted"
+ // AdminConsentStateVNotGranted undocumented
+ AdminConsentStateVNotGranted AdminConsentState = "notGranted"
+)
+
+var (
+ // AdminConsentStatePNotConfigured is a pointer to AdminConsentStateVNotConfigured
+ AdminConsentStatePNotConfigured = &_AdminConsentStatePNotConfigured
+ // AdminConsentStatePGranted is a pointer to AdminConsentStateVGranted
+ AdminConsentStatePGranted = &_AdminConsentStatePGranted
+ // AdminConsentStatePNotGranted is a pointer to AdminConsentStateVNotGranted
+ AdminConsentStatePNotGranted = &_AdminConsentStatePNotGranted
+)
+
+var (
+ _AdminConsentStatePNotConfigured = AdminConsentStateVNotConfigured
+ _AdminConsentStatePGranted = AdminConsentStateVGranted
+ _AdminConsentStatePNotGranted = AdminConsentStateVNotGranted
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdministrator.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdministrator.go
new file mode 100644
index 00000000..5f367885
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdministrator.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdministratorConfiguredDeviceComplianceState undocumented
+type AdministratorConfiguredDeviceComplianceState string
+
+const (
+ // AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy undocumented
+ AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy AdministratorConfiguredDeviceComplianceState = "basedOnDeviceCompliancePolicy"
+ // AdministratorConfiguredDeviceComplianceStateVNonCompliant undocumented
+ AdministratorConfiguredDeviceComplianceStateVNonCompliant AdministratorConfiguredDeviceComplianceState = "nonCompliant"
+)
+
+var (
+ // AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy is a pointer to AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy
+ AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy = &_AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy
+ // AdministratorConfiguredDeviceComplianceStatePNonCompliant is a pointer to AdministratorConfiguredDeviceComplianceStateVNonCompliant
+ AdministratorConfiguredDeviceComplianceStatePNonCompliant = &_AdministratorConfiguredDeviceComplianceStatePNonCompliant
+)
+
+var (
+ _AdministratorConfiguredDeviceComplianceStatePBasedOnDeviceCompliancePolicy = AdministratorConfiguredDeviceComplianceStateVBasedOnDeviceCompliancePolicy
+ _AdministratorConfiguredDeviceComplianceStatePNonCompliant = AdministratorConfiguredDeviceComplianceStateVNonCompliant
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdvanced.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdvanced.go
new file mode 100644
index 00000000..22149cd9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAdvanced.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdvancedBitLockerState undocumented
+type AdvancedBitLockerState string
+
+const (
+ // AdvancedBitLockerStateVSuccess undocumented
+ AdvancedBitLockerStateVSuccess AdvancedBitLockerState = "success"
+ // AdvancedBitLockerStateVNoUserConsent undocumented
+ AdvancedBitLockerStateVNoUserConsent AdvancedBitLockerState = "noUserConsent"
+ // AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch undocumented
+ AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch AdvancedBitLockerState = "osVolumeEncryptionMethodMismatch"
+ // AdvancedBitLockerStateVOsVolumeTpmRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmRequired AdvancedBitLockerState = "osVolumeTpmRequired"
+ // AdvancedBitLockerStateVOsVolumeTpmOnlyRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmOnlyRequired AdvancedBitLockerState = "osVolumeTpmOnlyRequired"
+ // AdvancedBitLockerStateVOsVolumeTpmPinRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmPinRequired AdvancedBitLockerState = "osVolumeTpmPinRequired"
+ // AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired AdvancedBitLockerState = "osVolumeTpmStartupKeyRequired"
+ // AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired undocumented
+ AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired AdvancedBitLockerState = "osVolumeTpmPinStartupKeyRequired"
+ // AdvancedBitLockerStateVOsVolumeUnprotected undocumented
+ AdvancedBitLockerStateVOsVolumeUnprotected AdvancedBitLockerState = "osVolumeUnprotected"
+ // AdvancedBitLockerStateVRecoveryKeyBackupFailed undocumented
+ AdvancedBitLockerStateVRecoveryKeyBackupFailed AdvancedBitLockerState = "recoveryKeyBackupFailed"
+ // AdvancedBitLockerStateVFixedDriveNotEncrypted undocumented
+ AdvancedBitLockerStateVFixedDriveNotEncrypted AdvancedBitLockerState = "fixedDriveNotEncrypted"
+ // AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch undocumented
+ AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch AdvancedBitLockerState = "fixedDriveEncryptionMethodMismatch"
+ // AdvancedBitLockerStateVLoggedOnUserNonAdmin undocumented
+ AdvancedBitLockerStateVLoggedOnUserNonAdmin AdvancedBitLockerState = "loggedOnUserNonAdmin"
+ // AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured undocumented
+ AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured AdvancedBitLockerState = "windowsRecoveryEnvironmentNotConfigured"
+ // AdvancedBitLockerStateVTpmNotAvailable undocumented
+ AdvancedBitLockerStateVTpmNotAvailable AdvancedBitLockerState = "tpmNotAvailable"
+ // AdvancedBitLockerStateVTpmNotReady undocumented
+ AdvancedBitLockerStateVTpmNotReady AdvancedBitLockerState = "tpmNotReady"
+ // AdvancedBitLockerStateVNetworkError undocumented
+ AdvancedBitLockerStateVNetworkError AdvancedBitLockerState = "networkError"
+)
+
+var (
+ // AdvancedBitLockerStatePSuccess is a pointer to AdvancedBitLockerStateVSuccess
+ AdvancedBitLockerStatePSuccess = &_AdvancedBitLockerStatePSuccess
+ // AdvancedBitLockerStatePNoUserConsent is a pointer to AdvancedBitLockerStateVNoUserConsent
+ AdvancedBitLockerStatePNoUserConsent = &_AdvancedBitLockerStatePNoUserConsent
+ // AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch is a pointer to AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch
+ AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch = &_AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch
+ // AdvancedBitLockerStatePOsVolumeTpmRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmRequired
+ AdvancedBitLockerStatePOsVolumeTpmRequired = &_AdvancedBitLockerStatePOsVolumeTpmRequired
+ // AdvancedBitLockerStatePOsVolumeTpmOnlyRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmOnlyRequired
+ AdvancedBitLockerStatePOsVolumeTpmOnlyRequired = &_AdvancedBitLockerStatePOsVolumeTpmOnlyRequired
+ // AdvancedBitLockerStatePOsVolumeTpmPinRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmPinRequired
+ AdvancedBitLockerStatePOsVolumeTpmPinRequired = &_AdvancedBitLockerStatePOsVolumeTpmPinRequired
+ // AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired
+ AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired = &_AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired
+ // AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired is a pointer to AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired
+ AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired = &_AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired
+ // AdvancedBitLockerStatePOsVolumeUnprotected is a pointer to AdvancedBitLockerStateVOsVolumeUnprotected
+ AdvancedBitLockerStatePOsVolumeUnprotected = &_AdvancedBitLockerStatePOsVolumeUnprotected
+ // AdvancedBitLockerStatePRecoveryKeyBackupFailed is a pointer to AdvancedBitLockerStateVRecoveryKeyBackupFailed
+ AdvancedBitLockerStatePRecoveryKeyBackupFailed = &_AdvancedBitLockerStatePRecoveryKeyBackupFailed
+ // AdvancedBitLockerStatePFixedDriveNotEncrypted is a pointer to AdvancedBitLockerStateVFixedDriveNotEncrypted
+ AdvancedBitLockerStatePFixedDriveNotEncrypted = &_AdvancedBitLockerStatePFixedDriveNotEncrypted
+ // AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch is a pointer to AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch
+ AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch = &_AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch
+ // AdvancedBitLockerStatePLoggedOnUserNonAdmin is a pointer to AdvancedBitLockerStateVLoggedOnUserNonAdmin
+ AdvancedBitLockerStatePLoggedOnUserNonAdmin = &_AdvancedBitLockerStatePLoggedOnUserNonAdmin
+ // AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured is a pointer to AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured
+ AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured = &_AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured
+ // AdvancedBitLockerStatePTpmNotAvailable is a pointer to AdvancedBitLockerStateVTpmNotAvailable
+ AdvancedBitLockerStatePTpmNotAvailable = &_AdvancedBitLockerStatePTpmNotAvailable
+ // AdvancedBitLockerStatePTpmNotReady is a pointer to AdvancedBitLockerStateVTpmNotReady
+ AdvancedBitLockerStatePTpmNotReady = &_AdvancedBitLockerStatePTpmNotReady
+ // AdvancedBitLockerStatePNetworkError is a pointer to AdvancedBitLockerStateVNetworkError
+ AdvancedBitLockerStatePNetworkError = &_AdvancedBitLockerStatePNetworkError
+)
+
+var (
+ _AdvancedBitLockerStatePSuccess = AdvancedBitLockerStateVSuccess
+ _AdvancedBitLockerStatePNoUserConsent = AdvancedBitLockerStateVNoUserConsent
+ _AdvancedBitLockerStatePOsVolumeEncryptionMethodMismatch = AdvancedBitLockerStateVOsVolumeEncryptionMethodMismatch
+ _AdvancedBitLockerStatePOsVolumeTpmRequired = AdvancedBitLockerStateVOsVolumeTpmRequired
+ _AdvancedBitLockerStatePOsVolumeTpmOnlyRequired = AdvancedBitLockerStateVOsVolumeTpmOnlyRequired
+ _AdvancedBitLockerStatePOsVolumeTpmPinRequired = AdvancedBitLockerStateVOsVolumeTpmPinRequired
+ _AdvancedBitLockerStatePOsVolumeTpmStartupKeyRequired = AdvancedBitLockerStateVOsVolumeTpmStartupKeyRequired
+ _AdvancedBitLockerStatePOsVolumeTpmPinStartupKeyRequired = AdvancedBitLockerStateVOsVolumeTpmPinStartupKeyRequired
+ _AdvancedBitLockerStatePOsVolumeUnprotected = AdvancedBitLockerStateVOsVolumeUnprotected
+ _AdvancedBitLockerStatePRecoveryKeyBackupFailed = AdvancedBitLockerStateVRecoveryKeyBackupFailed
+ _AdvancedBitLockerStatePFixedDriveNotEncrypted = AdvancedBitLockerStateVFixedDriveNotEncrypted
+ _AdvancedBitLockerStatePFixedDriveEncryptionMethodMismatch = AdvancedBitLockerStateVFixedDriveEncryptionMethodMismatch
+ _AdvancedBitLockerStatePLoggedOnUserNonAdmin = AdvancedBitLockerStateVLoggedOnUserNonAdmin
+ _AdvancedBitLockerStatePWindowsRecoveryEnvironmentNotConfigured = AdvancedBitLockerStateVWindowsRecoveryEnvironmentNotConfigured
+ _AdvancedBitLockerStatePTpmNotAvailable = AdvancedBitLockerStateVTpmNotAvailable
+ _AdvancedBitLockerStatePTpmNotReady = AdvancedBitLockerStateVTpmNotReady
+ _AdvancedBitLockerStatePNetworkError = AdvancedBitLockerStateVNetworkError
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgent.go
new file mode 100644
index 00000000..b1bc869f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgent.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AgentStatus undocumented
+type AgentStatus string
+
+const (
+ // AgentStatusVActive undocumented
+ AgentStatusVActive AgentStatus = "active"
+ // AgentStatusVInactive undocumented
+ AgentStatusVInactive AgentStatus = "inactive"
+)
+
+var (
+ // AgentStatusPActive is a pointer to AgentStatusVActive
+ AgentStatusPActive = &_AgentStatusPActive
+ // AgentStatusPInactive is a pointer to AgentStatusVInactive
+ AgentStatusPInactive = &_AgentStatusPInactive
+)
+
+var (
+ _AgentStatusPActive = AgentStatusVActive
+ _AgentStatusPInactive = AgentStatusVInactive
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgreement.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgreement.go
new file mode 100644
index 00000000..c56b8bd8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAgreement.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AgreementAcceptanceState undocumented
+type AgreementAcceptanceState string
+
+const (
+ // AgreementAcceptanceStateVAccepted undocumented
+ AgreementAcceptanceStateVAccepted AgreementAcceptanceState = "accepted"
+ // AgreementAcceptanceStateVDeclined undocumented
+ AgreementAcceptanceStateVDeclined AgreementAcceptanceState = "declined"
+)
+
+var (
+ // AgreementAcceptanceStatePAccepted is a pointer to AgreementAcceptanceStateVAccepted
+ AgreementAcceptanceStatePAccepted = &_AgreementAcceptanceStatePAccepted
+ // AgreementAcceptanceStatePDeclined is a pointer to AgreementAcceptanceStateVDeclined
+ AgreementAcceptanceStatePDeclined = &_AgreementAcceptanceStatePDeclined
+)
+
+var (
+ _AgreementAcceptanceStatePAccepted = AgreementAcceptanceStateVAccepted
+ _AgreementAcceptanceStatePDeclined = AgreementAcceptanceStateVDeclined
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlert.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlert.go
new file mode 100644
index 00000000..ba83ba61
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlert.go
@@ -0,0 +1,124 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlertFeedback undocumented
+type AlertFeedback string
+
+const (
+ // AlertFeedbackVUnknown undocumented
+ AlertFeedbackVUnknown AlertFeedback = "unknown"
+ // AlertFeedbackVTruePositive undocumented
+ AlertFeedbackVTruePositive AlertFeedback = "truePositive"
+ // AlertFeedbackVFalsePositive undocumented
+ AlertFeedbackVFalsePositive AlertFeedback = "falsePositive"
+ // AlertFeedbackVBenignPositive undocumented
+ AlertFeedbackVBenignPositive AlertFeedback = "benignPositive"
+ // AlertFeedbackVUnknownFutureValue undocumented
+ AlertFeedbackVUnknownFutureValue AlertFeedback = "unknownFutureValue"
+)
+
+var (
+ // AlertFeedbackPUnknown is a pointer to AlertFeedbackVUnknown
+ AlertFeedbackPUnknown = &_AlertFeedbackPUnknown
+ // AlertFeedbackPTruePositive is a pointer to AlertFeedbackVTruePositive
+ AlertFeedbackPTruePositive = &_AlertFeedbackPTruePositive
+ // AlertFeedbackPFalsePositive is a pointer to AlertFeedbackVFalsePositive
+ AlertFeedbackPFalsePositive = &_AlertFeedbackPFalsePositive
+ // AlertFeedbackPBenignPositive is a pointer to AlertFeedbackVBenignPositive
+ AlertFeedbackPBenignPositive = &_AlertFeedbackPBenignPositive
+ // AlertFeedbackPUnknownFutureValue is a pointer to AlertFeedbackVUnknownFutureValue
+ AlertFeedbackPUnknownFutureValue = &_AlertFeedbackPUnknownFutureValue
+)
+
+var (
+ _AlertFeedbackPUnknown = AlertFeedbackVUnknown
+ _AlertFeedbackPTruePositive = AlertFeedbackVTruePositive
+ _AlertFeedbackPFalsePositive = AlertFeedbackVFalsePositive
+ _AlertFeedbackPBenignPositive = AlertFeedbackVBenignPositive
+ _AlertFeedbackPUnknownFutureValue = AlertFeedbackVUnknownFutureValue
+)
+
+// AlertSeverity undocumented
+type AlertSeverity string
+
+const (
+ // AlertSeverityVUnknown undocumented
+ AlertSeverityVUnknown AlertSeverity = "unknown"
+ // AlertSeverityVInformational undocumented
+ AlertSeverityVInformational AlertSeverity = "informational"
+ // AlertSeverityVLow undocumented
+ AlertSeverityVLow AlertSeverity = "low"
+ // AlertSeverityVMedium undocumented
+ AlertSeverityVMedium AlertSeverity = "medium"
+ // AlertSeverityVHigh undocumented
+ AlertSeverityVHigh AlertSeverity = "high"
+ // AlertSeverityVUnknownFutureValue undocumented
+ AlertSeverityVUnknownFutureValue AlertSeverity = "unknownFutureValue"
+)
+
+var (
+ // AlertSeverityPUnknown is a pointer to AlertSeverityVUnknown
+ AlertSeverityPUnknown = &_AlertSeverityPUnknown
+ // AlertSeverityPInformational is a pointer to AlertSeverityVInformational
+ AlertSeverityPInformational = &_AlertSeverityPInformational
+ // AlertSeverityPLow is a pointer to AlertSeverityVLow
+ AlertSeverityPLow = &_AlertSeverityPLow
+ // AlertSeverityPMedium is a pointer to AlertSeverityVMedium
+ AlertSeverityPMedium = &_AlertSeverityPMedium
+ // AlertSeverityPHigh is a pointer to AlertSeverityVHigh
+ AlertSeverityPHigh = &_AlertSeverityPHigh
+ // AlertSeverityPUnknownFutureValue is a pointer to AlertSeverityVUnknownFutureValue
+ AlertSeverityPUnknownFutureValue = &_AlertSeverityPUnknownFutureValue
+)
+
+var (
+ _AlertSeverityPUnknown = AlertSeverityVUnknown
+ _AlertSeverityPInformational = AlertSeverityVInformational
+ _AlertSeverityPLow = AlertSeverityVLow
+ _AlertSeverityPMedium = AlertSeverityVMedium
+ _AlertSeverityPHigh = AlertSeverityVHigh
+ _AlertSeverityPUnknownFutureValue = AlertSeverityVUnknownFutureValue
+)
+
+// AlertStatus undocumented
+type AlertStatus string
+
+const (
+ // AlertStatusVUnknown undocumented
+ AlertStatusVUnknown AlertStatus = "unknown"
+ // AlertStatusVNewAlert undocumented
+ AlertStatusVNewAlert AlertStatus = "newAlert"
+ // AlertStatusVInProgress undocumented
+ AlertStatusVInProgress AlertStatus = "inProgress"
+ // AlertStatusVResolved undocumented
+ AlertStatusVResolved AlertStatus = "resolved"
+ // AlertStatusVDismissed undocumented
+ AlertStatusVDismissed AlertStatus = "dismissed"
+ // AlertStatusVUnknownFutureValue undocumented
+ AlertStatusVUnknownFutureValue AlertStatus = "unknownFutureValue"
+)
+
+var (
+ // AlertStatusPUnknown is a pointer to AlertStatusVUnknown
+ AlertStatusPUnknown = &_AlertStatusPUnknown
+ // AlertStatusPNewAlert is a pointer to AlertStatusVNewAlert
+ AlertStatusPNewAlert = &_AlertStatusPNewAlert
+ // AlertStatusPInProgress is a pointer to AlertStatusVInProgress
+ AlertStatusPInProgress = &_AlertStatusPInProgress
+ // AlertStatusPResolved is a pointer to AlertStatusVResolved
+ AlertStatusPResolved = &_AlertStatusPResolved
+ // AlertStatusPDismissed is a pointer to AlertStatusVDismissed
+ AlertStatusPDismissed = &_AlertStatusPDismissed
+ // AlertStatusPUnknownFutureValue is a pointer to AlertStatusVUnknownFutureValue
+ AlertStatusPUnknownFutureValue = &_AlertStatusPUnknownFutureValue
+)
+
+var (
+ _AlertStatusPUnknown = AlertStatusVUnknown
+ _AlertStatusPNewAlert = AlertStatusVNewAlert
+ _AlertStatusPInProgress = AlertStatusVInProgress
+ _AlertStatusPResolved = AlertStatusVResolved
+ _AlertStatusPDismissed = AlertStatusVDismissed
+ _AlertStatusPUnknownFutureValue = AlertStatusVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlignment.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlignment.go
new file mode 100644
index 00000000..dcca8371
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAlignment.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Alignment undocumented
+type Alignment string
+
+const (
+ // AlignmentVLeft undocumented
+ AlignmentVLeft Alignment = "left"
+ // AlignmentVRight undocumented
+ AlignmentVRight Alignment = "right"
+ // AlignmentVCenter undocumented
+ AlignmentVCenter Alignment = "center"
+)
+
+var (
+ // AlignmentPLeft is a pointer to AlignmentVLeft
+ AlignmentPLeft = &_AlignmentPLeft
+ // AlignmentPRight is a pointer to AlignmentVRight
+ AlignmentPRight = &_AlignmentPRight
+ // AlignmentPCenter is a pointer to AlignmentVCenter
+ AlignmentPCenter = &_AlignmentPCenter
+)
+
+var (
+ _AlignmentPLeft = AlignmentVLeft
+ _AlignmentPRight = AlignmentVRight
+ _AlignmentPCenter = AlignmentVCenter
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAllowed.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAllowed.go
new file mode 100644
index 00000000..b34924cf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAllowed.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllowedAudiences undocumented
+type AllowedAudiences string
+
+const (
+ // AllowedAudiencesVMe undocumented
+ AllowedAudiencesVMe AllowedAudiences = "me"
+ // AllowedAudiencesVFamily undocumented
+ AllowedAudiencesVFamily AllowedAudiences = "family"
+ // AllowedAudiencesVContacts undocumented
+ AllowedAudiencesVContacts AllowedAudiences = "contacts"
+ // AllowedAudiencesVGroupMembers undocumented
+ AllowedAudiencesVGroupMembers AllowedAudiences = "groupMembers"
+ // AllowedAudiencesVOrganization undocumented
+ AllowedAudiencesVOrganization AllowedAudiences = "organization"
+ // AllowedAudiencesVFederatedOrganizations undocumented
+ AllowedAudiencesVFederatedOrganizations AllowedAudiences = "federatedOrganizations"
+ // AllowedAudiencesVEveryone undocumented
+ AllowedAudiencesVEveryone AllowedAudiences = "everyone"
+ // AllowedAudiencesVUnknownFutureValue undocumented
+ AllowedAudiencesVUnknownFutureValue AllowedAudiences = "unknownFutureValue"
+)
+
+var (
+ // AllowedAudiencesPMe is a pointer to AllowedAudiencesVMe
+ AllowedAudiencesPMe = &_AllowedAudiencesPMe
+ // AllowedAudiencesPFamily is a pointer to AllowedAudiencesVFamily
+ AllowedAudiencesPFamily = &_AllowedAudiencesPFamily
+ // AllowedAudiencesPContacts is a pointer to AllowedAudiencesVContacts
+ AllowedAudiencesPContacts = &_AllowedAudiencesPContacts
+ // AllowedAudiencesPGroupMembers is a pointer to AllowedAudiencesVGroupMembers
+ AllowedAudiencesPGroupMembers = &_AllowedAudiencesPGroupMembers
+ // AllowedAudiencesPOrganization is a pointer to AllowedAudiencesVOrganization
+ AllowedAudiencesPOrganization = &_AllowedAudiencesPOrganization
+ // AllowedAudiencesPFederatedOrganizations is a pointer to AllowedAudiencesVFederatedOrganizations
+ AllowedAudiencesPFederatedOrganizations = &_AllowedAudiencesPFederatedOrganizations
+ // AllowedAudiencesPEveryone is a pointer to AllowedAudiencesVEveryone
+ AllowedAudiencesPEveryone = &_AllowedAudiencesPEveryone
+ // AllowedAudiencesPUnknownFutureValue is a pointer to AllowedAudiencesVUnknownFutureValue
+ AllowedAudiencesPUnknownFutureValue = &_AllowedAudiencesPUnknownFutureValue
+)
+
+var (
+ _AllowedAudiencesPMe = AllowedAudiencesVMe
+ _AllowedAudiencesPFamily = AllowedAudiencesVFamily
+ _AllowedAudiencesPContacts = AllowedAudiencesVContacts
+ _AllowedAudiencesPGroupMembers = AllowedAudiencesVGroupMembers
+ _AllowedAudiencesPOrganization = AllowedAudiencesVOrganization
+ _AllowedAudiencesPFederatedOrganizations = AllowedAudiencesVFederatedOrganizations
+ _AllowedAudiencesPEveryone = AllowedAudiencesVEveryone
+ _AllowedAudiencesPUnknownFutureValue = AllowedAudiencesVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnalytics.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnalytics.go
new file mode 100644
index 00000000..b26f7937
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnalytics.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AnalyticsActivityType undocumented
+type AnalyticsActivityType string
+
+const (
+ // AnalyticsActivityTypeVEmail undocumented
+ AnalyticsActivityTypeVEmail AnalyticsActivityType = "Email"
+ // AnalyticsActivityTypeVMeeting undocumented
+ AnalyticsActivityTypeVMeeting AnalyticsActivityType = "Meeting"
+ // AnalyticsActivityTypeVFocus undocumented
+ AnalyticsActivityTypeVFocus AnalyticsActivityType = "Focus"
+ // AnalyticsActivityTypeVChat undocumented
+ AnalyticsActivityTypeVChat AnalyticsActivityType = "Chat"
+ // AnalyticsActivityTypeVCall undocumented
+ AnalyticsActivityTypeVCall AnalyticsActivityType = "Call"
+)
+
+var (
+ // AnalyticsActivityTypePEmail is a pointer to AnalyticsActivityTypeVEmail
+ AnalyticsActivityTypePEmail = &_AnalyticsActivityTypePEmail
+ // AnalyticsActivityTypePMeeting is a pointer to AnalyticsActivityTypeVMeeting
+ AnalyticsActivityTypePMeeting = &_AnalyticsActivityTypePMeeting
+ // AnalyticsActivityTypePFocus is a pointer to AnalyticsActivityTypeVFocus
+ AnalyticsActivityTypePFocus = &_AnalyticsActivityTypePFocus
+ // AnalyticsActivityTypePChat is a pointer to AnalyticsActivityTypeVChat
+ AnalyticsActivityTypePChat = &_AnalyticsActivityTypePChat
+ // AnalyticsActivityTypePCall is a pointer to AnalyticsActivityTypeVCall
+ AnalyticsActivityTypePCall = &_AnalyticsActivityTypePCall
+)
+
+var (
+ _AnalyticsActivityTypePEmail = AnalyticsActivityTypeVEmail
+ _AnalyticsActivityTypePMeeting = AnalyticsActivityTypeVMeeting
+ _AnalyticsActivityTypePFocus = AnalyticsActivityTypeVFocus
+ _AnalyticsActivityTypePChat = AnalyticsActivityTypeVChat
+ _AnalyticsActivityTypePCall = AnalyticsActivityTypeVCall
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAndroid.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAndroid.go
new file mode 100644
index 00000000..f8124e40
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAndroid.go
@@ -0,0 +1,1224 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AndroidDeviceOwnerAppAutoUpdatePolicyType undocumented
+type AndroidDeviceOwnerAppAutoUpdatePolicyType string
+
+const (
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured AndroidDeviceOwnerAppAutoUpdatePolicyType = "notConfigured"
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice AndroidDeviceOwnerAppAutoUpdatePolicyType = "userChoice"
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever AndroidDeviceOwnerAppAutoUpdatePolicyType = "never"
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly AndroidDeviceOwnerAppAutoUpdatePolicyType = "wiFiOnly"
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways undocumented
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways AndroidDeviceOwnerAppAutoUpdatePolicyType = "always"
+)
+
+var (
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly
+ // AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways is a pointer to AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways
+ AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways = &_AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways
+)
+
+var (
+ _AndroidDeviceOwnerAppAutoUpdatePolicyTypePNotConfigured = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNotConfigured
+ _AndroidDeviceOwnerAppAutoUpdatePolicyTypePUserChoice = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVUserChoice
+ _AndroidDeviceOwnerAppAutoUpdatePolicyTypePNever = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVNever
+ _AndroidDeviceOwnerAppAutoUpdatePolicyTypePWiFiOnly = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVWiFiOnly
+ _AndroidDeviceOwnerAppAutoUpdatePolicyTypePAlways = AndroidDeviceOwnerAppAutoUpdatePolicyTypeVAlways
+)
+
+// AndroidDeviceOwnerBatteryPluggedMode undocumented
+type AndroidDeviceOwnerBatteryPluggedMode string
+
+const (
+ // AndroidDeviceOwnerBatteryPluggedModeVNotConfigured undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVNotConfigured AndroidDeviceOwnerBatteryPluggedMode = "notConfigured"
+ // AndroidDeviceOwnerBatteryPluggedModeVAc undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVAc AndroidDeviceOwnerBatteryPluggedMode = "ac"
+ // AndroidDeviceOwnerBatteryPluggedModeVUsb undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVUsb AndroidDeviceOwnerBatteryPluggedMode = "usb"
+ // AndroidDeviceOwnerBatteryPluggedModeVWireless undocumented
+ AndroidDeviceOwnerBatteryPluggedModeVWireless AndroidDeviceOwnerBatteryPluggedMode = "wireless"
+)
+
+var (
+ // AndroidDeviceOwnerBatteryPluggedModePNotConfigured is a pointer to AndroidDeviceOwnerBatteryPluggedModeVNotConfigured
+ AndroidDeviceOwnerBatteryPluggedModePNotConfigured = &_AndroidDeviceOwnerBatteryPluggedModePNotConfigured
+ // AndroidDeviceOwnerBatteryPluggedModePAc is a pointer to AndroidDeviceOwnerBatteryPluggedModeVAc
+ AndroidDeviceOwnerBatteryPluggedModePAc = &_AndroidDeviceOwnerBatteryPluggedModePAc
+ // AndroidDeviceOwnerBatteryPluggedModePUsb is a pointer to AndroidDeviceOwnerBatteryPluggedModeVUsb
+ AndroidDeviceOwnerBatteryPluggedModePUsb = &_AndroidDeviceOwnerBatteryPluggedModePUsb
+ // AndroidDeviceOwnerBatteryPluggedModePWireless is a pointer to AndroidDeviceOwnerBatteryPluggedModeVWireless
+ AndroidDeviceOwnerBatteryPluggedModePWireless = &_AndroidDeviceOwnerBatteryPluggedModePWireless
+)
+
+var (
+ _AndroidDeviceOwnerBatteryPluggedModePNotConfigured = AndroidDeviceOwnerBatteryPluggedModeVNotConfigured
+ _AndroidDeviceOwnerBatteryPluggedModePAc = AndroidDeviceOwnerBatteryPluggedModeVAc
+ _AndroidDeviceOwnerBatteryPluggedModePUsb = AndroidDeviceOwnerBatteryPluggedModeVUsb
+ _AndroidDeviceOwnerBatteryPluggedModePWireless = AndroidDeviceOwnerBatteryPluggedModeVWireless
+)
+
+// AndroidDeviceOwnerDefaultAppPermissionPolicyType undocumented
+type AndroidDeviceOwnerDefaultAppPermissionPolicyType string
+
+const (
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault AndroidDeviceOwnerDefaultAppPermissionPolicyType = "deviceDefault"
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt AndroidDeviceOwnerDefaultAppPermissionPolicyType = "prompt"
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant AndroidDeviceOwnerDefaultAppPermissionPolicyType = "autoGrant"
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny undocumented
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny AndroidDeviceOwnerDefaultAppPermissionPolicyType = "autoDeny"
+)
+
+var (
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault is a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault = &_AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt is a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt = &_AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant is a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant = &_AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant
+ // AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny is a pointer to AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny
+ AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny = &_AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny
+)
+
+var (
+ _AndroidDeviceOwnerDefaultAppPermissionPolicyTypePDeviceDefault = AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVDeviceDefault
+ _AndroidDeviceOwnerDefaultAppPermissionPolicyTypePPrompt = AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVPrompt
+ _AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoGrant = AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoGrant
+ _AndroidDeviceOwnerDefaultAppPermissionPolicyTypePAutoDeny = AndroidDeviceOwnerDefaultAppPermissionPolicyTypeVAutoDeny
+)
+
+// AndroidDeviceOwnerPlayStoreMode undocumented
+type AndroidDeviceOwnerPlayStoreMode string
+
+const (
+ // AndroidDeviceOwnerPlayStoreModeVNotConfigured undocumented
+ AndroidDeviceOwnerPlayStoreModeVNotConfigured AndroidDeviceOwnerPlayStoreMode = "notConfigured"
+ // AndroidDeviceOwnerPlayStoreModeVAllowList undocumented
+ AndroidDeviceOwnerPlayStoreModeVAllowList AndroidDeviceOwnerPlayStoreMode = "allowList"
+ // AndroidDeviceOwnerPlayStoreModeVBlockList undocumented
+ AndroidDeviceOwnerPlayStoreModeVBlockList AndroidDeviceOwnerPlayStoreMode = "blockList"
+)
+
+var (
+ // AndroidDeviceOwnerPlayStoreModePNotConfigured is a pointer to AndroidDeviceOwnerPlayStoreModeVNotConfigured
+ AndroidDeviceOwnerPlayStoreModePNotConfigured = &_AndroidDeviceOwnerPlayStoreModePNotConfigured
+ // AndroidDeviceOwnerPlayStoreModePAllowList is a pointer to AndroidDeviceOwnerPlayStoreModeVAllowList
+ AndroidDeviceOwnerPlayStoreModePAllowList = &_AndroidDeviceOwnerPlayStoreModePAllowList
+ // AndroidDeviceOwnerPlayStoreModePBlockList is a pointer to AndroidDeviceOwnerPlayStoreModeVBlockList
+ AndroidDeviceOwnerPlayStoreModePBlockList = &_AndroidDeviceOwnerPlayStoreModePBlockList
+)
+
+var (
+ _AndroidDeviceOwnerPlayStoreModePNotConfigured = AndroidDeviceOwnerPlayStoreModeVNotConfigured
+ _AndroidDeviceOwnerPlayStoreModePAllowList = AndroidDeviceOwnerPlayStoreModeVAllowList
+ _AndroidDeviceOwnerPlayStoreModePBlockList = AndroidDeviceOwnerPlayStoreModeVBlockList
+)
+
+// AndroidDeviceOwnerRequiredPasswordType undocumented
+type AndroidDeviceOwnerRequiredPasswordType string
+
+const (
+ // AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault AndroidDeviceOwnerRequiredPasswordType = "deviceDefault"
+ // AndroidDeviceOwnerRequiredPasswordTypeVRequired undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVRequired AndroidDeviceOwnerRequiredPasswordType = "required"
+ // AndroidDeviceOwnerRequiredPasswordTypeVNumeric undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVNumeric AndroidDeviceOwnerRequiredPasswordType = "numeric"
+ // AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex AndroidDeviceOwnerRequiredPasswordType = "numericComplex"
+ // AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic AndroidDeviceOwnerRequiredPasswordType = "alphabetic"
+ // AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric AndroidDeviceOwnerRequiredPasswordType = "alphanumeric"
+ // AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols AndroidDeviceOwnerRequiredPasswordType = "alphanumericWithSymbols"
+ // AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric AndroidDeviceOwnerRequiredPasswordType = "lowSecurityBiometric"
+ // AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword undocumented
+ AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword AndroidDeviceOwnerRequiredPasswordType = "customPassword"
+)
+
+var (
+ // AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault
+ AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault = &_AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault
+ // AndroidDeviceOwnerRequiredPasswordTypePRequired is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVRequired
+ AndroidDeviceOwnerRequiredPasswordTypePRequired = &_AndroidDeviceOwnerRequiredPasswordTypePRequired
+ // AndroidDeviceOwnerRequiredPasswordTypePNumeric is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVNumeric
+ AndroidDeviceOwnerRequiredPasswordTypePNumeric = &_AndroidDeviceOwnerRequiredPasswordTypePNumeric
+ // AndroidDeviceOwnerRequiredPasswordTypePNumericComplex is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex
+ AndroidDeviceOwnerRequiredPasswordTypePNumericComplex = &_AndroidDeviceOwnerRequiredPasswordTypePNumericComplex
+ // AndroidDeviceOwnerRequiredPasswordTypePAlphabetic is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic
+ AndroidDeviceOwnerRequiredPasswordTypePAlphabetic = &_AndroidDeviceOwnerRequiredPasswordTypePAlphabetic
+ // AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric
+ AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric = &_AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric
+ // AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols
+ AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols = &_AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols
+ // AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric
+ AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric = &_AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric
+ // AndroidDeviceOwnerRequiredPasswordTypePCustomPassword is a pointer to AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword
+ AndroidDeviceOwnerRequiredPasswordTypePCustomPassword = &_AndroidDeviceOwnerRequiredPasswordTypePCustomPassword
+)
+
+var (
+ _AndroidDeviceOwnerRequiredPasswordTypePDeviceDefault = AndroidDeviceOwnerRequiredPasswordTypeVDeviceDefault
+ _AndroidDeviceOwnerRequiredPasswordTypePRequired = AndroidDeviceOwnerRequiredPasswordTypeVRequired
+ _AndroidDeviceOwnerRequiredPasswordTypePNumeric = AndroidDeviceOwnerRequiredPasswordTypeVNumeric
+ _AndroidDeviceOwnerRequiredPasswordTypePNumericComplex = AndroidDeviceOwnerRequiredPasswordTypeVNumericComplex
+ _AndroidDeviceOwnerRequiredPasswordTypePAlphabetic = AndroidDeviceOwnerRequiredPasswordTypeVAlphabetic
+ _AndroidDeviceOwnerRequiredPasswordTypePAlphanumeric = AndroidDeviceOwnerRequiredPasswordTypeVAlphanumeric
+ _AndroidDeviceOwnerRequiredPasswordTypePAlphanumericWithSymbols = AndroidDeviceOwnerRequiredPasswordTypeVAlphanumericWithSymbols
+ _AndroidDeviceOwnerRequiredPasswordTypePLowSecurityBiometric = AndroidDeviceOwnerRequiredPasswordTypeVLowSecurityBiometric
+ _AndroidDeviceOwnerRequiredPasswordTypePCustomPassword = AndroidDeviceOwnerRequiredPasswordTypeVCustomPassword
+)
+
+// AndroidDeviceOwnerSystemUpdateInstallType undocumented
+type AndroidDeviceOwnerSystemUpdateInstallType string
+
+const (
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault AndroidDeviceOwnerSystemUpdateInstallType = "deviceDefault"
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone AndroidDeviceOwnerSystemUpdateInstallType = "postpone"
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed AndroidDeviceOwnerSystemUpdateInstallType = "windowed"
+ // AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic undocumented
+ AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic AndroidDeviceOwnerSystemUpdateInstallType = "automatic"
+)
+
+var (
+ // AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault is a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault
+ AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault = &_AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault
+ // AndroidDeviceOwnerSystemUpdateInstallTypePPostpone is a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone
+ AndroidDeviceOwnerSystemUpdateInstallTypePPostpone = &_AndroidDeviceOwnerSystemUpdateInstallTypePPostpone
+ // AndroidDeviceOwnerSystemUpdateInstallTypePWindowed is a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed
+ AndroidDeviceOwnerSystemUpdateInstallTypePWindowed = &_AndroidDeviceOwnerSystemUpdateInstallTypePWindowed
+ // AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic is a pointer to AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic
+ AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic = &_AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic
+)
+
+var (
+ _AndroidDeviceOwnerSystemUpdateInstallTypePDeviceDefault = AndroidDeviceOwnerSystemUpdateInstallTypeVDeviceDefault
+ _AndroidDeviceOwnerSystemUpdateInstallTypePPostpone = AndroidDeviceOwnerSystemUpdateInstallTypeVPostpone
+ _AndroidDeviceOwnerSystemUpdateInstallTypePWindowed = AndroidDeviceOwnerSystemUpdateInstallTypeVWindowed
+ _AndroidDeviceOwnerSystemUpdateInstallTypePAutomatic = AndroidDeviceOwnerSystemUpdateInstallTypeVAutomatic
+)
+
+// AndroidDeviceOwnerVirtualHomeButtonType undocumented
+type AndroidDeviceOwnerVirtualHomeButtonType string
+
+const (
+ // AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured undocumented
+ AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured AndroidDeviceOwnerVirtualHomeButtonType = "notConfigured"
+ // AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp undocumented
+ AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp AndroidDeviceOwnerVirtualHomeButtonType = "swipeUp"
+ // AndroidDeviceOwnerVirtualHomeButtonTypeVFloating undocumented
+ AndroidDeviceOwnerVirtualHomeButtonTypeVFloating AndroidDeviceOwnerVirtualHomeButtonType = "floating"
+)
+
+var (
+ // AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured is a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured
+ AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured = &_AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured
+ // AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp is a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp
+ AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp = &_AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp
+ // AndroidDeviceOwnerVirtualHomeButtonTypePFloating is a pointer to AndroidDeviceOwnerVirtualHomeButtonTypeVFloating
+ AndroidDeviceOwnerVirtualHomeButtonTypePFloating = &_AndroidDeviceOwnerVirtualHomeButtonTypePFloating
+)
+
+var (
+ _AndroidDeviceOwnerVirtualHomeButtonTypePNotConfigured = AndroidDeviceOwnerVirtualHomeButtonTypeVNotConfigured
+ _AndroidDeviceOwnerVirtualHomeButtonTypePSwipeUp = AndroidDeviceOwnerVirtualHomeButtonTypeVSwipeUp
+ _AndroidDeviceOwnerVirtualHomeButtonTypePFloating = AndroidDeviceOwnerVirtualHomeButtonTypeVFloating
+)
+
+// AndroidDeviceOwnerWiFiSecurityType undocumented
+type AndroidDeviceOwnerWiFiSecurityType string
+
+const (
+ // AndroidDeviceOwnerWiFiSecurityTypeVOpen undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVOpen AndroidDeviceOwnerWiFiSecurityType = "open"
+ // AndroidDeviceOwnerWiFiSecurityTypeVWep undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVWep AndroidDeviceOwnerWiFiSecurityType = "wep"
+ // AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal AndroidDeviceOwnerWiFiSecurityType = "wpaPersonal"
+ // AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise undocumented
+ AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise AndroidDeviceOwnerWiFiSecurityType = "wpaEnterprise"
+)
+
+var (
+ // AndroidDeviceOwnerWiFiSecurityTypePOpen is a pointer to AndroidDeviceOwnerWiFiSecurityTypeVOpen
+ AndroidDeviceOwnerWiFiSecurityTypePOpen = &_AndroidDeviceOwnerWiFiSecurityTypePOpen
+ // AndroidDeviceOwnerWiFiSecurityTypePWep is a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWep
+ AndroidDeviceOwnerWiFiSecurityTypePWep = &_AndroidDeviceOwnerWiFiSecurityTypePWep
+ // AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal is a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal
+ AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal = &_AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal
+ // AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise is a pointer to AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise
+ AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise = &_AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise
+)
+
+var (
+ _AndroidDeviceOwnerWiFiSecurityTypePOpen = AndroidDeviceOwnerWiFiSecurityTypeVOpen
+ _AndroidDeviceOwnerWiFiSecurityTypePWep = AndroidDeviceOwnerWiFiSecurityTypeVWep
+ _AndroidDeviceOwnerWiFiSecurityTypePWpaPersonal = AndroidDeviceOwnerWiFiSecurityTypeVWpaPersonal
+ _AndroidDeviceOwnerWiFiSecurityTypePWpaEnterprise = AndroidDeviceOwnerWiFiSecurityTypeVWpaEnterprise
+)
+
+// AndroidEapType undocumented
+type AndroidEapType string
+
+const (
+ // AndroidEapTypeVEapTLS undocumented
+ AndroidEapTypeVEapTLS AndroidEapType = "eapTls"
+ // AndroidEapTypeVEapTtls undocumented
+ AndroidEapTypeVEapTtls AndroidEapType = "eapTtls"
+ // AndroidEapTypeVPeap undocumented
+ AndroidEapTypeVPeap AndroidEapType = "peap"
+)
+
+var (
+ // AndroidEapTypePEapTLS is a pointer to AndroidEapTypeVEapTLS
+ AndroidEapTypePEapTLS = &_AndroidEapTypePEapTLS
+ // AndroidEapTypePEapTtls is a pointer to AndroidEapTypeVEapTtls
+ AndroidEapTypePEapTtls = &_AndroidEapTypePEapTtls
+ // AndroidEapTypePPeap is a pointer to AndroidEapTypeVPeap
+ AndroidEapTypePPeap = &_AndroidEapTypePPeap
+)
+
+var (
+ _AndroidEapTypePEapTLS = AndroidEapTypeVEapTLS
+ _AndroidEapTypePEapTtls = AndroidEapTypeVEapTtls
+ _AndroidEapTypePPeap = AndroidEapTypeVPeap
+)
+
+// AndroidForWorkAppConfigurationSchemaItemDataType undocumented
+type AndroidForWorkAppConfigurationSchemaItemDataType string
+
+const (
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVBool undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVBool AndroidForWorkAppConfigurationSchemaItemDataType = "bool"
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger AndroidForWorkAppConfigurationSchemaItemDataType = "integer"
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVString undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVString AndroidForWorkAppConfigurationSchemaItemDataType = "string"
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice AndroidForWorkAppConfigurationSchemaItemDataType = "choice"
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect AndroidForWorkAppConfigurationSchemaItemDataType = "multiselect"
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle AndroidForWorkAppConfigurationSchemaItemDataType = "bundle"
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray AndroidForWorkAppConfigurationSchemaItemDataType = "bundleArray"
+ // AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden undocumented
+ AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden AndroidForWorkAppConfigurationSchemaItemDataType = "hidden"
+)
+
+var (
+ // AndroidForWorkAppConfigurationSchemaItemDataTypePBool is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBool
+ AndroidForWorkAppConfigurationSchemaItemDataTypePBool = &_AndroidForWorkAppConfigurationSchemaItemDataTypePBool
+ // AndroidForWorkAppConfigurationSchemaItemDataTypePInteger is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger
+ AndroidForWorkAppConfigurationSchemaItemDataTypePInteger = &_AndroidForWorkAppConfigurationSchemaItemDataTypePInteger
+ // AndroidForWorkAppConfigurationSchemaItemDataTypePString is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVString
+ AndroidForWorkAppConfigurationSchemaItemDataTypePString = &_AndroidForWorkAppConfigurationSchemaItemDataTypePString
+ // AndroidForWorkAppConfigurationSchemaItemDataTypePChoice is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice
+ AndroidForWorkAppConfigurationSchemaItemDataTypePChoice = &_AndroidForWorkAppConfigurationSchemaItemDataTypePChoice
+ // AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect
+ AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect = &_AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect
+ // AndroidForWorkAppConfigurationSchemaItemDataTypePBundle is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle
+ AndroidForWorkAppConfigurationSchemaItemDataTypePBundle = &_AndroidForWorkAppConfigurationSchemaItemDataTypePBundle
+ // AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray
+ AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray = &_AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray
+ // AndroidForWorkAppConfigurationSchemaItemDataTypePHidden is a pointer to AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden
+ AndroidForWorkAppConfigurationSchemaItemDataTypePHidden = &_AndroidForWorkAppConfigurationSchemaItemDataTypePHidden
+)
+
+var (
+ _AndroidForWorkAppConfigurationSchemaItemDataTypePBool = AndroidForWorkAppConfigurationSchemaItemDataTypeVBool
+ _AndroidForWorkAppConfigurationSchemaItemDataTypePInteger = AndroidForWorkAppConfigurationSchemaItemDataTypeVInteger
+ _AndroidForWorkAppConfigurationSchemaItemDataTypePString = AndroidForWorkAppConfigurationSchemaItemDataTypeVString
+ _AndroidForWorkAppConfigurationSchemaItemDataTypePChoice = AndroidForWorkAppConfigurationSchemaItemDataTypeVChoice
+ _AndroidForWorkAppConfigurationSchemaItemDataTypePMultiselect = AndroidForWorkAppConfigurationSchemaItemDataTypeVMultiselect
+ _AndroidForWorkAppConfigurationSchemaItemDataTypePBundle = AndroidForWorkAppConfigurationSchemaItemDataTypeVBundle
+ _AndroidForWorkAppConfigurationSchemaItemDataTypePBundleArray = AndroidForWorkAppConfigurationSchemaItemDataTypeVBundleArray
+ _AndroidForWorkAppConfigurationSchemaItemDataTypePHidden = AndroidForWorkAppConfigurationSchemaItemDataTypeVHidden
+)
+
+// AndroidForWorkBindStatus undocumented
+type AndroidForWorkBindStatus string
+
+const (
+ // AndroidForWorkBindStatusVNotBound undocumented
+ AndroidForWorkBindStatusVNotBound AndroidForWorkBindStatus = "notBound"
+ // AndroidForWorkBindStatusVBound undocumented
+ AndroidForWorkBindStatusVBound AndroidForWorkBindStatus = "bound"
+ // AndroidForWorkBindStatusVBoundAndValidated undocumented
+ AndroidForWorkBindStatusVBoundAndValidated AndroidForWorkBindStatus = "boundAndValidated"
+ // AndroidForWorkBindStatusVUnbinding undocumented
+ AndroidForWorkBindStatusVUnbinding AndroidForWorkBindStatus = "unbinding"
+)
+
+var (
+ // AndroidForWorkBindStatusPNotBound is a pointer to AndroidForWorkBindStatusVNotBound
+ AndroidForWorkBindStatusPNotBound = &_AndroidForWorkBindStatusPNotBound
+ // AndroidForWorkBindStatusPBound is a pointer to AndroidForWorkBindStatusVBound
+ AndroidForWorkBindStatusPBound = &_AndroidForWorkBindStatusPBound
+ // AndroidForWorkBindStatusPBoundAndValidated is a pointer to AndroidForWorkBindStatusVBoundAndValidated
+ AndroidForWorkBindStatusPBoundAndValidated = &_AndroidForWorkBindStatusPBoundAndValidated
+ // AndroidForWorkBindStatusPUnbinding is a pointer to AndroidForWorkBindStatusVUnbinding
+ AndroidForWorkBindStatusPUnbinding = &_AndroidForWorkBindStatusPUnbinding
+)
+
+var (
+ _AndroidForWorkBindStatusPNotBound = AndroidForWorkBindStatusVNotBound
+ _AndroidForWorkBindStatusPBound = AndroidForWorkBindStatusVBound
+ _AndroidForWorkBindStatusPBoundAndValidated = AndroidForWorkBindStatusVBoundAndValidated
+ _AndroidForWorkBindStatusPUnbinding = AndroidForWorkBindStatusVUnbinding
+)
+
+// AndroidForWorkCrossProfileDataSharingType undocumented
+type AndroidForWorkCrossProfileDataSharingType string
+
+const (
+ // AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault AndroidForWorkCrossProfileDataSharingType = "deviceDefault"
+ // AndroidForWorkCrossProfileDataSharingTypeVPreventAny undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVPreventAny AndroidForWorkCrossProfileDataSharingType = "preventAny"
+ // AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork AndroidForWorkCrossProfileDataSharingType = "allowPersonalToWork"
+ // AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions undocumented
+ AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions AndroidForWorkCrossProfileDataSharingType = "noRestrictions"
+)
+
+var (
+ // AndroidForWorkCrossProfileDataSharingTypePDeviceDefault is a pointer to AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault
+ AndroidForWorkCrossProfileDataSharingTypePDeviceDefault = &_AndroidForWorkCrossProfileDataSharingTypePDeviceDefault
+ // AndroidForWorkCrossProfileDataSharingTypePPreventAny is a pointer to AndroidForWorkCrossProfileDataSharingTypeVPreventAny
+ AndroidForWorkCrossProfileDataSharingTypePPreventAny = &_AndroidForWorkCrossProfileDataSharingTypePPreventAny
+ // AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork is a pointer to AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork
+ AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork = &_AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork
+ // AndroidForWorkCrossProfileDataSharingTypePNoRestrictions is a pointer to AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions
+ AndroidForWorkCrossProfileDataSharingTypePNoRestrictions = &_AndroidForWorkCrossProfileDataSharingTypePNoRestrictions
+)
+
+var (
+ _AndroidForWorkCrossProfileDataSharingTypePDeviceDefault = AndroidForWorkCrossProfileDataSharingTypeVDeviceDefault
+ _AndroidForWorkCrossProfileDataSharingTypePPreventAny = AndroidForWorkCrossProfileDataSharingTypeVPreventAny
+ _AndroidForWorkCrossProfileDataSharingTypePAllowPersonalToWork = AndroidForWorkCrossProfileDataSharingTypeVAllowPersonalToWork
+ _AndroidForWorkCrossProfileDataSharingTypePNoRestrictions = AndroidForWorkCrossProfileDataSharingTypeVNoRestrictions
+)
+
+// AndroidForWorkDefaultAppPermissionPolicyType undocumented
+type AndroidForWorkDefaultAppPermissionPolicyType string
+
+const (
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault AndroidForWorkDefaultAppPermissionPolicyType = "deviceDefault"
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt AndroidForWorkDefaultAppPermissionPolicyType = "prompt"
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant AndroidForWorkDefaultAppPermissionPolicyType = "autoGrant"
+ // AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny undocumented
+ AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny AndroidForWorkDefaultAppPermissionPolicyType = "autoDeny"
+)
+
+var (
+ // AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault is a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault
+ AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault = &_AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault
+ // AndroidForWorkDefaultAppPermissionPolicyTypePPrompt is a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt
+ AndroidForWorkDefaultAppPermissionPolicyTypePPrompt = &_AndroidForWorkDefaultAppPermissionPolicyTypePPrompt
+ // AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant is a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant
+ AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant = &_AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant
+ // AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny is a pointer to AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny
+ AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny = &_AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny
+)
+
+var (
+ _AndroidForWorkDefaultAppPermissionPolicyTypePDeviceDefault = AndroidForWorkDefaultAppPermissionPolicyTypeVDeviceDefault
+ _AndroidForWorkDefaultAppPermissionPolicyTypePPrompt = AndroidForWorkDefaultAppPermissionPolicyTypeVPrompt
+ _AndroidForWorkDefaultAppPermissionPolicyTypePAutoGrant = AndroidForWorkDefaultAppPermissionPolicyTypeVAutoGrant
+ _AndroidForWorkDefaultAppPermissionPolicyTypePAutoDeny = AndroidForWorkDefaultAppPermissionPolicyTypeVAutoDeny
+)
+
+// AndroidForWorkEnrollmentTarget undocumented
+type AndroidForWorkEnrollmentTarget string
+
+const (
+ // AndroidForWorkEnrollmentTargetVNone undocumented
+ AndroidForWorkEnrollmentTargetVNone AndroidForWorkEnrollmentTarget = "none"
+ // AndroidForWorkEnrollmentTargetVAll undocumented
+ AndroidForWorkEnrollmentTargetVAll AndroidForWorkEnrollmentTarget = "all"
+ // AndroidForWorkEnrollmentTargetVTargeted undocumented
+ AndroidForWorkEnrollmentTargetVTargeted AndroidForWorkEnrollmentTarget = "targeted"
+ // AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions undocumented
+ AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions AndroidForWorkEnrollmentTarget = "targetedAsEnrollmentRestrictions"
+)
+
+var (
+ // AndroidForWorkEnrollmentTargetPNone is a pointer to AndroidForWorkEnrollmentTargetVNone
+ AndroidForWorkEnrollmentTargetPNone = &_AndroidForWorkEnrollmentTargetPNone
+ // AndroidForWorkEnrollmentTargetPAll is a pointer to AndroidForWorkEnrollmentTargetVAll
+ AndroidForWorkEnrollmentTargetPAll = &_AndroidForWorkEnrollmentTargetPAll
+ // AndroidForWorkEnrollmentTargetPTargeted is a pointer to AndroidForWorkEnrollmentTargetVTargeted
+ AndroidForWorkEnrollmentTargetPTargeted = &_AndroidForWorkEnrollmentTargetPTargeted
+ // AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions is a pointer to AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions
+ AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions = &_AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions
+)
+
+var (
+ _AndroidForWorkEnrollmentTargetPNone = AndroidForWorkEnrollmentTargetVNone
+ _AndroidForWorkEnrollmentTargetPAll = AndroidForWorkEnrollmentTargetVAll
+ _AndroidForWorkEnrollmentTargetPTargeted = AndroidForWorkEnrollmentTargetVTargeted
+ _AndroidForWorkEnrollmentTargetPTargetedAsEnrollmentRestrictions = AndroidForWorkEnrollmentTargetVTargetedAsEnrollmentRestrictions
+)
+
+// AndroidForWorkRequiredPasswordType undocumented
+type AndroidForWorkRequiredPasswordType string
+
+const (
+ // AndroidForWorkRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidForWorkRequiredPasswordTypeVDeviceDefault AndroidForWorkRequiredPasswordType = "deviceDefault"
+ // AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric AndroidForWorkRequiredPasswordType = "lowSecurityBiometric"
+ // AndroidForWorkRequiredPasswordTypeVRequired undocumented
+ AndroidForWorkRequiredPasswordTypeVRequired AndroidForWorkRequiredPasswordType = "required"
+ // AndroidForWorkRequiredPasswordTypeVAtLeastNumeric undocumented
+ AndroidForWorkRequiredPasswordTypeVAtLeastNumeric AndroidForWorkRequiredPasswordType = "atLeastNumeric"
+ // AndroidForWorkRequiredPasswordTypeVNumericComplex undocumented
+ AndroidForWorkRequiredPasswordTypeVNumericComplex AndroidForWorkRequiredPasswordType = "numericComplex"
+ // AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic undocumented
+ AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic AndroidForWorkRequiredPasswordType = "atLeastAlphabetic"
+ // AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric undocumented
+ AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric AndroidForWorkRequiredPasswordType = "atLeastAlphanumeric"
+ // AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols AndroidForWorkRequiredPasswordType = "alphanumericWithSymbols"
+)
+
+var (
+ // AndroidForWorkRequiredPasswordTypePDeviceDefault is a pointer to AndroidForWorkRequiredPasswordTypeVDeviceDefault
+ AndroidForWorkRequiredPasswordTypePDeviceDefault = &_AndroidForWorkRequiredPasswordTypePDeviceDefault
+ // AndroidForWorkRequiredPasswordTypePLowSecurityBiometric is a pointer to AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric
+ AndroidForWorkRequiredPasswordTypePLowSecurityBiometric = &_AndroidForWorkRequiredPasswordTypePLowSecurityBiometric
+ // AndroidForWorkRequiredPasswordTypePRequired is a pointer to AndroidForWorkRequiredPasswordTypeVRequired
+ AndroidForWorkRequiredPasswordTypePRequired = &_AndroidForWorkRequiredPasswordTypePRequired
+ // AndroidForWorkRequiredPasswordTypePAtLeastNumeric is a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastNumeric
+ AndroidForWorkRequiredPasswordTypePAtLeastNumeric = &_AndroidForWorkRequiredPasswordTypePAtLeastNumeric
+ // AndroidForWorkRequiredPasswordTypePNumericComplex is a pointer to AndroidForWorkRequiredPasswordTypeVNumericComplex
+ AndroidForWorkRequiredPasswordTypePNumericComplex = &_AndroidForWorkRequiredPasswordTypePNumericComplex
+ // AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic is a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic
+ AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic = &_AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic
+ // AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric is a pointer to AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric
+ AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric = &_AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric
+ // AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols is a pointer to AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols
+ AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols = &_AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols
+)
+
+var (
+ _AndroidForWorkRequiredPasswordTypePDeviceDefault = AndroidForWorkRequiredPasswordTypeVDeviceDefault
+ _AndroidForWorkRequiredPasswordTypePLowSecurityBiometric = AndroidForWorkRequiredPasswordTypeVLowSecurityBiometric
+ _AndroidForWorkRequiredPasswordTypePRequired = AndroidForWorkRequiredPasswordTypeVRequired
+ _AndroidForWorkRequiredPasswordTypePAtLeastNumeric = AndroidForWorkRequiredPasswordTypeVAtLeastNumeric
+ _AndroidForWorkRequiredPasswordTypePNumericComplex = AndroidForWorkRequiredPasswordTypeVNumericComplex
+ _AndroidForWorkRequiredPasswordTypePAtLeastAlphabetic = AndroidForWorkRequiredPasswordTypeVAtLeastAlphabetic
+ _AndroidForWorkRequiredPasswordTypePAtLeastAlphanumeric = AndroidForWorkRequiredPasswordTypeVAtLeastAlphanumeric
+ _AndroidForWorkRequiredPasswordTypePAlphanumericWithSymbols = AndroidForWorkRequiredPasswordTypeVAlphanumericWithSymbols
+)
+
+// AndroidForWorkSyncStatus undocumented
+type AndroidForWorkSyncStatus string
+
+const (
+ // AndroidForWorkSyncStatusVSuccess undocumented
+ AndroidForWorkSyncStatusVSuccess AndroidForWorkSyncStatus = "success"
+ // AndroidForWorkSyncStatusVCredentialsNotValid undocumented
+ AndroidForWorkSyncStatusVCredentialsNotValid AndroidForWorkSyncStatus = "credentialsNotValid"
+ // AndroidForWorkSyncStatusVAndroidForWorkAPIError undocumented
+ AndroidForWorkSyncStatusVAndroidForWorkAPIError AndroidForWorkSyncStatus = "androidForWorkApiError"
+ // AndroidForWorkSyncStatusVManagementServiceError undocumented
+ AndroidForWorkSyncStatusVManagementServiceError AndroidForWorkSyncStatus = "managementServiceError"
+ // AndroidForWorkSyncStatusVUnknownError undocumented
+ AndroidForWorkSyncStatusVUnknownError AndroidForWorkSyncStatus = "unknownError"
+ // AndroidForWorkSyncStatusVNone undocumented
+ AndroidForWorkSyncStatusVNone AndroidForWorkSyncStatus = "none"
+)
+
+var (
+ // AndroidForWorkSyncStatusPSuccess is a pointer to AndroidForWorkSyncStatusVSuccess
+ AndroidForWorkSyncStatusPSuccess = &_AndroidForWorkSyncStatusPSuccess
+ // AndroidForWorkSyncStatusPCredentialsNotValid is a pointer to AndroidForWorkSyncStatusVCredentialsNotValid
+ AndroidForWorkSyncStatusPCredentialsNotValid = &_AndroidForWorkSyncStatusPCredentialsNotValid
+ // AndroidForWorkSyncStatusPAndroidForWorkAPIError is a pointer to AndroidForWorkSyncStatusVAndroidForWorkAPIError
+ AndroidForWorkSyncStatusPAndroidForWorkAPIError = &_AndroidForWorkSyncStatusPAndroidForWorkAPIError
+ // AndroidForWorkSyncStatusPManagementServiceError is a pointer to AndroidForWorkSyncStatusVManagementServiceError
+ AndroidForWorkSyncStatusPManagementServiceError = &_AndroidForWorkSyncStatusPManagementServiceError
+ // AndroidForWorkSyncStatusPUnknownError is a pointer to AndroidForWorkSyncStatusVUnknownError
+ AndroidForWorkSyncStatusPUnknownError = &_AndroidForWorkSyncStatusPUnknownError
+ // AndroidForWorkSyncStatusPNone is a pointer to AndroidForWorkSyncStatusVNone
+ AndroidForWorkSyncStatusPNone = &_AndroidForWorkSyncStatusPNone
+)
+
+var (
+ _AndroidForWorkSyncStatusPSuccess = AndroidForWorkSyncStatusVSuccess
+ _AndroidForWorkSyncStatusPCredentialsNotValid = AndroidForWorkSyncStatusVCredentialsNotValid
+ _AndroidForWorkSyncStatusPAndroidForWorkAPIError = AndroidForWorkSyncStatusVAndroidForWorkAPIError
+ _AndroidForWorkSyncStatusPManagementServiceError = AndroidForWorkSyncStatusVManagementServiceError
+ _AndroidForWorkSyncStatusPUnknownError = AndroidForWorkSyncStatusVUnknownError
+ _AndroidForWorkSyncStatusPNone = AndroidForWorkSyncStatusVNone
+)
+
+// AndroidForWorkVPNConnectionType undocumented
+type AndroidForWorkVPNConnectionType string
+
+const (
+ // AndroidForWorkVPNConnectionTypeVCiscoAnyConnect undocumented
+ AndroidForWorkVPNConnectionTypeVCiscoAnyConnect AndroidForWorkVPNConnectionType = "ciscoAnyConnect"
+ // AndroidForWorkVPNConnectionTypeVPulseSecure undocumented
+ AndroidForWorkVPNConnectionTypeVPulseSecure AndroidForWorkVPNConnectionType = "pulseSecure"
+ // AndroidForWorkVPNConnectionTypeVF5EdgeClient undocumented
+ AndroidForWorkVPNConnectionTypeVF5EdgeClient AndroidForWorkVPNConnectionType = "f5EdgeClient"
+ // AndroidForWorkVPNConnectionTypeVDellSonicWallMobileConnect undocumented
+ AndroidForWorkVPNConnectionTypeVDellSonicWallMobileConnect AndroidForWorkVPNConnectionType = "dellSonicWallMobileConnect"
+ // AndroidForWorkVPNConnectionTypeVCheckPointCapsuleVPN undocumented
+ AndroidForWorkVPNConnectionTypeVCheckPointCapsuleVPN AndroidForWorkVPNConnectionType = "checkPointCapsuleVpn"
+ // AndroidForWorkVPNConnectionTypeVCitrix undocumented
+ AndroidForWorkVPNConnectionTypeVCitrix AndroidForWorkVPNConnectionType = "citrix"
+)
+
+var (
+ // AndroidForWorkVPNConnectionTypePCiscoAnyConnect is a pointer to AndroidForWorkVPNConnectionTypeVCiscoAnyConnect
+ AndroidForWorkVPNConnectionTypePCiscoAnyConnect = &_AndroidForWorkVPNConnectionTypePCiscoAnyConnect
+ // AndroidForWorkVPNConnectionTypePPulseSecure is a pointer to AndroidForWorkVPNConnectionTypeVPulseSecure
+ AndroidForWorkVPNConnectionTypePPulseSecure = &_AndroidForWorkVPNConnectionTypePPulseSecure
+ // AndroidForWorkVPNConnectionTypePF5EdgeClient is a pointer to AndroidForWorkVPNConnectionTypeVF5EdgeClient
+ AndroidForWorkVPNConnectionTypePF5EdgeClient = &_AndroidForWorkVPNConnectionTypePF5EdgeClient
+ // AndroidForWorkVPNConnectionTypePDellSonicWallMobileConnect is a pointer to AndroidForWorkVPNConnectionTypeVDellSonicWallMobileConnect
+ AndroidForWorkVPNConnectionTypePDellSonicWallMobileConnect = &_AndroidForWorkVPNConnectionTypePDellSonicWallMobileConnect
+ // AndroidForWorkVPNConnectionTypePCheckPointCapsuleVPN is a pointer to AndroidForWorkVPNConnectionTypeVCheckPointCapsuleVPN
+ AndroidForWorkVPNConnectionTypePCheckPointCapsuleVPN = &_AndroidForWorkVPNConnectionTypePCheckPointCapsuleVPN
+ // AndroidForWorkVPNConnectionTypePCitrix is a pointer to AndroidForWorkVPNConnectionTypeVCitrix
+ AndroidForWorkVPNConnectionTypePCitrix = &_AndroidForWorkVPNConnectionTypePCitrix
+)
+
+var (
+ _AndroidForWorkVPNConnectionTypePCiscoAnyConnect = AndroidForWorkVPNConnectionTypeVCiscoAnyConnect
+ _AndroidForWorkVPNConnectionTypePPulseSecure = AndroidForWorkVPNConnectionTypeVPulseSecure
+ _AndroidForWorkVPNConnectionTypePF5EdgeClient = AndroidForWorkVPNConnectionTypeVF5EdgeClient
+ _AndroidForWorkVPNConnectionTypePDellSonicWallMobileConnect = AndroidForWorkVPNConnectionTypeVDellSonicWallMobileConnect
+ _AndroidForWorkVPNConnectionTypePCheckPointCapsuleVPN = AndroidForWorkVPNConnectionTypeVCheckPointCapsuleVPN
+ _AndroidForWorkVPNConnectionTypePCitrix = AndroidForWorkVPNConnectionTypeVCitrix
+)
+
+// AndroidKeyguardFeature undocumented
+type AndroidKeyguardFeature string
+
+const (
+ // AndroidKeyguardFeatureVNotConfigured undocumented
+ AndroidKeyguardFeatureVNotConfigured AndroidKeyguardFeature = "notConfigured"
+ // AndroidKeyguardFeatureVCamera undocumented
+ AndroidKeyguardFeatureVCamera AndroidKeyguardFeature = "camera"
+ // AndroidKeyguardFeatureVNotifications undocumented
+ AndroidKeyguardFeatureVNotifications AndroidKeyguardFeature = "notifications"
+ // AndroidKeyguardFeatureVUnredactedNotifications undocumented
+ AndroidKeyguardFeatureVUnredactedNotifications AndroidKeyguardFeature = "unredactedNotifications"
+ // AndroidKeyguardFeatureVTrustAgents undocumented
+ AndroidKeyguardFeatureVTrustAgents AndroidKeyguardFeature = "trustAgents"
+ // AndroidKeyguardFeatureVFingerprint undocumented
+ AndroidKeyguardFeatureVFingerprint AndroidKeyguardFeature = "fingerprint"
+ // AndroidKeyguardFeatureVRemoteInput undocumented
+ AndroidKeyguardFeatureVRemoteInput AndroidKeyguardFeature = "remoteInput"
+ // AndroidKeyguardFeatureVAllFeatures undocumented
+ AndroidKeyguardFeatureVAllFeatures AndroidKeyguardFeature = "allFeatures"
+)
+
+var (
+ // AndroidKeyguardFeaturePNotConfigured is a pointer to AndroidKeyguardFeatureVNotConfigured
+ AndroidKeyguardFeaturePNotConfigured = &_AndroidKeyguardFeaturePNotConfigured
+ // AndroidKeyguardFeaturePCamera is a pointer to AndroidKeyguardFeatureVCamera
+ AndroidKeyguardFeaturePCamera = &_AndroidKeyguardFeaturePCamera
+ // AndroidKeyguardFeaturePNotifications is a pointer to AndroidKeyguardFeatureVNotifications
+ AndroidKeyguardFeaturePNotifications = &_AndroidKeyguardFeaturePNotifications
+ // AndroidKeyguardFeaturePUnredactedNotifications is a pointer to AndroidKeyguardFeatureVUnredactedNotifications
+ AndroidKeyguardFeaturePUnredactedNotifications = &_AndroidKeyguardFeaturePUnredactedNotifications
+ // AndroidKeyguardFeaturePTrustAgents is a pointer to AndroidKeyguardFeatureVTrustAgents
+ AndroidKeyguardFeaturePTrustAgents = &_AndroidKeyguardFeaturePTrustAgents
+ // AndroidKeyguardFeaturePFingerprint is a pointer to AndroidKeyguardFeatureVFingerprint
+ AndroidKeyguardFeaturePFingerprint = &_AndroidKeyguardFeaturePFingerprint
+ // AndroidKeyguardFeaturePRemoteInput is a pointer to AndroidKeyguardFeatureVRemoteInput
+ AndroidKeyguardFeaturePRemoteInput = &_AndroidKeyguardFeaturePRemoteInput
+ // AndroidKeyguardFeaturePAllFeatures is a pointer to AndroidKeyguardFeatureVAllFeatures
+ AndroidKeyguardFeaturePAllFeatures = &_AndroidKeyguardFeaturePAllFeatures
+)
+
+var (
+ _AndroidKeyguardFeaturePNotConfigured = AndroidKeyguardFeatureVNotConfigured
+ _AndroidKeyguardFeaturePCamera = AndroidKeyguardFeatureVCamera
+ _AndroidKeyguardFeaturePNotifications = AndroidKeyguardFeatureVNotifications
+ _AndroidKeyguardFeaturePUnredactedNotifications = AndroidKeyguardFeatureVUnredactedNotifications
+ _AndroidKeyguardFeaturePTrustAgents = AndroidKeyguardFeatureVTrustAgents
+ _AndroidKeyguardFeaturePFingerprint = AndroidKeyguardFeatureVFingerprint
+ _AndroidKeyguardFeaturePRemoteInput = AndroidKeyguardFeatureVRemoteInput
+ _AndroidKeyguardFeaturePAllFeatures = AndroidKeyguardFeatureVAllFeatures
+)
+
+// AndroidManagedAppSafetyNetAppsVerificationType undocumented
+type AndroidManagedAppSafetyNetAppsVerificationType string
+
+const (
+ // AndroidManagedAppSafetyNetAppsVerificationTypeVNone undocumented
+ AndroidManagedAppSafetyNetAppsVerificationTypeVNone AndroidManagedAppSafetyNetAppsVerificationType = "none"
+ // AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled undocumented
+ AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled AndroidManagedAppSafetyNetAppsVerificationType = "enabled"
+)
+
+var (
+ // AndroidManagedAppSafetyNetAppsVerificationTypePNone is a pointer to AndroidManagedAppSafetyNetAppsVerificationTypeVNone
+ AndroidManagedAppSafetyNetAppsVerificationTypePNone = &_AndroidManagedAppSafetyNetAppsVerificationTypePNone
+ // AndroidManagedAppSafetyNetAppsVerificationTypePEnabled is a pointer to AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled
+ AndroidManagedAppSafetyNetAppsVerificationTypePEnabled = &_AndroidManagedAppSafetyNetAppsVerificationTypePEnabled
+)
+
+var (
+ _AndroidManagedAppSafetyNetAppsVerificationTypePNone = AndroidManagedAppSafetyNetAppsVerificationTypeVNone
+ _AndroidManagedAppSafetyNetAppsVerificationTypePEnabled = AndroidManagedAppSafetyNetAppsVerificationTypeVEnabled
+)
+
+// AndroidManagedAppSafetyNetDeviceAttestationType undocumented
+type AndroidManagedAppSafetyNetDeviceAttestationType string
+
+const (
+ // AndroidManagedAppSafetyNetDeviceAttestationTypeVNone undocumented
+ AndroidManagedAppSafetyNetDeviceAttestationTypeVNone AndroidManagedAppSafetyNetDeviceAttestationType = "none"
+ // AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity undocumented
+ AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity AndroidManagedAppSafetyNetDeviceAttestationType = "basicIntegrity"
+ // AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification undocumented
+ AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification AndroidManagedAppSafetyNetDeviceAttestationType = "basicIntegrityAndDeviceCertification"
+)
+
+var (
+ // AndroidManagedAppSafetyNetDeviceAttestationTypePNone is a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVNone
+ AndroidManagedAppSafetyNetDeviceAttestationTypePNone = &_AndroidManagedAppSafetyNetDeviceAttestationTypePNone
+ // AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity is a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity
+ AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity = &_AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity
+ // AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification is a pointer to AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification
+ AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification = &_AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification
+)
+
+var (
+ _AndroidManagedAppSafetyNetDeviceAttestationTypePNone = AndroidManagedAppSafetyNetDeviceAttestationTypeVNone
+ _AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrity = AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrity
+ _AndroidManagedAppSafetyNetDeviceAttestationTypePBasicIntegrityAndDeviceCertification = AndroidManagedAppSafetyNetDeviceAttestationTypeVBasicIntegrityAndDeviceCertification
+)
+
+// AndroidManagedStoreAccountAppSyncStatus undocumented
+type AndroidManagedStoreAccountAppSyncStatus string
+
+const (
+ // AndroidManagedStoreAccountAppSyncStatusVSuccess undocumented
+ AndroidManagedStoreAccountAppSyncStatusVSuccess AndroidManagedStoreAccountAppSyncStatus = "success"
+ // AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid undocumented
+ AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid AndroidManagedStoreAccountAppSyncStatus = "credentialsNotValid"
+ // AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError undocumented
+ AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError AndroidManagedStoreAccountAppSyncStatus = "androidForWorkApiError"
+ // AndroidManagedStoreAccountAppSyncStatusVManagementServiceError undocumented
+ AndroidManagedStoreAccountAppSyncStatusVManagementServiceError AndroidManagedStoreAccountAppSyncStatus = "managementServiceError"
+ // AndroidManagedStoreAccountAppSyncStatusVUnknownError undocumented
+ AndroidManagedStoreAccountAppSyncStatusVUnknownError AndroidManagedStoreAccountAppSyncStatus = "unknownError"
+ // AndroidManagedStoreAccountAppSyncStatusVNone undocumented
+ AndroidManagedStoreAccountAppSyncStatusVNone AndroidManagedStoreAccountAppSyncStatus = "none"
+)
+
+var (
+ // AndroidManagedStoreAccountAppSyncStatusPSuccess is a pointer to AndroidManagedStoreAccountAppSyncStatusVSuccess
+ AndroidManagedStoreAccountAppSyncStatusPSuccess = &_AndroidManagedStoreAccountAppSyncStatusPSuccess
+ // AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid is a pointer to AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid
+ AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid = &_AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid
+ // AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError is a pointer to AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError
+ AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError = &_AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError
+ // AndroidManagedStoreAccountAppSyncStatusPManagementServiceError is a pointer to AndroidManagedStoreAccountAppSyncStatusVManagementServiceError
+ AndroidManagedStoreAccountAppSyncStatusPManagementServiceError = &_AndroidManagedStoreAccountAppSyncStatusPManagementServiceError
+ // AndroidManagedStoreAccountAppSyncStatusPUnknownError is a pointer to AndroidManagedStoreAccountAppSyncStatusVUnknownError
+ AndroidManagedStoreAccountAppSyncStatusPUnknownError = &_AndroidManagedStoreAccountAppSyncStatusPUnknownError
+ // AndroidManagedStoreAccountAppSyncStatusPNone is a pointer to AndroidManagedStoreAccountAppSyncStatusVNone
+ AndroidManagedStoreAccountAppSyncStatusPNone = &_AndroidManagedStoreAccountAppSyncStatusPNone
+)
+
+var (
+ _AndroidManagedStoreAccountAppSyncStatusPSuccess = AndroidManagedStoreAccountAppSyncStatusVSuccess
+ _AndroidManagedStoreAccountAppSyncStatusPCredentialsNotValid = AndroidManagedStoreAccountAppSyncStatusVCredentialsNotValid
+ _AndroidManagedStoreAccountAppSyncStatusPAndroidForWorkAPIError = AndroidManagedStoreAccountAppSyncStatusVAndroidForWorkAPIError
+ _AndroidManagedStoreAccountAppSyncStatusPManagementServiceError = AndroidManagedStoreAccountAppSyncStatusVManagementServiceError
+ _AndroidManagedStoreAccountAppSyncStatusPUnknownError = AndroidManagedStoreAccountAppSyncStatusVUnknownError
+ _AndroidManagedStoreAccountAppSyncStatusPNone = AndroidManagedStoreAccountAppSyncStatusVNone
+)
+
+// AndroidManagedStoreAccountBindStatus undocumented
+type AndroidManagedStoreAccountBindStatus string
+
+const (
+ // AndroidManagedStoreAccountBindStatusVNotBound undocumented
+ AndroidManagedStoreAccountBindStatusVNotBound AndroidManagedStoreAccountBindStatus = "notBound"
+ // AndroidManagedStoreAccountBindStatusVBound undocumented
+ AndroidManagedStoreAccountBindStatusVBound AndroidManagedStoreAccountBindStatus = "bound"
+ // AndroidManagedStoreAccountBindStatusVBoundAndValidated undocumented
+ AndroidManagedStoreAccountBindStatusVBoundAndValidated AndroidManagedStoreAccountBindStatus = "boundAndValidated"
+ // AndroidManagedStoreAccountBindStatusVUnbinding undocumented
+ AndroidManagedStoreAccountBindStatusVUnbinding AndroidManagedStoreAccountBindStatus = "unbinding"
+)
+
+var (
+ // AndroidManagedStoreAccountBindStatusPNotBound is a pointer to AndroidManagedStoreAccountBindStatusVNotBound
+ AndroidManagedStoreAccountBindStatusPNotBound = &_AndroidManagedStoreAccountBindStatusPNotBound
+ // AndroidManagedStoreAccountBindStatusPBound is a pointer to AndroidManagedStoreAccountBindStatusVBound
+ AndroidManagedStoreAccountBindStatusPBound = &_AndroidManagedStoreAccountBindStatusPBound
+ // AndroidManagedStoreAccountBindStatusPBoundAndValidated is a pointer to AndroidManagedStoreAccountBindStatusVBoundAndValidated
+ AndroidManagedStoreAccountBindStatusPBoundAndValidated = &_AndroidManagedStoreAccountBindStatusPBoundAndValidated
+ // AndroidManagedStoreAccountBindStatusPUnbinding is a pointer to AndroidManagedStoreAccountBindStatusVUnbinding
+ AndroidManagedStoreAccountBindStatusPUnbinding = &_AndroidManagedStoreAccountBindStatusPUnbinding
+)
+
+var (
+ _AndroidManagedStoreAccountBindStatusPNotBound = AndroidManagedStoreAccountBindStatusVNotBound
+ _AndroidManagedStoreAccountBindStatusPBound = AndroidManagedStoreAccountBindStatusVBound
+ _AndroidManagedStoreAccountBindStatusPBoundAndValidated = AndroidManagedStoreAccountBindStatusVBoundAndValidated
+ _AndroidManagedStoreAccountBindStatusPUnbinding = AndroidManagedStoreAccountBindStatusVUnbinding
+)
+
+// AndroidManagedStoreAccountEnrollmentTarget undocumented
+type AndroidManagedStoreAccountEnrollmentTarget string
+
+const (
+ // AndroidManagedStoreAccountEnrollmentTargetVNone undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVNone AndroidManagedStoreAccountEnrollmentTarget = "none"
+ // AndroidManagedStoreAccountEnrollmentTargetVAll undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVAll AndroidManagedStoreAccountEnrollmentTarget = "all"
+ // AndroidManagedStoreAccountEnrollmentTargetVTargeted undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVTargeted AndroidManagedStoreAccountEnrollmentTarget = "targeted"
+ // AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions undocumented
+ AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions AndroidManagedStoreAccountEnrollmentTarget = "targetedAsEnrollmentRestrictions"
+)
+
+var (
+ // AndroidManagedStoreAccountEnrollmentTargetPNone is a pointer to AndroidManagedStoreAccountEnrollmentTargetVNone
+ AndroidManagedStoreAccountEnrollmentTargetPNone = &_AndroidManagedStoreAccountEnrollmentTargetPNone
+ // AndroidManagedStoreAccountEnrollmentTargetPAll is a pointer to AndroidManagedStoreAccountEnrollmentTargetVAll
+ AndroidManagedStoreAccountEnrollmentTargetPAll = &_AndroidManagedStoreAccountEnrollmentTargetPAll
+ // AndroidManagedStoreAccountEnrollmentTargetPTargeted is a pointer to AndroidManagedStoreAccountEnrollmentTargetVTargeted
+ AndroidManagedStoreAccountEnrollmentTargetPTargeted = &_AndroidManagedStoreAccountEnrollmentTargetPTargeted
+ // AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions is a pointer to AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions
+ AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions = &_AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions
+)
+
+var (
+ _AndroidManagedStoreAccountEnrollmentTargetPNone = AndroidManagedStoreAccountEnrollmentTargetVNone
+ _AndroidManagedStoreAccountEnrollmentTargetPAll = AndroidManagedStoreAccountEnrollmentTargetVAll
+ _AndroidManagedStoreAccountEnrollmentTargetPTargeted = AndroidManagedStoreAccountEnrollmentTargetVTargeted
+ _AndroidManagedStoreAccountEnrollmentTargetPTargetedAsEnrollmentRestrictions = AndroidManagedStoreAccountEnrollmentTargetVTargetedAsEnrollmentRestrictions
+)
+
+// AndroidManagedStoreAppConfigurationSchemaItemDataType undocumented
+type AndroidManagedStoreAppConfigurationSchemaItemDataType string
+
+const (
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool AndroidManagedStoreAppConfigurationSchemaItemDataType = "bool"
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger AndroidManagedStoreAppConfigurationSchemaItemDataType = "integer"
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString AndroidManagedStoreAppConfigurationSchemaItemDataType = "string"
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice AndroidManagedStoreAppConfigurationSchemaItemDataType = "choice"
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect AndroidManagedStoreAppConfigurationSchemaItemDataType = "multiselect"
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle AndroidManagedStoreAppConfigurationSchemaItemDataType = "bundle"
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray AndroidManagedStoreAppConfigurationSchemaItemDataType = "bundleArray"
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden undocumented
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden AndroidManagedStoreAppConfigurationSchemaItemDataType = "hidden"
+)
+
+var (
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypePString is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypePString = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePString
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray
+ // AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden is a pointer to AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden
+ AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden = &_AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden
+)
+
+var (
+ _AndroidManagedStoreAppConfigurationSchemaItemDataTypePBool = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBool
+ _AndroidManagedStoreAppConfigurationSchemaItemDataTypePInteger = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVInteger
+ _AndroidManagedStoreAppConfigurationSchemaItemDataTypePString = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVString
+ _AndroidManagedStoreAppConfigurationSchemaItemDataTypePChoice = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVChoice
+ _AndroidManagedStoreAppConfigurationSchemaItemDataTypePMultiselect = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVMultiselect
+ _AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundle = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundle
+ _AndroidManagedStoreAppConfigurationSchemaItemDataTypePBundleArray = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVBundleArray
+ _AndroidManagedStoreAppConfigurationSchemaItemDataTypePHidden = AndroidManagedStoreAppConfigurationSchemaItemDataTypeVHidden
+)
+
+// AndroidPermissionActionType undocumented
+type AndroidPermissionActionType string
+
+const (
+ // AndroidPermissionActionTypeVPrompt undocumented
+ AndroidPermissionActionTypeVPrompt AndroidPermissionActionType = "prompt"
+ // AndroidPermissionActionTypeVAutoGrant undocumented
+ AndroidPermissionActionTypeVAutoGrant AndroidPermissionActionType = "autoGrant"
+ // AndroidPermissionActionTypeVAutoDeny undocumented
+ AndroidPermissionActionTypeVAutoDeny AndroidPermissionActionType = "autoDeny"
+)
+
+var (
+ // AndroidPermissionActionTypePPrompt is a pointer to AndroidPermissionActionTypeVPrompt
+ AndroidPermissionActionTypePPrompt = &_AndroidPermissionActionTypePPrompt
+ // AndroidPermissionActionTypePAutoGrant is a pointer to AndroidPermissionActionTypeVAutoGrant
+ AndroidPermissionActionTypePAutoGrant = &_AndroidPermissionActionTypePAutoGrant
+ // AndroidPermissionActionTypePAutoDeny is a pointer to AndroidPermissionActionTypeVAutoDeny
+ AndroidPermissionActionTypePAutoDeny = &_AndroidPermissionActionTypePAutoDeny
+)
+
+var (
+ _AndroidPermissionActionTypePPrompt = AndroidPermissionActionTypeVPrompt
+ _AndroidPermissionActionTypePAutoGrant = AndroidPermissionActionTypeVAutoGrant
+ _AndroidPermissionActionTypePAutoDeny = AndroidPermissionActionTypeVAutoDeny
+)
+
+// AndroidRequiredPasswordType undocumented
+type AndroidRequiredPasswordType string
+
+const (
+ // AndroidRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidRequiredPasswordTypeVDeviceDefault AndroidRequiredPasswordType = "deviceDefault"
+ // AndroidRequiredPasswordTypeVAlphabetic undocumented
+ AndroidRequiredPasswordTypeVAlphabetic AndroidRequiredPasswordType = "alphabetic"
+ // AndroidRequiredPasswordTypeVAlphanumeric undocumented
+ AndroidRequiredPasswordTypeVAlphanumeric AndroidRequiredPasswordType = "alphanumeric"
+ // AndroidRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidRequiredPasswordTypeVAlphanumericWithSymbols AndroidRequiredPasswordType = "alphanumericWithSymbols"
+ // AndroidRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidRequiredPasswordTypeVLowSecurityBiometric AndroidRequiredPasswordType = "lowSecurityBiometric"
+ // AndroidRequiredPasswordTypeVNumeric undocumented
+ AndroidRequiredPasswordTypeVNumeric AndroidRequiredPasswordType = "numeric"
+ // AndroidRequiredPasswordTypeVNumericComplex undocumented
+ AndroidRequiredPasswordTypeVNumericComplex AndroidRequiredPasswordType = "numericComplex"
+ // AndroidRequiredPasswordTypeVAny undocumented
+ AndroidRequiredPasswordTypeVAny AndroidRequiredPasswordType = "any"
+)
+
+var (
+ // AndroidRequiredPasswordTypePDeviceDefault is a pointer to AndroidRequiredPasswordTypeVDeviceDefault
+ AndroidRequiredPasswordTypePDeviceDefault = &_AndroidRequiredPasswordTypePDeviceDefault
+ // AndroidRequiredPasswordTypePAlphabetic is a pointer to AndroidRequiredPasswordTypeVAlphabetic
+ AndroidRequiredPasswordTypePAlphabetic = &_AndroidRequiredPasswordTypePAlphabetic
+ // AndroidRequiredPasswordTypePAlphanumeric is a pointer to AndroidRequiredPasswordTypeVAlphanumeric
+ AndroidRequiredPasswordTypePAlphanumeric = &_AndroidRequiredPasswordTypePAlphanumeric
+ // AndroidRequiredPasswordTypePAlphanumericWithSymbols is a pointer to AndroidRequiredPasswordTypeVAlphanumericWithSymbols
+ AndroidRequiredPasswordTypePAlphanumericWithSymbols = &_AndroidRequiredPasswordTypePAlphanumericWithSymbols
+ // AndroidRequiredPasswordTypePLowSecurityBiometric is a pointer to AndroidRequiredPasswordTypeVLowSecurityBiometric
+ AndroidRequiredPasswordTypePLowSecurityBiometric = &_AndroidRequiredPasswordTypePLowSecurityBiometric
+ // AndroidRequiredPasswordTypePNumeric is a pointer to AndroidRequiredPasswordTypeVNumeric
+ AndroidRequiredPasswordTypePNumeric = &_AndroidRequiredPasswordTypePNumeric
+ // AndroidRequiredPasswordTypePNumericComplex is a pointer to AndroidRequiredPasswordTypeVNumericComplex
+ AndroidRequiredPasswordTypePNumericComplex = &_AndroidRequiredPasswordTypePNumericComplex
+ // AndroidRequiredPasswordTypePAny is a pointer to AndroidRequiredPasswordTypeVAny
+ AndroidRequiredPasswordTypePAny = &_AndroidRequiredPasswordTypePAny
+)
+
+var (
+ _AndroidRequiredPasswordTypePDeviceDefault = AndroidRequiredPasswordTypeVDeviceDefault
+ _AndroidRequiredPasswordTypePAlphabetic = AndroidRequiredPasswordTypeVAlphabetic
+ _AndroidRequiredPasswordTypePAlphanumeric = AndroidRequiredPasswordTypeVAlphanumeric
+ _AndroidRequiredPasswordTypePAlphanumericWithSymbols = AndroidRequiredPasswordTypeVAlphanumericWithSymbols
+ _AndroidRequiredPasswordTypePLowSecurityBiometric = AndroidRequiredPasswordTypeVLowSecurityBiometric
+ _AndroidRequiredPasswordTypePNumeric = AndroidRequiredPasswordTypeVNumeric
+ _AndroidRequiredPasswordTypePNumericComplex = AndroidRequiredPasswordTypeVNumericComplex
+ _AndroidRequiredPasswordTypePAny = AndroidRequiredPasswordTypeVAny
+)
+
+// AndroidUsernameSource undocumented
+type AndroidUsernameSource string
+
+const (
+ // AndroidUsernameSourceVUsername undocumented
+ AndroidUsernameSourceVUsername AndroidUsernameSource = "username"
+ // AndroidUsernameSourceVUserPrincipalName undocumented
+ AndroidUsernameSourceVUserPrincipalName AndroidUsernameSource = "userPrincipalName"
+ // AndroidUsernameSourceVSamAccountName undocumented
+ AndroidUsernameSourceVSamAccountName AndroidUsernameSource = "samAccountName"
+ // AndroidUsernameSourceVPrimarySMTPAddress undocumented
+ AndroidUsernameSourceVPrimarySMTPAddress AndroidUsernameSource = "primarySmtpAddress"
+)
+
+var (
+ // AndroidUsernameSourcePUsername is a pointer to AndroidUsernameSourceVUsername
+ AndroidUsernameSourcePUsername = &_AndroidUsernameSourcePUsername
+ // AndroidUsernameSourcePUserPrincipalName is a pointer to AndroidUsernameSourceVUserPrincipalName
+ AndroidUsernameSourcePUserPrincipalName = &_AndroidUsernameSourcePUserPrincipalName
+ // AndroidUsernameSourcePSamAccountName is a pointer to AndroidUsernameSourceVSamAccountName
+ AndroidUsernameSourcePSamAccountName = &_AndroidUsernameSourcePSamAccountName
+ // AndroidUsernameSourcePPrimarySMTPAddress is a pointer to AndroidUsernameSourceVPrimarySMTPAddress
+ AndroidUsernameSourcePPrimarySMTPAddress = &_AndroidUsernameSourcePPrimarySMTPAddress
+)
+
+var (
+ _AndroidUsernameSourcePUsername = AndroidUsernameSourceVUsername
+ _AndroidUsernameSourcePUserPrincipalName = AndroidUsernameSourceVUserPrincipalName
+ _AndroidUsernameSourcePSamAccountName = AndroidUsernameSourceVSamAccountName
+ _AndroidUsernameSourcePPrimarySMTPAddress = AndroidUsernameSourceVPrimarySMTPAddress
+)
+
+// AndroidVPNConnectionType undocumented
+type AndroidVPNConnectionType string
+
+const (
+ // AndroidVPNConnectionTypeVCiscoAnyConnect undocumented
+ AndroidVPNConnectionTypeVCiscoAnyConnect AndroidVPNConnectionType = "ciscoAnyConnect"
+ // AndroidVPNConnectionTypeVPulseSecure undocumented
+ AndroidVPNConnectionTypeVPulseSecure AndroidVPNConnectionType = "pulseSecure"
+ // AndroidVPNConnectionTypeVF5EdgeClient undocumented
+ AndroidVPNConnectionTypeVF5EdgeClient AndroidVPNConnectionType = "f5EdgeClient"
+ // AndroidVPNConnectionTypeVDellSonicWallMobileConnect undocumented
+ AndroidVPNConnectionTypeVDellSonicWallMobileConnect AndroidVPNConnectionType = "dellSonicWallMobileConnect"
+ // AndroidVPNConnectionTypeVCheckPointCapsuleVPN undocumented
+ AndroidVPNConnectionTypeVCheckPointCapsuleVPN AndroidVPNConnectionType = "checkPointCapsuleVpn"
+ // AndroidVPNConnectionTypeVCitrix undocumented
+ AndroidVPNConnectionTypeVCitrix AndroidVPNConnectionType = "citrix"
+)
+
+var (
+ // AndroidVPNConnectionTypePCiscoAnyConnect is a pointer to AndroidVPNConnectionTypeVCiscoAnyConnect
+ AndroidVPNConnectionTypePCiscoAnyConnect = &_AndroidVPNConnectionTypePCiscoAnyConnect
+ // AndroidVPNConnectionTypePPulseSecure is a pointer to AndroidVPNConnectionTypeVPulseSecure
+ AndroidVPNConnectionTypePPulseSecure = &_AndroidVPNConnectionTypePPulseSecure
+ // AndroidVPNConnectionTypePF5EdgeClient is a pointer to AndroidVPNConnectionTypeVF5EdgeClient
+ AndroidVPNConnectionTypePF5EdgeClient = &_AndroidVPNConnectionTypePF5EdgeClient
+ // AndroidVPNConnectionTypePDellSonicWallMobileConnect is a pointer to AndroidVPNConnectionTypeVDellSonicWallMobileConnect
+ AndroidVPNConnectionTypePDellSonicWallMobileConnect = &_AndroidVPNConnectionTypePDellSonicWallMobileConnect
+ // AndroidVPNConnectionTypePCheckPointCapsuleVPN is a pointer to AndroidVPNConnectionTypeVCheckPointCapsuleVPN
+ AndroidVPNConnectionTypePCheckPointCapsuleVPN = &_AndroidVPNConnectionTypePCheckPointCapsuleVPN
+ // AndroidVPNConnectionTypePCitrix is a pointer to AndroidVPNConnectionTypeVCitrix
+ AndroidVPNConnectionTypePCitrix = &_AndroidVPNConnectionTypePCitrix
+)
+
+var (
+ _AndroidVPNConnectionTypePCiscoAnyConnect = AndroidVPNConnectionTypeVCiscoAnyConnect
+ _AndroidVPNConnectionTypePPulseSecure = AndroidVPNConnectionTypeVPulseSecure
+ _AndroidVPNConnectionTypePF5EdgeClient = AndroidVPNConnectionTypeVF5EdgeClient
+ _AndroidVPNConnectionTypePDellSonicWallMobileConnect = AndroidVPNConnectionTypeVDellSonicWallMobileConnect
+ _AndroidVPNConnectionTypePCheckPointCapsuleVPN = AndroidVPNConnectionTypeVCheckPointCapsuleVPN
+ _AndroidVPNConnectionTypePCitrix = AndroidVPNConnectionTypeVCitrix
+)
+
+// AndroidWiFiSecurityType undocumented
+type AndroidWiFiSecurityType string
+
+const (
+ // AndroidWiFiSecurityTypeVOpen undocumented
+ AndroidWiFiSecurityTypeVOpen AndroidWiFiSecurityType = "open"
+ // AndroidWiFiSecurityTypeVWpaEnterprise undocumented
+ AndroidWiFiSecurityTypeVWpaEnterprise AndroidWiFiSecurityType = "wpaEnterprise"
+ // AndroidWiFiSecurityTypeVWpa2Enterprise undocumented
+ AndroidWiFiSecurityTypeVWpa2Enterprise AndroidWiFiSecurityType = "wpa2Enterprise"
+)
+
+var (
+ // AndroidWiFiSecurityTypePOpen is a pointer to AndroidWiFiSecurityTypeVOpen
+ AndroidWiFiSecurityTypePOpen = &_AndroidWiFiSecurityTypePOpen
+ // AndroidWiFiSecurityTypePWpaEnterprise is a pointer to AndroidWiFiSecurityTypeVWpaEnterprise
+ AndroidWiFiSecurityTypePWpaEnterprise = &_AndroidWiFiSecurityTypePWpaEnterprise
+ // AndroidWiFiSecurityTypePWpa2Enterprise is a pointer to AndroidWiFiSecurityTypeVWpa2Enterprise
+ AndroidWiFiSecurityTypePWpa2Enterprise = &_AndroidWiFiSecurityTypePWpa2Enterprise
+)
+
+var (
+ _AndroidWiFiSecurityTypePOpen = AndroidWiFiSecurityTypeVOpen
+ _AndroidWiFiSecurityTypePWpaEnterprise = AndroidWiFiSecurityTypeVWpaEnterprise
+ _AndroidWiFiSecurityTypePWpa2Enterprise = AndroidWiFiSecurityTypeVWpa2Enterprise
+)
+
+// AndroidWorkProfileCrossProfileDataSharingType undocumented
+type AndroidWorkProfileCrossProfileDataSharingType string
+
+const (
+ // AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault AndroidWorkProfileCrossProfileDataSharingType = "deviceDefault"
+ // AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny AndroidWorkProfileCrossProfileDataSharingType = "preventAny"
+ // AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork AndroidWorkProfileCrossProfileDataSharingType = "allowPersonalToWork"
+ // AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions undocumented
+ AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions AndroidWorkProfileCrossProfileDataSharingType = "noRestrictions"
+)
+
+var (
+ // AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault is a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault
+ AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault = &_AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault
+ // AndroidWorkProfileCrossProfileDataSharingTypePPreventAny is a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny
+ AndroidWorkProfileCrossProfileDataSharingTypePPreventAny = &_AndroidWorkProfileCrossProfileDataSharingTypePPreventAny
+ // AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork is a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork
+ AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork = &_AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork
+ // AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions is a pointer to AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions
+ AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions = &_AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions
+)
+
+var (
+ _AndroidWorkProfileCrossProfileDataSharingTypePDeviceDefault = AndroidWorkProfileCrossProfileDataSharingTypeVDeviceDefault
+ _AndroidWorkProfileCrossProfileDataSharingTypePPreventAny = AndroidWorkProfileCrossProfileDataSharingTypeVPreventAny
+ _AndroidWorkProfileCrossProfileDataSharingTypePAllowPersonalToWork = AndroidWorkProfileCrossProfileDataSharingTypeVAllowPersonalToWork
+ _AndroidWorkProfileCrossProfileDataSharingTypePNoRestrictions = AndroidWorkProfileCrossProfileDataSharingTypeVNoRestrictions
+)
+
+// AndroidWorkProfileDefaultAppPermissionPolicyType undocumented
+type AndroidWorkProfileDefaultAppPermissionPolicyType string
+
+const (
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault AndroidWorkProfileDefaultAppPermissionPolicyType = "deviceDefault"
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt AndroidWorkProfileDefaultAppPermissionPolicyType = "prompt"
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant AndroidWorkProfileDefaultAppPermissionPolicyType = "autoGrant"
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny undocumented
+ AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny AndroidWorkProfileDefaultAppPermissionPolicyType = "autoDeny"
+)
+
+var (
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault is a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault
+ AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault = &_AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt is a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt
+ AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt = &_AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant is a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant
+ AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant = &_AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant
+ // AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny is a pointer to AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny
+ AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny = &_AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny
+)
+
+var (
+ _AndroidWorkProfileDefaultAppPermissionPolicyTypePDeviceDefault = AndroidWorkProfileDefaultAppPermissionPolicyTypeVDeviceDefault
+ _AndroidWorkProfileDefaultAppPermissionPolicyTypePPrompt = AndroidWorkProfileDefaultAppPermissionPolicyTypeVPrompt
+ _AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoGrant = AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoGrant
+ _AndroidWorkProfileDefaultAppPermissionPolicyTypePAutoDeny = AndroidWorkProfileDefaultAppPermissionPolicyTypeVAutoDeny
+)
+
+// AndroidWorkProfileRequiredPasswordType undocumented
+type AndroidWorkProfileRequiredPasswordType string
+
+const (
+ // AndroidWorkProfileRequiredPasswordTypeVDeviceDefault undocumented
+ AndroidWorkProfileRequiredPasswordTypeVDeviceDefault AndroidWorkProfileRequiredPasswordType = "deviceDefault"
+ // AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric undocumented
+ AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric AndroidWorkProfileRequiredPasswordType = "lowSecurityBiometric"
+ // AndroidWorkProfileRequiredPasswordTypeVRequired undocumented
+ AndroidWorkProfileRequiredPasswordTypeVRequired AndroidWorkProfileRequiredPasswordType = "required"
+ // AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric AndroidWorkProfileRequiredPasswordType = "atLeastNumeric"
+ // AndroidWorkProfileRequiredPasswordTypeVNumericComplex undocumented
+ AndroidWorkProfileRequiredPasswordTypeVNumericComplex AndroidWorkProfileRequiredPasswordType = "numericComplex"
+ // AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic AndroidWorkProfileRequiredPasswordType = "atLeastAlphabetic"
+ // AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric AndroidWorkProfileRequiredPasswordType = "atLeastAlphanumeric"
+ // AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols undocumented
+ AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols AndroidWorkProfileRequiredPasswordType = "alphanumericWithSymbols"
+)
+
+var (
+ // AndroidWorkProfileRequiredPasswordTypePDeviceDefault is a pointer to AndroidWorkProfileRequiredPasswordTypeVDeviceDefault
+ AndroidWorkProfileRequiredPasswordTypePDeviceDefault = &_AndroidWorkProfileRequiredPasswordTypePDeviceDefault
+ // AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric is a pointer to AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric
+ AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric = &_AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric
+ // AndroidWorkProfileRequiredPasswordTypePRequired is a pointer to AndroidWorkProfileRequiredPasswordTypeVRequired
+ AndroidWorkProfileRequiredPasswordTypePRequired = &_AndroidWorkProfileRequiredPasswordTypePRequired
+ // AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric is a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric
+ AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric = &_AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric
+ // AndroidWorkProfileRequiredPasswordTypePNumericComplex is a pointer to AndroidWorkProfileRequiredPasswordTypeVNumericComplex
+ AndroidWorkProfileRequiredPasswordTypePNumericComplex = &_AndroidWorkProfileRequiredPasswordTypePNumericComplex
+ // AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic is a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic
+ AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic = &_AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic
+ // AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric is a pointer to AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric
+ AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric = &_AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric
+ // AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols is a pointer to AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols
+ AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols = &_AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols
+)
+
+var (
+ _AndroidWorkProfileRequiredPasswordTypePDeviceDefault = AndroidWorkProfileRequiredPasswordTypeVDeviceDefault
+ _AndroidWorkProfileRequiredPasswordTypePLowSecurityBiometric = AndroidWorkProfileRequiredPasswordTypeVLowSecurityBiometric
+ _AndroidWorkProfileRequiredPasswordTypePRequired = AndroidWorkProfileRequiredPasswordTypeVRequired
+ _AndroidWorkProfileRequiredPasswordTypePAtLeastNumeric = AndroidWorkProfileRequiredPasswordTypeVAtLeastNumeric
+ _AndroidWorkProfileRequiredPasswordTypePNumericComplex = AndroidWorkProfileRequiredPasswordTypeVNumericComplex
+ _AndroidWorkProfileRequiredPasswordTypePAtLeastAlphabetic = AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphabetic
+ _AndroidWorkProfileRequiredPasswordTypePAtLeastAlphanumeric = AndroidWorkProfileRequiredPasswordTypeVAtLeastAlphanumeric
+ _AndroidWorkProfileRequiredPasswordTypePAlphanumericWithSymbols = AndroidWorkProfileRequiredPasswordTypeVAlphanumericWithSymbols
+)
+
+// AndroidWorkProfileVPNConnectionType undocumented
+type AndroidWorkProfileVPNConnectionType string
+
+const (
+ // AndroidWorkProfileVPNConnectionTypeVCiscoAnyConnect undocumented
+ AndroidWorkProfileVPNConnectionTypeVCiscoAnyConnect AndroidWorkProfileVPNConnectionType = "ciscoAnyConnect"
+ // AndroidWorkProfileVPNConnectionTypeVPulseSecure undocumented
+ AndroidWorkProfileVPNConnectionTypeVPulseSecure AndroidWorkProfileVPNConnectionType = "pulseSecure"
+ // AndroidWorkProfileVPNConnectionTypeVF5EdgeClient undocumented
+ AndroidWorkProfileVPNConnectionTypeVF5EdgeClient AndroidWorkProfileVPNConnectionType = "f5EdgeClient"
+ // AndroidWorkProfileVPNConnectionTypeVDellSonicWallMobileConnect undocumented
+ AndroidWorkProfileVPNConnectionTypeVDellSonicWallMobileConnect AndroidWorkProfileVPNConnectionType = "dellSonicWallMobileConnect"
+ // AndroidWorkProfileVPNConnectionTypeVCheckPointCapsuleVPN undocumented
+ AndroidWorkProfileVPNConnectionTypeVCheckPointCapsuleVPN AndroidWorkProfileVPNConnectionType = "checkPointCapsuleVpn"
+ // AndroidWorkProfileVPNConnectionTypeVCitrix undocumented
+ AndroidWorkProfileVPNConnectionTypeVCitrix AndroidWorkProfileVPNConnectionType = "citrix"
+ // AndroidWorkProfileVPNConnectionTypeVPaloAltoGlobalProtect undocumented
+ AndroidWorkProfileVPNConnectionTypeVPaloAltoGlobalProtect AndroidWorkProfileVPNConnectionType = "paloAltoGlobalProtect"
+)
+
+var (
+ // AndroidWorkProfileVPNConnectionTypePCiscoAnyConnect is a pointer to AndroidWorkProfileVPNConnectionTypeVCiscoAnyConnect
+ AndroidWorkProfileVPNConnectionTypePCiscoAnyConnect = &_AndroidWorkProfileVPNConnectionTypePCiscoAnyConnect
+ // AndroidWorkProfileVPNConnectionTypePPulseSecure is a pointer to AndroidWorkProfileVPNConnectionTypeVPulseSecure
+ AndroidWorkProfileVPNConnectionTypePPulseSecure = &_AndroidWorkProfileVPNConnectionTypePPulseSecure
+ // AndroidWorkProfileVPNConnectionTypePF5EdgeClient is a pointer to AndroidWorkProfileVPNConnectionTypeVF5EdgeClient
+ AndroidWorkProfileVPNConnectionTypePF5EdgeClient = &_AndroidWorkProfileVPNConnectionTypePF5EdgeClient
+ // AndroidWorkProfileVPNConnectionTypePDellSonicWallMobileConnect is a pointer to AndroidWorkProfileVPNConnectionTypeVDellSonicWallMobileConnect
+ AndroidWorkProfileVPNConnectionTypePDellSonicWallMobileConnect = &_AndroidWorkProfileVPNConnectionTypePDellSonicWallMobileConnect
+ // AndroidWorkProfileVPNConnectionTypePCheckPointCapsuleVPN is a pointer to AndroidWorkProfileVPNConnectionTypeVCheckPointCapsuleVPN
+ AndroidWorkProfileVPNConnectionTypePCheckPointCapsuleVPN = &_AndroidWorkProfileVPNConnectionTypePCheckPointCapsuleVPN
+ // AndroidWorkProfileVPNConnectionTypePCitrix is a pointer to AndroidWorkProfileVPNConnectionTypeVCitrix
+ AndroidWorkProfileVPNConnectionTypePCitrix = &_AndroidWorkProfileVPNConnectionTypePCitrix
+ // AndroidWorkProfileVPNConnectionTypePPaloAltoGlobalProtect is a pointer to AndroidWorkProfileVPNConnectionTypeVPaloAltoGlobalProtect
+ AndroidWorkProfileVPNConnectionTypePPaloAltoGlobalProtect = &_AndroidWorkProfileVPNConnectionTypePPaloAltoGlobalProtect
+)
+
+var (
+ _AndroidWorkProfileVPNConnectionTypePCiscoAnyConnect = AndroidWorkProfileVPNConnectionTypeVCiscoAnyConnect
+ _AndroidWorkProfileVPNConnectionTypePPulseSecure = AndroidWorkProfileVPNConnectionTypeVPulseSecure
+ _AndroidWorkProfileVPNConnectionTypePF5EdgeClient = AndroidWorkProfileVPNConnectionTypeVF5EdgeClient
+ _AndroidWorkProfileVPNConnectionTypePDellSonicWallMobileConnect = AndroidWorkProfileVPNConnectionTypeVDellSonicWallMobileConnect
+ _AndroidWorkProfileVPNConnectionTypePCheckPointCapsuleVPN = AndroidWorkProfileVPNConnectionTypeVCheckPointCapsuleVPN
+ _AndroidWorkProfileVPNConnectionTypePCitrix = AndroidWorkProfileVPNConnectionTypeVCitrix
+ _AndroidWorkProfileVPNConnectionTypePPaloAltoGlobalProtect = AndroidWorkProfileVPNConnectionTypeVPaloAltoGlobalProtect
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnniversary.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnniversary.go
new file mode 100644
index 00000000..8a7c0d14
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAnniversary.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AnniversaryType undocumented
+type AnniversaryType string
+
+const (
+ // AnniversaryTypeVBirthday undocumented
+ AnniversaryTypeVBirthday AnniversaryType = "birthday"
+ // AnniversaryTypeVWedding undocumented
+ AnniversaryTypeVWedding AnniversaryType = "wedding"
+ // AnniversaryTypeVUnknownFutureValue undocumented
+ AnniversaryTypeVUnknownFutureValue AnniversaryType = "unknownFutureValue"
+)
+
+var (
+ // AnniversaryTypePBirthday is a pointer to AnniversaryTypeVBirthday
+ AnniversaryTypePBirthday = &_AnniversaryTypePBirthday
+ // AnniversaryTypePWedding is a pointer to AnniversaryTypeVWedding
+ AnniversaryTypePWedding = &_AnniversaryTypePWedding
+ // AnniversaryTypePUnknownFutureValue is a pointer to AnniversaryTypeVUnknownFutureValue
+ AnniversaryTypePUnknownFutureValue = &_AnniversaryTypePUnknownFutureValue
+)
+
+var (
+ _AnniversaryTypePBirthday = AnniversaryTypeVBirthday
+ _AnniversaryTypePWedding = AnniversaryTypeVWedding
+ _AnniversaryTypePUnknownFutureValue = AnniversaryTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApp.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApp.go
new file mode 100644
index 00000000..a11ffea5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApp.go
@@ -0,0 +1,212 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppInstallControlType undocumented
+type AppInstallControlType string
+
+const (
+ // AppInstallControlTypeVNotConfigured undocumented
+ AppInstallControlTypeVNotConfigured AppInstallControlType = "notConfigured"
+ // AppInstallControlTypeVAnywhere undocumented
+ AppInstallControlTypeVAnywhere AppInstallControlType = "anywhere"
+ // AppInstallControlTypeVStoreOnly undocumented
+ AppInstallControlTypeVStoreOnly AppInstallControlType = "storeOnly"
+ // AppInstallControlTypeVRecommendations undocumented
+ AppInstallControlTypeVRecommendations AppInstallControlType = "recommendations"
+ // AppInstallControlTypeVPreferStore undocumented
+ AppInstallControlTypeVPreferStore AppInstallControlType = "preferStore"
+)
+
+var (
+ // AppInstallControlTypePNotConfigured is a pointer to AppInstallControlTypeVNotConfigured
+ AppInstallControlTypePNotConfigured = &_AppInstallControlTypePNotConfigured
+ // AppInstallControlTypePAnywhere is a pointer to AppInstallControlTypeVAnywhere
+ AppInstallControlTypePAnywhere = &_AppInstallControlTypePAnywhere
+ // AppInstallControlTypePStoreOnly is a pointer to AppInstallControlTypeVStoreOnly
+ AppInstallControlTypePStoreOnly = &_AppInstallControlTypePStoreOnly
+ // AppInstallControlTypePRecommendations is a pointer to AppInstallControlTypeVRecommendations
+ AppInstallControlTypePRecommendations = &_AppInstallControlTypePRecommendations
+ // AppInstallControlTypePPreferStore is a pointer to AppInstallControlTypeVPreferStore
+ AppInstallControlTypePPreferStore = &_AppInstallControlTypePPreferStore
+)
+
+var (
+ _AppInstallControlTypePNotConfigured = AppInstallControlTypeVNotConfigured
+ _AppInstallControlTypePAnywhere = AppInstallControlTypeVAnywhere
+ _AppInstallControlTypePStoreOnly = AppInstallControlTypeVStoreOnly
+ _AppInstallControlTypePRecommendations = AppInstallControlTypeVRecommendations
+ _AppInstallControlTypePPreferStore = AppInstallControlTypeVPreferStore
+)
+
+// AppListType undocumented
+type AppListType string
+
+const (
+ // AppListTypeVNone undocumented
+ AppListTypeVNone AppListType = "none"
+ // AppListTypeVAppsInListCompliant undocumented
+ AppListTypeVAppsInListCompliant AppListType = "appsInListCompliant"
+ // AppListTypeVAppsNotInListCompliant undocumented
+ AppListTypeVAppsNotInListCompliant AppListType = "appsNotInListCompliant"
+)
+
+var (
+ // AppListTypePNone is a pointer to AppListTypeVNone
+ AppListTypePNone = &_AppListTypePNone
+ // AppListTypePAppsInListCompliant is a pointer to AppListTypeVAppsInListCompliant
+ AppListTypePAppsInListCompliant = &_AppListTypePAppsInListCompliant
+ // AppListTypePAppsNotInListCompliant is a pointer to AppListTypeVAppsNotInListCompliant
+ AppListTypePAppsNotInListCompliant = &_AppListTypePAppsNotInListCompliant
+)
+
+var (
+ _AppListTypePNone = AppListTypeVNone
+ _AppListTypePAppsInListCompliant = AppListTypeVAppsInListCompliant
+ _AppListTypePAppsNotInListCompliant = AppListTypeVAppsNotInListCompliant
+)
+
+// AppLockerApplicationControlType undocumented
+type AppLockerApplicationControlType string
+
+const (
+ // AppLockerApplicationControlTypeVNotConfigured undocumented
+ AppLockerApplicationControlTypeVNotConfigured AppLockerApplicationControlType = "notConfigured"
+ // AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps undocumented
+ AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps AppLockerApplicationControlType = "enforceComponentsAndStoreApps"
+ // AppLockerApplicationControlTypeVAuditComponentsAndStoreApps undocumented
+ AppLockerApplicationControlTypeVAuditComponentsAndStoreApps AppLockerApplicationControlType = "auditComponentsAndStoreApps"
+ // AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker undocumented
+ AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker AppLockerApplicationControlType = "enforceComponentsStoreAppsAndSmartlocker"
+ // AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker undocumented
+ AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker AppLockerApplicationControlType = "auditComponentsStoreAppsAndSmartlocker"
+)
+
+var (
+ // AppLockerApplicationControlTypePNotConfigured is a pointer to AppLockerApplicationControlTypeVNotConfigured
+ AppLockerApplicationControlTypePNotConfigured = &_AppLockerApplicationControlTypePNotConfigured
+ // AppLockerApplicationControlTypePEnforceComponentsAndStoreApps is a pointer to AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps
+ AppLockerApplicationControlTypePEnforceComponentsAndStoreApps = &_AppLockerApplicationControlTypePEnforceComponentsAndStoreApps
+ // AppLockerApplicationControlTypePAuditComponentsAndStoreApps is a pointer to AppLockerApplicationControlTypeVAuditComponentsAndStoreApps
+ AppLockerApplicationControlTypePAuditComponentsAndStoreApps = &_AppLockerApplicationControlTypePAuditComponentsAndStoreApps
+ // AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker is a pointer to AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker
+ AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker = &_AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker
+ // AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker is a pointer to AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker
+ AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker = &_AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker
+)
+
+var (
+ _AppLockerApplicationControlTypePNotConfigured = AppLockerApplicationControlTypeVNotConfigured
+ _AppLockerApplicationControlTypePEnforceComponentsAndStoreApps = AppLockerApplicationControlTypeVEnforceComponentsAndStoreApps
+ _AppLockerApplicationControlTypePAuditComponentsAndStoreApps = AppLockerApplicationControlTypeVAuditComponentsAndStoreApps
+ _AppLockerApplicationControlTypePEnforceComponentsStoreAppsAndSmartlocker = AppLockerApplicationControlTypeVEnforceComponentsStoreAppsAndSmartlocker
+ _AppLockerApplicationControlTypePAuditComponentsStoreAppsAndSmartlocker = AppLockerApplicationControlTypeVAuditComponentsStoreAppsAndSmartlocker
+)
+
+// AppLogDecryptionAlgorithm undocumented
+type AppLogDecryptionAlgorithm string
+
+const (
+ // AppLogDecryptionAlgorithmVAes256 undocumented
+ AppLogDecryptionAlgorithmVAes256 AppLogDecryptionAlgorithm = "aes256"
+)
+
+var (
+ // AppLogDecryptionAlgorithmPAes256 is a pointer to AppLogDecryptionAlgorithmVAes256
+ AppLogDecryptionAlgorithmPAes256 = &_AppLogDecryptionAlgorithmPAes256
+)
+
+var (
+ _AppLogDecryptionAlgorithmPAes256 = AppLogDecryptionAlgorithmVAes256
+)
+
+// AppLogUploadState undocumented
+type AppLogUploadState string
+
+const (
+ // AppLogUploadStateVPending undocumented
+ AppLogUploadStateVPending AppLogUploadState = "pending"
+ // AppLogUploadStateVCompleted undocumented
+ AppLogUploadStateVCompleted AppLogUploadState = "completed"
+ // AppLogUploadStateVFailed undocumented
+ AppLogUploadStateVFailed AppLogUploadState = "failed"
+)
+
+var (
+ // AppLogUploadStatePPending is a pointer to AppLogUploadStateVPending
+ AppLogUploadStatePPending = &_AppLogUploadStatePPending
+ // AppLogUploadStatePCompleted is a pointer to AppLogUploadStateVCompleted
+ AppLogUploadStatePCompleted = &_AppLogUploadStatePCompleted
+ // AppLogUploadStatePFailed is a pointer to AppLogUploadStateVFailed
+ AppLogUploadStatePFailed = &_AppLogUploadStatePFailed
+)
+
+var (
+ _AppLogUploadStatePPending = AppLogUploadStateVPending
+ _AppLogUploadStatePCompleted = AppLogUploadStateVCompleted
+ _AppLogUploadStatePFailed = AppLogUploadStateVFailed
+)
+
+// AppManagementLevel undocumented
+type AppManagementLevel string
+
+const (
+ // AppManagementLevelVUnspecified undocumented
+ AppManagementLevelVUnspecified AppManagementLevel = "unspecified"
+ // AppManagementLevelVUnmanaged undocumented
+ AppManagementLevelVUnmanaged AppManagementLevel = "unmanaged"
+ // AppManagementLevelVMDM undocumented
+ AppManagementLevelVMDM AppManagementLevel = "mdm"
+ // AppManagementLevelVAndroidEnterprise undocumented
+ AppManagementLevelVAndroidEnterprise AppManagementLevel = "androidEnterprise"
+)
+
+var (
+ // AppManagementLevelPUnspecified is a pointer to AppManagementLevelVUnspecified
+ AppManagementLevelPUnspecified = &_AppManagementLevelPUnspecified
+ // AppManagementLevelPUnmanaged is a pointer to AppManagementLevelVUnmanaged
+ AppManagementLevelPUnmanaged = &_AppManagementLevelPUnmanaged
+ // AppManagementLevelPMDM is a pointer to AppManagementLevelVMDM
+ AppManagementLevelPMDM = &_AppManagementLevelPMDM
+ // AppManagementLevelPAndroidEnterprise is a pointer to AppManagementLevelVAndroidEnterprise
+ AppManagementLevelPAndroidEnterprise = &_AppManagementLevelPAndroidEnterprise
+)
+
+var (
+ _AppManagementLevelPUnspecified = AppManagementLevelVUnspecified
+ _AppManagementLevelPUnmanaged = AppManagementLevelVUnmanaged
+ _AppManagementLevelPMDM = AppManagementLevelVMDM
+ _AppManagementLevelPAndroidEnterprise = AppManagementLevelVAndroidEnterprise
+)
+
+// AppVulnerabilityTaskMitigationType undocumented
+type AppVulnerabilityTaskMitigationType string
+
+const (
+ // AppVulnerabilityTaskMitigationTypeVUnknown undocumented
+ AppVulnerabilityTaskMitigationTypeVUnknown AppVulnerabilityTaskMitigationType = "unknown"
+ // AppVulnerabilityTaskMitigationTypeVUpdate undocumented
+ AppVulnerabilityTaskMitigationTypeVUpdate AppVulnerabilityTaskMitigationType = "update"
+ // AppVulnerabilityTaskMitigationTypeVUninstall undocumented
+ AppVulnerabilityTaskMitigationTypeVUninstall AppVulnerabilityTaskMitigationType = "uninstall"
+ // AppVulnerabilityTaskMitigationTypeVSecurityConfiguration undocumented
+ AppVulnerabilityTaskMitigationTypeVSecurityConfiguration AppVulnerabilityTaskMitigationType = "securityConfiguration"
+)
+
+var (
+ // AppVulnerabilityTaskMitigationTypePUnknown is a pointer to AppVulnerabilityTaskMitigationTypeVUnknown
+ AppVulnerabilityTaskMitigationTypePUnknown = &_AppVulnerabilityTaskMitigationTypePUnknown
+ // AppVulnerabilityTaskMitigationTypePUpdate is a pointer to AppVulnerabilityTaskMitigationTypeVUpdate
+ AppVulnerabilityTaskMitigationTypePUpdate = &_AppVulnerabilityTaskMitigationTypePUpdate
+ // AppVulnerabilityTaskMitigationTypePUninstall is a pointer to AppVulnerabilityTaskMitigationTypeVUninstall
+ AppVulnerabilityTaskMitigationTypePUninstall = &_AppVulnerabilityTaskMitigationTypePUninstall
+ // AppVulnerabilityTaskMitigationTypePSecurityConfiguration is a pointer to AppVulnerabilityTaskMitigationTypeVSecurityConfiguration
+ AppVulnerabilityTaskMitigationTypePSecurityConfiguration = &_AppVulnerabilityTaskMitigationTypePSecurityConfiguration
+)
+
+var (
+ _AppVulnerabilityTaskMitigationTypePUnknown = AppVulnerabilityTaskMitigationTypeVUnknown
+ _AppVulnerabilityTaskMitigationTypePUpdate = AppVulnerabilityTaskMitigationTypeVUpdate
+ _AppVulnerabilityTaskMitigationTypePUninstall = AppVulnerabilityTaskMitigationTypeVUninstall
+ _AppVulnerabilityTaskMitigationTypePSecurityConfiguration = AppVulnerabilityTaskMitigationTypeVSecurityConfiguration
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApple.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApple.go
new file mode 100644
index 00000000..ced6525b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApple.go
@@ -0,0 +1,159 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppleSubjectNameFormat undocumented
+type AppleSubjectNameFormat string
+
+const (
+ // AppleSubjectNameFormatVCommonName undocumented
+ AppleSubjectNameFormatVCommonName AppleSubjectNameFormat = "commonName"
+ // AppleSubjectNameFormatVCommonNameAsEmail undocumented
+ AppleSubjectNameFormatVCommonNameAsEmail AppleSubjectNameFormat = "commonNameAsEmail"
+ // AppleSubjectNameFormatVCustom undocumented
+ AppleSubjectNameFormatVCustom AppleSubjectNameFormat = "custom"
+ // AppleSubjectNameFormatVCommonNameIncludingEmail undocumented
+ AppleSubjectNameFormatVCommonNameIncludingEmail AppleSubjectNameFormat = "commonNameIncludingEmail"
+ // AppleSubjectNameFormatVCommonNameAsIMEI undocumented
+ AppleSubjectNameFormatVCommonNameAsIMEI AppleSubjectNameFormat = "commonNameAsIMEI"
+ // AppleSubjectNameFormatVCommonNameAsSerialNumber undocumented
+ AppleSubjectNameFormatVCommonNameAsSerialNumber AppleSubjectNameFormat = "commonNameAsSerialNumber"
+)
+
+var (
+ // AppleSubjectNameFormatPCommonName is a pointer to AppleSubjectNameFormatVCommonName
+ AppleSubjectNameFormatPCommonName = &_AppleSubjectNameFormatPCommonName
+ // AppleSubjectNameFormatPCommonNameAsEmail is a pointer to AppleSubjectNameFormatVCommonNameAsEmail
+ AppleSubjectNameFormatPCommonNameAsEmail = &_AppleSubjectNameFormatPCommonNameAsEmail
+ // AppleSubjectNameFormatPCustom is a pointer to AppleSubjectNameFormatVCustom
+ AppleSubjectNameFormatPCustom = &_AppleSubjectNameFormatPCustom
+ // AppleSubjectNameFormatPCommonNameIncludingEmail is a pointer to AppleSubjectNameFormatVCommonNameIncludingEmail
+ AppleSubjectNameFormatPCommonNameIncludingEmail = &_AppleSubjectNameFormatPCommonNameIncludingEmail
+ // AppleSubjectNameFormatPCommonNameAsIMEI is a pointer to AppleSubjectNameFormatVCommonNameAsIMEI
+ AppleSubjectNameFormatPCommonNameAsIMEI = &_AppleSubjectNameFormatPCommonNameAsIMEI
+ // AppleSubjectNameFormatPCommonNameAsSerialNumber is a pointer to AppleSubjectNameFormatVCommonNameAsSerialNumber
+ AppleSubjectNameFormatPCommonNameAsSerialNumber = &_AppleSubjectNameFormatPCommonNameAsSerialNumber
+)
+
+var (
+ _AppleSubjectNameFormatPCommonName = AppleSubjectNameFormatVCommonName
+ _AppleSubjectNameFormatPCommonNameAsEmail = AppleSubjectNameFormatVCommonNameAsEmail
+ _AppleSubjectNameFormatPCustom = AppleSubjectNameFormatVCustom
+ _AppleSubjectNameFormatPCommonNameIncludingEmail = AppleSubjectNameFormatVCommonNameIncludingEmail
+ _AppleSubjectNameFormatPCommonNameAsIMEI = AppleSubjectNameFormatVCommonNameAsIMEI
+ _AppleSubjectNameFormatPCommonNameAsSerialNumber = AppleSubjectNameFormatVCommonNameAsSerialNumber
+)
+
+// AppleUserInitiatedEnrollmentType undocumented
+type AppleUserInitiatedEnrollmentType string
+
+const (
+ // AppleUserInitiatedEnrollmentTypeVUnknown undocumented
+ AppleUserInitiatedEnrollmentTypeVUnknown AppleUserInitiatedEnrollmentType = "unknown"
+ // AppleUserInitiatedEnrollmentTypeVDevice undocumented
+ AppleUserInitiatedEnrollmentTypeVDevice AppleUserInitiatedEnrollmentType = "device"
+ // AppleUserInitiatedEnrollmentTypeVUser undocumented
+ AppleUserInitiatedEnrollmentTypeVUser AppleUserInitiatedEnrollmentType = "user"
+)
+
+var (
+ // AppleUserInitiatedEnrollmentTypePUnknown is a pointer to AppleUserInitiatedEnrollmentTypeVUnknown
+ AppleUserInitiatedEnrollmentTypePUnknown = &_AppleUserInitiatedEnrollmentTypePUnknown
+ // AppleUserInitiatedEnrollmentTypePDevice is a pointer to AppleUserInitiatedEnrollmentTypeVDevice
+ AppleUserInitiatedEnrollmentTypePDevice = &_AppleUserInitiatedEnrollmentTypePDevice
+ // AppleUserInitiatedEnrollmentTypePUser is a pointer to AppleUserInitiatedEnrollmentTypeVUser
+ AppleUserInitiatedEnrollmentTypePUser = &_AppleUserInitiatedEnrollmentTypePUser
+)
+
+var (
+ _AppleUserInitiatedEnrollmentTypePUnknown = AppleUserInitiatedEnrollmentTypeVUnknown
+ _AppleUserInitiatedEnrollmentTypePDevice = AppleUserInitiatedEnrollmentTypeVDevice
+ _AppleUserInitiatedEnrollmentTypePUser = AppleUserInitiatedEnrollmentTypeVUser
+)
+
+// AppleVPNConnectionType undocumented
+type AppleVPNConnectionType string
+
+const (
+ // AppleVPNConnectionTypeVCiscoAnyConnect undocumented
+ AppleVPNConnectionTypeVCiscoAnyConnect AppleVPNConnectionType = "ciscoAnyConnect"
+ // AppleVPNConnectionTypeVPulseSecure undocumented
+ AppleVPNConnectionTypeVPulseSecure AppleVPNConnectionType = "pulseSecure"
+ // AppleVPNConnectionTypeVF5EdgeClient undocumented
+ AppleVPNConnectionTypeVF5EdgeClient AppleVPNConnectionType = "f5EdgeClient"
+ // AppleVPNConnectionTypeVDellSonicWallMobileConnect undocumented
+ AppleVPNConnectionTypeVDellSonicWallMobileConnect AppleVPNConnectionType = "dellSonicWallMobileConnect"
+ // AppleVPNConnectionTypeVCheckPointCapsuleVPN undocumented
+ AppleVPNConnectionTypeVCheckPointCapsuleVPN AppleVPNConnectionType = "checkPointCapsuleVpn"
+ // AppleVPNConnectionTypeVCustomVPN undocumented
+ AppleVPNConnectionTypeVCustomVPN AppleVPNConnectionType = "customVpn"
+ // AppleVPNConnectionTypeVCiscoIPSec undocumented
+ AppleVPNConnectionTypeVCiscoIPSec AppleVPNConnectionType = "ciscoIPSec"
+ // AppleVPNConnectionTypeVCitrix undocumented
+ AppleVPNConnectionTypeVCitrix AppleVPNConnectionType = "citrix"
+ // AppleVPNConnectionTypeVCiscoAnyConnectV2 undocumented
+ AppleVPNConnectionTypeVCiscoAnyConnectV2 AppleVPNConnectionType = "ciscoAnyConnectV2"
+ // AppleVPNConnectionTypeVPaloAltoGlobalProtect undocumented
+ AppleVPNConnectionTypeVPaloAltoGlobalProtect AppleVPNConnectionType = "paloAltoGlobalProtect"
+ // AppleVPNConnectionTypeVZscalerPrivateAccess undocumented
+ AppleVPNConnectionTypeVZscalerPrivateAccess AppleVPNConnectionType = "zscalerPrivateAccess"
+ // AppleVPNConnectionTypeVF5Access2018 undocumented
+ AppleVPNConnectionTypeVF5Access2018 AppleVPNConnectionType = "f5Access2018"
+ // AppleVPNConnectionTypeVCitrixSso undocumented
+ AppleVPNConnectionTypeVCitrixSso AppleVPNConnectionType = "citrixSso"
+ // AppleVPNConnectionTypeVPaloAltoGlobalProtectV2 undocumented
+ AppleVPNConnectionTypeVPaloAltoGlobalProtectV2 AppleVPNConnectionType = "paloAltoGlobalProtectV2"
+ // AppleVPNConnectionTypeVIkEv2 undocumented
+ AppleVPNConnectionTypeVIkEv2 AppleVPNConnectionType = "ikEv2"
+)
+
+var (
+ // AppleVPNConnectionTypePCiscoAnyConnect is a pointer to AppleVPNConnectionTypeVCiscoAnyConnect
+ AppleVPNConnectionTypePCiscoAnyConnect = &_AppleVPNConnectionTypePCiscoAnyConnect
+ // AppleVPNConnectionTypePPulseSecure is a pointer to AppleVPNConnectionTypeVPulseSecure
+ AppleVPNConnectionTypePPulseSecure = &_AppleVPNConnectionTypePPulseSecure
+ // AppleVPNConnectionTypePF5EdgeClient is a pointer to AppleVPNConnectionTypeVF5EdgeClient
+ AppleVPNConnectionTypePF5EdgeClient = &_AppleVPNConnectionTypePF5EdgeClient
+ // AppleVPNConnectionTypePDellSonicWallMobileConnect is a pointer to AppleVPNConnectionTypeVDellSonicWallMobileConnect
+ AppleVPNConnectionTypePDellSonicWallMobileConnect = &_AppleVPNConnectionTypePDellSonicWallMobileConnect
+ // AppleVPNConnectionTypePCheckPointCapsuleVPN is a pointer to AppleVPNConnectionTypeVCheckPointCapsuleVPN
+ AppleVPNConnectionTypePCheckPointCapsuleVPN = &_AppleVPNConnectionTypePCheckPointCapsuleVPN
+ // AppleVPNConnectionTypePCustomVPN is a pointer to AppleVPNConnectionTypeVCustomVPN
+ AppleVPNConnectionTypePCustomVPN = &_AppleVPNConnectionTypePCustomVPN
+ // AppleVPNConnectionTypePCiscoIPSec is a pointer to AppleVPNConnectionTypeVCiscoIPSec
+ AppleVPNConnectionTypePCiscoIPSec = &_AppleVPNConnectionTypePCiscoIPSec
+ // AppleVPNConnectionTypePCitrix is a pointer to AppleVPNConnectionTypeVCitrix
+ AppleVPNConnectionTypePCitrix = &_AppleVPNConnectionTypePCitrix
+ // AppleVPNConnectionTypePCiscoAnyConnectV2 is a pointer to AppleVPNConnectionTypeVCiscoAnyConnectV2
+ AppleVPNConnectionTypePCiscoAnyConnectV2 = &_AppleVPNConnectionTypePCiscoAnyConnectV2
+ // AppleVPNConnectionTypePPaloAltoGlobalProtect is a pointer to AppleVPNConnectionTypeVPaloAltoGlobalProtect
+ AppleVPNConnectionTypePPaloAltoGlobalProtect = &_AppleVPNConnectionTypePPaloAltoGlobalProtect
+ // AppleVPNConnectionTypePZscalerPrivateAccess is a pointer to AppleVPNConnectionTypeVZscalerPrivateAccess
+ AppleVPNConnectionTypePZscalerPrivateAccess = &_AppleVPNConnectionTypePZscalerPrivateAccess
+ // AppleVPNConnectionTypePF5Access2018 is a pointer to AppleVPNConnectionTypeVF5Access2018
+ AppleVPNConnectionTypePF5Access2018 = &_AppleVPNConnectionTypePF5Access2018
+ // AppleVPNConnectionTypePCitrixSso is a pointer to AppleVPNConnectionTypeVCitrixSso
+ AppleVPNConnectionTypePCitrixSso = &_AppleVPNConnectionTypePCitrixSso
+ // AppleVPNConnectionTypePPaloAltoGlobalProtectV2 is a pointer to AppleVPNConnectionTypeVPaloAltoGlobalProtectV2
+ AppleVPNConnectionTypePPaloAltoGlobalProtectV2 = &_AppleVPNConnectionTypePPaloAltoGlobalProtectV2
+ // AppleVPNConnectionTypePIkEv2 is a pointer to AppleVPNConnectionTypeVIkEv2
+ AppleVPNConnectionTypePIkEv2 = &_AppleVPNConnectionTypePIkEv2
+)
+
+var (
+ _AppleVPNConnectionTypePCiscoAnyConnect = AppleVPNConnectionTypeVCiscoAnyConnect
+ _AppleVPNConnectionTypePPulseSecure = AppleVPNConnectionTypeVPulseSecure
+ _AppleVPNConnectionTypePF5EdgeClient = AppleVPNConnectionTypeVF5EdgeClient
+ _AppleVPNConnectionTypePDellSonicWallMobileConnect = AppleVPNConnectionTypeVDellSonicWallMobileConnect
+ _AppleVPNConnectionTypePCheckPointCapsuleVPN = AppleVPNConnectionTypeVCheckPointCapsuleVPN
+ _AppleVPNConnectionTypePCustomVPN = AppleVPNConnectionTypeVCustomVPN
+ _AppleVPNConnectionTypePCiscoIPSec = AppleVPNConnectionTypeVCiscoIPSec
+ _AppleVPNConnectionTypePCitrix = AppleVPNConnectionTypeVCitrix
+ _AppleVPNConnectionTypePCiscoAnyConnectV2 = AppleVPNConnectionTypeVCiscoAnyConnectV2
+ _AppleVPNConnectionTypePPaloAltoGlobalProtect = AppleVPNConnectionTypeVPaloAltoGlobalProtect
+ _AppleVPNConnectionTypePZscalerPrivateAccess = AppleVPNConnectionTypeVZscalerPrivateAccess
+ _AppleVPNConnectionTypePF5Access2018 = AppleVPNConnectionTypeVF5Access2018
+ _AppleVPNConnectionTypePCitrixSso = AppleVPNConnectionTypeVCitrixSso
+ _AppleVPNConnectionTypePPaloAltoGlobalProtectV2 = AppleVPNConnectionTypeVPaloAltoGlobalProtectV2
+ _AppleVPNConnectionTypePIkEv2 = AppleVPNConnectionTypeVIkEv2
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplication.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplication.go
new file mode 100644
index 00000000..fcebdbf6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplication.go
@@ -0,0 +1,242 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplicationGuardBlockClipboardSharingType undocumented
+type ApplicationGuardBlockClipboardSharingType string
+
+const (
+ // ApplicationGuardBlockClipboardSharingTypeVNotConfigured undocumented
+ ApplicationGuardBlockClipboardSharingTypeVNotConfigured ApplicationGuardBlockClipboardSharingType = "notConfigured"
+ // ApplicationGuardBlockClipboardSharingTypeVBlockBoth undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockBoth ApplicationGuardBlockClipboardSharingType = "blockBoth"
+ // ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer ApplicationGuardBlockClipboardSharingType = "blockHostToContainer"
+ // ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost ApplicationGuardBlockClipboardSharingType = "blockContainerToHost"
+ // ApplicationGuardBlockClipboardSharingTypeVBlockNone undocumented
+ ApplicationGuardBlockClipboardSharingTypeVBlockNone ApplicationGuardBlockClipboardSharingType = "blockNone"
+)
+
+var (
+ // ApplicationGuardBlockClipboardSharingTypePNotConfigured is a pointer to ApplicationGuardBlockClipboardSharingTypeVNotConfigured
+ ApplicationGuardBlockClipboardSharingTypePNotConfigured = &_ApplicationGuardBlockClipboardSharingTypePNotConfigured
+ // ApplicationGuardBlockClipboardSharingTypePBlockBoth is a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockBoth
+ ApplicationGuardBlockClipboardSharingTypePBlockBoth = &_ApplicationGuardBlockClipboardSharingTypePBlockBoth
+ // ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer is a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer
+ ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer = &_ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer
+ // ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost is a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost
+ ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost = &_ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost
+ // ApplicationGuardBlockClipboardSharingTypePBlockNone is a pointer to ApplicationGuardBlockClipboardSharingTypeVBlockNone
+ ApplicationGuardBlockClipboardSharingTypePBlockNone = &_ApplicationGuardBlockClipboardSharingTypePBlockNone
+)
+
+var (
+ _ApplicationGuardBlockClipboardSharingTypePNotConfigured = ApplicationGuardBlockClipboardSharingTypeVNotConfigured
+ _ApplicationGuardBlockClipboardSharingTypePBlockBoth = ApplicationGuardBlockClipboardSharingTypeVBlockBoth
+ _ApplicationGuardBlockClipboardSharingTypePBlockHostToContainer = ApplicationGuardBlockClipboardSharingTypeVBlockHostToContainer
+ _ApplicationGuardBlockClipboardSharingTypePBlockContainerToHost = ApplicationGuardBlockClipboardSharingTypeVBlockContainerToHost
+ _ApplicationGuardBlockClipboardSharingTypePBlockNone = ApplicationGuardBlockClipboardSharingTypeVBlockNone
+)
+
+// ApplicationGuardBlockFileTransferType undocumented
+type ApplicationGuardBlockFileTransferType string
+
+const (
+ // ApplicationGuardBlockFileTransferTypeVNotConfigured undocumented
+ ApplicationGuardBlockFileTransferTypeVNotConfigured ApplicationGuardBlockFileTransferType = "notConfigured"
+ // ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile ApplicationGuardBlockFileTransferType = "blockImageAndTextFile"
+ // ApplicationGuardBlockFileTransferTypeVBlockImageFile undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockImageFile ApplicationGuardBlockFileTransferType = "blockImageFile"
+ // ApplicationGuardBlockFileTransferTypeVBlockNone undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockNone ApplicationGuardBlockFileTransferType = "blockNone"
+ // ApplicationGuardBlockFileTransferTypeVBlockTextFile undocumented
+ ApplicationGuardBlockFileTransferTypeVBlockTextFile ApplicationGuardBlockFileTransferType = "blockTextFile"
+)
+
+var (
+ // ApplicationGuardBlockFileTransferTypePNotConfigured is a pointer to ApplicationGuardBlockFileTransferTypeVNotConfigured
+ ApplicationGuardBlockFileTransferTypePNotConfigured = &_ApplicationGuardBlockFileTransferTypePNotConfigured
+ // ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile is a pointer to ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile
+ ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile = &_ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile
+ // ApplicationGuardBlockFileTransferTypePBlockImageFile is a pointer to ApplicationGuardBlockFileTransferTypeVBlockImageFile
+ ApplicationGuardBlockFileTransferTypePBlockImageFile = &_ApplicationGuardBlockFileTransferTypePBlockImageFile
+ // ApplicationGuardBlockFileTransferTypePBlockNone is a pointer to ApplicationGuardBlockFileTransferTypeVBlockNone
+ ApplicationGuardBlockFileTransferTypePBlockNone = &_ApplicationGuardBlockFileTransferTypePBlockNone
+ // ApplicationGuardBlockFileTransferTypePBlockTextFile is a pointer to ApplicationGuardBlockFileTransferTypeVBlockTextFile
+ ApplicationGuardBlockFileTransferTypePBlockTextFile = &_ApplicationGuardBlockFileTransferTypePBlockTextFile
+)
+
+var (
+ _ApplicationGuardBlockFileTransferTypePNotConfigured = ApplicationGuardBlockFileTransferTypeVNotConfigured
+ _ApplicationGuardBlockFileTransferTypePBlockImageAndTextFile = ApplicationGuardBlockFileTransferTypeVBlockImageAndTextFile
+ _ApplicationGuardBlockFileTransferTypePBlockImageFile = ApplicationGuardBlockFileTransferTypeVBlockImageFile
+ _ApplicationGuardBlockFileTransferTypePBlockNone = ApplicationGuardBlockFileTransferTypeVBlockNone
+ _ApplicationGuardBlockFileTransferTypePBlockTextFile = ApplicationGuardBlockFileTransferTypeVBlockTextFile
+)
+
+// ApplicationGuardEnabledOptions undocumented
+type ApplicationGuardEnabledOptions string
+
+const (
+ // ApplicationGuardEnabledOptionsVNotConfigured undocumented
+ ApplicationGuardEnabledOptionsVNotConfigured ApplicationGuardEnabledOptions = "notConfigured"
+ // ApplicationGuardEnabledOptionsVEnabledForEdge undocumented
+ ApplicationGuardEnabledOptionsVEnabledForEdge ApplicationGuardEnabledOptions = "enabledForEdge"
+ // ApplicationGuardEnabledOptionsVEnabledForOffice undocumented
+ ApplicationGuardEnabledOptionsVEnabledForOffice ApplicationGuardEnabledOptions = "enabledForOffice"
+ // ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice undocumented
+ ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice ApplicationGuardEnabledOptions = "enabledForEdgeAndOffice"
+)
+
+var (
+ // ApplicationGuardEnabledOptionsPNotConfigured is a pointer to ApplicationGuardEnabledOptionsVNotConfigured
+ ApplicationGuardEnabledOptionsPNotConfigured = &_ApplicationGuardEnabledOptionsPNotConfigured
+ // ApplicationGuardEnabledOptionsPEnabledForEdge is a pointer to ApplicationGuardEnabledOptionsVEnabledForEdge
+ ApplicationGuardEnabledOptionsPEnabledForEdge = &_ApplicationGuardEnabledOptionsPEnabledForEdge
+ // ApplicationGuardEnabledOptionsPEnabledForOffice is a pointer to ApplicationGuardEnabledOptionsVEnabledForOffice
+ ApplicationGuardEnabledOptionsPEnabledForOffice = &_ApplicationGuardEnabledOptionsPEnabledForOffice
+ // ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice is a pointer to ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice
+ ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice = &_ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice
+)
+
+var (
+ _ApplicationGuardEnabledOptionsPNotConfigured = ApplicationGuardEnabledOptionsVNotConfigured
+ _ApplicationGuardEnabledOptionsPEnabledForEdge = ApplicationGuardEnabledOptionsVEnabledForEdge
+ _ApplicationGuardEnabledOptionsPEnabledForOffice = ApplicationGuardEnabledOptionsVEnabledForOffice
+ _ApplicationGuardEnabledOptionsPEnabledForEdgeAndOffice = ApplicationGuardEnabledOptionsVEnabledForEdgeAndOffice
+)
+
+// ApplicationIdentityType undocumented
+type ApplicationIdentityType string
+
+const (
+ // ApplicationIdentityTypeVAadApplication undocumented
+ ApplicationIdentityTypeVAadApplication ApplicationIdentityType = "aadApplication"
+ // ApplicationIdentityTypeVBot undocumented
+ ApplicationIdentityTypeVBot ApplicationIdentityType = "bot"
+ // ApplicationIdentityTypeVTenantBot undocumented
+ ApplicationIdentityTypeVTenantBot ApplicationIdentityType = "tenantBot"
+ // ApplicationIdentityTypeVOffice365Connector undocumented
+ ApplicationIdentityTypeVOffice365Connector ApplicationIdentityType = "office365Connector"
+ // ApplicationIdentityTypeVOutgoingWebhook undocumented
+ ApplicationIdentityTypeVOutgoingWebhook ApplicationIdentityType = "outgoingWebhook"
+)
+
+var (
+ // ApplicationIdentityTypePAadApplication is a pointer to ApplicationIdentityTypeVAadApplication
+ ApplicationIdentityTypePAadApplication = &_ApplicationIdentityTypePAadApplication
+ // ApplicationIdentityTypePBot is a pointer to ApplicationIdentityTypeVBot
+ ApplicationIdentityTypePBot = &_ApplicationIdentityTypePBot
+ // ApplicationIdentityTypePTenantBot is a pointer to ApplicationIdentityTypeVTenantBot
+ ApplicationIdentityTypePTenantBot = &_ApplicationIdentityTypePTenantBot
+ // ApplicationIdentityTypePOffice365Connector is a pointer to ApplicationIdentityTypeVOffice365Connector
+ ApplicationIdentityTypePOffice365Connector = &_ApplicationIdentityTypePOffice365Connector
+ // ApplicationIdentityTypePOutgoingWebhook is a pointer to ApplicationIdentityTypeVOutgoingWebhook
+ ApplicationIdentityTypePOutgoingWebhook = &_ApplicationIdentityTypePOutgoingWebhook
+)
+
+var (
+ _ApplicationIdentityTypePAadApplication = ApplicationIdentityTypeVAadApplication
+ _ApplicationIdentityTypePBot = ApplicationIdentityTypeVBot
+ _ApplicationIdentityTypePTenantBot = ApplicationIdentityTypeVTenantBot
+ _ApplicationIdentityTypePOffice365Connector = ApplicationIdentityTypeVOffice365Connector
+ _ApplicationIdentityTypePOutgoingWebhook = ApplicationIdentityTypeVOutgoingWebhook
+)
+
+// ApplicationMode undocumented
+type ApplicationMode string
+
+const (
+ // ApplicationModeVManual undocumented
+ ApplicationModeVManual ApplicationMode = "manual"
+ // ApplicationModeVAutomatic undocumented
+ ApplicationModeVAutomatic ApplicationMode = "automatic"
+ // ApplicationModeVRecommended undocumented
+ ApplicationModeVRecommended ApplicationMode = "recommended"
+)
+
+var (
+ // ApplicationModePManual is a pointer to ApplicationModeVManual
+ ApplicationModePManual = &_ApplicationModePManual
+ // ApplicationModePAutomatic is a pointer to ApplicationModeVAutomatic
+ ApplicationModePAutomatic = &_ApplicationModePAutomatic
+ // ApplicationModePRecommended is a pointer to ApplicationModeVRecommended
+ ApplicationModePRecommended = &_ApplicationModePRecommended
+)
+
+var (
+ _ApplicationModePManual = ApplicationModeVManual
+ _ApplicationModePAutomatic = ApplicationModeVAutomatic
+ _ApplicationModePRecommended = ApplicationModeVRecommended
+)
+
+// ApplicationPermissionsRequired undocumented
+type ApplicationPermissionsRequired string
+
+const (
+ // ApplicationPermissionsRequiredVUnknown undocumented
+ ApplicationPermissionsRequiredVUnknown ApplicationPermissionsRequired = "unknown"
+ // ApplicationPermissionsRequiredVAnonymous undocumented
+ ApplicationPermissionsRequiredVAnonymous ApplicationPermissionsRequired = "anonymous"
+ // ApplicationPermissionsRequiredVGuest undocumented
+ ApplicationPermissionsRequiredVGuest ApplicationPermissionsRequired = "guest"
+ // ApplicationPermissionsRequiredVUser undocumented
+ ApplicationPermissionsRequiredVUser ApplicationPermissionsRequired = "user"
+ // ApplicationPermissionsRequiredVAdministrator undocumented
+ ApplicationPermissionsRequiredVAdministrator ApplicationPermissionsRequired = "administrator"
+ // ApplicationPermissionsRequiredVSystem undocumented
+ ApplicationPermissionsRequiredVSystem ApplicationPermissionsRequired = "system"
+ // ApplicationPermissionsRequiredVUnknownFutureValue undocumented
+ ApplicationPermissionsRequiredVUnknownFutureValue ApplicationPermissionsRequired = "unknownFutureValue"
+)
+
+var (
+ // ApplicationPermissionsRequiredPUnknown is a pointer to ApplicationPermissionsRequiredVUnknown
+ ApplicationPermissionsRequiredPUnknown = &_ApplicationPermissionsRequiredPUnknown
+ // ApplicationPermissionsRequiredPAnonymous is a pointer to ApplicationPermissionsRequiredVAnonymous
+ ApplicationPermissionsRequiredPAnonymous = &_ApplicationPermissionsRequiredPAnonymous
+ // ApplicationPermissionsRequiredPGuest is a pointer to ApplicationPermissionsRequiredVGuest
+ ApplicationPermissionsRequiredPGuest = &_ApplicationPermissionsRequiredPGuest
+ // ApplicationPermissionsRequiredPUser is a pointer to ApplicationPermissionsRequiredVUser
+ ApplicationPermissionsRequiredPUser = &_ApplicationPermissionsRequiredPUser
+ // ApplicationPermissionsRequiredPAdministrator is a pointer to ApplicationPermissionsRequiredVAdministrator
+ ApplicationPermissionsRequiredPAdministrator = &_ApplicationPermissionsRequiredPAdministrator
+ // ApplicationPermissionsRequiredPSystem is a pointer to ApplicationPermissionsRequiredVSystem
+ ApplicationPermissionsRequiredPSystem = &_ApplicationPermissionsRequiredPSystem
+ // ApplicationPermissionsRequiredPUnknownFutureValue is a pointer to ApplicationPermissionsRequiredVUnknownFutureValue
+ ApplicationPermissionsRequiredPUnknownFutureValue = &_ApplicationPermissionsRequiredPUnknownFutureValue
+)
+
+var (
+ _ApplicationPermissionsRequiredPUnknown = ApplicationPermissionsRequiredVUnknown
+ _ApplicationPermissionsRequiredPAnonymous = ApplicationPermissionsRequiredVAnonymous
+ _ApplicationPermissionsRequiredPGuest = ApplicationPermissionsRequiredVGuest
+ _ApplicationPermissionsRequiredPUser = ApplicationPermissionsRequiredVUser
+ _ApplicationPermissionsRequiredPAdministrator = ApplicationPermissionsRequiredVAdministrator
+ _ApplicationPermissionsRequiredPSystem = ApplicationPermissionsRequiredVSystem
+ _ApplicationPermissionsRequiredPUnknownFutureValue = ApplicationPermissionsRequiredVUnknownFutureValue
+)
+
+// ApplicationType undocumented
+type ApplicationType string
+
+const (
+ // ApplicationTypeVUniversal undocumented
+ ApplicationTypeVUniversal ApplicationType = "universal"
+ // ApplicationTypeVDesktop undocumented
+ ApplicationTypeVDesktop ApplicationType = "desktop"
+)
+
+var (
+ // ApplicationTypePUniversal is a pointer to ApplicationTypeVUniversal
+ ApplicationTypePUniversal = &_ApplicationTypePUniversal
+ // ApplicationTypePDesktop is a pointer to ApplicationTypeVDesktop
+ ApplicationTypePDesktop = &_ApplicationTypePDesktop
+)
+
+var (
+ _ApplicationTypePUniversal = ApplicationTypeVUniversal
+ _ApplicationTypePDesktop = ApplicationTypeVDesktop
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplied.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplied.go
new file mode 100644
index 00000000..9f9d3fdc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApplied.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppliedConditionalAccessPolicyResult undocumented
+type AppliedConditionalAccessPolicyResult string
+
+const (
+ // AppliedConditionalAccessPolicyResultVSuccess undocumented
+ AppliedConditionalAccessPolicyResultVSuccess AppliedConditionalAccessPolicyResult = "success"
+ // AppliedConditionalAccessPolicyResultVFailure undocumented
+ AppliedConditionalAccessPolicyResultVFailure AppliedConditionalAccessPolicyResult = "failure"
+ // AppliedConditionalAccessPolicyResultVNotApplied undocumented
+ AppliedConditionalAccessPolicyResultVNotApplied AppliedConditionalAccessPolicyResult = "notApplied"
+ // AppliedConditionalAccessPolicyResultVNotEnabled undocumented
+ AppliedConditionalAccessPolicyResultVNotEnabled AppliedConditionalAccessPolicyResult = "notEnabled"
+ // AppliedConditionalAccessPolicyResultVUnknown undocumented
+ AppliedConditionalAccessPolicyResultVUnknown AppliedConditionalAccessPolicyResult = "unknown"
+ // AppliedConditionalAccessPolicyResultVUnknownFutureValue undocumented
+ AppliedConditionalAccessPolicyResultVUnknownFutureValue AppliedConditionalAccessPolicyResult = "unknownFutureValue"
+ // AppliedConditionalAccessPolicyResultVReportOnlySuccess undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlySuccess AppliedConditionalAccessPolicyResult = "reportOnlySuccess"
+ // AppliedConditionalAccessPolicyResultVReportOnlyFailure undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlyFailure AppliedConditionalAccessPolicyResult = "reportOnlyFailure"
+ // AppliedConditionalAccessPolicyResultVReportOnlyNotApplied undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlyNotApplied AppliedConditionalAccessPolicyResult = "reportOnlyNotApplied"
+ // AppliedConditionalAccessPolicyResultVReportOnlyInterrupted undocumented
+ AppliedConditionalAccessPolicyResultVReportOnlyInterrupted AppliedConditionalAccessPolicyResult = "reportOnlyInterrupted"
+)
+
+var (
+ // AppliedConditionalAccessPolicyResultPSuccess is a pointer to AppliedConditionalAccessPolicyResultVSuccess
+ AppliedConditionalAccessPolicyResultPSuccess = &_AppliedConditionalAccessPolicyResultPSuccess
+ // AppliedConditionalAccessPolicyResultPFailure is a pointer to AppliedConditionalAccessPolicyResultVFailure
+ AppliedConditionalAccessPolicyResultPFailure = &_AppliedConditionalAccessPolicyResultPFailure
+ // AppliedConditionalAccessPolicyResultPNotApplied is a pointer to AppliedConditionalAccessPolicyResultVNotApplied
+ AppliedConditionalAccessPolicyResultPNotApplied = &_AppliedConditionalAccessPolicyResultPNotApplied
+ // AppliedConditionalAccessPolicyResultPNotEnabled is a pointer to AppliedConditionalAccessPolicyResultVNotEnabled
+ AppliedConditionalAccessPolicyResultPNotEnabled = &_AppliedConditionalAccessPolicyResultPNotEnabled
+ // AppliedConditionalAccessPolicyResultPUnknown is a pointer to AppliedConditionalAccessPolicyResultVUnknown
+ AppliedConditionalAccessPolicyResultPUnknown = &_AppliedConditionalAccessPolicyResultPUnknown
+ // AppliedConditionalAccessPolicyResultPUnknownFutureValue is a pointer to AppliedConditionalAccessPolicyResultVUnknownFutureValue
+ AppliedConditionalAccessPolicyResultPUnknownFutureValue = &_AppliedConditionalAccessPolicyResultPUnknownFutureValue
+ // AppliedConditionalAccessPolicyResultPReportOnlySuccess is a pointer to AppliedConditionalAccessPolicyResultVReportOnlySuccess
+ AppliedConditionalAccessPolicyResultPReportOnlySuccess = &_AppliedConditionalAccessPolicyResultPReportOnlySuccess
+ // AppliedConditionalAccessPolicyResultPReportOnlyFailure is a pointer to AppliedConditionalAccessPolicyResultVReportOnlyFailure
+ AppliedConditionalAccessPolicyResultPReportOnlyFailure = &_AppliedConditionalAccessPolicyResultPReportOnlyFailure
+ // AppliedConditionalAccessPolicyResultPReportOnlyNotApplied is a pointer to AppliedConditionalAccessPolicyResultVReportOnlyNotApplied
+ AppliedConditionalAccessPolicyResultPReportOnlyNotApplied = &_AppliedConditionalAccessPolicyResultPReportOnlyNotApplied
+ // AppliedConditionalAccessPolicyResultPReportOnlyInterrupted is a pointer to AppliedConditionalAccessPolicyResultVReportOnlyInterrupted
+ AppliedConditionalAccessPolicyResultPReportOnlyInterrupted = &_AppliedConditionalAccessPolicyResultPReportOnlyInterrupted
+)
+
+var (
+ _AppliedConditionalAccessPolicyResultPSuccess = AppliedConditionalAccessPolicyResultVSuccess
+ _AppliedConditionalAccessPolicyResultPFailure = AppliedConditionalAccessPolicyResultVFailure
+ _AppliedConditionalAccessPolicyResultPNotApplied = AppliedConditionalAccessPolicyResultVNotApplied
+ _AppliedConditionalAccessPolicyResultPNotEnabled = AppliedConditionalAccessPolicyResultVNotEnabled
+ _AppliedConditionalAccessPolicyResultPUnknown = AppliedConditionalAccessPolicyResultVUnknown
+ _AppliedConditionalAccessPolicyResultPUnknownFutureValue = AppliedConditionalAccessPolicyResultVUnknownFutureValue
+ _AppliedConditionalAccessPolicyResultPReportOnlySuccess = AppliedConditionalAccessPolicyResultVReportOnlySuccess
+ _AppliedConditionalAccessPolicyResultPReportOnlyFailure = AppliedConditionalAccessPolicyResultVReportOnlyFailure
+ _AppliedConditionalAccessPolicyResultPReportOnlyNotApplied = AppliedConditionalAccessPolicyResultVReportOnlyNotApplied
+ _AppliedConditionalAccessPolicyResultPReportOnlyInterrupted = AppliedConditionalAccessPolicyResultVReportOnlyInterrupted
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumApproval.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApproval.go
new file mode 100644
index 00000000..6a6d3407
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumApproval.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApprovalState undocumented
+type ApprovalState string
+
+const (
+ // ApprovalStateVPending undocumented
+ ApprovalStateVPending ApprovalState = "pending"
+ // ApprovalStateVApproved undocumented
+ ApprovalStateVApproved ApprovalState = "approved"
+ // ApprovalStateVDenied undocumented
+ ApprovalStateVDenied ApprovalState = "denied"
+ // ApprovalStateVAborted undocumented
+ ApprovalStateVAborted ApprovalState = "aborted"
+ // ApprovalStateVCanceled undocumented
+ ApprovalStateVCanceled ApprovalState = "canceled"
+)
+
+var (
+ // ApprovalStatePPending is a pointer to ApprovalStateVPending
+ ApprovalStatePPending = &_ApprovalStatePPending
+ // ApprovalStatePApproved is a pointer to ApprovalStateVApproved
+ ApprovalStatePApproved = &_ApprovalStatePApproved
+ // ApprovalStatePDenied is a pointer to ApprovalStateVDenied
+ ApprovalStatePDenied = &_ApprovalStatePDenied
+ // ApprovalStatePAborted is a pointer to ApprovalStateVAborted
+ ApprovalStatePAborted = &_ApprovalStatePAborted
+ // ApprovalStatePCanceled is a pointer to ApprovalStateVCanceled
+ ApprovalStatePCanceled = &_ApprovalStatePCanceled
+)
+
+var (
+ _ApprovalStatePPending = ApprovalStateVPending
+ _ApprovalStatePApproved = ApprovalStateVApproved
+ _ApprovalStatePDenied = ApprovalStateVDenied
+ _ApprovalStatePAborted = ApprovalStateVAborted
+ _ApprovalStatePCanceled = ApprovalStateVCanceled
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAssignment.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAssignment.go
new file mode 100644
index 00000000..e9b6c577
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAssignment.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AssignmentMethod undocumented
+type AssignmentMethod string
+
+const (
+ // AssignmentMethodVStandard undocumented
+ AssignmentMethodVStandard AssignmentMethod = "standard"
+ // AssignmentMethodVPrivileged undocumented
+ AssignmentMethodVPrivileged AssignmentMethod = "privileged"
+ // AssignmentMethodVAuto undocumented
+ AssignmentMethodVAuto AssignmentMethod = "auto"
+)
+
+var (
+ // AssignmentMethodPStandard is a pointer to AssignmentMethodVStandard
+ AssignmentMethodPStandard = &_AssignmentMethodPStandard
+ // AssignmentMethodPPrivileged is a pointer to AssignmentMethodVPrivileged
+ AssignmentMethodPPrivileged = &_AssignmentMethodPPrivileged
+ // AssignmentMethodPAuto is a pointer to AssignmentMethodVAuto
+ AssignmentMethodPAuto = &_AssignmentMethodPAuto
+)
+
+var (
+ _AssignmentMethodPStandard = AssignmentMethodVStandard
+ _AssignmentMethodPPrivileged = AssignmentMethodVPrivileged
+ _AssignmentMethodPAuto = AssignmentMethodVAuto
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttachment.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttachment.go
new file mode 100644
index 00000000..d5fb8d9a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttachment.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttachmentType undocumented
+type AttachmentType string
+
+const (
+ // AttachmentTypeVFile undocumented
+ AttachmentTypeVFile AttachmentType = "file"
+ // AttachmentTypeVItem undocumented
+ AttachmentTypeVItem AttachmentType = "item"
+ // AttachmentTypeVReference undocumented
+ AttachmentTypeVReference AttachmentType = "reference"
+)
+
+var (
+ // AttachmentTypePFile is a pointer to AttachmentTypeVFile
+ AttachmentTypePFile = &_AttachmentTypePFile
+ // AttachmentTypePItem is a pointer to AttachmentTypeVItem
+ AttachmentTypePItem = &_AttachmentTypePItem
+ // AttachmentTypePReference is a pointer to AttachmentTypeVReference
+ AttachmentTypePReference = &_AttachmentTypePReference
+)
+
+var (
+ _AttachmentTypePFile = AttachmentTypeVFile
+ _AttachmentTypePItem = AttachmentTypeVItem
+ _AttachmentTypePReference = AttachmentTypeVReference
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttendee.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttendee.go
new file mode 100644
index 00000000..25b5cec1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttendee.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttendeeType undocumented
+type AttendeeType string
+
+const (
+ // AttendeeTypeVRequired undocumented
+ AttendeeTypeVRequired AttendeeType = "required"
+ // AttendeeTypeVOptional undocumented
+ AttendeeTypeVOptional AttendeeType = "optional"
+ // AttendeeTypeVResource undocumented
+ AttendeeTypeVResource AttendeeType = "resource"
+)
+
+var (
+ // AttendeeTypePRequired is a pointer to AttendeeTypeVRequired
+ AttendeeTypePRequired = &_AttendeeTypePRequired
+ // AttendeeTypePOptional is a pointer to AttendeeTypeVOptional
+ AttendeeTypePOptional = &_AttendeeTypePOptional
+ // AttendeeTypePResource is a pointer to AttendeeTypeVResource
+ AttendeeTypePResource = &_AttendeeTypePResource
+)
+
+var (
+ _AttendeeTypePRequired = AttendeeTypeVRequired
+ _AttendeeTypePOptional = AttendeeTypeVOptional
+ _AttendeeTypePResource = AttendeeTypeVResource
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttribute.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttribute.go
new file mode 100644
index 00000000..d54ef26c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAttribute.go
@@ -0,0 +1,121 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeFlowBehavior undocumented
+type AttributeFlowBehavior string
+
+const (
+ // AttributeFlowBehaviorVFlowWhenChanged undocumented
+ AttributeFlowBehaviorVFlowWhenChanged AttributeFlowBehavior = "FlowWhenChanged"
+ // AttributeFlowBehaviorVFlowAlways undocumented
+ AttributeFlowBehaviorVFlowAlways AttributeFlowBehavior = "FlowAlways"
+)
+
+var (
+ // AttributeFlowBehaviorPFlowWhenChanged is a pointer to AttributeFlowBehaviorVFlowWhenChanged
+ AttributeFlowBehaviorPFlowWhenChanged = &_AttributeFlowBehaviorPFlowWhenChanged
+ // AttributeFlowBehaviorPFlowAlways is a pointer to AttributeFlowBehaviorVFlowAlways
+ AttributeFlowBehaviorPFlowAlways = &_AttributeFlowBehaviorPFlowAlways
+)
+
+var (
+ _AttributeFlowBehaviorPFlowWhenChanged = AttributeFlowBehaviorVFlowWhenChanged
+ _AttributeFlowBehaviorPFlowAlways = AttributeFlowBehaviorVFlowAlways
+)
+
+// AttributeFlowType undocumented
+type AttributeFlowType string
+
+const (
+ // AttributeFlowTypeVAlways undocumented
+ AttributeFlowTypeVAlways AttributeFlowType = "Always"
+ // AttributeFlowTypeVObjectAddOnly undocumented
+ AttributeFlowTypeVObjectAddOnly AttributeFlowType = "ObjectAddOnly"
+ // AttributeFlowTypeVMultiValueAddOnly undocumented
+ AttributeFlowTypeVMultiValueAddOnly AttributeFlowType = "MultiValueAddOnly"
+)
+
+var (
+ // AttributeFlowTypePAlways is a pointer to AttributeFlowTypeVAlways
+ AttributeFlowTypePAlways = &_AttributeFlowTypePAlways
+ // AttributeFlowTypePObjectAddOnly is a pointer to AttributeFlowTypeVObjectAddOnly
+ AttributeFlowTypePObjectAddOnly = &_AttributeFlowTypePObjectAddOnly
+ // AttributeFlowTypePMultiValueAddOnly is a pointer to AttributeFlowTypeVMultiValueAddOnly
+ AttributeFlowTypePMultiValueAddOnly = &_AttributeFlowTypePMultiValueAddOnly
+)
+
+var (
+ _AttributeFlowTypePAlways = AttributeFlowTypeVAlways
+ _AttributeFlowTypePObjectAddOnly = AttributeFlowTypeVObjectAddOnly
+ _AttributeFlowTypePMultiValueAddOnly = AttributeFlowTypeVMultiValueAddOnly
+)
+
+// AttributeMappingSourceType undocumented
+type AttributeMappingSourceType string
+
+const (
+ // AttributeMappingSourceTypeVAttribute undocumented
+ AttributeMappingSourceTypeVAttribute AttributeMappingSourceType = "Attribute"
+ // AttributeMappingSourceTypeVConstant undocumented
+ AttributeMappingSourceTypeVConstant AttributeMappingSourceType = "Constant"
+ // AttributeMappingSourceTypeVFunction undocumented
+ AttributeMappingSourceTypeVFunction AttributeMappingSourceType = "Function"
+)
+
+var (
+ // AttributeMappingSourceTypePAttribute is a pointer to AttributeMappingSourceTypeVAttribute
+ AttributeMappingSourceTypePAttribute = &_AttributeMappingSourceTypePAttribute
+ // AttributeMappingSourceTypePConstant is a pointer to AttributeMappingSourceTypeVConstant
+ AttributeMappingSourceTypePConstant = &_AttributeMappingSourceTypePConstant
+ // AttributeMappingSourceTypePFunction is a pointer to AttributeMappingSourceTypeVFunction
+ AttributeMappingSourceTypePFunction = &_AttributeMappingSourceTypePFunction
+)
+
+var (
+ _AttributeMappingSourceTypePAttribute = AttributeMappingSourceTypeVAttribute
+ _AttributeMappingSourceTypePConstant = AttributeMappingSourceTypeVConstant
+ _AttributeMappingSourceTypePFunction = AttributeMappingSourceTypeVFunction
+)
+
+// AttributeType undocumented
+type AttributeType string
+
+const (
+ // AttributeTypeVDateTime undocumented
+ AttributeTypeVDateTime AttributeType = "DateTime"
+ // AttributeTypeVBoolean undocumented
+ AttributeTypeVBoolean AttributeType = "Boolean"
+ // AttributeTypeVBinary undocumented
+ AttributeTypeVBinary AttributeType = "Binary"
+ // AttributeTypeVReference undocumented
+ AttributeTypeVReference AttributeType = "Reference"
+ // AttributeTypeVInteger undocumented
+ AttributeTypeVInteger AttributeType = "Integer"
+ // AttributeTypeVString undocumented
+ AttributeTypeVString AttributeType = "String"
+)
+
+var (
+ // AttributeTypePDateTime is a pointer to AttributeTypeVDateTime
+ AttributeTypePDateTime = &_AttributeTypePDateTime
+ // AttributeTypePBoolean is a pointer to AttributeTypeVBoolean
+ AttributeTypePBoolean = &_AttributeTypePBoolean
+ // AttributeTypePBinary is a pointer to AttributeTypeVBinary
+ AttributeTypePBinary = &_AttributeTypePBinary
+ // AttributeTypePReference is a pointer to AttributeTypeVReference
+ AttributeTypePReference = &_AttributeTypePReference
+ // AttributeTypePInteger is a pointer to AttributeTypeVInteger
+ AttributeTypePInteger = &_AttributeTypePInteger
+ // AttributeTypePString is a pointer to AttributeTypeVString
+ AttributeTypePString = &_AttributeTypePString
+)
+
+var (
+ _AttributeTypePDateTime = AttributeTypeVDateTime
+ _AttributeTypePBoolean = AttributeTypeVBoolean
+ _AttributeTypePBinary = AttributeTypeVBinary
+ _AttributeTypePReference = AttributeTypeVReference
+ _AttributeTypePInteger = AttributeTypeVInteger
+ _AttributeTypePString = AttributeTypeVString
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuth.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuth.go
new file mode 100644
index 00000000..bae64b60
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuth.go
@@ -0,0 +1,80 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AuthMethodsType undocumented
+type AuthMethodsType string
+
+const (
+ // AuthMethodsTypeVEmail undocumented
+ AuthMethodsTypeVEmail AuthMethodsType = "email"
+ // AuthMethodsTypeVMobileSMS undocumented
+ AuthMethodsTypeVMobileSMS AuthMethodsType = "mobileSMS"
+ // AuthMethodsTypeVMobilePhone undocumented
+ AuthMethodsTypeVMobilePhone AuthMethodsType = "mobilePhone"
+ // AuthMethodsTypeVOfficePhone undocumented
+ AuthMethodsTypeVOfficePhone AuthMethodsType = "officePhone"
+ // AuthMethodsTypeVSecurityQuestion undocumented
+ AuthMethodsTypeVSecurityQuestion AuthMethodsType = "securityQuestion"
+ // AuthMethodsTypeVAppNotification undocumented
+ AuthMethodsTypeVAppNotification AuthMethodsType = "appNotification"
+ // AuthMethodsTypeVAppNotificationCode undocumented
+ AuthMethodsTypeVAppNotificationCode AuthMethodsType = "appNotificationCode"
+ // AuthMethodsTypeVAppNotificationAndCode undocumented
+ AuthMethodsTypeVAppNotificationAndCode AuthMethodsType = "appNotificationAndCode"
+ // AuthMethodsTypeVAppPassword undocumented
+ AuthMethodsTypeVAppPassword AuthMethodsType = "appPassword"
+ // AuthMethodsTypeVFido undocumented
+ AuthMethodsTypeVFido AuthMethodsType = "fido"
+ // AuthMethodsTypeVAlternateMobilePhone undocumented
+ AuthMethodsTypeVAlternateMobilePhone AuthMethodsType = "alternateMobilePhone"
+ // AuthMethodsTypeVMobilePhoneAndSMS undocumented
+ AuthMethodsTypeVMobilePhoneAndSMS AuthMethodsType = "mobilePhoneAndSMS"
+ // AuthMethodsTypeVUnknownFutureValue undocumented
+ AuthMethodsTypeVUnknownFutureValue AuthMethodsType = "unknownFutureValue"
+)
+
+var (
+ // AuthMethodsTypePEmail is a pointer to AuthMethodsTypeVEmail
+ AuthMethodsTypePEmail = &_AuthMethodsTypePEmail
+ // AuthMethodsTypePMobileSMS is a pointer to AuthMethodsTypeVMobileSMS
+ AuthMethodsTypePMobileSMS = &_AuthMethodsTypePMobileSMS
+ // AuthMethodsTypePMobilePhone is a pointer to AuthMethodsTypeVMobilePhone
+ AuthMethodsTypePMobilePhone = &_AuthMethodsTypePMobilePhone
+ // AuthMethodsTypePOfficePhone is a pointer to AuthMethodsTypeVOfficePhone
+ AuthMethodsTypePOfficePhone = &_AuthMethodsTypePOfficePhone
+ // AuthMethodsTypePSecurityQuestion is a pointer to AuthMethodsTypeVSecurityQuestion
+ AuthMethodsTypePSecurityQuestion = &_AuthMethodsTypePSecurityQuestion
+ // AuthMethodsTypePAppNotification is a pointer to AuthMethodsTypeVAppNotification
+ AuthMethodsTypePAppNotification = &_AuthMethodsTypePAppNotification
+ // AuthMethodsTypePAppNotificationCode is a pointer to AuthMethodsTypeVAppNotificationCode
+ AuthMethodsTypePAppNotificationCode = &_AuthMethodsTypePAppNotificationCode
+ // AuthMethodsTypePAppNotificationAndCode is a pointer to AuthMethodsTypeVAppNotificationAndCode
+ AuthMethodsTypePAppNotificationAndCode = &_AuthMethodsTypePAppNotificationAndCode
+ // AuthMethodsTypePAppPassword is a pointer to AuthMethodsTypeVAppPassword
+ AuthMethodsTypePAppPassword = &_AuthMethodsTypePAppPassword
+ // AuthMethodsTypePFido is a pointer to AuthMethodsTypeVFido
+ AuthMethodsTypePFido = &_AuthMethodsTypePFido
+ // AuthMethodsTypePAlternateMobilePhone is a pointer to AuthMethodsTypeVAlternateMobilePhone
+ AuthMethodsTypePAlternateMobilePhone = &_AuthMethodsTypePAlternateMobilePhone
+ // AuthMethodsTypePMobilePhoneAndSMS is a pointer to AuthMethodsTypeVMobilePhoneAndSMS
+ AuthMethodsTypePMobilePhoneAndSMS = &_AuthMethodsTypePMobilePhoneAndSMS
+ // AuthMethodsTypePUnknownFutureValue is a pointer to AuthMethodsTypeVUnknownFutureValue
+ AuthMethodsTypePUnknownFutureValue = &_AuthMethodsTypePUnknownFutureValue
+)
+
+var (
+ _AuthMethodsTypePEmail = AuthMethodsTypeVEmail
+ _AuthMethodsTypePMobileSMS = AuthMethodsTypeVMobileSMS
+ _AuthMethodsTypePMobilePhone = AuthMethodsTypeVMobilePhone
+ _AuthMethodsTypePOfficePhone = AuthMethodsTypeVOfficePhone
+ _AuthMethodsTypePSecurityQuestion = AuthMethodsTypeVSecurityQuestion
+ _AuthMethodsTypePAppNotification = AuthMethodsTypeVAppNotification
+ _AuthMethodsTypePAppNotificationCode = AuthMethodsTypeVAppNotificationCode
+ _AuthMethodsTypePAppNotificationAndCode = AuthMethodsTypeVAppNotificationAndCode
+ _AuthMethodsTypePAppPassword = AuthMethodsTypeVAppPassword
+ _AuthMethodsTypePFido = AuthMethodsTypeVFido
+ _AuthMethodsTypePAlternateMobilePhone = AuthMethodsTypeVAlternateMobilePhone
+ _AuthMethodsTypePMobilePhoneAndSMS = AuthMethodsTypeVMobilePhoneAndSMS
+ _AuthMethodsTypePUnknownFutureValue = AuthMethodsTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuto.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuto.go
new file mode 100644
index 00000000..8200a8ab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAuto.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutoAdmittedUsersType undocumented
+type AutoAdmittedUsersType string
+
+const (
+ // AutoAdmittedUsersTypeVEveryoneInCompany undocumented
+ AutoAdmittedUsersTypeVEveryoneInCompany AutoAdmittedUsersType = "everyoneInCompany"
+ // AutoAdmittedUsersTypeVEveryone undocumented
+ AutoAdmittedUsersTypeVEveryone AutoAdmittedUsersType = "everyone"
+)
+
+var (
+ // AutoAdmittedUsersTypePEveryoneInCompany is a pointer to AutoAdmittedUsersTypeVEveryoneInCompany
+ AutoAdmittedUsersTypePEveryoneInCompany = &_AutoAdmittedUsersTypePEveryoneInCompany
+ // AutoAdmittedUsersTypePEveryone is a pointer to AutoAdmittedUsersTypeVEveryone
+ AutoAdmittedUsersTypePEveryone = &_AutoAdmittedUsersTypePEveryone
+)
+
+var (
+ _AutoAdmittedUsersTypePEveryoneInCompany = AutoAdmittedUsersTypeVEveryoneInCompany
+ _AutoAdmittedUsersTypePEveryone = AutoAdmittedUsersTypeVEveryone
+)
+
+// AutoRestartNotificationDismissalMethod undocumented
+type AutoRestartNotificationDismissalMethod string
+
+const (
+ // AutoRestartNotificationDismissalMethodVNotConfigured undocumented
+ AutoRestartNotificationDismissalMethodVNotConfigured AutoRestartNotificationDismissalMethod = "notConfigured"
+ // AutoRestartNotificationDismissalMethodVAutomatic undocumented
+ AutoRestartNotificationDismissalMethodVAutomatic AutoRestartNotificationDismissalMethod = "automatic"
+ // AutoRestartNotificationDismissalMethodVUser undocumented
+ AutoRestartNotificationDismissalMethodVUser AutoRestartNotificationDismissalMethod = "user"
+)
+
+var (
+ // AutoRestartNotificationDismissalMethodPNotConfigured is a pointer to AutoRestartNotificationDismissalMethodVNotConfigured
+ AutoRestartNotificationDismissalMethodPNotConfigured = &_AutoRestartNotificationDismissalMethodPNotConfigured
+ // AutoRestartNotificationDismissalMethodPAutomatic is a pointer to AutoRestartNotificationDismissalMethodVAutomatic
+ AutoRestartNotificationDismissalMethodPAutomatic = &_AutoRestartNotificationDismissalMethodPAutomatic
+ // AutoRestartNotificationDismissalMethodPUser is a pointer to AutoRestartNotificationDismissalMethodVUser
+ AutoRestartNotificationDismissalMethodPUser = &_AutoRestartNotificationDismissalMethodPUser
+)
+
+var (
+ _AutoRestartNotificationDismissalMethodPNotConfigured = AutoRestartNotificationDismissalMethodVNotConfigured
+ _AutoRestartNotificationDismissalMethodPAutomatic = AutoRestartNotificationDismissalMethodVAutomatic
+ _AutoRestartNotificationDismissalMethodPUser = AutoRestartNotificationDismissalMethodVUser
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAutomatic.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAutomatic.go
new file mode 100644
index 00000000..d963325c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAutomatic.go
@@ -0,0 +1,77 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutomaticRepliesStatus undocumented
+type AutomaticRepliesStatus string
+
+const (
+ // AutomaticRepliesStatusVDisabled undocumented
+ AutomaticRepliesStatusVDisabled AutomaticRepliesStatus = "disabled"
+ // AutomaticRepliesStatusVAlwaysEnabled undocumented
+ AutomaticRepliesStatusVAlwaysEnabled AutomaticRepliesStatus = "alwaysEnabled"
+ // AutomaticRepliesStatusVScheduled undocumented
+ AutomaticRepliesStatusVScheduled AutomaticRepliesStatus = "scheduled"
+)
+
+var (
+ // AutomaticRepliesStatusPDisabled is a pointer to AutomaticRepliesStatusVDisabled
+ AutomaticRepliesStatusPDisabled = &_AutomaticRepliesStatusPDisabled
+ // AutomaticRepliesStatusPAlwaysEnabled is a pointer to AutomaticRepliesStatusVAlwaysEnabled
+ AutomaticRepliesStatusPAlwaysEnabled = &_AutomaticRepliesStatusPAlwaysEnabled
+ // AutomaticRepliesStatusPScheduled is a pointer to AutomaticRepliesStatusVScheduled
+ AutomaticRepliesStatusPScheduled = &_AutomaticRepliesStatusPScheduled
+)
+
+var (
+ _AutomaticRepliesStatusPDisabled = AutomaticRepliesStatusVDisabled
+ _AutomaticRepliesStatusPAlwaysEnabled = AutomaticRepliesStatusVAlwaysEnabled
+ _AutomaticRepliesStatusPScheduled = AutomaticRepliesStatusVScheduled
+)
+
+// AutomaticUpdateMode undocumented
+type AutomaticUpdateMode string
+
+const (
+ // AutomaticUpdateModeVUserDefined undocumented
+ AutomaticUpdateModeVUserDefined AutomaticUpdateMode = "userDefined"
+ // AutomaticUpdateModeVNotifyDownload undocumented
+ AutomaticUpdateModeVNotifyDownload AutomaticUpdateMode = "notifyDownload"
+ // AutomaticUpdateModeVAutoInstallAtMaintenanceTime undocumented
+ AutomaticUpdateModeVAutoInstallAtMaintenanceTime AutomaticUpdateMode = "autoInstallAtMaintenanceTime"
+ // AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime undocumented
+ AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime AutomaticUpdateMode = "autoInstallAndRebootAtMaintenanceTime"
+ // AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime undocumented
+ AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime AutomaticUpdateMode = "autoInstallAndRebootAtScheduledTime"
+ // AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl undocumented
+ AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl AutomaticUpdateMode = "autoInstallAndRebootWithoutEndUserControl"
+ // AutomaticUpdateModeVWindowsDefault undocumented
+ AutomaticUpdateModeVWindowsDefault AutomaticUpdateMode = "windowsDefault"
+)
+
+var (
+ // AutomaticUpdateModePUserDefined is a pointer to AutomaticUpdateModeVUserDefined
+ AutomaticUpdateModePUserDefined = &_AutomaticUpdateModePUserDefined
+ // AutomaticUpdateModePNotifyDownload is a pointer to AutomaticUpdateModeVNotifyDownload
+ AutomaticUpdateModePNotifyDownload = &_AutomaticUpdateModePNotifyDownload
+ // AutomaticUpdateModePAutoInstallAtMaintenanceTime is a pointer to AutomaticUpdateModeVAutoInstallAtMaintenanceTime
+ AutomaticUpdateModePAutoInstallAtMaintenanceTime = &_AutomaticUpdateModePAutoInstallAtMaintenanceTime
+ // AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime is a pointer to AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime
+ AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime = &_AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime
+ // AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime is a pointer to AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime
+ AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime = &_AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime
+ // AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl is a pointer to AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl
+ AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl = &_AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl
+ // AutomaticUpdateModePWindowsDefault is a pointer to AutomaticUpdateModeVWindowsDefault
+ AutomaticUpdateModePWindowsDefault = &_AutomaticUpdateModePWindowsDefault
+)
+
+var (
+ _AutomaticUpdateModePUserDefined = AutomaticUpdateModeVUserDefined
+ _AutomaticUpdateModePNotifyDownload = AutomaticUpdateModeVNotifyDownload
+ _AutomaticUpdateModePAutoInstallAtMaintenanceTime = AutomaticUpdateModeVAutoInstallAtMaintenanceTime
+ _AutomaticUpdateModePAutoInstallAndRebootAtMaintenanceTime = AutomaticUpdateModeVAutoInstallAndRebootAtMaintenanceTime
+ _AutomaticUpdateModePAutoInstallAndRebootAtScheduledTime = AutomaticUpdateModeVAutoInstallAndRebootAtScheduledTime
+ _AutomaticUpdateModePAutoInstallAndRebootWithoutEndUserControl = AutomaticUpdateModeVAutoInstallAndRebootWithoutEndUserControl
+ _AutomaticUpdateModePWindowsDefault = AutomaticUpdateModeVWindowsDefault
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumAzure.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAzure.go
new file mode 100644
index 00000000..6e1590c0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumAzure.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AzureADLicenseType undocumented
+type AzureADLicenseType string
+
+const (
+ // AzureADLicenseTypeVNone undocumented
+ AzureADLicenseTypeVNone AzureADLicenseType = "none"
+ // AzureADLicenseTypeVFree undocumented
+ AzureADLicenseTypeVFree AzureADLicenseType = "free"
+ // AzureADLicenseTypeVBasic undocumented
+ AzureADLicenseTypeVBasic AzureADLicenseType = "basic"
+ // AzureADLicenseTypeVPremiumP1 undocumented
+ AzureADLicenseTypeVPremiumP1 AzureADLicenseType = "premiumP1"
+ // AzureADLicenseTypeVPremiumP2 undocumented
+ AzureADLicenseTypeVPremiumP2 AzureADLicenseType = "premiumP2"
+ // AzureADLicenseTypeVUnknownFutureValue undocumented
+ AzureADLicenseTypeVUnknownFutureValue AzureADLicenseType = "unknownFutureValue"
+)
+
+var (
+ // AzureADLicenseTypePNone is a pointer to AzureADLicenseTypeVNone
+ AzureADLicenseTypePNone = &_AzureADLicenseTypePNone
+ // AzureADLicenseTypePFree is a pointer to AzureADLicenseTypeVFree
+ AzureADLicenseTypePFree = &_AzureADLicenseTypePFree
+ // AzureADLicenseTypePBasic is a pointer to AzureADLicenseTypeVBasic
+ AzureADLicenseTypePBasic = &_AzureADLicenseTypePBasic
+ // AzureADLicenseTypePPremiumP1 is a pointer to AzureADLicenseTypeVPremiumP1
+ AzureADLicenseTypePPremiumP1 = &_AzureADLicenseTypePPremiumP1
+ // AzureADLicenseTypePPremiumP2 is a pointer to AzureADLicenseTypeVPremiumP2
+ AzureADLicenseTypePPremiumP2 = &_AzureADLicenseTypePPremiumP2
+ // AzureADLicenseTypePUnknownFutureValue is a pointer to AzureADLicenseTypeVUnknownFutureValue
+ AzureADLicenseTypePUnknownFutureValue = &_AzureADLicenseTypePUnknownFutureValue
+)
+
+var (
+ _AzureADLicenseTypePNone = AzureADLicenseTypeVNone
+ _AzureADLicenseTypePFree = AzureADLicenseTypeVFree
+ _AzureADLicenseTypePBasic = AzureADLicenseTypeVBasic
+ _AzureADLicenseTypePPremiumP1 = AzureADLicenseTypeVPremiumP1
+ _AzureADLicenseTypePPremiumP2 = AzureADLicenseTypeVPremiumP2
+ _AzureADLicenseTypePUnknownFutureValue = AzureADLicenseTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBinary.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBinary.go
new file mode 100644
index 00000000..926da36d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBinary.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BinaryManagementConditionExpressionOperatorType undocumented
+type BinaryManagementConditionExpressionOperatorType string
+
+const (
+ // BinaryManagementConditionExpressionOperatorTypeVOr undocumented
+ BinaryManagementConditionExpressionOperatorTypeVOr BinaryManagementConditionExpressionOperatorType = "or"
+ // BinaryManagementConditionExpressionOperatorTypeVAnd undocumented
+ BinaryManagementConditionExpressionOperatorTypeVAnd BinaryManagementConditionExpressionOperatorType = "and"
+)
+
+var (
+ // BinaryManagementConditionExpressionOperatorTypePOr is a pointer to BinaryManagementConditionExpressionOperatorTypeVOr
+ BinaryManagementConditionExpressionOperatorTypePOr = &_BinaryManagementConditionExpressionOperatorTypePOr
+ // BinaryManagementConditionExpressionOperatorTypePAnd is a pointer to BinaryManagementConditionExpressionOperatorTypeVAnd
+ BinaryManagementConditionExpressionOperatorTypePAnd = &_BinaryManagementConditionExpressionOperatorTypePAnd
+)
+
+var (
+ _BinaryManagementConditionExpressionOperatorTypePOr = BinaryManagementConditionExpressionOperatorTypeVOr
+ _BinaryManagementConditionExpressionOperatorTypePAnd = BinaryManagementConditionExpressionOperatorTypeVAnd
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBit.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBit.go
new file mode 100644
index 00000000..a0d84b3d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBit.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerEncryptionMethod undocumented
+type BitLockerEncryptionMethod string
+
+const (
+ // BitLockerEncryptionMethodVAesCbc128 undocumented
+ BitLockerEncryptionMethodVAesCbc128 BitLockerEncryptionMethod = "aesCbc128"
+ // BitLockerEncryptionMethodVAesCbc256 undocumented
+ BitLockerEncryptionMethodVAesCbc256 BitLockerEncryptionMethod = "aesCbc256"
+ // BitLockerEncryptionMethodVXtsAes128 undocumented
+ BitLockerEncryptionMethodVXtsAes128 BitLockerEncryptionMethod = "xtsAes128"
+ // BitLockerEncryptionMethodVXtsAes256 undocumented
+ BitLockerEncryptionMethodVXtsAes256 BitLockerEncryptionMethod = "xtsAes256"
+)
+
+var (
+ // BitLockerEncryptionMethodPAesCbc128 is a pointer to BitLockerEncryptionMethodVAesCbc128
+ BitLockerEncryptionMethodPAesCbc128 = &_BitLockerEncryptionMethodPAesCbc128
+ // BitLockerEncryptionMethodPAesCbc256 is a pointer to BitLockerEncryptionMethodVAesCbc256
+ BitLockerEncryptionMethodPAesCbc256 = &_BitLockerEncryptionMethodPAesCbc256
+ // BitLockerEncryptionMethodPXtsAes128 is a pointer to BitLockerEncryptionMethodVXtsAes128
+ BitLockerEncryptionMethodPXtsAes128 = &_BitLockerEncryptionMethodPXtsAes128
+ // BitLockerEncryptionMethodPXtsAes256 is a pointer to BitLockerEncryptionMethodVXtsAes256
+ BitLockerEncryptionMethodPXtsAes256 = &_BitLockerEncryptionMethodPXtsAes256
+)
+
+var (
+ _BitLockerEncryptionMethodPAesCbc128 = BitLockerEncryptionMethodVAesCbc128
+ _BitLockerEncryptionMethodPAesCbc256 = BitLockerEncryptionMethodVAesCbc256
+ _BitLockerEncryptionMethodPXtsAes128 = BitLockerEncryptionMethodVXtsAes128
+ _BitLockerEncryptionMethodPXtsAes256 = BitLockerEncryptionMethodVXtsAes256
+)
+
+// BitLockerRecoveryInformationType undocumented
+type BitLockerRecoveryInformationType string
+
+const (
+ // BitLockerRecoveryInformationTypeVPasswordAndKey undocumented
+ BitLockerRecoveryInformationTypeVPasswordAndKey BitLockerRecoveryInformationType = "passwordAndKey"
+ // BitLockerRecoveryInformationTypeVPasswordOnly undocumented
+ BitLockerRecoveryInformationTypeVPasswordOnly BitLockerRecoveryInformationType = "passwordOnly"
+)
+
+var (
+ // BitLockerRecoveryInformationTypePPasswordAndKey is a pointer to BitLockerRecoveryInformationTypeVPasswordAndKey
+ BitLockerRecoveryInformationTypePPasswordAndKey = &_BitLockerRecoveryInformationTypePPasswordAndKey
+ // BitLockerRecoveryInformationTypePPasswordOnly is a pointer to BitLockerRecoveryInformationTypeVPasswordOnly
+ BitLockerRecoveryInformationTypePPasswordOnly = &_BitLockerRecoveryInformationTypePPasswordOnly
+)
+
+var (
+ _BitLockerRecoveryInformationTypePPasswordAndKey = BitLockerRecoveryInformationTypeVPasswordAndKey
+ _BitLockerRecoveryInformationTypePPasswordOnly = BitLockerRecoveryInformationTypeVPasswordOnly
+)
+
+// BitLockerRecoveryPasswordRotationType undocumented
+type BitLockerRecoveryPasswordRotationType string
+
+const (
+ // BitLockerRecoveryPasswordRotationTypeVNotConfigured undocumented
+ BitLockerRecoveryPasswordRotationTypeVNotConfigured BitLockerRecoveryPasswordRotationType = "notConfigured"
+ // BitLockerRecoveryPasswordRotationTypeVDisabled undocumented
+ BitLockerRecoveryPasswordRotationTypeVDisabled BitLockerRecoveryPasswordRotationType = "disabled"
+ // BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd undocumented
+ BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd BitLockerRecoveryPasswordRotationType = "enabledForAzureAd"
+ // BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid undocumented
+ BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid BitLockerRecoveryPasswordRotationType = "enabledForAzureAdAndHybrid"
+)
+
+var (
+ // BitLockerRecoveryPasswordRotationTypePNotConfigured is a pointer to BitLockerRecoveryPasswordRotationTypeVNotConfigured
+ BitLockerRecoveryPasswordRotationTypePNotConfigured = &_BitLockerRecoveryPasswordRotationTypePNotConfigured
+ // BitLockerRecoveryPasswordRotationTypePDisabled is a pointer to BitLockerRecoveryPasswordRotationTypeVDisabled
+ BitLockerRecoveryPasswordRotationTypePDisabled = &_BitLockerRecoveryPasswordRotationTypePDisabled
+ // BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd is a pointer to BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd
+ BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd = &_BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd
+ // BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid is a pointer to BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid
+ BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid = &_BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid
+)
+
+var (
+ _BitLockerRecoveryPasswordRotationTypePNotConfigured = BitLockerRecoveryPasswordRotationTypeVNotConfigured
+ _BitLockerRecoveryPasswordRotationTypePDisabled = BitLockerRecoveryPasswordRotationTypeVDisabled
+ _BitLockerRecoveryPasswordRotationTypePEnabledForAzureAd = BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAd
+ _BitLockerRecoveryPasswordRotationTypePEnabledForAzureAdAndHybrid = BitLockerRecoveryPasswordRotationTypeVEnabledForAzureAdAndHybrid
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBody.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBody.go
new file mode 100644
index 00000000..0580cb13
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBody.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BodyType undocumented
+type BodyType string
+
+const (
+ // BodyTypeVText undocumented
+ BodyTypeVText BodyType = "text"
+ // BodyTypeVHTML undocumented
+ BodyTypeVHTML BodyType = "html"
+)
+
+var (
+ // BodyTypePText is a pointer to BodyTypeVText
+ BodyTypePText = &_BodyTypePText
+ // BodyTypePHTML is a pointer to BodyTypeVHTML
+ BodyTypePHTML = &_BodyTypePHTML
+)
+
+var (
+ _BodyTypePText = BodyTypeVText
+ _BodyTypePHTML = BodyTypeVHTML
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBooking.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBooking.go
new file mode 100644
index 00000000..a673e697
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBooking.go
@@ -0,0 +1,183 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingInvoiceStatus undocumented
+type BookingInvoiceStatus string
+
+const (
+ // BookingInvoiceStatusVDraft undocumented
+ BookingInvoiceStatusVDraft BookingInvoiceStatus = "draft"
+ // BookingInvoiceStatusVReviewing undocumented
+ BookingInvoiceStatusVReviewing BookingInvoiceStatus = "reviewing"
+ // BookingInvoiceStatusVOpen undocumented
+ BookingInvoiceStatusVOpen BookingInvoiceStatus = "open"
+ // BookingInvoiceStatusVCanceled undocumented
+ BookingInvoiceStatusVCanceled BookingInvoiceStatus = "canceled"
+ // BookingInvoiceStatusVPaid undocumented
+ BookingInvoiceStatusVPaid BookingInvoiceStatus = "paid"
+ // BookingInvoiceStatusVCorrective undocumented
+ BookingInvoiceStatusVCorrective BookingInvoiceStatus = "corrective"
+)
+
+var (
+ // BookingInvoiceStatusPDraft is a pointer to BookingInvoiceStatusVDraft
+ BookingInvoiceStatusPDraft = &_BookingInvoiceStatusPDraft
+ // BookingInvoiceStatusPReviewing is a pointer to BookingInvoiceStatusVReviewing
+ BookingInvoiceStatusPReviewing = &_BookingInvoiceStatusPReviewing
+ // BookingInvoiceStatusPOpen is a pointer to BookingInvoiceStatusVOpen
+ BookingInvoiceStatusPOpen = &_BookingInvoiceStatusPOpen
+ // BookingInvoiceStatusPCanceled is a pointer to BookingInvoiceStatusVCanceled
+ BookingInvoiceStatusPCanceled = &_BookingInvoiceStatusPCanceled
+ // BookingInvoiceStatusPPaid is a pointer to BookingInvoiceStatusVPaid
+ BookingInvoiceStatusPPaid = &_BookingInvoiceStatusPPaid
+ // BookingInvoiceStatusPCorrective is a pointer to BookingInvoiceStatusVCorrective
+ BookingInvoiceStatusPCorrective = &_BookingInvoiceStatusPCorrective
+)
+
+var (
+ _BookingInvoiceStatusPDraft = BookingInvoiceStatusVDraft
+ _BookingInvoiceStatusPReviewing = BookingInvoiceStatusVReviewing
+ _BookingInvoiceStatusPOpen = BookingInvoiceStatusVOpen
+ _BookingInvoiceStatusPCanceled = BookingInvoiceStatusVCanceled
+ _BookingInvoiceStatusPPaid = BookingInvoiceStatusVPaid
+ _BookingInvoiceStatusPCorrective = BookingInvoiceStatusVCorrective
+)
+
+// BookingPriceType undocumented
+type BookingPriceType string
+
+const (
+ // BookingPriceTypeVUndefined undocumented
+ BookingPriceTypeVUndefined BookingPriceType = "undefined"
+ // BookingPriceTypeVFixedPrice undocumented
+ BookingPriceTypeVFixedPrice BookingPriceType = "fixedPrice"
+ // BookingPriceTypeVStartingAt undocumented
+ BookingPriceTypeVStartingAt BookingPriceType = "startingAt"
+ // BookingPriceTypeVHourly undocumented
+ BookingPriceTypeVHourly BookingPriceType = "hourly"
+ // BookingPriceTypeVFree undocumented
+ BookingPriceTypeVFree BookingPriceType = "free"
+ // BookingPriceTypeVPriceVaries undocumented
+ BookingPriceTypeVPriceVaries BookingPriceType = "priceVaries"
+ // BookingPriceTypeVCallUs undocumented
+ BookingPriceTypeVCallUs BookingPriceType = "callUs"
+ // BookingPriceTypeVNotSet undocumented
+ BookingPriceTypeVNotSet BookingPriceType = "notSet"
+)
+
+var (
+ // BookingPriceTypePUndefined is a pointer to BookingPriceTypeVUndefined
+ BookingPriceTypePUndefined = &_BookingPriceTypePUndefined
+ // BookingPriceTypePFixedPrice is a pointer to BookingPriceTypeVFixedPrice
+ BookingPriceTypePFixedPrice = &_BookingPriceTypePFixedPrice
+ // BookingPriceTypePStartingAt is a pointer to BookingPriceTypeVStartingAt
+ BookingPriceTypePStartingAt = &_BookingPriceTypePStartingAt
+ // BookingPriceTypePHourly is a pointer to BookingPriceTypeVHourly
+ BookingPriceTypePHourly = &_BookingPriceTypePHourly
+ // BookingPriceTypePFree is a pointer to BookingPriceTypeVFree
+ BookingPriceTypePFree = &_BookingPriceTypePFree
+ // BookingPriceTypePPriceVaries is a pointer to BookingPriceTypeVPriceVaries
+ BookingPriceTypePPriceVaries = &_BookingPriceTypePPriceVaries
+ // BookingPriceTypePCallUs is a pointer to BookingPriceTypeVCallUs
+ BookingPriceTypePCallUs = &_BookingPriceTypePCallUs
+ // BookingPriceTypePNotSet is a pointer to BookingPriceTypeVNotSet
+ BookingPriceTypePNotSet = &_BookingPriceTypePNotSet
+)
+
+var (
+ _BookingPriceTypePUndefined = BookingPriceTypeVUndefined
+ _BookingPriceTypePFixedPrice = BookingPriceTypeVFixedPrice
+ _BookingPriceTypePStartingAt = BookingPriceTypeVStartingAt
+ _BookingPriceTypePHourly = BookingPriceTypeVHourly
+ _BookingPriceTypePFree = BookingPriceTypeVFree
+ _BookingPriceTypePPriceVaries = BookingPriceTypeVPriceVaries
+ _BookingPriceTypePCallUs = BookingPriceTypeVCallUs
+ _BookingPriceTypePNotSet = BookingPriceTypeVNotSet
+)
+
+// BookingReminderRecipients undocumented
+type BookingReminderRecipients string
+
+const (
+ // BookingReminderRecipientsVAllAttendees undocumented
+ BookingReminderRecipientsVAllAttendees BookingReminderRecipients = "allAttendees"
+ // BookingReminderRecipientsVStaff undocumented
+ BookingReminderRecipientsVStaff BookingReminderRecipients = "staff"
+ // BookingReminderRecipientsVCustomer undocumented
+ BookingReminderRecipientsVCustomer BookingReminderRecipients = "customer"
+)
+
+var (
+ // BookingReminderRecipientsPAllAttendees is a pointer to BookingReminderRecipientsVAllAttendees
+ BookingReminderRecipientsPAllAttendees = &_BookingReminderRecipientsPAllAttendees
+ // BookingReminderRecipientsPStaff is a pointer to BookingReminderRecipientsVStaff
+ BookingReminderRecipientsPStaff = &_BookingReminderRecipientsPStaff
+ // BookingReminderRecipientsPCustomer is a pointer to BookingReminderRecipientsVCustomer
+ BookingReminderRecipientsPCustomer = &_BookingReminderRecipientsPCustomer
+)
+
+var (
+ _BookingReminderRecipientsPAllAttendees = BookingReminderRecipientsVAllAttendees
+ _BookingReminderRecipientsPStaff = BookingReminderRecipientsVStaff
+ _BookingReminderRecipientsPCustomer = BookingReminderRecipientsVCustomer
+)
+
+// BookingStaffRole undocumented
+type BookingStaffRole string
+
+const (
+ // BookingStaffRoleVGuest undocumented
+ BookingStaffRoleVGuest BookingStaffRole = "guest"
+ // BookingStaffRoleVAdministrator undocumented
+ BookingStaffRoleVAdministrator BookingStaffRole = "administrator"
+ // BookingStaffRoleVViewer undocumented
+ BookingStaffRoleVViewer BookingStaffRole = "viewer"
+ // BookingStaffRoleVExternalGuest undocumented
+ BookingStaffRoleVExternalGuest BookingStaffRole = "externalGuest"
+)
+
+var (
+ // BookingStaffRolePGuest is a pointer to BookingStaffRoleVGuest
+ BookingStaffRolePGuest = &_BookingStaffRolePGuest
+ // BookingStaffRolePAdministrator is a pointer to BookingStaffRoleVAdministrator
+ BookingStaffRolePAdministrator = &_BookingStaffRolePAdministrator
+ // BookingStaffRolePViewer is a pointer to BookingStaffRoleVViewer
+ BookingStaffRolePViewer = &_BookingStaffRolePViewer
+ // BookingStaffRolePExternalGuest is a pointer to BookingStaffRoleVExternalGuest
+ BookingStaffRolePExternalGuest = &_BookingStaffRolePExternalGuest
+)
+
+var (
+ _BookingStaffRolePGuest = BookingStaffRoleVGuest
+ _BookingStaffRolePAdministrator = BookingStaffRoleVAdministrator
+ _BookingStaffRolePViewer = BookingStaffRoleVViewer
+ _BookingStaffRolePExternalGuest = BookingStaffRoleVExternalGuest
+)
+
+// BookingType undocumented
+type BookingType string
+
+const (
+ // BookingTypeVUnknown undocumented
+ BookingTypeVUnknown BookingType = "unknown"
+ // BookingTypeVStandard undocumented
+ BookingTypeVStandard BookingType = "standard"
+ // BookingTypeVReserved undocumented
+ BookingTypeVReserved BookingType = "reserved"
+)
+
+var (
+ // BookingTypePUnknown is a pointer to BookingTypeVUnknown
+ BookingTypePUnknown = &_BookingTypePUnknown
+ // BookingTypePStandard is a pointer to BookingTypeVStandard
+ BookingTypePStandard = &_BookingTypePStandard
+ // BookingTypePReserved is a pointer to BookingTypeVReserved
+ BookingTypePReserved = &_BookingTypePReserved
+)
+
+var (
+ _BookingTypePUnknown = BookingTypeVUnknown
+ _BookingTypePStandard = BookingTypeVStandard
+ _BookingTypePReserved = BookingTypeVReserved
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumBrowser.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBrowser.go
new file mode 100644
index 00000000..d5525c22
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumBrowser.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BrowserSyncSetting undocumented
+type BrowserSyncSetting string
+
+const (
+ // BrowserSyncSettingVNotConfigured undocumented
+ BrowserSyncSettingVNotConfigured BrowserSyncSetting = "notConfigured"
+ // BrowserSyncSettingVBlockedWithUserOverride undocumented
+ BrowserSyncSettingVBlockedWithUserOverride BrowserSyncSetting = "blockedWithUserOverride"
+ // BrowserSyncSettingVBlocked undocumented
+ BrowserSyncSettingVBlocked BrowserSyncSetting = "blocked"
+)
+
+var (
+ // BrowserSyncSettingPNotConfigured is a pointer to BrowserSyncSettingVNotConfigured
+ BrowserSyncSettingPNotConfigured = &_BrowserSyncSettingPNotConfigured
+ // BrowserSyncSettingPBlockedWithUserOverride is a pointer to BrowserSyncSettingVBlockedWithUserOverride
+ BrowserSyncSettingPBlockedWithUserOverride = &_BrowserSyncSettingPBlockedWithUserOverride
+ // BrowserSyncSettingPBlocked is a pointer to BrowserSyncSettingVBlocked
+ BrowserSyncSettingPBlocked = &_BrowserSyncSettingPBlocked
+)
+
+var (
+ _BrowserSyncSettingPNotConfigured = BrowserSyncSettingVNotConfigured
+ _BrowserSyncSettingPBlockedWithUserOverride = BrowserSyncSettingVBlockedWithUserOverride
+ _BrowserSyncSettingPBlocked = BrowserSyncSettingVBlocked
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCalendar.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCalendar.go
new file mode 100644
index 00000000..e93f6ff3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCalendar.go
@@ -0,0 +1,193 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalendarColor undocumented
+type CalendarColor string
+
+const (
+ // CalendarColorVLightBlue undocumented
+ CalendarColorVLightBlue CalendarColor = "lightBlue"
+ // CalendarColorVLightGreen undocumented
+ CalendarColorVLightGreen CalendarColor = "lightGreen"
+ // CalendarColorVLightOrange undocumented
+ CalendarColorVLightOrange CalendarColor = "lightOrange"
+ // CalendarColorVLightGray undocumented
+ CalendarColorVLightGray CalendarColor = "lightGray"
+ // CalendarColorVLightYellow undocumented
+ CalendarColorVLightYellow CalendarColor = "lightYellow"
+ // CalendarColorVLightTeal undocumented
+ CalendarColorVLightTeal CalendarColor = "lightTeal"
+ // CalendarColorVLightPink undocumented
+ CalendarColorVLightPink CalendarColor = "lightPink"
+ // CalendarColorVLightBrown undocumented
+ CalendarColorVLightBrown CalendarColor = "lightBrown"
+ // CalendarColorVLightRed undocumented
+ CalendarColorVLightRed CalendarColor = "lightRed"
+ // CalendarColorVMaxColor undocumented
+ CalendarColorVMaxColor CalendarColor = "maxColor"
+ // CalendarColorVAuto undocumented
+ CalendarColorVAuto CalendarColor = "auto"
+)
+
+var (
+ // CalendarColorPLightBlue is a pointer to CalendarColorVLightBlue
+ CalendarColorPLightBlue = &_CalendarColorPLightBlue
+ // CalendarColorPLightGreen is a pointer to CalendarColorVLightGreen
+ CalendarColorPLightGreen = &_CalendarColorPLightGreen
+ // CalendarColorPLightOrange is a pointer to CalendarColorVLightOrange
+ CalendarColorPLightOrange = &_CalendarColorPLightOrange
+ // CalendarColorPLightGray is a pointer to CalendarColorVLightGray
+ CalendarColorPLightGray = &_CalendarColorPLightGray
+ // CalendarColorPLightYellow is a pointer to CalendarColorVLightYellow
+ CalendarColorPLightYellow = &_CalendarColorPLightYellow
+ // CalendarColorPLightTeal is a pointer to CalendarColorVLightTeal
+ CalendarColorPLightTeal = &_CalendarColorPLightTeal
+ // CalendarColorPLightPink is a pointer to CalendarColorVLightPink
+ CalendarColorPLightPink = &_CalendarColorPLightPink
+ // CalendarColorPLightBrown is a pointer to CalendarColorVLightBrown
+ CalendarColorPLightBrown = &_CalendarColorPLightBrown
+ // CalendarColorPLightRed is a pointer to CalendarColorVLightRed
+ CalendarColorPLightRed = &_CalendarColorPLightRed
+ // CalendarColorPMaxColor is a pointer to CalendarColorVMaxColor
+ CalendarColorPMaxColor = &_CalendarColorPMaxColor
+ // CalendarColorPAuto is a pointer to CalendarColorVAuto
+ CalendarColorPAuto = &_CalendarColorPAuto
+)
+
+var (
+ _CalendarColorPLightBlue = CalendarColorVLightBlue
+ _CalendarColorPLightGreen = CalendarColorVLightGreen
+ _CalendarColorPLightOrange = CalendarColorVLightOrange
+ _CalendarColorPLightGray = CalendarColorVLightGray
+ _CalendarColorPLightYellow = CalendarColorVLightYellow
+ _CalendarColorPLightTeal = CalendarColorVLightTeal
+ _CalendarColorPLightPink = CalendarColorVLightPink
+ _CalendarColorPLightBrown = CalendarColorVLightBrown
+ _CalendarColorPLightRed = CalendarColorVLightRed
+ _CalendarColorPMaxColor = CalendarColorVMaxColor
+ _CalendarColorPAuto = CalendarColorVAuto
+)
+
+// CalendarRoleType undocumented
+type CalendarRoleType string
+
+const (
+ // CalendarRoleTypeVNone undocumented
+ CalendarRoleTypeVNone CalendarRoleType = "none"
+ // CalendarRoleTypeVFreeBusyRead undocumented
+ CalendarRoleTypeVFreeBusyRead CalendarRoleType = "freeBusyRead"
+ // CalendarRoleTypeVLimitedRead undocumented
+ CalendarRoleTypeVLimitedRead CalendarRoleType = "limitedRead"
+ // CalendarRoleTypeVRead undocumented
+ CalendarRoleTypeVRead CalendarRoleType = "read"
+ // CalendarRoleTypeVWrite undocumented
+ CalendarRoleTypeVWrite CalendarRoleType = "write"
+ // CalendarRoleTypeVDelegateWithoutPrivateEventAccess undocumented
+ CalendarRoleTypeVDelegateWithoutPrivateEventAccess CalendarRoleType = "delegateWithoutPrivateEventAccess"
+ // CalendarRoleTypeVDelegateWithPrivateEventAccess undocumented
+ CalendarRoleTypeVDelegateWithPrivateEventAccess CalendarRoleType = "delegateWithPrivateEventAccess"
+ // CalendarRoleTypeVCustom undocumented
+ CalendarRoleTypeVCustom CalendarRoleType = "custom"
+)
+
+var (
+ // CalendarRoleTypePNone is a pointer to CalendarRoleTypeVNone
+ CalendarRoleTypePNone = &_CalendarRoleTypePNone
+ // CalendarRoleTypePFreeBusyRead is a pointer to CalendarRoleTypeVFreeBusyRead
+ CalendarRoleTypePFreeBusyRead = &_CalendarRoleTypePFreeBusyRead
+ // CalendarRoleTypePLimitedRead is a pointer to CalendarRoleTypeVLimitedRead
+ CalendarRoleTypePLimitedRead = &_CalendarRoleTypePLimitedRead
+ // CalendarRoleTypePRead is a pointer to CalendarRoleTypeVRead
+ CalendarRoleTypePRead = &_CalendarRoleTypePRead
+ // CalendarRoleTypePWrite is a pointer to CalendarRoleTypeVWrite
+ CalendarRoleTypePWrite = &_CalendarRoleTypePWrite
+ // CalendarRoleTypePDelegateWithoutPrivateEventAccess is a pointer to CalendarRoleTypeVDelegateWithoutPrivateEventAccess
+ CalendarRoleTypePDelegateWithoutPrivateEventAccess = &_CalendarRoleTypePDelegateWithoutPrivateEventAccess
+ // CalendarRoleTypePDelegateWithPrivateEventAccess is a pointer to CalendarRoleTypeVDelegateWithPrivateEventAccess
+ CalendarRoleTypePDelegateWithPrivateEventAccess = &_CalendarRoleTypePDelegateWithPrivateEventAccess
+ // CalendarRoleTypePCustom is a pointer to CalendarRoleTypeVCustom
+ CalendarRoleTypePCustom = &_CalendarRoleTypePCustom
+)
+
+var (
+ _CalendarRoleTypePNone = CalendarRoleTypeVNone
+ _CalendarRoleTypePFreeBusyRead = CalendarRoleTypeVFreeBusyRead
+ _CalendarRoleTypePLimitedRead = CalendarRoleTypeVLimitedRead
+ _CalendarRoleTypePRead = CalendarRoleTypeVRead
+ _CalendarRoleTypePWrite = CalendarRoleTypeVWrite
+ _CalendarRoleTypePDelegateWithoutPrivateEventAccess = CalendarRoleTypeVDelegateWithoutPrivateEventAccess
+ _CalendarRoleTypePDelegateWithPrivateEventAccess = CalendarRoleTypeVDelegateWithPrivateEventAccess
+ _CalendarRoleTypePCustom = CalendarRoleTypeVCustom
+)
+
+// CalendarSharingAction undocumented
+type CalendarSharingAction string
+
+const (
+ // CalendarSharingActionVAccept undocumented
+ CalendarSharingActionVAccept CalendarSharingAction = "accept"
+ // CalendarSharingActionVAcceptAndViewCalendar undocumented
+ CalendarSharingActionVAcceptAndViewCalendar CalendarSharingAction = "acceptAndViewCalendar"
+ // CalendarSharingActionVViewCalendar undocumented
+ CalendarSharingActionVViewCalendar CalendarSharingAction = "viewCalendar"
+ // CalendarSharingActionVAddThisCalendar undocumented
+ CalendarSharingActionVAddThisCalendar CalendarSharingAction = "addThisCalendar"
+)
+
+var (
+ // CalendarSharingActionPAccept is a pointer to CalendarSharingActionVAccept
+ CalendarSharingActionPAccept = &_CalendarSharingActionPAccept
+ // CalendarSharingActionPAcceptAndViewCalendar is a pointer to CalendarSharingActionVAcceptAndViewCalendar
+ CalendarSharingActionPAcceptAndViewCalendar = &_CalendarSharingActionPAcceptAndViewCalendar
+ // CalendarSharingActionPViewCalendar is a pointer to CalendarSharingActionVViewCalendar
+ CalendarSharingActionPViewCalendar = &_CalendarSharingActionPViewCalendar
+ // CalendarSharingActionPAddThisCalendar is a pointer to CalendarSharingActionVAddThisCalendar
+ CalendarSharingActionPAddThisCalendar = &_CalendarSharingActionPAddThisCalendar
+)
+
+var (
+ _CalendarSharingActionPAccept = CalendarSharingActionVAccept
+ _CalendarSharingActionPAcceptAndViewCalendar = CalendarSharingActionVAcceptAndViewCalendar
+ _CalendarSharingActionPViewCalendar = CalendarSharingActionVViewCalendar
+ _CalendarSharingActionPAddThisCalendar = CalendarSharingActionVAddThisCalendar
+)
+
+// CalendarSharingActionImportance undocumented
+type CalendarSharingActionImportance string
+
+const (
+ // CalendarSharingActionImportanceVPrimary undocumented
+ CalendarSharingActionImportanceVPrimary CalendarSharingActionImportance = "primary"
+ // CalendarSharingActionImportanceVSecondary undocumented
+ CalendarSharingActionImportanceVSecondary CalendarSharingActionImportance = "secondary"
+)
+
+var (
+ // CalendarSharingActionImportancePPrimary is a pointer to CalendarSharingActionImportanceVPrimary
+ CalendarSharingActionImportancePPrimary = &_CalendarSharingActionImportancePPrimary
+ // CalendarSharingActionImportancePSecondary is a pointer to CalendarSharingActionImportanceVSecondary
+ CalendarSharingActionImportancePSecondary = &_CalendarSharingActionImportancePSecondary
+)
+
+var (
+ _CalendarSharingActionImportancePPrimary = CalendarSharingActionImportanceVPrimary
+ _CalendarSharingActionImportancePSecondary = CalendarSharingActionImportanceVSecondary
+)
+
+// CalendarSharingActionType undocumented
+type CalendarSharingActionType string
+
+const (
+ // CalendarSharingActionTypeVAccept undocumented
+ CalendarSharingActionTypeVAccept CalendarSharingActionType = "accept"
+)
+
+var (
+ // CalendarSharingActionTypePAccept is a pointer to CalendarSharingActionTypeVAccept
+ CalendarSharingActionTypePAccept = &_CalendarSharingActionTypePAccept
+)
+
+var (
+ _CalendarSharingActionTypePAccept = CalendarSharingActionTypeVAccept
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCall.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCall.go
new file mode 100644
index 00000000..e3a2f387
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCall.go
@@ -0,0 +1,119 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CallDirection undocumented
+type CallDirection string
+
+const (
+ // CallDirectionVIncoming undocumented
+ CallDirectionVIncoming CallDirection = "incoming"
+ // CallDirectionVOutgoing undocumented
+ CallDirectionVOutgoing CallDirection = "outgoing"
+)
+
+var (
+ // CallDirectionPIncoming is a pointer to CallDirectionVIncoming
+ CallDirectionPIncoming = &_CallDirectionPIncoming
+ // CallDirectionPOutgoing is a pointer to CallDirectionVOutgoing
+ CallDirectionPOutgoing = &_CallDirectionPOutgoing
+)
+
+var (
+ _CallDirectionPIncoming = CallDirectionVIncoming
+ _CallDirectionPOutgoing = CallDirectionVOutgoing
+)
+
+// CallDisposition undocumented
+type CallDisposition string
+
+const (
+ // CallDispositionVDefault undocumented
+ CallDispositionVDefault CallDisposition = "default"
+ // CallDispositionVSimultaneousRing undocumented
+ CallDispositionVSimultaneousRing CallDisposition = "simultaneousRing"
+ // CallDispositionVForward undocumented
+ CallDispositionVForward CallDisposition = "forward"
+)
+
+var (
+ // CallDispositionPDefault is a pointer to CallDispositionVDefault
+ CallDispositionPDefault = &_CallDispositionPDefault
+ // CallDispositionPSimultaneousRing is a pointer to CallDispositionVSimultaneousRing
+ CallDispositionPSimultaneousRing = &_CallDispositionPSimultaneousRing
+ // CallDispositionPForward is a pointer to CallDispositionVForward
+ CallDispositionPForward = &_CallDispositionPForward
+)
+
+var (
+ _CallDispositionPDefault = CallDispositionVDefault
+ _CallDispositionPSimultaneousRing = CallDispositionVSimultaneousRing
+ _CallDispositionPForward = CallDispositionVForward
+)
+
+// CallState undocumented
+type CallState string
+
+const (
+ // CallStateVIncoming undocumented
+ CallStateVIncoming CallState = "incoming"
+ // CallStateVEstablishing undocumented
+ CallStateVEstablishing CallState = "establishing"
+ // CallStateVRinging undocumented
+ CallStateVRinging CallState = "ringing"
+ // CallStateVEstablished undocumented
+ CallStateVEstablished CallState = "established"
+ // CallStateVHold undocumented
+ CallStateVHold CallState = "hold"
+ // CallStateVTransferring undocumented
+ CallStateVTransferring CallState = "transferring"
+ // CallStateVTransferAccepted undocumented
+ CallStateVTransferAccepted CallState = "transferAccepted"
+ // CallStateVRedirecting undocumented
+ CallStateVRedirecting CallState = "redirecting"
+ // CallStateVTerminating undocumented
+ CallStateVTerminating CallState = "terminating"
+ // CallStateVTerminated undocumented
+ CallStateVTerminated CallState = "terminated"
+ // CallStateVUnknownFutureValue undocumented
+ CallStateVUnknownFutureValue CallState = "unknownFutureValue"
+)
+
+var (
+ // CallStatePIncoming is a pointer to CallStateVIncoming
+ CallStatePIncoming = &_CallStatePIncoming
+ // CallStatePEstablishing is a pointer to CallStateVEstablishing
+ CallStatePEstablishing = &_CallStatePEstablishing
+ // CallStatePRinging is a pointer to CallStateVRinging
+ CallStatePRinging = &_CallStatePRinging
+ // CallStatePEstablished is a pointer to CallStateVEstablished
+ CallStatePEstablished = &_CallStatePEstablished
+ // CallStatePHold is a pointer to CallStateVHold
+ CallStatePHold = &_CallStatePHold
+ // CallStatePTransferring is a pointer to CallStateVTransferring
+ CallStatePTransferring = &_CallStatePTransferring
+ // CallStatePTransferAccepted is a pointer to CallStateVTransferAccepted
+ CallStatePTransferAccepted = &_CallStatePTransferAccepted
+ // CallStatePRedirecting is a pointer to CallStateVRedirecting
+ CallStatePRedirecting = &_CallStatePRedirecting
+ // CallStatePTerminating is a pointer to CallStateVTerminating
+ CallStatePTerminating = &_CallStatePTerminating
+ // CallStatePTerminated is a pointer to CallStateVTerminated
+ CallStatePTerminated = &_CallStatePTerminated
+ // CallStatePUnknownFutureValue is a pointer to CallStateVUnknownFutureValue
+ CallStatePUnknownFutureValue = &_CallStatePUnknownFutureValue
+)
+
+var (
+ _CallStatePIncoming = CallStateVIncoming
+ _CallStatePEstablishing = CallStateVEstablishing
+ _CallStatePRinging = CallStateVRinging
+ _CallStatePEstablished = CallStateVEstablished
+ _CallStatePHold = CallStateVHold
+ _CallStatePTransferring = CallStateVTransferring
+ _CallStatePTransferAccepted = CallStateVTransferAccepted
+ _CallStatePRedirecting = CallStateVRedirecting
+ _CallStatePTerminating = CallStateVTerminating
+ _CallStatePTerminated = CallStateVTerminated
+ _CallStatePUnknownFutureValue = CallStateVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCategory.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCategory.go
new file mode 100644
index 00000000..b719d312
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCategory.go
@@ -0,0 +1,145 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CategoryColor undocumented
+type CategoryColor string
+
+const (
+ // CategoryColorVPreset0 undocumented
+ CategoryColorVPreset0 CategoryColor = "preset0"
+ // CategoryColorVPreset1 undocumented
+ CategoryColorVPreset1 CategoryColor = "preset1"
+ // CategoryColorVPreset2 undocumented
+ CategoryColorVPreset2 CategoryColor = "preset2"
+ // CategoryColorVPreset3 undocumented
+ CategoryColorVPreset3 CategoryColor = "preset3"
+ // CategoryColorVPreset4 undocumented
+ CategoryColorVPreset4 CategoryColor = "preset4"
+ // CategoryColorVPreset5 undocumented
+ CategoryColorVPreset5 CategoryColor = "preset5"
+ // CategoryColorVPreset6 undocumented
+ CategoryColorVPreset6 CategoryColor = "preset6"
+ // CategoryColorVPreset7 undocumented
+ CategoryColorVPreset7 CategoryColor = "preset7"
+ // CategoryColorVPreset8 undocumented
+ CategoryColorVPreset8 CategoryColor = "preset8"
+ // CategoryColorVPreset9 undocumented
+ CategoryColorVPreset9 CategoryColor = "preset9"
+ // CategoryColorVPreset10 undocumented
+ CategoryColorVPreset10 CategoryColor = "preset10"
+ // CategoryColorVPreset11 undocumented
+ CategoryColorVPreset11 CategoryColor = "preset11"
+ // CategoryColorVPreset12 undocumented
+ CategoryColorVPreset12 CategoryColor = "preset12"
+ // CategoryColorVPreset13 undocumented
+ CategoryColorVPreset13 CategoryColor = "preset13"
+ // CategoryColorVPreset14 undocumented
+ CategoryColorVPreset14 CategoryColor = "preset14"
+ // CategoryColorVPreset15 undocumented
+ CategoryColorVPreset15 CategoryColor = "preset15"
+ // CategoryColorVPreset16 undocumented
+ CategoryColorVPreset16 CategoryColor = "preset16"
+ // CategoryColorVPreset17 undocumented
+ CategoryColorVPreset17 CategoryColor = "preset17"
+ // CategoryColorVPreset18 undocumented
+ CategoryColorVPreset18 CategoryColor = "preset18"
+ // CategoryColorVPreset19 undocumented
+ CategoryColorVPreset19 CategoryColor = "preset19"
+ // CategoryColorVPreset20 undocumented
+ CategoryColorVPreset20 CategoryColor = "preset20"
+ // CategoryColorVPreset21 undocumented
+ CategoryColorVPreset21 CategoryColor = "preset21"
+ // CategoryColorVPreset22 undocumented
+ CategoryColorVPreset22 CategoryColor = "preset22"
+ // CategoryColorVPreset23 undocumented
+ CategoryColorVPreset23 CategoryColor = "preset23"
+ // CategoryColorVPreset24 undocumented
+ CategoryColorVPreset24 CategoryColor = "preset24"
+ // CategoryColorVNone undocumented
+ CategoryColorVNone CategoryColor = "none"
+)
+
+var (
+ // CategoryColorPPreset0 is a pointer to CategoryColorVPreset0
+ CategoryColorPPreset0 = &_CategoryColorPPreset0
+ // CategoryColorPPreset1 is a pointer to CategoryColorVPreset1
+ CategoryColorPPreset1 = &_CategoryColorPPreset1
+ // CategoryColorPPreset2 is a pointer to CategoryColorVPreset2
+ CategoryColorPPreset2 = &_CategoryColorPPreset2
+ // CategoryColorPPreset3 is a pointer to CategoryColorVPreset3
+ CategoryColorPPreset3 = &_CategoryColorPPreset3
+ // CategoryColorPPreset4 is a pointer to CategoryColorVPreset4
+ CategoryColorPPreset4 = &_CategoryColorPPreset4
+ // CategoryColorPPreset5 is a pointer to CategoryColorVPreset5
+ CategoryColorPPreset5 = &_CategoryColorPPreset5
+ // CategoryColorPPreset6 is a pointer to CategoryColorVPreset6
+ CategoryColorPPreset6 = &_CategoryColorPPreset6
+ // CategoryColorPPreset7 is a pointer to CategoryColorVPreset7
+ CategoryColorPPreset7 = &_CategoryColorPPreset7
+ // CategoryColorPPreset8 is a pointer to CategoryColorVPreset8
+ CategoryColorPPreset8 = &_CategoryColorPPreset8
+ // CategoryColorPPreset9 is a pointer to CategoryColorVPreset9
+ CategoryColorPPreset9 = &_CategoryColorPPreset9
+ // CategoryColorPPreset10 is a pointer to CategoryColorVPreset10
+ CategoryColorPPreset10 = &_CategoryColorPPreset10
+ // CategoryColorPPreset11 is a pointer to CategoryColorVPreset11
+ CategoryColorPPreset11 = &_CategoryColorPPreset11
+ // CategoryColorPPreset12 is a pointer to CategoryColorVPreset12
+ CategoryColorPPreset12 = &_CategoryColorPPreset12
+ // CategoryColorPPreset13 is a pointer to CategoryColorVPreset13
+ CategoryColorPPreset13 = &_CategoryColorPPreset13
+ // CategoryColorPPreset14 is a pointer to CategoryColorVPreset14
+ CategoryColorPPreset14 = &_CategoryColorPPreset14
+ // CategoryColorPPreset15 is a pointer to CategoryColorVPreset15
+ CategoryColorPPreset15 = &_CategoryColorPPreset15
+ // CategoryColorPPreset16 is a pointer to CategoryColorVPreset16
+ CategoryColorPPreset16 = &_CategoryColorPPreset16
+ // CategoryColorPPreset17 is a pointer to CategoryColorVPreset17
+ CategoryColorPPreset17 = &_CategoryColorPPreset17
+ // CategoryColorPPreset18 is a pointer to CategoryColorVPreset18
+ CategoryColorPPreset18 = &_CategoryColorPPreset18
+ // CategoryColorPPreset19 is a pointer to CategoryColorVPreset19
+ CategoryColorPPreset19 = &_CategoryColorPPreset19
+ // CategoryColorPPreset20 is a pointer to CategoryColorVPreset20
+ CategoryColorPPreset20 = &_CategoryColorPPreset20
+ // CategoryColorPPreset21 is a pointer to CategoryColorVPreset21
+ CategoryColorPPreset21 = &_CategoryColorPPreset21
+ // CategoryColorPPreset22 is a pointer to CategoryColorVPreset22
+ CategoryColorPPreset22 = &_CategoryColorPPreset22
+ // CategoryColorPPreset23 is a pointer to CategoryColorVPreset23
+ CategoryColorPPreset23 = &_CategoryColorPPreset23
+ // CategoryColorPPreset24 is a pointer to CategoryColorVPreset24
+ CategoryColorPPreset24 = &_CategoryColorPPreset24
+ // CategoryColorPNone is a pointer to CategoryColorVNone
+ CategoryColorPNone = &_CategoryColorPNone
+)
+
+var (
+ _CategoryColorPPreset0 = CategoryColorVPreset0
+ _CategoryColorPPreset1 = CategoryColorVPreset1
+ _CategoryColorPPreset2 = CategoryColorVPreset2
+ _CategoryColorPPreset3 = CategoryColorVPreset3
+ _CategoryColorPPreset4 = CategoryColorVPreset4
+ _CategoryColorPPreset5 = CategoryColorVPreset5
+ _CategoryColorPPreset6 = CategoryColorVPreset6
+ _CategoryColorPPreset7 = CategoryColorVPreset7
+ _CategoryColorPPreset8 = CategoryColorVPreset8
+ _CategoryColorPPreset9 = CategoryColorVPreset9
+ _CategoryColorPPreset10 = CategoryColorVPreset10
+ _CategoryColorPPreset11 = CategoryColorVPreset11
+ _CategoryColorPPreset12 = CategoryColorVPreset12
+ _CategoryColorPPreset13 = CategoryColorVPreset13
+ _CategoryColorPPreset14 = CategoryColorVPreset14
+ _CategoryColorPPreset15 = CategoryColorVPreset15
+ _CategoryColorPPreset16 = CategoryColorVPreset16
+ _CategoryColorPPreset17 = CategoryColorVPreset17
+ _CategoryColorPPreset18 = CategoryColorVPreset18
+ _CategoryColorPPreset19 = CategoryColorVPreset19
+ _CategoryColorPPreset20 = CategoryColorVPreset20
+ _CategoryColorPPreset21 = CategoryColorVPreset21
+ _CategoryColorPPreset22 = CategoryColorVPreset22
+ _CategoryColorPPreset23 = CategoryColorVPreset23
+ _CategoryColorPPreset24 = CategoryColorVPreset24
+ _CategoryColorPNone = CategoryColorVNone
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCertificate.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCertificate.go
new file mode 100644
index 00000000..5f93b3d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCertificate.go
@@ -0,0 +1,265 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificateDestinationStore undocumented
+type CertificateDestinationStore string
+
+const (
+ // CertificateDestinationStoreVComputerCertStoreRoot undocumented
+ CertificateDestinationStoreVComputerCertStoreRoot CertificateDestinationStore = "computerCertStoreRoot"
+ // CertificateDestinationStoreVComputerCertStoreIntermediate undocumented
+ CertificateDestinationStoreVComputerCertStoreIntermediate CertificateDestinationStore = "computerCertStoreIntermediate"
+ // CertificateDestinationStoreVUserCertStoreIntermediate undocumented
+ CertificateDestinationStoreVUserCertStoreIntermediate CertificateDestinationStore = "userCertStoreIntermediate"
+)
+
+var (
+ // CertificateDestinationStorePComputerCertStoreRoot is a pointer to CertificateDestinationStoreVComputerCertStoreRoot
+ CertificateDestinationStorePComputerCertStoreRoot = &_CertificateDestinationStorePComputerCertStoreRoot
+ // CertificateDestinationStorePComputerCertStoreIntermediate is a pointer to CertificateDestinationStoreVComputerCertStoreIntermediate
+ CertificateDestinationStorePComputerCertStoreIntermediate = &_CertificateDestinationStorePComputerCertStoreIntermediate
+ // CertificateDestinationStorePUserCertStoreIntermediate is a pointer to CertificateDestinationStoreVUserCertStoreIntermediate
+ CertificateDestinationStorePUserCertStoreIntermediate = &_CertificateDestinationStorePUserCertStoreIntermediate
+)
+
+var (
+ _CertificateDestinationStorePComputerCertStoreRoot = CertificateDestinationStoreVComputerCertStoreRoot
+ _CertificateDestinationStorePComputerCertStoreIntermediate = CertificateDestinationStoreVComputerCertStoreIntermediate
+ _CertificateDestinationStorePUserCertStoreIntermediate = CertificateDestinationStoreVUserCertStoreIntermediate
+)
+
+// CertificateIssuanceStates undocumented
+type CertificateIssuanceStates string
+
+const (
+ // CertificateIssuanceStatesVUnknown undocumented
+ CertificateIssuanceStatesVUnknown CertificateIssuanceStates = "unknown"
+ // CertificateIssuanceStatesVChallengeIssued undocumented
+ CertificateIssuanceStatesVChallengeIssued CertificateIssuanceStates = "challengeIssued"
+ // CertificateIssuanceStatesVChallengeIssueFailed undocumented
+ CertificateIssuanceStatesVChallengeIssueFailed CertificateIssuanceStates = "challengeIssueFailed"
+ // CertificateIssuanceStatesVRequestCreationFailed undocumented
+ CertificateIssuanceStatesVRequestCreationFailed CertificateIssuanceStates = "requestCreationFailed"
+ // CertificateIssuanceStatesVRequestSubmitFailed undocumented
+ CertificateIssuanceStatesVRequestSubmitFailed CertificateIssuanceStates = "requestSubmitFailed"
+ // CertificateIssuanceStatesVChallengeValidationSucceeded undocumented
+ CertificateIssuanceStatesVChallengeValidationSucceeded CertificateIssuanceStates = "challengeValidationSucceeded"
+ // CertificateIssuanceStatesVChallengeValidationFailed undocumented
+ CertificateIssuanceStatesVChallengeValidationFailed CertificateIssuanceStates = "challengeValidationFailed"
+ // CertificateIssuanceStatesVIssueFailed undocumented
+ CertificateIssuanceStatesVIssueFailed CertificateIssuanceStates = "issueFailed"
+ // CertificateIssuanceStatesVIssuePending undocumented
+ CertificateIssuanceStatesVIssuePending CertificateIssuanceStates = "issuePending"
+ // CertificateIssuanceStatesVIssued undocumented
+ CertificateIssuanceStatesVIssued CertificateIssuanceStates = "issued"
+ // CertificateIssuanceStatesVResponseProcessingFailed undocumented
+ CertificateIssuanceStatesVResponseProcessingFailed CertificateIssuanceStates = "responseProcessingFailed"
+ // CertificateIssuanceStatesVResponsePending undocumented
+ CertificateIssuanceStatesVResponsePending CertificateIssuanceStates = "responsePending"
+ // CertificateIssuanceStatesVEnrollmentSucceeded undocumented
+ CertificateIssuanceStatesVEnrollmentSucceeded CertificateIssuanceStates = "enrollmentSucceeded"
+ // CertificateIssuanceStatesVEnrollmentNotNeeded undocumented
+ CertificateIssuanceStatesVEnrollmentNotNeeded CertificateIssuanceStates = "enrollmentNotNeeded"
+ // CertificateIssuanceStatesVRevoked undocumented
+ CertificateIssuanceStatesVRevoked CertificateIssuanceStates = "revoked"
+ // CertificateIssuanceStatesVRemovedFromCollection undocumented
+ CertificateIssuanceStatesVRemovedFromCollection CertificateIssuanceStates = "removedFromCollection"
+ // CertificateIssuanceStatesVRenewVerified undocumented
+ CertificateIssuanceStatesVRenewVerified CertificateIssuanceStates = "renewVerified"
+ // CertificateIssuanceStatesVInstallFailed undocumented
+ CertificateIssuanceStatesVInstallFailed CertificateIssuanceStates = "installFailed"
+ // CertificateIssuanceStatesVInstalled undocumented
+ CertificateIssuanceStatesVInstalled CertificateIssuanceStates = "installed"
+ // CertificateIssuanceStatesVDeleteFailed undocumented
+ CertificateIssuanceStatesVDeleteFailed CertificateIssuanceStates = "deleteFailed"
+ // CertificateIssuanceStatesVDeleted undocumented
+ CertificateIssuanceStatesVDeleted CertificateIssuanceStates = "deleted"
+ // CertificateIssuanceStatesVRenewalRequested undocumented
+ CertificateIssuanceStatesVRenewalRequested CertificateIssuanceStates = "renewalRequested"
+ // CertificateIssuanceStatesVRequested undocumented
+ CertificateIssuanceStatesVRequested CertificateIssuanceStates = "requested"
+)
+
+var (
+ // CertificateIssuanceStatesPUnknown is a pointer to CertificateIssuanceStatesVUnknown
+ CertificateIssuanceStatesPUnknown = &_CertificateIssuanceStatesPUnknown
+ // CertificateIssuanceStatesPChallengeIssued is a pointer to CertificateIssuanceStatesVChallengeIssued
+ CertificateIssuanceStatesPChallengeIssued = &_CertificateIssuanceStatesPChallengeIssued
+ // CertificateIssuanceStatesPChallengeIssueFailed is a pointer to CertificateIssuanceStatesVChallengeIssueFailed
+ CertificateIssuanceStatesPChallengeIssueFailed = &_CertificateIssuanceStatesPChallengeIssueFailed
+ // CertificateIssuanceStatesPRequestCreationFailed is a pointer to CertificateIssuanceStatesVRequestCreationFailed
+ CertificateIssuanceStatesPRequestCreationFailed = &_CertificateIssuanceStatesPRequestCreationFailed
+ // CertificateIssuanceStatesPRequestSubmitFailed is a pointer to CertificateIssuanceStatesVRequestSubmitFailed
+ CertificateIssuanceStatesPRequestSubmitFailed = &_CertificateIssuanceStatesPRequestSubmitFailed
+ // CertificateIssuanceStatesPChallengeValidationSucceeded is a pointer to CertificateIssuanceStatesVChallengeValidationSucceeded
+ CertificateIssuanceStatesPChallengeValidationSucceeded = &_CertificateIssuanceStatesPChallengeValidationSucceeded
+ // CertificateIssuanceStatesPChallengeValidationFailed is a pointer to CertificateIssuanceStatesVChallengeValidationFailed
+ CertificateIssuanceStatesPChallengeValidationFailed = &_CertificateIssuanceStatesPChallengeValidationFailed
+ // CertificateIssuanceStatesPIssueFailed is a pointer to CertificateIssuanceStatesVIssueFailed
+ CertificateIssuanceStatesPIssueFailed = &_CertificateIssuanceStatesPIssueFailed
+ // CertificateIssuanceStatesPIssuePending is a pointer to CertificateIssuanceStatesVIssuePending
+ CertificateIssuanceStatesPIssuePending = &_CertificateIssuanceStatesPIssuePending
+ // CertificateIssuanceStatesPIssued is a pointer to CertificateIssuanceStatesVIssued
+ CertificateIssuanceStatesPIssued = &_CertificateIssuanceStatesPIssued
+ // CertificateIssuanceStatesPResponseProcessingFailed is a pointer to CertificateIssuanceStatesVResponseProcessingFailed
+ CertificateIssuanceStatesPResponseProcessingFailed = &_CertificateIssuanceStatesPResponseProcessingFailed
+ // CertificateIssuanceStatesPResponsePending is a pointer to CertificateIssuanceStatesVResponsePending
+ CertificateIssuanceStatesPResponsePending = &_CertificateIssuanceStatesPResponsePending
+ // CertificateIssuanceStatesPEnrollmentSucceeded is a pointer to CertificateIssuanceStatesVEnrollmentSucceeded
+ CertificateIssuanceStatesPEnrollmentSucceeded = &_CertificateIssuanceStatesPEnrollmentSucceeded
+ // CertificateIssuanceStatesPEnrollmentNotNeeded is a pointer to CertificateIssuanceStatesVEnrollmentNotNeeded
+ CertificateIssuanceStatesPEnrollmentNotNeeded = &_CertificateIssuanceStatesPEnrollmentNotNeeded
+ // CertificateIssuanceStatesPRevoked is a pointer to CertificateIssuanceStatesVRevoked
+ CertificateIssuanceStatesPRevoked = &_CertificateIssuanceStatesPRevoked
+ // CertificateIssuanceStatesPRemovedFromCollection is a pointer to CertificateIssuanceStatesVRemovedFromCollection
+ CertificateIssuanceStatesPRemovedFromCollection = &_CertificateIssuanceStatesPRemovedFromCollection
+ // CertificateIssuanceStatesPRenewVerified is a pointer to CertificateIssuanceStatesVRenewVerified
+ CertificateIssuanceStatesPRenewVerified = &_CertificateIssuanceStatesPRenewVerified
+ // CertificateIssuanceStatesPInstallFailed is a pointer to CertificateIssuanceStatesVInstallFailed
+ CertificateIssuanceStatesPInstallFailed = &_CertificateIssuanceStatesPInstallFailed
+ // CertificateIssuanceStatesPInstalled is a pointer to CertificateIssuanceStatesVInstalled
+ CertificateIssuanceStatesPInstalled = &_CertificateIssuanceStatesPInstalled
+ // CertificateIssuanceStatesPDeleteFailed is a pointer to CertificateIssuanceStatesVDeleteFailed
+ CertificateIssuanceStatesPDeleteFailed = &_CertificateIssuanceStatesPDeleteFailed
+ // CertificateIssuanceStatesPDeleted is a pointer to CertificateIssuanceStatesVDeleted
+ CertificateIssuanceStatesPDeleted = &_CertificateIssuanceStatesPDeleted
+ // CertificateIssuanceStatesPRenewalRequested is a pointer to CertificateIssuanceStatesVRenewalRequested
+ CertificateIssuanceStatesPRenewalRequested = &_CertificateIssuanceStatesPRenewalRequested
+ // CertificateIssuanceStatesPRequested is a pointer to CertificateIssuanceStatesVRequested
+ CertificateIssuanceStatesPRequested = &_CertificateIssuanceStatesPRequested
+)
+
+var (
+ _CertificateIssuanceStatesPUnknown = CertificateIssuanceStatesVUnknown
+ _CertificateIssuanceStatesPChallengeIssued = CertificateIssuanceStatesVChallengeIssued
+ _CertificateIssuanceStatesPChallengeIssueFailed = CertificateIssuanceStatesVChallengeIssueFailed
+ _CertificateIssuanceStatesPRequestCreationFailed = CertificateIssuanceStatesVRequestCreationFailed
+ _CertificateIssuanceStatesPRequestSubmitFailed = CertificateIssuanceStatesVRequestSubmitFailed
+ _CertificateIssuanceStatesPChallengeValidationSucceeded = CertificateIssuanceStatesVChallengeValidationSucceeded
+ _CertificateIssuanceStatesPChallengeValidationFailed = CertificateIssuanceStatesVChallengeValidationFailed
+ _CertificateIssuanceStatesPIssueFailed = CertificateIssuanceStatesVIssueFailed
+ _CertificateIssuanceStatesPIssuePending = CertificateIssuanceStatesVIssuePending
+ _CertificateIssuanceStatesPIssued = CertificateIssuanceStatesVIssued
+ _CertificateIssuanceStatesPResponseProcessingFailed = CertificateIssuanceStatesVResponseProcessingFailed
+ _CertificateIssuanceStatesPResponsePending = CertificateIssuanceStatesVResponsePending
+ _CertificateIssuanceStatesPEnrollmentSucceeded = CertificateIssuanceStatesVEnrollmentSucceeded
+ _CertificateIssuanceStatesPEnrollmentNotNeeded = CertificateIssuanceStatesVEnrollmentNotNeeded
+ _CertificateIssuanceStatesPRevoked = CertificateIssuanceStatesVRevoked
+ _CertificateIssuanceStatesPRemovedFromCollection = CertificateIssuanceStatesVRemovedFromCollection
+ _CertificateIssuanceStatesPRenewVerified = CertificateIssuanceStatesVRenewVerified
+ _CertificateIssuanceStatesPInstallFailed = CertificateIssuanceStatesVInstallFailed
+ _CertificateIssuanceStatesPInstalled = CertificateIssuanceStatesVInstalled
+ _CertificateIssuanceStatesPDeleteFailed = CertificateIssuanceStatesVDeleteFailed
+ _CertificateIssuanceStatesPDeleted = CertificateIssuanceStatesVDeleted
+ _CertificateIssuanceStatesPRenewalRequested = CertificateIssuanceStatesVRenewalRequested
+ _CertificateIssuanceStatesPRequested = CertificateIssuanceStatesVRequested
+)
+
+// CertificateRevocationStatus undocumented
+type CertificateRevocationStatus string
+
+const (
+ // CertificateRevocationStatusVNone undocumented
+ CertificateRevocationStatusVNone CertificateRevocationStatus = "none"
+ // CertificateRevocationStatusVPending undocumented
+ CertificateRevocationStatusVPending CertificateRevocationStatus = "pending"
+ // CertificateRevocationStatusVIssued undocumented
+ CertificateRevocationStatusVIssued CertificateRevocationStatus = "issued"
+ // CertificateRevocationStatusVFailed undocumented
+ CertificateRevocationStatusVFailed CertificateRevocationStatus = "failed"
+ // CertificateRevocationStatusVRevoked undocumented
+ CertificateRevocationStatusVRevoked CertificateRevocationStatus = "revoked"
+)
+
+var (
+ // CertificateRevocationStatusPNone is a pointer to CertificateRevocationStatusVNone
+ CertificateRevocationStatusPNone = &_CertificateRevocationStatusPNone
+ // CertificateRevocationStatusPPending is a pointer to CertificateRevocationStatusVPending
+ CertificateRevocationStatusPPending = &_CertificateRevocationStatusPPending
+ // CertificateRevocationStatusPIssued is a pointer to CertificateRevocationStatusVIssued
+ CertificateRevocationStatusPIssued = &_CertificateRevocationStatusPIssued
+ // CertificateRevocationStatusPFailed is a pointer to CertificateRevocationStatusVFailed
+ CertificateRevocationStatusPFailed = &_CertificateRevocationStatusPFailed
+ // CertificateRevocationStatusPRevoked is a pointer to CertificateRevocationStatusVRevoked
+ CertificateRevocationStatusPRevoked = &_CertificateRevocationStatusPRevoked
+)
+
+var (
+ _CertificateRevocationStatusPNone = CertificateRevocationStatusVNone
+ _CertificateRevocationStatusPPending = CertificateRevocationStatusVPending
+ _CertificateRevocationStatusPIssued = CertificateRevocationStatusVIssued
+ _CertificateRevocationStatusPFailed = CertificateRevocationStatusVFailed
+ _CertificateRevocationStatusPRevoked = CertificateRevocationStatusVRevoked
+)
+
+// CertificateStatus undocumented
+type CertificateStatus string
+
+const (
+ // CertificateStatusVNotProvisioned undocumented
+ CertificateStatusVNotProvisioned CertificateStatus = "notProvisioned"
+ // CertificateStatusVProvisioned undocumented
+ CertificateStatusVProvisioned CertificateStatus = "provisioned"
+)
+
+var (
+ // CertificateStatusPNotProvisioned is a pointer to CertificateStatusVNotProvisioned
+ CertificateStatusPNotProvisioned = &_CertificateStatusPNotProvisioned
+ // CertificateStatusPProvisioned is a pointer to CertificateStatusVProvisioned
+ CertificateStatusPProvisioned = &_CertificateStatusPProvisioned
+)
+
+var (
+ _CertificateStatusPNotProvisioned = CertificateStatusVNotProvisioned
+ _CertificateStatusPProvisioned = CertificateStatusVProvisioned
+)
+
+// CertificateStore undocumented
+type CertificateStore string
+
+const (
+ // CertificateStoreVUser undocumented
+ CertificateStoreVUser CertificateStore = "user"
+ // CertificateStoreVMachine undocumented
+ CertificateStoreVMachine CertificateStore = "machine"
+)
+
+var (
+ // CertificateStorePUser is a pointer to CertificateStoreVUser
+ CertificateStorePUser = &_CertificateStorePUser
+ // CertificateStorePMachine is a pointer to CertificateStoreVMachine
+ CertificateStorePMachine = &_CertificateStorePMachine
+)
+
+var (
+ _CertificateStorePUser = CertificateStoreVUser
+ _CertificateStorePMachine = CertificateStoreVMachine
+)
+
+// CertificateValidityPeriodScale undocumented
+type CertificateValidityPeriodScale string
+
+const (
+ // CertificateValidityPeriodScaleVDays undocumented
+ CertificateValidityPeriodScaleVDays CertificateValidityPeriodScale = "days"
+ // CertificateValidityPeriodScaleVMonths undocumented
+ CertificateValidityPeriodScaleVMonths CertificateValidityPeriodScale = "months"
+ // CertificateValidityPeriodScaleVYears undocumented
+ CertificateValidityPeriodScaleVYears CertificateValidityPeriodScale = "years"
+)
+
+var (
+ // CertificateValidityPeriodScalePDays is a pointer to CertificateValidityPeriodScaleVDays
+ CertificateValidityPeriodScalePDays = &_CertificateValidityPeriodScalePDays
+ // CertificateValidityPeriodScalePMonths is a pointer to CertificateValidityPeriodScaleVMonths
+ CertificateValidityPeriodScalePMonths = &_CertificateValidityPeriodScalePMonths
+ // CertificateValidityPeriodScalePYears is a pointer to CertificateValidityPeriodScaleVYears
+ CertificateValidityPeriodScalePYears = &_CertificateValidityPeriodScalePYears
+)
+
+var (
+ _CertificateValidityPeriodScalePDays = CertificateValidityPeriodScaleVDays
+ _CertificateValidityPeriodScalePMonths = CertificateValidityPeriodScaleVMonths
+ _CertificateValidityPeriodScalePYears = CertificateValidityPeriodScaleVYears
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumChange.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChange.go
new file mode 100644
index 00000000..ef7a5ffd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChange.go
@@ -0,0 +1,52 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChangeType undocumented
+type ChangeType string
+
+const (
+ // ChangeTypeVCreated undocumented
+ ChangeTypeVCreated ChangeType = "created"
+ // ChangeTypeVUpdated undocumented
+ ChangeTypeVUpdated ChangeType = "updated"
+ // ChangeTypeVDeleted undocumented
+ ChangeTypeVDeleted ChangeType = "deleted"
+)
+
+var (
+ // ChangeTypePCreated is a pointer to ChangeTypeVCreated
+ ChangeTypePCreated = &_ChangeTypePCreated
+ // ChangeTypePUpdated is a pointer to ChangeTypeVUpdated
+ ChangeTypePUpdated = &_ChangeTypePUpdated
+ // ChangeTypePDeleted is a pointer to ChangeTypeVDeleted
+ ChangeTypePDeleted = &_ChangeTypePDeleted
+)
+
+var (
+ _ChangeTypePCreated = ChangeTypeVCreated
+ _ChangeTypePUpdated = ChangeTypeVUpdated
+ _ChangeTypePDeleted = ChangeTypeVDeleted
+)
+
+// ChangeUefiSettingsPermission undocumented
+type ChangeUefiSettingsPermission string
+
+const (
+ // ChangeUefiSettingsPermissionVNotConfiguredOnly undocumented
+ ChangeUefiSettingsPermissionVNotConfiguredOnly ChangeUefiSettingsPermission = "notConfiguredOnly"
+ // ChangeUefiSettingsPermissionVNone undocumented
+ ChangeUefiSettingsPermissionVNone ChangeUefiSettingsPermission = "none"
+)
+
+var (
+ // ChangeUefiSettingsPermissionPNotConfiguredOnly is a pointer to ChangeUefiSettingsPermissionVNotConfiguredOnly
+ ChangeUefiSettingsPermissionPNotConfiguredOnly = &_ChangeUefiSettingsPermissionPNotConfiguredOnly
+ // ChangeUefiSettingsPermissionPNone is a pointer to ChangeUefiSettingsPermissionVNone
+ ChangeUefiSettingsPermissionPNone = &_ChangeUefiSettingsPermissionPNone
+)
+
+var (
+ _ChangeUefiSettingsPermissionPNotConfiguredOnly = ChangeUefiSettingsPermissionVNotConfiguredOnly
+ _ChangeUefiSettingsPermissionPNone = ChangeUefiSettingsPermissionVNone
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumChannel.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChannel.go
new file mode 100644
index 00000000..f83c064c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChannel.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChannelMembershipType undocumented
+type ChannelMembershipType string
+
+const (
+ // ChannelMembershipTypeVStandard undocumented
+ ChannelMembershipTypeVStandard ChannelMembershipType = "standard"
+ // ChannelMembershipTypeVPrivate undocumented
+ ChannelMembershipTypeVPrivate ChannelMembershipType = "private"
+ // ChannelMembershipTypeVUnknownFutureValue undocumented
+ ChannelMembershipTypeVUnknownFutureValue ChannelMembershipType = "unknownFutureValue"
+)
+
+var (
+ // ChannelMembershipTypePStandard is a pointer to ChannelMembershipTypeVStandard
+ ChannelMembershipTypePStandard = &_ChannelMembershipTypePStandard
+ // ChannelMembershipTypePPrivate is a pointer to ChannelMembershipTypeVPrivate
+ ChannelMembershipTypePPrivate = &_ChannelMembershipTypePPrivate
+ // ChannelMembershipTypePUnknownFutureValue is a pointer to ChannelMembershipTypeVUnknownFutureValue
+ ChannelMembershipTypePUnknownFutureValue = &_ChannelMembershipTypePUnknownFutureValue
+)
+
+var (
+ _ChannelMembershipTypePStandard = ChannelMembershipTypeVStandard
+ _ChannelMembershipTypePPrivate = ChannelMembershipTypeVPrivate
+ _ChannelMembershipTypePUnknownFutureValue = ChannelMembershipTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumChassis.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChassis.go
new file mode 100644
index 00000000..d4b6c4e8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChassis.go
@@ -0,0 +1,60 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChassisType undocumented
+type ChassisType string
+
+const (
+ // ChassisTypeVUnknown undocumented
+ ChassisTypeVUnknown ChassisType = "unknown"
+ // ChassisTypeVDesktop undocumented
+ ChassisTypeVDesktop ChassisType = "desktop"
+ // ChassisTypeVLaptop undocumented
+ ChassisTypeVLaptop ChassisType = "laptop"
+ // ChassisTypeVWorksWorkstation undocumented
+ ChassisTypeVWorksWorkstation ChassisType = "worksWorkstation"
+ // ChassisTypeVEnterpriseServer undocumented
+ ChassisTypeVEnterpriseServer ChassisType = "enterpriseServer"
+ // ChassisTypeVPhone undocumented
+ ChassisTypeVPhone ChassisType = "phone"
+ // ChassisTypeVTablet undocumented
+ ChassisTypeVTablet ChassisType = "tablet"
+ // ChassisTypeVMobileOther undocumented
+ ChassisTypeVMobileOther ChassisType = "mobileOther"
+ // ChassisTypeVMobileUnknown undocumented
+ ChassisTypeVMobileUnknown ChassisType = "mobileUnknown"
+)
+
+var (
+ // ChassisTypePUnknown is a pointer to ChassisTypeVUnknown
+ ChassisTypePUnknown = &_ChassisTypePUnknown
+ // ChassisTypePDesktop is a pointer to ChassisTypeVDesktop
+ ChassisTypePDesktop = &_ChassisTypePDesktop
+ // ChassisTypePLaptop is a pointer to ChassisTypeVLaptop
+ ChassisTypePLaptop = &_ChassisTypePLaptop
+ // ChassisTypePWorksWorkstation is a pointer to ChassisTypeVWorksWorkstation
+ ChassisTypePWorksWorkstation = &_ChassisTypePWorksWorkstation
+ // ChassisTypePEnterpriseServer is a pointer to ChassisTypeVEnterpriseServer
+ ChassisTypePEnterpriseServer = &_ChassisTypePEnterpriseServer
+ // ChassisTypePPhone is a pointer to ChassisTypeVPhone
+ ChassisTypePPhone = &_ChassisTypePPhone
+ // ChassisTypePTablet is a pointer to ChassisTypeVTablet
+ ChassisTypePTablet = &_ChassisTypePTablet
+ // ChassisTypePMobileOther is a pointer to ChassisTypeVMobileOther
+ ChassisTypePMobileOther = &_ChassisTypePMobileOther
+ // ChassisTypePMobileUnknown is a pointer to ChassisTypeVMobileUnknown
+ ChassisTypePMobileUnknown = &_ChassisTypePMobileUnknown
+)
+
+var (
+ _ChassisTypePUnknown = ChassisTypeVUnknown
+ _ChassisTypePDesktop = ChassisTypeVDesktop
+ _ChassisTypePLaptop = ChassisTypeVLaptop
+ _ChassisTypePWorksWorkstation = ChassisTypeVWorksWorkstation
+ _ChassisTypePEnterpriseServer = ChassisTypeVEnterpriseServer
+ _ChassisTypePPhone = ChassisTypeVPhone
+ _ChassisTypePTablet = ChassisTypeVTablet
+ _ChassisTypePMobileOther = ChassisTypeVMobileOther
+ _ChassisTypePMobileUnknown = ChassisTypeVMobileUnknown
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumChat.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChat.go
new file mode 100644
index 00000000..bbbec18b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumChat.go
@@ -0,0 +1,148 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChatMessageImportance undocumented
+type ChatMessageImportance string
+
+const (
+ // ChatMessageImportanceVNormal undocumented
+ ChatMessageImportanceVNormal ChatMessageImportance = "normal"
+ // ChatMessageImportanceVHigh undocumented
+ ChatMessageImportanceVHigh ChatMessageImportance = "high"
+ // ChatMessageImportanceVUrgent undocumented
+ ChatMessageImportanceVUrgent ChatMessageImportance = "urgent"
+)
+
+var (
+ // ChatMessageImportancePNormal is a pointer to ChatMessageImportanceVNormal
+ ChatMessageImportancePNormal = &_ChatMessageImportancePNormal
+ // ChatMessageImportancePHigh is a pointer to ChatMessageImportanceVHigh
+ ChatMessageImportancePHigh = &_ChatMessageImportancePHigh
+ // ChatMessageImportancePUrgent is a pointer to ChatMessageImportanceVUrgent
+ ChatMessageImportancePUrgent = &_ChatMessageImportancePUrgent
+)
+
+var (
+ _ChatMessageImportancePNormal = ChatMessageImportanceVNormal
+ _ChatMessageImportancePHigh = ChatMessageImportanceVHigh
+ _ChatMessageImportancePUrgent = ChatMessageImportanceVUrgent
+)
+
+// ChatMessagePolicyViolationDlpActionTypes undocumented
+type ChatMessagePolicyViolationDlpActionTypes string
+
+const (
+ // ChatMessagePolicyViolationDlpActionTypesVNone undocumented
+ ChatMessagePolicyViolationDlpActionTypesVNone ChatMessagePolicyViolationDlpActionTypes = "none"
+ // ChatMessagePolicyViolationDlpActionTypesVNotifySender undocumented
+ ChatMessagePolicyViolationDlpActionTypesVNotifySender ChatMessagePolicyViolationDlpActionTypes = "notifySender"
+ // ChatMessagePolicyViolationDlpActionTypesVBlockAccess undocumented
+ ChatMessagePolicyViolationDlpActionTypesVBlockAccess ChatMessagePolicyViolationDlpActionTypes = "blockAccess"
+ // ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal undocumented
+ ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal ChatMessagePolicyViolationDlpActionTypes = "blockAccessExternal"
+)
+
+var (
+ // ChatMessagePolicyViolationDlpActionTypesPNone is a pointer to ChatMessagePolicyViolationDlpActionTypesVNone
+ ChatMessagePolicyViolationDlpActionTypesPNone = &_ChatMessagePolicyViolationDlpActionTypesPNone
+ // ChatMessagePolicyViolationDlpActionTypesPNotifySender is a pointer to ChatMessagePolicyViolationDlpActionTypesVNotifySender
+ ChatMessagePolicyViolationDlpActionTypesPNotifySender = &_ChatMessagePolicyViolationDlpActionTypesPNotifySender
+ // ChatMessagePolicyViolationDlpActionTypesPBlockAccess is a pointer to ChatMessagePolicyViolationDlpActionTypesVBlockAccess
+ ChatMessagePolicyViolationDlpActionTypesPBlockAccess = &_ChatMessagePolicyViolationDlpActionTypesPBlockAccess
+ // ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal is a pointer to ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal
+ ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal = &_ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal
+)
+
+var (
+ _ChatMessagePolicyViolationDlpActionTypesPNone = ChatMessagePolicyViolationDlpActionTypesVNone
+ _ChatMessagePolicyViolationDlpActionTypesPNotifySender = ChatMessagePolicyViolationDlpActionTypesVNotifySender
+ _ChatMessagePolicyViolationDlpActionTypesPBlockAccess = ChatMessagePolicyViolationDlpActionTypesVBlockAccess
+ _ChatMessagePolicyViolationDlpActionTypesPBlockAccessExternal = ChatMessagePolicyViolationDlpActionTypesVBlockAccessExternal
+)
+
+// ChatMessagePolicyViolationUserActionTypes undocumented
+type ChatMessagePolicyViolationUserActionTypes string
+
+const (
+ // ChatMessagePolicyViolationUserActionTypesVNone undocumented
+ ChatMessagePolicyViolationUserActionTypesVNone ChatMessagePolicyViolationUserActionTypes = "none"
+ // ChatMessagePolicyViolationUserActionTypesVOverride undocumented
+ ChatMessagePolicyViolationUserActionTypesVOverride ChatMessagePolicyViolationUserActionTypes = "override"
+ // ChatMessagePolicyViolationUserActionTypesVReportFalsePositive undocumented
+ ChatMessagePolicyViolationUserActionTypesVReportFalsePositive ChatMessagePolicyViolationUserActionTypes = "reportFalsePositive"
+)
+
+var (
+ // ChatMessagePolicyViolationUserActionTypesPNone is a pointer to ChatMessagePolicyViolationUserActionTypesVNone
+ ChatMessagePolicyViolationUserActionTypesPNone = &_ChatMessagePolicyViolationUserActionTypesPNone
+ // ChatMessagePolicyViolationUserActionTypesPOverride is a pointer to ChatMessagePolicyViolationUserActionTypesVOverride
+ ChatMessagePolicyViolationUserActionTypesPOverride = &_ChatMessagePolicyViolationUserActionTypesPOverride
+ // ChatMessagePolicyViolationUserActionTypesPReportFalsePositive is a pointer to ChatMessagePolicyViolationUserActionTypesVReportFalsePositive
+ ChatMessagePolicyViolationUserActionTypesPReportFalsePositive = &_ChatMessagePolicyViolationUserActionTypesPReportFalsePositive
+)
+
+var (
+ _ChatMessagePolicyViolationUserActionTypesPNone = ChatMessagePolicyViolationUserActionTypesVNone
+ _ChatMessagePolicyViolationUserActionTypesPOverride = ChatMessagePolicyViolationUserActionTypesVOverride
+ _ChatMessagePolicyViolationUserActionTypesPReportFalsePositive = ChatMessagePolicyViolationUserActionTypesVReportFalsePositive
+)
+
+// ChatMessagePolicyViolationVerdictDetailsTypes undocumented
+type ChatMessagePolicyViolationVerdictDetailsTypes string
+
+const (
+ // ChatMessagePolicyViolationVerdictDetailsTypesVNone undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVNone ChatMessagePolicyViolationVerdictDetailsTypes = "none"
+ // ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride ChatMessagePolicyViolationVerdictDetailsTypes = "allowFalsePositiveOverride"
+ // ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification ChatMessagePolicyViolationVerdictDetailsTypes = "allowOverrideWithoutJustification"
+ // ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification undocumented
+ ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification ChatMessagePolicyViolationVerdictDetailsTypes = "allowOverrideWithJustification"
+)
+
+var (
+ // ChatMessagePolicyViolationVerdictDetailsTypesPNone is a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVNone
+ ChatMessagePolicyViolationVerdictDetailsTypesPNone = &_ChatMessagePolicyViolationVerdictDetailsTypesPNone
+ // ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride is a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride
+ ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride = &_ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride
+ // ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification is a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification
+ ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification = &_ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification
+ // ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification is a pointer to ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification
+ ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification = &_ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification
+)
+
+var (
+ _ChatMessagePolicyViolationVerdictDetailsTypesPNone = ChatMessagePolicyViolationVerdictDetailsTypesVNone
+ _ChatMessagePolicyViolationVerdictDetailsTypesPAllowFalsePositiveOverride = ChatMessagePolicyViolationVerdictDetailsTypesVAllowFalsePositiveOverride
+ _ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithoutJustification = ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithoutJustification
+ _ChatMessagePolicyViolationVerdictDetailsTypesPAllowOverrideWithJustification = ChatMessagePolicyViolationVerdictDetailsTypesVAllowOverrideWithJustification
+)
+
+// ChatMessageType undocumented
+type ChatMessageType string
+
+const (
+ // ChatMessageTypeVMessage undocumented
+ ChatMessageTypeVMessage ChatMessageType = "message"
+ // ChatMessageTypeVChatEvent undocumented
+ ChatMessageTypeVChatEvent ChatMessageType = "chatEvent"
+ // ChatMessageTypeVTyping undocumented
+ ChatMessageTypeVTyping ChatMessageType = "typing"
+)
+
+var (
+ // ChatMessageTypePMessage is a pointer to ChatMessageTypeVMessage
+ ChatMessageTypePMessage = &_ChatMessageTypePMessage
+ // ChatMessageTypePChatEvent is a pointer to ChatMessageTypeVChatEvent
+ ChatMessageTypePChatEvent = &_ChatMessageTypePChatEvent
+ // ChatMessageTypePTyping is a pointer to ChatMessageTypeVTyping
+ ChatMessageTypePTyping = &_ChatMessageTypePTyping
+)
+
+var (
+ _ChatMessageTypePMessage = ChatMessageTypeVMessage
+ _ChatMessageTypePChatEvent = ChatMessageTypeVChatEvent
+ _ChatMessageTypePTyping = ChatMessageTypeVTyping
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumClonable.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumClonable.go
new file mode 100644
index 00000000..7c870975
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumClonable.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClonableTeamParts undocumented
+type ClonableTeamParts string
+
+const (
+ // ClonableTeamPartsVApps undocumented
+ ClonableTeamPartsVApps ClonableTeamParts = "apps"
+ // ClonableTeamPartsVTabs undocumented
+ ClonableTeamPartsVTabs ClonableTeamParts = "tabs"
+ // ClonableTeamPartsVSettings undocumented
+ ClonableTeamPartsVSettings ClonableTeamParts = "settings"
+ // ClonableTeamPartsVChannels undocumented
+ ClonableTeamPartsVChannels ClonableTeamParts = "channels"
+ // ClonableTeamPartsVMembers undocumented
+ ClonableTeamPartsVMembers ClonableTeamParts = "members"
+)
+
+var (
+ // ClonableTeamPartsPApps is a pointer to ClonableTeamPartsVApps
+ ClonableTeamPartsPApps = &_ClonableTeamPartsPApps
+ // ClonableTeamPartsPTabs is a pointer to ClonableTeamPartsVTabs
+ ClonableTeamPartsPTabs = &_ClonableTeamPartsPTabs
+ // ClonableTeamPartsPSettings is a pointer to ClonableTeamPartsVSettings
+ ClonableTeamPartsPSettings = &_ClonableTeamPartsPSettings
+ // ClonableTeamPartsPChannels is a pointer to ClonableTeamPartsVChannels
+ ClonableTeamPartsPChannels = &_ClonableTeamPartsPChannels
+ // ClonableTeamPartsPMembers is a pointer to ClonableTeamPartsVMembers
+ ClonableTeamPartsPMembers = &_ClonableTeamPartsPMembers
+)
+
+var (
+ _ClonableTeamPartsPApps = ClonableTeamPartsVApps
+ _ClonableTeamPartsPTabs = ClonableTeamPartsVTabs
+ _ClonableTeamPartsPSettings = ClonableTeamPartsVSettings
+ _ClonableTeamPartsPChannels = ClonableTeamPartsVChannels
+ _ClonableTeamPartsPMembers = ClonableTeamPartsVMembers
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCloud.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCloud.go
new file mode 100644
index 00000000..3430fe40
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCloud.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CloudAppSecuritySessionControlType undocumented
+type CloudAppSecuritySessionControlType string
+
+const (
+ // CloudAppSecuritySessionControlTypeVMcasConfigured undocumented
+ CloudAppSecuritySessionControlTypeVMcasConfigured CloudAppSecuritySessionControlType = "mcasConfigured"
+ // CloudAppSecuritySessionControlTypeVMonitorOnly undocumented
+ CloudAppSecuritySessionControlTypeVMonitorOnly CloudAppSecuritySessionControlType = "monitorOnly"
+ // CloudAppSecuritySessionControlTypeVBlockDownloads undocumented
+ CloudAppSecuritySessionControlTypeVBlockDownloads CloudAppSecuritySessionControlType = "blockDownloads"
+)
+
+var (
+ // CloudAppSecuritySessionControlTypePMcasConfigured is a pointer to CloudAppSecuritySessionControlTypeVMcasConfigured
+ CloudAppSecuritySessionControlTypePMcasConfigured = &_CloudAppSecuritySessionControlTypePMcasConfigured
+ // CloudAppSecuritySessionControlTypePMonitorOnly is a pointer to CloudAppSecuritySessionControlTypeVMonitorOnly
+ CloudAppSecuritySessionControlTypePMonitorOnly = &_CloudAppSecuritySessionControlTypePMonitorOnly
+ // CloudAppSecuritySessionControlTypePBlockDownloads is a pointer to CloudAppSecuritySessionControlTypeVBlockDownloads
+ CloudAppSecuritySessionControlTypePBlockDownloads = &_CloudAppSecuritySessionControlTypePBlockDownloads
+)
+
+var (
+ _CloudAppSecuritySessionControlTypePMcasConfigured = CloudAppSecuritySessionControlTypeVMcasConfigured
+ _CloudAppSecuritySessionControlTypePMonitorOnly = CloudAppSecuritySessionControlTypeVMonitorOnly
+ _CloudAppSecuritySessionControlTypePBlockDownloads = CloudAppSecuritySessionControlTypeVBlockDownloads
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompany.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompany.go
new file mode 100644
index 00000000..b5f6bb5a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompany.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CompanyPortalAction undocumented
+type CompanyPortalAction string
+
+const (
+ // CompanyPortalActionVUnknown undocumented
+ CompanyPortalActionVUnknown CompanyPortalAction = "unknown"
+ // CompanyPortalActionVRemove undocumented
+ CompanyPortalActionVRemove CompanyPortalAction = "remove"
+ // CompanyPortalActionVReset undocumented
+ CompanyPortalActionVReset CompanyPortalAction = "reset"
+)
+
+var (
+ // CompanyPortalActionPUnknown is a pointer to CompanyPortalActionVUnknown
+ CompanyPortalActionPUnknown = &_CompanyPortalActionPUnknown
+ // CompanyPortalActionPRemove is a pointer to CompanyPortalActionVRemove
+ CompanyPortalActionPRemove = &_CompanyPortalActionPRemove
+ // CompanyPortalActionPReset is a pointer to CompanyPortalActionVReset
+ CompanyPortalActionPReset = &_CompanyPortalActionPReset
+)
+
+var (
+ _CompanyPortalActionPUnknown = CompanyPortalActionVUnknown
+ _CompanyPortalActionPRemove = CompanyPortalActionVRemove
+ _CompanyPortalActionPReset = CompanyPortalActionVReset
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompliance.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompliance.go
new file mode 100644
index 00000000..beb750cf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumCompliance.go
@@ -0,0 +1,102 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ComplianceState undocumented
+type ComplianceState string
+
+const (
+ // ComplianceStateVUnknown undocumented
+ ComplianceStateVUnknown ComplianceState = "unknown"
+ // ComplianceStateVCompliant undocumented
+ ComplianceStateVCompliant ComplianceState = "compliant"
+ // ComplianceStateVNoncompliant undocumented
+ ComplianceStateVNoncompliant ComplianceState = "noncompliant"
+ // ComplianceStateVConflict undocumented
+ ComplianceStateVConflict ComplianceState = "conflict"
+ // ComplianceStateVError undocumented
+ ComplianceStateVError ComplianceState = "error"
+ // ComplianceStateVInGracePeriod undocumented
+ ComplianceStateVInGracePeriod ComplianceState = "inGracePeriod"
+ // ComplianceStateVConfigManager undocumented
+ ComplianceStateVConfigManager ComplianceState = "configManager"
+)
+
+var (
+ // ComplianceStatePUnknown is a pointer to ComplianceStateVUnknown
+ ComplianceStatePUnknown = &_ComplianceStatePUnknown
+ // ComplianceStatePCompliant is a pointer to ComplianceStateVCompliant
+ ComplianceStatePCompliant = &_ComplianceStatePCompliant
+ // ComplianceStatePNoncompliant is a pointer to ComplianceStateVNoncompliant
+ ComplianceStatePNoncompliant = &_ComplianceStatePNoncompliant
+ // ComplianceStatePConflict is a pointer to ComplianceStateVConflict
+ ComplianceStatePConflict = &_ComplianceStatePConflict
+ // ComplianceStatePError is a pointer to ComplianceStateVError
+ ComplianceStatePError = &_ComplianceStatePError
+ // ComplianceStatePInGracePeriod is a pointer to ComplianceStateVInGracePeriod
+ ComplianceStatePInGracePeriod = &_ComplianceStatePInGracePeriod
+ // ComplianceStatePConfigManager is a pointer to ComplianceStateVConfigManager
+ ComplianceStatePConfigManager = &_ComplianceStatePConfigManager
+)
+
+var (
+ _ComplianceStatePUnknown = ComplianceStateVUnknown
+ _ComplianceStatePCompliant = ComplianceStateVCompliant
+ _ComplianceStatePNoncompliant = ComplianceStateVNoncompliant
+ _ComplianceStatePConflict = ComplianceStateVConflict
+ _ComplianceStatePError = ComplianceStateVError
+ _ComplianceStatePInGracePeriod = ComplianceStateVInGracePeriod
+ _ComplianceStatePConfigManager = ComplianceStateVConfigManager
+)
+
+// ComplianceStatus undocumented
+type ComplianceStatus string
+
+const (
+ // ComplianceStatusVUnknown undocumented
+ ComplianceStatusVUnknown ComplianceStatus = "unknown"
+ // ComplianceStatusVNotApplicable undocumented
+ ComplianceStatusVNotApplicable ComplianceStatus = "notApplicable"
+ // ComplianceStatusVCompliant undocumented
+ ComplianceStatusVCompliant ComplianceStatus = "compliant"
+ // ComplianceStatusVRemediated undocumented
+ ComplianceStatusVRemediated ComplianceStatus = "remediated"
+ // ComplianceStatusVNonCompliant undocumented
+ ComplianceStatusVNonCompliant ComplianceStatus = "nonCompliant"
+ // ComplianceStatusVError undocumented
+ ComplianceStatusVError ComplianceStatus = "error"
+ // ComplianceStatusVConflict undocumented
+ ComplianceStatusVConflict ComplianceStatus = "conflict"
+ // ComplianceStatusVNotAssigned undocumented
+ ComplianceStatusVNotAssigned ComplianceStatus = "notAssigned"
+)
+
+var (
+ // ComplianceStatusPUnknown is a pointer to ComplianceStatusVUnknown
+ ComplianceStatusPUnknown = &_ComplianceStatusPUnknown
+ // ComplianceStatusPNotApplicable is a pointer to ComplianceStatusVNotApplicable
+ ComplianceStatusPNotApplicable = &_ComplianceStatusPNotApplicable
+ // ComplianceStatusPCompliant is a pointer to ComplianceStatusVCompliant
+ ComplianceStatusPCompliant = &_ComplianceStatusPCompliant
+ // ComplianceStatusPRemediated is a pointer to ComplianceStatusVRemediated
+ ComplianceStatusPRemediated = &_ComplianceStatusPRemediated
+ // ComplianceStatusPNonCompliant is a pointer to ComplianceStatusVNonCompliant
+ ComplianceStatusPNonCompliant = &_ComplianceStatusPNonCompliant
+ // ComplianceStatusPError is a pointer to ComplianceStatusVError
+ ComplianceStatusPError = &_ComplianceStatusPError
+ // ComplianceStatusPConflict is a pointer to ComplianceStatusVConflict
+ ComplianceStatusPConflict = &_ComplianceStatusPConflict
+ // ComplianceStatusPNotAssigned is a pointer to ComplianceStatusVNotAssigned
+ ComplianceStatusPNotAssigned = &_ComplianceStatusPNotAssigned
+)
+
+var (
+ _ComplianceStatusPUnknown = ComplianceStatusVUnknown
+ _ComplianceStatusPNotApplicable = ComplianceStatusVNotApplicable
+ _ComplianceStatusPCompliant = ComplianceStatusVCompliant
+ _ComplianceStatusPRemediated = ComplianceStatusVRemediated
+ _ComplianceStatusPNonCompliant = ComplianceStatusVNonCompliant
+ _ComplianceStatusPError = ComplianceStatusVError
+ _ComplianceStatusPConflict = ComplianceStatusVConflict
+ _ComplianceStatusPNotAssigned = ComplianceStatusVNotAssigned
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumComponent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumComponent.go
new file mode 100644
index 00000000..876c770d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumComponent.go
@@ -0,0 +1,20 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Component undocumented
+type Component string
+
+const (
+ // ComponentVLabel undocumented
+ ComponentVLabel Component = "Label"
+)
+
+var (
+ // ComponentPLabel is a pointer to ComponentVLabel
+ ComponentPLabel = &_ComponentPLabel
+)
+
+var (
+ _ComponentPLabel = ComponentVLabel
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumConditional.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConditional.go
new file mode 100644
index 00000000..bf2f1297
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConditional.go
@@ -0,0 +1,250 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConditionalAccessClientApp undocumented
+type ConditionalAccessClientApp string
+
+const (
+ // ConditionalAccessClientAppVBrowser undocumented
+ ConditionalAccessClientAppVBrowser ConditionalAccessClientApp = "browser"
+ // ConditionalAccessClientAppVModern undocumented
+ ConditionalAccessClientAppVModern ConditionalAccessClientApp = "modern"
+ // ConditionalAccessClientAppVEasSupported undocumented
+ ConditionalAccessClientAppVEasSupported ConditionalAccessClientApp = "easSupported"
+ // ConditionalAccessClientAppVEasUnsupported undocumented
+ ConditionalAccessClientAppVEasUnsupported ConditionalAccessClientApp = "easUnsupported"
+ // ConditionalAccessClientAppVOther undocumented
+ ConditionalAccessClientAppVOther ConditionalAccessClientApp = "other"
+)
+
+var (
+ // ConditionalAccessClientAppPBrowser is a pointer to ConditionalAccessClientAppVBrowser
+ ConditionalAccessClientAppPBrowser = &_ConditionalAccessClientAppPBrowser
+ // ConditionalAccessClientAppPModern is a pointer to ConditionalAccessClientAppVModern
+ ConditionalAccessClientAppPModern = &_ConditionalAccessClientAppPModern
+ // ConditionalAccessClientAppPEasSupported is a pointer to ConditionalAccessClientAppVEasSupported
+ ConditionalAccessClientAppPEasSupported = &_ConditionalAccessClientAppPEasSupported
+ // ConditionalAccessClientAppPEasUnsupported is a pointer to ConditionalAccessClientAppVEasUnsupported
+ ConditionalAccessClientAppPEasUnsupported = &_ConditionalAccessClientAppPEasUnsupported
+ // ConditionalAccessClientAppPOther is a pointer to ConditionalAccessClientAppVOther
+ ConditionalAccessClientAppPOther = &_ConditionalAccessClientAppPOther
+)
+
+var (
+ _ConditionalAccessClientAppPBrowser = ConditionalAccessClientAppVBrowser
+ _ConditionalAccessClientAppPModern = ConditionalAccessClientAppVModern
+ _ConditionalAccessClientAppPEasSupported = ConditionalAccessClientAppVEasSupported
+ _ConditionalAccessClientAppPEasUnsupported = ConditionalAccessClientAppVEasUnsupported
+ _ConditionalAccessClientAppPOther = ConditionalAccessClientAppVOther
+)
+
+// ConditionalAccessConditions undocumented
+type ConditionalAccessConditions string
+
+const (
+ // ConditionalAccessConditionsVNone undocumented
+ ConditionalAccessConditionsVNone ConditionalAccessConditions = "none"
+ // ConditionalAccessConditionsVApplication undocumented
+ ConditionalAccessConditionsVApplication ConditionalAccessConditions = "application"
+ // ConditionalAccessConditionsVUsers undocumented
+ ConditionalAccessConditionsVUsers ConditionalAccessConditions = "users"
+ // ConditionalAccessConditionsVDevicePlatform undocumented
+ ConditionalAccessConditionsVDevicePlatform ConditionalAccessConditions = "devicePlatform"
+ // ConditionalAccessConditionsVLocation undocumented
+ ConditionalAccessConditionsVLocation ConditionalAccessConditions = "location"
+ // ConditionalAccessConditionsVClientType undocumented
+ ConditionalAccessConditionsVClientType ConditionalAccessConditions = "clientType"
+ // ConditionalAccessConditionsVSignInRisk undocumented
+ ConditionalAccessConditionsVSignInRisk ConditionalAccessConditions = "signInRisk"
+ // ConditionalAccessConditionsVUserRisk undocumented
+ ConditionalAccessConditionsVUserRisk ConditionalAccessConditions = "userRisk"
+ // ConditionalAccessConditionsVTime undocumented
+ ConditionalAccessConditionsVTime ConditionalAccessConditions = "time"
+ // ConditionalAccessConditionsVDeviceState undocumented
+ ConditionalAccessConditionsVDeviceState ConditionalAccessConditions = "deviceState"
+ // ConditionalAccessConditionsVClient undocumented
+ ConditionalAccessConditionsVClient ConditionalAccessConditions = "client"
+)
+
+var (
+ // ConditionalAccessConditionsPNone is a pointer to ConditionalAccessConditionsVNone
+ ConditionalAccessConditionsPNone = &_ConditionalAccessConditionsPNone
+ // ConditionalAccessConditionsPApplication is a pointer to ConditionalAccessConditionsVApplication
+ ConditionalAccessConditionsPApplication = &_ConditionalAccessConditionsPApplication
+ // ConditionalAccessConditionsPUsers is a pointer to ConditionalAccessConditionsVUsers
+ ConditionalAccessConditionsPUsers = &_ConditionalAccessConditionsPUsers
+ // ConditionalAccessConditionsPDevicePlatform is a pointer to ConditionalAccessConditionsVDevicePlatform
+ ConditionalAccessConditionsPDevicePlatform = &_ConditionalAccessConditionsPDevicePlatform
+ // ConditionalAccessConditionsPLocation is a pointer to ConditionalAccessConditionsVLocation
+ ConditionalAccessConditionsPLocation = &_ConditionalAccessConditionsPLocation
+ // ConditionalAccessConditionsPClientType is a pointer to ConditionalAccessConditionsVClientType
+ ConditionalAccessConditionsPClientType = &_ConditionalAccessConditionsPClientType
+ // ConditionalAccessConditionsPSignInRisk is a pointer to ConditionalAccessConditionsVSignInRisk
+ ConditionalAccessConditionsPSignInRisk = &_ConditionalAccessConditionsPSignInRisk
+ // ConditionalAccessConditionsPUserRisk is a pointer to ConditionalAccessConditionsVUserRisk
+ ConditionalAccessConditionsPUserRisk = &_ConditionalAccessConditionsPUserRisk
+ // ConditionalAccessConditionsPTime is a pointer to ConditionalAccessConditionsVTime
+ ConditionalAccessConditionsPTime = &_ConditionalAccessConditionsPTime
+ // ConditionalAccessConditionsPDeviceState is a pointer to ConditionalAccessConditionsVDeviceState
+ ConditionalAccessConditionsPDeviceState = &_ConditionalAccessConditionsPDeviceState
+ // ConditionalAccessConditionsPClient is a pointer to ConditionalAccessConditionsVClient
+ ConditionalAccessConditionsPClient = &_ConditionalAccessConditionsPClient
+)
+
+var (
+ _ConditionalAccessConditionsPNone = ConditionalAccessConditionsVNone
+ _ConditionalAccessConditionsPApplication = ConditionalAccessConditionsVApplication
+ _ConditionalAccessConditionsPUsers = ConditionalAccessConditionsVUsers
+ _ConditionalAccessConditionsPDevicePlatform = ConditionalAccessConditionsVDevicePlatform
+ _ConditionalAccessConditionsPLocation = ConditionalAccessConditionsVLocation
+ _ConditionalAccessConditionsPClientType = ConditionalAccessConditionsVClientType
+ _ConditionalAccessConditionsPSignInRisk = ConditionalAccessConditionsVSignInRisk
+ _ConditionalAccessConditionsPUserRisk = ConditionalAccessConditionsVUserRisk
+ _ConditionalAccessConditionsPTime = ConditionalAccessConditionsVTime
+ _ConditionalAccessConditionsPDeviceState = ConditionalAccessConditionsVDeviceState
+ _ConditionalAccessConditionsPClient = ConditionalAccessConditionsVClient
+)
+
+// ConditionalAccessDevicePlatform undocumented
+type ConditionalAccessDevicePlatform string
+
+const (
+ // ConditionalAccessDevicePlatformVAndroid undocumented
+ ConditionalAccessDevicePlatformVAndroid ConditionalAccessDevicePlatform = "android"
+ // ConditionalAccessDevicePlatformVIOS undocumented
+ ConditionalAccessDevicePlatformVIOS ConditionalAccessDevicePlatform = "iOS"
+ // ConditionalAccessDevicePlatformVWindows undocumented
+ ConditionalAccessDevicePlatformVWindows ConditionalAccessDevicePlatform = "windows"
+ // ConditionalAccessDevicePlatformVWindowsPhone undocumented
+ ConditionalAccessDevicePlatformVWindowsPhone ConditionalAccessDevicePlatform = "windowsPhone"
+ // ConditionalAccessDevicePlatformVMacOS undocumented
+ ConditionalAccessDevicePlatformVMacOS ConditionalAccessDevicePlatform = "macOS"
+ // ConditionalAccessDevicePlatformVAll undocumented
+ ConditionalAccessDevicePlatformVAll ConditionalAccessDevicePlatform = "all"
+)
+
+var (
+ // ConditionalAccessDevicePlatformPAndroid is a pointer to ConditionalAccessDevicePlatformVAndroid
+ ConditionalAccessDevicePlatformPAndroid = &_ConditionalAccessDevicePlatformPAndroid
+ // ConditionalAccessDevicePlatformPIOS is a pointer to ConditionalAccessDevicePlatformVIOS
+ ConditionalAccessDevicePlatformPIOS = &_ConditionalAccessDevicePlatformPIOS
+ // ConditionalAccessDevicePlatformPWindows is a pointer to ConditionalAccessDevicePlatformVWindows
+ ConditionalAccessDevicePlatformPWindows = &_ConditionalAccessDevicePlatformPWindows
+ // ConditionalAccessDevicePlatformPWindowsPhone is a pointer to ConditionalAccessDevicePlatformVWindowsPhone
+ ConditionalAccessDevicePlatformPWindowsPhone = &_ConditionalAccessDevicePlatformPWindowsPhone
+ // ConditionalAccessDevicePlatformPMacOS is a pointer to ConditionalAccessDevicePlatformVMacOS
+ ConditionalAccessDevicePlatformPMacOS = &_ConditionalAccessDevicePlatformPMacOS
+ // ConditionalAccessDevicePlatformPAll is a pointer to ConditionalAccessDevicePlatformVAll
+ ConditionalAccessDevicePlatformPAll = &_ConditionalAccessDevicePlatformPAll
+)
+
+var (
+ _ConditionalAccessDevicePlatformPAndroid = ConditionalAccessDevicePlatformVAndroid
+ _ConditionalAccessDevicePlatformPIOS = ConditionalAccessDevicePlatformVIOS
+ _ConditionalAccessDevicePlatformPWindows = ConditionalAccessDevicePlatformVWindows
+ _ConditionalAccessDevicePlatformPWindowsPhone = ConditionalAccessDevicePlatformVWindowsPhone
+ _ConditionalAccessDevicePlatformPMacOS = ConditionalAccessDevicePlatformVMacOS
+ _ConditionalAccessDevicePlatformPAll = ConditionalAccessDevicePlatformVAll
+)
+
+// ConditionalAccessGrantControl undocumented
+type ConditionalAccessGrantControl string
+
+const (
+ // ConditionalAccessGrantControlVBlock undocumented
+ ConditionalAccessGrantControlVBlock ConditionalAccessGrantControl = "block"
+ // ConditionalAccessGrantControlVMFA undocumented
+ ConditionalAccessGrantControlVMFA ConditionalAccessGrantControl = "mfa"
+ // ConditionalAccessGrantControlVCompliantDevice undocumented
+ ConditionalAccessGrantControlVCompliantDevice ConditionalAccessGrantControl = "compliantDevice"
+ // ConditionalAccessGrantControlVDomainJoinedDevice undocumented
+ ConditionalAccessGrantControlVDomainJoinedDevice ConditionalAccessGrantControl = "domainJoinedDevice"
+ // ConditionalAccessGrantControlVApprovedApplication undocumented
+ ConditionalAccessGrantControlVApprovedApplication ConditionalAccessGrantControl = "approvedApplication"
+ // ConditionalAccessGrantControlVCompliantApplication undocumented
+ ConditionalAccessGrantControlVCompliantApplication ConditionalAccessGrantControl = "compliantApplication"
+)
+
+var (
+ // ConditionalAccessGrantControlPBlock is a pointer to ConditionalAccessGrantControlVBlock
+ ConditionalAccessGrantControlPBlock = &_ConditionalAccessGrantControlPBlock
+ // ConditionalAccessGrantControlPMFA is a pointer to ConditionalAccessGrantControlVMFA
+ ConditionalAccessGrantControlPMFA = &_ConditionalAccessGrantControlPMFA
+ // ConditionalAccessGrantControlPCompliantDevice is a pointer to ConditionalAccessGrantControlVCompliantDevice
+ ConditionalAccessGrantControlPCompliantDevice = &_ConditionalAccessGrantControlPCompliantDevice
+ // ConditionalAccessGrantControlPDomainJoinedDevice is a pointer to ConditionalAccessGrantControlVDomainJoinedDevice
+ ConditionalAccessGrantControlPDomainJoinedDevice = &_ConditionalAccessGrantControlPDomainJoinedDevice
+ // ConditionalAccessGrantControlPApprovedApplication is a pointer to ConditionalAccessGrantControlVApprovedApplication
+ ConditionalAccessGrantControlPApprovedApplication = &_ConditionalAccessGrantControlPApprovedApplication
+ // ConditionalAccessGrantControlPCompliantApplication is a pointer to ConditionalAccessGrantControlVCompliantApplication
+ ConditionalAccessGrantControlPCompliantApplication = &_ConditionalAccessGrantControlPCompliantApplication
+)
+
+var (
+ _ConditionalAccessGrantControlPBlock = ConditionalAccessGrantControlVBlock
+ _ConditionalAccessGrantControlPMFA = ConditionalAccessGrantControlVMFA
+ _ConditionalAccessGrantControlPCompliantDevice = ConditionalAccessGrantControlVCompliantDevice
+ _ConditionalAccessGrantControlPDomainJoinedDevice = ConditionalAccessGrantControlVDomainJoinedDevice
+ _ConditionalAccessGrantControlPApprovedApplication = ConditionalAccessGrantControlVApprovedApplication
+ _ConditionalAccessGrantControlPCompliantApplication = ConditionalAccessGrantControlVCompliantApplication
+)
+
+// ConditionalAccessPolicyState undocumented
+type ConditionalAccessPolicyState string
+
+const (
+ // ConditionalAccessPolicyStateVEnabled undocumented
+ ConditionalAccessPolicyStateVEnabled ConditionalAccessPolicyState = "enabled"
+ // ConditionalAccessPolicyStateVDisabled undocumented
+ ConditionalAccessPolicyStateVDisabled ConditionalAccessPolicyState = "disabled"
+ // ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced undocumented
+ ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced ConditionalAccessPolicyState = "enabledForReportingButNotEnforced"
+)
+
+var (
+ // ConditionalAccessPolicyStatePEnabled is a pointer to ConditionalAccessPolicyStateVEnabled
+ ConditionalAccessPolicyStatePEnabled = &_ConditionalAccessPolicyStatePEnabled
+ // ConditionalAccessPolicyStatePDisabled is a pointer to ConditionalAccessPolicyStateVDisabled
+ ConditionalAccessPolicyStatePDisabled = &_ConditionalAccessPolicyStatePDisabled
+ // ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced is a pointer to ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced
+ ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced = &_ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced
+)
+
+var (
+ _ConditionalAccessPolicyStatePEnabled = ConditionalAccessPolicyStateVEnabled
+ _ConditionalAccessPolicyStatePDisabled = ConditionalAccessPolicyStateVDisabled
+ _ConditionalAccessPolicyStatePEnabledForReportingButNotEnforced = ConditionalAccessPolicyStateVEnabledForReportingButNotEnforced
+)
+
+// ConditionalAccessStatus undocumented
+type ConditionalAccessStatus string
+
+const (
+ // ConditionalAccessStatusVSuccess undocumented
+ ConditionalAccessStatusVSuccess ConditionalAccessStatus = "success"
+ // ConditionalAccessStatusVFailure undocumented
+ ConditionalAccessStatusVFailure ConditionalAccessStatus = "failure"
+ // ConditionalAccessStatusVNotApplied undocumented
+ ConditionalAccessStatusVNotApplied ConditionalAccessStatus = "notApplied"
+ // ConditionalAccessStatusVUnknownFutureValue undocumented
+ ConditionalAccessStatusVUnknownFutureValue ConditionalAccessStatus = "unknownFutureValue"
+)
+
+var (
+ // ConditionalAccessStatusPSuccess is a pointer to ConditionalAccessStatusVSuccess
+ ConditionalAccessStatusPSuccess = &_ConditionalAccessStatusPSuccess
+ // ConditionalAccessStatusPFailure is a pointer to ConditionalAccessStatusVFailure
+ ConditionalAccessStatusPFailure = &_ConditionalAccessStatusPFailure
+ // ConditionalAccessStatusPNotApplied is a pointer to ConditionalAccessStatusVNotApplied
+ ConditionalAccessStatusPNotApplied = &_ConditionalAccessStatusPNotApplied
+ // ConditionalAccessStatusPUnknownFutureValue is a pointer to ConditionalAccessStatusVUnknownFutureValue
+ ConditionalAccessStatusPUnknownFutureValue = &_ConditionalAccessStatusPUnknownFutureValue
+)
+
+var (
+ _ConditionalAccessStatusPSuccess = ConditionalAccessStatusVSuccess
+ _ConditionalAccessStatusPFailure = ConditionalAccessStatusVFailure
+ _ConditionalAccessStatusPNotApplied = ConditionalAccessStatusVNotApplied
+ _ConditionalAccessStatusPUnknownFutureValue = ConditionalAccessStatusVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumConfiguration.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConfiguration.go
new file mode 100644
index 00000000..65d48f57
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConfiguration.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConfigurationManagerActionType undocumented
+type ConfigurationManagerActionType string
+
+const (
+ // ConfigurationManagerActionTypeVRefreshMachinePolicy undocumented
+ ConfigurationManagerActionTypeVRefreshMachinePolicy ConfigurationManagerActionType = "refreshMachinePolicy"
+ // ConfigurationManagerActionTypeVRefreshUserPolicy undocumented
+ ConfigurationManagerActionTypeVRefreshUserPolicy ConfigurationManagerActionType = "refreshUserPolicy"
+ // ConfigurationManagerActionTypeVWakeUpClient undocumented
+ ConfigurationManagerActionTypeVWakeUpClient ConfigurationManagerActionType = "wakeUpClient"
+ // ConfigurationManagerActionTypeVAppEvaluation undocumented
+ ConfigurationManagerActionTypeVAppEvaluation ConfigurationManagerActionType = "appEvaluation"
+)
+
+var (
+ // ConfigurationManagerActionTypePRefreshMachinePolicy is a pointer to ConfigurationManagerActionTypeVRefreshMachinePolicy
+ ConfigurationManagerActionTypePRefreshMachinePolicy = &_ConfigurationManagerActionTypePRefreshMachinePolicy
+ // ConfigurationManagerActionTypePRefreshUserPolicy is a pointer to ConfigurationManagerActionTypeVRefreshUserPolicy
+ ConfigurationManagerActionTypePRefreshUserPolicy = &_ConfigurationManagerActionTypePRefreshUserPolicy
+ // ConfigurationManagerActionTypePWakeUpClient is a pointer to ConfigurationManagerActionTypeVWakeUpClient
+ ConfigurationManagerActionTypePWakeUpClient = &_ConfigurationManagerActionTypePWakeUpClient
+ // ConfigurationManagerActionTypePAppEvaluation is a pointer to ConfigurationManagerActionTypeVAppEvaluation
+ ConfigurationManagerActionTypePAppEvaluation = &_ConfigurationManagerActionTypePAppEvaluation
+)
+
+var (
+ _ConfigurationManagerActionTypePRefreshMachinePolicy = ConfigurationManagerActionTypeVRefreshMachinePolicy
+ _ConfigurationManagerActionTypePRefreshUserPolicy = ConfigurationManagerActionTypeVRefreshUserPolicy
+ _ConfigurationManagerActionTypePWakeUpClient = ConfigurationManagerActionTypeVWakeUpClient
+ _ConfigurationManagerActionTypePAppEvaluation = ConfigurationManagerActionTypeVAppEvaluation
+)
+
+// ConfigurationManagerClientState undocumented
+type ConfigurationManagerClientState string
+
+const (
+ // ConfigurationManagerClientStateVUnknown undocumented
+ ConfigurationManagerClientStateVUnknown ConfigurationManagerClientState = "unknown"
+ // ConfigurationManagerClientStateVInstalled undocumented
+ ConfigurationManagerClientStateVInstalled ConfigurationManagerClientState = "installed"
+ // ConfigurationManagerClientStateVHealthy undocumented
+ ConfigurationManagerClientStateVHealthy ConfigurationManagerClientState = "healthy"
+ // ConfigurationManagerClientStateVInstallFailed undocumented
+ ConfigurationManagerClientStateVInstallFailed ConfigurationManagerClientState = "installFailed"
+ // ConfigurationManagerClientStateVUpdateFailed undocumented
+ ConfigurationManagerClientStateVUpdateFailed ConfigurationManagerClientState = "updateFailed"
+ // ConfigurationManagerClientStateVCommunicationError undocumented
+ ConfigurationManagerClientStateVCommunicationError ConfigurationManagerClientState = "communicationError"
+)
+
+var (
+ // ConfigurationManagerClientStatePUnknown is a pointer to ConfigurationManagerClientStateVUnknown
+ ConfigurationManagerClientStatePUnknown = &_ConfigurationManagerClientStatePUnknown
+ // ConfigurationManagerClientStatePInstalled is a pointer to ConfigurationManagerClientStateVInstalled
+ ConfigurationManagerClientStatePInstalled = &_ConfigurationManagerClientStatePInstalled
+ // ConfigurationManagerClientStatePHealthy is a pointer to ConfigurationManagerClientStateVHealthy
+ ConfigurationManagerClientStatePHealthy = &_ConfigurationManagerClientStatePHealthy
+ // ConfigurationManagerClientStatePInstallFailed is a pointer to ConfigurationManagerClientStateVInstallFailed
+ ConfigurationManagerClientStatePInstallFailed = &_ConfigurationManagerClientStatePInstallFailed
+ // ConfigurationManagerClientStatePUpdateFailed is a pointer to ConfigurationManagerClientStateVUpdateFailed
+ ConfigurationManagerClientStatePUpdateFailed = &_ConfigurationManagerClientStatePUpdateFailed
+ // ConfigurationManagerClientStatePCommunicationError is a pointer to ConfigurationManagerClientStateVCommunicationError
+ ConfigurationManagerClientStatePCommunicationError = &_ConfigurationManagerClientStatePCommunicationError
+)
+
+var (
+ _ConfigurationManagerClientStatePUnknown = ConfigurationManagerClientStateVUnknown
+ _ConfigurationManagerClientStatePInstalled = ConfigurationManagerClientStateVInstalled
+ _ConfigurationManagerClientStatePHealthy = ConfigurationManagerClientStateVHealthy
+ _ConfigurationManagerClientStatePInstallFailed = ConfigurationManagerClientStateVInstallFailed
+ _ConfigurationManagerClientStatePUpdateFailed = ConfigurationManagerClientStateVUpdateFailed
+ _ConfigurationManagerClientStatePCommunicationError = ConfigurationManagerClientStateVCommunicationError
+)
+
+// ConfigurationUsage undocumented
+type ConfigurationUsage string
+
+const (
+ // ConfigurationUsageVBlocked undocumented
+ ConfigurationUsageVBlocked ConfigurationUsage = "blocked"
+ // ConfigurationUsageVRequired undocumented
+ ConfigurationUsageVRequired ConfigurationUsage = "required"
+ // ConfigurationUsageVAllowed undocumented
+ ConfigurationUsageVAllowed ConfigurationUsage = "allowed"
+)
+
+var (
+ // ConfigurationUsagePBlocked is a pointer to ConfigurationUsageVBlocked
+ ConfigurationUsagePBlocked = &_ConfigurationUsagePBlocked
+ // ConfigurationUsagePRequired is a pointer to ConfigurationUsageVRequired
+ ConfigurationUsagePRequired = &_ConfigurationUsagePRequired
+ // ConfigurationUsagePAllowed is a pointer to ConfigurationUsageVAllowed
+ ConfigurationUsagePAllowed = &_ConfigurationUsagePAllowed
+)
+
+var (
+ _ConfigurationUsagePBlocked = ConfigurationUsageVBlocked
+ _ConfigurationUsagePRequired = ConfigurationUsageVRequired
+ _ConfigurationUsagePAllowed = ConfigurationUsageVAllowed
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumConnection.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConnection.go
new file mode 100644
index 00000000..0c448c90
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConnection.go
@@ -0,0 +1,109 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConnectionDirection undocumented
+type ConnectionDirection string
+
+const (
+ // ConnectionDirectionVUnknown undocumented
+ ConnectionDirectionVUnknown ConnectionDirection = "unknown"
+ // ConnectionDirectionVInbound undocumented
+ ConnectionDirectionVInbound ConnectionDirection = "inbound"
+ // ConnectionDirectionVOutbound undocumented
+ ConnectionDirectionVOutbound ConnectionDirection = "outbound"
+ // ConnectionDirectionVUnknownFutureValue undocumented
+ ConnectionDirectionVUnknownFutureValue ConnectionDirection = "unknownFutureValue"
+)
+
+var (
+ // ConnectionDirectionPUnknown is a pointer to ConnectionDirectionVUnknown
+ ConnectionDirectionPUnknown = &_ConnectionDirectionPUnknown
+ // ConnectionDirectionPInbound is a pointer to ConnectionDirectionVInbound
+ ConnectionDirectionPInbound = &_ConnectionDirectionPInbound
+ // ConnectionDirectionPOutbound is a pointer to ConnectionDirectionVOutbound
+ ConnectionDirectionPOutbound = &_ConnectionDirectionPOutbound
+ // ConnectionDirectionPUnknownFutureValue is a pointer to ConnectionDirectionVUnknownFutureValue
+ ConnectionDirectionPUnknownFutureValue = &_ConnectionDirectionPUnknownFutureValue
+)
+
+var (
+ _ConnectionDirectionPUnknown = ConnectionDirectionVUnknown
+ _ConnectionDirectionPInbound = ConnectionDirectionVInbound
+ _ConnectionDirectionPOutbound = ConnectionDirectionVOutbound
+ _ConnectionDirectionPUnknownFutureValue = ConnectionDirectionVUnknownFutureValue
+)
+
+// ConnectionOperationStatus undocumented
+type ConnectionOperationStatus string
+
+const (
+ // ConnectionOperationStatusVUnspecified undocumented
+ ConnectionOperationStatusVUnspecified ConnectionOperationStatus = "unspecified"
+ // ConnectionOperationStatusVInprogress undocumented
+ ConnectionOperationStatusVInprogress ConnectionOperationStatus = "inprogress"
+ // ConnectionOperationStatusVCompleted undocumented
+ ConnectionOperationStatusVCompleted ConnectionOperationStatus = "completed"
+ // ConnectionOperationStatusVFailed undocumented
+ ConnectionOperationStatusVFailed ConnectionOperationStatus = "failed"
+)
+
+var (
+ // ConnectionOperationStatusPUnspecified is a pointer to ConnectionOperationStatusVUnspecified
+ ConnectionOperationStatusPUnspecified = &_ConnectionOperationStatusPUnspecified
+ // ConnectionOperationStatusPInprogress is a pointer to ConnectionOperationStatusVInprogress
+ ConnectionOperationStatusPInprogress = &_ConnectionOperationStatusPInprogress
+ // ConnectionOperationStatusPCompleted is a pointer to ConnectionOperationStatusVCompleted
+ ConnectionOperationStatusPCompleted = &_ConnectionOperationStatusPCompleted
+ // ConnectionOperationStatusPFailed is a pointer to ConnectionOperationStatusVFailed
+ ConnectionOperationStatusPFailed = &_ConnectionOperationStatusPFailed
+)
+
+var (
+ _ConnectionOperationStatusPUnspecified = ConnectionOperationStatusVUnspecified
+ _ConnectionOperationStatusPInprogress = ConnectionOperationStatusVInprogress
+ _ConnectionOperationStatusPCompleted = ConnectionOperationStatusVCompleted
+ _ConnectionOperationStatusPFailed = ConnectionOperationStatusVFailed
+)
+
+// ConnectionStatus undocumented
+type ConnectionStatus string
+
+const (
+ // ConnectionStatusVUnknown undocumented
+ ConnectionStatusVUnknown ConnectionStatus = "unknown"
+ // ConnectionStatusVAttempted undocumented
+ ConnectionStatusVAttempted ConnectionStatus = "attempted"
+ // ConnectionStatusVSucceeded undocumented
+ ConnectionStatusVSucceeded ConnectionStatus = "succeeded"
+ // ConnectionStatusVBlocked undocumented
+ ConnectionStatusVBlocked ConnectionStatus = "blocked"
+ // ConnectionStatusVFailed undocumented
+ ConnectionStatusVFailed ConnectionStatus = "failed"
+ // ConnectionStatusVUnknownFutureValue undocumented
+ ConnectionStatusVUnknownFutureValue ConnectionStatus = "unknownFutureValue"
+)
+
+var (
+ // ConnectionStatusPUnknown is a pointer to ConnectionStatusVUnknown
+ ConnectionStatusPUnknown = &_ConnectionStatusPUnknown
+ // ConnectionStatusPAttempted is a pointer to ConnectionStatusVAttempted
+ ConnectionStatusPAttempted = &_ConnectionStatusPAttempted
+ // ConnectionStatusPSucceeded is a pointer to ConnectionStatusVSucceeded
+ ConnectionStatusPSucceeded = &_ConnectionStatusPSucceeded
+ // ConnectionStatusPBlocked is a pointer to ConnectionStatusVBlocked
+ ConnectionStatusPBlocked = &_ConnectionStatusPBlocked
+ // ConnectionStatusPFailed is a pointer to ConnectionStatusVFailed
+ ConnectionStatusPFailed = &_ConnectionStatusPFailed
+ // ConnectionStatusPUnknownFutureValue is a pointer to ConnectionStatusVUnknownFutureValue
+ ConnectionStatusPUnknownFutureValue = &_ConnectionStatusPUnknownFutureValue
+)
+
+var (
+ _ConnectionStatusPUnknown = ConnectionStatusVUnknown
+ _ConnectionStatusPAttempted = ConnectionStatusVAttempted
+ _ConnectionStatusPSucceeded = ConnectionStatusVSucceeded
+ _ConnectionStatusPBlocked = ConnectionStatusVBlocked
+ _ConnectionStatusPFailed = ConnectionStatusVFailed
+ _ConnectionStatusPUnknownFutureValue = ConnectionStatusVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumContact.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumContact.go
new file mode 100644
index 00000000..025099eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumContact.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContactRelationship undocumented
+type ContactRelationship string
+
+const (
+ // ContactRelationshipVParent undocumented
+ ContactRelationshipVParent ContactRelationship = "parent"
+ // ContactRelationshipVRelative undocumented
+ ContactRelationshipVRelative ContactRelationship = "relative"
+ // ContactRelationshipVAide undocumented
+ ContactRelationshipVAide ContactRelationship = "aide"
+ // ContactRelationshipVDoctor undocumented
+ ContactRelationshipVDoctor ContactRelationship = "doctor"
+ // ContactRelationshipVGuardian undocumented
+ ContactRelationshipVGuardian ContactRelationship = "guardian"
+ // ContactRelationshipVChild undocumented
+ ContactRelationshipVChild ContactRelationship = "child"
+ // ContactRelationshipVOther undocumented
+ ContactRelationshipVOther ContactRelationship = "other"
+ // ContactRelationshipVUnknownFutureValue undocumented
+ ContactRelationshipVUnknownFutureValue ContactRelationship = "unknownFutureValue"
+)
+
+var (
+ // ContactRelationshipPParent is a pointer to ContactRelationshipVParent
+ ContactRelationshipPParent = &_ContactRelationshipPParent
+ // ContactRelationshipPRelative is a pointer to ContactRelationshipVRelative
+ ContactRelationshipPRelative = &_ContactRelationshipPRelative
+ // ContactRelationshipPAide is a pointer to ContactRelationshipVAide
+ ContactRelationshipPAide = &_ContactRelationshipPAide
+ // ContactRelationshipPDoctor is a pointer to ContactRelationshipVDoctor
+ ContactRelationshipPDoctor = &_ContactRelationshipPDoctor
+ // ContactRelationshipPGuardian is a pointer to ContactRelationshipVGuardian
+ ContactRelationshipPGuardian = &_ContactRelationshipPGuardian
+ // ContactRelationshipPChild is a pointer to ContactRelationshipVChild
+ ContactRelationshipPChild = &_ContactRelationshipPChild
+ // ContactRelationshipPOther is a pointer to ContactRelationshipVOther
+ ContactRelationshipPOther = &_ContactRelationshipPOther
+ // ContactRelationshipPUnknownFutureValue is a pointer to ContactRelationshipVUnknownFutureValue
+ ContactRelationshipPUnknownFutureValue = &_ContactRelationshipPUnknownFutureValue
+)
+
+var (
+ _ContactRelationshipPParent = ContactRelationshipVParent
+ _ContactRelationshipPRelative = ContactRelationshipVRelative
+ _ContactRelationshipPAide = ContactRelationshipVAide
+ _ContactRelationshipPDoctor = ContactRelationshipVDoctor
+ _ContactRelationshipPGuardian = ContactRelationshipVGuardian
+ _ContactRelationshipPChild = ContactRelationshipVChild
+ _ContactRelationshipPOther = ContactRelationshipVOther
+ _ContactRelationshipPUnknownFutureValue = ContactRelationshipVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumContent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumContent.go
new file mode 100644
index 00000000..246edcc3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumContent.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ContentAlignment undocumented
+type ContentAlignment string
+
+const (
+ // ContentAlignmentVLeft undocumented
+ ContentAlignmentVLeft ContentAlignment = "left"
+ // ContentAlignmentVRight undocumented
+ ContentAlignmentVRight ContentAlignment = "right"
+ // ContentAlignmentVCenter undocumented
+ ContentAlignmentVCenter ContentAlignment = "center"
+)
+
+var (
+ // ContentAlignmentPLeft is a pointer to ContentAlignmentVLeft
+ ContentAlignmentPLeft = &_ContentAlignmentPLeft
+ // ContentAlignmentPRight is a pointer to ContentAlignmentVRight
+ ContentAlignmentPRight = &_ContentAlignmentPRight
+ // ContentAlignmentPCenter is a pointer to ContentAlignmentVCenter
+ ContentAlignmentPCenter = &_ContentAlignmentPCenter
+)
+
+var (
+ _ContentAlignmentPLeft = ContentAlignmentVLeft
+ _ContentAlignmentPRight = ContentAlignmentVRight
+ _ContentAlignmentPCenter = ContentAlignmentVCenter
+)
+
+// ContentFormat undocumented
+type ContentFormat string
+
+const (
+ // ContentFormatVDefault undocumented
+ ContentFormatVDefault ContentFormat = "default"
+ // ContentFormatVEmail undocumented
+ ContentFormatVEmail ContentFormat = "email"
+)
+
+var (
+ // ContentFormatPDefault is a pointer to ContentFormatVDefault
+ ContentFormatPDefault = &_ContentFormatPDefault
+ // ContentFormatPEmail is a pointer to ContentFormatVEmail
+ ContentFormatPEmail = &_ContentFormatPEmail
+)
+
+var (
+ _ContentFormatPDefault = ContentFormatVDefault
+ _ContentFormatPEmail = ContentFormatVEmail
+)
+
+// ContentState undocumented
+type ContentState string
+
+const (
+ // ContentStateVRest undocumented
+ ContentStateVRest ContentState = "rest"
+ // ContentStateVMotion undocumented
+ ContentStateVMotion ContentState = "motion"
+ // ContentStateVUse undocumented
+ ContentStateVUse ContentState = "use"
+)
+
+var (
+ // ContentStatePRest is a pointer to ContentStateVRest
+ ContentStatePRest = &_ContentStatePRest
+ // ContentStatePMotion is a pointer to ContentStateVMotion
+ ContentStatePMotion = &_ContentStatePMotion
+ // ContentStatePUse is a pointer to ContentStateVUse
+ ContentStatePUse = &_ContentStatePUse
+)
+
+var (
+ _ContentStatePRest = ContentStateVRest
+ _ContentStatePMotion = ContentStateVMotion
+ _ContentStatePUse = ContentStateVUse
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumConversation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConversation.go
new file mode 100644
index 00000000..5e7dd1a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumConversation.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConversationIdentityType undocumented
+type ConversationIdentityType string
+
+const (
+ // ConversationIdentityTypeVTeam undocumented
+ ConversationIdentityTypeVTeam ConversationIdentityType = "team"
+ // ConversationIdentityTypeVChannel undocumented
+ ConversationIdentityTypeVChannel ConversationIdentityType = "channel"
+)
+
+var (
+ // ConversationIdentityTypePTeam is a pointer to ConversationIdentityTypeVTeam
+ ConversationIdentityTypePTeam = &_ConversationIdentityTypePTeam
+ // ConversationIdentityTypePChannel is a pointer to ConversationIdentityTypeVChannel
+ ConversationIdentityTypePChannel = &_ConversationIdentityTypePChannel
+)
+
+var (
+ _ConversationIdentityTypePTeam = ConversationIdentityTypeVTeam
+ _ConversationIdentityTypePChannel = ConversationIdentityTypeVChannel
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDMA.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDMA.go
new file mode 100644
index 00000000..b9916bf4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDMA.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DMAGuardDeviceEnumerationPolicyType undocumented
+type DMAGuardDeviceEnumerationPolicyType string
+
+const (
+ // DMAGuardDeviceEnumerationPolicyTypeVDeviceDefault undocumented
+ DMAGuardDeviceEnumerationPolicyTypeVDeviceDefault DMAGuardDeviceEnumerationPolicyType = "deviceDefault"
+ // DMAGuardDeviceEnumerationPolicyTypeVBlockAll undocumented
+ DMAGuardDeviceEnumerationPolicyTypeVBlockAll DMAGuardDeviceEnumerationPolicyType = "blockAll"
+ // DMAGuardDeviceEnumerationPolicyTypeVAllowAll undocumented
+ DMAGuardDeviceEnumerationPolicyTypeVAllowAll DMAGuardDeviceEnumerationPolicyType = "allowAll"
+)
+
+var (
+ // DMAGuardDeviceEnumerationPolicyTypePDeviceDefault is a pointer to DMAGuardDeviceEnumerationPolicyTypeVDeviceDefault
+ DMAGuardDeviceEnumerationPolicyTypePDeviceDefault = &_DMAGuardDeviceEnumerationPolicyTypePDeviceDefault
+ // DMAGuardDeviceEnumerationPolicyTypePBlockAll is a pointer to DMAGuardDeviceEnumerationPolicyTypeVBlockAll
+ DMAGuardDeviceEnumerationPolicyTypePBlockAll = &_DMAGuardDeviceEnumerationPolicyTypePBlockAll
+ // DMAGuardDeviceEnumerationPolicyTypePAllowAll is a pointer to DMAGuardDeviceEnumerationPolicyTypeVAllowAll
+ DMAGuardDeviceEnumerationPolicyTypePAllowAll = &_DMAGuardDeviceEnumerationPolicyTypePAllowAll
+)
+
+var (
+ _DMAGuardDeviceEnumerationPolicyTypePDeviceDefault = DMAGuardDeviceEnumerationPolicyTypeVDeviceDefault
+ _DMAGuardDeviceEnumerationPolicyTypePBlockAll = DMAGuardDeviceEnumerationPolicyTypeVBlockAll
+ _DMAGuardDeviceEnumerationPolicyTypePAllowAll = DMAGuardDeviceEnumerationPolicyTypeVAllowAll
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumData.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumData.go
new file mode 100644
index 00000000..cd1639ff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumData.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DataPolicyOperationStatus undocumented
+type DataPolicyOperationStatus string
+
+const (
+ // DataPolicyOperationStatusVNotStarted undocumented
+ DataPolicyOperationStatusVNotStarted DataPolicyOperationStatus = "notStarted"
+ // DataPolicyOperationStatusVRunning undocumented
+ DataPolicyOperationStatusVRunning DataPolicyOperationStatus = "running"
+ // DataPolicyOperationStatusVComplete undocumented
+ DataPolicyOperationStatusVComplete DataPolicyOperationStatus = "complete"
+ // DataPolicyOperationStatusVFailed undocumented
+ DataPolicyOperationStatusVFailed DataPolicyOperationStatus = "failed"
+ // DataPolicyOperationStatusVUnknownFutureValue undocumented
+ DataPolicyOperationStatusVUnknownFutureValue DataPolicyOperationStatus = "unknownFutureValue"
+)
+
+var (
+ // DataPolicyOperationStatusPNotStarted is a pointer to DataPolicyOperationStatusVNotStarted
+ DataPolicyOperationStatusPNotStarted = &_DataPolicyOperationStatusPNotStarted
+ // DataPolicyOperationStatusPRunning is a pointer to DataPolicyOperationStatusVRunning
+ DataPolicyOperationStatusPRunning = &_DataPolicyOperationStatusPRunning
+ // DataPolicyOperationStatusPComplete is a pointer to DataPolicyOperationStatusVComplete
+ DataPolicyOperationStatusPComplete = &_DataPolicyOperationStatusPComplete
+ // DataPolicyOperationStatusPFailed is a pointer to DataPolicyOperationStatusVFailed
+ DataPolicyOperationStatusPFailed = &_DataPolicyOperationStatusPFailed
+ // DataPolicyOperationStatusPUnknownFutureValue is a pointer to DataPolicyOperationStatusVUnknownFutureValue
+ DataPolicyOperationStatusPUnknownFutureValue = &_DataPolicyOperationStatusPUnknownFutureValue
+)
+
+var (
+ _DataPolicyOperationStatusPNotStarted = DataPolicyOperationStatusVNotStarted
+ _DataPolicyOperationStatusPRunning = DataPolicyOperationStatusVRunning
+ _DataPolicyOperationStatusPComplete = DataPolicyOperationStatusVComplete
+ _DataPolicyOperationStatusPFailed = DataPolicyOperationStatusVFailed
+ _DataPolicyOperationStatusPUnknownFutureValue = DataPolicyOperationStatusVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDay.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDay.go
new file mode 100644
index 00000000..1ba48eaf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDay.go
@@ -0,0 +1,50 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DayOfWeek undocumented
+type DayOfWeek string
+
+const (
+ // DayOfWeekVSunday undocumented
+ DayOfWeekVSunday DayOfWeek = "sunday"
+ // DayOfWeekVMonday undocumented
+ DayOfWeekVMonday DayOfWeek = "monday"
+ // DayOfWeekVTuesday undocumented
+ DayOfWeekVTuesday DayOfWeek = "tuesday"
+ // DayOfWeekVWednesday undocumented
+ DayOfWeekVWednesday DayOfWeek = "wednesday"
+ // DayOfWeekVThursday undocumented
+ DayOfWeekVThursday DayOfWeek = "thursday"
+ // DayOfWeekVFriday undocumented
+ DayOfWeekVFriday DayOfWeek = "friday"
+ // DayOfWeekVSaturday undocumented
+ DayOfWeekVSaturday DayOfWeek = "saturday"
+)
+
+var (
+ // DayOfWeekPSunday is a pointer to DayOfWeekVSunday
+ DayOfWeekPSunday = &_DayOfWeekPSunday
+ // DayOfWeekPMonday is a pointer to DayOfWeekVMonday
+ DayOfWeekPMonday = &_DayOfWeekPMonday
+ // DayOfWeekPTuesday is a pointer to DayOfWeekVTuesday
+ DayOfWeekPTuesday = &_DayOfWeekPTuesday
+ // DayOfWeekPWednesday is a pointer to DayOfWeekVWednesday
+ DayOfWeekPWednesday = &_DayOfWeekPWednesday
+ // DayOfWeekPThursday is a pointer to DayOfWeekVThursday
+ DayOfWeekPThursday = &_DayOfWeekPThursday
+ // DayOfWeekPFriday is a pointer to DayOfWeekVFriday
+ DayOfWeekPFriday = &_DayOfWeekPFriday
+ // DayOfWeekPSaturday is a pointer to DayOfWeekVSaturday
+ DayOfWeekPSaturday = &_DayOfWeekPSaturday
+)
+
+var (
+ _DayOfWeekPSunday = DayOfWeekVSunday
+ _DayOfWeekPMonday = DayOfWeekVMonday
+ _DayOfWeekPTuesday = DayOfWeekVTuesday
+ _DayOfWeekPWednesday = DayOfWeekVWednesday
+ _DayOfWeekPThursday = DayOfWeekVThursday
+ _DayOfWeekPFriday = DayOfWeekVFriday
+ _DayOfWeekPSaturday = DayOfWeekVSaturday
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDefender.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDefender.go
new file mode 100644
index 00000000..1fc3d291
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDefender.go
@@ -0,0 +1,360 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderAttackSurfaceType undocumented
+type DefenderAttackSurfaceType string
+
+const (
+ // DefenderAttackSurfaceTypeVUserDefined undocumented
+ DefenderAttackSurfaceTypeVUserDefined DefenderAttackSurfaceType = "userDefined"
+ // DefenderAttackSurfaceTypeVBlock undocumented
+ DefenderAttackSurfaceTypeVBlock DefenderAttackSurfaceType = "block"
+ // DefenderAttackSurfaceTypeVAuditMode undocumented
+ DefenderAttackSurfaceTypeVAuditMode DefenderAttackSurfaceType = "auditMode"
+)
+
+var (
+ // DefenderAttackSurfaceTypePUserDefined is a pointer to DefenderAttackSurfaceTypeVUserDefined
+ DefenderAttackSurfaceTypePUserDefined = &_DefenderAttackSurfaceTypePUserDefined
+ // DefenderAttackSurfaceTypePBlock is a pointer to DefenderAttackSurfaceTypeVBlock
+ DefenderAttackSurfaceTypePBlock = &_DefenderAttackSurfaceTypePBlock
+ // DefenderAttackSurfaceTypePAuditMode is a pointer to DefenderAttackSurfaceTypeVAuditMode
+ DefenderAttackSurfaceTypePAuditMode = &_DefenderAttackSurfaceTypePAuditMode
+)
+
+var (
+ _DefenderAttackSurfaceTypePUserDefined = DefenderAttackSurfaceTypeVUserDefined
+ _DefenderAttackSurfaceTypePBlock = DefenderAttackSurfaceTypeVBlock
+ _DefenderAttackSurfaceTypePAuditMode = DefenderAttackSurfaceTypeVAuditMode
+)
+
+// DefenderCloudBlockLevelType undocumented
+type DefenderCloudBlockLevelType string
+
+const (
+ // DefenderCloudBlockLevelTypeVNotConfigured undocumented
+ DefenderCloudBlockLevelTypeVNotConfigured DefenderCloudBlockLevelType = "notConfigured"
+ // DefenderCloudBlockLevelTypeVHigh undocumented
+ DefenderCloudBlockLevelTypeVHigh DefenderCloudBlockLevelType = "high"
+ // DefenderCloudBlockLevelTypeVHighPlus undocumented
+ DefenderCloudBlockLevelTypeVHighPlus DefenderCloudBlockLevelType = "highPlus"
+ // DefenderCloudBlockLevelTypeVZeroTolerance undocumented
+ DefenderCloudBlockLevelTypeVZeroTolerance DefenderCloudBlockLevelType = "zeroTolerance"
+)
+
+var (
+ // DefenderCloudBlockLevelTypePNotConfigured is a pointer to DefenderCloudBlockLevelTypeVNotConfigured
+ DefenderCloudBlockLevelTypePNotConfigured = &_DefenderCloudBlockLevelTypePNotConfigured
+ // DefenderCloudBlockLevelTypePHigh is a pointer to DefenderCloudBlockLevelTypeVHigh
+ DefenderCloudBlockLevelTypePHigh = &_DefenderCloudBlockLevelTypePHigh
+ // DefenderCloudBlockLevelTypePHighPlus is a pointer to DefenderCloudBlockLevelTypeVHighPlus
+ DefenderCloudBlockLevelTypePHighPlus = &_DefenderCloudBlockLevelTypePHighPlus
+ // DefenderCloudBlockLevelTypePZeroTolerance is a pointer to DefenderCloudBlockLevelTypeVZeroTolerance
+ DefenderCloudBlockLevelTypePZeroTolerance = &_DefenderCloudBlockLevelTypePZeroTolerance
+)
+
+var (
+ _DefenderCloudBlockLevelTypePNotConfigured = DefenderCloudBlockLevelTypeVNotConfigured
+ _DefenderCloudBlockLevelTypePHigh = DefenderCloudBlockLevelTypeVHigh
+ _DefenderCloudBlockLevelTypePHighPlus = DefenderCloudBlockLevelTypeVHighPlus
+ _DefenderCloudBlockLevelTypePZeroTolerance = DefenderCloudBlockLevelTypeVZeroTolerance
+)
+
+// DefenderMonitorFileActivity undocumented
+type DefenderMonitorFileActivity string
+
+const (
+ // DefenderMonitorFileActivityVUserDefined undocumented
+ DefenderMonitorFileActivityVUserDefined DefenderMonitorFileActivity = "userDefined"
+ // DefenderMonitorFileActivityVDisable undocumented
+ DefenderMonitorFileActivityVDisable DefenderMonitorFileActivity = "disable"
+ // DefenderMonitorFileActivityVMonitorAllFiles undocumented
+ DefenderMonitorFileActivityVMonitorAllFiles DefenderMonitorFileActivity = "monitorAllFiles"
+ // DefenderMonitorFileActivityVMonitorIncomingFilesOnly undocumented
+ DefenderMonitorFileActivityVMonitorIncomingFilesOnly DefenderMonitorFileActivity = "monitorIncomingFilesOnly"
+ // DefenderMonitorFileActivityVMonitorOutgoingFilesOnly undocumented
+ DefenderMonitorFileActivityVMonitorOutgoingFilesOnly DefenderMonitorFileActivity = "monitorOutgoingFilesOnly"
+)
+
+var (
+ // DefenderMonitorFileActivityPUserDefined is a pointer to DefenderMonitorFileActivityVUserDefined
+ DefenderMonitorFileActivityPUserDefined = &_DefenderMonitorFileActivityPUserDefined
+ // DefenderMonitorFileActivityPDisable is a pointer to DefenderMonitorFileActivityVDisable
+ DefenderMonitorFileActivityPDisable = &_DefenderMonitorFileActivityPDisable
+ // DefenderMonitorFileActivityPMonitorAllFiles is a pointer to DefenderMonitorFileActivityVMonitorAllFiles
+ DefenderMonitorFileActivityPMonitorAllFiles = &_DefenderMonitorFileActivityPMonitorAllFiles
+ // DefenderMonitorFileActivityPMonitorIncomingFilesOnly is a pointer to DefenderMonitorFileActivityVMonitorIncomingFilesOnly
+ DefenderMonitorFileActivityPMonitorIncomingFilesOnly = &_DefenderMonitorFileActivityPMonitorIncomingFilesOnly
+ // DefenderMonitorFileActivityPMonitorOutgoingFilesOnly is a pointer to DefenderMonitorFileActivityVMonitorOutgoingFilesOnly
+ DefenderMonitorFileActivityPMonitorOutgoingFilesOnly = &_DefenderMonitorFileActivityPMonitorOutgoingFilesOnly
+)
+
+var (
+ _DefenderMonitorFileActivityPUserDefined = DefenderMonitorFileActivityVUserDefined
+ _DefenderMonitorFileActivityPDisable = DefenderMonitorFileActivityVDisable
+ _DefenderMonitorFileActivityPMonitorAllFiles = DefenderMonitorFileActivityVMonitorAllFiles
+ _DefenderMonitorFileActivityPMonitorIncomingFilesOnly = DefenderMonitorFileActivityVMonitorIncomingFilesOnly
+ _DefenderMonitorFileActivityPMonitorOutgoingFilesOnly = DefenderMonitorFileActivityVMonitorOutgoingFilesOnly
+)
+
+// DefenderPotentiallyUnwantedAppAction undocumented
+type DefenderPotentiallyUnwantedAppAction string
+
+const (
+ // DefenderPotentiallyUnwantedAppActionVDeviceDefault undocumented
+ DefenderPotentiallyUnwantedAppActionVDeviceDefault DefenderPotentiallyUnwantedAppAction = "deviceDefault"
+ // DefenderPotentiallyUnwantedAppActionVBlock undocumented
+ DefenderPotentiallyUnwantedAppActionVBlock DefenderPotentiallyUnwantedAppAction = "block"
+ // DefenderPotentiallyUnwantedAppActionVAudit undocumented
+ DefenderPotentiallyUnwantedAppActionVAudit DefenderPotentiallyUnwantedAppAction = "audit"
+)
+
+var (
+ // DefenderPotentiallyUnwantedAppActionPDeviceDefault is a pointer to DefenderPotentiallyUnwantedAppActionVDeviceDefault
+ DefenderPotentiallyUnwantedAppActionPDeviceDefault = &_DefenderPotentiallyUnwantedAppActionPDeviceDefault
+ // DefenderPotentiallyUnwantedAppActionPBlock is a pointer to DefenderPotentiallyUnwantedAppActionVBlock
+ DefenderPotentiallyUnwantedAppActionPBlock = &_DefenderPotentiallyUnwantedAppActionPBlock
+ // DefenderPotentiallyUnwantedAppActionPAudit is a pointer to DefenderPotentiallyUnwantedAppActionVAudit
+ DefenderPotentiallyUnwantedAppActionPAudit = &_DefenderPotentiallyUnwantedAppActionPAudit
+)
+
+var (
+ _DefenderPotentiallyUnwantedAppActionPDeviceDefault = DefenderPotentiallyUnwantedAppActionVDeviceDefault
+ _DefenderPotentiallyUnwantedAppActionPBlock = DefenderPotentiallyUnwantedAppActionVBlock
+ _DefenderPotentiallyUnwantedAppActionPAudit = DefenderPotentiallyUnwantedAppActionVAudit
+)
+
+// DefenderPromptForSampleSubmission undocumented
+type DefenderPromptForSampleSubmission string
+
+const (
+ // DefenderPromptForSampleSubmissionVUserDefined undocumented
+ DefenderPromptForSampleSubmissionVUserDefined DefenderPromptForSampleSubmission = "userDefined"
+ // DefenderPromptForSampleSubmissionVAlwaysPrompt undocumented
+ DefenderPromptForSampleSubmissionVAlwaysPrompt DefenderPromptForSampleSubmission = "alwaysPrompt"
+ // DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData undocumented
+ DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData DefenderPromptForSampleSubmission = "promptBeforeSendingPersonalData"
+ // DefenderPromptForSampleSubmissionVNeverSendData undocumented
+ DefenderPromptForSampleSubmissionVNeverSendData DefenderPromptForSampleSubmission = "neverSendData"
+ // DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting undocumented
+ DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting DefenderPromptForSampleSubmission = "sendAllDataWithoutPrompting"
+)
+
+var (
+ // DefenderPromptForSampleSubmissionPUserDefined is a pointer to DefenderPromptForSampleSubmissionVUserDefined
+ DefenderPromptForSampleSubmissionPUserDefined = &_DefenderPromptForSampleSubmissionPUserDefined
+ // DefenderPromptForSampleSubmissionPAlwaysPrompt is a pointer to DefenderPromptForSampleSubmissionVAlwaysPrompt
+ DefenderPromptForSampleSubmissionPAlwaysPrompt = &_DefenderPromptForSampleSubmissionPAlwaysPrompt
+ // DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData is a pointer to DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData
+ DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData = &_DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData
+ // DefenderPromptForSampleSubmissionPNeverSendData is a pointer to DefenderPromptForSampleSubmissionVNeverSendData
+ DefenderPromptForSampleSubmissionPNeverSendData = &_DefenderPromptForSampleSubmissionPNeverSendData
+ // DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting is a pointer to DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting
+ DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting = &_DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting
+)
+
+var (
+ _DefenderPromptForSampleSubmissionPUserDefined = DefenderPromptForSampleSubmissionVUserDefined
+ _DefenderPromptForSampleSubmissionPAlwaysPrompt = DefenderPromptForSampleSubmissionVAlwaysPrompt
+ _DefenderPromptForSampleSubmissionPPromptBeforeSendingPersonalData = DefenderPromptForSampleSubmissionVPromptBeforeSendingPersonalData
+ _DefenderPromptForSampleSubmissionPNeverSendData = DefenderPromptForSampleSubmissionVNeverSendData
+ _DefenderPromptForSampleSubmissionPSendAllDataWithoutPrompting = DefenderPromptForSampleSubmissionVSendAllDataWithoutPrompting
+)
+
+// DefenderProtectionType undocumented
+type DefenderProtectionType string
+
+const (
+ // DefenderProtectionTypeVUserDefined undocumented
+ DefenderProtectionTypeVUserDefined DefenderProtectionType = "userDefined"
+ // DefenderProtectionTypeVEnable undocumented
+ DefenderProtectionTypeVEnable DefenderProtectionType = "enable"
+ // DefenderProtectionTypeVAuditMode undocumented
+ DefenderProtectionTypeVAuditMode DefenderProtectionType = "auditMode"
+)
+
+var (
+ // DefenderProtectionTypePUserDefined is a pointer to DefenderProtectionTypeVUserDefined
+ DefenderProtectionTypePUserDefined = &_DefenderProtectionTypePUserDefined
+ // DefenderProtectionTypePEnable is a pointer to DefenderProtectionTypeVEnable
+ DefenderProtectionTypePEnable = &_DefenderProtectionTypePEnable
+ // DefenderProtectionTypePAuditMode is a pointer to DefenderProtectionTypeVAuditMode
+ DefenderProtectionTypePAuditMode = &_DefenderProtectionTypePAuditMode
+)
+
+var (
+ _DefenderProtectionTypePUserDefined = DefenderProtectionTypeVUserDefined
+ _DefenderProtectionTypePEnable = DefenderProtectionTypeVEnable
+ _DefenderProtectionTypePAuditMode = DefenderProtectionTypeVAuditMode
+)
+
+// DefenderScanType undocumented
+type DefenderScanType string
+
+const (
+ // DefenderScanTypeVUserDefined undocumented
+ DefenderScanTypeVUserDefined DefenderScanType = "userDefined"
+ // DefenderScanTypeVDisabled undocumented
+ DefenderScanTypeVDisabled DefenderScanType = "disabled"
+ // DefenderScanTypeVQuick undocumented
+ DefenderScanTypeVQuick DefenderScanType = "quick"
+ // DefenderScanTypeVFull undocumented
+ DefenderScanTypeVFull DefenderScanType = "full"
+)
+
+var (
+ // DefenderScanTypePUserDefined is a pointer to DefenderScanTypeVUserDefined
+ DefenderScanTypePUserDefined = &_DefenderScanTypePUserDefined
+ // DefenderScanTypePDisabled is a pointer to DefenderScanTypeVDisabled
+ DefenderScanTypePDisabled = &_DefenderScanTypePDisabled
+ // DefenderScanTypePQuick is a pointer to DefenderScanTypeVQuick
+ DefenderScanTypePQuick = &_DefenderScanTypePQuick
+ // DefenderScanTypePFull is a pointer to DefenderScanTypeVFull
+ DefenderScanTypePFull = &_DefenderScanTypePFull
+)
+
+var (
+ _DefenderScanTypePUserDefined = DefenderScanTypeVUserDefined
+ _DefenderScanTypePDisabled = DefenderScanTypeVDisabled
+ _DefenderScanTypePQuick = DefenderScanTypeVQuick
+ _DefenderScanTypePFull = DefenderScanTypeVFull
+)
+
+// DefenderSecurityCenterITContactDisplayType undocumented
+type DefenderSecurityCenterITContactDisplayType string
+
+const (
+ // DefenderSecurityCenterITContactDisplayTypeVNotConfigured undocumented
+ DefenderSecurityCenterITContactDisplayTypeVNotConfigured DefenderSecurityCenterITContactDisplayType = "notConfigured"
+ // DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications undocumented
+ DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications DefenderSecurityCenterITContactDisplayType = "displayInAppAndInNotifications"
+ // DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp undocumented
+ DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp DefenderSecurityCenterITContactDisplayType = "displayOnlyInApp"
+ // DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications undocumented
+ DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications DefenderSecurityCenterITContactDisplayType = "displayOnlyInNotifications"
+)
+
+var (
+ // DefenderSecurityCenterITContactDisplayTypePNotConfigured is a pointer to DefenderSecurityCenterITContactDisplayTypeVNotConfigured
+ DefenderSecurityCenterITContactDisplayTypePNotConfigured = &_DefenderSecurityCenterITContactDisplayTypePNotConfigured
+ // DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications is a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications
+ DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications = &_DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications
+ // DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp is a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp
+ DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp = &_DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp
+ // DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications is a pointer to DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications
+ DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications = &_DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications
+)
+
+var (
+ _DefenderSecurityCenterITContactDisplayTypePNotConfigured = DefenderSecurityCenterITContactDisplayTypeVNotConfigured
+ _DefenderSecurityCenterITContactDisplayTypePDisplayInAppAndInNotifications = DefenderSecurityCenterITContactDisplayTypeVDisplayInAppAndInNotifications
+ _DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInApp = DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInApp
+ _DefenderSecurityCenterITContactDisplayTypePDisplayOnlyInNotifications = DefenderSecurityCenterITContactDisplayTypeVDisplayOnlyInNotifications
+)
+
+// DefenderSecurityCenterNotificationsFromAppType undocumented
+type DefenderSecurityCenterNotificationsFromAppType string
+
+const (
+ // DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured undocumented
+ DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured DefenderSecurityCenterNotificationsFromAppType = "notConfigured"
+ // DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications undocumented
+ DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications DefenderSecurityCenterNotificationsFromAppType = "blockNoncriticalNotifications"
+ // DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications undocumented
+ DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications DefenderSecurityCenterNotificationsFromAppType = "blockAllNotifications"
+)
+
+var (
+ // DefenderSecurityCenterNotificationsFromAppTypePNotConfigured is a pointer to DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured
+ DefenderSecurityCenterNotificationsFromAppTypePNotConfigured = &_DefenderSecurityCenterNotificationsFromAppTypePNotConfigured
+ // DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications is a pointer to DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications
+ DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications = &_DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications
+ // DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications is a pointer to DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications
+ DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications = &_DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications
+)
+
+var (
+ _DefenderSecurityCenterNotificationsFromAppTypePNotConfigured = DefenderSecurityCenterNotificationsFromAppTypeVNotConfigured
+ _DefenderSecurityCenterNotificationsFromAppTypePBlockNoncriticalNotifications = DefenderSecurityCenterNotificationsFromAppTypeVBlockNoncriticalNotifications
+ _DefenderSecurityCenterNotificationsFromAppTypePBlockAllNotifications = DefenderSecurityCenterNotificationsFromAppTypeVBlockAllNotifications
+)
+
+// DefenderSubmitSamplesConsentType undocumented
+type DefenderSubmitSamplesConsentType string
+
+const (
+ // DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically undocumented
+ DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically DefenderSubmitSamplesConsentType = "sendSafeSamplesAutomatically"
+ // DefenderSubmitSamplesConsentTypeVAlwaysPrompt undocumented
+ DefenderSubmitSamplesConsentTypeVAlwaysPrompt DefenderSubmitSamplesConsentType = "alwaysPrompt"
+ // DefenderSubmitSamplesConsentTypeVNeverSend undocumented
+ DefenderSubmitSamplesConsentTypeVNeverSend DefenderSubmitSamplesConsentType = "neverSend"
+ // DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically undocumented
+ DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically DefenderSubmitSamplesConsentType = "sendAllSamplesAutomatically"
+)
+
+var (
+ // DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically is a pointer to DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically
+ DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically = &_DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically
+ // DefenderSubmitSamplesConsentTypePAlwaysPrompt is a pointer to DefenderSubmitSamplesConsentTypeVAlwaysPrompt
+ DefenderSubmitSamplesConsentTypePAlwaysPrompt = &_DefenderSubmitSamplesConsentTypePAlwaysPrompt
+ // DefenderSubmitSamplesConsentTypePNeverSend is a pointer to DefenderSubmitSamplesConsentTypeVNeverSend
+ DefenderSubmitSamplesConsentTypePNeverSend = &_DefenderSubmitSamplesConsentTypePNeverSend
+ // DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically is a pointer to DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically
+ DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically = &_DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically
+)
+
+var (
+ _DefenderSubmitSamplesConsentTypePSendSafeSamplesAutomatically = DefenderSubmitSamplesConsentTypeVSendSafeSamplesAutomatically
+ _DefenderSubmitSamplesConsentTypePAlwaysPrompt = DefenderSubmitSamplesConsentTypeVAlwaysPrompt
+ _DefenderSubmitSamplesConsentTypePNeverSend = DefenderSubmitSamplesConsentTypeVNeverSend
+ _DefenderSubmitSamplesConsentTypePSendAllSamplesAutomatically = DefenderSubmitSamplesConsentTypeVSendAllSamplesAutomatically
+)
+
+// DefenderThreatAction undocumented
+type DefenderThreatAction string
+
+const (
+ // DefenderThreatActionVDeviceDefault undocumented
+ DefenderThreatActionVDeviceDefault DefenderThreatAction = "deviceDefault"
+ // DefenderThreatActionVClean undocumented
+ DefenderThreatActionVClean DefenderThreatAction = "clean"
+ // DefenderThreatActionVQuarantine undocumented
+ DefenderThreatActionVQuarantine DefenderThreatAction = "quarantine"
+ // DefenderThreatActionVRemove undocumented
+ DefenderThreatActionVRemove DefenderThreatAction = "remove"
+ // DefenderThreatActionVAllow undocumented
+ DefenderThreatActionVAllow DefenderThreatAction = "allow"
+ // DefenderThreatActionVUserDefined undocumented
+ DefenderThreatActionVUserDefined DefenderThreatAction = "userDefined"
+ // DefenderThreatActionVBlock undocumented
+ DefenderThreatActionVBlock DefenderThreatAction = "block"
+)
+
+var (
+ // DefenderThreatActionPDeviceDefault is a pointer to DefenderThreatActionVDeviceDefault
+ DefenderThreatActionPDeviceDefault = &_DefenderThreatActionPDeviceDefault
+ // DefenderThreatActionPClean is a pointer to DefenderThreatActionVClean
+ DefenderThreatActionPClean = &_DefenderThreatActionPClean
+ // DefenderThreatActionPQuarantine is a pointer to DefenderThreatActionVQuarantine
+ DefenderThreatActionPQuarantine = &_DefenderThreatActionPQuarantine
+ // DefenderThreatActionPRemove is a pointer to DefenderThreatActionVRemove
+ DefenderThreatActionPRemove = &_DefenderThreatActionPRemove
+ // DefenderThreatActionPAllow is a pointer to DefenderThreatActionVAllow
+ DefenderThreatActionPAllow = &_DefenderThreatActionPAllow
+ // DefenderThreatActionPUserDefined is a pointer to DefenderThreatActionVUserDefined
+ DefenderThreatActionPUserDefined = &_DefenderThreatActionPUserDefined
+ // DefenderThreatActionPBlock is a pointer to DefenderThreatActionVBlock
+ DefenderThreatActionPBlock = &_DefenderThreatActionPBlock
+)
+
+var (
+ _DefenderThreatActionPDeviceDefault = DefenderThreatActionVDeviceDefault
+ _DefenderThreatActionPClean = DefenderThreatActionVClean
+ _DefenderThreatActionPQuarantine = DefenderThreatActionVQuarantine
+ _DefenderThreatActionPRemove = DefenderThreatActionVRemove
+ _DefenderThreatActionPAllow = DefenderThreatActionVAllow
+ _DefenderThreatActionPUserDefined = DefenderThreatActionVUserDefined
+ _DefenderThreatActionPBlock = DefenderThreatActionVBlock
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelegate.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelegate.go
new file mode 100644
index 00000000..80b7302c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelegate.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DelegateMeetingMessageDeliveryOptions undocumented
+type DelegateMeetingMessageDeliveryOptions string
+
+const (
+ // DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal undocumented
+ DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal DelegateMeetingMessageDeliveryOptions = "sendToDelegateAndInformationToPrincipal"
+ // DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal undocumented
+ DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal DelegateMeetingMessageDeliveryOptions = "sendToDelegateAndPrincipal"
+ // DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly undocumented
+ DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly DelegateMeetingMessageDeliveryOptions = "sendToDelegateOnly"
+)
+
+var (
+ // DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal is a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal
+ DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal = &_DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal
+ // DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal is a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal
+ DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal = &_DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal
+ // DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly is a pointer to DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly
+ DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly = &_DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly
+)
+
+var (
+ _DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndInformationToPrincipal = DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndInformationToPrincipal
+ _DelegateMeetingMessageDeliveryOptionsPSendToDelegateAndPrincipal = DelegateMeetingMessageDeliveryOptionsVSendToDelegateAndPrincipal
+ _DelegateMeetingMessageDeliveryOptionsPSendToDelegateOnly = DelegateMeetingMessageDeliveryOptionsVSendToDelegateOnly
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelivery.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelivery.go
new file mode 100644
index 00000000..e73cf3db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDelivery.go
@@ -0,0 +1,62 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationGroupIDOptionsType undocumented
+type DeliveryOptimizationGroupIDOptionsType string
+
+const (
+ // DeliveryOptimizationGroupIDOptionsTypeVNotConfigured undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVNotConfigured DeliveryOptimizationGroupIDOptionsType = "notConfigured"
+ // DeliveryOptimizationGroupIDOptionsTypeVAdSite undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVAdSite DeliveryOptimizationGroupIDOptionsType = "adSite"
+ // DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid DeliveryOptimizationGroupIDOptionsType = "authenticatedDomainSid"
+ // DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption DeliveryOptimizationGroupIDOptionsType = "dhcpUserOption"
+ // DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix undocumented
+ DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix DeliveryOptimizationGroupIDOptionsType = "dnsSuffix"
+)
+
+var (
+ // DeliveryOptimizationGroupIDOptionsTypePNotConfigured is a pointer to DeliveryOptimizationGroupIDOptionsTypeVNotConfigured
+ DeliveryOptimizationGroupIDOptionsTypePNotConfigured = &_DeliveryOptimizationGroupIDOptionsTypePNotConfigured
+ // DeliveryOptimizationGroupIDOptionsTypePAdSite is a pointer to DeliveryOptimizationGroupIDOptionsTypeVAdSite
+ DeliveryOptimizationGroupIDOptionsTypePAdSite = &_DeliveryOptimizationGroupIDOptionsTypePAdSite
+ // DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid is a pointer to DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid
+ DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid = &_DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid
+ // DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption is a pointer to DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption
+ DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption = &_DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption
+ // DeliveryOptimizationGroupIDOptionsTypePDNSSuffix is a pointer to DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix
+ DeliveryOptimizationGroupIDOptionsTypePDNSSuffix = &_DeliveryOptimizationGroupIDOptionsTypePDNSSuffix
+)
+
+var (
+ _DeliveryOptimizationGroupIDOptionsTypePNotConfigured = DeliveryOptimizationGroupIDOptionsTypeVNotConfigured
+ _DeliveryOptimizationGroupIDOptionsTypePAdSite = DeliveryOptimizationGroupIDOptionsTypeVAdSite
+ _DeliveryOptimizationGroupIDOptionsTypePAuthenticatedDomainSid = DeliveryOptimizationGroupIDOptionsTypeVAuthenticatedDomainSid
+ _DeliveryOptimizationGroupIDOptionsTypePDhcpUserOption = DeliveryOptimizationGroupIDOptionsTypeVDhcpUserOption
+ _DeliveryOptimizationGroupIDOptionsTypePDNSSuffix = DeliveryOptimizationGroupIDOptionsTypeVDNSSuffix
+)
+
+// DeliveryOptimizationRestrictPeerSelectionByOptions undocumented
+type DeliveryOptimizationRestrictPeerSelectionByOptions string
+
+const (
+ // DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured undocumented
+ DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured DeliveryOptimizationRestrictPeerSelectionByOptions = "notConfigured"
+ // DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask undocumented
+ DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask DeliveryOptimizationRestrictPeerSelectionByOptions = "subnetMask"
+)
+
+var (
+ // DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured is a pointer to DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured
+ DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured = &_DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured
+ // DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask is a pointer to DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask
+ DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask = &_DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask
+)
+
+var (
+ _DeliveryOptimizationRestrictPeerSelectionByOptionsPNotConfigured = DeliveryOptimizationRestrictPeerSelectionByOptionsVNotConfigured
+ _DeliveryOptimizationRestrictPeerSelectionByOptionsPSubnetMask = DeliveryOptimizationRestrictPeerSelectionByOptionsVSubnetMask
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDep.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDep.go
new file mode 100644
index 00000000..2641b1bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDep.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DepTokenType undocumented
+type DepTokenType string
+
+const (
+ // DepTokenTypeVNone undocumented
+ DepTokenTypeVNone DepTokenType = "none"
+ // DepTokenTypeVDep undocumented
+ DepTokenTypeVDep DepTokenType = "dep"
+ // DepTokenTypeVAppleSchoolManager undocumented
+ DepTokenTypeVAppleSchoolManager DepTokenType = "appleSchoolManager"
+)
+
+var (
+ // DepTokenTypePNone is a pointer to DepTokenTypeVNone
+ DepTokenTypePNone = &_DepTokenTypePNone
+ // DepTokenTypePDep is a pointer to DepTokenTypeVDep
+ DepTokenTypePDep = &_DepTokenTypePDep
+ // DepTokenTypePAppleSchoolManager is a pointer to DepTokenTypeVAppleSchoolManager
+ DepTokenTypePAppleSchoolManager = &_DepTokenTypePAppleSchoolManager
+)
+
+var (
+ _DepTokenTypePNone = DepTokenTypeVNone
+ _DepTokenTypePDep = DepTokenTypeVDep
+ _DepTokenTypePAppleSchoolManager = DepTokenTypeVAppleSchoolManager
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDerived.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDerived.go
new file mode 100644
index 00000000..b22d508f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDerived.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DerivedCredentialProviderType undocumented
+type DerivedCredentialProviderType string
+
+const (
+ // DerivedCredentialProviderTypeVNotConfigured undocumented
+ DerivedCredentialProviderTypeVNotConfigured DerivedCredentialProviderType = "notConfigured"
+ // DerivedCredentialProviderTypeVEntrustDataCard undocumented
+ DerivedCredentialProviderTypeVEntrustDataCard DerivedCredentialProviderType = "entrustDataCard"
+ // DerivedCredentialProviderTypeVPurebred undocumented
+ DerivedCredentialProviderTypeVPurebred DerivedCredentialProviderType = "purebred"
+ // DerivedCredentialProviderTypeVXTec undocumented
+ DerivedCredentialProviderTypeVXTec DerivedCredentialProviderType = "xTec"
+ // DerivedCredentialProviderTypeVIntercede undocumented
+ DerivedCredentialProviderTypeVIntercede DerivedCredentialProviderType = "intercede"
+)
+
+var (
+ // DerivedCredentialProviderTypePNotConfigured is a pointer to DerivedCredentialProviderTypeVNotConfigured
+ DerivedCredentialProviderTypePNotConfigured = &_DerivedCredentialProviderTypePNotConfigured
+ // DerivedCredentialProviderTypePEntrustDataCard is a pointer to DerivedCredentialProviderTypeVEntrustDataCard
+ DerivedCredentialProviderTypePEntrustDataCard = &_DerivedCredentialProviderTypePEntrustDataCard
+ // DerivedCredentialProviderTypePPurebred is a pointer to DerivedCredentialProviderTypeVPurebred
+ DerivedCredentialProviderTypePPurebred = &_DerivedCredentialProviderTypePPurebred
+ // DerivedCredentialProviderTypePXTec is a pointer to DerivedCredentialProviderTypeVXTec
+ DerivedCredentialProviderTypePXTec = &_DerivedCredentialProviderTypePXTec
+ // DerivedCredentialProviderTypePIntercede is a pointer to DerivedCredentialProviderTypeVIntercede
+ DerivedCredentialProviderTypePIntercede = &_DerivedCredentialProviderTypePIntercede
+)
+
+var (
+ _DerivedCredentialProviderTypePNotConfigured = DerivedCredentialProviderTypeVNotConfigured
+ _DerivedCredentialProviderTypePEntrustDataCard = DerivedCredentialProviderTypeVEntrustDataCard
+ _DerivedCredentialProviderTypePPurebred = DerivedCredentialProviderTypeVPurebred
+ _DerivedCredentialProviderTypePXTec = DerivedCredentialProviderTypeVXTec
+ _DerivedCredentialProviderTypePIntercede = DerivedCredentialProviderTypeVIntercede
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDevice.go
new file mode 100644
index 00000000..8f74dcdf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDevice.go
@@ -0,0 +1,1602 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeviceAndAppManagementAssignmentSource undocumented
+type DeviceAndAppManagementAssignmentSource string
+
+const (
+ // DeviceAndAppManagementAssignmentSourceVDirect undocumented
+ DeviceAndAppManagementAssignmentSourceVDirect DeviceAndAppManagementAssignmentSource = "direct"
+ // DeviceAndAppManagementAssignmentSourceVPolicySets undocumented
+ DeviceAndAppManagementAssignmentSourceVPolicySets DeviceAndAppManagementAssignmentSource = "policySets"
+)
+
+var (
+ // DeviceAndAppManagementAssignmentSourcePDirect is a pointer to DeviceAndAppManagementAssignmentSourceVDirect
+ DeviceAndAppManagementAssignmentSourcePDirect = &_DeviceAndAppManagementAssignmentSourcePDirect
+ // DeviceAndAppManagementAssignmentSourcePPolicySets is a pointer to DeviceAndAppManagementAssignmentSourceVPolicySets
+ DeviceAndAppManagementAssignmentSourcePPolicySets = &_DeviceAndAppManagementAssignmentSourcePPolicySets
+)
+
+var (
+ _DeviceAndAppManagementAssignmentSourcePDirect = DeviceAndAppManagementAssignmentSourceVDirect
+ _DeviceAndAppManagementAssignmentSourcePPolicySets = DeviceAndAppManagementAssignmentSourceVPolicySets
+)
+
+// DeviceAppManagementTaskCategory undocumented
+type DeviceAppManagementTaskCategory string
+
+const (
+ // DeviceAppManagementTaskCategoryVUnknown undocumented
+ DeviceAppManagementTaskCategoryVUnknown DeviceAppManagementTaskCategory = "unknown"
+ // DeviceAppManagementTaskCategoryVAdvancedThreatProtection undocumented
+ DeviceAppManagementTaskCategoryVAdvancedThreatProtection DeviceAppManagementTaskCategory = "advancedThreatProtection"
+)
+
+var (
+ // DeviceAppManagementTaskCategoryPUnknown is a pointer to DeviceAppManagementTaskCategoryVUnknown
+ DeviceAppManagementTaskCategoryPUnknown = &_DeviceAppManagementTaskCategoryPUnknown
+ // DeviceAppManagementTaskCategoryPAdvancedThreatProtection is a pointer to DeviceAppManagementTaskCategoryVAdvancedThreatProtection
+ DeviceAppManagementTaskCategoryPAdvancedThreatProtection = &_DeviceAppManagementTaskCategoryPAdvancedThreatProtection
+)
+
+var (
+ _DeviceAppManagementTaskCategoryPUnknown = DeviceAppManagementTaskCategoryVUnknown
+ _DeviceAppManagementTaskCategoryPAdvancedThreatProtection = DeviceAppManagementTaskCategoryVAdvancedThreatProtection
+)
+
+// DeviceAppManagementTaskPriority undocumented
+type DeviceAppManagementTaskPriority string
+
+const (
+ // DeviceAppManagementTaskPriorityVNone undocumented
+ DeviceAppManagementTaskPriorityVNone DeviceAppManagementTaskPriority = "none"
+ // DeviceAppManagementTaskPriorityVHigh undocumented
+ DeviceAppManagementTaskPriorityVHigh DeviceAppManagementTaskPriority = "high"
+ // DeviceAppManagementTaskPriorityVLow undocumented
+ DeviceAppManagementTaskPriorityVLow DeviceAppManagementTaskPriority = "low"
+)
+
+var (
+ // DeviceAppManagementTaskPriorityPNone is a pointer to DeviceAppManagementTaskPriorityVNone
+ DeviceAppManagementTaskPriorityPNone = &_DeviceAppManagementTaskPriorityPNone
+ // DeviceAppManagementTaskPriorityPHigh is a pointer to DeviceAppManagementTaskPriorityVHigh
+ DeviceAppManagementTaskPriorityPHigh = &_DeviceAppManagementTaskPriorityPHigh
+ // DeviceAppManagementTaskPriorityPLow is a pointer to DeviceAppManagementTaskPriorityVLow
+ DeviceAppManagementTaskPriorityPLow = &_DeviceAppManagementTaskPriorityPLow
+)
+
+var (
+ _DeviceAppManagementTaskPriorityPNone = DeviceAppManagementTaskPriorityVNone
+ _DeviceAppManagementTaskPriorityPHigh = DeviceAppManagementTaskPriorityVHigh
+ _DeviceAppManagementTaskPriorityPLow = DeviceAppManagementTaskPriorityVLow
+)
+
+// DeviceAppManagementTaskStatus undocumented
+type DeviceAppManagementTaskStatus string
+
+const (
+ // DeviceAppManagementTaskStatusVUnknown undocumented
+ DeviceAppManagementTaskStatusVUnknown DeviceAppManagementTaskStatus = "unknown"
+ // DeviceAppManagementTaskStatusVPending undocumented
+ DeviceAppManagementTaskStatusVPending DeviceAppManagementTaskStatus = "pending"
+ // DeviceAppManagementTaskStatusVActive undocumented
+ DeviceAppManagementTaskStatusVActive DeviceAppManagementTaskStatus = "active"
+ // DeviceAppManagementTaskStatusVCompleted undocumented
+ DeviceAppManagementTaskStatusVCompleted DeviceAppManagementTaskStatus = "completed"
+ // DeviceAppManagementTaskStatusVRejected undocumented
+ DeviceAppManagementTaskStatusVRejected DeviceAppManagementTaskStatus = "rejected"
+)
+
+var (
+ // DeviceAppManagementTaskStatusPUnknown is a pointer to DeviceAppManagementTaskStatusVUnknown
+ DeviceAppManagementTaskStatusPUnknown = &_DeviceAppManagementTaskStatusPUnknown
+ // DeviceAppManagementTaskStatusPPending is a pointer to DeviceAppManagementTaskStatusVPending
+ DeviceAppManagementTaskStatusPPending = &_DeviceAppManagementTaskStatusPPending
+ // DeviceAppManagementTaskStatusPActive is a pointer to DeviceAppManagementTaskStatusVActive
+ DeviceAppManagementTaskStatusPActive = &_DeviceAppManagementTaskStatusPActive
+ // DeviceAppManagementTaskStatusPCompleted is a pointer to DeviceAppManagementTaskStatusVCompleted
+ DeviceAppManagementTaskStatusPCompleted = &_DeviceAppManagementTaskStatusPCompleted
+ // DeviceAppManagementTaskStatusPRejected is a pointer to DeviceAppManagementTaskStatusVRejected
+ DeviceAppManagementTaskStatusPRejected = &_DeviceAppManagementTaskStatusPRejected
+)
+
+var (
+ _DeviceAppManagementTaskStatusPUnknown = DeviceAppManagementTaskStatusVUnknown
+ _DeviceAppManagementTaskStatusPPending = DeviceAppManagementTaskStatusVPending
+ _DeviceAppManagementTaskStatusPActive = DeviceAppManagementTaskStatusVActive
+ _DeviceAppManagementTaskStatusPCompleted = DeviceAppManagementTaskStatusVCompleted
+ _DeviceAppManagementTaskStatusPRejected = DeviceAppManagementTaskStatusVRejected
+)
+
+// DeviceComplianceActionType undocumented
+type DeviceComplianceActionType string
+
+const (
+ // DeviceComplianceActionTypeVNoAction undocumented
+ DeviceComplianceActionTypeVNoAction DeviceComplianceActionType = "noAction"
+ // DeviceComplianceActionTypeVNotification undocumented
+ DeviceComplianceActionTypeVNotification DeviceComplianceActionType = "notification"
+ // DeviceComplianceActionTypeVBlock undocumented
+ DeviceComplianceActionTypeVBlock DeviceComplianceActionType = "block"
+ // DeviceComplianceActionTypeVRetire undocumented
+ DeviceComplianceActionTypeVRetire DeviceComplianceActionType = "retire"
+ // DeviceComplianceActionTypeVWipe undocumented
+ DeviceComplianceActionTypeVWipe DeviceComplianceActionType = "wipe"
+ // DeviceComplianceActionTypeVRemoveResourceAccessProfiles undocumented
+ DeviceComplianceActionTypeVRemoveResourceAccessProfiles DeviceComplianceActionType = "removeResourceAccessProfiles"
+ // DeviceComplianceActionTypeVPushNotification undocumented
+ DeviceComplianceActionTypeVPushNotification DeviceComplianceActionType = "pushNotification"
+ // DeviceComplianceActionTypeVRemoteLock undocumented
+ DeviceComplianceActionTypeVRemoteLock DeviceComplianceActionType = "remoteLock"
+)
+
+var (
+ // DeviceComplianceActionTypePNoAction is a pointer to DeviceComplianceActionTypeVNoAction
+ DeviceComplianceActionTypePNoAction = &_DeviceComplianceActionTypePNoAction
+ // DeviceComplianceActionTypePNotification is a pointer to DeviceComplianceActionTypeVNotification
+ DeviceComplianceActionTypePNotification = &_DeviceComplianceActionTypePNotification
+ // DeviceComplianceActionTypePBlock is a pointer to DeviceComplianceActionTypeVBlock
+ DeviceComplianceActionTypePBlock = &_DeviceComplianceActionTypePBlock
+ // DeviceComplianceActionTypePRetire is a pointer to DeviceComplianceActionTypeVRetire
+ DeviceComplianceActionTypePRetire = &_DeviceComplianceActionTypePRetire
+ // DeviceComplianceActionTypePWipe is a pointer to DeviceComplianceActionTypeVWipe
+ DeviceComplianceActionTypePWipe = &_DeviceComplianceActionTypePWipe
+ // DeviceComplianceActionTypePRemoveResourceAccessProfiles is a pointer to DeviceComplianceActionTypeVRemoveResourceAccessProfiles
+ DeviceComplianceActionTypePRemoveResourceAccessProfiles = &_DeviceComplianceActionTypePRemoveResourceAccessProfiles
+ // DeviceComplianceActionTypePPushNotification is a pointer to DeviceComplianceActionTypeVPushNotification
+ DeviceComplianceActionTypePPushNotification = &_DeviceComplianceActionTypePPushNotification
+ // DeviceComplianceActionTypePRemoteLock is a pointer to DeviceComplianceActionTypeVRemoteLock
+ DeviceComplianceActionTypePRemoteLock = &_DeviceComplianceActionTypePRemoteLock
+)
+
+var (
+ _DeviceComplianceActionTypePNoAction = DeviceComplianceActionTypeVNoAction
+ _DeviceComplianceActionTypePNotification = DeviceComplianceActionTypeVNotification
+ _DeviceComplianceActionTypePBlock = DeviceComplianceActionTypeVBlock
+ _DeviceComplianceActionTypePRetire = DeviceComplianceActionTypeVRetire
+ _DeviceComplianceActionTypePWipe = DeviceComplianceActionTypeVWipe
+ _DeviceComplianceActionTypePRemoveResourceAccessProfiles = DeviceComplianceActionTypeVRemoveResourceAccessProfiles
+ _DeviceComplianceActionTypePPushNotification = DeviceComplianceActionTypeVPushNotification
+ _DeviceComplianceActionTypePRemoteLock = DeviceComplianceActionTypeVRemoteLock
+)
+
+// DeviceEnrollmentFailureReason undocumented
+type DeviceEnrollmentFailureReason string
+
+const (
+ // DeviceEnrollmentFailureReasonVUnknown undocumented
+ DeviceEnrollmentFailureReasonVUnknown DeviceEnrollmentFailureReason = "unknown"
+ // DeviceEnrollmentFailureReasonVAuthentication undocumented
+ DeviceEnrollmentFailureReasonVAuthentication DeviceEnrollmentFailureReason = "authentication"
+ // DeviceEnrollmentFailureReasonVAuthorization undocumented
+ DeviceEnrollmentFailureReasonVAuthorization DeviceEnrollmentFailureReason = "authorization"
+ // DeviceEnrollmentFailureReasonVAccountValidation undocumented
+ DeviceEnrollmentFailureReasonVAccountValidation DeviceEnrollmentFailureReason = "accountValidation"
+ // DeviceEnrollmentFailureReasonVUserValidation undocumented
+ DeviceEnrollmentFailureReasonVUserValidation DeviceEnrollmentFailureReason = "userValidation"
+ // DeviceEnrollmentFailureReasonVDeviceNotSupported undocumented
+ DeviceEnrollmentFailureReasonVDeviceNotSupported DeviceEnrollmentFailureReason = "deviceNotSupported"
+ // DeviceEnrollmentFailureReasonVInMaintenance undocumented
+ DeviceEnrollmentFailureReasonVInMaintenance DeviceEnrollmentFailureReason = "inMaintenance"
+ // DeviceEnrollmentFailureReasonVBadRequest undocumented
+ DeviceEnrollmentFailureReasonVBadRequest DeviceEnrollmentFailureReason = "badRequest"
+ // DeviceEnrollmentFailureReasonVFeatureNotSupported undocumented
+ DeviceEnrollmentFailureReasonVFeatureNotSupported DeviceEnrollmentFailureReason = "featureNotSupported"
+ // DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced undocumented
+ DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced DeviceEnrollmentFailureReason = "enrollmentRestrictionsEnforced"
+ // DeviceEnrollmentFailureReasonVClientDisconnected undocumented
+ DeviceEnrollmentFailureReasonVClientDisconnected DeviceEnrollmentFailureReason = "clientDisconnected"
+ // DeviceEnrollmentFailureReasonVUserAbandonment undocumented
+ DeviceEnrollmentFailureReasonVUserAbandonment DeviceEnrollmentFailureReason = "userAbandonment"
+)
+
+var (
+ // DeviceEnrollmentFailureReasonPUnknown is a pointer to DeviceEnrollmentFailureReasonVUnknown
+ DeviceEnrollmentFailureReasonPUnknown = &_DeviceEnrollmentFailureReasonPUnknown
+ // DeviceEnrollmentFailureReasonPAuthentication is a pointer to DeviceEnrollmentFailureReasonVAuthentication
+ DeviceEnrollmentFailureReasonPAuthentication = &_DeviceEnrollmentFailureReasonPAuthentication
+ // DeviceEnrollmentFailureReasonPAuthorization is a pointer to DeviceEnrollmentFailureReasonVAuthorization
+ DeviceEnrollmentFailureReasonPAuthorization = &_DeviceEnrollmentFailureReasonPAuthorization
+ // DeviceEnrollmentFailureReasonPAccountValidation is a pointer to DeviceEnrollmentFailureReasonVAccountValidation
+ DeviceEnrollmentFailureReasonPAccountValidation = &_DeviceEnrollmentFailureReasonPAccountValidation
+ // DeviceEnrollmentFailureReasonPUserValidation is a pointer to DeviceEnrollmentFailureReasonVUserValidation
+ DeviceEnrollmentFailureReasonPUserValidation = &_DeviceEnrollmentFailureReasonPUserValidation
+ // DeviceEnrollmentFailureReasonPDeviceNotSupported is a pointer to DeviceEnrollmentFailureReasonVDeviceNotSupported
+ DeviceEnrollmentFailureReasonPDeviceNotSupported = &_DeviceEnrollmentFailureReasonPDeviceNotSupported
+ // DeviceEnrollmentFailureReasonPInMaintenance is a pointer to DeviceEnrollmentFailureReasonVInMaintenance
+ DeviceEnrollmentFailureReasonPInMaintenance = &_DeviceEnrollmentFailureReasonPInMaintenance
+ // DeviceEnrollmentFailureReasonPBadRequest is a pointer to DeviceEnrollmentFailureReasonVBadRequest
+ DeviceEnrollmentFailureReasonPBadRequest = &_DeviceEnrollmentFailureReasonPBadRequest
+ // DeviceEnrollmentFailureReasonPFeatureNotSupported is a pointer to DeviceEnrollmentFailureReasonVFeatureNotSupported
+ DeviceEnrollmentFailureReasonPFeatureNotSupported = &_DeviceEnrollmentFailureReasonPFeatureNotSupported
+ // DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced is a pointer to DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced
+ DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced = &_DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced
+ // DeviceEnrollmentFailureReasonPClientDisconnected is a pointer to DeviceEnrollmentFailureReasonVClientDisconnected
+ DeviceEnrollmentFailureReasonPClientDisconnected = &_DeviceEnrollmentFailureReasonPClientDisconnected
+ // DeviceEnrollmentFailureReasonPUserAbandonment is a pointer to DeviceEnrollmentFailureReasonVUserAbandonment
+ DeviceEnrollmentFailureReasonPUserAbandonment = &_DeviceEnrollmentFailureReasonPUserAbandonment
+)
+
+var (
+ _DeviceEnrollmentFailureReasonPUnknown = DeviceEnrollmentFailureReasonVUnknown
+ _DeviceEnrollmentFailureReasonPAuthentication = DeviceEnrollmentFailureReasonVAuthentication
+ _DeviceEnrollmentFailureReasonPAuthorization = DeviceEnrollmentFailureReasonVAuthorization
+ _DeviceEnrollmentFailureReasonPAccountValidation = DeviceEnrollmentFailureReasonVAccountValidation
+ _DeviceEnrollmentFailureReasonPUserValidation = DeviceEnrollmentFailureReasonVUserValidation
+ _DeviceEnrollmentFailureReasonPDeviceNotSupported = DeviceEnrollmentFailureReasonVDeviceNotSupported
+ _DeviceEnrollmentFailureReasonPInMaintenance = DeviceEnrollmentFailureReasonVInMaintenance
+ _DeviceEnrollmentFailureReasonPBadRequest = DeviceEnrollmentFailureReasonVBadRequest
+ _DeviceEnrollmentFailureReasonPFeatureNotSupported = DeviceEnrollmentFailureReasonVFeatureNotSupported
+ _DeviceEnrollmentFailureReasonPEnrollmentRestrictionsEnforced = DeviceEnrollmentFailureReasonVEnrollmentRestrictionsEnforced
+ _DeviceEnrollmentFailureReasonPClientDisconnected = DeviceEnrollmentFailureReasonVClientDisconnected
+ _DeviceEnrollmentFailureReasonPUserAbandonment = DeviceEnrollmentFailureReasonVUserAbandonment
+)
+
+// DeviceEnrollmentType undocumented
+type DeviceEnrollmentType string
+
+const (
+ // DeviceEnrollmentTypeVUnknown undocumented
+ DeviceEnrollmentTypeVUnknown DeviceEnrollmentType = "unknown"
+ // DeviceEnrollmentTypeVUserEnrollment undocumented
+ DeviceEnrollmentTypeVUserEnrollment DeviceEnrollmentType = "userEnrollment"
+ // DeviceEnrollmentTypeVDeviceEnrollmentManager undocumented
+ DeviceEnrollmentTypeVDeviceEnrollmentManager DeviceEnrollmentType = "deviceEnrollmentManager"
+ // DeviceEnrollmentTypeVAppleBulkWithUser undocumented
+ DeviceEnrollmentTypeVAppleBulkWithUser DeviceEnrollmentType = "appleBulkWithUser"
+ // DeviceEnrollmentTypeVAppleBulkWithoutUser undocumented
+ DeviceEnrollmentTypeVAppleBulkWithoutUser DeviceEnrollmentType = "appleBulkWithoutUser"
+ // DeviceEnrollmentTypeVWindowsAzureADJoin undocumented
+ DeviceEnrollmentTypeVWindowsAzureADJoin DeviceEnrollmentType = "windowsAzureADJoin"
+ // DeviceEnrollmentTypeVWindowsBulkUserless undocumented
+ DeviceEnrollmentTypeVWindowsBulkUserless DeviceEnrollmentType = "windowsBulkUserless"
+ // DeviceEnrollmentTypeVWindowsAutoEnrollment undocumented
+ DeviceEnrollmentTypeVWindowsAutoEnrollment DeviceEnrollmentType = "windowsAutoEnrollment"
+ // DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin undocumented
+ DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin DeviceEnrollmentType = "windowsBulkAzureDomainJoin"
+ // DeviceEnrollmentTypeVWindowsCoManagement undocumented
+ DeviceEnrollmentTypeVWindowsCoManagement DeviceEnrollmentType = "windowsCoManagement"
+ // DeviceEnrollmentTypeVAppleUserEnrollment undocumented
+ DeviceEnrollmentTypeVAppleUserEnrollment DeviceEnrollmentType = "appleUserEnrollment"
+ // DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount undocumented
+ DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount DeviceEnrollmentType = "appleUserEnrollmentWithServiceAccount"
+)
+
+var (
+ // DeviceEnrollmentTypePUnknown is a pointer to DeviceEnrollmentTypeVUnknown
+ DeviceEnrollmentTypePUnknown = &_DeviceEnrollmentTypePUnknown
+ // DeviceEnrollmentTypePUserEnrollment is a pointer to DeviceEnrollmentTypeVUserEnrollment
+ DeviceEnrollmentTypePUserEnrollment = &_DeviceEnrollmentTypePUserEnrollment
+ // DeviceEnrollmentTypePDeviceEnrollmentManager is a pointer to DeviceEnrollmentTypeVDeviceEnrollmentManager
+ DeviceEnrollmentTypePDeviceEnrollmentManager = &_DeviceEnrollmentTypePDeviceEnrollmentManager
+ // DeviceEnrollmentTypePAppleBulkWithUser is a pointer to DeviceEnrollmentTypeVAppleBulkWithUser
+ DeviceEnrollmentTypePAppleBulkWithUser = &_DeviceEnrollmentTypePAppleBulkWithUser
+ // DeviceEnrollmentTypePAppleBulkWithoutUser is a pointer to DeviceEnrollmentTypeVAppleBulkWithoutUser
+ DeviceEnrollmentTypePAppleBulkWithoutUser = &_DeviceEnrollmentTypePAppleBulkWithoutUser
+ // DeviceEnrollmentTypePWindowsAzureADJoin is a pointer to DeviceEnrollmentTypeVWindowsAzureADJoin
+ DeviceEnrollmentTypePWindowsAzureADJoin = &_DeviceEnrollmentTypePWindowsAzureADJoin
+ // DeviceEnrollmentTypePWindowsBulkUserless is a pointer to DeviceEnrollmentTypeVWindowsBulkUserless
+ DeviceEnrollmentTypePWindowsBulkUserless = &_DeviceEnrollmentTypePWindowsBulkUserless
+ // DeviceEnrollmentTypePWindowsAutoEnrollment is a pointer to DeviceEnrollmentTypeVWindowsAutoEnrollment
+ DeviceEnrollmentTypePWindowsAutoEnrollment = &_DeviceEnrollmentTypePWindowsAutoEnrollment
+ // DeviceEnrollmentTypePWindowsBulkAzureDomainJoin is a pointer to DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin
+ DeviceEnrollmentTypePWindowsBulkAzureDomainJoin = &_DeviceEnrollmentTypePWindowsBulkAzureDomainJoin
+ // DeviceEnrollmentTypePWindowsCoManagement is a pointer to DeviceEnrollmentTypeVWindowsCoManagement
+ DeviceEnrollmentTypePWindowsCoManagement = &_DeviceEnrollmentTypePWindowsCoManagement
+ // DeviceEnrollmentTypePAppleUserEnrollment is a pointer to DeviceEnrollmentTypeVAppleUserEnrollment
+ DeviceEnrollmentTypePAppleUserEnrollment = &_DeviceEnrollmentTypePAppleUserEnrollment
+ // DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount is a pointer to DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount
+ DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount = &_DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount
+)
+
+var (
+ _DeviceEnrollmentTypePUnknown = DeviceEnrollmentTypeVUnknown
+ _DeviceEnrollmentTypePUserEnrollment = DeviceEnrollmentTypeVUserEnrollment
+ _DeviceEnrollmentTypePDeviceEnrollmentManager = DeviceEnrollmentTypeVDeviceEnrollmentManager
+ _DeviceEnrollmentTypePAppleBulkWithUser = DeviceEnrollmentTypeVAppleBulkWithUser
+ _DeviceEnrollmentTypePAppleBulkWithoutUser = DeviceEnrollmentTypeVAppleBulkWithoutUser
+ _DeviceEnrollmentTypePWindowsAzureADJoin = DeviceEnrollmentTypeVWindowsAzureADJoin
+ _DeviceEnrollmentTypePWindowsBulkUserless = DeviceEnrollmentTypeVWindowsBulkUserless
+ _DeviceEnrollmentTypePWindowsAutoEnrollment = DeviceEnrollmentTypeVWindowsAutoEnrollment
+ _DeviceEnrollmentTypePWindowsBulkAzureDomainJoin = DeviceEnrollmentTypeVWindowsBulkAzureDomainJoin
+ _DeviceEnrollmentTypePWindowsCoManagement = DeviceEnrollmentTypeVWindowsCoManagement
+ _DeviceEnrollmentTypePAppleUserEnrollment = DeviceEnrollmentTypeVAppleUserEnrollment
+ _DeviceEnrollmentTypePAppleUserEnrollmentWithServiceAccount = DeviceEnrollmentTypeVAppleUserEnrollmentWithServiceAccount
+)
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardState undocumented
+type DeviceGuardLocalSystemAuthorityCredentialGuardState string
+
+const (
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning DeviceGuardLocalSystemAuthorityCredentialGuardState = "running"
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired DeviceGuardLocalSystemAuthorityCredentialGuardState = "rebootRequired"
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed DeviceGuardLocalSystemAuthorityCredentialGuardState = "notLicensed"
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured DeviceGuardLocalSystemAuthorityCredentialGuardState = "notConfigured"
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning DeviceGuardLocalSystemAuthorityCredentialGuardState = "virtualizationBasedSecurityNotRunning"
+)
+
+var (
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning
+ DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired
+ DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed
+ DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured
+ DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured
+ // DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning
+ DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning = &_DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning
+)
+
+var (
+ _DeviceGuardLocalSystemAuthorityCredentialGuardStatePRunning = DeviceGuardLocalSystemAuthorityCredentialGuardStateVRunning
+ _DeviceGuardLocalSystemAuthorityCredentialGuardStatePRebootRequired = DeviceGuardLocalSystemAuthorityCredentialGuardStateVRebootRequired
+ _DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotLicensed = DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotLicensed
+ _DeviceGuardLocalSystemAuthorityCredentialGuardStatePNotConfigured = DeviceGuardLocalSystemAuthorityCredentialGuardStateVNotConfigured
+ _DeviceGuardLocalSystemAuthorityCredentialGuardStatePVirtualizationBasedSecurityNotRunning = DeviceGuardLocalSystemAuthorityCredentialGuardStateVVirtualizationBasedSecurityNotRunning
+)
+
+// DeviceGuardLocalSystemAuthorityCredentialGuardType undocumented
+type DeviceGuardLocalSystemAuthorityCredentialGuardType string
+
+const (
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured DeviceGuardLocalSystemAuthorityCredentialGuardType = "notConfigured"
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock DeviceGuardLocalSystemAuthorityCredentialGuardType = "enableWithUEFILock"
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock undocumented
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock DeviceGuardLocalSystemAuthorityCredentialGuardType = "enableWithoutUEFILock"
+)
+
+var (
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured = &_DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock = &_DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock
+ // DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock is a pointer to DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock
+ DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock = &_DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock
+)
+
+var (
+ _DeviceGuardLocalSystemAuthorityCredentialGuardTypePNotConfigured = DeviceGuardLocalSystemAuthorityCredentialGuardTypeVNotConfigured
+ _DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithUEFILock = DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithUEFILock
+ _DeviceGuardLocalSystemAuthorityCredentialGuardTypePEnableWithoutUEFILock = DeviceGuardLocalSystemAuthorityCredentialGuardTypeVEnableWithoutUEFILock
+)
+
+// DeviceGuardVirtualizationBasedSecurityHardwareRequirementState undocumented
+type DeviceGuardVirtualizationBasedSecurityHardwareRequirementState string
+
+const (
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "meetHardwareRequirements"
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "secureBootRequired"
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDMAProtectionRequired undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDMAProtectionRequired DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "dmaProtectionRequired"
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "hyperVNotSupportedForGuestVM"
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable undocumented
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable DeviceGuardVirtualizationBasedSecurityHardwareRequirementState = "hyperVNotAvailable"
+)
+
+var (
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDMAProtectionRequired is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDMAProtectionRequired
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDMAProtectionRequired = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDMAProtectionRequired
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable is a pointer to DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable = &_DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable
+)
+
+var (
+ _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePMeetHardwareRequirements = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVMeetHardwareRequirements
+ _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePSecureBootRequired = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVSecureBootRequired
+ _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePDMAProtectionRequired = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVDMAProtectionRequired
+ _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotSupportedForGuestVM = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotSupportedForGuestVM
+ _DeviceGuardVirtualizationBasedSecurityHardwareRequirementStatePHyperVNotAvailable = DeviceGuardVirtualizationBasedSecurityHardwareRequirementStateVHyperVNotAvailable
+)
+
+// DeviceGuardVirtualizationBasedSecurityState undocumented
+type DeviceGuardVirtualizationBasedSecurityState string
+
+const (
+ // DeviceGuardVirtualizationBasedSecurityStateVRunning undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVRunning DeviceGuardVirtualizationBasedSecurityState = "running"
+ // DeviceGuardVirtualizationBasedSecurityStateVRebootRequired undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVRebootRequired DeviceGuardVirtualizationBasedSecurityState = "rebootRequired"
+ // DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture DeviceGuardVirtualizationBasedSecurityState = "require64BitArchitecture"
+ // DeviceGuardVirtualizationBasedSecurityStateVNotLicensed undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVNotLicensed DeviceGuardVirtualizationBasedSecurityState = "notLicensed"
+ // DeviceGuardVirtualizationBasedSecurityStateVNotConfigured undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVNotConfigured DeviceGuardVirtualizationBasedSecurityState = "notConfigured"
+ // DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements DeviceGuardVirtualizationBasedSecurityState = "doesNotMeetHardwareRequirements"
+ // DeviceGuardVirtualizationBasedSecurityStateVOther undocumented
+ DeviceGuardVirtualizationBasedSecurityStateVOther DeviceGuardVirtualizationBasedSecurityState = "other"
+)
+
+var (
+ // DeviceGuardVirtualizationBasedSecurityStatePRunning is a pointer to DeviceGuardVirtualizationBasedSecurityStateVRunning
+ DeviceGuardVirtualizationBasedSecurityStatePRunning = &_DeviceGuardVirtualizationBasedSecurityStatePRunning
+ // DeviceGuardVirtualizationBasedSecurityStatePRebootRequired is a pointer to DeviceGuardVirtualizationBasedSecurityStateVRebootRequired
+ DeviceGuardVirtualizationBasedSecurityStatePRebootRequired = &_DeviceGuardVirtualizationBasedSecurityStatePRebootRequired
+ // DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture is a pointer to DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture
+ DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture = &_DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture
+ // DeviceGuardVirtualizationBasedSecurityStatePNotLicensed is a pointer to DeviceGuardVirtualizationBasedSecurityStateVNotLicensed
+ DeviceGuardVirtualizationBasedSecurityStatePNotLicensed = &_DeviceGuardVirtualizationBasedSecurityStatePNotLicensed
+ // DeviceGuardVirtualizationBasedSecurityStatePNotConfigured is a pointer to DeviceGuardVirtualizationBasedSecurityStateVNotConfigured
+ DeviceGuardVirtualizationBasedSecurityStatePNotConfigured = &_DeviceGuardVirtualizationBasedSecurityStatePNotConfigured
+ // DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements is a pointer to DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements
+ DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements = &_DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements
+ // DeviceGuardVirtualizationBasedSecurityStatePOther is a pointer to DeviceGuardVirtualizationBasedSecurityStateVOther
+ DeviceGuardVirtualizationBasedSecurityStatePOther = &_DeviceGuardVirtualizationBasedSecurityStatePOther
+)
+
+var (
+ _DeviceGuardVirtualizationBasedSecurityStatePRunning = DeviceGuardVirtualizationBasedSecurityStateVRunning
+ _DeviceGuardVirtualizationBasedSecurityStatePRebootRequired = DeviceGuardVirtualizationBasedSecurityStateVRebootRequired
+ _DeviceGuardVirtualizationBasedSecurityStatePRequire64BitArchitecture = DeviceGuardVirtualizationBasedSecurityStateVRequire64BitArchitecture
+ _DeviceGuardVirtualizationBasedSecurityStatePNotLicensed = DeviceGuardVirtualizationBasedSecurityStateVNotLicensed
+ _DeviceGuardVirtualizationBasedSecurityStatePNotConfigured = DeviceGuardVirtualizationBasedSecurityStateVNotConfigured
+ _DeviceGuardVirtualizationBasedSecurityStatePDoesNotMeetHardwareRequirements = DeviceGuardVirtualizationBasedSecurityStateVDoesNotMeetHardwareRequirements
+ _DeviceGuardVirtualizationBasedSecurityStatePOther = DeviceGuardVirtualizationBasedSecurityStateVOther
+)
+
+// DeviceManagementApplicabilityRuleType undocumented
+type DeviceManagementApplicabilityRuleType string
+
+const (
+ // DeviceManagementApplicabilityRuleTypeVInclude undocumented
+ DeviceManagementApplicabilityRuleTypeVInclude DeviceManagementApplicabilityRuleType = "include"
+ // DeviceManagementApplicabilityRuleTypeVExclude undocumented
+ DeviceManagementApplicabilityRuleTypeVExclude DeviceManagementApplicabilityRuleType = "exclude"
+)
+
+var (
+ // DeviceManagementApplicabilityRuleTypePInclude is a pointer to DeviceManagementApplicabilityRuleTypeVInclude
+ DeviceManagementApplicabilityRuleTypePInclude = &_DeviceManagementApplicabilityRuleTypePInclude
+ // DeviceManagementApplicabilityRuleTypePExclude is a pointer to DeviceManagementApplicabilityRuleTypeVExclude
+ DeviceManagementApplicabilityRuleTypePExclude = &_DeviceManagementApplicabilityRuleTypePExclude
+)
+
+var (
+ _DeviceManagementApplicabilityRuleTypePInclude = DeviceManagementApplicabilityRuleTypeVInclude
+ _DeviceManagementApplicabilityRuleTypePExclude = DeviceManagementApplicabilityRuleTypeVExclude
+)
+
+// DeviceManagementComparisonResult undocumented
+type DeviceManagementComparisonResult string
+
+const (
+ // DeviceManagementComparisonResultVUnknown undocumented
+ DeviceManagementComparisonResultVUnknown DeviceManagementComparisonResult = "unknown"
+ // DeviceManagementComparisonResultVEqual undocumented
+ DeviceManagementComparisonResultVEqual DeviceManagementComparisonResult = "equal"
+ // DeviceManagementComparisonResultVNotEqual undocumented
+ DeviceManagementComparisonResultVNotEqual DeviceManagementComparisonResult = "notEqual"
+ // DeviceManagementComparisonResultVAdded undocumented
+ DeviceManagementComparisonResultVAdded DeviceManagementComparisonResult = "added"
+ // DeviceManagementComparisonResultVRemoved undocumented
+ DeviceManagementComparisonResultVRemoved DeviceManagementComparisonResult = "removed"
+)
+
+var (
+ // DeviceManagementComparisonResultPUnknown is a pointer to DeviceManagementComparisonResultVUnknown
+ DeviceManagementComparisonResultPUnknown = &_DeviceManagementComparisonResultPUnknown
+ // DeviceManagementComparisonResultPEqual is a pointer to DeviceManagementComparisonResultVEqual
+ DeviceManagementComparisonResultPEqual = &_DeviceManagementComparisonResultPEqual
+ // DeviceManagementComparisonResultPNotEqual is a pointer to DeviceManagementComparisonResultVNotEqual
+ DeviceManagementComparisonResultPNotEqual = &_DeviceManagementComparisonResultPNotEqual
+ // DeviceManagementComparisonResultPAdded is a pointer to DeviceManagementComparisonResultVAdded
+ DeviceManagementComparisonResultPAdded = &_DeviceManagementComparisonResultPAdded
+ // DeviceManagementComparisonResultPRemoved is a pointer to DeviceManagementComparisonResultVRemoved
+ DeviceManagementComparisonResultPRemoved = &_DeviceManagementComparisonResultPRemoved
+)
+
+var (
+ _DeviceManagementComparisonResultPUnknown = DeviceManagementComparisonResultVUnknown
+ _DeviceManagementComparisonResultPEqual = DeviceManagementComparisonResultVEqual
+ _DeviceManagementComparisonResultPNotEqual = DeviceManagementComparisonResultVNotEqual
+ _DeviceManagementComparisonResultPAdded = DeviceManagementComparisonResultVAdded
+ _DeviceManagementComparisonResultPRemoved = DeviceManagementComparisonResultVRemoved
+)
+
+// DeviceManagementDerivedCredentialIssuer undocumented
+type DeviceManagementDerivedCredentialIssuer string
+
+const (
+ // DeviceManagementDerivedCredentialIssuerVIntercede undocumented
+ DeviceManagementDerivedCredentialIssuerVIntercede DeviceManagementDerivedCredentialIssuer = "intercede"
+ // DeviceManagementDerivedCredentialIssuerVEntrustDatacard undocumented
+ DeviceManagementDerivedCredentialIssuerVEntrustDatacard DeviceManagementDerivedCredentialIssuer = "entrustDatacard"
+ // DeviceManagementDerivedCredentialIssuerVPurebred undocumented
+ DeviceManagementDerivedCredentialIssuerVPurebred DeviceManagementDerivedCredentialIssuer = "purebred"
+)
+
+var (
+ // DeviceManagementDerivedCredentialIssuerPIntercede is a pointer to DeviceManagementDerivedCredentialIssuerVIntercede
+ DeviceManagementDerivedCredentialIssuerPIntercede = &_DeviceManagementDerivedCredentialIssuerPIntercede
+ // DeviceManagementDerivedCredentialIssuerPEntrustDatacard is a pointer to DeviceManagementDerivedCredentialIssuerVEntrustDatacard
+ DeviceManagementDerivedCredentialIssuerPEntrustDatacard = &_DeviceManagementDerivedCredentialIssuerPEntrustDatacard
+ // DeviceManagementDerivedCredentialIssuerPPurebred is a pointer to DeviceManagementDerivedCredentialIssuerVPurebred
+ DeviceManagementDerivedCredentialIssuerPPurebred = &_DeviceManagementDerivedCredentialIssuerPPurebred
+)
+
+var (
+ _DeviceManagementDerivedCredentialIssuerPIntercede = DeviceManagementDerivedCredentialIssuerVIntercede
+ _DeviceManagementDerivedCredentialIssuerPEntrustDatacard = DeviceManagementDerivedCredentialIssuerVEntrustDatacard
+ _DeviceManagementDerivedCredentialIssuerPPurebred = DeviceManagementDerivedCredentialIssuerVPurebred
+)
+
+// DeviceManagementDerivedCredentialNotificationType undocumented
+type DeviceManagementDerivedCredentialNotificationType string
+
+const (
+ // DeviceManagementDerivedCredentialNotificationTypeVNone undocumented
+ DeviceManagementDerivedCredentialNotificationTypeVNone DeviceManagementDerivedCredentialNotificationType = "none"
+ // DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal undocumented
+ DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal DeviceManagementDerivedCredentialNotificationType = "companyPortal"
+ // DeviceManagementDerivedCredentialNotificationTypeVEmail undocumented
+ DeviceManagementDerivedCredentialNotificationTypeVEmail DeviceManagementDerivedCredentialNotificationType = "email"
+)
+
+var (
+ // DeviceManagementDerivedCredentialNotificationTypePNone is a pointer to DeviceManagementDerivedCredentialNotificationTypeVNone
+ DeviceManagementDerivedCredentialNotificationTypePNone = &_DeviceManagementDerivedCredentialNotificationTypePNone
+ // DeviceManagementDerivedCredentialNotificationTypePCompanyPortal is a pointer to DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal
+ DeviceManagementDerivedCredentialNotificationTypePCompanyPortal = &_DeviceManagementDerivedCredentialNotificationTypePCompanyPortal
+ // DeviceManagementDerivedCredentialNotificationTypePEmail is a pointer to DeviceManagementDerivedCredentialNotificationTypeVEmail
+ DeviceManagementDerivedCredentialNotificationTypePEmail = &_DeviceManagementDerivedCredentialNotificationTypePEmail
+)
+
+var (
+ _DeviceManagementDerivedCredentialNotificationTypePNone = DeviceManagementDerivedCredentialNotificationTypeVNone
+ _DeviceManagementDerivedCredentialNotificationTypePCompanyPortal = DeviceManagementDerivedCredentialNotificationTypeVCompanyPortal
+ _DeviceManagementDerivedCredentialNotificationTypePEmail = DeviceManagementDerivedCredentialNotificationTypeVEmail
+)
+
+// DeviceManagementDomainJoinConnectorState undocumented
+type DeviceManagementDomainJoinConnectorState string
+
+const (
+ // DeviceManagementDomainJoinConnectorStateVActive undocumented
+ DeviceManagementDomainJoinConnectorStateVActive DeviceManagementDomainJoinConnectorState = "active"
+ // DeviceManagementDomainJoinConnectorStateVError undocumented
+ DeviceManagementDomainJoinConnectorStateVError DeviceManagementDomainJoinConnectorState = "error"
+ // DeviceManagementDomainJoinConnectorStateVInactive undocumented
+ DeviceManagementDomainJoinConnectorStateVInactive DeviceManagementDomainJoinConnectorState = "inactive"
+)
+
+var (
+ // DeviceManagementDomainJoinConnectorStatePActive is a pointer to DeviceManagementDomainJoinConnectorStateVActive
+ DeviceManagementDomainJoinConnectorStatePActive = &_DeviceManagementDomainJoinConnectorStatePActive
+ // DeviceManagementDomainJoinConnectorStatePError is a pointer to DeviceManagementDomainJoinConnectorStateVError
+ DeviceManagementDomainJoinConnectorStatePError = &_DeviceManagementDomainJoinConnectorStatePError
+ // DeviceManagementDomainJoinConnectorStatePInactive is a pointer to DeviceManagementDomainJoinConnectorStateVInactive
+ DeviceManagementDomainJoinConnectorStatePInactive = &_DeviceManagementDomainJoinConnectorStatePInactive
+)
+
+var (
+ _DeviceManagementDomainJoinConnectorStatePActive = DeviceManagementDomainJoinConnectorStateVActive
+ _DeviceManagementDomainJoinConnectorStatePError = DeviceManagementDomainJoinConnectorStateVError
+ _DeviceManagementDomainJoinConnectorStatePInactive = DeviceManagementDomainJoinConnectorStateVInactive
+)
+
+// DeviceManagementExchangeAccessLevel undocumented
+type DeviceManagementExchangeAccessLevel string
+
+const (
+ // DeviceManagementExchangeAccessLevelVNone undocumented
+ DeviceManagementExchangeAccessLevelVNone DeviceManagementExchangeAccessLevel = "none"
+ // DeviceManagementExchangeAccessLevelVAllow undocumented
+ DeviceManagementExchangeAccessLevelVAllow DeviceManagementExchangeAccessLevel = "allow"
+ // DeviceManagementExchangeAccessLevelVBlock undocumented
+ DeviceManagementExchangeAccessLevelVBlock DeviceManagementExchangeAccessLevel = "block"
+ // DeviceManagementExchangeAccessLevelVQuarantine undocumented
+ DeviceManagementExchangeAccessLevelVQuarantine DeviceManagementExchangeAccessLevel = "quarantine"
+)
+
+var (
+ // DeviceManagementExchangeAccessLevelPNone is a pointer to DeviceManagementExchangeAccessLevelVNone
+ DeviceManagementExchangeAccessLevelPNone = &_DeviceManagementExchangeAccessLevelPNone
+ // DeviceManagementExchangeAccessLevelPAllow is a pointer to DeviceManagementExchangeAccessLevelVAllow
+ DeviceManagementExchangeAccessLevelPAllow = &_DeviceManagementExchangeAccessLevelPAllow
+ // DeviceManagementExchangeAccessLevelPBlock is a pointer to DeviceManagementExchangeAccessLevelVBlock
+ DeviceManagementExchangeAccessLevelPBlock = &_DeviceManagementExchangeAccessLevelPBlock
+ // DeviceManagementExchangeAccessLevelPQuarantine is a pointer to DeviceManagementExchangeAccessLevelVQuarantine
+ DeviceManagementExchangeAccessLevelPQuarantine = &_DeviceManagementExchangeAccessLevelPQuarantine
+)
+
+var (
+ _DeviceManagementExchangeAccessLevelPNone = DeviceManagementExchangeAccessLevelVNone
+ _DeviceManagementExchangeAccessLevelPAllow = DeviceManagementExchangeAccessLevelVAllow
+ _DeviceManagementExchangeAccessLevelPBlock = DeviceManagementExchangeAccessLevelVBlock
+ _DeviceManagementExchangeAccessLevelPQuarantine = DeviceManagementExchangeAccessLevelVQuarantine
+)
+
+// DeviceManagementExchangeAccessRuleType undocumented
+type DeviceManagementExchangeAccessRuleType string
+
+const (
+ // DeviceManagementExchangeAccessRuleTypeVFamily undocumented
+ DeviceManagementExchangeAccessRuleTypeVFamily DeviceManagementExchangeAccessRuleType = "family"
+ // DeviceManagementExchangeAccessRuleTypeVModel undocumented
+ DeviceManagementExchangeAccessRuleTypeVModel DeviceManagementExchangeAccessRuleType = "model"
+)
+
+var (
+ // DeviceManagementExchangeAccessRuleTypePFamily is a pointer to DeviceManagementExchangeAccessRuleTypeVFamily
+ DeviceManagementExchangeAccessRuleTypePFamily = &_DeviceManagementExchangeAccessRuleTypePFamily
+ // DeviceManagementExchangeAccessRuleTypePModel is a pointer to DeviceManagementExchangeAccessRuleTypeVModel
+ DeviceManagementExchangeAccessRuleTypePModel = &_DeviceManagementExchangeAccessRuleTypePModel
+)
+
+var (
+ _DeviceManagementExchangeAccessRuleTypePFamily = DeviceManagementExchangeAccessRuleTypeVFamily
+ _DeviceManagementExchangeAccessRuleTypePModel = DeviceManagementExchangeAccessRuleTypeVModel
+)
+
+// DeviceManagementExchangeAccessState undocumented
+type DeviceManagementExchangeAccessState string
+
+const (
+ // DeviceManagementExchangeAccessStateVNone undocumented
+ DeviceManagementExchangeAccessStateVNone DeviceManagementExchangeAccessState = "none"
+ // DeviceManagementExchangeAccessStateVUnknown undocumented
+ DeviceManagementExchangeAccessStateVUnknown DeviceManagementExchangeAccessState = "unknown"
+ // DeviceManagementExchangeAccessStateVAllowed undocumented
+ DeviceManagementExchangeAccessStateVAllowed DeviceManagementExchangeAccessState = "allowed"
+ // DeviceManagementExchangeAccessStateVBlocked undocumented
+ DeviceManagementExchangeAccessStateVBlocked DeviceManagementExchangeAccessState = "blocked"
+ // DeviceManagementExchangeAccessStateVQuarantined undocumented
+ DeviceManagementExchangeAccessStateVQuarantined DeviceManagementExchangeAccessState = "quarantined"
+)
+
+var (
+ // DeviceManagementExchangeAccessStatePNone is a pointer to DeviceManagementExchangeAccessStateVNone
+ DeviceManagementExchangeAccessStatePNone = &_DeviceManagementExchangeAccessStatePNone
+ // DeviceManagementExchangeAccessStatePUnknown is a pointer to DeviceManagementExchangeAccessStateVUnknown
+ DeviceManagementExchangeAccessStatePUnknown = &_DeviceManagementExchangeAccessStatePUnknown
+ // DeviceManagementExchangeAccessStatePAllowed is a pointer to DeviceManagementExchangeAccessStateVAllowed
+ DeviceManagementExchangeAccessStatePAllowed = &_DeviceManagementExchangeAccessStatePAllowed
+ // DeviceManagementExchangeAccessStatePBlocked is a pointer to DeviceManagementExchangeAccessStateVBlocked
+ DeviceManagementExchangeAccessStatePBlocked = &_DeviceManagementExchangeAccessStatePBlocked
+ // DeviceManagementExchangeAccessStatePQuarantined is a pointer to DeviceManagementExchangeAccessStateVQuarantined
+ DeviceManagementExchangeAccessStatePQuarantined = &_DeviceManagementExchangeAccessStatePQuarantined
+)
+
+var (
+ _DeviceManagementExchangeAccessStatePNone = DeviceManagementExchangeAccessStateVNone
+ _DeviceManagementExchangeAccessStatePUnknown = DeviceManagementExchangeAccessStateVUnknown
+ _DeviceManagementExchangeAccessStatePAllowed = DeviceManagementExchangeAccessStateVAllowed
+ _DeviceManagementExchangeAccessStatePBlocked = DeviceManagementExchangeAccessStateVBlocked
+ _DeviceManagementExchangeAccessStatePQuarantined = DeviceManagementExchangeAccessStateVQuarantined
+)
+
+// DeviceManagementExchangeAccessStateReason undocumented
+type DeviceManagementExchangeAccessStateReason string
+
+const (
+ // DeviceManagementExchangeAccessStateReasonVNone undocumented
+ DeviceManagementExchangeAccessStateReasonVNone DeviceManagementExchangeAccessStateReason = "none"
+ // DeviceManagementExchangeAccessStateReasonVUnknown undocumented
+ DeviceManagementExchangeAccessStateReasonVUnknown DeviceManagementExchangeAccessStateReason = "unknown"
+ // DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule DeviceManagementExchangeAccessStateReason = "exchangeGlobalRule"
+ // DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule DeviceManagementExchangeAccessStateReason = "exchangeIndividualRule"
+ // DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule DeviceManagementExchangeAccessStateReason = "exchangeDeviceRule"
+ // DeviceManagementExchangeAccessStateReasonVExchangeUpgrade undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeUpgrade DeviceManagementExchangeAccessStateReason = "exchangeUpgrade"
+ // DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy undocumented
+ DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy DeviceManagementExchangeAccessStateReason = "exchangeMailboxPolicy"
+ // DeviceManagementExchangeAccessStateReasonVOther undocumented
+ DeviceManagementExchangeAccessStateReasonVOther DeviceManagementExchangeAccessStateReason = "other"
+ // DeviceManagementExchangeAccessStateReasonVCompliant undocumented
+ DeviceManagementExchangeAccessStateReasonVCompliant DeviceManagementExchangeAccessStateReason = "compliant"
+ // DeviceManagementExchangeAccessStateReasonVNotCompliant undocumented
+ DeviceManagementExchangeAccessStateReasonVNotCompliant DeviceManagementExchangeAccessStateReason = "notCompliant"
+ // DeviceManagementExchangeAccessStateReasonVNotEnrolled undocumented
+ DeviceManagementExchangeAccessStateReasonVNotEnrolled DeviceManagementExchangeAccessStateReason = "notEnrolled"
+ // DeviceManagementExchangeAccessStateReasonVUnknownLocation undocumented
+ DeviceManagementExchangeAccessStateReasonVUnknownLocation DeviceManagementExchangeAccessStateReason = "unknownLocation"
+ // DeviceManagementExchangeAccessStateReasonVMFARequired undocumented
+ DeviceManagementExchangeAccessStateReasonVMFARequired DeviceManagementExchangeAccessStateReason = "mfaRequired"
+ // DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy undocumented
+ DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy DeviceManagementExchangeAccessStateReason = "azureADBlockDueToAccessPolicy"
+ // DeviceManagementExchangeAccessStateReasonVCompromisedPassword undocumented
+ DeviceManagementExchangeAccessStateReasonVCompromisedPassword DeviceManagementExchangeAccessStateReason = "compromisedPassword"
+ // DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp undocumented
+ DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp DeviceManagementExchangeAccessStateReason = "deviceNotKnownWithManagedApp"
+)
+
+var (
+ // DeviceManagementExchangeAccessStateReasonPNone is a pointer to DeviceManagementExchangeAccessStateReasonVNone
+ DeviceManagementExchangeAccessStateReasonPNone = &_DeviceManagementExchangeAccessStateReasonPNone
+ // DeviceManagementExchangeAccessStateReasonPUnknown is a pointer to DeviceManagementExchangeAccessStateReasonVUnknown
+ DeviceManagementExchangeAccessStateReasonPUnknown = &_DeviceManagementExchangeAccessStateReasonPUnknown
+ // DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule
+ DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule = &_DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule
+ // DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule
+ DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule = &_DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule
+ // DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule
+ DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule = &_DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule
+ // DeviceManagementExchangeAccessStateReasonPExchangeUpgrade is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeUpgrade
+ DeviceManagementExchangeAccessStateReasonPExchangeUpgrade = &_DeviceManagementExchangeAccessStateReasonPExchangeUpgrade
+ // DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy is a pointer to DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy
+ DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy = &_DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy
+ // DeviceManagementExchangeAccessStateReasonPOther is a pointer to DeviceManagementExchangeAccessStateReasonVOther
+ DeviceManagementExchangeAccessStateReasonPOther = &_DeviceManagementExchangeAccessStateReasonPOther
+ // DeviceManagementExchangeAccessStateReasonPCompliant is a pointer to DeviceManagementExchangeAccessStateReasonVCompliant
+ DeviceManagementExchangeAccessStateReasonPCompliant = &_DeviceManagementExchangeAccessStateReasonPCompliant
+ // DeviceManagementExchangeAccessStateReasonPNotCompliant is a pointer to DeviceManagementExchangeAccessStateReasonVNotCompliant
+ DeviceManagementExchangeAccessStateReasonPNotCompliant = &_DeviceManagementExchangeAccessStateReasonPNotCompliant
+ // DeviceManagementExchangeAccessStateReasonPNotEnrolled is a pointer to DeviceManagementExchangeAccessStateReasonVNotEnrolled
+ DeviceManagementExchangeAccessStateReasonPNotEnrolled = &_DeviceManagementExchangeAccessStateReasonPNotEnrolled
+ // DeviceManagementExchangeAccessStateReasonPUnknownLocation is a pointer to DeviceManagementExchangeAccessStateReasonVUnknownLocation
+ DeviceManagementExchangeAccessStateReasonPUnknownLocation = &_DeviceManagementExchangeAccessStateReasonPUnknownLocation
+ // DeviceManagementExchangeAccessStateReasonPMFARequired is a pointer to DeviceManagementExchangeAccessStateReasonVMFARequired
+ DeviceManagementExchangeAccessStateReasonPMFARequired = &_DeviceManagementExchangeAccessStateReasonPMFARequired
+ // DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy is a pointer to DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy
+ DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy = &_DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy
+ // DeviceManagementExchangeAccessStateReasonPCompromisedPassword is a pointer to DeviceManagementExchangeAccessStateReasonVCompromisedPassword
+ DeviceManagementExchangeAccessStateReasonPCompromisedPassword = &_DeviceManagementExchangeAccessStateReasonPCompromisedPassword
+ // DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp is a pointer to DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp
+ DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp = &_DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp
+)
+
+var (
+ _DeviceManagementExchangeAccessStateReasonPNone = DeviceManagementExchangeAccessStateReasonVNone
+ _DeviceManagementExchangeAccessStateReasonPUnknown = DeviceManagementExchangeAccessStateReasonVUnknown
+ _DeviceManagementExchangeAccessStateReasonPExchangeGlobalRule = DeviceManagementExchangeAccessStateReasonVExchangeGlobalRule
+ _DeviceManagementExchangeAccessStateReasonPExchangeIndividualRule = DeviceManagementExchangeAccessStateReasonVExchangeIndividualRule
+ _DeviceManagementExchangeAccessStateReasonPExchangeDeviceRule = DeviceManagementExchangeAccessStateReasonVExchangeDeviceRule
+ _DeviceManagementExchangeAccessStateReasonPExchangeUpgrade = DeviceManagementExchangeAccessStateReasonVExchangeUpgrade
+ _DeviceManagementExchangeAccessStateReasonPExchangeMailboxPolicy = DeviceManagementExchangeAccessStateReasonVExchangeMailboxPolicy
+ _DeviceManagementExchangeAccessStateReasonPOther = DeviceManagementExchangeAccessStateReasonVOther
+ _DeviceManagementExchangeAccessStateReasonPCompliant = DeviceManagementExchangeAccessStateReasonVCompliant
+ _DeviceManagementExchangeAccessStateReasonPNotCompliant = DeviceManagementExchangeAccessStateReasonVNotCompliant
+ _DeviceManagementExchangeAccessStateReasonPNotEnrolled = DeviceManagementExchangeAccessStateReasonVNotEnrolled
+ _DeviceManagementExchangeAccessStateReasonPUnknownLocation = DeviceManagementExchangeAccessStateReasonVUnknownLocation
+ _DeviceManagementExchangeAccessStateReasonPMFARequired = DeviceManagementExchangeAccessStateReasonVMFARequired
+ _DeviceManagementExchangeAccessStateReasonPAzureADBlockDueToAccessPolicy = DeviceManagementExchangeAccessStateReasonVAzureADBlockDueToAccessPolicy
+ _DeviceManagementExchangeAccessStateReasonPCompromisedPassword = DeviceManagementExchangeAccessStateReasonVCompromisedPassword
+ _DeviceManagementExchangeAccessStateReasonPDeviceNotKnownWithManagedApp = DeviceManagementExchangeAccessStateReasonVDeviceNotKnownWithManagedApp
+)
+
+// DeviceManagementExchangeConnectorStatus undocumented
+type DeviceManagementExchangeConnectorStatus string
+
+const (
+ // DeviceManagementExchangeConnectorStatusVNone undocumented
+ DeviceManagementExchangeConnectorStatusVNone DeviceManagementExchangeConnectorStatus = "none"
+ // DeviceManagementExchangeConnectorStatusVConnectionPending undocumented
+ DeviceManagementExchangeConnectorStatusVConnectionPending DeviceManagementExchangeConnectorStatus = "connectionPending"
+ // DeviceManagementExchangeConnectorStatusVConnected undocumented
+ DeviceManagementExchangeConnectorStatusVConnected DeviceManagementExchangeConnectorStatus = "connected"
+ // DeviceManagementExchangeConnectorStatusVDisconnected undocumented
+ DeviceManagementExchangeConnectorStatusVDisconnected DeviceManagementExchangeConnectorStatus = "disconnected"
+)
+
+var (
+ // DeviceManagementExchangeConnectorStatusPNone is a pointer to DeviceManagementExchangeConnectorStatusVNone
+ DeviceManagementExchangeConnectorStatusPNone = &_DeviceManagementExchangeConnectorStatusPNone
+ // DeviceManagementExchangeConnectorStatusPConnectionPending is a pointer to DeviceManagementExchangeConnectorStatusVConnectionPending
+ DeviceManagementExchangeConnectorStatusPConnectionPending = &_DeviceManagementExchangeConnectorStatusPConnectionPending
+ // DeviceManagementExchangeConnectorStatusPConnected is a pointer to DeviceManagementExchangeConnectorStatusVConnected
+ DeviceManagementExchangeConnectorStatusPConnected = &_DeviceManagementExchangeConnectorStatusPConnected
+ // DeviceManagementExchangeConnectorStatusPDisconnected is a pointer to DeviceManagementExchangeConnectorStatusVDisconnected
+ DeviceManagementExchangeConnectorStatusPDisconnected = &_DeviceManagementExchangeConnectorStatusPDisconnected
+)
+
+var (
+ _DeviceManagementExchangeConnectorStatusPNone = DeviceManagementExchangeConnectorStatusVNone
+ _DeviceManagementExchangeConnectorStatusPConnectionPending = DeviceManagementExchangeConnectorStatusVConnectionPending
+ _DeviceManagementExchangeConnectorStatusPConnected = DeviceManagementExchangeConnectorStatusVConnected
+ _DeviceManagementExchangeConnectorStatusPDisconnected = DeviceManagementExchangeConnectorStatusVDisconnected
+)
+
+// DeviceManagementExchangeConnectorSyncType undocumented
+type DeviceManagementExchangeConnectorSyncType string
+
+const (
+ // DeviceManagementExchangeConnectorSyncTypeVFullSync undocumented
+ DeviceManagementExchangeConnectorSyncTypeVFullSync DeviceManagementExchangeConnectorSyncType = "fullSync"
+ // DeviceManagementExchangeConnectorSyncTypeVDeltaSync undocumented
+ DeviceManagementExchangeConnectorSyncTypeVDeltaSync DeviceManagementExchangeConnectorSyncType = "deltaSync"
+)
+
+var (
+ // DeviceManagementExchangeConnectorSyncTypePFullSync is a pointer to DeviceManagementExchangeConnectorSyncTypeVFullSync
+ DeviceManagementExchangeConnectorSyncTypePFullSync = &_DeviceManagementExchangeConnectorSyncTypePFullSync
+ // DeviceManagementExchangeConnectorSyncTypePDeltaSync is a pointer to DeviceManagementExchangeConnectorSyncTypeVDeltaSync
+ DeviceManagementExchangeConnectorSyncTypePDeltaSync = &_DeviceManagementExchangeConnectorSyncTypePDeltaSync
+)
+
+var (
+ _DeviceManagementExchangeConnectorSyncTypePFullSync = DeviceManagementExchangeConnectorSyncTypeVFullSync
+ _DeviceManagementExchangeConnectorSyncTypePDeltaSync = DeviceManagementExchangeConnectorSyncTypeVDeltaSync
+)
+
+// DeviceManagementExchangeConnectorType undocumented
+type DeviceManagementExchangeConnectorType string
+
+const (
+ // DeviceManagementExchangeConnectorTypeVOnPremises undocumented
+ DeviceManagementExchangeConnectorTypeVOnPremises DeviceManagementExchangeConnectorType = "onPremises"
+ // DeviceManagementExchangeConnectorTypeVHosted undocumented
+ DeviceManagementExchangeConnectorTypeVHosted DeviceManagementExchangeConnectorType = "hosted"
+ // DeviceManagementExchangeConnectorTypeVServiceToService undocumented
+ DeviceManagementExchangeConnectorTypeVServiceToService DeviceManagementExchangeConnectorType = "serviceToService"
+ // DeviceManagementExchangeConnectorTypeVDedicated undocumented
+ DeviceManagementExchangeConnectorTypeVDedicated DeviceManagementExchangeConnectorType = "dedicated"
+)
+
+var (
+ // DeviceManagementExchangeConnectorTypePOnPremises is a pointer to DeviceManagementExchangeConnectorTypeVOnPremises
+ DeviceManagementExchangeConnectorTypePOnPremises = &_DeviceManagementExchangeConnectorTypePOnPremises
+ // DeviceManagementExchangeConnectorTypePHosted is a pointer to DeviceManagementExchangeConnectorTypeVHosted
+ DeviceManagementExchangeConnectorTypePHosted = &_DeviceManagementExchangeConnectorTypePHosted
+ // DeviceManagementExchangeConnectorTypePServiceToService is a pointer to DeviceManagementExchangeConnectorTypeVServiceToService
+ DeviceManagementExchangeConnectorTypePServiceToService = &_DeviceManagementExchangeConnectorTypePServiceToService
+ // DeviceManagementExchangeConnectorTypePDedicated is a pointer to DeviceManagementExchangeConnectorTypeVDedicated
+ DeviceManagementExchangeConnectorTypePDedicated = &_DeviceManagementExchangeConnectorTypePDedicated
+)
+
+var (
+ _DeviceManagementExchangeConnectorTypePOnPremises = DeviceManagementExchangeConnectorTypeVOnPremises
+ _DeviceManagementExchangeConnectorTypePHosted = DeviceManagementExchangeConnectorTypeVHosted
+ _DeviceManagementExchangeConnectorTypePServiceToService = DeviceManagementExchangeConnectorTypeVServiceToService
+ _DeviceManagementExchangeConnectorTypePDedicated = DeviceManagementExchangeConnectorTypeVDedicated
+)
+
+// DeviceManagementPartnerAppType undocumented
+type DeviceManagementPartnerAppType string
+
+const (
+ // DeviceManagementPartnerAppTypeVUnknown undocumented
+ DeviceManagementPartnerAppTypeVUnknown DeviceManagementPartnerAppType = "unknown"
+ // DeviceManagementPartnerAppTypeVSingleTenantApp undocumented
+ DeviceManagementPartnerAppTypeVSingleTenantApp DeviceManagementPartnerAppType = "singleTenantApp"
+ // DeviceManagementPartnerAppTypeVMultiTenantApp undocumented
+ DeviceManagementPartnerAppTypeVMultiTenantApp DeviceManagementPartnerAppType = "multiTenantApp"
+)
+
+var (
+ // DeviceManagementPartnerAppTypePUnknown is a pointer to DeviceManagementPartnerAppTypeVUnknown
+ DeviceManagementPartnerAppTypePUnknown = &_DeviceManagementPartnerAppTypePUnknown
+ // DeviceManagementPartnerAppTypePSingleTenantApp is a pointer to DeviceManagementPartnerAppTypeVSingleTenantApp
+ DeviceManagementPartnerAppTypePSingleTenantApp = &_DeviceManagementPartnerAppTypePSingleTenantApp
+ // DeviceManagementPartnerAppTypePMultiTenantApp is a pointer to DeviceManagementPartnerAppTypeVMultiTenantApp
+ DeviceManagementPartnerAppTypePMultiTenantApp = &_DeviceManagementPartnerAppTypePMultiTenantApp
+)
+
+var (
+ _DeviceManagementPartnerAppTypePUnknown = DeviceManagementPartnerAppTypeVUnknown
+ _DeviceManagementPartnerAppTypePSingleTenantApp = DeviceManagementPartnerAppTypeVSingleTenantApp
+ _DeviceManagementPartnerAppTypePMultiTenantApp = DeviceManagementPartnerAppTypeVMultiTenantApp
+)
+
+// DeviceManagementPartnerTenantState undocumented
+type DeviceManagementPartnerTenantState string
+
+const (
+ // DeviceManagementPartnerTenantStateVUnknown undocumented
+ DeviceManagementPartnerTenantStateVUnknown DeviceManagementPartnerTenantState = "unknown"
+ // DeviceManagementPartnerTenantStateVUnavailable undocumented
+ DeviceManagementPartnerTenantStateVUnavailable DeviceManagementPartnerTenantState = "unavailable"
+ // DeviceManagementPartnerTenantStateVEnabled undocumented
+ DeviceManagementPartnerTenantStateVEnabled DeviceManagementPartnerTenantState = "enabled"
+ // DeviceManagementPartnerTenantStateVTerminated undocumented
+ DeviceManagementPartnerTenantStateVTerminated DeviceManagementPartnerTenantState = "terminated"
+ // DeviceManagementPartnerTenantStateVRejected undocumented
+ DeviceManagementPartnerTenantStateVRejected DeviceManagementPartnerTenantState = "rejected"
+ // DeviceManagementPartnerTenantStateVUnresponsive undocumented
+ DeviceManagementPartnerTenantStateVUnresponsive DeviceManagementPartnerTenantState = "unresponsive"
+)
+
+var (
+ // DeviceManagementPartnerTenantStatePUnknown is a pointer to DeviceManagementPartnerTenantStateVUnknown
+ DeviceManagementPartnerTenantStatePUnknown = &_DeviceManagementPartnerTenantStatePUnknown
+ // DeviceManagementPartnerTenantStatePUnavailable is a pointer to DeviceManagementPartnerTenantStateVUnavailable
+ DeviceManagementPartnerTenantStatePUnavailable = &_DeviceManagementPartnerTenantStatePUnavailable
+ // DeviceManagementPartnerTenantStatePEnabled is a pointer to DeviceManagementPartnerTenantStateVEnabled
+ DeviceManagementPartnerTenantStatePEnabled = &_DeviceManagementPartnerTenantStatePEnabled
+ // DeviceManagementPartnerTenantStatePTerminated is a pointer to DeviceManagementPartnerTenantStateVTerminated
+ DeviceManagementPartnerTenantStatePTerminated = &_DeviceManagementPartnerTenantStatePTerminated
+ // DeviceManagementPartnerTenantStatePRejected is a pointer to DeviceManagementPartnerTenantStateVRejected
+ DeviceManagementPartnerTenantStatePRejected = &_DeviceManagementPartnerTenantStatePRejected
+ // DeviceManagementPartnerTenantStatePUnresponsive is a pointer to DeviceManagementPartnerTenantStateVUnresponsive
+ DeviceManagementPartnerTenantStatePUnresponsive = &_DeviceManagementPartnerTenantStatePUnresponsive
+)
+
+var (
+ _DeviceManagementPartnerTenantStatePUnknown = DeviceManagementPartnerTenantStateVUnknown
+ _DeviceManagementPartnerTenantStatePUnavailable = DeviceManagementPartnerTenantStateVUnavailable
+ _DeviceManagementPartnerTenantStatePEnabled = DeviceManagementPartnerTenantStateVEnabled
+ _DeviceManagementPartnerTenantStatePTerminated = DeviceManagementPartnerTenantStateVTerminated
+ _DeviceManagementPartnerTenantStatePRejected = DeviceManagementPartnerTenantStateVRejected
+ _DeviceManagementPartnerTenantStatePUnresponsive = DeviceManagementPartnerTenantStateVUnresponsive
+)
+
+// DeviceManagementReportFileFormat undocumented
+type DeviceManagementReportFileFormat string
+
+const (
+ // DeviceManagementReportFileFormatVCsv undocumented
+ DeviceManagementReportFileFormatVCsv DeviceManagementReportFileFormat = "csv"
+ // DeviceManagementReportFileFormatVPdf undocumented
+ DeviceManagementReportFileFormatVPdf DeviceManagementReportFileFormat = "pdf"
+)
+
+var (
+ // DeviceManagementReportFileFormatPCsv is a pointer to DeviceManagementReportFileFormatVCsv
+ DeviceManagementReportFileFormatPCsv = &_DeviceManagementReportFileFormatPCsv
+ // DeviceManagementReportFileFormatPPdf is a pointer to DeviceManagementReportFileFormatVPdf
+ DeviceManagementReportFileFormatPPdf = &_DeviceManagementReportFileFormatPPdf
+)
+
+var (
+ _DeviceManagementReportFileFormatPCsv = DeviceManagementReportFileFormatVCsv
+ _DeviceManagementReportFileFormatPPdf = DeviceManagementReportFileFormatVPdf
+)
+
+// DeviceManagementReportStatus undocumented
+type DeviceManagementReportStatus string
+
+const (
+ // DeviceManagementReportStatusVUnknown undocumented
+ DeviceManagementReportStatusVUnknown DeviceManagementReportStatus = "unknown"
+ // DeviceManagementReportStatusVNotStarted undocumented
+ DeviceManagementReportStatusVNotStarted DeviceManagementReportStatus = "notStarted"
+ // DeviceManagementReportStatusVInProgress undocumented
+ DeviceManagementReportStatusVInProgress DeviceManagementReportStatus = "inProgress"
+ // DeviceManagementReportStatusVCompleted undocumented
+ DeviceManagementReportStatusVCompleted DeviceManagementReportStatus = "completed"
+ // DeviceManagementReportStatusVFailed undocumented
+ DeviceManagementReportStatusVFailed DeviceManagementReportStatus = "failed"
+)
+
+var (
+ // DeviceManagementReportStatusPUnknown is a pointer to DeviceManagementReportStatusVUnknown
+ DeviceManagementReportStatusPUnknown = &_DeviceManagementReportStatusPUnknown
+ // DeviceManagementReportStatusPNotStarted is a pointer to DeviceManagementReportStatusVNotStarted
+ DeviceManagementReportStatusPNotStarted = &_DeviceManagementReportStatusPNotStarted
+ // DeviceManagementReportStatusPInProgress is a pointer to DeviceManagementReportStatusVInProgress
+ DeviceManagementReportStatusPInProgress = &_DeviceManagementReportStatusPInProgress
+ // DeviceManagementReportStatusPCompleted is a pointer to DeviceManagementReportStatusVCompleted
+ DeviceManagementReportStatusPCompleted = &_DeviceManagementReportStatusPCompleted
+ // DeviceManagementReportStatusPFailed is a pointer to DeviceManagementReportStatusVFailed
+ DeviceManagementReportStatusPFailed = &_DeviceManagementReportStatusPFailed
+)
+
+var (
+ _DeviceManagementReportStatusPUnknown = DeviceManagementReportStatusVUnknown
+ _DeviceManagementReportStatusPNotStarted = DeviceManagementReportStatusVNotStarted
+ _DeviceManagementReportStatusPInProgress = DeviceManagementReportStatusVInProgress
+ _DeviceManagementReportStatusPCompleted = DeviceManagementReportStatusVCompleted
+ _DeviceManagementReportStatusPFailed = DeviceManagementReportStatusVFailed
+)
+
+// DeviceManagementScheduledReportRecurrence undocumented
+type DeviceManagementScheduledReportRecurrence string
+
+const (
+ // DeviceManagementScheduledReportRecurrenceVNone undocumented
+ DeviceManagementScheduledReportRecurrenceVNone DeviceManagementScheduledReportRecurrence = "none"
+ // DeviceManagementScheduledReportRecurrenceVDaily undocumented
+ DeviceManagementScheduledReportRecurrenceVDaily DeviceManagementScheduledReportRecurrence = "daily"
+ // DeviceManagementScheduledReportRecurrenceVWeekly undocumented
+ DeviceManagementScheduledReportRecurrenceVWeekly DeviceManagementScheduledReportRecurrence = "weekly"
+ // DeviceManagementScheduledReportRecurrenceVMonthly undocumented
+ DeviceManagementScheduledReportRecurrenceVMonthly DeviceManagementScheduledReportRecurrence = "monthly"
+)
+
+var (
+ // DeviceManagementScheduledReportRecurrencePNone is a pointer to DeviceManagementScheduledReportRecurrenceVNone
+ DeviceManagementScheduledReportRecurrencePNone = &_DeviceManagementScheduledReportRecurrencePNone
+ // DeviceManagementScheduledReportRecurrencePDaily is a pointer to DeviceManagementScheduledReportRecurrenceVDaily
+ DeviceManagementScheduledReportRecurrencePDaily = &_DeviceManagementScheduledReportRecurrencePDaily
+ // DeviceManagementScheduledReportRecurrencePWeekly is a pointer to DeviceManagementScheduledReportRecurrenceVWeekly
+ DeviceManagementScheduledReportRecurrencePWeekly = &_DeviceManagementScheduledReportRecurrencePWeekly
+ // DeviceManagementScheduledReportRecurrencePMonthly is a pointer to DeviceManagementScheduledReportRecurrenceVMonthly
+ DeviceManagementScheduledReportRecurrencePMonthly = &_DeviceManagementScheduledReportRecurrencePMonthly
+)
+
+var (
+ _DeviceManagementScheduledReportRecurrencePNone = DeviceManagementScheduledReportRecurrenceVNone
+ _DeviceManagementScheduledReportRecurrencePDaily = DeviceManagementScheduledReportRecurrenceVDaily
+ _DeviceManagementScheduledReportRecurrencePWeekly = DeviceManagementScheduledReportRecurrenceVWeekly
+ _DeviceManagementScheduledReportRecurrencePMonthly = DeviceManagementScheduledReportRecurrenceVMonthly
+)
+
+// DeviceManagementSubscriptionState undocumented
+type DeviceManagementSubscriptionState string
+
+const (
+ // DeviceManagementSubscriptionStateVPending undocumented
+ DeviceManagementSubscriptionStateVPending DeviceManagementSubscriptionState = "pending"
+ // DeviceManagementSubscriptionStateVActive undocumented
+ DeviceManagementSubscriptionStateVActive DeviceManagementSubscriptionState = "active"
+ // DeviceManagementSubscriptionStateVWarning undocumented
+ DeviceManagementSubscriptionStateVWarning DeviceManagementSubscriptionState = "warning"
+ // DeviceManagementSubscriptionStateVDisabled undocumented
+ DeviceManagementSubscriptionStateVDisabled DeviceManagementSubscriptionState = "disabled"
+ // DeviceManagementSubscriptionStateVDeleted undocumented
+ DeviceManagementSubscriptionStateVDeleted DeviceManagementSubscriptionState = "deleted"
+ // DeviceManagementSubscriptionStateVBlocked undocumented
+ DeviceManagementSubscriptionStateVBlocked DeviceManagementSubscriptionState = "blocked"
+ // DeviceManagementSubscriptionStateVLockedOut undocumented
+ DeviceManagementSubscriptionStateVLockedOut DeviceManagementSubscriptionState = "lockedOut"
+)
+
+var (
+ // DeviceManagementSubscriptionStatePPending is a pointer to DeviceManagementSubscriptionStateVPending
+ DeviceManagementSubscriptionStatePPending = &_DeviceManagementSubscriptionStatePPending
+ // DeviceManagementSubscriptionStatePActive is a pointer to DeviceManagementSubscriptionStateVActive
+ DeviceManagementSubscriptionStatePActive = &_DeviceManagementSubscriptionStatePActive
+ // DeviceManagementSubscriptionStatePWarning is a pointer to DeviceManagementSubscriptionStateVWarning
+ DeviceManagementSubscriptionStatePWarning = &_DeviceManagementSubscriptionStatePWarning
+ // DeviceManagementSubscriptionStatePDisabled is a pointer to DeviceManagementSubscriptionStateVDisabled
+ DeviceManagementSubscriptionStatePDisabled = &_DeviceManagementSubscriptionStatePDisabled
+ // DeviceManagementSubscriptionStatePDeleted is a pointer to DeviceManagementSubscriptionStateVDeleted
+ DeviceManagementSubscriptionStatePDeleted = &_DeviceManagementSubscriptionStatePDeleted
+ // DeviceManagementSubscriptionStatePBlocked is a pointer to DeviceManagementSubscriptionStateVBlocked
+ DeviceManagementSubscriptionStatePBlocked = &_DeviceManagementSubscriptionStatePBlocked
+ // DeviceManagementSubscriptionStatePLockedOut is a pointer to DeviceManagementSubscriptionStateVLockedOut
+ DeviceManagementSubscriptionStatePLockedOut = &_DeviceManagementSubscriptionStatePLockedOut
+)
+
+var (
+ _DeviceManagementSubscriptionStatePPending = DeviceManagementSubscriptionStateVPending
+ _DeviceManagementSubscriptionStatePActive = DeviceManagementSubscriptionStateVActive
+ _DeviceManagementSubscriptionStatePWarning = DeviceManagementSubscriptionStateVWarning
+ _DeviceManagementSubscriptionStatePDisabled = DeviceManagementSubscriptionStateVDisabled
+ _DeviceManagementSubscriptionStatePDeleted = DeviceManagementSubscriptionStateVDeleted
+ _DeviceManagementSubscriptionStatePBlocked = DeviceManagementSubscriptionStateVBlocked
+ _DeviceManagementSubscriptionStatePLockedOut = DeviceManagementSubscriptionStateVLockedOut
+)
+
+// DeviceManagementSubscriptions undocumented
+type DeviceManagementSubscriptions string
+
+const (
+ // DeviceManagementSubscriptionsVNone undocumented
+ DeviceManagementSubscriptionsVNone DeviceManagementSubscriptions = "none"
+ // DeviceManagementSubscriptionsVIntune undocumented
+ DeviceManagementSubscriptionsVIntune DeviceManagementSubscriptions = "intune"
+ // DeviceManagementSubscriptionsVOffice365 undocumented
+ DeviceManagementSubscriptionsVOffice365 DeviceManagementSubscriptions = "office365"
+ // DeviceManagementSubscriptionsVIntunePremium undocumented
+ DeviceManagementSubscriptionsVIntunePremium DeviceManagementSubscriptions = "intunePremium"
+ // DeviceManagementSubscriptionsVIntune_EDU undocumented
+ DeviceManagementSubscriptionsVIntune_EDU DeviceManagementSubscriptions = "intune_EDU"
+ // DeviceManagementSubscriptionsVIntune_SMB undocumented
+ DeviceManagementSubscriptionsVIntune_SMB DeviceManagementSubscriptions = "intune_SMB"
+)
+
+var (
+ // DeviceManagementSubscriptionsPNone is a pointer to DeviceManagementSubscriptionsVNone
+ DeviceManagementSubscriptionsPNone = &_DeviceManagementSubscriptionsPNone
+ // DeviceManagementSubscriptionsPIntune is a pointer to DeviceManagementSubscriptionsVIntune
+ DeviceManagementSubscriptionsPIntune = &_DeviceManagementSubscriptionsPIntune
+ // DeviceManagementSubscriptionsPOffice365 is a pointer to DeviceManagementSubscriptionsVOffice365
+ DeviceManagementSubscriptionsPOffice365 = &_DeviceManagementSubscriptionsPOffice365
+ // DeviceManagementSubscriptionsPIntunePremium is a pointer to DeviceManagementSubscriptionsVIntunePremium
+ DeviceManagementSubscriptionsPIntunePremium = &_DeviceManagementSubscriptionsPIntunePremium
+ // DeviceManagementSubscriptionsPIntune_EDU is a pointer to DeviceManagementSubscriptionsVIntune_EDU
+ DeviceManagementSubscriptionsPIntune_EDU = &_DeviceManagementSubscriptionsPIntune_EDU
+ // DeviceManagementSubscriptionsPIntune_SMB is a pointer to DeviceManagementSubscriptionsVIntune_SMB
+ DeviceManagementSubscriptionsPIntune_SMB = &_DeviceManagementSubscriptionsPIntune_SMB
+)
+
+var (
+ _DeviceManagementSubscriptionsPNone = DeviceManagementSubscriptionsVNone
+ _DeviceManagementSubscriptionsPIntune = DeviceManagementSubscriptionsVIntune
+ _DeviceManagementSubscriptionsPOffice365 = DeviceManagementSubscriptionsVOffice365
+ _DeviceManagementSubscriptionsPIntunePremium = DeviceManagementSubscriptionsVIntunePremium
+ _DeviceManagementSubscriptionsPIntune_EDU = DeviceManagementSubscriptionsVIntune_EDU
+ _DeviceManagementSubscriptionsPIntune_SMB = DeviceManagementSubscriptionsVIntune_SMB
+)
+
+// DeviceManagementTemplateType undocumented
+type DeviceManagementTemplateType string
+
+const (
+ // DeviceManagementTemplateTypeVSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVSecurityBaseline DeviceManagementTemplateType = "securityBaseline"
+ // DeviceManagementTemplateTypeVSpecializedDevices undocumented
+ DeviceManagementTemplateTypeVSpecializedDevices DeviceManagementTemplateType = "specializedDevices"
+ // DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline DeviceManagementTemplateType = "advancedThreatProtectionSecurityBaseline"
+ // DeviceManagementTemplateTypeVDeviceConfiguration undocumented
+ DeviceManagementTemplateTypeVDeviceConfiguration DeviceManagementTemplateType = "deviceConfiguration"
+ // DeviceManagementTemplateTypeVCustom undocumented
+ DeviceManagementTemplateTypeVCustom DeviceManagementTemplateType = "custom"
+ // DeviceManagementTemplateTypeVSecurityTemplate undocumented
+ DeviceManagementTemplateTypeVSecurityTemplate DeviceManagementTemplateType = "securityTemplate"
+ // DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline DeviceManagementTemplateType = "microsoftEdgeSecurityBaseline"
+ // DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline undocumented
+ DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline DeviceManagementTemplateType = "microsoftOffice365ProPlusSecurityBaseline"
+)
+
+var (
+ // DeviceManagementTemplateTypePSecurityBaseline is a pointer to DeviceManagementTemplateTypeVSecurityBaseline
+ DeviceManagementTemplateTypePSecurityBaseline = &_DeviceManagementTemplateTypePSecurityBaseline
+ // DeviceManagementTemplateTypePSpecializedDevices is a pointer to DeviceManagementTemplateTypeVSpecializedDevices
+ DeviceManagementTemplateTypePSpecializedDevices = &_DeviceManagementTemplateTypePSpecializedDevices
+ // DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline is a pointer to DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline
+ DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline = &_DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline
+ // DeviceManagementTemplateTypePDeviceConfiguration is a pointer to DeviceManagementTemplateTypeVDeviceConfiguration
+ DeviceManagementTemplateTypePDeviceConfiguration = &_DeviceManagementTemplateTypePDeviceConfiguration
+ // DeviceManagementTemplateTypePCustom is a pointer to DeviceManagementTemplateTypeVCustom
+ DeviceManagementTemplateTypePCustom = &_DeviceManagementTemplateTypePCustom
+ // DeviceManagementTemplateTypePSecurityTemplate is a pointer to DeviceManagementTemplateTypeVSecurityTemplate
+ DeviceManagementTemplateTypePSecurityTemplate = &_DeviceManagementTemplateTypePSecurityTemplate
+ // DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline is a pointer to DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline
+ DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline = &_DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline
+ // DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline is a pointer to DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline
+ DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline = &_DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline
+)
+
+var (
+ _DeviceManagementTemplateTypePSecurityBaseline = DeviceManagementTemplateTypeVSecurityBaseline
+ _DeviceManagementTemplateTypePSpecializedDevices = DeviceManagementTemplateTypeVSpecializedDevices
+ _DeviceManagementTemplateTypePAdvancedThreatProtectionSecurityBaseline = DeviceManagementTemplateTypeVAdvancedThreatProtectionSecurityBaseline
+ _DeviceManagementTemplateTypePDeviceConfiguration = DeviceManagementTemplateTypeVDeviceConfiguration
+ _DeviceManagementTemplateTypePCustom = DeviceManagementTemplateTypeVCustom
+ _DeviceManagementTemplateTypePSecurityTemplate = DeviceManagementTemplateTypeVSecurityTemplate
+ _DeviceManagementTemplateTypePMicrosoftEdgeSecurityBaseline = DeviceManagementTemplateTypeVMicrosoftEdgeSecurityBaseline
+ _DeviceManagementTemplateTypePMicrosoftOffice365ProPlusSecurityBaseline = DeviceManagementTemplateTypeVMicrosoftOffice365ProPlusSecurityBaseline
+)
+
+// DeviceManangementIntentValueType undocumented
+type DeviceManangementIntentValueType string
+
+const (
+ // DeviceManangementIntentValueTypeVInteger undocumented
+ DeviceManangementIntentValueTypeVInteger DeviceManangementIntentValueType = "integer"
+ // DeviceManangementIntentValueTypeVBoolean undocumented
+ DeviceManangementIntentValueTypeVBoolean DeviceManangementIntentValueType = "boolean"
+ // DeviceManangementIntentValueTypeVString undocumented
+ DeviceManangementIntentValueTypeVString DeviceManangementIntentValueType = "string"
+ // DeviceManangementIntentValueTypeVComplex undocumented
+ DeviceManangementIntentValueTypeVComplex DeviceManangementIntentValueType = "complex"
+ // DeviceManangementIntentValueTypeVCollection undocumented
+ DeviceManangementIntentValueTypeVCollection DeviceManangementIntentValueType = "collection"
+ // DeviceManangementIntentValueTypeVAbstractComplex undocumented
+ DeviceManangementIntentValueTypeVAbstractComplex DeviceManangementIntentValueType = "abstractComplex"
+)
+
+var (
+ // DeviceManangementIntentValueTypePInteger is a pointer to DeviceManangementIntentValueTypeVInteger
+ DeviceManangementIntentValueTypePInteger = &_DeviceManangementIntentValueTypePInteger
+ // DeviceManangementIntentValueTypePBoolean is a pointer to DeviceManangementIntentValueTypeVBoolean
+ DeviceManangementIntentValueTypePBoolean = &_DeviceManangementIntentValueTypePBoolean
+ // DeviceManangementIntentValueTypePString is a pointer to DeviceManangementIntentValueTypeVString
+ DeviceManangementIntentValueTypePString = &_DeviceManangementIntentValueTypePString
+ // DeviceManangementIntentValueTypePComplex is a pointer to DeviceManangementIntentValueTypeVComplex
+ DeviceManangementIntentValueTypePComplex = &_DeviceManangementIntentValueTypePComplex
+ // DeviceManangementIntentValueTypePCollection is a pointer to DeviceManangementIntentValueTypeVCollection
+ DeviceManangementIntentValueTypePCollection = &_DeviceManangementIntentValueTypePCollection
+ // DeviceManangementIntentValueTypePAbstractComplex is a pointer to DeviceManangementIntentValueTypeVAbstractComplex
+ DeviceManangementIntentValueTypePAbstractComplex = &_DeviceManangementIntentValueTypePAbstractComplex
+)
+
+var (
+ _DeviceManangementIntentValueTypePInteger = DeviceManangementIntentValueTypeVInteger
+ _DeviceManangementIntentValueTypePBoolean = DeviceManangementIntentValueTypeVBoolean
+ _DeviceManangementIntentValueTypePString = DeviceManangementIntentValueTypeVString
+ _DeviceManangementIntentValueTypePComplex = DeviceManangementIntentValueTypeVComplex
+ _DeviceManangementIntentValueTypePCollection = DeviceManangementIntentValueTypeVCollection
+ _DeviceManangementIntentValueTypePAbstractComplex = DeviceManangementIntentValueTypeVAbstractComplex
+)
+
+// DevicePlatformType undocumented
+type DevicePlatformType string
+
+const (
+ // DevicePlatformTypeVAndroid undocumented
+ DevicePlatformTypeVAndroid DevicePlatformType = "android"
+ // DevicePlatformTypeVAndroidForWork undocumented
+ DevicePlatformTypeVAndroidForWork DevicePlatformType = "androidForWork"
+ // DevicePlatformTypeVIOS undocumented
+ DevicePlatformTypeVIOS DevicePlatformType = "iOS"
+ // DevicePlatformTypeVMacOS undocumented
+ DevicePlatformTypeVMacOS DevicePlatformType = "macOS"
+ // DevicePlatformTypeVWindowsPhone81 undocumented
+ DevicePlatformTypeVWindowsPhone81 DevicePlatformType = "windowsPhone81"
+ // DevicePlatformTypeVWindows81AndLater undocumented
+ DevicePlatformTypeVWindows81AndLater DevicePlatformType = "windows81AndLater"
+ // DevicePlatformTypeVWindows10AndLater undocumented
+ DevicePlatformTypeVWindows10AndLater DevicePlatformType = "windows10AndLater"
+ // DevicePlatformTypeVAndroidWorkProfile undocumented
+ DevicePlatformTypeVAndroidWorkProfile DevicePlatformType = "androidWorkProfile"
+ // DevicePlatformTypeVUnknown undocumented
+ DevicePlatformTypeVUnknown DevicePlatformType = "unknown"
+)
+
+var (
+ // DevicePlatformTypePAndroid is a pointer to DevicePlatformTypeVAndroid
+ DevicePlatformTypePAndroid = &_DevicePlatformTypePAndroid
+ // DevicePlatformTypePAndroidForWork is a pointer to DevicePlatformTypeVAndroidForWork
+ DevicePlatformTypePAndroidForWork = &_DevicePlatformTypePAndroidForWork
+ // DevicePlatformTypePIOS is a pointer to DevicePlatformTypeVIOS
+ DevicePlatformTypePIOS = &_DevicePlatformTypePIOS
+ // DevicePlatformTypePMacOS is a pointer to DevicePlatformTypeVMacOS
+ DevicePlatformTypePMacOS = &_DevicePlatformTypePMacOS
+ // DevicePlatformTypePWindowsPhone81 is a pointer to DevicePlatformTypeVWindowsPhone81
+ DevicePlatformTypePWindowsPhone81 = &_DevicePlatformTypePWindowsPhone81
+ // DevicePlatformTypePWindows81AndLater is a pointer to DevicePlatformTypeVWindows81AndLater
+ DevicePlatformTypePWindows81AndLater = &_DevicePlatformTypePWindows81AndLater
+ // DevicePlatformTypePWindows10AndLater is a pointer to DevicePlatformTypeVWindows10AndLater
+ DevicePlatformTypePWindows10AndLater = &_DevicePlatformTypePWindows10AndLater
+ // DevicePlatformTypePAndroidWorkProfile is a pointer to DevicePlatformTypeVAndroidWorkProfile
+ DevicePlatformTypePAndroidWorkProfile = &_DevicePlatformTypePAndroidWorkProfile
+ // DevicePlatformTypePUnknown is a pointer to DevicePlatformTypeVUnknown
+ DevicePlatformTypePUnknown = &_DevicePlatformTypePUnknown
+)
+
+var (
+ _DevicePlatformTypePAndroid = DevicePlatformTypeVAndroid
+ _DevicePlatformTypePAndroidForWork = DevicePlatformTypeVAndroidForWork
+ _DevicePlatformTypePIOS = DevicePlatformTypeVIOS
+ _DevicePlatformTypePMacOS = DevicePlatformTypeVMacOS
+ _DevicePlatformTypePWindowsPhone81 = DevicePlatformTypeVWindowsPhone81
+ _DevicePlatformTypePWindows81AndLater = DevicePlatformTypeVWindows81AndLater
+ _DevicePlatformTypePWindows10AndLater = DevicePlatformTypeVWindows10AndLater
+ _DevicePlatformTypePAndroidWorkProfile = DevicePlatformTypeVAndroidWorkProfile
+ _DevicePlatformTypePUnknown = DevicePlatformTypeVUnknown
+)
+
+// DeviceRegistrationState undocumented
+type DeviceRegistrationState string
+
+const (
+ // DeviceRegistrationStateVNotRegistered undocumented
+ DeviceRegistrationStateVNotRegistered DeviceRegistrationState = "notRegistered"
+ // DeviceRegistrationStateVRegistered undocumented
+ DeviceRegistrationStateVRegistered DeviceRegistrationState = "registered"
+ // DeviceRegistrationStateVRevoked undocumented
+ DeviceRegistrationStateVRevoked DeviceRegistrationState = "revoked"
+ // DeviceRegistrationStateVKeyConflict undocumented
+ DeviceRegistrationStateVKeyConflict DeviceRegistrationState = "keyConflict"
+ // DeviceRegistrationStateVApprovalPending undocumented
+ DeviceRegistrationStateVApprovalPending DeviceRegistrationState = "approvalPending"
+ // DeviceRegistrationStateVCertificateReset undocumented
+ DeviceRegistrationStateVCertificateReset DeviceRegistrationState = "certificateReset"
+ // DeviceRegistrationStateVNotRegisteredPendingEnrollment undocumented
+ DeviceRegistrationStateVNotRegisteredPendingEnrollment DeviceRegistrationState = "notRegisteredPendingEnrollment"
+ // DeviceRegistrationStateVUnknown undocumented
+ DeviceRegistrationStateVUnknown DeviceRegistrationState = "unknown"
+)
+
+var (
+ // DeviceRegistrationStatePNotRegistered is a pointer to DeviceRegistrationStateVNotRegistered
+ DeviceRegistrationStatePNotRegistered = &_DeviceRegistrationStatePNotRegistered
+ // DeviceRegistrationStatePRegistered is a pointer to DeviceRegistrationStateVRegistered
+ DeviceRegistrationStatePRegistered = &_DeviceRegistrationStatePRegistered
+ // DeviceRegistrationStatePRevoked is a pointer to DeviceRegistrationStateVRevoked
+ DeviceRegistrationStatePRevoked = &_DeviceRegistrationStatePRevoked
+ // DeviceRegistrationStatePKeyConflict is a pointer to DeviceRegistrationStateVKeyConflict
+ DeviceRegistrationStatePKeyConflict = &_DeviceRegistrationStatePKeyConflict
+ // DeviceRegistrationStatePApprovalPending is a pointer to DeviceRegistrationStateVApprovalPending
+ DeviceRegistrationStatePApprovalPending = &_DeviceRegistrationStatePApprovalPending
+ // DeviceRegistrationStatePCertificateReset is a pointer to DeviceRegistrationStateVCertificateReset
+ DeviceRegistrationStatePCertificateReset = &_DeviceRegistrationStatePCertificateReset
+ // DeviceRegistrationStatePNotRegisteredPendingEnrollment is a pointer to DeviceRegistrationStateVNotRegisteredPendingEnrollment
+ DeviceRegistrationStatePNotRegisteredPendingEnrollment = &_DeviceRegistrationStatePNotRegisteredPendingEnrollment
+ // DeviceRegistrationStatePUnknown is a pointer to DeviceRegistrationStateVUnknown
+ DeviceRegistrationStatePUnknown = &_DeviceRegistrationStatePUnknown
+)
+
+var (
+ _DeviceRegistrationStatePNotRegistered = DeviceRegistrationStateVNotRegistered
+ _DeviceRegistrationStatePRegistered = DeviceRegistrationStateVRegistered
+ _DeviceRegistrationStatePRevoked = DeviceRegistrationStateVRevoked
+ _DeviceRegistrationStatePKeyConflict = DeviceRegistrationStateVKeyConflict
+ _DeviceRegistrationStatePApprovalPending = DeviceRegistrationStateVApprovalPending
+ _DeviceRegistrationStatePCertificateReset = DeviceRegistrationStateVCertificateReset
+ _DeviceRegistrationStatePNotRegisteredPendingEnrollment = DeviceRegistrationStateVNotRegisteredPendingEnrollment
+ _DeviceRegistrationStatePUnknown = DeviceRegistrationStateVUnknown
+)
+
+// DeviceThreatProtectionLevel undocumented
+type DeviceThreatProtectionLevel string
+
+const (
+ // DeviceThreatProtectionLevelVUnavailable undocumented
+ DeviceThreatProtectionLevelVUnavailable DeviceThreatProtectionLevel = "unavailable"
+ // DeviceThreatProtectionLevelVSecured undocumented
+ DeviceThreatProtectionLevelVSecured DeviceThreatProtectionLevel = "secured"
+ // DeviceThreatProtectionLevelVLow undocumented
+ DeviceThreatProtectionLevelVLow DeviceThreatProtectionLevel = "low"
+ // DeviceThreatProtectionLevelVMedium undocumented
+ DeviceThreatProtectionLevelVMedium DeviceThreatProtectionLevel = "medium"
+ // DeviceThreatProtectionLevelVHigh undocumented
+ DeviceThreatProtectionLevelVHigh DeviceThreatProtectionLevel = "high"
+ // DeviceThreatProtectionLevelVNotSet undocumented
+ DeviceThreatProtectionLevelVNotSet DeviceThreatProtectionLevel = "notSet"
+)
+
+var (
+ // DeviceThreatProtectionLevelPUnavailable is a pointer to DeviceThreatProtectionLevelVUnavailable
+ DeviceThreatProtectionLevelPUnavailable = &_DeviceThreatProtectionLevelPUnavailable
+ // DeviceThreatProtectionLevelPSecured is a pointer to DeviceThreatProtectionLevelVSecured
+ DeviceThreatProtectionLevelPSecured = &_DeviceThreatProtectionLevelPSecured
+ // DeviceThreatProtectionLevelPLow is a pointer to DeviceThreatProtectionLevelVLow
+ DeviceThreatProtectionLevelPLow = &_DeviceThreatProtectionLevelPLow
+ // DeviceThreatProtectionLevelPMedium is a pointer to DeviceThreatProtectionLevelVMedium
+ DeviceThreatProtectionLevelPMedium = &_DeviceThreatProtectionLevelPMedium
+ // DeviceThreatProtectionLevelPHigh is a pointer to DeviceThreatProtectionLevelVHigh
+ DeviceThreatProtectionLevelPHigh = &_DeviceThreatProtectionLevelPHigh
+ // DeviceThreatProtectionLevelPNotSet is a pointer to DeviceThreatProtectionLevelVNotSet
+ DeviceThreatProtectionLevelPNotSet = &_DeviceThreatProtectionLevelPNotSet
+)
+
+var (
+ _DeviceThreatProtectionLevelPUnavailable = DeviceThreatProtectionLevelVUnavailable
+ _DeviceThreatProtectionLevelPSecured = DeviceThreatProtectionLevelVSecured
+ _DeviceThreatProtectionLevelPLow = DeviceThreatProtectionLevelVLow
+ _DeviceThreatProtectionLevelPMedium = DeviceThreatProtectionLevelVMedium
+ _DeviceThreatProtectionLevelPHigh = DeviceThreatProtectionLevelVHigh
+ _DeviceThreatProtectionLevelPNotSet = DeviceThreatProtectionLevelVNotSet
+)
+
+// DeviceType undocumented
+type DeviceType string
+
+const (
+ // DeviceTypeVDesktop undocumented
+ DeviceTypeVDesktop DeviceType = "desktop"
+ // DeviceTypeVWindowsRT undocumented
+ DeviceTypeVWindowsRT DeviceType = "windowsRT"
+ // DeviceTypeVWinMO6 undocumented
+ DeviceTypeVWinMO6 DeviceType = "winMO6"
+ // DeviceTypeVNokia undocumented
+ DeviceTypeVNokia DeviceType = "nokia"
+ // DeviceTypeVWindowsPhone undocumented
+ DeviceTypeVWindowsPhone DeviceType = "windowsPhone"
+ // DeviceTypeVMac undocumented
+ DeviceTypeVMac DeviceType = "mac"
+ // DeviceTypeVWinCE undocumented
+ DeviceTypeVWinCE DeviceType = "winCE"
+ // DeviceTypeVWinEmbedded undocumented
+ DeviceTypeVWinEmbedded DeviceType = "winEmbedded"
+ // DeviceTypeVIPhone undocumented
+ DeviceTypeVIPhone DeviceType = "iPhone"
+ // DeviceTypeVIPad undocumented
+ DeviceTypeVIPad DeviceType = "iPad"
+ // DeviceTypeVIPod undocumented
+ DeviceTypeVIPod DeviceType = "iPod"
+ // DeviceTypeVAndroid undocumented
+ DeviceTypeVAndroid DeviceType = "android"
+ // DeviceTypeVISocConsumer undocumented
+ DeviceTypeVISocConsumer DeviceType = "iSocConsumer"
+ // DeviceTypeVUnix undocumented
+ DeviceTypeVUnix DeviceType = "unix"
+ // DeviceTypeVMacMDM undocumented
+ DeviceTypeVMacMDM DeviceType = "macMDM"
+ // DeviceTypeVHoloLens undocumented
+ DeviceTypeVHoloLens DeviceType = "holoLens"
+ // DeviceTypeVSurfaceHub undocumented
+ DeviceTypeVSurfaceHub DeviceType = "surfaceHub"
+ // DeviceTypeVAndroidForWork undocumented
+ DeviceTypeVAndroidForWork DeviceType = "androidForWork"
+ // DeviceTypeVAndroidEnterprise undocumented
+ DeviceTypeVAndroidEnterprise DeviceType = "androidEnterprise"
+ // DeviceTypeVBlackberry undocumented
+ DeviceTypeVBlackberry DeviceType = "blackberry"
+ // DeviceTypeVPalm undocumented
+ DeviceTypeVPalm DeviceType = "palm"
+ // DeviceTypeVUnknown undocumented
+ DeviceTypeVUnknown DeviceType = "unknown"
+)
+
+var (
+ // DeviceTypePDesktop is a pointer to DeviceTypeVDesktop
+ DeviceTypePDesktop = &_DeviceTypePDesktop
+ // DeviceTypePWindowsRT is a pointer to DeviceTypeVWindowsRT
+ DeviceTypePWindowsRT = &_DeviceTypePWindowsRT
+ // DeviceTypePWinMO6 is a pointer to DeviceTypeVWinMO6
+ DeviceTypePWinMO6 = &_DeviceTypePWinMO6
+ // DeviceTypePNokia is a pointer to DeviceTypeVNokia
+ DeviceTypePNokia = &_DeviceTypePNokia
+ // DeviceTypePWindowsPhone is a pointer to DeviceTypeVWindowsPhone
+ DeviceTypePWindowsPhone = &_DeviceTypePWindowsPhone
+ // DeviceTypePMac is a pointer to DeviceTypeVMac
+ DeviceTypePMac = &_DeviceTypePMac
+ // DeviceTypePWinCE is a pointer to DeviceTypeVWinCE
+ DeviceTypePWinCE = &_DeviceTypePWinCE
+ // DeviceTypePWinEmbedded is a pointer to DeviceTypeVWinEmbedded
+ DeviceTypePWinEmbedded = &_DeviceTypePWinEmbedded
+ // DeviceTypePIPhone is a pointer to DeviceTypeVIPhone
+ DeviceTypePIPhone = &_DeviceTypePIPhone
+ // DeviceTypePIPad is a pointer to DeviceTypeVIPad
+ DeviceTypePIPad = &_DeviceTypePIPad
+ // DeviceTypePIPod is a pointer to DeviceTypeVIPod
+ DeviceTypePIPod = &_DeviceTypePIPod
+ // DeviceTypePAndroid is a pointer to DeviceTypeVAndroid
+ DeviceTypePAndroid = &_DeviceTypePAndroid
+ // DeviceTypePISocConsumer is a pointer to DeviceTypeVISocConsumer
+ DeviceTypePISocConsumer = &_DeviceTypePISocConsumer
+ // DeviceTypePUnix is a pointer to DeviceTypeVUnix
+ DeviceTypePUnix = &_DeviceTypePUnix
+ // DeviceTypePMacMDM is a pointer to DeviceTypeVMacMDM
+ DeviceTypePMacMDM = &_DeviceTypePMacMDM
+ // DeviceTypePHoloLens is a pointer to DeviceTypeVHoloLens
+ DeviceTypePHoloLens = &_DeviceTypePHoloLens
+ // DeviceTypePSurfaceHub is a pointer to DeviceTypeVSurfaceHub
+ DeviceTypePSurfaceHub = &_DeviceTypePSurfaceHub
+ // DeviceTypePAndroidForWork is a pointer to DeviceTypeVAndroidForWork
+ DeviceTypePAndroidForWork = &_DeviceTypePAndroidForWork
+ // DeviceTypePAndroidEnterprise is a pointer to DeviceTypeVAndroidEnterprise
+ DeviceTypePAndroidEnterprise = &_DeviceTypePAndroidEnterprise
+ // DeviceTypePBlackberry is a pointer to DeviceTypeVBlackberry
+ DeviceTypePBlackberry = &_DeviceTypePBlackberry
+ // DeviceTypePPalm is a pointer to DeviceTypeVPalm
+ DeviceTypePPalm = &_DeviceTypePPalm
+ // DeviceTypePUnknown is a pointer to DeviceTypeVUnknown
+ DeviceTypePUnknown = &_DeviceTypePUnknown
+)
+
+var (
+ _DeviceTypePDesktop = DeviceTypeVDesktop
+ _DeviceTypePWindowsRT = DeviceTypeVWindowsRT
+ _DeviceTypePWinMO6 = DeviceTypeVWinMO6
+ _DeviceTypePNokia = DeviceTypeVNokia
+ _DeviceTypePWindowsPhone = DeviceTypeVWindowsPhone
+ _DeviceTypePMac = DeviceTypeVMac
+ _DeviceTypePWinCE = DeviceTypeVWinCE
+ _DeviceTypePWinEmbedded = DeviceTypeVWinEmbedded
+ _DeviceTypePIPhone = DeviceTypeVIPhone
+ _DeviceTypePIPad = DeviceTypeVIPad
+ _DeviceTypePIPod = DeviceTypeVIPod
+ _DeviceTypePAndroid = DeviceTypeVAndroid
+ _DeviceTypePISocConsumer = DeviceTypeVISocConsumer
+ _DeviceTypePUnix = DeviceTypeVUnix
+ _DeviceTypePMacMDM = DeviceTypeVMacMDM
+ _DeviceTypePHoloLens = DeviceTypeVHoloLens
+ _DeviceTypePSurfaceHub = DeviceTypeVSurfaceHub
+ _DeviceTypePAndroidForWork = DeviceTypeVAndroidForWork
+ _DeviceTypePAndroidEnterprise = DeviceTypeVAndroidEnterprise
+ _DeviceTypePBlackberry = DeviceTypeVBlackberry
+ _DeviceTypePPalm = DeviceTypeVPalm
+ _DeviceTypePUnknown = DeviceTypeVUnknown
+)
+
+// DeviceTypes undocumented
+type DeviceTypes string
+
+const (
+ // DeviceTypesVDesktop undocumented
+ DeviceTypesVDesktop DeviceTypes = "desktop"
+ // DeviceTypesVWindowsRT undocumented
+ DeviceTypesVWindowsRT DeviceTypes = "windowsRT"
+ // DeviceTypesVWinMO6 undocumented
+ DeviceTypesVWinMO6 DeviceTypes = "winMO6"
+ // DeviceTypesVNokia undocumented
+ DeviceTypesVNokia DeviceTypes = "nokia"
+ // DeviceTypesVWindowsPhone undocumented
+ DeviceTypesVWindowsPhone DeviceTypes = "windowsPhone"
+ // DeviceTypesVMac undocumented
+ DeviceTypesVMac DeviceTypes = "mac"
+ // DeviceTypesVWinCE undocumented
+ DeviceTypesVWinCE DeviceTypes = "winCE"
+ // DeviceTypesVWinEmbedded undocumented
+ DeviceTypesVWinEmbedded DeviceTypes = "winEmbedded"
+ // DeviceTypesVIPhone undocumented
+ DeviceTypesVIPhone DeviceTypes = "iPhone"
+ // DeviceTypesVIPad undocumented
+ DeviceTypesVIPad DeviceTypes = "iPad"
+ // DeviceTypesVIPod undocumented
+ DeviceTypesVIPod DeviceTypes = "iPod"
+ // DeviceTypesVAndroid undocumented
+ DeviceTypesVAndroid DeviceTypes = "android"
+ // DeviceTypesVISocConsumer undocumented
+ DeviceTypesVISocConsumer DeviceTypes = "iSocConsumer"
+ // DeviceTypesVUnix undocumented
+ DeviceTypesVUnix DeviceTypes = "unix"
+ // DeviceTypesVMacMDM undocumented
+ DeviceTypesVMacMDM DeviceTypes = "macMDM"
+ // DeviceTypesVHoloLens undocumented
+ DeviceTypesVHoloLens DeviceTypes = "holoLens"
+ // DeviceTypesVSurfaceHub undocumented
+ DeviceTypesVSurfaceHub DeviceTypes = "surfaceHub"
+ // DeviceTypesVAndroidForWork undocumented
+ DeviceTypesVAndroidForWork DeviceTypes = "androidForWork"
+ // DeviceTypesVAndroidEnterprise undocumented
+ DeviceTypesVAndroidEnterprise DeviceTypes = "androidEnterprise"
+ // DeviceTypesVBlackberry undocumented
+ DeviceTypesVBlackberry DeviceTypes = "blackberry"
+ // DeviceTypesVPalm undocumented
+ DeviceTypesVPalm DeviceTypes = "palm"
+ // DeviceTypesVUnknown undocumented
+ DeviceTypesVUnknown DeviceTypes = "unknown"
+)
+
+var (
+ // DeviceTypesPDesktop is a pointer to DeviceTypesVDesktop
+ DeviceTypesPDesktop = &_DeviceTypesPDesktop
+ // DeviceTypesPWindowsRT is a pointer to DeviceTypesVWindowsRT
+ DeviceTypesPWindowsRT = &_DeviceTypesPWindowsRT
+ // DeviceTypesPWinMO6 is a pointer to DeviceTypesVWinMO6
+ DeviceTypesPWinMO6 = &_DeviceTypesPWinMO6
+ // DeviceTypesPNokia is a pointer to DeviceTypesVNokia
+ DeviceTypesPNokia = &_DeviceTypesPNokia
+ // DeviceTypesPWindowsPhone is a pointer to DeviceTypesVWindowsPhone
+ DeviceTypesPWindowsPhone = &_DeviceTypesPWindowsPhone
+ // DeviceTypesPMac is a pointer to DeviceTypesVMac
+ DeviceTypesPMac = &_DeviceTypesPMac
+ // DeviceTypesPWinCE is a pointer to DeviceTypesVWinCE
+ DeviceTypesPWinCE = &_DeviceTypesPWinCE
+ // DeviceTypesPWinEmbedded is a pointer to DeviceTypesVWinEmbedded
+ DeviceTypesPWinEmbedded = &_DeviceTypesPWinEmbedded
+ // DeviceTypesPIPhone is a pointer to DeviceTypesVIPhone
+ DeviceTypesPIPhone = &_DeviceTypesPIPhone
+ // DeviceTypesPIPad is a pointer to DeviceTypesVIPad
+ DeviceTypesPIPad = &_DeviceTypesPIPad
+ // DeviceTypesPIPod is a pointer to DeviceTypesVIPod
+ DeviceTypesPIPod = &_DeviceTypesPIPod
+ // DeviceTypesPAndroid is a pointer to DeviceTypesVAndroid
+ DeviceTypesPAndroid = &_DeviceTypesPAndroid
+ // DeviceTypesPISocConsumer is a pointer to DeviceTypesVISocConsumer
+ DeviceTypesPISocConsumer = &_DeviceTypesPISocConsumer
+ // DeviceTypesPUnix is a pointer to DeviceTypesVUnix
+ DeviceTypesPUnix = &_DeviceTypesPUnix
+ // DeviceTypesPMacMDM is a pointer to DeviceTypesVMacMDM
+ DeviceTypesPMacMDM = &_DeviceTypesPMacMDM
+ // DeviceTypesPHoloLens is a pointer to DeviceTypesVHoloLens
+ DeviceTypesPHoloLens = &_DeviceTypesPHoloLens
+ // DeviceTypesPSurfaceHub is a pointer to DeviceTypesVSurfaceHub
+ DeviceTypesPSurfaceHub = &_DeviceTypesPSurfaceHub
+ // DeviceTypesPAndroidForWork is a pointer to DeviceTypesVAndroidForWork
+ DeviceTypesPAndroidForWork = &_DeviceTypesPAndroidForWork
+ // DeviceTypesPAndroidEnterprise is a pointer to DeviceTypesVAndroidEnterprise
+ DeviceTypesPAndroidEnterprise = &_DeviceTypesPAndroidEnterprise
+ // DeviceTypesPBlackberry is a pointer to DeviceTypesVBlackberry
+ DeviceTypesPBlackberry = &_DeviceTypesPBlackberry
+ // DeviceTypesPPalm is a pointer to DeviceTypesVPalm
+ DeviceTypesPPalm = &_DeviceTypesPPalm
+ // DeviceTypesPUnknown is a pointer to DeviceTypesVUnknown
+ DeviceTypesPUnknown = &_DeviceTypesPUnknown
+)
+
+var (
+ _DeviceTypesPDesktop = DeviceTypesVDesktop
+ _DeviceTypesPWindowsRT = DeviceTypesVWindowsRT
+ _DeviceTypesPWinMO6 = DeviceTypesVWinMO6
+ _DeviceTypesPNokia = DeviceTypesVNokia
+ _DeviceTypesPWindowsPhone = DeviceTypesVWindowsPhone
+ _DeviceTypesPMac = DeviceTypesVMac
+ _DeviceTypesPWinCE = DeviceTypesVWinCE
+ _DeviceTypesPWinEmbedded = DeviceTypesVWinEmbedded
+ _DeviceTypesPIPhone = DeviceTypesVIPhone
+ _DeviceTypesPIPad = DeviceTypesVIPad
+ _DeviceTypesPIPod = DeviceTypesVIPod
+ _DeviceTypesPAndroid = DeviceTypesVAndroid
+ _DeviceTypesPISocConsumer = DeviceTypesVISocConsumer
+ _DeviceTypesPUnix = DeviceTypesVUnix
+ _DeviceTypesPMacMDM = DeviceTypesVMacMDM
+ _DeviceTypesPHoloLens = DeviceTypesVHoloLens
+ _DeviceTypesPSurfaceHub = DeviceTypesVSurfaceHub
+ _DeviceTypesPAndroidForWork = DeviceTypesVAndroidForWork
+ _DeviceTypesPAndroidEnterprise = DeviceTypesVAndroidEnterprise
+ _DeviceTypesPBlackberry = DeviceTypesVBlackberry
+ _DeviceTypesPPalm = DeviceTypesVPalm
+ _DeviceTypesPUnknown = DeviceTypesVUnknown
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiagnostic.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiagnostic.go
new file mode 100644
index 00000000..d24a2852
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiagnostic.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiagnosticDataSubmissionMode undocumented
+type DiagnosticDataSubmissionMode string
+
+const (
+ // DiagnosticDataSubmissionModeVUserDefined undocumented
+ DiagnosticDataSubmissionModeVUserDefined DiagnosticDataSubmissionMode = "userDefined"
+ // DiagnosticDataSubmissionModeVNone undocumented
+ DiagnosticDataSubmissionModeVNone DiagnosticDataSubmissionMode = "none"
+ // DiagnosticDataSubmissionModeVBasic undocumented
+ DiagnosticDataSubmissionModeVBasic DiagnosticDataSubmissionMode = "basic"
+ // DiagnosticDataSubmissionModeVEnhanced undocumented
+ DiagnosticDataSubmissionModeVEnhanced DiagnosticDataSubmissionMode = "enhanced"
+ // DiagnosticDataSubmissionModeVFull undocumented
+ DiagnosticDataSubmissionModeVFull DiagnosticDataSubmissionMode = "full"
+)
+
+var (
+ // DiagnosticDataSubmissionModePUserDefined is a pointer to DiagnosticDataSubmissionModeVUserDefined
+ DiagnosticDataSubmissionModePUserDefined = &_DiagnosticDataSubmissionModePUserDefined
+ // DiagnosticDataSubmissionModePNone is a pointer to DiagnosticDataSubmissionModeVNone
+ DiagnosticDataSubmissionModePNone = &_DiagnosticDataSubmissionModePNone
+ // DiagnosticDataSubmissionModePBasic is a pointer to DiagnosticDataSubmissionModeVBasic
+ DiagnosticDataSubmissionModePBasic = &_DiagnosticDataSubmissionModePBasic
+ // DiagnosticDataSubmissionModePEnhanced is a pointer to DiagnosticDataSubmissionModeVEnhanced
+ DiagnosticDataSubmissionModePEnhanced = &_DiagnosticDataSubmissionModePEnhanced
+ // DiagnosticDataSubmissionModePFull is a pointer to DiagnosticDataSubmissionModeVFull
+ DiagnosticDataSubmissionModePFull = &_DiagnosticDataSubmissionModePFull
+)
+
+var (
+ _DiagnosticDataSubmissionModePUserDefined = DiagnosticDataSubmissionModeVUserDefined
+ _DiagnosticDataSubmissionModePNone = DiagnosticDataSubmissionModeVNone
+ _DiagnosticDataSubmissionModePBasic = DiagnosticDataSubmissionModeVBasic
+ _DiagnosticDataSubmissionModePEnhanced = DiagnosticDataSubmissionModeVEnhanced
+ _DiagnosticDataSubmissionModePFull = DiagnosticDataSubmissionModeVFull
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiamond.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiamond.go
new file mode 100644
index 00000000..68f841ab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiamond.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiamondModel undocumented
+type DiamondModel string
+
+const (
+ // DiamondModelVUnknown undocumented
+ DiamondModelVUnknown DiamondModel = "unknown"
+ // DiamondModelVAdversary undocumented
+ DiamondModelVAdversary DiamondModel = "adversary"
+ // DiamondModelVCapability undocumented
+ DiamondModelVCapability DiamondModel = "capability"
+ // DiamondModelVInfrastructure undocumented
+ DiamondModelVInfrastructure DiamondModel = "infrastructure"
+ // DiamondModelVVictim undocumented
+ DiamondModelVVictim DiamondModel = "victim"
+ // DiamondModelVUnknownFutureValue undocumented
+ DiamondModelVUnknownFutureValue DiamondModel = "unknownFutureValue"
+)
+
+var (
+ // DiamondModelPUnknown is a pointer to DiamondModelVUnknown
+ DiamondModelPUnknown = &_DiamondModelPUnknown
+ // DiamondModelPAdversary is a pointer to DiamondModelVAdversary
+ DiamondModelPAdversary = &_DiamondModelPAdversary
+ // DiamondModelPCapability is a pointer to DiamondModelVCapability
+ DiamondModelPCapability = &_DiamondModelPCapability
+ // DiamondModelPInfrastructure is a pointer to DiamondModelVInfrastructure
+ DiamondModelPInfrastructure = &_DiamondModelPInfrastructure
+ // DiamondModelPVictim is a pointer to DiamondModelVVictim
+ DiamondModelPVictim = &_DiamondModelPVictim
+ // DiamondModelPUnknownFutureValue is a pointer to DiamondModelVUnknownFutureValue
+ DiamondModelPUnknownFutureValue = &_DiamondModelPUnknownFutureValue
+)
+
+var (
+ _DiamondModelPUnknown = DiamondModelVUnknown
+ _DiamondModelPAdversary = DiamondModelVAdversary
+ _DiamondModelPCapability = DiamondModelVCapability
+ _DiamondModelPInfrastructure = DiamondModelVInfrastructure
+ _DiamondModelPVictim = DiamondModelVVictim
+ _DiamondModelPUnknownFutureValue = DiamondModelVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDirectory.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDirectory.go
new file mode 100644
index 00000000..5431f8d3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDirectory.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DirectoryDefinitionDiscoverabilities undocumented
+type DirectoryDefinitionDiscoverabilities string
+
+const (
+ // DirectoryDefinitionDiscoverabilitiesVNone undocumented
+ DirectoryDefinitionDiscoverabilitiesVNone DirectoryDefinitionDiscoverabilities = "None"
+ // DirectoryDefinitionDiscoverabilitiesVAttributeNames undocumented
+ DirectoryDefinitionDiscoverabilitiesVAttributeNames DirectoryDefinitionDiscoverabilities = "AttributeNames"
+ // DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes undocumented
+ DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes DirectoryDefinitionDiscoverabilities = "AttributeDataTypes"
+ // DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly undocumented
+ DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly DirectoryDefinitionDiscoverabilities = "AttributeReadOnly"
+ // DirectoryDefinitionDiscoverabilitiesVReferenceAttributes undocumented
+ DirectoryDefinitionDiscoverabilitiesVReferenceAttributes DirectoryDefinitionDiscoverabilities = "ReferenceAttributes"
+ // DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue undocumented
+ DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue DirectoryDefinitionDiscoverabilities = "UnknownFutureValue"
+)
+
+var (
+ // DirectoryDefinitionDiscoverabilitiesPNone is a pointer to DirectoryDefinitionDiscoverabilitiesVNone
+ DirectoryDefinitionDiscoverabilitiesPNone = &_DirectoryDefinitionDiscoverabilitiesPNone
+ // DirectoryDefinitionDiscoverabilitiesPAttributeNames is a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeNames
+ DirectoryDefinitionDiscoverabilitiesPAttributeNames = &_DirectoryDefinitionDiscoverabilitiesPAttributeNames
+ // DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes is a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes
+ DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes = &_DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes
+ // DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly is a pointer to DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly
+ DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly = &_DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly
+ // DirectoryDefinitionDiscoverabilitiesPReferenceAttributes is a pointer to DirectoryDefinitionDiscoverabilitiesVReferenceAttributes
+ DirectoryDefinitionDiscoverabilitiesPReferenceAttributes = &_DirectoryDefinitionDiscoverabilitiesPReferenceAttributes
+ // DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue is a pointer to DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue
+ DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue = &_DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue
+)
+
+var (
+ _DirectoryDefinitionDiscoverabilitiesPNone = DirectoryDefinitionDiscoverabilitiesVNone
+ _DirectoryDefinitionDiscoverabilitiesPAttributeNames = DirectoryDefinitionDiscoverabilitiesVAttributeNames
+ _DirectoryDefinitionDiscoverabilitiesPAttributeDataTypes = DirectoryDefinitionDiscoverabilitiesVAttributeDataTypes
+ _DirectoryDefinitionDiscoverabilitiesPAttributeReadOnly = DirectoryDefinitionDiscoverabilitiesVAttributeReadOnly
+ _DirectoryDefinitionDiscoverabilitiesPReferenceAttributes = DirectoryDefinitionDiscoverabilitiesVReferenceAttributes
+ _DirectoryDefinitionDiscoverabilitiesPUnknownFutureValue = DirectoryDefinitionDiscoverabilitiesVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiscovery.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiscovery.go
new file mode 100644
index 00000000..3c830830
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDiscovery.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiscoverySource undocumented
+type DiscoverySource string
+
+const (
+ // DiscoverySourceVUnknown undocumented
+ DiscoverySourceVUnknown DiscoverySource = "unknown"
+ // DiscoverySourceVAdminImport undocumented
+ DiscoverySourceVAdminImport DiscoverySource = "adminImport"
+ // DiscoverySourceVDeviceEnrollmentProgram undocumented
+ DiscoverySourceVDeviceEnrollmentProgram DiscoverySource = "deviceEnrollmentProgram"
+)
+
+var (
+ // DiscoverySourcePUnknown is a pointer to DiscoverySourceVUnknown
+ DiscoverySourcePUnknown = &_DiscoverySourcePUnknown
+ // DiscoverySourcePAdminImport is a pointer to DiscoverySourceVAdminImport
+ DiscoverySourcePAdminImport = &_DiscoverySourcePAdminImport
+ // DiscoverySourcePDeviceEnrollmentProgram is a pointer to DiscoverySourceVDeviceEnrollmentProgram
+ DiscoverySourcePDeviceEnrollmentProgram = &_DiscoverySourcePDeviceEnrollmentProgram
+)
+
+var (
+ _DiscoverySourcePUnknown = DiscoverySourceVUnknown
+ _DiscoverySourcePAdminImport = DiscoverySourceVAdminImport
+ _DiscoverySourcePDeviceEnrollmentProgram = DiscoverySourceVDeviceEnrollmentProgram
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDisk.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDisk.go
new file mode 100644
index 00000000..8726d003
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDisk.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiskType undocumented
+type DiskType string
+
+const (
+ // DiskTypeVUnkown undocumented
+ DiskTypeVUnkown DiskType = "unkown"
+ // DiskTypeVHdd undocumented
+ DiskTypeVHdd DiskType = "hdd"
+ // DiskTypeVSsd undocumented
+ DiskTypeVSsd DiskType = "ssd"
+)
+
+var (
+ // DiskTypePUnkown is a pointer to DiskTypeVUnkown
+ DiskTypePUnkown = &_DiskTypePUnkown
+ // DiskTypePHdd is a pointer to DiskTypeVHdd
+ DiskTypePHdd = &_DiskTypePHdd
+ // DiskTypePSsd is a pointer to DiskTypeVSsd
+ DiskTypePSsd = &_DiskTypePSsd
+)
+
+var (
+ _DiskTypePUnkown = DiskTypeVUnkown
+ _DiskTypePHdd = DiskTypeVHdd
+ _DiskTypePSsd = DiskTypeVSsd
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDlp.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDlp.go
new file mode 100644
index 00000000..449004d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDlp.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpAction undocumented
+type DlpAction string
+
+const (
+ // DlpActionVNotifyUser undocumented
+ DlpActionVNotifyUser DlpAction = "notifyUser"
+ // DlpActionVBlockAccess undocumented
+ DlpActionVBlockAccess DlpAction = "blockAccess"
+ // DlpActionVDeviceRestriction undocumented
+ DlpActionVDeviceRestriction DlpAction = "deviceRestriction"
+)
+
+var (
+ // DlpActionPNotifyUser is a pointer to DlpActionVNotifyUser
+ DlpActionPNotifyUser = &_DlpActionPNotifyUser
+ // DlpActionPBlockAccess is a pointer to DlpActionVBlockAccess
+ DlpActionPBlockAccess = &_DlpActionPBlockAccess
+ // DlpActionPDeviceRestriction is a pointer to DlpActionVDeviceRestriction
+ DlpActionPDeviceRestriction = &_DlpActionPDeviceRestriction
+)
+
+var (
+ _DlpActionPNotifyUser = DlpActionVNotifyUser
+ _DlpActionPBlockAccess = DlpActionVBlockAccess
+ _DlpActionPDeviceRestriction = DlpActionVDeviceRestriction
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumDomain.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDomain.go
new file mode 100644
index 00000000..7fa753ed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumDomain.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DomainNameSource undocumented
+type DomainNameSource string
+
+const (
+ // DomainNameSourceVFullDomainName undocumented
+ DomainNameSourceVFullDomainName DomainNameSource = "fullDomainName"
+ // DomainNameSourceVNetBiosDomainName undocumented
+ DomainNameSourceVNetBiosDomainName DomainNameSource = "netBiosDomainName"
+)
+
+var (
+ // DomainNameSourcePFullDomainName is a pointer to DomainNameSourceVFullDomainName
+ DomainNameSourcePFullDomainName = &_DomainNameSourcePFullDomainName
+ // DomainNameSourcePNetBiosDomainName is a pointer to DomainNameSourceVNetBiosDomainName
+ DomainNameSourcePNetBiosDomainName = &_DomainNameSourcePNetBiosDomainName
+)
+
+var (
+ _DomainNameSourcePFullDomainName = DomainNameSourceVFullDomainName
+ _DomainNameSourcePNetBiosDomainName = DomainNameSourceVNetBiosDomainName
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEap.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEap.go
new file mode 100644
index 00000000..a813676c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEap.go
@@ -0,0 +1,77 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EapFastConfiguration undocumented
+type EapFastConfiguration string
+
+const (
+ // EapFastConfigurationVNoProtectedAccessCredential undocumented
+ EapFastConfigurationVNoProtectedAccessCredential EapFastConfiguration = "noProtectedAccessCredential"
+ // EapFastConfigurationVUseProtectedAccessCredential undocumented
+ EapFastConfigurationVUseProtectedAccessCredential EapFastConfiguration = "useProtectedAccessCredential"
+ // EapFastConfigurationVUseProtectedAccessCredentialAndProvision undocumented
+ EapFastConfigurationVUseProtectedAccessCredentialAndProvision EapFastConfiguration = "useProtectedAccessCredentialAndProvision"
+ // EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously undocumented
+ EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously EapFastConfiguration = "useProtectedAccessCredentialAndProvisionAnonymously"
+)
+
+var (
+ // EapFastConfigurationPNoProtectedAccessCredential is a pointer to EapFastConfigurationVNoProtectedAccessCredential
+ EapFastConfigurationPNoProtectedAccessCredential = &_EapFastConfigurationPNoProtectedAccessCredential
+ // EapFastConfigurationPUseProtectedAccessCredential is a pointer to EapFastConfigurationVUseProtectedAccessCredential
+ EapFastConfigurationPUseProtectedAccessCredential = &_EapFastConfigurationPUseProtectedAccessCredential
+ // EapFastConfigurationPUseProtectedAccessCredentialAndProvision is a pointer to EapFastConfigurationVUseProtectedAccessCredentialAndProvision
+ EapFastConfigurationPUseProtectedAccessCredentialAndProvision = &_EapFastConfigurationPUseProtectedAccessCredentialAndProvision
+ // EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously is a pointer to EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously
+ EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously = &_EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously
+)
+
+var (
+ _EapFastConfigurationPNoProtectedAccessCredential = EapFastConfigurationVNoProtectedAccessCredential
+ _EapFastConfigurationPUseProtectedAccessCredential = EapFastConfigurationVUseProtectedAccessCredential
+ _EapFastConfigurationPUseProtectedAccessCredentialAndProvision = EapFastConfigurationVUseProtectedAccessCredentialAndProvision
+ _EapFastConfigurationPUseProtectedAccessCredentialAndProvisionAnonymously = EapFastConfigurationVUseProtectedAccessCredentialAndProvisionAnonymously
+)
+
+// EapType undocumented
+type EapType string
+
+const (
+ // EapTypeVEapTLS undocumented
+ EapTypeVEapTLS EapType = "eapTls"
+ // EapTypeVLeap undocumented
+ EapTypeVLeap EapType = "leap"
+ // EapTypeVEapSim undocumented
+ EapTypeVEapSim EapType = "eapSim"
+ // EapTypeVEapTtls undocumented
+ EapTypeVEapTtls EapType = "eapTtls"
+ // EapTypeVPeap undocumented
+ EapTypeVPeap EapType = "peap"
+ // EapTypeVEapFast undocumented
+ EapTypeVEapFast EapType = "eapFast"
+)
+
+var (
+ // EapTypePEapTLS is a pointer to EapTypeVEapTLS
+ EapTypePEapTLS = &_EapTypePEapTLS
+ // EapTypePLeap is a pointer to EapTypeVLeap
+ EapTypePLeap = &_EapTypePLeap
+ // EapTypePEapSim is a pointer to EapTypeVEapSim
+ EapTypePEapSim = &_EapTypePEapSim
+ // EapTypePEapTtls is a pointer to EapTypeVEapTtls
+ EapTypePEapTtls = &_EapTypePEapTtls
+ // EapTypePPeap is a pointer to EapTypeVPeap
+ EapTypePPeap = &_EapTypePPeap
+ // EapTypePEapFast is a pointer to EapTypeVEapFast
+ EapTypePEapFast = &_EapTypePEapFast
+)
+
+var (
+ _EapTypePEapTLS = EapTypeVEapTLS
+ _EapTypePLeap = EapTypeVLeap
+ _EapTypePEapSim = EapTypeVEapSim
+ _EapTypePEapTtls = EapTypeVEapTtls
+ _EapTypePPeap = EapTypeVPeap
+ _EapTypePEapFast = EapTypeVEapFast
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEas.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEas.go
new file mode 100644
index 00000000..e7d91544
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEas.go
@@ -0,0 +1,72 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EasAuthenticationMethod undocumented
+type EasAuthenticationMethod string
+
+const (
+ // EasAuthenticationMethodVUsernameAndPassword undocumented
+ EasAuthenticationMethodVUsernameAndPassword EasAuthenticationMethod = "usernameAndPassword"
+ // EasAuthenticationMethodVCertificate undocumented
+ EasAuthenticationMethodVCertificate EasAuthenticationMethod = "certificate"
+ // EasAuthenticationMethodVDerivedCredential undocumented
+ EasAuthenticationMethodVDerivedCredential EasAuthenticationMethod = "derivedCredential"
+)
+
+var (
+ // EasAuthenticationMethodPUsernameAndPassword is a pointer to EasAuthenticationMethodVUsernameAndPassword
+ EasAuthenticationMethodPUsernameAndPassword = &_EasAuthenticationMethodPUsernameAndPassword
+ // EasAuthenticationMethodPCertificate is a pointer to EasAuthenticationMethodVCertificate
+ EasAuthenticationMethodPCertificate = &_EasAuthenticationMethodPCertificate
+ // EasAuthenticationMethodPDerivedCredential is a pointer to EasAuthenticationMethodVDerivedCredential
+ EasAuthenticationMethodPDerivedCredential = &_EasAuthenticationMethodPDerivedCredential
+)
+
+var (
+ _EasAuthenticationMethodPUsernameAndPassword = EasAuthenticationMethodVUsernameAndPassword
+ _EasAuthenticationMethodPCertificate = EasAuthenticationMethodVCertificate
+ _EasAuthenticationMethodPDerivedCredential = EasAuthenticationMethodVDerivedCredential
+)
+
+// EasServices undocumented
+type EasServices string
+
+const (
+ // EasServicesVNone undocumented
+ EasServicesVNone EasServices = "none"
+ // EasServicesVCalendars undocumented
+ EasServicesVCalendars EasServices = "calendars"
+ // EasServicesVContacts undocumented
+ EasServicesVContacts EasServices = "contacts"
+ // EasServicesVEmail undocumented
+ EasServicesVEmail EasServices = "email"
+ // EasServicesVNotes undocumented
+ EasServicesVNotes EasServices = "notes"
+ // EasServicesVReminders undocumented
+ EasServicesVReminders EasServices = "reminders"
+)
+
+var (
+ // EasServicesPNone is a pointer to EasServicesVNone
+ EasServicesPNone = &_EasServicesPNone
+ // EasServicesPCalendars is a pointer to EasServicesVCalendars
+ EasServicesPCalendars = &_EasServicesPCalendars
+ // EasServicesPContacts is a pointer to EasServicesVContacts
+ EasServicesPContacts = &_EasServicesPContacts
+ // EasServicesPEmail is a pointer to EasServicesVEmail
+ EasServicesPEmail = &_EasServicesPEmail
+ // EasServicesPNotes is a pointer to EasServicesVNotes
+ EasServicesPNotes = &_EasServicesPNotes
+ // EasServicesPReminders is a pointer to EasServicesVReminders
+ EasServicesPReminders = &_EasServicesPReminders
+)
+
+var (
+ _EasServicesPNone = EasServicesVNone
+ _EasServicesPCalendars = EasServicesVCalendars
+ _EasServicesPContacts = EasServicesVContacts
+ _EasServicesPEmail = EasServicesVEmail
+ _EasServicesPNotes = EasServicesVNotes
+ _EasServicesPReminders = EasServicesVReminders
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdge.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdge.go
new file mode 100644
index 00000000..d08288b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdge.go
@@ -0,0 +1,163 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeCookiePolicy undocumented
+type EdgeCookiePolicy string
+
+const (
+ // EdgeCookiePolicyVUserDefined undocumented
+ EdgeCookiePolicyVUserDefined EdgeCookiePolicy = "userDefined"
+ // EdgeCookiePolicyVAllow undocumented
+ EdgeCookiePolicyVAllow EdgeCookiePolicy = "allow"
+ // EdgeCookiePolicyVBlockThirdParty undocumented
+ EdgeCookiePolicyVBlockThirdParty EdgeCookiePolicy = "blockThirdParty"
+ // EdgeCookiePolicyVBlockAll undocumented
+ EdgeCookiePolicyVBlockAll EdgeCookiePolicy = "blockAll"
+)
+
+var (
+ // EdgeCookiePolicyPUserDefined is a pointer to EdgeCookiePolicyVUserDefined
+ EdgeCookiePolicyPUserDefined = &_EdgeCookiePolicyPUserDefined
+ // EdgeCookiePolicyPAllow is a pointer to EdgeCookiePolicyVAllow
+ EdgeCookiePolicyPAllow = &_EdgeCookiePolicyPAllow
+ // EdgeCookiePolicyPBlockThirdParty is a pointer to EdgeCookiePolicyVBlockThirdParty
+ EdgeCookiePolicyPBlockThirdParty = &_EdgeCookiePolicyPBlockThirdParty
+ // EdgeCookiePolicyPBlockAll is a pointer to EdgeCookiePolicyVBlockAll
+ EdgeCookiePolicyPBlockAll = &_EdgeCookiePolicyPBlockAll
+)
+
+var (
+ _EdgeCookiePolicyPUserDefined = EdgeCookiePolicyVUserDefined
+ _EdgeCookiePolicyPAllow = EdgeCookiePolicyVAllow
+ _EdgeCookiePolicyPBlockThirdParty = EdgeCookiePolicyVBlockThirdParty
+ _EdgeCookiePolicyPBlockAll = EdgeCookiePolicyVBlockAll
+)
+
+// EdgeKioskModeRestrictionType undocumented
+type EdgeKioskModeRestrictionType string
+
+const (
+ // EdgeKioskModeRestrictionTypeVNotConfigured undocumented
+ EdgeKioskModeRestrictionTypeVNotConfigured EdgeKioskModeRestrictionType = "notConfigured"
+ // EdgeKioskModeRestrictionTypeVDigitalSignage undocumented
+ EdgeKioskModeRestrictionTypeVDigitalSignage EdgeKioskModeRestrictionType = "digitalSignage"
+ // EdgeKioskModeRestrictionTypeVNormalMode undocumented
+ EdgeKioskModeRestrictionTypeVNormalMode EdgeKioskModeRestrictionType = "normalMode"
+ // EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp undocumented
+ EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp EdgeKioskModeRestrictionType = "publicBrowsingSingleApp"
+ // EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp undocumented
+ EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp EdgeKioskModeRestrictionType = "publicBrowsingMultiApp"
+)
+
+var (
+ // EdgeKioskModeRestrictionTypePNotConfigured is a pointer to EdgeKioskModeRestrictionTypeVNotConfigured
+ EdgeKioskModeRestrictionTypePNotConfigured = &_EdgeKioskModeRestrictionTypePNotConfigured
+ // EdgeKioskModeRestrictionTypePDigitalSignage is a pointer to EdgeKioskModeRestrictionTypeVDigitalSignage
+ EdgeKioskModeRestrictionTypePDigitalSignage = &_EdgeKioskModeRestrictionTypePDigitalSignage
+ // EdgeKioskModeRestrictionTypePNormalMode is a pointer to EdgeKioskModeRestrictionTypeVNormalMode
+ EdgeKioskModeRestrictionTypePNormalMode = &_EdgeKioskModeRestrictionTypePNormalMode
+ // EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp is a pointer to EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp
+ EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp = &_EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp
+ // EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp is a pointer to EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp
+ EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp = &_EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp
+)
+
+var (
+ _EdgeKioskModeRestrictionTypePNotConfigured = EdgeKioskModeRestrictionTypeVNotConfigured
+ _EdgeKioskModeRestrictionTypePDigitalSignage = EdgeKioskModeRestrictionTypeVDigitalSignage
+ _EdgeKioskModeRestrictionTypePNormalMode = EdgeKioskModeRestrictionTypeVNormalMode
+ _EdgeKioskModeRestrictionTypePPublicBrowsingSingleApp = EdgeKioskModeRestrictionTypeVPublicBrowsingSingleApp
+ _EdgeKioskModeRestrictionTypePPublicBrowsingMultiApp = EdgeKioskModeRestrictionTypeVPublicBrowsingMultiApp
+)
+
+// EdgeOpenOptions undocumented
+type EdgeOpenOptions string
+
+const (
+ // EdgeOpenOptionsVNotConfigured undocumented
+ EdgeOpenOptionsVNotConfigured EdgeOpenOptions = "notConfigured"
+ // EdgeOpenOptionsVStartPage undocumented
+ EdgeOpenOptionsVStartPage EdgeOpenOptions = "startPage"
+ // EdgeOpenOptionsVNewTabPage undocumented
+ EdgeOpenOptionsVNewTabPage EdgeOpenOptions = "newTabPage"
+ // EdgeOpenOptionsVPreviousPages undocumented
+ EdgeOpenOptionsVPreviousPages EdgeOpenOptions = "previousPages"
+ // EdgeOpenOptionsVSpecificPages undocumented
+ EdgeOpenOptionsVSpecificPages EdgeOpenOptions = "specificPages"
+)
+
+var (
+ // EdgeOpenOptionsPNotConfigured is a pointer to EdgeOpenOptionsVNotConfigured
+ EdgeOpenOptionsPNotConfigured = &_EdgeOpenOptionsPNotConfigured
+ // EdgeOpenOptionsPStartPage is a pointer to EdgeOpenOptionsVStartPage
+ EdgeOpenOptionsPStartPage = &_EdgeOpenOptionsPStartPage
+ // EdgeOpenOptionsPNewTabPage is a pointer to EdgeOpenOptionsVNewTabPage
+ EdgeOpenOptionsPNewTabPage = &_EdgeOpenOptionsPNewTabPage
+ // EdgeOpenOptionsPPreviousPages is a pointer to EdgeOpenOptionsVPreviousPages
+ EdgeOpenOptionsPPreviousPages = &_EdgeOpenOptionsPPreviousPages
+ // EdgeOpenOptionsPSpecificPages is a pointer to EdgeOpenOptionsVSpecificPages
+ EdgeOpenOptionsPSpecificPages = &_EdgeOpenOptionsPSpecificPages
+)
+
+var (
+ _EdgeOpenOptionsPNotConfigured = EdgeOpenOptionsVNotConfigured
+ _EdgeOpenOptionsPStartPage = EdgeOpenOptionsVStartPage
+ _EdgeOpenOptionsPNewTabPage = EdgeOpenOptionsVNewTabPage
+ _EdgeOpenOptionsPPreviousPages = EdgeOpenOptionsVPreviousPages
+ _EdgeOpenOptionsPSpecificPages = EdgeOpenOptionsVSpecificPages
+)
+
+// EdgeSearchEngineType undocumented
+type EdgeSearchEngineType string
+
+const (
+ // EdgeSearchEngineTypeVDefault undocumented
+ EdgeSearchEngineTypeVDefault EdgeSearchEngineType = "default"
+ // EdgeSearchEngineTypeVBing undocumented
+ EdgeSearchEngineTypeVBing EdgeSearchEngineType = "bing"
+)
+
+var (
+ // EdgeSearchEngineTypePDefault is a pointer to EdgeSearchEngineTypeVDefault
+ EdgeSearchEngineTypePDefault = &_EdgeSearchEngineTypePDefault
+ // EdgeSearchEngineTypePBing is a pointer to EdgeSearchEngineTypeVBing
+ EdgeSearchEngineTypePBing = &_EdgeSearchEngineTypePBing
+)
+
+var (
+ _EdgeSearchEngineTypePDefault = EdgeSearchEngineTypeVDefault
+ _EdgeSearchEngineTypePBing = EdgeSearchEngineTypeVBing
+)
+
+// EdgeTelemetryMode undocumented
+type EdgeTelemetryMode string
+
+const (
+ // EdgeTelemetryModeVNotConfigured undocumented
+ EdgeTelemetryModeVNotConfigured EdgeTelemetryMode = "notConfigured"
+ // EdgeTelemetryModeVIntranet undocumented
+ EdgeTelemetryModeVIntranet EdgeTelemetryMode = "intranet"
+ // EdgeTelemetryModeVInternet undocumented
+ EdgeTelemetryModeVInternet EdgeTelemetryMode = "internet"
+ // EdgeTelemetryModeVIntranetAndInternet undocumented
+ EdgeTelemetryModeVIntranetAndInternet EdgeTelemetryMode = "intranetAndInternet"
+)
+
+var (
+ // EdgeTelemetryModePNotConfigured is a pointer to EdgeTelemetryModeVNotConfigured
+ EdgeTelemetryModePNotConfigured = &_EdgeTelemetryModePNotConfigured
+ // EdgeTelemetryModePIntranet is a pointer to EdgeTelemetryModeVIntranet
+ EdgeTelemetryModePIntranet = &_EdgeTelemetryModePIntranet
+ // EdgeTelemetryModePInternet is a pointer to EdgeTelemetryModeVInternet
+ EdgeTelemetryModePInternet = &_EdgeTelemetryModePInternet
+ // EdgeTelemetryModePIntranetAndInternet is a pointer to EdgeTelemetryModeVIntranetAndInternet
+ EdgeTelemetryModePIntranetAndInternet = &_EdgeTelemetryModePIntranetAndInternet
+)
+
+var (
+ _EdgeTelemetryModePNotConfigured = EdgeTelemetryModeVNotConfigured
+ _EdgeTelemetryModePIntranet = EdgeTelemetryModeVIntranet
+ _EdgeTelemetryModePInternet = EdgeTelemetryModeVInternet
+ _EdgeTelemetryModePIntranetAndInternet = EdgeTelemetryModeVIntranetAndInternet
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdition.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdition.go
new file mode 100644
index 00000000..0f27aeec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEdition.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EditionUpgradeLicenseType undocumented
+type EditionUpgradeLicenseType string
+
+const (
+ // EditionUpgradeLicenseTypeVProductKey undocumented
+ EditionUpgradeLicenseTypeVProductKey EditionUpgradeLicenseType = "productKey"
+ // EditionUpgradeLicenseTypeVLicenseFile undocumented
+ EditionUpgradeLicenseTypeVLicenseFile EditionUpgradeLicenseType = "licenseFile"
+ // EditionUpgradeLicenseTypeVNotConfigured undocumented
+ EditionUpgradeLicenseTypeVNotConfigured EditionUpgradeLicenseType = "notConfigured"
+)
+
+var (
+ // EditionUpgradeLicenseTypePProductKey is a pointer to EditionUpgradeLicenseTypeVProductKey
+ EditionUpgradeLicenseTypePProductKey = &_EditionUpgradeLicenseTypePProductKey
+ // EditionUpgradeLicenseTypePLicenseFile is a pointer to EditionUpgradeLicenseTypeVLicenseFile
+ EditionUpgradeLicenseTypePLicenseFile = &_EditionUpgradeLicenseTypePLicenseFile
+ // EditionUpgradeLicenseTypePNotConfigured is a pointer to EditionUpgradeLicenseTypeVNotConfigured
+ EditionUpgradeLicenseTypePNotConfigured = &_EditionUpgradeLicenseTypePNotConfigured
+)
+
+var (
+ _EditionUpgradeLicenseTypePProductKey = EditionUpgradeLicenseTypeVProductKey
+ _EditionUpgradeLicenseTypePLicenseFile = EditionUpgradeLicenseTypeVLicenseFile
+ _EditionUpgradeLicenseTypePNotConfigured = EditionUpgradeLicenseTypeVNotConfigured
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEducation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEducation.go
new file mode 100644
index 00000000..a784198f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEducation.go
@@ -0,0 +1,257 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationAssignmentStatus undocumented
+type EducationAssignmentStatus string
+
+const (
+ // EducationAssignmentStatusVDraft undocumented
+ EducationAssignmentStatusVDraft EducationAssignmentStatus = "draft"
+ // EducationAssignmentStatusVPublished undocumented
+ EducationAssignmentStatusVPublished EducationAssignmentStatus = "published"
+ // EducationAssignmentStatusVAssigned undocumented
+ EducationAssignmentStatusVAssigned EducationAssignmentStatus = "assigned"
+ // EducationAssignmentStatusVUnknownFutureValue undocumented
+ EducationAssignmentStatusVUnknownFutureValue EducationAssignmentStatus = "unknownFutureValue"
+)
+
+var (
+ // EducationAssignmentStatusPDraft is a pointer to EducationAssignmentStatusVDraft
+ EducationAssignmentStatusPDraft = &_EducationAssignmentStatusPDraft
+ // EducationAssignmentStatusPPublished is a pointer to EducationAssignmentStatusVPublished
+ EducationAssignmentStatusPPublished = &_EducationAssignmentStatusPPublished
+ // EducationAssignmentStatusPAssigned is a pointer to EducationAssignmentStatusVAssigned
+ EducationAssignmentStatusPAssigned = &_EducationAssignmentStatusPAssigned
+ // EducationAssignmentStatusPUnknownFutureValue is a pointer to EducationAssignmentStatusVUnknownFutureValue
+ EducationAssignmentStatusPUnknownFutureValue = &_EducationAssignmentStatusPUnknownFutureValue
+)
+
+var (
+ _EducationAssignmentStatusPDraft = EducationAssignmentStatusVDraft
+ _EducationAssignmentStatusPPublished = EducationAssignmentStatusVPublished
+ _EducationAssignmentStatusPAssigned = EducationAssignmentStatusVAssigned
+ _EducationAssignmentStatusPUnknownFutureValue = EducationAssignmentStatusVUnknownFutureValue
+)
+
+// EducationExternalSource undocumented
+type EducationExternalSource string
+
+const (
+ // EducationExternalSourceVSis undocumented
+ EducationExternalSourceVSis EducationExternalSource = "sis"
+ // EducationExternalSourceVManual undocumented
+ EducationExternalSourceVManual EducationExternalSource = "manual"
+ // EducationExternalSourceVUnknownFutureValue undocumented
+ EducationExternalSourceVUnknownFutureValue EducationExternalSource = "unknownFutureValue"
+)
+
+var (
+ // EducationExternalSourcePSis is a pointer to EducationExternalSourceVSis
+ EducationExternalSourcePSis = &_EducationExternalSourcePSis
+ // EducationExternalSourcePManual is a pointer to EducationExternalSourceVManual
+ EducationExternalSourcePManual = &_EducationExternalSourcePManual
+ // EducationExternalSourcePUnknownFutureValue is a pointer to EducationExternalSourceVUnknownFutureValue
+ EducationExternalSourcePUnknownFutureValue = &_EducationExternalSourcePUnknownFutureValue
+)
+
+var (
+ _EducationExternalSourcePSis = EducationExternalSourceVSis
+ _EducationExternalSourcePManual = EducationExternalSourceVManual
+ _EducationExternalSourcePUnknownFutureValue = EducationExternalSourceVUnknownFutureValue
+)
+
+// EducationGender undocumented
+type EducationGender string
+
+const (
+ // EducationGenderVFemale undocumented
+ EducationGenderVFemale EducationGender = "female"
+ // EducationGenderVMale undocumented
+ EducationGenderVMale EducationGender = "male"
+ // EducationGenderVOther undocumented
+ EducationGenderVOther EducationGender = "other"
+ // EducationGenderVUnknownFutureValue undocumented
+ EducationGenderVUnknownFutureValue EducationGender = "unknownFutureValue"
+)
+
+var (
+ // EducationGenderPFemale is a pointer to EducationGenderVFemale
+ EducationGenderPFemale = &_EducationGenderPFemale
+ // EducationGenderPMale is a pointer to EducationGenderVMale
+ EducationGenderPMale = &_EducationGenderPMale
+ // EducationGenderPOther is a pointer to EducationGenderVOther
+ EducationGenderPOther = &_EducationGenderPOther
+ // EducationGenderPUnknownFutureValue is a pointer to EducationGenderVUnknownFutureValue
+ EducationGenderPUnknownFutureValue = &_EducationGenderPUnknownFutureValue
+)
+
+var (
+ _EducationGenderPFemale = EducationGenderVFemale
+ _EducationGenderPMale = EducationGenderVMale
+ _EducationGenderPOther = EducationGenderVOther
+ _EducationGenderPUnknownFutureValue = EducationGenderVUnknownFutureValue
+)
+
+// EducationSubmissionStatus undocumented
+type EducationSubmissionStatus string
+
+const (
+ // EducationSubmissionStatusVWorking undocumented
+ EducationSubmissionStatusVWorking EducationSubmissionStatus = "working"
+ // EducationSubmissionStatusVSubmitted undocumented
+ EducationSubmissionStatusVSubmitted EducationSubmissionStatus = "submitted"
+ // EducationSubmissionStatusVReleased undocumented
+ EducationSubmissionStatusVReleased EducationSubmissionStatus = "released"
+ // EducationSubmissionStatusVReturned undocumented
+ EducationSubmissionStatusVReturned EducationSubmissionStatus = "returned"
+ // EducationSubmissionStatusVUnknownFutureValue undocumented
+ EducationSubmissionStatusVUnknownFutureValue EducationSubmissionStatus = "unknownFutureValue"
+)
+
+var (
+ // EducationSubmissionStatusPWorking is a pointer to EducationSubmissionStatusVWorking
+ EducationSubmissionStatusPWorking = &_EducationSubmissionStatusPWorking
+ // EducationSubmissionStatusPSubmitted is a pointer to EducationSubmissionStatusVSubmitted
+ EducationSubmissionStatusPSubmitted = &_EducationSubmissionStatusPSubmitted
+ // EducationSubmissionStatusPReleased is a pointer to EducationSubmissionStatusVReleased
+ EducationSubmissionStatusPReleased = &_EducationSubmissionStatusPReleased
+ // EducationSubmissionStatusPReturned is a pointer to EducationSubmissionStatusVReturned
+ EducationSubmissionStatusPReturned = &_EducationSubmissionStatusPReturned
+ // EducationSubmissionStatusPUnknownFutureValue is a pointer to EducationSubmissionStatusVUnknownFutureValue
+ EducationSubmissionStatusPUnknownFutureValue = &_EducationSubmissionStatusPUnknownFutureValue
+)
+
+var (
+ _EducationSubmissionStatusPWorking = EducationSubmissionStatusVWorking
+ _EducationSubmissionStatusPSubmitted = EducationSubmissionStatusVSubmitted
+ _EducationSubmissionStatusPReleased = EducationSubmissionStatusVReleased
+ _EducationSubmissionStatusPReturned = EducationSubmissionStatusVReturned
+ _EducationSubmissionStatusPUnknownFutureValue = EducationSubmissionStatusVUnknownFutureValue
+)
+
+// EducationSynchronizationProfileState undocumented
+type EducationSynchronizationProfileState string
+
+const (
+ // EducationSynchronizationProfileStateVDeleting undocumented
+ EducationSynchronizationProfileStateVDeleting EducationSynchronizationProfileState = "deleting"
+ // EducationSynchronizationProfileStateVDeletionFailed undocumented
+ EducationSynchronizationProfileStateVDeletionFailed EducationSynchronizationProfileState = "deletionFailed"
+ // EducationSynchronizationProfileStateVProvisioningFailed undocumented
+ EducationSynchronizationProfileStateVProvisioningFailed EducationSynchronizationProfileState = "provisioningFailed"
+ // EducationSynchronizationProfileStateVProvisioned undocumented
+ EducationSynchronizationProfileStateVProvisioned EducationSynchronizationProfileState = "provisioned"
+ // EducationSynchronizationProfileStateVProvisioning undocumented
+ EducationSynchronizationProfileStateVProvisioning EducationSynchronizationProfileState = "provisioning"
+ // EducationSynchronizationProfileStateVUnknownFutureValue undocumented
+ EducationSynchronizationProfileStateVUnknownFutureValue EducationSynchronizationProfileState = "unknownFutureValue"
+)
+
+var (
+ // EducationSynchronizationProfileStatePDeleting is a pointer to EducationSynchronizationProfileStateVDeleting
+ EducationSynchronizationProfileStatePDeleting = &_EducationSynchronizationProfileStatePDeleting
+ // EducationSynchronizationProfileStatePDeletionFailed is a pointer to EducationSynchronizationProfileStateVDeletionFailed
+ EducationSynchronizationProfileStatePDeletionFailed = &_EducationSynchronizationProfileStatePDeletionFailed
+ // EducationSynchronizationProfileStatePProvisioningFailed is a pointer to EducationSynchronizationProfileStateVProvisioningFailed
+ EducationSynchronizationProfileStatePProvisioningFailed = &_EducationSynchronizationProfileStatePProvisioningFailed
+ // EducationSynchronizationProfileStatePProvisioned is a pointer to EducationSynchronizationProfileStateVProvisioned
+ EducationSynchronizationProfileStatePProvisioned = &_EducationSynchronizationProfileStatePProvisioned
+ // EducationSynchronizationProfileStatePProvisioning is a pointer to EducationSynchronizationProfileStateVProvisioning
+ EducationSynchronizationProfileStatePProvisioning = &_EducationSynchronizationProfileStatePProvisioning
+ // EducationSynchronizationProfileStatePUnknownFutureValue is a pointer to EducationSynchronizationProfileStateVUnknownFutureValue
+ EducationSynchronizationProfileStatePUnknownFutureValue = &_EducationSynchronizationProfileStatePUnknownFutureValue
+)
+
+var (
+ _EducationSynchronizationProfileStatePDeleting = EducationSynchronizationProfileStateVDeleting
+ _EducationSynchronizationProfileStatePDeletionFailed = EducationSynchronizationProfileStateVDeletionFailed
+ _EducationSynchronizationProfileStatePProvisioningFailed = EducationSynchronizationProfileStateVProvisioningFailed
+ _EducationSynchronizationProfileStatePProvisioned = EducationSynchronizationProfileStateVProvisioned
+ _EducationSynchronizationProfileStatePProvisioning = EducationSynchronizationProfileStateVProvisioning
+ _EducationSynchronizationProfileStatePUnknownFutureValue = EducationSynchronizationProfileStateVUnknownFutureValue
+)
+
+// EducationSynchronizationStatus undocumented
+type EducationSynchronizationStatus string
+
+const (
+ // EducationSynchronizationStatusVPaused undocumented
+ EducationSynchronizationStatusVPaused EducationSynchronizationStatus = "paused"
+ // EducationSynchronizationStatusVInProgress undocumented
+ EducationSynchronizationStatusVInProgress EducationSynchronizationStatus = "inProgress"
+ // EducationSynchronizationStatusVSuccess undocumented
+ EducationSynchronizationStatusVSuccess EducationSynchronizationStatus = "success"
+ // EducationSynchronizationStatusVError undocumented
+ EducationSynchronizationStatusVError EducationSynchronizationStatus = "error"
+ // EducationSynchronizationStatusVValidationError undocumented
+ EducationSynchronizationStatusVValidationError EducationSynchronizationStatus = "validationError"
+ // EducationSynchronizationStatusVQuarantined undocumented
+ EducationSynchronizationStatusVQuarantined EducationSynchronizationStatus = "quarantined"
+ // EducationSynchronizationStatusVUnknownFutureValue undocumented
+ EducationSynchronizationStatusVUnknownFutureValue EducationSynchronizationStatus = "unknownFutureValue"
+)
+
+var (
+ // EducationSynchronizationStatusPPaused is a pointer to EducationSynchronizationStatusVPaused
+ EducationSynchronizationStatusPPaused = &_EducationSynchronizationStatusPPaused
+ // EducationSynchronizationStatusPInProgress is a pointer to EducationSynchronizationStatusVInProgress
+ EducationSynchronizationStatusPInProgress = &_EducationSynchronizationStatusPInProgress
+ // EducationSynchronizationStatusPSuccess is a pointer to EducationSynchronizationStatusVSuccess
+ EducationSynchronizationStatusPSuccess = &_EducationSynchronizationStatusPSuccess
+ // EducationSynchronizationStatusPError is a pointer to EducationSynchronizationStatusVError
+ EducationSynchronizationStatusPError = &_EducationSynchronizationStatusPError
+ // EducationSynchronizationStatusPValidationError is a pointer to EducationSynchronizationStatusVValidationError
+ EducationSynchronizationStatusPValidationError = &_EducationSynchronizationStatusPValidationError
+ // EducationSynchronizationStatusPQuarantined is a pointer to EducationSynchronizationStatusVQuarantined
+ EducationSynchronizationStatusPQuarantined = &_EducationSynchronizationStatusPQuarantined
+ // EducationSynchronizationStatusPUnknownFutureValue is a pointer to EducationSynchronizationStatusVUnknownFutureValue
+ EducationSynchronizationStatusPUnknownFutureValue = &_EducationSynchronizationStatusPUnknownFutureValue
+)
+
+var (
+ _EducationSynchronizationStatusPPaused = EducationSynchronizationStatusVPaused
+ _EducationSynchronizationStatusPInProgress = EducationSynchronizationStatusVInProgress
+ _EducationSynchronizationStatusPSuccess = EducationSynchronizationStatusVSuccess
+ _EducationSynchronizationStatusPError = EducationSynchronizationStatusVError
+ _EducationSynchronizationStatusPValidationError = EducationSynchronizationStatusVValidationError
+ _EducationSynchronizationStatusPQuarantined = EducationSynchronizationStatusVQuarantined
+ _EducationSynchronizationStatusPUnknownFutureValue = EducationSynchronizationStatusVUnknownFutureValue
+)
+
+// EducationUserRole undocumented
+type EducationUserRole string
+
+const (
+ // EducationUserRoleVStudent undocumented
+ EducationUserRoleVStudent EducationUserRole = "student"
+ // EducationUserRoleVTeacher undocumented
+ EducationUserRoleVTeacher EducationUserRole = "teacher"
+ // EducationUserRoleVNone undocumented
+ EducationUserRoleVNone EducationUserRole = "none"
+ // EducationUserRoleVUnknownFutureValue undocumented
+ EducationUserRoleVUnknownFutureValue EducationUserRole = "unknownFutureValue"
+ // EducationUserRoleVFaculty undocumented
+ EducationUserRoleVFaculty EducationUserRole = "faculty"
+)
+
+var (
+ // EducationUserRolePStudent is a pointer to EducationUserRoleVStudent
+ EducationUserRolePStudent = &_EducationUserRolePStudent
+ // EducationUserRolePTeacher is a pointer to EducationUserRoleVTeacher
+ EducationUserRolePTeacher = &_EducationUserRolePTeacher
+ // EducationUserRolePNone is a pointer to EducationUserRoleVNone
+ EducationUserRolePNone = &_EducationUserRolePNone
+ // EducationUserRolePUnknownFutureValue is a pointer to EducationUserRoleVUnknownFutureValue
+ EducationUserRolePUnknownFutureValue = &_EducationUserRolePUnknownFutureValue
+ // EducationUserRolePFaculty is a pointer to EducationUserRoleVFaculty
+ EducationUserRolePFaculty = &_EducationUserRolePFaculty
+)
+
+var (
+ _EducationUserRolePStudent = EducationUserRoleVStudent
+ _EducationUserRolePTeacher = EducationUserRoleVTeacher
+ _EducationUserRolePNone = EducationUserRoleVNone
+ _EducationUserRolePUnknownFutureValue = EducationUserRoleVUnknownFutureValue
+ _EducationUserRolePFaculty = EducationUserRoleVFaculty
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmail.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmail.go
new file mode 100644
index 00000000..27096f13
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmail.go
@@ -0,0 +1,193 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailCertificateType undocumented
+type EmailCertificateType string
+
+const (
+ // EmailCertificateTypeVNone undocumented
+ EmailCertificateTypeVNone EmailCertificateType = "none"
+ // EmailCertificateTypeVCertificate undocumented
+ EmailCertificateTypeVCertificate EmailCertificateType = "certificate"
+ // EmailCertificateTypeVDerivedCredential undocumented
+ EmailCertificateTypeVDerivedCredential EmailCertificateType = "derivedCredential"
+)
+
+var (
+ // EmailCertificateTypePNone is a pointer to EmailCertificateTypeVNone
+ EmailCertificateTypePNone = &_EmailCertificateTypePNone
+ // EmailCertificateTypePCertificate is a pointer to EmailCertificateTypeVCertificate
+ EmailCertificateTypePCertificate = &_EmailCertificateTypePCertificate
+ // EmailCertificateTypePDerivedCredential is a pointer to EmailCertificateTypeVDerivedCredential
+ EmailCertificateTypePDerivedCredential = &_EmailCertificateTypePDerivedCredential
+)
+
+var (
+ _EmailCertificateTypePNone = EmailCertificateTypeVNone
+ _EmailCertificateTypePCertificate = EmailCertificateTypeVCertificate
+ _EmailCertificateTypePDerivedCredential = EmailCertificateTypeVDerivedCredential
+)
+
+// EmailRole undocumented
+type EmailRole string
+
+const (
+ // EmailRoleVUnknown undocumented
+ EmailRoleVUnknown EmailRole = "unknown"
+ // EmailRoleVSender undocumented
+ EmailRoleVSender EmailRole = "sender"
+ // EmailRoleVRecipient undocumented
+ EmailRoleVRecipient EmailRole = "recipient"
+ // EmailRoleVUnknownFutureValue undocumented
+ EmailRoleVUnknownFutureValue EmailRole = "unknownFutureValue"
+)
+
+var (
+ // EmailRolePUnknown is a pointer to EmailRoleVUnknown
+ EmailRolePUnknown = &_EmailRolePUnknown
+ // EmailRolePSender is a pointer to EmailRoleVSender
+ EmailRolePSender = &_EmailRolePSender
+ // EmailRolePRecipient is a pointer to EmailRoleVRecipient
+ EmailRolePRecipient = &_EmailRolePRecipient
+ // EmailRolePUnknownFutureValue is a pointer to EmailRoleVUnknownFutureValue
+ EmailRolePUnknownFutureValue = &_EmailRolePUnknownFutureValue
+)
+
+var (
+ _EmailRolePUnknown = EmailRoleVUnknown
+ _EmailRolePSender = EmailRoleVSender
+ _EmailRolePRecipient = EmailRoleVRecipient
+ _EmailRolePUnknownFutureValue = EmailRoleVUnknownFutureValue
+)
+
+// EmailSyncDuration undocumented
+type EmailSyncDuration string
+
+const (
+ // EmailSyncDurationVUserDefined undocumented
+ EmailSyncDurationVUserDefined EmailSyncDuration = "userDefined"
+ // EmailSyncDurationVOneDay undocumented
+ EmailSyncDurationVOneDay EmailSyncDuration = "oneDay"
+ // EmailSyncDurationVThreeDays undocumented
+ EmailSyncDurationVThreeDays EmailSyncDuration = "threeDays"
+ // EmailSyncDurationVOneWeek undocumented
+ EmailSyncDurationVOneWeek EmailSyncDuration = "oneWeek"
+ // EmailSyncDurationVTwoWeeks undocumented
+ EmailSyncDurationVTwoWeeks EmailSyncDuration = "twoWeeks"
+ // EmailSyncDurationVOneMonth undocumented
+ EmailSyncDurationVOneMonth EmailSyncDuration = "oneMonth"
+ // EmailSyncDurationVUnlimited undocumented
+ EmailSyncDurationVUnlimited EmailSyncDuration = "unlimited"
+)
+
+var (
+ // EmailSyncDurationPUserDefined is a pointer to EmailSyncDurationVUserDefined
+ EmailSyncDurationPUserDefined = &_EmailSyncDurationPUserDefined
+ // EmailSyncDurationPOneDay is a pointer to EmailSyncDurationVOneDay
+ EmailSyncDurationPOneDay = &_EmailSyncDurationPOneDay
+ // EmailSyncDurationPThreeDays is a pointer to EmailSyncDurationVThreeDays
+ EmailSyncDurationPThreeDays = &_EmailSyncDurationPThreeDays
+ // EmailSyncDurationPOneWeek is a pointer to EmailSyncDurationVOneWeek
+ EmailSyncDurationPOneWeek = &_EmailSyncDurationPOneWeek
+ // EmailSyncDurationPTwoWeeks is a pointer to EmailSyncDurationVTwoWeeks
+ EmailSyncDurationPTwoWeeks = &_EmailSyncDurationPTwoWeeks
+ // EmailSyncDurationPOneMonth is a pointer to EmailSyncDurationVOneMonth
+ EmailSyncDurationPOneMonth = &_EmailSyncDurationPOneMonth
+ // EmailSyncDurationPUnlimited is a pointer to EmailSyncDurationVUnlimited
+ EmailSyncDurationPUnlimited = &_EmailSyncDurationPUnlimited
+)
+
+var (
+ _EmailSyncDurationPUserDefined = EmailSyncDurationVUserDefined
+ _EmailSyncDurationPOneDay = EmailSyncDurationVOneDay
+ _EmailSyncDurationPThreeDays = EmailSyncDurationVThreeDays
+ _EmailSyncDurationPOneWeek = EmailSyncDurationVOneWeek
+ _EmailSyncDurationPTwoWeeks = EmailSyncDurationVTwoWeeks
+ _EmailSyncDurationPOneMonth = EmailSyncDurationVOneMonth
+ _EmailSyncDurationPUnlimited = EmailSyncDurationVUnlimited
+)
+
+// EmailSyncSchedule undocumented
+type EmailSyncSchedule string
+
+const (
+ // EmailSyncScheduleVUserDefined undocumented
+ EmailSyncScheduleVUserDefined EmailSyncSchedule = "userDefined"
+ // EmailSyncScheduleVAsMessagesArrive undocumented
+ EmailSyncScheduleVAsMessagesArrive EmailSyncSchedule = "asMessagesArrive"
+ // EmailSyncScheduleVManual undocumented
+ EmailSyncScheduleVManual EmailSyncSchedule = "manual"
+ // EmailSyncScheduleVFifteenMinutes undocumented
+ EmailSyncScheduleVFifteenMinutes EmailSyncSchedule = "fifteenMinutes"
+ // EmailSyncScheduleVThirtyMinutes undocumented
+ EmailSyncScheduleVThirtyMinutes EmailSyncSchedule = "thirtyMinutes"
+ // EmailSyncScheduleVSixtyMinutes undocumented
+ EmailSyncScheduleVSixtyMinutes EmailSyncSchedule = "sixtyMinutes"
+ // EmailSyncScheduleVBasedOnMyUsage undocumented
+ EmailSyncScheduleVBasedOnMyUsage EmailSyncSchedule = "basedOnMyUsage"
+)
+
+var (
+ // EmailSyncSchedulePUserDefined is a pointer to EmailSyncScheduleVUserDefined
+ EmailSyncSchedulePUserDefined = &_EmailSyncSchedulePUserDefined
+ // EmailSyncSchedulePAsMessagesArrive is a pointer to EmailSyncScheduleVAsMessagesArrive
+ EmailSyncSchedulePAsMessagesArrive = &_EmailSyncSchedulePAsMessagesArrive
+ // EmailSyncSchedulePManual is a pointer to EmailSyncScheduleVManual
+ EmailSyncSchedulePManual = &_EmailSyncSchedulePManual
+ // EmailSyncSchedulePFifteenMinutes is a pointer to EmailSyncScheduleVFifteenMinutes
+ EmailSyncSchedulePFifteenMinutes = &_EmailSyncSchedulePFifteenMinutes
+ // EmailSyncSchedulePThirtyMinutes is a pointer to EmailSyncScheduleVThirtyMinutes
+ EmailSyncSchedulePThirtyMinutes = &_EmailSyncSchedulePThirtyMinutes
+ // EmailSyncSchedulePSixtyMinutes is a pointer to EmailSyncScheduleVSixtyMinutes
+ EmailSyncSchedulePSixtyMinutes = &_EmailSyncSchedulePSixtyMinutes
+ // EmailSyncSchedulePBasedOnMyUsage is a pointer to EmailSyncScheduleVBasedOnMyUsage
+ EmailSyncSchedulePBasedOnMyUsage = &_EmailSyncSchedulePBasedOnMyUsage
+)
+
+var (
+ _EmailSyncSchedulePUserDefined = EmailSyncScheduleVUserDefined
+ _EmailSyncSchedulePAsMessagesArrive = EmailSyncScheduleVAsMessagesArrive
+ _EmailSyncSchedulePManual = EmailSyncScheduleVManual
+ _EmailSyncSchedulePFifteenMinutes = EmailSyncScheduleVFifteenMinutes
+ _EmailSyncSchedulePThirtyMinutes = EmailSyncScheduleVThirtyMinutes
+ _EmailSyncSchedulePSixtyMinutes = EmailSyncScheduleVSixtyMinutes
+ _EmailSyncSchedulePBasedOnMyUsage = EmailSyncScheduleVBasedOnMyUsage
+)
+
+// EmailType undocumented
+type EmailType string
+
+const (
+ // EmailTypeVUnknown undocumented
+ EmailTypeVUnknown EmailType = "unknown"
+ // EmailTypeVWork undocumented
+ EmailTypeVWork EmailType = "work"
+ // EmailTypeVPersonal undocumented
+ EmailTypeVPersonal EmailType = "personal"
+ // EmailTypeVMain undocumented
+ EmailTypeVMain EmailType = "main"
+ // EmailTypeVOther undocumented
+ EmailTypeVOther EmailType = "other"
+)
+
+var (
+ // EmailTypePUnknown is a pointer to EmailTypeVUnknown
+ EmailTypePUnknown = &_EmailTypePUnknown
+ // EmailTypePWork is a pointer to EmailTypeVWork
+ EmailTypePWork = &_EmailTypePWork
+ // EmailTypePPersonal is a pointer to EmailTypeVPersonal
+ EmailTypePPersonal = &_EmailTypePPersonal
+ // EmailTypePMain is a pointer to EmailTypeVMain
+ EmailTypePMain = &_EmailTypePMain
+ // EmailTypePOther is a pointer to EmailTypeVOther
+ EmailTypePOther = &_EmailTypePOther
+)
+
+var (
+ _EmailTypePUnknown = EmailTypeVUnknown
+ _EmailTypePWork = EmailTypeVWork
+ _EmailTypePPersonal = EmailTypeVPersonal
+ _EmailTypePMain = EmailTypeVMain
+ _EmailTypePOther = EmailTypeVOther
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmbedded.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmbedded.go
new file mode 100644
index 00000000..d5dca325
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEmbedded.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmbeddedSIMDeviceStateValue undocumented
+type EmbeddedSIMDeviceStateValue string
+
+const (
+ // EmbeddedSIMDeviceStateValueVNotEvaluated undocumented
+ EmbeddedSIMDeviceStateValueVNotEvaluated EmbeddedSIMDeviceStateValue = "notEvaluated"
+ // EmbeddedSIMDeviceStateValueVFailed undocumented
+ EmbeddedSIMDeviceStateValueVFailed EmbeddedSIMDeviceStateValue = "failed"
+ // EmbeddedSIMDeviceStateValueVInstalling undocumented
+ EmbeddedSIMDeviceStateValueVInstalling EmbeddedSIMDeviceStateValue = "installing"
+ // EmbeddedSIMDeviceStateValueVInstalled undocumented
+ EmbeddedSIMDeviceStateValueVInstalled EmbeddedSIMDeviceStateValue = "installed"
+ // EmbeddedSIMDeviceStateValueVDeleting undocumented
+ EmbeddedSIMDeviceStateValueVDeleting EmbeddedSIMDeviceStateValue = "deleting"
+ // EmbeddedSIMDeviceStateValueVError undocumented
+ EmbeddedSIMDeviceStateValueVError EmbeddedSIMDeviceStateValue = "error"
+ // EmbeddedSIMDeviceStateValueVDeleted undocumented
+ EmbeddedSIMDeviceStateValueVDeleted EmbeddedSIMDeviceStateValue = "deleted"
+ // EmbeddedSIMDeviceStateValueVRemovedByUser undocumented
+ EmbeddedSIMDeviceStateValueVRemovedByUser EmbeddedSIMDeviceStateValue = "removedByUser"
+)
+
+var (
+ // EmbeddedSIMDeviceStateValuePNotEvaluated is a pointer to EmbeddedSIMDeviceStateValueVNotEvaluated
+ EmbeddedSIMDeviceStateValuePNotEvaluated = &_EmbeddedSIMDeviceStateValuePNotEvaluated
+ // EmbeddedSIMDeviceStateValuePFailed is a pointer to EmbeddedSIMDeviceStateValueVFailed
+ EmbeddedSIMDeviceStateValuePFailed = &_EmbeddedSIMDeviceStateValuePFailed
+ // EmbeddedSIMDeviceStateValuePInstalling is a pointer to EmbeddedSIMDeviceStateValueVInstalling
+ EmbeddedSIMDeviceStateValuePInstalling = &_EmbeddedSIMDeviceStateValuePInstalling
+ // EmbeddedSIMDeviceStateValuePInstalled is a pointer to EmbeddedSIMDeviceStateValueVInstalled
+ EmbeddedSIMDeviceStateValuePInstalled = &_EmbeddedSIMDeviceStateValuePInstalled
+ // EmbeddedSIMDeviceStateValuePDeleting is a pointer to EmbeddedSIMDeviceStateValueVDeleting
+ EmbeddedSIMDeviceStateValuePDeleting = &_EmbeddedSIMDeviceStateValuePDeleting
+ // EmbeddedSIMDeviceStateValuePError is a pointer to EmbeddedSIMDeviceStateValueVError
+ EmbeddedSIMDeviceStateValuePError = &_EmbeddedSIMDeviceStateValuePError
+ // EmbeddedSIMDeviceStateValuePDeleted is a pointer to EmbeddedSIMDeviceStateValueVDeleted
+ EmbeddedSIMDeviceStateValuePDeleted = &_EmbeddedSIMDeviceStateValuePDeleted
+ // EmbeddedSIMDeviceStateValuePRemovedByUser is a pointer to EmbeddedSIMDeviceStateValueVRemovedByUser
+ EmbeddedSIMDeviceStateValuePRemovedByUser = &_EmbeddedSIMDeviceStateValuePRemovedByUser
+)
+
+var (
+ _EmbeddedSIMDeviceStateValuePNotEvaluated = EmbeddedSIMDeviceStateValueVNotEvaluated
+ _EmbeddedSIMDeviceStateValuePFailed = EmbeddedSIMDeviceStateValueVFailed
+ _EmbeddedSIMDeviceStateValuePInstalling = EmbeddedSIMDeviceStateValueVInstalling
+ _EmbeddedSIMDeviceStateValuePInstalled = EmbeddedSIMDeviceStateValueVInstalled
+ _EmbeddedSIMDeviceStateValuePDeleting = EmbeddedSIMDeviceStateValueVDeleting
+ _EmbeddedSIMDeviceStateValuePError = EmbeddedSIMDeviceStateValueVError
+ _EmbeddedSIMDeviceStateValuePDeleted = EmbeddedSIMDeviceStateValueVDeleted
+ _EmbeddedSIMDeviceStateValuePRemovedByUser = EmbeddedSIMDeviceStateValueVRemovedByUser
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnablement.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnablement.go
new file mode 100644
index 00000000..08a936bb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnablement.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Enablement undocumented
+type Enablement string
+
+const (
+ // EnablementVNotConfigured undocumented
+ EnablementVNotConfigured Enablement = "notConfigured"
+ // EnablementVEnabled undocumented
+ EnablementVEnabled Enablement = "enabled"
+ // EnablementVDisabled undocumented
+ EnablementVDisabled Enablement = "disabled"
+)
+
+var (
+ // EnablementPNotConfigured is a pointer to EnablementVNotConfigured
+ EnablementPNotConfigured = &_EnablementPNotConfigured
+ // EnablementPEnabled is a pointer to EnablementVEnabled
+ EnablementPEnabled = &_EnablementPEnabled
+ // EnablementPDisabled is a pointer to EnablementVDisabled
+ EnablementPDisabled = &_EnablementPDisabled
+)
+
+var (
+ _EnablementPNotConfigured = EnablementVNotConfigured
+ _EnablementPEnabled = EnablementVEnabled
+ _EnablementPDisabled = EnablementVDisabled
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncrypt.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncrypt.go
new file mode 100644
index 00000000..40a48917
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncrypt.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptWith undocumented
+type EncryptWith string
+
+const (
+ // EncryptWithVTemplate undocumented
+ EncryptWithVTemplate EncryptWith = "template"
+ // EncryptWithVUserDefinedRights undocumented
+ EncryptWithVUserDefinedRights EncryptWith = "userDefinedRights"
+)
+
+var (
+ // EncryptWithPTemplate is a pointer to EncryptWithVTemplate
+ EncryptWithPTemplate = &_EncryptWithPTemplate
+ // EncryptWithPUserDefinedRights is a pointer to EncryptWithVUserDefinedRights
+ EncryptWithPUserDefinedRights = &_EncryptWithPUserDefinedRights
+)
+
+var (
+ _EncryptWithPTemplate = EncryptWithVTemplate
+ _EncryptWithPUserDefinedRights = EncryptWithVUserDefinedRights
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncryption.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncryption.go
new file mode 100644
index 00000000..bedb5d85
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEncryption.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptionReadinessState undocumented
+type EncryptionReadinessState string
+
+const (
+ // EncryptionReadinessStateVNotReady undocumented
+ EncryptionReadinessStateVNotReady EncryptionReadinessState = "notReady"
+ // EncryptionReadinessStateVReady undocumented
+ EncryptionReadinessStateVReady EncryptionReadinessState = "ready"
+)
+
+var (
+ // EncryptionReadinessStatePNotReady is a pointer to EncryptionReadinessStateVNotReady
+ EncryptionReadinessStatePNotReady = &_EncryptionReadinessStatePNotReady
+ // EncryptionReadinessStatePReady is a pointer to EncryptionReadinessStateVReady
+ EncryptionReadinessStatePReady = &_EncryptionReadinessStatePReady
+)
+
+var (
+ _EncryptionReadinessStatePNotReady = EncryptionReadinessStateVNotReady
+ _EncryptionReadinessStatePReady = EncryptionReadinessStateVReady
+)
+
+// EncryptionState undocumented
+type EncryptionState string
+
+const (
+ // EncryptionStateVNotEncrypted undocumented
+ EncryptionStateVNotEncrypted EncryptionState = "notEncrypted"
+ // EncryptionStateVEncrypted undocumented
+ EncryptionStateVEncrypted EncryptionState = "encrypted"
+)
+
+var (
+ // EncryptionStatePNotEncrypted is a pointer to EncryptionStateVNotEncrypted
+ EncryptionStatePNotEncrypted = &_EncryptionStatePNotEncrypted
+ // EncryptionStatePEncrypted is a pointer to EncryptionStateVEncrypted
+ EncryptionStatePEncrypted = &_EncryptionStatePEncrypted
+)
+
+var (
+ _EncryptionStatePNotEncrypted = EncryptionStateVNotEncrypted
+ _EncryptionStatePEncrypted = EncryptionStateVEncrypted
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEndpoint.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEndpoint.go
new file mode 100644
index 00000000..0979544b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEndpoint.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EndpointType undocumented
+type EndpointType string
+
+const (
+ // EndpointTypeVDefault undocumented
+ EndpointTypeVDefault EndpointType = "default"
+ // EndpointTypeVVoicemail undocumented
+ EndpointTypeVVoicemail EndpointType = "voicemail"
+ // EndpointTypeVSkypeForBusiness undocumented
+ EndpointTypeVSkypeForBusiness EndpointType = "skypeForBusiness"
+ // EndpointTypeVSkypeForBusinessVoipPhone undocumented
+ EndpointTypeVSkypeForBusinessVoipPhone EndpointType = "skypeForBusinessVoipPhone"
+ // EndpointTypeVUnknownFutureValue undocumented
+ EndpointTypeVUnknownFutureValue EndpointType = "unknownFutureValue"
+)
+
+var (
+ // EndpointTypePDefault is a pointer to EndpointTypeVDefault
+ EndpointTypePDefault = &_EndpointTypePDefault
+ // EndpointTypePVoicemail is a pointer to EndpointTypeVVoicemail
+ EndpointTypePVoicemail = &_EndpointTypePVoicemail
+ // EndpointTypePSkypeForBusiness is a pointer to EndpointTypeVSkypeForBusiness
+ EndpointTypePSkypeForBusiness = &_EndpointTypePSkypeForBusiness
+ // EndpointTypePSkypeForBusinessVoipPhone is a pointer to EndpointTypeVSkypeForBusinessVoipPhone
+ EndpointTypePSkypeForBusinessVoipPhone = &_EndpointTypePSkypeForBusinessVoipPhone
+ // EndpointTypePUnknownFutureValue is a pointer to EndpointTypeVUnknownFutureValue
+ EndpointTypePUnknownFutureValue = &_EndpointTypePUnknownFutureValue
+)
+
+var (
+ _EndpointTypePDefault = EndpointTypeVDefault
+ _EndpointTypePVoicemail = EndpointTypeVVoicemail
+ _EndpointTypePSkypeForBusiness = EndpointTypeVSkypeForBusiness
+ _EndpointTypePSkypeForBusinessVoipPhone = EndpointTypeVSkypeForBusinessVoipPhone
+ _EndpointTypePUnknownFutureValue = EndpointTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnrollment.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnrollment.go
new file mode 100644
index 00000000..287527c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEnrollment.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EnrollmentState undocumented
+type EnrollmentState string
+
+const (
+ // EnrollmentStateVUnknown undocumented
+ EnrollmentStateVUnknown EnrollmentState = "unknown"
+ // EnrollmentStateVEnrolled undocumented
+ EnrollmentStateVEnrolled EnrollmentState = "enrolled"
+ // EnrollmentStateVPendingReset undocumented
+ EnrollmentStateVPendingReset EnrollmentState = "pendingReset"
+ // EnrollmentStateVFailed undocumented
+ EnrollmentStateVFailed EnrollmentState = "failed"
+ // EnrollmentStateVNotContacted undocumented
+ EnrollmentStateVNotContacted EnrollmentState = "notContacted"
+ // EnrollmentStateVBlocked undocumented
+ EnrollmentStateVBlocked EnrollmentState = "blocked"
+)
+
+var (
+ // EnrollmentStatePUnknown is a pointer to EnrollmentStateVUnknown
+ EnrollmentStatePUnknown = &_EnrollmentStatePUnknown
+ // EnrollmentStatePEnrolled is a pointer to EnrollmentStateVEnrolled
+ EnrollmentStatePEnrolled = &_EnrollmentStatePEnrolled
+ // EnrollmentStatePPendingReset is a pointer to EnrollmentStateVPendingReset
+ EnrollmentStatePPendingReset = &_EnrollmentStatePPendingReset
+ // EnrollmentStatePFailed is a pointer to EnrollmentStateVFailed
+ EnrollmentStatePFailed = &_EnrollmentStatePFailed
+ // EnrollmentStatePNotContacted is a pointer to EnrollmentStateVNotContacted
+ EnrollmentStatePNotContacted = &_EnrollmentStatePNotContacted
+ // EnrollmentStatePBlocked is a pointer to EnrollmentStateVBlocked
+ EnrollmentStatePBlocked = &_EnrollmentStatePBlocked
+)
+
+var (
+ _EnrollmentStatePUnknown = EnrollmentStateVUnknown
+ _EnrollmentStatePEnrolled = EnrollmentStateVEnrolled
+ _EnrollmentStatePPendingReset = EnrollmentStateVPendingReset
+ _EnrollmentStatePFailed = EnrollmentStateVFailed
+ _EnrollmentStatePNotContacted = EnrollmentStateVNotContacted
+ _EnrollmentStatePBlocked = EnrollmentStateVBlocked
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntity.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntity.go
new file mode 100644
index 00000000..3742e261
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntity.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntityType undocumented
+type EntityType string
+
+const (
+ // EntityTypeVEvent undocumented
+ EntityTypeVEvent EntityType = "event"
+ // EntityTypeVMessage undocumented
+ EntityTypeVMessage EntityType = "message"
+ // EntityTypeVDriveItem undocumented
+ EntityTypeVDriveItem EntityType = "driveItem"
+ // EntityTypeVExternalFile undocumented
+ EntityTypeVExternalFile EntityType = "externalFile"
+ // EntityTypeVExternalItem undocumented
+ EntityTypeVExternalItem EntityType = "externalItem"
+)
+
+var (
+ // EntityTypePEvent is a pointer to EntityTypeVEvent
+ EntityTypePEvent = &_EntityTypePEvent
+ // EntityTypePMessage is a pointer to EntityTypeVMessage
+ EntityTypePMessage = &_EntityTypePMessage
+ // EntityTypePDriveItem is a pointer to EntityTypeVDriveItem
+ EntityTypePDriveItem = &_EntityTypePDriveItem
+ // EntityTypePExternalFile is a pointer to EntityTypeVExternalFile
+ EntityTypePExternalFile = &_EntityTypePExternalFile
+ // EntityTypePExternalItem is a pointer to EntityTypeVExternalItem
+ EntityTypePExternalItem = &_EntityTypePExternalItem
+)
+
+var (
+ _EntityTypePEvent = EntityTypeVEvent
+ _EntityTypePMessage = EntityTypeVMessage
+ _EntityTypePDriveItem = EntityTypeVDriveItem
+ _EntityTypePExternalFile = EntityTypeVExternalFile
+ _EntityTypePExternalItem = EntityTypeVExternalItem
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntry.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntry.go
new file mode 100644
index 00000000..5826ef6b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEntry.go
@@ -0,0 +1,72 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntryExportStatus undocumented
+type EntryExportStatus string
+
+const (
+ // EntryExportStatusVNoop undocumented
+ EntryExportStatusVNoop EntryExportStatus = "Noop"
+ // EntryExportStatusVSuccess undocumented
+ EntryExportStatusVSuccess EntryExportStatus = "Success"
+ // EntryExportStatusVRetryableError undocumented
+ EntryExportStatusVRetryableError EntryExportStatus = "RetryableError"
+ // EntryExportStatusVPermanentError undocumented
+ EntryExportStatusVPermanentError EntryExportStatus = "PermanentError"
+ // EntryExportStatusVError undocumented
+ EntryExportStatusVError EntryExportStatus = "Error"
+)
+
+var (
+ // EntryExportStatusPNoop is a pointer to EntryExportStatusVNoop
+ EntryExportStatusPNoop = &_EntryExportStatusPNoop
+ // EntryExportStatusPSuccess is a pointer to EntryExportStatusVSuccess
+ EntryExportStatusPSuccess = &_EntryExportStatusPSuccess
+ // EntryExportStatusPRetryableError is a pointer to EntryExportStatusVRetryableError
+ EntryExportStatusPRetryableError = &_EntryExportStatusPRetryableError
+ // EntryExportStatusPPermanentError is a pointer to EntryExportStatusVPermanentError
+ EntryExportStatusPPermanentError = &_EntryExportStatusPPermanentError
+ // EntryExportStatusPError is a pointer to EntryExportStatusVError
+ EntryExportStatusPError = &_EntryExportStatusPError
+)
+
+var (
+ _EntryExportStatusPNoop = EntryExportStatusVNoop
+ _EntryExportStatusPSuccess = EntryExportStatusVSuccess
+ _EntryExportStatusPRetryableError = EntryExportStatusVRetryableError
+ _EntryExportStatusPPermanentError = EntryExportStatusVPermanentError
+ _EntryExportStatusPError = EntryExportStatusVError
+)
+
+// EntrySyncOperation undocumented
+type EntrySyncOperation string
+
+const (
+ // EntrySyncOperationVNone undocumented
+ EntrySyncOperationVNone EntrySyncOperation = "None"
+ // EntrySyncOperationVAdd undocumented
+ EntrySyncOperationVAdd EntrySyncOperation = "Add"
+ // EntrySyncOperationVDelete undocumented
+ EntrySyncOperationVDelete EntrySyncOperation = "Delete"
+ // EntrySyncOperationVUpdate undocumented
+ EntrySyncOperationVUpdate EntrySyncOperation = "Update"
+)
+
+var (
+ // EntrySyncOperationPNone is a pointer to EntrySyncOperationVNone
+ EntrySyncOperationPNone = &_EntrySyncOperationPNone
+ // EntrySyncOperationPAdd is a pointer to EntrySyncOperationVAdd
+ EntrySyncOperationPAdd = &_EntrySyncOperationPAdd
+ // EntrySyncOperationPDelete is a pointer to EntrySyncOperationVDelete
+ EntrySyncOperationPDelete = &_EntrySyncOperationPDelete
+ // EntrySyncOperationPUpdate is a pointer to EntrySyncOperationVUpdate
+ EntrySyncOperationPUpdate = &_EntrySyncOperationPUpdate
+)
+
+var (
+ _EntrySyncOperationPNone = EntrySyncOperationVNone
+ _EntrySyncOperationPAdd = EntrySyncOperationVAdd
+ _EntrySyncOperationPDelete = EntrySyncOperationVDelete
+ _EntrySyncOperationPUpdate = EntrySyncOperationVUpdate
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumError.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumError.go
new file mode 100644
index 00000000..f59186fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumError.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ErrorCode undocumented
+type ErrorCode string
+
+const (
+ // ErrorCodeVNoError undocumented
+ ErrorCodeVNoError ErrorCode = "noError"
+ // ErrorCodeVUnauthorized undocumented
+ ErrorCodeVUnauthorized ErrorCode = "unauthorized"
+ // ErrorCodeVNotFound undocumented
+ ErrorCodeVNotFound ErrorCode = "notFound"
+ // ErrorCodeVDeleted undocumented
+ ErrorCodeVDeleted ErrorCode = "deleted"
+)
+
+var (
+ // ErrorCodePNoError is a pointer to ErrorCodeVNoError
+ ErrorCodePNoError = &_ErrorCodePNoError
+ // ErrorCodePUnauthorized is a pointer to ErrorCodeVUnauthorized
+ ErrorCodePUnauthorized = &_ErrorCodePUnauthorized
+ // ErrorCodePNotFound is a pointer to ErrorCodeVNotFound
+ ErrorCodePNotFound = &_ErrorCodePNotFound
+ // ErrorCodePDeleted is a pointer to ErrorCodeVDeleted
+ ErrorCodePDeleted = &_ErrorCodePDeleted
+)
+
+var (
+ _ErrorCodePNoError = ErrorCodeVNoError
+ _ErrorCodePUnauthorized = ErrorCodeVUnauthorized
+ _ErrorCodePNotFound = ErrorCodeVNotFound
+ _ErrorCodePDeleted = ErrorCodeVDeleted
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumEvent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEvent.go
new file mode 100644
index 00000000..bc3f0f9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumEvent.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EventType undocumented
+type EventType string
+
+const (
+ // EventTypeVSingleInstance undocumented
+ EventTypeVSingleInstance EventType = "singleInstance"
+ // EventTypeVOccurrence undocumented
+ EventTypeVOccurrence EventType = "occurrence"
+ // EventTypeVException undocumented
+ EventTypeVException EventType = "exception"
+ // EventTypeVSeriesMaster undocumented
+ EventTypeVSeriesMaster EventType = "seriesMaster"
+)
+
+var (
+ // EventTypePSingleInstance is a pointer to EventTypeVSingleInstance
+ EventTypePSingleInstance = &_EventTypePSingleInstance
+ // EventTypePOccurrence is a pointer to EventTypeVOccurrence
+ EventTypePOccurrence = &_EventTypePOccurrence
+ // EventTypePException is a pointer to EventTypeVException
+ EventTypePException = &_EventTypePException
+ // EventTypePSeriesMaster is a pointer to EventTypeVSeriesMaster
+ EventTypePSeriesMaster = &_EventTypePSeriesMaster
+)
+
+var (
+ _EventTypePSingleInstance = EventTypeVSingleInstance
+ _EventTypePOccurrence = EventTypeVOccurrence
+ _EventTypePException = EventTypeVException
+ _EventTypePSeriesMaster = EventTypeVSeriesMaster
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumExchange.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumExchange.go
new file mode 100644
index 00000000..a34cd922
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumExchange.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExchangeIDFormat undocumented
+type ExchangeIDFormat string
+
+const (
+ // ExchangeIDFormatVEntryID undocumented
+ ExchangeIDFormatVEntryID ExchangeIDFormat = "entryId"
+ // ExchangeIDFormatVEwsID undocumented
+ ExchangeIDFormatVEwsID ExchangeIDFormat = "ewsId"
+ // ExchangeIDFormatVImmutableEntryID undocumented
+ ExchangeIDFormatVImmutableEntryID ExchangeIDFormat = "immutableEntryId"
+ // ExchangeIDFormatVRestID undocumented
+ ExchangeIDFormatVRestID ExchangeIDFormat = "restId"
+ // ExchangeIDFormatVRestImmutableEntryID undocumented
+ ExchangeIDFormatVRestImmutableEntryID ExchangeIDFormat = "restImmutableEntryId"
+)
+
+var (
+ // ExchangeIDFormatPEntryID is a pointer to ExchangeIDFormatVEntryID
+ ExchangeIDFormatPEntryID = &_ExchangeIDFormatPEntryID
+ // ExchangeIDFormatPEwsID is a pointer to ExchangeIDFormatVEwsID
+ ExchangeIDFormatPEwsID = &_ExchangeIDFormatPEwsID
+ // ExchangeIDFormatPImmutableEntryID is a pointer to ExchangeIDFormatVImmutableEntryID
+ ExchangeIDFormatPImmutableEntryID = &_ExchangeIDFormatPImmutableEntryID
+ // ExchangeIDFormatPRestID is a pointer to ExchangeIDFormatVRestID
+ ExchangeIDFormatPRestID = &_ExchangeIDFormatPRestID
+ // ExchangeIDFormatPRestImmutableEntryID is a pointer to ExchangeIDFormatVRestImmutableEntryID
+ ExchangeIDFormatPRestImmutableEntryID = &_ExchangeIDFormatPRestImmutableEntryID
+)
+
+var (
+ _ExchangeIDFormatPEntryID = ExchangeIDFormatVEntryID
+ _ExchangeIDFormatPEwsID = ExchangeIDFormatVEwsID
+ _ExchangeIDFormatPImmutableEntryID = ExchangeIDFormatVImmutableEntryID
+ _ExchangeIDFormatPRestID = ExchangeIDFormatVRestID
+ _ExchangeIDFormatPRestImmutableEntryID = ExchangeIDFormatVRestImmutableEntryID
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumExternal.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumExternal.go
new file mode 100644
index 00000000..9c729ebf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumExternal.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExternalAudienceScope undocumented
+type ExternalAudienceScope string
+
+const (
+ // ExternalAudienceScopeVNone undocumented
+ ExternalAudienceScopeVNone ExternalAudienceScope = "none"
+ // ExternalAudienceScopeVContactsOnly undocumented
+ ExternalAudienceScopeVContactsOnly ExternalAudienceScope = "contactsOnly"
+ // ExternalAudienceScopeVAll undocumented
+ ExternalAudienceScopeVAll ExternalAudienceScope = "all"
+)
+
+var (
+ // ExternalAudienceScopePNone is a pointer to ExternalAudienceScopeVNone
+ ExternalAudienceScopePNone = &_ExternalAudienceScopePNone
+ // ExternalAudienceScopePContactsOnly is a pointer to ExternalAudienceScopeVContactsOnly
+ ExternalAudienceScopePContactsOnly = &_ExternalAudienceScopePContactsOnly
+ // ExternalAudienceScopePAll is a pointer to ExternalAudienceScopeVAll
+ ExternalAudienceScopePAll = &_ExternalAudienceScopePAll
+)
+
+var (
+ _ExternalAudienceScopePNone = ExternalAudienceScopeVNone
+ _ExternalAudienceScopePContactsOnly = ExternalAudienceScopeVContactsOnly
+ _ExternalAudienceScopePAll = ExternalAudienceScopeVAll
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFeature.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFeature.go
new file mode 100644
index 00000000..da708169
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFeature.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FeatureType undocumented
+type FeatureType string
+
+const (
+ // FeatureTypeVRegistration undocumented
+ FeatureTypeVRegistration FeatureType = "registration"
+ // FeatureTypeVReset undocumented
+ FeatureTypeVReset FeatureType = "reset"
+ // FeatureTypeVUnknownFutureValue undocumented
+ FeatureTypeVUnknownFutureValue FeatureType = "unknownFutureValue"
+)
+
+var (
+ // FeatureTypePRegistration is a pointer to FeatureTypeVRegistration
+ FeatureTypePRegistration = &_FeatureTypePRegistration
+ // FeatureTypePReset is a pointer to FeatureTypeVReset
+ FeatureTypePReset = &_FeatureTypePReset
+ // FeatureTypePUnknownFutureValue is a pointer to FeatureTypeVUnknownFutureValue
+ FeatureTypePUnknownFutureValue = &_FeatureTypePUnknownFutureValue
+)
+
+var (
+ _FeatureTypePRegistration = FeatureTypeVRegistration
+ _FeatureTypePReset = FeatureTypeVReset
+ _FeatureTypePUnknownFutureValue = FeatureTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFile.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFile.go
new file mode 100644
index 00000000..3f59e063
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFile.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FileHashType undocumented
+type FileHashType string
+
+const (
+ // FileHashTypeVUnknown undocumented
+ FileHashTypeVUnknown FileHashType = "unknown"
+ // FileHashTypeVSha1 undocumented
+ FileHashTypeVSha1 FileHashType = "sha1"
+ // FileHashTypeVSha256 undocumented
+ FileHashTypeVSha256 FileHashType = "sha256"
+ // FileHashTypeVMd5 undocumented
+ FileHashTypeVMd5 FileHashType = "md5"
+ // FileHashTypeVAuthenticodeHash256 undocumented
+ FileHashTypeVAuthenticodeHash256 FileHashType = "authenticodeHash256"
+ // FileHashTypeVLsHash undocumented
+ FileHashTypeVLsHash FileHashType = "lsHash"
+ // FileHashTypeVCtph undocumented
+ FileHashTypeVCtph FileHashType = "ctph"
+ // FileHashTypeVUnknownFutureValue undocumented
+ FileHashTypeVUnknownFutureValue FileHashType = "unknownFutureValue"
+)
+
+var (
+ // FileHashTypePUnknown is a pointer to FileHashTypeVUnknown
+ FileHashTypePUnknown = &_FileHashTypePUnknown
+ // FileHashTypePSha1 is a pointer to FileHashTypeVSha1
+ FileHashTypePSha1 = &_FileHashTypePSha1
+ // FileHashTypePSha256 is a pointer to FileHashTypeVSha256
+ FileHashTypePSha256 = &_FileHashTypePSha256
+ // FileHashTypePMd5 is a pointer to FileHashTypeVMd5
+ FileHashTypePMd5 = &_FileHashTypePMd5
+ // FileHashTypePAuthenticodeHash256 is a pointer to FileHashTypeVAuthenticodeHash256
+ FileHashTypePAuthenticodeHash256 = &_FileHashTypePAuthenticodeHash256
+ // FileHashTypePLsHash is a pointer to FileHashTypeVLsHash
+ FileHashTypePLsHash = &_FileHashTypePLsHash
+ // FileHashTypePCtph is a pointer to FileHashTypeVCtph
+ FileHashTypePCtph = &_FileHashTypePCtph
+ // FileHashTypePUnknownFutureValue is a pointer to FileHashTypeVUnknownFutureValue
+ FileHashTypePUnknownFutureValue = &_FileHashTypePUnknownFutureValue
+)
+
+var (
+ _FileHashTypePUnknown = FileHashTypeVUnknown
+ _FileHashTypePSha1 = FileHashTypeVSha1
+ _FileHashTypePSha256 = FileHashTypeVSha256
+ _FileHashTypePMd5 = FileHashTypeVMd5
+ _FileHashTypePAuthenticodeHash256 = FileHashTypeVAuthenticodeHash256
+ _FileHashTypePLsHash = FileHashTypeVLsHash
+ _FileHashTypePCtph = FileHashTypeVCtph
+ _FileHashTypePUnknownFutureValue = FileHashTypeVUnknownFutureValue
+)
+
+// FileVaultState undocumented
+type FileVaultState string
+
+const (
+ // FileVaultStateVSuccess undocumented
+ FileVaultStateVSuccess FileVaultState = "success"
+ // FileVaultStateVDriveEncryptedByUser undocumented
+ FileVaultStateVDriveEncryptedByUser FileVaultState = "driveEncryptedByUser"
+ // FileVaultStateVUserDeferredEncryption undocumented
+ FileVaultStateVUserDeferredEncryption FileVaultState = "userDeferredEncryption"
+ // FileVaultStateVEscrowNotEnabled undocumented
+ FileVaultStateVEscrowNotEnabled FileVaultState = "escrowNotEnabled"
+)
+
+var (
+ // FileVaultStatePSuccess is a pointer to FileVaultStateVSuccess
+ FileVaultStatePSuccess = &_FileVaultStatePSuccess
+ // FileVaultStatePDriveEncryptedByUser is a pointer to FileVaultStateVDriveEncryptedByUser
+ FileVaultStatePDriveEncryptedByUser = &_FileVaultStatePDriveEncryptedByUser
+ // FileVaultStatePUserDeferredEncryption is a pointer to FileVaultStateVUserDeferredEncryption
+ FileVaultStatePUserDeferredEncryption = &_FileVaultStatePUserDeferredEncryption
+ // FileVaultStatePEscrowNotEnabled is a pointer to FileVaultStateVEscrowNotEnabled
+ FileVaultStatePEscrowNotEnabled = &_FileVaultStatePEscrowNotEnabled
+)
+
+var (
+ _FileVaultStatePSuccess = FileVaultStateVSuccess
+ _FileVaultStatePDriveEncryptedByUser = FileVaultStateVDriveEncryptedByUser
+ _FileVaultStatePUserDeferredEncryption = FileVaultStateVUserDeferredEncryption
+ _FileVaultStatePEscrowNotEnabled = FileVaultStateVEscrowNotEnabled
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFirewall.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFirewall.go
new file mode 100644
index 00000000..a7be03e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFirewall.go
@@ -0,0 +1,99 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FirewallCertificateRevocationListCheckMethodType undocumented
+type FirewallCertificateRevocationListCheckMethodType string
+
+const (
+ // FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault FirewallCertificateRevocationListCheckMethodType = "deviceDefault"
+ // FirewallCertificateRevocationListCheckMethodTypeVNone undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVNone FirewallCertificateRevocationListCheckMethodType = "none"
+ // FirewallCertificateRevocationListCheckMethodTypeVAttempt undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVAttempt FirewallCertificateRevocationListCheckMethodType = "attempt"
+ // FirewallCertificateRevocationListCheckMethodTypeVRequire undocumented
+ FirewallCertificateRevocationListCheckMethodTypeVRequire FirewallCertificateRevocationListCheckMethodType = "require"
+)
+
+var (
+ // FirewallCertificateRevocationListCheckMethodTypePDeviceDefault is a pointer to FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault
+ FirewallCertificateRevocationListCheckMethodTypePDeviceDefault = &_FirewallCertificateRevocationListCheckMethodTypePDeviceDefault
+ // FirewallCertificateRevocationListCheckMethodTypePNone is a pointer to FirewallCertificateRevocationListCheckMethodTypeVNone
+ FirewallCertificateRevocationListCheckMethodTypePNone = &_FirewallCertificateRevocationListCheckMethodTypePNone
+ // FirewallCertificateRevocationListCheckMethodTypePAttempt is a pointer to FirewallCertificateRevocationListCheckMethodTypeVAttempt
+ FirewallCertificateRevocationListCheckMethodTypePAttempt = &_FirewallCertificateRevocationListCheckMethodTypePAttempt
+ // FirewallCertificateRevocationListCheckMethodTypePRequire is a pointer to FirewallCertificateRevocationListCheckMethodTypeVRequire
+ FirewallCertificateRevocationListCheckMethodTypePRequire = &_FirewallCertificateRevocationListCheckMethodTypePRequire
+)
+
+var (
+ _FirewallCertificateRevocationListCheckMethodTypePDeviceDefault = FirewallCertificateRevocationListCheckMethodTypeVDeviceDefault
+ _FirewallCertificateRevocationListCheckMethodTypePNone = FirewallCertificateRevocationListCheckMethodTypeVNone
+ _FirewallCertificateRevocationListCheckMethodTypePAttempt = FirewallCertificateRevocationListCheckMethodTypeVAttempt
+ _FirewallCertificateRevocationListCheckMethodTypePRequire = FirewallCertificateRevocationListCheckMethodTypeVRequire
+)
+
+// FirewallPacketQueueingMethodType undocumented
+type FirewallPacketQueueingMethodType string
+
+const (
+ // FirewallPacketQueueingMethodTypeVDeviceDefault undocumented
+ FirewallPacketQueueingMethodTypeVDeviceDefault FirewallPacketQueueingMethodType = "deviceDefault"
+ // FirewallPacketQueueingMethodTypeVDisabled undocumented
+ FirewallPacketQueueingMethodTypeVDisabled FirewallPacketQueueingMethodType = "disabled"
+ // FirewallPacketQueueingMethodTypeVQueueInbound undocumented
+ FirewallPacketQueueingMethodTypeVQueueInbound FirewallPacketQueueingMethodType = "queueInbound"
+ // FirewallPacketQueueingMethodTypeVQueueOutbound undocumented
+ FirewallPacketQueueingMethodTypeVQueueOutbound FirewallPacketQueueingMethodType = "queueOutbound"
+ // FirewallPacketQueueingMethodTypeVQueueBoth undocumented
+ FirewallPacketQueueingMethodTypeVQueueBoth FirewallPacketQueueingMethodType = "queueBoth"
+)
+
+var (
+ // FirewallPacketQueueingMethodTypePDeviceDefault is a pointer to FirewallPacketQueueingMethodTypeVDeviceDefault
+ FirewallPacketQueueingMethodTypePDeviceDefault = &_FirewallPacketQueueingMethodTypePDeviceDefault
+ // FirewallPacketQueueingMethodTypePDisabled is a pointer to FirewallPacketQueueingMethodTypeVDisabled
+ FirewallPacketQueueingMethodTypePDisabled = &_FirewallPacketQueueingMethodTypePDisabled
+ // FirewallPacketQueueingMethodTypePQueueInbound is a pointer to FirewallPacketQueueingMethodTypeVQueueInbound
+ FirewallPacketQueueingMethodTypePQueueInbound = &_FirewallPacketQueueingMethodTypePQueueInbound
+ // FirewallPacketQueueingMethodTypePQueueOutbound is a pointer to FirewallPacketQueueingMethodTypeVQueueOutbound
+ FirewallPacketQueueingMethodTypePQueueOutbound = &_FirewallPacketQueueingMethodTypePQueueOutbound
+ // FirewallPacketQueueingMethodTypePQueueBoth is a pointer to FirewallPacketQueueingMethodTypeVQueueBoth
+ FirewallPacketQueueingMethodTypePQueueBoth = &_FirewallPacketQueueingMethodTypePQueueBoth
+)
+
+var (
+ _FirewallPacketQueueingMethodTypePDeviceDefault = FirewallPacketQueueingMethodTypeVDeviceDefault
+ _FirewallPacketQueueingMethodTypePDisabled = FirewallPacketQueueingMethodTypeVDisabled
+ _FirewallPacketQueueingMethodTypePQueueInbound = FirewallPacketQueueingMethodTypeVQueueInbound
+ _FirewallPacketQueueingMethodTypePQueueOutbound = FirewallPacketQueueingMethodTypeVQueueOutbound
+ _FirewallPacketQueueingMethodTypePQueueBoth = FirewallPacketQueueingMethodTypeVQueueBoth
+)
+
+// FirewallPreSharedKeyEncodingMethodType undocumented
+type FirewallPreSharedKeyEncodingMethodType string
+
+const (
+ // FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault undocumented
+ FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault FirewallPreSharedKeyEncodingMethodType = "deviceDefault"
+ // FirewallPreSharedKeyEncodingMethodTypeVNone undocumented
+ FirewallPreSharedKeyEncodingMethodTypeVNone FirewallPreSharedKeyEncodingMethodType = "none"
+ // FirewallPreSharedKeyEncodingMethodTypeVUtF8 undocumented
+ FirewallPreSharedKeyEncodingMethodTypeVUtF8 FirewallPreSharedKeyEncodingMethodType = "utF8"
+)
+
+var (
+ // FirewallPreSharedKeyEncodingMethodTypePDeviceDefault is a pointer to FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault
+ FirewallPreSharedKeyEncodingMethodTypePDeviceDefault = &_FirewallPreSharedKeyEncodingMethodTypePDeviceDefault
+ // FirewallPreSharedKeyEncodingMethodTypePNone is a pointer to FirewallPreSharedKeyEncodingMethodTypeVNone
+ FirewallPreSharedKeyEncodingMethodTypePNone = &_FirewallPreSharedKeyEncodingMethodTypePNone
+ // FirewallPreSharedKeyEncodingMethodTypePUtF8 is a pointer to FirewallPreSharedKeyEncodingMethodTypeVUtF8
+ FirewallPreSharedKeyEncodingMethodTypePUtF8 = &_FirewallPreSharedKeyEncodingMethodTypePUtF8
+)
+
+var (
+ _FirewallPreSharedKeyEncodingMethodTypePDeviceDefault = FirewallPreSharedKeyEncodingMethodTypeVDeviceDefault
+ _FirewallPreSharedKeyEncodingMethodTypePNone = FirewallPreSharedKeyEncodingMethodTypeVNone
+ _FirewallPreSharedKeyEncodingMethodTypePUtF8 = FirewallPreSharedKeyEncodingMethodTypeVUtF8
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFolder.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFolder.go
new file mode 100644
index 00000000..c3887b33
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFolder.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FolderProtectionType undocumented
+type FolderProtectionType string
+
+const (
+ // FolderProtectionTypeVUserDefined undocumented
+ FolderProtectionTypeVUserDefined FolderProtectionType = "userDefined"
+ // FolderProtectionTypeVEnable undocumented
+ FolderProtectionTypeVEnable FolderProtectionType = "enable"
+ // FolderProtectionTypeVAuditMode undocumented
+ FolderProtectionTypeVAuditMode FolderProtectionType = "auditMode"
+ // FolderProtectionTypeVBlockDiskModification undocumented
+ FolderProtectionTypeVBlockDiskModification FolderProtectionType = "blockDiskModification"
+ // FolderProtectionTypeVAuditDiskModification undocumented
+ FolderProtectionTypeVAuditDiskModification FolderProtectionType = "auditDiskModification"
+)
+
+var (
+ // FolderProtectionTypePUserDefined is a pointer to FolderProtectionTypeVUserDefined
+ FolderProtectionTypePUserDefined = &_FolderProtectionTypePUserDefined
+ // FolderProtectionTypePEnable is a pointer to FolderProtectionTypeVEnable
+ FolderProtectionTypePEnable = &_FolderProtectionTypePEnable
+ // FolderProtectionTypePAuditMode is a pointer to FolderProtectionTypeVAuditMode
+ FolderProtectionTypePAuditMode = &_FolderProtectionTypePAuditMode
+ // FolderProtectionTypePBlockDiskModification is a pointer to FolderProtectionTypeVBlockDiskModification
+ FolderProtectionTypePBlockDiskModification = &_FolderProtectionTypePBlockDiskModification
+ // FolderProtectionTypePAuditDiskModification is a pointer to FolderProtectionTypeVAuditDiskModification
+ FolderProtectionTypePAuditDiskModification = &_FolderProtectionTypePAuditDiskModification
+)
+
+var (
+ _FolderProtectionTypePUserDefined = FolderProtectionTypeVUserDefined
+ _FolderProtectionTypePEnable = FolderProtectionTypeVEnable
+ _FolderProtectionTypePAuditMode = FolderProtectionTypeVAuditMode
+ _FolderProtectionTypePBlockDiskModification = FolderProtectionTypeVBlockDiskModification
+ _FolderProtectionTypePAuditDiskModification = FolderProtectionTypeVAuditDiskModification
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFollowup.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFollowup.go
new file mode 100644
index 00000000..84e9350d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFollowup.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FollowupFlagStatus undocumented
+type FollowupFlagStatus string
+
+const (
+ // FollowupFlagStatusVNotFlagged undocumented
+ FollowupFlagStatusVNotFlagged FollowupFlagStatus = "notFlagged"
+ // FollowupFlagStatusVComplete undocumented
+ FollowupFlagStatusVComplete FollowupFlagStatus = "complete"
+ // FollowupFlagStatusVFlagged undocumented
+ FollowupFlagStatusVFlagged FollowupFlagStatus = "flagged"
+)
+
+var (
+ // FollowupFlagStatusPNotFlagged is a pointer to FollowupFlagStatusVNotFlagged
+ FollowupFlagStatusPNotFlagged = &_FollowupFlagStatusPNotFlagged
+ // FollowupFlagStatusPComplete is a pointer to FollowupFlagStatusVComplete
+ FollowupFlagStatusPComplete = &_FollowupFlagStatusPComplete
+ // FollowupFlagStatusPFlagged is a pointer to FollowupFlagStatusVFlagged
+ FollowupFlagStatusPFlagged = &_FollowupFlagStatusPFlagged
+)
+
+var (
+ _FollowupFlagStatusPNotFlagged = FollowupFlagStatusVNotFlagged
+ _FollowupFlagStatusPComplete = FollowupFlagStatusVComplete
+ _FollowupFlagStatusPFlagged = FollowupFlagStatusVFlagged
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumFree.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFree.go
new file mode 100644
index 00000000..39d73adc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumFree.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FreeBusyStatus undocumented
+type FreeBusyStatus string
+
+const (
+ // FreeBusyStatusVFree undocumented
+ FreeBusyStatusVFree FreeBusyStatus = "free"
+ // FreeBusyStatusVTentative undocumented
+ FreeBusyStatusVTentative FreeBusyStatus = "tentative"
+ // FreeBusyStatusVBusy undocumented
+ FreeBusyStatusVBusy FreeBusyStatus = "busy"
+ // FreeBusyStatusVOof undocumented
+ FreeBusyStatusVOof FreeBusyStatus = "oof"
+ // FreeBusyStatusVWorkingElsewhere undocumented
+ FreeBusyStatusVWorkingElsewhere FreeBusyStatus = "workingElsewhere"
+ // FreeBusyStatusVUnknown undocumented
+ FreeBusyStatusVUnknown FreeBusyStatus = "unknown"
+)
+
+var (
+ // FreeBusyStatusPFree is a pointer to FreeBusyStatusVFree
+ FreeBusyStatusPFree = &_FreeBusyStatusPFree
+ // FreeBusyStatusPTentative is a pointer to FreeBusyStatusVTentative
+ FreeBusyStatusPTentative = &_FreeBusyStatusPTentative
+ // FreeBusyStatusPBusy is a pointer to FreeBusyStatusVBusy
+ FreeBusyStatusPBusy = &_FreeBusyStatusPBusy
+ // FreeBusyStatusPOof is a pointer to FreeBusyStatusVOof
+ FreeBusyStatusPOof = &_FreeBusyStatusPOof
+ // FreeBusyStatusPWorkingElsewhere is a pointer to FreeBusyStatusVWorkingElsewhere
+ FreeBusyStatusPWorkingElsewhere = &_FreeBusyStatusPWorkingElsewhere
+ // FreeBusyStatusPUnknown is a pointer to FreeBusyStatusVUnknown
+ FreeBusyStatusPUnknown = &_FreeBusyStatusPUnknown
+)
+
+var (
+ _FreeBusyStatusPFree = FreeBusyStatusVFree
+ _FreeBusyStatusPTentative = FreeBusyStatusVTentative
+ _FreeBusyStatusPBusy = FreeBusyStatusVBusy
+ _FreeBusyStatusPOof = FreeBusyStatusVOof
+ _FreeBusyStatusPWorkingElsewhere = FreeBusyStatusVWorkingElsewhere
+ _FreeBusyStatusPUnknown = FreeBusyStatusVUnknown
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumGiphy.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumGiphy.go
new file mode 100644
index 00000000..3c5b2c7b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumGiphy.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GiphyRatingType undocumented
+type GiphyRatingType string
+
+const (
+ // GiphyRatingTypeVStrict undocumented
+ GiphyRatingTypeVStrict GiphyRatingType = "strict"
+ // GiphyRatingTypeVModerate undocumented
+ GiphyRatingTypeVModerate GiphyRatingType = "moderate"
+ // GiphyRatingTypeVUnknownFutureValue undocumented
+ GiphyRatingTypeVUnknownFutureValue GiphyRatingType = "unknownFutureValue"
+)
+
+var (
+ // GiphyRatingTypePStrict is a pointer to GiphyRatingTypeVStrict
+ GiphyRatingTypePStrict = &_GiphyRatingTypePStrict
+ // GiphyRatingTypePModerate is a pointer to GiphyRatingTypeVModerate
+ GiphyRatingTypePModerate = &_GiphyRatingTypePModerate
+ // GiphyRatingTypePUnknownFutureValue is a pointer to GiphyRatingTypeVUnknownFutureValue
+ GiphyRatingTypePUnknownFutureValue = &_GiphyRatingTypePUnknownFutureValue
+)
+
+var (
+ _GiphyRatingTypePStrict = GiphyRatingTypeVStrict
+ _GiphyRatingTypePModerate = GiphyRatingTypeVModerate
+ _GiphyRatingTypePUnknownFutureValue = GiphyRatingTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumGroup.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumGroup.go
new file mode 100644
index 00000000..325e6ced
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumGroup.go
@@ -0,0 +1,241 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GroupAccessType undocumented
+type GroupAccessType string
+
+const (
+ // GroupAccessTypeVNone undocumented
+ GroupAccessTypeVNone GroupAccessType = "none"
+ // GroupAccessTypeVPrivate undocumented
+ GroupAccessTypeVPrivate GroupAccessType = "private"
+ // GroupAccessTypeVSecret undocumented
+ GroupAccessTypeVSecret GroupAccessType = "secret"
+ // GroupAccessTypeVPublic undocumented
+ GroupAccessTypeVPublic GroupAccessType = "public"
+)
+
+var (
+ // GroupAccessTypePNone is a pointer to GroupAccessTypeVNone
+ GroupAccessTypePNone = &_GroupAccessTypePNone
+ // GroupAccessTypePPrivate is a pointer to GroupAccessTypeVPrivate
+ GroupAccessTypePPrivate = &_GroupAccessTypePPrivate
+ // GroupAccessTypePSecret is a pointer to GroupAccessTypeVSecret
+ GroupAccessTypePSecret = &_GroupAccessTypePSecret
+ // GroupAccessTypePPublic is a pointer to GroupAccessTypeVPublic
+ GroupAccessTypePPublic = &_GroupAccessTypePPublic
+)
+
+var (
+ _GroupAccessTypePNone = GroupAccessTypeVNone
+ _GroupAccessTypePPrivate = GroupAccessTypeVPrivate
+ _GroupAccessTypePSecret = GroupAccessTypeVSecret
+ _GroupAccessTypePPublic = GroupAccessTypeVPublic
+)
+
+// GroupPolicyConfigurationType undocumented
+type GroupPolicyConfigurationType string
+
+const (
+ // GroupPolicyConfigurationTypeVPolicy undocumented
+ GroupPolicyConfigurationTypeVPolicy GroupPolicyConfigurationType = "policy"
+ // GroupPolicyConfigurationTypeVPreference undocumented
+ GroupPolicyConfigurationTypeVPreference GroupPolicyConfigurationType = "preference"
+)
+
+var (
+ // GroupPolicyConfigurationTypePPolicy is a pointer to GroupPolicyConfigurationTypeVPolicy
+ GroupPolicyConfigurationTypePPolicy = &_GroupPolicyConfigurationTypePPolicy
+ // GroupPolicyConfigurationTypePPreference is a pointer to GroupPolicyConfigurationTypeVPreference
+ GroupPolicyConfigurationTypePPreference = &_GroupPolicyConfigurationTypePPreference
+)
+
+var (
+ _GroupPolicyConfigurationTypePPolicy = GroupPolicyConfigurationTypeVPolicy
+ _GroupPolicyConfigurationTypePPreference = GroupPolicyConfigurationTypeVPreference
+)
+
+// GroupPolicyDefinitionClassType undocumented
+type GroupPolicyDefinitionClassType string
+
+const (
+ // GroupPolicyDefinitionClassTypeVUser undocumented
+ GroupPolicyDefinitionClassTypeVUser GroupPolicyDefinitionClassType = "user"
+ // GroupPolicyDefinitionClassTypeVMachine undocumented
+ GroupPolicyDefinitionClassTypeVMachine GroupPolicyDefinitionClassType = "machine"
+)
+
+var (
+ // GroupPolicyDefinitionClassTypePUser is a pointer to GroupPolicyDefinitionClassTypeVUser
+ GroupPolicyDefinitionClassTypePUser = &_GroupPolicyDefinitionClassTypePUser
+ // GroupPolicyDefinitionClassTypePMachine is a pointer to GroupPolicyDefinitionClassTypeVMachine
+ GroupPolicyDefinitionClassTypePMachine = &_GroupPolicyDefinitionClassTypePMachine
+)
+
+var (
+ _GroupPolicyDefinitionClassTypePUser = GroupPolicyDefinitionClassTypeVUser
+ _GroupPolicyDefinitionClassTypePMachine = GroupPolicyDefinitionClassTypeVMachine
+)
+
+// GroupPolicyMigrationReadiness undocumented
+type GroupPolicyMigrationReadiness string
+
+const (
+ // GroupPolicyMigrationReadinessVNone undocumented
+ GroupPolicyMigrationReadinessVNone GroupPolicyMigrationReadiness = "none"
+ // GroupPolicyMigrationReadinessVPartial undocumented
+ GroupPolicyMigrationReadinessVPartial GroupPolicyMigrationReadiness = "partial"
+ // GroupPolicyMigrationReadinessVComplete undocumented
+ GroupPolicyMigrationReadinessVComplete GroupPolicyMigrationReadiness = "complete"
+ // GroupPolicyMigrationReadinessVError undocumented
+ GroupPolicyMigrationReadinessVError GroupPolicyMigrationReadiness = "error"
+ // GroupPolicyMigrationReadinessVNotApplicable undocumented
+ GroupPolicyMigrationReadinessVNotApplicable GroupPolicyMigrationReadiness = "notApplicable"
+)
+
+var (
+ // GroupPolicyMigrationReadinessPNone is a pointer to GroupPolicyMigrationReadinessVNone
+ GroupPolicyMigrationReadinessPNone = &_GroupPolicyMigrationReadinessPNone
+ // GroupPolicyMigrationReadinessPPartial is a pointer to GroupPolicyMigrationReadinessVPartial
+ GroupPolicyMigrationReadinessPPartial = &_GroupPolicyMigrationReadinessPPartial
+ // GroupPolicyMigrationReadinessPComplete is a pointer to GroupPolicyMigrationReadinessVComplete
+ GroupPolicyMigrationReadinessPComplete = &_GroupPolicyMigrationReadinessPComplete
+ // GroupPolicyMigrationReadinessPError is a pointer to GroupPolicyMigrationReadinessVError
+ GroupPolicyMigrationReadinessPError = &_GroupPolicyMigrationReadinessPError
+ // GroupPolicyMigrationReadinessPNotApplicable is a pointer to GroupPolicyMigrationReadinessVNotApplicable
+ GroupPolicyMigrationReadinessPNotApplicable = &_GroupPolicyMigrationReadinessPNotApplicable
+)
+
+var (
+ _GroupPolicyMigrationReadinessPNone = GroupPolicyMigrationReadinessVNone
+ _GroupPolicyMigrationReadinessPPartial = GroupPolicyMigrationReadinessVPartial
+ _GroupPolicyMigrationReadinessPComplete = GroupPolicyMigrationReadinessVComplete
+ _GroupPolicyMigrationReadinessPError = GroupPolicyMigrationReadinessVError
+ _GroupPolicyMigrationReadinessPNotApplicable = GroupPolicyMigrationReadinessVNotApplicable
+)
+
+// GroupPolicySettingScope undocumented
+type GroupPolicySettingScope string
+
+const (
+ // GroupPolicySettingScopeVUnknown undocumented
+ GroupPolicySettingScopeVUnknown GroupPolicySettingScope = "unknown"
+ // GroupPolicySettingScopeVDevice undocumented
+ GroupPolicySettingScopeVDevice GroupPolicySettingScope = "device"
+ // GroupPolicySettingScopeVUser undocumented
+ GroupPolicySettingScopeVUser GroupPolicySettingScope = "user"
+)
+
+var (
+ // GroupPolicySettingScopePUnknown is a pointer to GroupPolicySettingScopeVUnknown
+ GroupPolicySettingScopePUnknown = &_GroupPolicySettingScopePUnknown
+ // GroupPolicySettingScopePDevice is a pointer to GroupPolicySettingScopeVDevice
+ GroupPolicySettingScopePDevice = &_GroupPolicySettingScopePDevice
+ // GroupPolicySettingScopePUser is a pointer to GroupPolicySettingScopeVUser
+ GroupPolicySettingScopePUser = &_GroupPolicySettingScopePUser
+)
+
+var (
+ _GroupPolicySettingScopePUnknown = GroupPolicySettingScopeVUnknown
+ _GroupPolicySettingScopePDevice = GroupPolicySettingScopeVDevice
+ _GroupPolicySettingScopePUser = GroupPolicySettingScopeVUser
+)
+
+// GroupPolicySettingType undocumented
+type GroupPolicySettingType string
+
+const (
+ // GroupPolicySettingTypeVUnknown undocumented
+ GroupPolicySettingTypeVUnknown GroupPolicySettingType = "unknown"
+ // GroupPolicySettingTypeVPolicy undocumented
+ GroupPolicySettingTypeVPolicy GroupPolicySettingType = "policy"
+ // GroupPolicySettingTypeVAccount undocumented
+ GroupPolicySettingTypeVAccount GroupPolicySettingType = "account"
+)
+
+var (
+ // GroupPolicySettingTypePUnknown is a pointer to GroupPolicySettingTypeVUnknown
+ GroupPolicySettingTypePUnknown = &_GroupPolicySettingTypePUnknown
+ // GroupPolicySettingTypePPolicy is a pointer to GroupPolicySettingTypeVPolicy
+ GroupPolicySettingTypePPolicy = &_GroupPolicySettingTypePPolicy
+ // GroupPolicySettingTypePAccount is a pointer to GroupPolicySettingTypeVAccount
+ GroupPolicySettingTypePAccount = &_GroupPolicySettingTypePAccount
+)
+
+var (
+ _GroupPolicySettingTypePUnknown = GroupPolicySettingTypeVUnknown
+ _GroupPolicySettingTypePPolicy = GroupPolicySettingTypeVPolicy
+ _GroupPolicySettingTypePAccount = GroupPolicySettingTypeVAccount
+)
+
+// GroupPolicyType undocumented
+type GroupPolicyType string
+
+const (
+ // GroupPolicyTypeVAdmxBacked undocumented
+ GroupPolicyTypeVAdmxBacked GroupPolicyType = "admxBacked"
+ // GroupPolicyTypeVAdmxIngested undocumented
+ GroupPolicyTypeVAdmxIngested GroupPolicyType = "admxIngested"
+)
+
+var (
+ // GroupPolicyTypePAdmxBacked is a pointer to GroupPolicyTypeVAdmxBacked
+ GroupPolicyTypePAdmxBacked = &_GroupPolicyTypePAdmxBacked
+ // GroupPolicyTypePAdmxIngested is a pointer to GroupPolicyTypeVAdmxIngested
+ GroupPolicyTypePAdmxIngested = &_GroupPolicyTypePAdmxIngested
+)
+
+var (
+ _GroupPolicyTypePAdmxBacked = GroupPolicyTypeVAdmxBacked
+ _GroupPolicyTypePAdmxIngested = GroupPolicyTypeVAdmxIngested
+)
+
+// GroupPrivacy undocumented
+type GroupPrivacy string
+
+const (
+ // GroupPrivacyVPublic undocumented
+ GroupPrivacyVPublic GroupPrivacy = "public"
+ // GroupPrivacyVPrivate undocumented
+ GroupPrivacyVPrivate GroupPrivacy = "private"
+)
+
+var (
+ // GroupPrivacyPPublic is a pointer to GroupPrivacyVPublic
+ GroupPrivacyPPublic = &_GroupPrivacyPPublic
+ // GroupPrivacyPPrivate is a pointer to GroupPrivacyVPrivate
+ GroupPrivacyPPrivate = &_GroupPrivacyPPrivate
+)
+
+var (
+ _GroupPrivacyPPublic = GroupPrivacyVPublic
+ _GroupPrivacyPPrivate = GroupPrivacyVPrivate
+)
+
+// GroupType undocumented
+type GroupType string
+
+const (
+ // GroupTypeVUnifiedGroups undocumented
+ GroupTypeVUnifiedGroups GroupType = "unifiedGroups"
+ // GroupTypeVAzureAD undocumented
+ GroupTypeVAzureAD GroupType = "azureAD"
+ // GroupTypeVUnknownFutureValue undocumented
+ GroupTypeVUnknownFutureValue GroupType = "unknownFutureValue"
+)
+
+var (
+ // GroupTypePUnifiedGroups is a pointer to GroupTypeVUnifiedGroups
+ GroupTypePUnifiedGroups = &_GroupTypePUnifiedGroups
+ // GroupTypePAzureAD is a pointer to GroupTypeVAzureAD
+ GroupTypePAzureAD = &_GroupTypePAzureAD
+ // GroupTypePUnknownFutureValue is a pointer to GroupTypeVUnknownFutureValue
+ GroupTypePUnknownFutureValue = &_GroupTypePUnknownFutureValue
+)
+
+var (
+ _GroupTypePUnifiedGroups = GroupTypeVUnifiedGroups
+ _GroupTypePAzureAD = GroupTypeVAzureAD
+ _GroupTypePUnknownFutureValue = GroupTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumHash.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumHash.go
new file mode 100644
index 00000000..03bd2de8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumHash.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HashAlgorithms undocumented
+type HashAlgorithms string
+
+const (
+ // HashAlgorithmsVSha1 undocumented
+ HashAlgorithmsVSha1 HashAlgorithms = "sha1"
+ // HashAlgorithmsVSha2 undocumented
+ HashAlgorithmsVSha2 HashAlgorithms = "sha2"
+)
+
+var (
+ // HashAlgorithmsPSha1 is a pointer to HashAlgorithmsVSha1
+ HashAlgorithmsPSha1 = &_HashAlgorithmsPSha1
+ // HashAlgorithmsPSha2 is a pointer to HashAlgorithmsVSha2
+ HashAlgorithmsPSha2 = &_HashAlgorithmsPSha2
+)
+
+var (
+ _HashAlgorithmsPSha1 = HashAlgorithmsVSha1
+ _HashAlgorithmsPSha2 = HashAlgorithmsVSha2
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumHealth.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumHealth.go
new file mode 100644
index 00000000..9f7413d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumHealth.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HealthState undocumented
+type HealthState string
+
+const (
+ // HealthStateVUnknown undocumented
+ HealthStateVUnknown HealthState = "unknown"
+ // HealthStateVHealthy undocumented
+ HealthStateVHealthy HealthState = "healthy"
+ // HealthStateVUnhealthy undocumented
+ HealthStateVUnhealthy HealthState = "unhealthy"
+)
+
+var (
+ // HealthStatePUnknown is a pointer to HealthStateVUnknown
+ HealthStatePUnknown = &_HealthStatePUnknown
+ // HealthStatePHealthy is a pointer to HealthStateVHealthy
+ HealthStatePHealthy = &_HealthStatePHealthy
+ // HealthStatePUnhealthy is a pointer to HealthStateVUnhealthy
+ HealthStatePUnhealthy = &_HealthStatePUnhealthy
+)
+
+var (
+ _HealthStatePUnknown = HealthStateVUnknown
+ _HealthStatePHealthy = HealthStateVHealthy
+ _HealthStatePUnhealthy = HealthStateVUnhealthy
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumIOS.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumIOS.go
new file mode 100644
index 00000000..65f01fdb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumIOS.go
@@ -0,0 +1,164 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IOSNotificationAlertType undocumented
+type IOSNotificationAlertType string
+
+const (
+ // IOSNotificationAlertTypeVDeviceDefault undocumented
+ IOSNotificationAlertTypeVDeviceDefault IOSNotificationAlertType = "deviceDefault"
+ // IOSNotificationAlertTypeVBanner undocumented
+ IOSNotificationAlertTypeVBanner IOSNotificationAlertType = "banner"
+ // IOSNotificationAlertTypeVModal undocumented
+ IOSNotificationAlertTypeVModal IOSNotificationAlertType = "modal"
+ // IOSNotificationAlertTypeVNone undocumented
+ IOSNotificationAlertTypeVNone IOSNotificationAlertType = "none"
+)
+
+var (
+ // IOSNotificationAlertTypePDeviceDefault is a pointer to IOSNotificationAlertTypeVDeviceDefault
+ IOSNotificationAlertTypePDeviceDefault = &_IOSNotificationAlertTypePDeviceDefault
+ // IOSNotificationAlertTypePBanner is a pointer to IOSNotificationAlertTypeVBanner
+ IOSNotificationAlertTypePBanner = &_IOSNotificationAlertTypePBanner
+ // IOSNotificationAlertTypePModal is a pointer to IOSNotificationAlertTypeVModal
+ IOSNotificationAlertTypePModal = &_IOSNotificationAlertTypePModal
+ // IOSNotificationAlertTypePNone is a pointer to IOSNotificationAlertTypeVNone
+ IOSNotificationAlertTypePNone = &_IOSNotificationAlertTypePNone
+)
+
+var (
+ _IOSNotificationAlertTypePDeviceDefault = IOSNotificationAlertTypeVDeviceDefault
+ _IOSNotificationAlertTypePBanner = IOSNotificationAlertTypeVBanner
+ _IOSNotificationAlertTypePModal = IOSNotificationAlertTypeVModal
+ _IOSNotificationAlertTypePNone = IOSNotificationAlertTypeVNone
+)
+
+// IOSUpdatesInstallStatus undocumented
+type IOSUpdatesInstallStatus string
+
+const (
+ // IOSUpdatesInstallStatusVSuccess undocumented
+ IOSUpdatesInstallStatusVSuccess IOSUpdatesInstallStatus = "success"
+ // IOSUpdatesInstallStatusVAvailable undocumented
+ IOSUpdatesInstallStatusVAvailable IOSUpdatesInstallStatus = "available"
+ // IOSUpdatesInstallStatusVIdle undocumented
+ IOSUpdatesInstallStatusVIdle IOSUpdatesInstallStatus = "idle"
+ // IOSUpdatesInstallStatusVUnknown undocumented
+ IOSUpdatesInstallStatusVUnknown IOSUpdatesInstallStatus = "unknown"
+ // IOSUpdatesInstallStatusVDownloading undocumented
+ IOSUpdatesInstallStatusVDownloading IOSUpdatesInstallStatus = "downloading"
+ // IOSUpdatesInstallStatusVDownloadFailed undocumented
+ IOSUpdatesInstallStatusVDownloadFailed IOSUpdatesInstallStatus = "downloadFailed"
+ // IOSUpdatesInstallStatusVDownloadRequiresComputer undocumented
+ IOSUpdatesInstallStatusVDownloadRequiresComputer IOSUpdatesInstallStatus = "downloadRequiresComputer"
+ // IOSUpdatesInstallStatusVDownloadInsufficientSpace undocumented
+ IOSUpdatesInstallStatusVDownloadInsufficientSpace IOSUpdatesInstallStatus = "downloadInsufficientSpace"
+ // IOSUpdatesInstallStatusVDownloadInsufficientPower undocumented
+ IOSUpdatesInstallStatusVDownloadInsufficientPower IOSUpdatesInstallStatus = "downloadInsufficientPower"
+ // IOSUpdatesInstallStatusVDownloadInsufficientNetwork undocumented
+ IOSUpdatesInstallStatusVDownloadInsufficientNetwork IOSUpdatesInstallStatus = "downloadInsufficientNetwork"
+ // IOSUpdatesInstallStatusVInstalling undocumented
+ IOSUpdatesInstallStatusVInstalling IOSUpdatesInstallStatus = "installing"
+ // IOSUpdatesInstallStatusVInstallInsufficientSpace undocumented
+ IOSUpdatesInstallStatusVInstallInsufficientSpace IOSUpdatesInstallStatus = "installInsufficientSpace"
+ // IOSUpdatesInstallStatusVInstallInsufficientPower undocumented
+ IOSUpdatesInstallStatusVInstallInsufficientPower IOSUpdatesInstallStatus = "installInsufficientPower"
+ // IOSUpdatesInstallStatusVInstallPhoneCallInProgress undocumented
+ IOSUpdatesInstallStatusVInstallPhoneCallInProgress IOSUpdatesInstallStatus = "installPhoneCallInProgress"
+ // IOSUpdatesInstallStatusVInstallFailed undocumented
+ IOSUpdatesInstallStatusVInstallFailed IOSUpdatesInstallStatus = "installFailed"
+ // IOSUpdatesInstallStatusVNotSupportedOperation undocumented
+ IOSUpdatesInstallStatusVNotSupportedOperation IOSUpdatesInstallStatus = "notSupportedOperation"
+ // IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError undocumented
+ IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError IOSUpdatesInstallStatus = "sharedDeviceUserLoggedInError"
+)
+
+var (
+ // IOSUpdatesInstallStatusPSuccess is a pointer to IOSUpdatesInstallStatusVSuccess
+ IOSUpdatesInstallStatusPSuccess = &_IOSUpdatesInstallStatusPSuccess
+ // IOSUpdatesInstallStatusPAvailable is a pointer to IOSUpdatesInstallStatusVAvailable
+ IOSUpdatesInstallStatusPAvailable = &_IOSUpdatesInstallStatusPAvailable
+ // IOSUpdatesInstallStatusPIdle is a pointer to IOSUpdatesInstallStatusVIdle
+ IOSUpdatesInstallStatusPIdle = &_IOSUpdatesInstallStatusPIdle
+ // IOSUpdatesInstallStatusPUnknown is a pointer to IOSUpdatesInstallStatusVUnknown
+ IOSUpdatesInstallStatusPUnknown = &_IOSUpdatesInstallStatusPUnknown
+ // IOSUpdatesInstallStatusPDownloading is a pointer to IOSUpdatesInstallStatusVDownloading
+ IOSUpdatesInstallStatusPDownloading = &_IOSUpdatesInstallStatusPDownloading
+ // IOSUpdatesInstallStatusPDownloadFailed is a pointer to IOSUpdatesInstallStatusVDownloadFailed
+ IOSUpdatesInstallStatusPDownloadFailed = &_IOSUpdatesInstallStatusPDownloadFailed
+ // IOSUpdatesInstallStatusPDownloadRequiresComputer is a pointer to IOSUpdatesInstallStatusVDownloadRequiresComputer
+ IOSUpdatesInstallStatusPDownloadRequiresComputer = &_IOSUpdatesInstallStatusPDownloadRequiresComputer
+ // IOSUpdatesInstallStatusPDownloadInsufficientSpace is a pointer to IOSUpdatesInstallStatusVDownloadInsufficientSpace
+ IOSUpdatesInstallStatusPDownloadInsufficientSpace = &_IOSUpdatesInstallStatusPDownloadInsufficientSpace
+ // IOSUpdatesInstallStatusPDownloadInsufficientPower is a pointer to IOSUpdatesInstallStatusVDownloadInsufficientPower
+ IOSUpdatesInstallStatusPDownloadInsufficientPower = &_IOSUpdatesInstallStatusPDownloadInsufficientPower
+ // IOSUpdatesInstallStatusPDownloadInsufficientNetwork is a pointer to IOSUpdatesInstallStatusVDownloadInsufficientNetwork
+ IOSUpdatesInstallStatusPDownloadInsufficientNetwork = &_IOSUpdatesInstallStatusPDownloadInsufficientNetwork
+ // IOSUpdatesInstallStatusPInstalling is a pointer to IOSUpdatesInstallStatusVInstalling
+ IOSUpdatesInstallStatusPInstalling = &_IOSUpdatesInstallStatusPInstalling
+ // IOSUpdatesInstallStatusPInstallInsufficientSpace is a pointer to IOSUpdatesInstallStatusVInstallInsufficientSpace
+ IOSUpdatesInstallStatusPInstallInsufficientSpace = &_IOSUpdatesInstallStatusPInstallInsufficientSpace
+ // IOSUpdatesInstallStatusPInstallInsufficientPower is a pointer to IOSUpdatesInstallStatusVInstallInsufficientPower
+ IOSUpdatesInstallStatusPInstallInsufficientPower = &_IOSUpdatesInstallStatusPInstallInsufficientPower
+ // IOSUpdatesInstallStatusPInstallPhoneCallInProgress is a pointer to IOSUpdatesInstallStatusVInstallPhoneCallInProgress
+ IOSUpdatesInstallStatusPInstallPhoneCallInProgress = &_IOSUpdatesInstallStatusPInstallPhoneCallInProgress
+ // IOSUpdatesInstallStatusPInstallFailed is a pointer to IOSUpdatesInstallStatusVInstallFailed
+ IOSUpdatesInstallStatusPInstallFailed = &_IOSUpdatesInstallStatusPInstallFailed
+ // IOSUpdatesInstallStatusPNotSupportedOperation is a pointer to IOSUpdatesInstallStatusVNotSupportedOperation
+ IOSUpdatesInstallStatusPNotSupportedOperation = &_IOSUpdatesInstallStatusPNotSupportedOperation
+ // IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError is a pointer to IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError
+ IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError = &_IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError
+)
+
+var (
+ _IOSUpdatesInstallStatusPSuccess = IOSUpdatesInstallStatusVSuccess
+ _IOSUpdatesInstallStatusPAvailable = IOSUpdatesInstallStatusVAvailable
+ _IOSUpdatesInstallStatusPIdle = IOSUpdatesInstallStatusVIdle
+ _IOSUpdatesInstallStatusPUnknown = IOSUpdatesInstallStatusVUnknown
+ _IOSUpdatesInstallStatusPDownloading = IOSUpdatesInstallStatusVDownloading
+ _IOSUpdatesInstallStatusPDownloadFailed = IOSUpdatesInstallStatusVDownloadFailed
+ _IOSUpdatesInstallStatusPDownloadRequiresComputer = IOSUpdatesInstallStatusVDownloadRequiresComputer
+ _IOSUpdatesInstallStatusPDownloadInsufficientSpace = IOSUpdatesInstallStatusVDownloadInsufficientSpace
+ _IOSUpdatesInstallStatusPDownloadInsufficientPower = IOSUpdatesInstallStatusVDownloadInsufficientPower
+ _IOSUpdatesInstallStatusPDownloadInsufficientNetwork = IOSUpdatesInstallStatusVDownloadInsufficientNetwork
+ _IOSUpdatesInstallStatusPInstalling = IOSUpdatesInstallStatusVInstalling
+ _IOSUpdatesInstallStatusPInstallInsufficientSpace = IOSUpdatesInstallStatusVInstallInsufficientSpace
+ _IOSUpdatesInstallStatusPInstallInsufficientPower = IOSUpdatesInstallStatusVInstallInsufficientPower
+ _IOSUpdatesInstallStatusPInstallPhoneCallInProgress = IOSUpdatesInstallStatusVInstallPhoneCallInProgress
+ _IOSUpdatesInstallStatusPInstallFailed = IOSUpdatesInstallStatusVInstallFailed
+ _IOSUpdatesInstallStatusPNotSupportedOperation = IOSUpdatesInstallStatusVNotSupportedOperation
+ _IOSUpdatesInstallStatusPSharedDeviceUserLoggedInError = IOSUpdatesInstallStatusVSharedDeviceUserLoggedInError
+)
+
+// IOSWallpaperDisplayLocation undocumented
+type IOSWallpaperDisplayLocation string
+
+const (
+ // IOSWallpaperDisplayLocationVNotConfigured undocumented
+ IOSWallpaperDisplayLocationVNotConfigured IOSWallpaperDisplayLocation = "notConfigured"
+ // IOSWallpaperDisplayLocationVLockScreen undocumented
+ IOSWallpaperDisplayLocationVLockScreen IOSWallpaperDisplayLocation = "lockScreen"
+ // IOSWallpaperDisplayLocationVHomeScreen undocumented
+ IOSWallpaperDisplayLocationVHomeScreen IOSWallpaperDisplayLocation = "homeScreen"
+ // IOSWallpaperDisplayLocationVLockAndHomeScreens undocumented
+ IOSWallpaperDisplayLocationVLockAndHomeScreens IOSWallpaperDisplayLocation = "lockAndHomeScreens"
+)
+
+var (
+ // IOSWallpaperDisplayLocationPNotConfigured is a pointer to IOSWallpaperDisplayLocationVNotConfigured
+ IOSWallpaperDisplayLocationPNotConfigured = &_IOSWallpaperDisplayLocationPNotConfigured
+ // IOSWallpaperDisplayLocationPLockScreen is a pointer to IOSWallpaperDisplayLocationVLockScreen
+ IOSWallpaperDisplayLocationPLockScreen = &_IOSWallpaperDisplayLocationPLockScreen
+ // IOSWallpaperDisplayLocationPHomeScreen is a pointer to IOSWallpaperDisplayLocationVHomeScreen
+ IOSWallpaperDisplayLocationPHomeScreen = &_IOSWallpaperDisplayLocationPHomeScreen
+ // IOSWallpaperDisplayLocationPLockAndHomeScreens is a pointer to IOSWallpaperDisplayLocationVLockAndHomeScreens
+ IOSWallpaperDisplayLocationPLockAndHomeScreens = &_IOSWallpaperDisplayLocationPLockAndHomeScreens
+)
+
+var (
+ _IOSWallpaperDisplayLocationPNotConfigured = IOSWallpaperDisplayLocationVNotConfigured
+ _IOSWallpaperDisplayLocationPLockScreen = IOSWallpaperDisplayLocationVLockScreen
+ _IOSWallpaperDisplayLocationPHomeScreen = IOSWallpaperDisplayLocationVHomeScreen
+ _IOSWallpaperDisplayLocationPLockAndHomeScreens = IOSWallpaperDisplayLocationVLockAndHomeScreens
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumITunes.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumITunes.go
new file mode 100644
index 00000000..2e54a4cc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumITunes.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ITunesPairingMode undocumented
+type ITunesPairingMode string
+
+const (
+ // ITunesPairingModeVDisallow undocumented
+ ITunesPairingModeVDisallow ITunesPairingMode = "disallow"
+ // ITunesPairingModeVAllow undocumented
+ ITunesPairingModeVAllow ITunesPairingMode = "allow"
+ // ITunesPairingModeVRequiresCertificate undocumented
+ ITunesPairingModeVRequiresCertificate ITunesPairingMode = "requiresCertificate"
+)
+
+var (
+ // ITunesPairingModePDisallow is a pointer to ITunesPairingModeVDisallow
+ ITunesPairingModePDisallow = &_ITunesPairingModePDisallow
+ // ITunesPairingModePAllow is a pointer to ITunesPairingModeVAllow
+ ITunesPairingModePAllow = &_ITunesPairingModePAllow
+ // ITunesPairingModePRequiresCertificate is a pointer to ITunesPairingModeVRequiresCertificate
+ ITunesPairingModePRequiresCertificate = &_ITunesPairingModePRequiresCertificate
+)
+
+var (
+ _ITunesPairingModePDisallow = ITunesPairingModeVDisallow
+ _ITunesPairingModePAllow = ITunesPairingModeVAllow
+ _ITunesPairingModePRequiresCertificate = ITunesPairingModeVRequiresCertificate
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumImportance.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumImportance.go
new file mode 100644
index 00000000..f6c10ee5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumImportance.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Importance undocumented
+type Importance string
+
+const (
+ // ImportanceVLow undocumented
+ ImportanceVLow Importance = "low"
+ // ImportanceVNormal undocumented
+ ImportanceVNormal Importance = "normal"
+ // ImportanceVHigh undocumented
+ ImportanceVHigh Importance = "high"
+)
+
+var (
+ // ImportancePLow is a pointer to ImportanceVLow
+ ImportancePLow = &_ImportancePLow
+ // ImportancePNormal is a pointer to ImportanceVNormal
+ ImportancePNormal = &_ImportancePNormal
+ // ImportancePHigh is a pointer to ImportanceVHigh
+ ImportancePHigh = &_ImportancePHigh
+)
+
+var (
+ _ImportancePLow = ImportanceVLow
+ _ImportancePNormal = ImportanceVNormal
+ _ImportancePHigh = ImportanceVHigh
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumImported.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumImported.go
new file mode 100644
index 00000000..d524d490
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumImported.go
@@ -0,0 +1,99 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImportedDeviceIdentityType undocumented
+type ImportedDeviceIdentityType string
+
+const (
+ // ImportedDeviceIdentityTypeVUnknown undocumented
+ ImportedDeviceIdentityTypeVUnknown ImportedDeviceIdentityType = "unknown"
+ // ImportedDeviceIdentityTypeVImei undocumented
+ ImportedDeviceIdentityTypeVImei ImportedDeviceIdentityType = "imei"
+ // ImportedDeviceIdentityTypeVSerialNumber undocumented
+ ImportedDeviceIdentityTypeVSerialNumber ImportedDeviceIdentityType = "serialNumber"
+)
+
+var (
+ // ImportedDeviceIdentityTypePUnknown is a pointer to ImportedDeviceIdentityTypeVUnknown
+ ImportedDeviceIdentityTypePUnknown = &_ImportedDeviceIdentityTypePUnknown
+ // ImportedDeviceIdentityTypePImei is a pointer to ImportedDeviceIdentityTypeVImei
+ ImportedDeviceIdentityTypePImei = &_ImportedDeviceIdentityTypePImei
+ // ImportedDeviceIdentityTypePSerialNumber is a pointer to ImportedDeviceIdentityTypeVSerialNumber
+ ImportedDeviceIdentityTypePSerialNumber = &_ImportedDeviceIdentityTypePSerialNumber
+)
+
+var (
+ _ImportedDeviceIdentityTypePUnknown = ImportedDeviceIdentityTypeVUnknown
+ _ImportedDeviceIdentityTypePImei = ImportedDeviceIdentityTypeVImei
+ _ImportedDeviceIdentityTypePSerialNumber = ImportedDeviceIdentityTypeVSerialNumber
+)
+
+// ImportedWindowsAutopilotDeviceIdentityImportStatus undocumented
+type ImportedWindowsAutopilotDeviceIdentityImportStatus string
+
+const (
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown ImportedWindowsAutopilotDeviceIdentityImportStatus = "unknown"
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVPending undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVPending ImportedWindowsAutopilotDeviceIdentityImportStatus = "pending"
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial ImportedWindowsAutopilotDeviceIdentityImportStatus = "partial"
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete ImportedWindowsAutopilotDeviceIdentityImportStatus = "complete"
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusVError undocumented
+ ImportedWindowsAutopilotDeviceIdentityImportStatusVError ImportedWindowsAutopilotDeviceIdentityImportStatus = "error"
+)
+
+var (
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown
+ ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusPPending is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVPending
+ ImportedWindowsAutopilotDeviceIdentityImportStatusPPending = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPPending
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial
+ ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete
+ ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete
+ // ImportedWindowsAutopilotDeviceIdentityImportStatusPError is a pointer to ImportedWindowsAutopilotDeviceIdentityImportStatusVError
+ ImportedWindowsAutopilotDeviceIdentityImportStatusPError = &_ImportedWindowsAutopilotDeviceIdentityImportStatusPError
+)
+
+var (
+ _ImportedWindowsAutopilotDeviceIdentityImportStatusPUnknown = ImportedWindowsAutopilotDeviceIdentityImportStatusVUnknown
+ _ImportedWindowsAutopilotDeviceIdentityImportStatusPPending = ImportedWindowsAutopilotDeviceIdentityImportStatusVPending
+ _ImportedWindowsAutopilotDeviceIdentityImportStatusPPartial = ImportedWindowsAutopilotDeviceIdentityImportStatusVPartial
+ _ImportedWindowsAutopilotDeviceIdentityImportStatusPComplete = ImportedWindowsAutopilotDeviceIdentityImportStatusVComplete
+ _ImportedWindowsAutopilotDeviceIdentityImportStatusPError = ImportedWindowsAutopilotDeviceIdentityImportStatusVError
+)
+
+// ImportedWindowsAutopilotDeviceIdentityUploadStatus undocumented
+type ImportedWindowsAutopilotDeviceIdentityUploadStatus string
+
+const (
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload ImportedWindowsAutopilotDeviceIdentityUploadStatus = "noUpload"
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending ImportedWindowsAutopilotDeviceIdentityUploadStatus = "pending"
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete ImportedWindowsAutopilotDeviceIdentityUploadStatus = "complete"
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusVError undocumented
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusVError ImportedWindowsAutopilotDeviceIdentityUploadStatus = "error"
+)
+
+var (
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload is a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload = &_ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending is a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending = &_ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete is a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete = &_ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete
+ // ImportedWindowsAutopilotDeviceIdentityUploadStatusPError is a pointer to ImportedWindowsAutopilotDeviceIdentityUploadStatusVError
+ ImportedWindowsAutopilotDeviceIdentityUploadStatusPError = &_ImportedWindowsAutopilotDeviceIdentityUploadStatusPError
+)
+
+var (
+ _ImportedWindowsAutopilotDeviceIdentityUploadStatusPNoUpload = ImportedWindowsAutopilotDeviceIdentityUploadStatusVNoUpload
+ _ImportedWindowsAutopilotDeviceIdentityUploadStatusPPending = ImportedWindowsAutopilotDeviceIdentityUploadStatusVPending
+ _ImportedWindowsAutopilotDeviceIdentityUploadStatusPComplete = ImportedWindowsAutopilotDeviceIdentityUploadStatusVComplete
+ _ImportedWindowsAutopilotDeviceIdentityUploadStatusPError = ImportedWindowsAutopilotDeviceIdentityUploadStatusVError
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInference.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInference.go
new file mode 100644
index 00000000..d3be8718
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInference.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InferenceClassificationType undocumented
+type InferenceClassificationType string
+
+const (
+ // InferenceClassificationTypeVFocused undocumented
+ InferenceClassificationTypeVFocused InferenceClassificationType = "focused"
+ // InferenceClassificationTypeVOther undocumented
+ InferenceClassificationTypeVOther InferenceClassificationType = "other"
+)
+
+var (
+ // InferenceClassificationTypePFocused is a pointer to InferenceClassificationTypeVFocused
+ InferenceClassificationTypePFocused = &_InferenceClassificationTypePFocused
+ // InferenceClassificationTypePOther is a pointer to InferenceClassificationTypeVOther
+ InferenceClassificationTypePOther = &_InferenceClassificationTypePOther
+)
+
+var (
+ _InferenceClassificationTypePFocused = InferenceClassificationTypeVFocused
+ _InferenceClassificationTypePOther = InferenceClassificationTypeVOther
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInitiator.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInitiator.go
new file mode 100644
index 00000000..26550d50
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInitiator.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InitiatorType undocumented
+type InitiatorType string
+
+const (
+ // InitiatorTypeVUser undocumented
+ InitiatorTypeVUser InitiatorType = "user"
+ // InitiatorTypeVApp undocumented
+ InitiatorTypeVApp InitiatorType = "app"
+ // InitiatorTypeVSystem undocumented
+ InitiatorTypeVSystem InitiatorType = "system"
+ // InitiatorTypeVUnknownFutureValue undocumented
+ InitiatorTypeVUnknownFutureValue InitiatorType = "unknownFutureValue"
+)
+
+var (
+ // InitiatorTypePUser is a pointer to InitiatorTypeVUser
+ InitiatorTypePUser = &_InitiatorTypePUser
+ // InitiatorTypePApp is a pointer to InitiatorTypeVApp
+ InitiatorTypePApp = &_InitiatorTypePApp
+ // InitiatorTypePSystem is a pointer to InitiatorTypeVSystem
+ InitiatorTypePSystem = &_InitiatorTypePSystem
+ // InitiatorTypePUnknownFutureValue is a pointer to InitiatorTypeVUnknownFutureValue
+ InitiatorTypePUnknownFutureValue = &_InitiatorTypePUnknownFutureValue
+)
+
+var (
+ _InitiatorTypePUser = InitiatorTypeVUser
+ _InitiatorTypePApp = InitiatorTypeVApp
+ _InitiatorTypePSystem = InitiatorTypeVSystem
+ _InitiatorTypePUnknownFutureValue = InitiatorTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInk.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInk.go
new file mode 100644
index 00000000..16467e85
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInk.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InkAccessSetting undocumented
+type InkAccessSetting string
+
+const (
+ // InkAccessSettingVNotConfigured undocumented
+ InkAccessSettingVNotConfigured InkAccessSetting = "notConfigured"
+ // InkAccessSettingVEnabled undocumented
+ InkAccessSettingVEnabled InkAccessSetting = "enabled"
+ // InkAccessSettingVDisabled undocumented
+ InkAccessSettingVDisabled InkAccessSetting = "disabled"
+)
+
+var (
+ // InkAccessSettingPNotConfigured is a pointer to InkAccessSettingVNotConfigured
+ InkAccessSettingPNotConfigured = &_InkAccessSettingPNotConfigured
+ // InkAccessSettingPEnabled is a pointer to InkAccessSettingVEnabled
+ InkAccessSettingPEnabled = &_InkAccessSettingPEnabled
+ // InkAccessSettingPDisabled is a pointer to InkAccessSettingVDisabled
+ InkAccessSettingPDisabled = &_InkAccessSettingPDisabled
+)
+
+var (
+ _InkAccessSettingPNotConfigured = InkAccessSettingVNotConfigured
+ _InkAccessSettingPEnabled = InkAccessSettingVEnabled
+ _InkAccessSettingPDisabled = InkAccessSettingVDisabled
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInstall.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInstall.go
new file mode 100644
index 00000000..8f010113
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInstall.go
@@ -0,0 +1,77 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InstallIntent undocumented
+type InstallIntent string
+
+const (
+ // InstallIntentVAvailable undocumented
+ InstallIntentVAvailable InstallIntent = "available"
+ // InstallIntentVRequired undocumented
+ InstallIntentVRequired InstallIntent = "required"
+ // InstallIntentVUninstall undocumented
+ InstallIntentVUninstall InstallIntent = "uninstall"
+ // InstallIntentVAvailableWithoutEnrollment undocumented
+ InstallIntentVAvailableWithoutEnrollment InstallIntent = "availableWithoutEnrollment"
+)
+
+var (
+ // InstallIntentPAvailable is a pointer to InstallIntentVAvailable
+ InstallIntentPAvailable = &_InstallIntentPAvailable
+ // InstallIntentPRequired is a pointer to InstallIntentVRequired
+ InstallIntentPRequired = &_InstallIntentPRequired
+ // InstallIntentPUninstall is a pointer to InstallIntentVUninstall
+ InstallIntentPUninstall = &_InstallIntentPUninstall
+ // InstallIntentPAvailableWithoutEnrollment is a pointer to InstallIntentVAvailableWithoutEnrollment
+ InstallIntentPAvailableWithoutEnrollment = &_InstallIntentPAvailableWithoutEnrollment
+)
+
+var (
+ _InstallIntentPAvailable = InstallIntentVAvailable
+ _InstallIntentPRequired = InstallIntentVRequired
+ _InstallIntentPUninstall = InstallIntentVUninstall
+ _InstallIntentPAvailableWithoutEnrollment = InstallIntentVAvailableWithoutEnrollment
+)
+
+// InstallState undocumented
+type InstallState string
+
+const (
+ // InstallStateVNotApplicable undocumented
+ InstallStateVNotApplicable InstallState = "notApplicable"
+ // InstallStateVInstalled undocumented
+ InstallStateVInstalled InstallState = "installed"
+ // InstallStateVFailed undocumented
+ InstallStateVFailed InstallState = "failed"
+ // InstallStateVNotInstalled undocumented
+ InstallStateVNotInstalled InstallState = "notInstalled"
+ // InstallStateVUninstallFailed undocumented
+ InstallStateVUninstallFailed InstallState = "uninstallFailed"
+ // InstallStateVUnknown undocumented
+ InstallStateVUnknown InstallState = "unknown"
+)
+
+var (
+ // InstallStatePNotApplicable is a pointer to InstallStateVNotApplicable
+ InstallStatePNotApplicable = &_InstallStatePNotApplicable
+ // InstallStatePInstalled is a pointer to InstallStateVInstalled
+ InstallStatePInstalled = &_InstallStatePInstalled
+ // InstallStatePFailed is a pointer to InstallStateVFailed
+ InstallStatePFailed = &_InstallStatePFailed
+ // InstallStatePNotInstalled is a pointer to InstallStateVNotInstalled
+ InstallStatePNotInstalled = &_InstallStatePNotInstalled
+ // InstallStatePUninstallFailed is a pointer to InstallStateVUninstallFailed
+ InstallStatePUninstallFailed = &_InstallStatePUninstallFailed
+ // InstallStatePUnknown is a pointer to InstallStateVUnknown
+ InstallStatePUnknown = &_InstallStatePUnknown
+)
+
+var (
+ _InstallStatePNotApplicable = InstallStateVNotApplicable
+ _InstallStatePInstalled = InstallStateVInstalled
+ _InstallStatePFailed = InstallStateVFailed
+ _InstallStatePNotInstalled = InstallStateVNotInstalled
+ _InstallStatePUninstallFailed = InstallStateVUninstallFailed
+ _InstallStatePUnknown = InstallStateVUnknown
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumIntended.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumIntended.go
new file mode 100644
index 00000000..b1bacb7d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumIntended.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IntendedPurpose undocumented
+type IntendedPurpose string
+
+const (
+ // IntendedPurposeVUnassigned undocumented
+ IntendedPurposeVUnassigned IntendedPurpose = "unassigned"
+ // IntendedPurposeVSmimeEncryption undocumented
+ IntendedPurposeVSmimeEncryption IntendedPurpose = "smimeEncryption"
+ // IntendedPurposeVSmimeSigning undocumented
+ IntendedPurposeVSmimeSigning IntendedPurpose = "smimeSigning"
+ // IntendedPurposeVVPN undocumented
+ IntendedPurposeVVPN IntendedPurpose = "vpn"
+ // IntendedPurposeVWiFi undocumented
+ IntendedPurposeVWiFi IntendedPurpose = "wifi"
+)
+
+var (
+ // IntendedPurposePUnassigned is a pointer to IntendedPurposeVUnassigned
+ IntendedPurposePUnassigned = &_IntendedPurposePUnassigned
+ // IntendedPurposePSmimeEncryption is a pointer to IntendedPurposeVSmimeEncryption
+ IntendedPurposePSmimeEncryption = &_IntendedPurposePSmimeEncryption
+ // IntendedPurposePSmimeSigning is a pointer to IntendedPurposeVSmimeSigning
+ IntendedPurposePSmimeSigning = &_IntendedPurposePSmimeSigning
+ // IntendedPurposePVPN is a pointer to IntendedPurposeVVPN
+ IntendedPurposePVPN = &_IntendedPurposePVPN
+ // IntendedPurposePWiFi is a pointer to IntendedPurposeVWiFi
+ IntendedPurposePWiFi = &_IntendedPurposePWiFi
+)
+
+var (
+ _IntendedPurposePUnassigned = IntendedPurposeVUnassigned
+ _IntendedPurposePSmimeEncryption = IntendedPurposeVSmimeEncryption
+ _IntendedPurposePSmimeSigning = IntendedPurposeVSmimeSigning
+ _IntendedPurposePVPN = IntendedPurposeVVPN
+ _IntendedPurposePWiFi = IntendedPurposeVWiFi
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumInternet.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInternet.go
new file mode 100644
index 00000000..4248eebd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumInternet.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InternetExplorerMessageSetting undocumented
+type InternetExplorerMessageSetting string
+
+const (
+ // InternetExplorerMessageSettingVNotConfigured undocumented
+ InternetExplorerMessageSettingVNotConfigured InternetExplorerMessageSetting = "notConfigured"
+ // InternetExplorerMessageSettingVDisabled undocumented
+ InternetExplorerMessageSettingVDisabled InternetExplorerMessageSetting = "disabled"
+ // InternetExplorerMessageSettingVEnabled undocumented
+ InternetExplorerMessageSettingVEnabled InternetExplorerMessageSetting = "enabled"
+ // InternetExplorerMessageSettingVKeepGoing undocumented
+ InternetExplorerMessageSettingVKeepGoing InternetExplorerMessageSetting = "keepGoing"
+)
+
+var (
+ // InternetExplorerMessageSettingPNotConfigured is a pointer to InternetExplorerMessageSettingVNotConfigured
+ InternetExplorerMessageSettingPNotConfigured = &_InternetExplorerMessageSettingPNotConfigured
+ // InternetExplorerMessageSettingPDisabled is a pointer to InternetExplorerMessageSettingVDisabled
+ InternetExplorerMessageSettingPDisabled = &_InternetExplorerMessageSettingPDisabled
+ // InternetExplorerMessageSettingPEnabled is a pointer to InternetExplorerMessageSettingVEnabled
+ InternetExplorerMessageSettingPEnabled = &_InternetExplorerMessageSettingPEnabled
+ // InternetExplorerMessageSettingPKeepGoing is a pointer to InternetExplorerMessageSettingVKeepGoing
+ InternetExplorerMessageSettingPKeepGoing = &_InternetExplorerMessageSettingPKeepGoing
+)
+
+var (
+ _InternetExplorerMessageSettingPNotConfigured = InternetExplorerMessageSettingVNotConfigured
+ _InternetExplorerMessageSettingPDisabled = InternetExplorerMessageSettingVDisabled
+ _InternetExplorerMessageSettingPEnabled = InternetExplorerMessageSettingVEnabled
+ _InternetExplorerMessageSettingPKeepGoing = InternetExplorerMessageSettingVKeepGoing
+)
+
+// InternetSiteSecurityLevel undocumented
+type InternetSiteSecurityLevel string
+
+const (
+ // InternetSiteSecurityLevelVUserDefined undocumented
+ InternetSiteSecurityLevelVUserDefined InternetSiteSecurityLevel = "userDefined"
+ // InternetSiteSecurityLevelVMedium undocumented
+ InternetSiteSecurityLevelVMedium InternetSiteSecurityLevel = "medium"
+ // InternetSiteSecurityLevelVMediumHigh undocumented
+ InternetSiteSecurityLevelVMediumHigh InternetSiteSecurityLevel = "mediumHigh"
+ // InternetSiteSecurityLevelVHigh undocumented
+ InternetSiteSecurityLevelVHigh InternetSiteSecurityLevel = "high"
+)
+
+var (
+ // InternetSiteSecurityLevelPUserDefined is a pointer to InternetSiteSecurityLevelVUserDefined
+ InternetSiteSecurityLevelPUserDefined = &_InternetSiteSecurityLevelPUserDefined
+ // InternetSiteSecurityLevelPMedium is a pointer to InternetSiteSecurityLevelVMedium
+ InternetSiteSecurityLevelPMedium = &_InternetSiteSecurityLevelPMedium
+ // InternetSiteSecurityLevelPMediumHigh is a pointer to InternetSiteSecurityLevelVMediumHigh
+ InternetSiteSecurityLevelPMediumHigh = &_InternetSiteSecurityLevelPMediumHigh
+ // InternetSiteSecurityLevelPHigh is a pointer to InternetSiteSecurityLevelVHigh
+ InternetSiteSecurityLevelPHigh = &_InternetSiteSecurityLevelPHigh
+)
+
+var (
+ _InternetSiteSecurityLevelPUserDefined = InternetSiteSecurityLevelVUserDefined
+ _InternetSiteSecurityLevelPMedium = InternetSiteSecurityLevelVMedium
+ _InternetSiteSecurityLevelPMediumHigh = InternetSiteSecurityLevelVMediumHigh
+ _InternetSiteSecurityLevelPHigh = InternetSiteSecurityLevelVHigh
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumKey.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumKey.go
new file mode 100644
index 00000000..47fd68f7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumKey.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KeySize undocumented
+type KeySize string
+
+const (
+ // KeySizeVSize1024 undocumented
+ KeySizeVSize1024 KeySize = "size1024"
+ // KeySizeVSize2048 undocumented
+ KeySizeVSize2048 KeySize = "size2048"
+)
+
+var (
+ // KeySizePSize1024 is a pointer to KeySizeVSize1024
+ KeySizePSize1024 = &_KeySizePSize1024
+ // KeySizePSize2048 is a pointer to KeySizeVSize2048
+ KeySizePSize2048 = &_KeySizePSize2048
+)
+
+var (
+ _KeySizePSize1024 = KeySizeVSize1024
+ _KeySizePSize2048 = KeySizeVSize2048
+)
+
+// KeyStorageProviderOption undocumented
+type KeyStorageProviderOption string
+
+const (
+ // KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp undocumented
+ KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp KeyStorageProviderOption = "useTpmKspOtherwiseUseSoftwareKsp"
+ // KeyStorageProviderOptionVUseTpmKspOtherwiseFail undocumented
+ KeyStorageProviderOptionVUseTpmKspOtherwiseFail KeyStorageProviderOption = "useTpmKspOtherwiseFail"
+ // KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail undocumented
+ KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail KeyStorageProviderOption = "usePassportForWorkKspOtherwiseFail"
+ // KeyStorageProviderOptionVUseSoftwareKsp undocumented
+ KeyStorageProviderOptionVUseSoftwareKsp KeyStorageProviderOption = "useSoftwareKsp"
+)
+
+var (
+ // KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp is a pointer to KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp
+ KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp = &_KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp
+ // KeyStorageProviderOptionPUseTpmKspOtherwiseFail is a pointer to KeyStorageProviderOptionVUseTpmKspOtherwiseFail
+ KeyStorageProviderOptionPUseTpmKspOtherwiseFail = &_KeyStorageProviderOptionPUseTpmKspOtherwiseFail
+ // KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail is a pointer to KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail
+ KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail = &_KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail
+ // KeyStorageProviderOptionPUseSoftwareKsp is a pointer to KeyStorageProviderOptionVUseSoftwareKsp
+ KeyStorageProviderOptionPUseSoftwareKsp = &_KeyStorageProviderOptionPUseSoftwareKsp
+)
+
+var (
+ _KeyStorageProviderOptionPUseTpmKspOtherwiseUseSoftwareKsp = KeyStorageProviderOptionVUseTpmKspOtherwiseUseSoftwareKsp
+ _KeyStorageProviderOptionPUseTpmKspOtherwiseFail = KeyStorageProviderOptionVUseTpmKspOtherwiseFail
+ _KeyStorageProviderOptionPUsePassportForWorkKspOtherwiseFail = KeyStorageProviderOptionVUsePassportForWorkKspOtherwiseFail
+ _KeyStorageProviderOptionPUseSoftwareKsp = KeyStorageProviderOptionVUseSoftwareKsp
+)
+
+// KeyUsages undocumented
+type KeyUsages string
+
+const (
+ // KeyUsagesVKeyEncipherment undocumented
+ KeyUsagesVKeyEncipherment KeyUsages = "keyEncipherment"
+ // KeyUsagesVDigitalSignature undocumented
+ KeyUsagesVDigitalSignature KeyUsages = "digitalSignature"
+)
+
+var (
+ // KeyUsagesPKeyEncipherment is a pointer to KeyUsagesVKeyEncipherment
+ KeyUsagesPKeyEncipherment = &_KeyUsagesPKeyEncipherment
+ // KeyUsagesPDigitalSignature is a pointer to KeyUsagesVDigitalSignature
+ KeyUsagesPDigitalSignature = &_KeyUsagesPDigitalSignature
+)
+
+var (
+ _KeyUsagesPKeyEncipherment = KeyUsagesVKeyEncipherment
+ _KeyUsagesPDigitalSignature = KeyUsagesVDigitalSignature
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLan.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLan.go
new file mode 100644
index 00000000..6a983173
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLan.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LanManagerAuthenticationLevel undocumented
+type LanManagerAuthenticationLevel string
+
+const (
+ // LanManagerAuthenticationLevelVLmAndNltm undocumented
+ LanManagerAuthenticationLevelVLmAndNltm LanManagerAuthenticationLevel = "lmAndNltm"
+ // LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 undocumented
+ LanManagerAuthenticationLevelVLmNtlmAndNtlmV2 LanManagerAuthenticationLevel = "lmNtlmAndNtlmV2"
+ // LanManagerAuthenticationLevelVLmAndNtlmOnly undocumented
+ LanManagerAuthenticationLevelVLmAndNtlmOnly LanManagerAuthenticationLevel = "lmAndNtlmOnly"
+ // LanManagerAuthenticationLevelVLmAndNtlmV2 undocumented
+ LanManagerAuthenticationLevelVLmAndNtlmV2 LanManagerAuthenticationLevel = "lmAndNtlmV2"
+ // LanManagerAuthenticationLevelVLmNtlmV2AndNotLm undocumented
+ LanManagerAuthenticationLevelVLmNtlmV2AndNotLm LanManagerAuthenticationLevel = "lmNtlmV2AndNotLm"
+ // LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm undocumented
+ LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm LanManagerAuthenticationLevel = "lmNtlmV2AndNotLmOrNtm"
+)
+
+var (
+ // LanManagerAuthenticationLevelPLmAndNltm is a pointer to LanManagerAuthenticationLevelVLmAndNltm
+ LanManagerAuthenticationLevelPLmAndNltm = &_LanManagerAuthenticationLevelPLmAndNltm
+ // LanManagerAuthenticationLevelPLmNtlmAndNtlmV2 is a pointer to LanManagerAuthenticationLevelVLmNtlmAndNtlmV2
+ LanManagerAuthenticationLevelPLmNtlmAndNtlmV2 = &_LanManagerAuthenticationLevelPLmNtlmAndNtlmV2
+ // LanManagerAuthenticationLevelPLmAndNtlmOnly is a pointer to LanManagerAuthenticationLevelVLmAndNtlmOnly
+ LanManagerAuthenticationLevelPLmAndNtlmOnly = &_LanManagerAuthenticationLevelPLmAndNtlmOnly
+ // LanManagerAuthenticationLevelPLmAndNtlmV2 is a pointer to LanManagerAuthenticationLevelVLmAndNtlmV2
+ LanManagerAuthenticationLevelPLmAndNtlmV2 = &_LanManagerAuthenticationLevelPLmAndNtlmV2
+ // LanManagerAuthenticationLevelPLmNtlmV2AndNotLm is a pointer to LanManagerAuthenticationLevelVLmNtlmV2AndNotLm
+ LanManagerAuthenticationLevelPLmNtlmV2AndNotLm = &_LanManagerAuthenticationLevelPLmNtlmV2AndNotLm
+ // LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm is a pointer to LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm
+ LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm = &_LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm
+)
+
+var (
+ _LanManagerAuthenticationLevelPLmAndNltm = LanManagerAuthenticationLevelVLmAndNltm
+ _LanManagerAuthenticationLevelPLmNtlmAndNtlmV2 = LanManagerAuthenticationLevelVLmNtlmAndNtlmV2
+ _LanManagerAuthenticationLevelPLmAndNtlmOnly = LanManagerAuthenticationLevelVLmAndNtlmOnly
+ _LanManagerAuthenticationLevelPLmAndNtlmV2 = LanManagerAuthenticationLevelVLmAndNtlmV2
+ _LanManagerAuthenticationLevelPLmNtlmV2AndNotLm = LanManagerAuthenticationLevelVLmNtlmV2AndNotLm
+ _LanManagerAuthenticationLevelPLmNtlmV2AndNotLmOrNtm = LanManagerAuthenticationLevelVLmNtlmV2AndNotLmOrNtm
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLanguage.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLanguage.go
new file mode 100644
index 00000000..92690339
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLanguage.go
@@ -0,0 +1,50 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LanguageProficiencyLevel undocumented
+type LanguageProficiencyLevel string
+
+const (
+ // LanguageProficiencyLevelVElementary undocumented
+ LanguageProficiencyLevelVElementary LanguageProficiencyLevel = "elementary"
+ // LanguageProficiencyLevelVConversational undocumented
+ LanguageProficiencyLevelVConversational LanguageProficiencyLevel = "conversational"
+ // LanguageProficiencyLevelVLimitedWorking undocumented
+ LanguageProficiencyLevelVLimitedWorking LanguageProficiencyLevel = "limitedWorking"
+ // LanguageProficiencyLevelVProfessionalWorking undocumented
+ LanguageProficiencyLevelVProfessionalWorking LanguageProficiencyLevel = "professionalWorking"
+ // LanguageProficiencyLevelVFullProfessional undocumented
+ LanguageProficiencyLevelVFullProfessional LanguageProficiencyLevel = "fullProfessional"
+ // LanguageProficiencyLevelVNativeOrBilingual undocumented
+ LanguageProficiencyLevelVNativeOrBilingual LanguageProficiencyLevel = "nativeOrBilingual"
+ // LanguageProficiencyLevelVUnknownFutureValue undocumented
+ LanguageProficiencyLevelVUnknownFutureValue LanguageProficiencyLevel = "unknownFutureValue"
+)
+
+var (
+ // LanguageProficiencyLevelPElementary is a pointer to LanguageProficiencyLevelVElementary
+ LanguageProficiencyLevelPElementary = &_LanguageProficiencyLevelPElementary
+ // LanguageProficiencyLevelPConversational is a pointer to LanguageProficiencyLevelVConversational
+ LanguageProficiencyLevelPConversational = &_LanguageProficiencyLevelPConversational
+ // LanguageProficiencyLevelPLimitedWorking is a pointer to LanguageProficiencyLevelVLimitedWorking
+ LanguageProficiencyLevelPLimitedWorking = &_LanguageProficiencyLevelPLimitedWorking
+ // LanguageProficiencyLevelPProfessionalWorking is a pointer to LanguageProficiencyLevelVProfessionalWorking
+ LanguageProficiencyLevelPProfessionalWorking = &_LanguageProficiencyLevelPProfessionalWorking
+ // LanguageProficiencyLevelPFullProfessional is a pointer to LanguageProficiencyLevelVFullProfessional
+ LanguageProficiencyLevelPFullProfessional = &_LanguageProficiencyLevelPFullProfessional
+ // LanguageProficiencyLevelPNativeOrBilingual is a pointer to LanguageProficiencyLevelVNativeOrBilingual
+ LanguageProficiencyLevelPNativeOrBilingual = &_LanguageProficiencyLevelPNativeOrBilingual
+ // LanguageProficiencyLevelPUnknownFutureValue is a pointer to LanguageProficiencyLevelVUnknownFutureValue
+ LanguageProficiencyLevelPUnknownFutureValue = &_LanguageProficiencyLevelPUnknownFutureValue
+)
+
+var (
+ _LanguageProficiencyLevelPElementary = LanguageProficiencyLevelVElementary
+ _LanguageProficiencyLevelPConversational = LanguageProficiencyLevelVConversational
+ _LanguageProficiencyLevelPLimitedWorking = LanguageProficiencyLevelVLimitedWorking
+ _LanguageProficiencyLevelPProfessionalWorking = LanguageProficiencyLevelVProfessionalWorking
+ _LanguageProficiencyLevelPFullProfessional = LanguageProficiencyLevelVFullProfessional
+ _LanguageProficiencyLevelPNativeOrBilingual = LanguageProficiencyLevelVNativeOrBilingual
+ _LanguageProficiencyLevelPUnknownFutureValue = LanguageProficiencyLevelVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocal.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocal.go
new file mode 100644
index 00000000..31ba6ff1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocal.go
@@ -0,0 +1,242 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocalSecurityOptionsAdministratorElevationPromptBehaviorType undocumented
+type LocalSecurityOptionsAdministratorElevationPromptBehaviorType string
+
+const (
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "notConfigured"
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "elevateWithoutPrompting"
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForCredentialsOnTheSecureDesktop"
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForConsentOnTheSecureDesktop"
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForCredentials"
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForConsent"
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries undocumented
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries LocalSecurityOptionsAdministratorElevationPromptBehaviorType = "promptForConsentForNonWindowsBinaries"
+)
+
+var (
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent
+ // LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries is a pointer to LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries
+ LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries = &_LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries
+)
+
+var (
+ _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePNotConfigured = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVNotConfigured
+ _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePElevateWithoutPrompting = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVElevateWithoutPrompting
+ _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+ _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentOnTheSecureDesktop = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentOnTheSecureDesktop
+ _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForCredentials = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForCredentials
+ _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsent = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsent
+ _LocalSecurityOptionsAdministratorElevationPromptBehaviorTypePPromptForConsentForNonWindowsBinaries = LocalSecurityOptionsAdministratorElevationPromptBehaviorTypeVPromptForConsentForNonWindowsBinaries
+)
+
+// LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType undocumented
+type LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType string
+
+const (
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = "notConfigured"
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = "administrators"
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = "administratorsAndPowerUsers"
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers undocumented
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType = "administratorsAndInteractiveUsers"
+)
+
+var (
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured is a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured = &_LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators is a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators = &_LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers is a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers = &_LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers is a pointer to LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers = &_LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers
+)
+
+var (
+ _LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePNotConfigured = LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVNotConfigured
+ _LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministrators = LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministrators
+ _LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndPowerUsers = LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndPowerUsers
+ _LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypePAdministratorsAndInteractiveUsers = LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserTypeVAdministratorsAndInteractiveUsers
+)
+
+// LocalSecurityOptionsInformationDisplayedOnLockScreenType undocumented
+type LocalSecurityOptionsInformationDisplayedOnLockScreenType string
+
+const (
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured LocalSecurityOptionsInformationDisplayedOnLockScreenType = "notConfigured"
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators LocalSecurityOptionsInformationDisplayedOnLockScreenType = "administrators"
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers LocalSecurityOptionsInformationDisplayedOnLockScreenType = "administratorsAndPowerUsers"
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers undocumented
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers LocalSecurityOptionsInformationDisplayedOnLockScreenType = "administratorsAndInteractiveUsers"
+)
+
+var (
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured is a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured = &_LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators is a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators = &_LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers is a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers = &_LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers
+ // LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers is a pointer to LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers
+ LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers = &_LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers
+)
+
+var (
+ _LocalSecurityOptionsInformationDisplayedOnLockScreenTypePNotConfigured = LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVNotConfigured
+ _LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministrators = LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministrators
+ _LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndPowerUsers = LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndPowerUsers
+ _LocalSecurityOptionsInformationDisplayedOnLockScreenTypePAdministratorsAndInteractiveUsers = LocalSecurityOptionsInformationDisplayedOnLockScreenTypeVAdministratorsAndInteractiveUsers
+)
+
+// LocalSecurityOptionsInformationShownOnLockScreenType undocumented
+type LocalSecurityOptionsInformationShownOnLockScreenType string
+
+const (
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured LocalSecurityOptionsInformationShownOnLockScreenType = "notConfigured"
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser LocalSecurityOptionsInformationShownOnLockScreenType = "userDisplayNameDomainUser"
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly LocalSecurityOptionsInformationShownOnLockScreenType = "userDisplayNameOnly"
+ // LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser undocumented
+ LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser LocalSecurityOptionsInformationShownOnLockScreenType = "doNotDisplayUser"
+)
+
+var (
+ // LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured is a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured
+ LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured = &_LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured
+ // LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser is a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser
+ LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser = &_LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser
+ // LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly is a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly
+ LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly = &_LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly
+ // LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser is a pointer to LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser
+ LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser = &_LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser
+)
+
+var (
+ _LocalSecurityOptionsInformationShownOnLockScreenTypePNotConfigured = LocalSecurityOptionsInformationShownOnLockScreenTypeVNotConfigured
+ _LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameDomainUser = LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameDomainUser
+ _LocalSecurityOptionsInformationShownOnLockScreenTypePUserDisplayNameOnly = LocalSecurityOptionsInformationShownOnLockScreenTypeVUserDisplayNameOnly
+ _LocalSecurityOptionsInformationShownOnLockScreenTypePDoNotDisplayUser = LocalSecurityOptionsInformationShownOnLockScreenTypeVDoNotDisplayUser
+)
+
+// LocalSecurityOptionsMinimumSessionSecurity undocumented
+type LocalSecurityOptionsMinimumSessionSecurity string
+
+const (
+ // LocalSecurityOptionsMinimumSessionSecurityVNone undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVNone LocalSecurityOptionsMinimumSessionSecurity = "none"
+ // LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity LocalSecurityOptionsMinimumSessionSecurity = "requireNtmlV2SessionSecurity"
+ // LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption LocalSecurityOptionsMinimumSessionSecurity = "require128BitEncryption"
+ // LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption undocumented
+ LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption LocalSecurityOptionsMinimumSessionSecurity = "ntlmV2And128BitEncryption"
+)
+
+var (
+ // LocalSecurityOptionsMinimumSessionSecurityPNone is a pointer to LocalSecurityOptionsMinimumSessionSecurityVNone
+ LocalSecurityOptionsMinimumSessionSecurityPNone = &_LocalSecurityOptionsMinimumSessionSecurityPNone
+ // LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity is a pointer to LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity
+ LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity = &_LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity
+ // LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption is a pointer to LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption
+ LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption = &_LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption
+ // LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption is a pointer to LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption
+ LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption = &_LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption
+)
+
+var (
+ _LocalSecurityOptionsMinimumSessionSecurityPNone = LocalSecurityOptionsMinimumSessionSecurityVNone
+ _LocalSecurityOptionsMinimumSessionSecurityPRequireNtmlV2SessionSecurity = LocalSecurityOptionsMinimumSessionSecurityVRequireNtmlV2SessionSecurity
+ _LocalSecurityOptionsMinimumSessionSecurityPRequire128BitEncryption = LocalSecurityOptionsMinimumSessionSecurityVRequire128BitEncryption
+ _LocalSecurityOptionsMinimumSessionSecurityPNtlmV2And128BitEncryption = LocalSecurityOptionsMinimumSessionSecurityVNtlmV2And128BitEncryption
+)
+
+// LocalSecurityOptionsSmartCardRemovalBehaviorType undocumented
+type LocalSecurityOptionsSmartCardRemovalBehaviorType string
+
+const (
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation LocalSecurityOptionsSmartCardRemovalBehaviorType = "lockWorkstation"
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction LocalSecurityOptionsSmartCardRemovalBehaviorType = "noAction"
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff LocalSecurityOptionsSmartCardRemovalBehaviorType = "forceLogoff"
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession undocumented
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession LocalSecurityOptionsSmartCardRemovalBehaviorType = "disconnectRemoteDesktopSession"
+)
+
+var (
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation is a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation = &_LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction is a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction = &_LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff is a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff = &_LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff
+ // LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession is a pointer to LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession
+ LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession = &_LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession
+)
+
+var (
+ _LocalSecurityOptionsSmartCardRemovalBehaviorTypePLockWorkstation = LocalSecurityOptionsSmartCardRemovalBehaviorTypeVLockWorkstation
+ _LocalSecurityOptionsSmartCardRemovalBehaviorTypePNoAction = LocalSecurityOptionsSmartCardRemovalBehaviorTypeVNoAction
+ _LocalSecurityOptionsSmartCardRemovalBehaviorTypePForceLogoff = LocalSecurityOptionsSmartCardRemovalBehaviorTypeVForceLogoff
+ _LocalSecurityOptionsSmartCardRemovalBehaviorTypePDisconnectRemoteDesktopSession = LocalSecurityOptionsSmartCardRemovalBehaviorTypeVDisconnectRemoteDesktopSession
+)
+
+// LocalSecurityOptionsStandardUserElevationPromptBehaviorType undocumented
+type LocalSecurityOptionsStandardUserElevationPromptBehaviorType string
+
+const (
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured LocalSecurityOptionsStandardUserElevationPromptBehaviorType = "notConfigured"
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests LocalSecurityOptionsStandardUserElevationPromptBehaviorType = "automaticallyDenyElevationRequests"
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop LocalSecurityOptionsStandardUserElevationPromptBehaviorType = "promptForCredentialsOnTheSecureDesktop"
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials undocumented
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials LocalSecurityOptionsStandardUserElevationPromptBehaviorType = "promptForCredentials"
+)
+
+var (
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured is a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured = &_LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests is a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests = &_LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop is a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop = &_LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop
+ // LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials is a pointer to LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials
+ LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials = &_LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials
+)
+
+var (
+ _LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePNotConfigured = LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVNotConfigured
+ _LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePAutomaticallyDenyElevationRequests = LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVAutomaticallyDenyElevationRequests
+ _LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentialsOnTheSecureDesktop = LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentialsOnTheSecureDesktop
+ _LocalSecurityOptionsStandardUserElevationPromptBehaviorTypePPromptForCredentials = LocalSecurityOptionsStandardUserElevationPromptBehaviorTypeVPromptForCredentials
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocation.go
new file mode 100644
index 00000000..030baf1d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLocation.go
@@ -0,0 +1,102 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocationType undocumented
+type LocationType string
+
+const (
+ // LocationTypeVDefault undocumented
+ LocationTypeVDefault LocationType = "default"
+ // LocationTypeVConferenceRoom undocumented
+ LocationTypeVConferenceRoom LocationType = "conferenceRoom"
+ // LocationTypeVHomeAddress undocumented
+ LocationTypeVHomeAddress LocationType = "homeAddress"
+ // LocationTypeVBusinessAddress undocumented
+ LocationTypeVBusinessAddress LocationType = "businessAddress"
+ // LocationTypeVGeoCoordinates undocumented
+ LocationTypeVGeoCoordinates LocationType = "geoCoordinates"
+ // LocationTypeVStreetAddress undocumented
+ LocationTypeVStreetAddress LocationType = "streetAddress"
+ // LocationTypeVHotel undocumented
+ LocationTypeVHotel LocationType = "hotel"
+ // LocationTypeVRestaurant undocumented
+ LocationTypeVRestaurant LocationType = "restaurant"
+ // LocationTypeVLocalBusiness undocumented
+ LocationTypeVLocalBusiness LocationType = "localBusiness"
+ // LocationTypeVPostalAddress undocumented
+ LocationTypeVPostalAddress LocationType = "postalAddress"
+)
+
+var (
+ // LocationTypePDefault is a pointer to LocationTypeVDefault
+ LocationTypePDefault = &_LocationTypePDefault
+ // LocationTypePConferenceRoom is a pointer to LocationTypeVConferenceRoom
+ LocationTypePConferenceRoom = &_LocationTypePConferenceRoom
+ // LocationTypePHomeAddress is a pointer to LocationTypeVHomeAddress
+ LocationTypePHomeAddress = &_LocationTypePHomeAddress
+ // LocationTypePBusinessAddress is a pointer to LocationTypeVBusinessAddress
+ LocationTypePBusinessAddress = &_LocationTypePBusinessAddress
+ // LocationTypePGeoCoordinates is a pointer to LocationTypeVGeoCoordinates
+ LocationTypePGeoCoordinates = &_LocationTypePGeoCoordinates
+ // LocationTypePStreetAddress is a pointer to LocationTypeVStreetAddress
+ LocationTypePStreetAddress = &_LocationTypePStreetAddress
+ // LocationTypePHotel is a pointer to LocationTypeVHotel
+ LocationTypePHotel = &_LocationTypePHotel
+ // LocationTypePRestaurant is a pointer to LocationTypeVRestaurant
+ LocationTypePRestaurant = &_LocationTypePRestaurant
+ // LocationTypePLocalBusiness is a pointer to LocationTypeVLocalBusiness
+ LocationTypePLocalBusiness = &_LocationTypePLocalBusiness
+ // LocationTypePPostalAddress is a pointer to LocationTypeVPostalAddress
+ LocationTypePPostalAddress = &_LocationTypePPostalAddress
+)
+
+var (
+ _LocationTypePDefault = LocationTypeVDefault
+ _LocationTypePConferenceRoom = LocationTypeVConferenceRoom
+ _LocationTypePHomeAddress = LocationTypeVHomeAddress
+ _LocationTypePBusinessAddress = LocationTypeVBusinessAddress
+ _LocationTypePGeoCoordinates = LocationTypeVGeoCoordinates
+ _LocationTypePStreetAddress = LocationTypeVStreetAddress
+ _LocationTypePHotel = LocationTypeVHotel
+ _LocationTypePRestaurant = LocationTypeVRestaurant
+ _LocationTypePLocalBusiness = LocationTypeVLocalBusiness
+ _LocationTypePPostalAddress = LocationTypeVPostalAddress
+)
+
+// LocationUniqueIDType undocumented
+type LocationUniqueIDType string
+
+const (
+ // LocationUniqueIDTypeVUnknown undocumented
+ LocationUniqueIDTypeVUnknown LocationUniqueIDType = "unknown"
+ // LocationUniqueIDTypeVLocationStore undocumented
+ LocationUniqueIDTypeVLocationStore LocationUniqueIDType = "locationStore"
+ // LocationUniqueIDTypeVDirectory undocumented
+ LocationUniqueIDTypeVDirectory LocationUniqueIDType = "directory"
+ // LocationUniqueIDTypeVPrivate undocumented
+ LocationUniqueIDTypeVPrivate LocationUniqueIDType = "private"
+ // LocationUniqueIDTypeVBing undocumented
+ LocationUniqueIDTypeVBing LocationUniqueIDType = "bing"
+)
+
+var (
+ // LocationUniqueIDTypePUnknown is a pointer to LocationUniqueIDTypeVUnknown
+ LocationUniqueIDTypePUnknown = &_LocationUniqueIDTypePUnknown
+ // LocationUniqueIDTypePLocationStore is a pointer to LocationUniqueIDTypeVLocationStore
+ LocationUniqueIDTypePLocationStore = &_LocationUniqueIDTypePLocationStore
+ // LocationUniqueIDTypePDirectory is a pointer to LocationUniqueIDTypeVDirectory
+ LocationUniqueIDTypePDirectory = &_LocationUniqueIDTypePDirectory
+ // LocationUniqueIDTypePPrivate is a pointer to LocationUniqueIDTypeVPrivate
+ LocationUniqueIDTypePPrivate = &_LocationUniqueIDTypePPrivate
+ // LocationUniqueIDTypePBing is a pointer to LocationUniqueIDTypeVBing
+ LocationUniqueIDTypePBing = &_LocationUniqueIDTypePBing
+)
+
+var (
+ _LocationUniqueIDTypePUnknown = LocationUniqueIDTypeVUnknown
+ _LocationUniqueIDTypePLocationStore = LocationUniqueIDTypeVLocationStore
+ _LocationUniqueIDTypePDirectory = LocationUniqueIDTypeVDirectory
+ _LocationUniqueIDTypePPrivate = LocationUniqueIDTypeVPrivate
+ _LocationUniqueIDTypePBing = LocationUniqueIDTypeVBing
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLog.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLog.go
new file mode 100644
index 00000000..54a9f8e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLog.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LogLevel undocumented
+type LogLevel string
+
+const (
+ // LogLevelVLogAlways undocumented
+ LogLevelVLogAlways LogLevel = "logAlways"
+ // LogLevelVCritical undocumented
+ LogLevelVCritical LogLevel = "critical"
+ // LogLevelVError undocumented
+ LogLevelVError LogLevel = "error"
+ // LogLevelVWarning undocumented
+ LogLevelVWarning LogLevel = "warning"
+ // LogLevelVInformation undocumented
+ LogLevelVInformation LogLevel = "information"
+ // LogLevelVVerbose undocumented
+ LogLevelVVerbose LogLevel = "verbose"
+)
+
+var (
+ // LogLevelPLogAlways is a pointer to LogLevelVLogAlways
+ LogLevelPLogAlways = &_LogLevelPLogAlways
+ // LogLevelPCritical is a pointer to LogLevelVCritical
+ LogLevelPCritical = &_LogLevelPCritical
+ // LogLevelPError is a pointer to LogLevelVError
+ LogLevelPError = &_LogLevelPError
+ // LogLevelPWarning is a pointer to LogLevelVWarning
+ LogLevelPWarning = &_LogLevelPWarning
+ // LogLevelPInformation is a pointer to LogLevelVInformation
+ LogLevelPInformation = &_LogLevelPInformation
+ // LogLevelPVerbose is a pointer to LogLevelVVerbose
+ LogLevelPVerbose = &_LogLevelPVerbose
+)
+
+var (
+ _LogLevelPLogAlways = LogLevelVLogAlways
+ _LogLevelPCritical = LogLevelVCritical
+ _LogLevelPError = LogLevelVError
+ _LogLevelPWarning = LogLevelVWarning
+ _LogLevelPInformation = LogLevelVInformation
+ _LogLevelPVerbose = LogLevelVVerbose
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLogon.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLogon.go
new file mode 100644
index 00000000..209b533c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLogon.go
@@ -0,0 +1,50 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LogonType undocumented
+type LogonType string
+
+const (
+ // LogonTypeVUnknown undocumented
+ LogonTypeVUnknown LogonType = "unknown"
+ // LogonTypeVInteractive undocumented
+ LogonTypeVInteractive LogonType = "interactive"
+ // LogonTypeVRemoteInteractive undocumented
+ LogonTypeVRemoteInteractive LogonType = "remoteInteractive"
+ // LogonTypeVNetwork undocumented
+ LogonTypeVNetwork LogonType = "network"
+ // LogonTypeVBatch undocumented
+ LogonTypeVBatch LogonType = "batch"
+ // LogonTypeVService undocumented
+ LogonTypeVService LogonType = "service"
+ // LogonTypeVUnknownFutureValue undocumented
+ LogonTypeVUnknownFutureValue LogonType = "unknownFutureValue"
+)
+
+var (
+ // LogonTypePUnknown is a pointer to LogonTypeVUnknown
+ LogonTypePUnknown = &_LogonTypePUnknown
+ // LogonTypePInteractive is a pointer to LogonTypeVInteractive
+ LogonTypePInteractive = &_LogonTypePInteractive
+ // LogonTypePRemoteInteractive is a pointer to LogonTypeVRemoteInteractive
+ LogonTypePRemoteInteractive = &_LogonTypePRemoteInteractive
+ // LogonTypePNetwork is a pointer to LogonTypeVNetwork
+ LogonTypePNetwork = &_LogonTypePNetwork
+ // LogonTypePBatch is a pointer to LogonTypeVBatch
+ LogonTypePBatch = &_LogonTypePBatch
+ // LogonTypePService is a pointer to LogonTypeVService
+ LogonTypePService = &_LogonTypePService
+ // LogonTypePUnknownFutureValue is a pointer to LogonTypeVUnknownFutureValue
+ LogonTypePUnknownFutureValue = &_LogonTypePUnknownFutureValue
+)
+
+var (
+ _LogonTypePUnknown = LogonTypeVUnknown
+ _LogonTypePInteractive = LogonTypeVInteractive
+ _LogonTypePRemoteInteractive = LogonTypeVRemoteInteractive
+ _LogonTypePNetwork = LogonTypeVNetwork
+ _LogonTypePBatch = LogonTypeVBatch
+ _LogonTypePService = LogonTypeVService
+ _LogonTypePUnknownFutureValue = LogonTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumLost.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLost.go
new file mode 100644
index 00000000..c76b0892
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumLost.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LostModeState undocumented
+type LostModeState string
+
+const (
+ // LostModeStateVDisabled undocumented
+ LostModeStateVDisabled LostModeState = "disabled"
+ // LostModeStateVEnabled undocumented
+ LostModeStateVEnabled LostModeState = "enabled"
+)
+
+var (
+ // LostModeStatePDisabled is a pointer to LostModeStateVDisabled
+ LostModeStatePDisabled = &_LostModeStatePDisabled
+ // LostModeStatePEnabled is a pointer to LostModeStateVEnabled
+ LostModeStatePEnabled = &_LostModeStatePEnabled
+)
+
+var (
+ _LostModeStatePDisabled = LostModeStateVDisabled
+ _LostModeStatePEnabled = LostModeStateVEnabled
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMDM.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMDM.go
new file mode 100644
index 00000000..57f402c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMDM.go
@@ -0,0 +1,72 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MDMAppConfigKeyType undocumented
+type MDMAppConfigKeyType string
+
+const (
+ // MDMAppConfigKeyTypeVStringType undocumented
+ MDMAppConfigKeyTypeVStringType MDMAppConfigKeyType = "stringType"
+ // MDMAppConfigKeyTypeVIntegerType undocumented
+ MDMAppConfigKeyTypeVIntegerType MDMAppConfigKeyType = "integerType"
+ // MDMAppConfigKeyTypeVRealType undocumented
+ MDMAppConfigKeyTypeVRealType MDMAppConfigKeyType = "realType"
+ // MDMAppConfigKeyTypeVBooleanType undocumented
+ MDMAppConfigKeyTypeVBooleanType MDMAppConfigKeyType = "booleanType"
+ // MDMAppConfigKeyTypeVTokenType undocumented
+ MDMAppConfigKeyTypeVTokenType MDMAppConfigKeyType = "tokenType"
+)
+
+var (
+ // MDMAppConfigKeyTypePStringType is a pointer to MDMAppConfigKeyTypeVStringType
+ MDMAppConfigKeyTypePStringType = &_MDMAppConfigKeyTypePStringType
+ // MDMAppConfigKeyTypePIntegerType is a pointer to MDMAppConfigKeyTypeVIntegerType
+ MDMAppConfigKeyTypePIntegerType = &_MDMAppConfigKeyTypePIntegerType
+ // MDMAppConfigKeyTypePRealType is a pointer to MDMAppConfigKeyTypeVRealType
+ MDMAppConfigKeyTypePRealType = &_MDMAppConfigKeyTypePRealType
+ // MDMAppConfigKeyTypePBooleanType is a pointer to MDMAppConfigKeyTypeVBooleanType
+ MDMAppConfigKeyTypePBooleanType = &_MDMAppConfigKeyTypePBooleanType
+ // MDMAppConfigKeyTypePTokenType is a pointer to MDMAppConfigKeyTypeVTokenType
+ MDMAppConfigKeyTypePTokenType = &_MDMAppConfigKeyTypePTokenType
+)
+
+var (
+ _MDMAppConfigKeyTypePStringType = MDMAppConfigKeyTypeVStringType
+ _MDMAppConfigKeyTypePIntegerType = MDMAppConfigKeyTypeVIntegerType
+ _MDMAppConfigKeyTypePRealType = MDMAppConfigKeyTypeVRealType
+ _MDMAppConfigKeyTypePBooleanType = MDMAppConfigKeyTypeVBooleanType
+ _MDMAppConfigKeyTypePTokenType = MDMAppConfigKeyTypeVTokenType
+)
+
+// MDMAuthority undocumented
+type MDMAuthority string
+
+const (
+ // MDMAuthorityVUnknown undocumented
+ MDMAuthorityVUnknown MDMAuthority = "unknown"
+ // MDMAuthorityVIntune undocumented
+ MDMAuthorityVIntune MDMAuthority = "intune"
+ // MDMAuthorityVSccm undocumented
+ MDMAuthorityVSccm MDMAuthority = "sccm"
+ // MDMAuthorityVOffice365 undocumented
+ MDMAuthorityVOffice365 MDMAuthority = "office365"
+)
+
+var (
+ // MDMAuthorityPUnknown is a pointer to MDMAuthorityVUnknown
+ MDMAuthorityPUnknown = &_MDMAuthorityPUnknown
+ // MDMAuthorityPIntune is a pointer to MDMAuthorityVIntune
+ MDMAuthorityPIntune = &_MDMAuthorityPIntune
+ // MDMAuthorityPSccm is a pointer to MDMAuthorityVSccm
+ MDMAuthorityPSccm = &_MDMAuthorityPSccm
+ // MDMAuthorityPOffice365 is a pointer to MDMAuthorityVOffice365
+ MDMAuthorityPOffice365 = &_MDMAuthorityPOffice365
+)
+
+var (
+ _MDMAuthorityPUnknown = MDMAuthorityVUnknown
+ _MDMAuthorityPIntune = MDMAuthorityVIntune
+ _MDMAuthorityPSccm = MDMAuthorityVSccm
+ _MDMAuthorityPOffice365 = MDMAuthorityVOffice365
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMac.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMac.go
new file mode 100644
index 00000000..e36b4285
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMac.go
@@ -0,0 +1,62 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MacOSFileVaultRecoveryKeyTypes undocumented
+type MacOSFileVaultRecoveryKeyTypes string
+
+const (
+ // MacOSFileVaultRecoveryKeyTypesVNotConfigured undocumented
+ MacOSFileVaultRecoveryKeyTypesVNotConfigured MacOSFileVaultRecoveryKeyTypes = "notConfigured"
+ // MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey undocumented
+ MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey MacOSFileVaultRecoveryKeyTypes = "institutionalRecoveryKey"
+ // MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey undocumented
+ MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey MacOSFileVaultRecoveryKeyTypes = "personalRecoveryKey"
+)
+
+var (
+ // MacOSFileVaultRecoveryKeyTypesPNotConfigured is a pointer to MacOSFileVaultRecoveryKeyTypesVNotConfigured
+ MacOSFileVaultRecoveryKeyTypesPNotConfigured = &_MacOSFileVaultRecoveryKeyTypesPNotConfigured
+ // MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey is a pointer to MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey
+ MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey = &_MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey
+ // MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey is a pointer to MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey
+ MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey = &_MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey
+)
+
+var (
+ _MacOSFileVaultRecoveryKeyTypesPNotConfigured = MacOSFileVaultRecoveryKeyTypesVNotConfigured
+ _MacOSFileVaultRecoveryKeyTypesPInstitutionalRecoveryKey = MacOSFileVaultRecoveryKeyTypesVInstitutionalRecoveryKey
+ _MacOSFileVaultRecoveryKeyTypesPPersonalRecoveryKey = MacOSFileVaultRecoveryKeyTypesVPersonalRecoveryKey
+)
+
+// MacOSGatekeeperAppSources undocumented
+type MacOSGatekeeperAppSources string
+
+const (
+ // MacOSGatekeeperAppSourcesVNotConfigured undocumented
+ MacOSGatekeeperAppSourcesVNotConfigured MacOSGatekeeperAppSources = "notConfigured"
+ // MacOSGatekeeperAppSourcesVMacAppStore undocumented
+ MacOSGatekeeperAppSourcesVMacAppStore MacOSGatekeeperAppSources = "macAppStore"
+ // MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers undocumented
+ MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers MacOSGatekeeperAppSources = "macAppStoreAndIdentifiedDevelopers"
+ // MacOSGatekeeperAppSourcesVAnywhere undocumented
+ MacOSGatekeeperAppSourcesVAnywhere MacOSGatekeeperAppSources = "anywhere"
+)
+
+var (
+ // MacOSGatekeeperAppSourcesPNotConfigured is a pointer to MacOSGatekeeperAppSourcesVNotConfigured
+ MacOSGatekeeperAppSourcesPNotConfigured = &_MacOSGatekeeperAppSourcesPNotConfigured
+ // MacOSGatekeeperAppSourcesPMacAppStore is a pointer to MacOSGatekeeperAppSourcesVMacAppStore
+ MacOSGatekeeperAppSourcesPMacAppStore = &_MacOSGatekeeperAppSourcesPMacAppStore
+ // MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers is a pointer to MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers
+ MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers = &_MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers
+ // MacOSGatekeeperAppSourcesPAnywhere is a pointer to MacOSGatekeeperAppSourcesVAnywhere
+ MacOSGatekeeperAppSourcesPAnywhere = &_MacOSGatekeeperAppSourcesPAnywhere
+)
+
+var (
+ _MacOSGatekeeperAppSourcesPNotConfigured = MacOSGatekeeperAppSourcesVNotConfigured
+ _MacOSGatekeeperAppSourcesPMacAppStore = MacOSGatekeeperAppSourcesVMacAppStore
+ _MacOSGatekeeperAppSourcesPMacAppStoreAndIdentifiedDevelopers = MacOSGatekeeperAppSourcesVMacAppStoreAndIdentifiedDevelopers
+ _MacOSGatekeeperAppSourcesPAnywhere = MacOSGatekeeperAppSourcesVAnywhere
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMail.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMail.go
new file mode 100644
index 00000000..070871d2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMail.go
@@ -0,0 +1,157 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailDestinationRoutingReason undocumented
+type MailDestinationRoutingReason string
+
+const (
+ // MailDestinationRoutingReasonVNone undocumented
+ MailDestinationRoutingReasonVNone MailDestinationRoutingReason = "none"
+ // MailDestinationRoutingReasonVMailFlowRule undocumented
+ MailDestinationRoutingReasonVMailFlowRule MailDestinationRoutingReason = "mailFlowRule"
+ // MailDestinationRoutingReasonVSafeSender undocumented
+ MailDestinationRoutingReasonVSafeSender MailDestinationRoutingReason = "safeSender"
+ // MailDestinationRoutingReasonVBlockedSender undocumented
+ MailDestinationRoutingReasonVBlockedSender MailDestinationRoutingReason = "blockedSender"
+ // MailDestinationRoutingReasonVAdvancedSpamFiltering undocumented
+ MailDestinationRoutingReasonVAdvancedSpamFiltering MailDestinationRoutingReason = "advancedSpamFiltering"
+ // MailDestinationRoutingReasonVDomainAllowList undocumented
+ MailDestinationRoutingReasonVDomainAllowList MailDestinationRoutingReason = "domainAllowList"
+ // MailDestinationRoutingReasonVDomainBlockList undocumented
+ MailDestinationRoutingReasonVDomainBlockList MailDestinationRoutingReason = "domainBlockList"
+ // MailDestinationRoutingReasonVNotInAddressBook undocumented
+ MailDestinationRoutingReasonVNotInAddressBook MailDestinationRoutingReason = "notInAddressBook"
+ // MailDestinationRoutingReasonVFirstTimeSender undocumented
+ MailDestinationRoutingReasonVFirstTimeSender MailDestinationRoutingReason = "firstTimeSender"
+ // MailDestinationRoutingReasonVAutoPurgeToInbox undocumented
+ MailDestinationRoutingReasonVAutoPurgeToInbox MailDestinationRoutingReason = "autoPurgeToInbox"
+ // MailDestinationRoutingReasonVAutoPurgeToJunk undocumented
+ MailDestinationRoutingReasonVAutoPurgeToJunk MailDestinationRoutingReason = "autoPurgeToJunk"
+ // MailDestinationRoutingReasonVAutoPurgeToDeleted undocumented
+ MailDestinationRoutingReasonVAutoPurgeToDeleted MailDestinationRoutingReason = "autoPurgeToDeleted"
+ // MailDestinationRoutingReasonVOutbound undocumented
+ MailDestinationRoutingReasonVOutbound MailDestinationRoutingReason = "outbound"
+ // MailDestinationRoutingReasonVNotJunk undocumented
+ MailDestinationRoutingReasonVNotJunk MailDestinationRoutingReason = "notJunk"
+ // MailDestinationRoutingReasonVJunk undocumented
+ MailDestinationRoutingReasonVJunk MailDestinationRoutingReason = "junk"
+ // MailDestinationRoutingReasonVUnknownFutureValue undocumented
+ MailDestinationRoutingReasonVUnknownFutureValue MailDestinationRoutingReason = "unknownFutureValue"
+)
+
+var (
+ // MailDestinationRoutingReasonPNone is a pointer to MailDestinationRoutingReasonVNone
+ MailDestinationRoutingReasonPNone = &_MailDestinationRoutingReasonPNone
+ // MailDestinationRoutingReasonPMailFlowRule is a pointer to MailDestinationRoutingReasonVMailFlowRule
+ MailDestinationRoutingReasonPMailFlowRule = &_MailDestinationRoutingReasonPMailFlowRule
+ // MailDestinationRoutingReasonPSafeSender is a pointer to MailDestinationRoutingReasonVSafeSender
+ MailDestinationRoutingReasonPSafeSender = &_MailDestinationRoutingReasonPSafeSender
+ // MailDestinationRoutingReasonPBlockedSender is a pointer to MailDestinationRoutingReasonVBlockedSender
+ MailDestinationRoutingReasonPBlockedSender = &_MailDestinationRoutingReasonPBlockedSender
+ // MailDestinationRoutingReasonPAdvancedSpamFiltering is a pointer to MailDestinationRoutingReasonVAdvancedSpamFiltering
+ MailDestinationRoutingReasonPAdvancedSpamFiltering = &_MailDestinationRoutingReasonPAdvancedSpamFiltering
+ // MailDestinationRoutingReasonPDomainAllowList is a pointer to MailDestinationRoutingReasonVDomainAllowList
+ MailDestinationRoutingReasonPDomainAllowList = &_MailDestinationRoutingReasonPDomainAllowList
+ // MailDestinationRoutingReasonPDomainBlockList is a pointer to MailDestinationRoutingReasonVDomainBlockList
+ MailDestinationRoutingReasonPDomainBlockList = &_MailDestinationRoutingReasonPDomainBlockList
+ // MailDestinationRoutingReasonPNotInAddressBook is a pointer to MailDestinationRoutingReasonVNotInAddressBook
+ MailDestinationRoutingReasonPNotInAddressBook = &_MailDestinationRoutingReasonPNotInAddressBook
+ // MailDestinationRoutingReasonPFirstTimeSender is a pointer to MailDestinationRoutingReasonVFirstTimeSender
+ MailDestinationRoutingReasonPFirstTimeSender = &_MailDestinationRoutingReasonPFirstTimeSender
+ // MailDestinationRoutingReasonPAutoPurgeToInbox is a pointer to MailDestinationRoutingReasonVAutoPurgeToInbox
+ MailDestinationRoutingReasonPAutoPurgeToInbox = &_MailDestinationRoutingReasonPAutoPurgeToInbox
+ // MailDestinationRoutingReasonPAutoPurgeToJunk is a pointer to MailDestinationRoutingReasonVAutoPurgeToJunk
+ MailDestinationRoutingReasonPAutoPurgeToJunk = &_MailDestinationRoutingReasonPAutoPurgeToJunk
+ // MailDestinationRoutingReasonPAutoPurgeToDeleted is a pointer to MailDestinationRoutingReasonVAutoPurgeToDeleted
+ MailDestinationRoutingReasonPAutoPurgeToDeleted = &_MailDestinationRoutingReasonPAutoPurgeToDeleted
+ // MailDestinationRoutingReasonPOutbound is a pointer to MailDestinationRoutingReasonVOutbound
+ MailDestinationRoutingReasonPOutbound = &_MailDestinationRoutingReasonPOutbound
+ // MailDestinationRoutingReasonPNotJunk is a pointer to MailDestinationRoutingReasonVNotJunk
+ MailDestinationRoutingReasonPNotJunk = &_MailDestinationRoutingReasonPNotJunk
+ // MailDestinationRoutingReasonPJunk is a pointer to MailDestinationRoutingReasonVJunk
+ MailDestinationRoutingReasonPJunk = &_MailDestinationRoutingReasonPJunk
+ // MailDestinationRoutingReasonPUnknownFutureValue is a pointer to MailDestinationRoutingReasonVUnknownFutureValue
+ MailDestinationRoutingReasonPUnknownFutureValue = &_MailDestinationRoutingReasonPUnknownFutureValue
+)
+
+var (
+ _MailDestinationRoutingReasonPNone = MailDestinationRoutingReasonVNone
+ _MailDestinationRoutingReasonPMailFlowRule = MailDestinationRoutingReasonVMailFlowRule
+ _MailDestinationRoutingReasonPSafeSender = MailDestinationRoutingReasonVSafeSender
+ _MailDestinationRoutingReasonPBlockedSender = MailDestinationRoutingReasonVBlockedSender
+ _MailDestinationRoutingReasonPAdvancedSpamFiltering = MailDestinationRoutingReasonVAdvancedSpamFiltering
+ _MailDestinationRoutingReasonPDomainAllowList = MailDestinationRoutingReasonVDomainAllowList
+ _MailDestinationRoutingReasonPDomainBlockList = MailDestinationRoutingReasonVDomainBlockList
+ _MailDestinationRoutingReasonPNotInAddressBook = MailDestinationRoutingReasonVNotInAddressBook
+ _MailDestinationRoutingReasonPFirstTimeSender = MailDestinationRoutingReasonVFirstTimeSender
+ _MailDestinationRoutingReasonPAutoPurgeToInbox = MailDestinationRoutingReasonVAutoPurgeToInbox
+ _MailDestinationRoutingReasonPAutoPurgeToJunk = MailDestinationRoutingReasonVAutoPurgeToJunk
+ _MailDestinationRoutingReasonPAutoPurgeToDeleted = MailDestinationRoutingReasonVAutoPurgeToDeleted
+ _MailDestinationRoutingReasonPOutbound = MailDestinationRoutingReasonVOutbound
+ _MailDestinationRoutingReasonPNotJunk = MailDestinationRoutingReasonVNotJunk
+ _MailDestinationRoutingReasonPJunk = MailDestinationRoutingReasonVJunk
+ _MailDestinationRoutingReasonPUnknownFutureValue = MailDestinationRoutingReasonVUnknownFutureValue
+)
+
+// MailTipsType undocumented
+type MailTipsType string
+
+const (
+ // MailTipsTypeVAutomaticReplies undocumented
+ MailTipsTypeVAutomaticReplies MailTipsType = "automaticReplies"
+ // MailTipsTypeVMailboxFullStatus undocumented
+ MailTipsTypeVMailboxFullStatus MailTipsType = "mailboxFullStatus"
+ // MailTipsTypeVCustomMailTip undocumented
+ MailTipsTypeVCustomMailTip MailTipsType = "customMailTip"
+ // MailTipsTypeVExternalMemberCount undocumented
+ MailTipsTypeVExternalMemberCount MailTipsType = "externalMemberCount"
+ // MailTipsTypeVTotalMemberCount undocumented
+ MailTipsTypeVTotalMemberCount MailTipsType = "totalMemberCount"
+ // MailTipsTypeVMaxMessageSize undocumented
+ MailTipsTypeVMaxMessageSize MailTipsType = "maxMessageSize"
+ // MailTipsTypeVDeliveryRestriction undocumented
+ MailTipsTypeVDeliveryRestriction MailTipsType = "deliveryRestriction"
+ // MailTipsTypeVModerationStatus undocumented
+ MailTipsTypeVModerationStatus MailTipsType = "moderationStatus"
+ // MailTipsTypeVRecipientScope undocumented
+ MailTipsTypeVRecipientScope MailTipsType = "recipientScope"
+ // MailTipsTypeVRecipientSuggestions undocumented
+ MailTipsTypeVRecipientSuggestions MailTipsType = "recipientSuggestions"
+)
+
+var (
+ // MailTipsTypePAutomaticReplies is a pointer to MailTipsTypeVAutomaticReplies
+ MailTipsTypePAutomaticReplies = &_MailTipsTypePAutomaticReplies
+ // MailTipsTypePMailboxFullStatus is a pointer to MailTipsTypeVMailboxFullStatus
+ MailTipsTypePMailboxFullStatus = &_MailTipsTypePMailboxFullStatus
+ // MailTipsTypePCustomMailTip is a pointer to MailTipsTypeVCustomMailTip
+ MailTipsTypePCustomMailTip = &_MailTipsTypePCustomMailTip
+ // MailTipsTypePExternalMemberCount is a pointer to MailTipsTypeVExternalMemberCount
+ MailTipsTypePExternalMemberCount = &_MailTipsTypePExternalMemberCount
+ // MailTipsTypePTotalMemberCount is a pointer to MailTipsTypeVTotalMemberCount
+ MailTipsTypePTotalMemberCount = &_MailTipsTypePTotalMemberCount
+ // MailTipsTypePMaxMessageSize is a pointer to MailTipsTypeVMaxMessageSize
+ MailTipsTypePMaxMessageSize = &_MailTipsTypePMaxMessageSize
+ // MailTipsTypePDeliveryRestriction is a pointer to MailTipsTypeVDeliveryRestriction
+ MailTipsTypePDeliveryRestriction = &_MailTipsTypePDeliveryRestriction
+ // MailTipsTypePModerationStatus is a pointer to MailTipsTypeVModerationStatus
+ MailTipsTypePModerationStatus = &_MailTipsTypePModerationStatus
+ // MailTipsTypePRecipientScope is a pointer to MailTipsTypeVRecipientScope
+ MailTipsTypePRecipientScope = &_MailTipsTypePRecipientScope
+ // MailTipsTypePRecipientSuggestions is a pointer to MailTipsTypeVRecipientSuggestions
+ MailTipsTypePRecipientSuggestions = &_MailTipsTypePRecipientSuggestions
+)
+
+var (
+ _MailTipsTypePAutomaticReplies = MailTipsTypeVAutomaticReplies
+ _MailTipsTypePMailboxFullStatus = MailTipsTypeVMailboxFullStatus
+ _MailTipsTypePCustomMailTip = MailTipsTypeVCustomMailTip
+ _MailTipsTypePExternalMemberCount = MailTipsTypeVExternalMemberCount
+ _MailTipsTypePTotalMemberCount = MailTipsTypeVTotalMemberCount
+ _MailTipsTypePMaxMessageSize = MailTipsTypeVMaxMessageSize
+ _MailTipsTypePDeliveryRestriction = MailTipsTypeVDeliveryRestriction
+ _MailTipsTypePModerationStatus = MailTipsTypeVModerationStatus
+ _MailTipsTypePRecipientScope = MailTipsTypeVRecipientScope
+ _MailTipsTypePRecipientSuggestions = MailTipsTypeVRecipientSuggestions
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumManaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumManaged.go
new file mode 100644
index 00000000..47a65f9d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumManaged.go
@@ -0,0 +1,456 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagedAppAvailability undocumented
+type ManagedAppAvailability string
+
+const (
+ // ManagedAppAvailabilityVGlobal undocumented
+ ManagedAppAvailabilityVGlobal ManagedAppAvailability = "global"
+ // ManagedAppAvailabilityVLineOfBusiness undocumented
+ ManagedAppAvailabilityVLineOfBusiness ManagedAppAvailability = "lineOfBusiness"
+)
+
+var (
+ // ManagedAppAvailabilityPGlobal is a pointer to ManagedAppAvailabilityVGlobal
+ ManagedAppAvailabilityPGlobal = &_ManagedAppAvailabilityPGlobal
+ // ManagedAppAvailabilityPLineOfBusiness is a pointer to ManagedAppAvailabilityVLineOfBusiness
+ ManagedAppAvailabilityPLineOfBusiness = &_ManagedAppAvailabilityPLineOfBusiness
+)
+
+var (
+ _ManagedAppAvailabilityPGlobal = ManagedAppAvailabilityVGlobal
+ _ManagedAppAvailabilityPLineOfBusiness = ManagedAppAvailabilityVLineOfBusiness
+)
+
+// ManagedAppClipboardSharingLevel undocumented
+type ManagedAppClipboardSharingLevel string
+
+const (
+ // ManagedAppClipboardSharingLevelVAllApps undocumented
+ ManagedAppClipboardSharingLevelVAllApps ManagedAppClipboardSharingLevel = "allApps"
+ // ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn undocumented
+ ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn ManagedAppClipboardSharingLevel = "managedAppsWithPasteIn"
+ // ManagedAppClipboardSharingLevelVManagedApps undocumented
+ ManagedAppClipboardSharingLevelVManagedApps ManagedAppClipboardSharingLevel = "managedApps"
+ // ManagedAppClipboardSharingLevelVBlocked undocumented
+ ManagedAppClipboardSharingLevelVBlocked ManagedAppClipboardSharingLevel = "blocked"
+)
+
+var (
+ // ManagedAppClipboardSharingLevelPAllApps is a pointer to ManagedAppClipboardSharingLevelVAllApps
+ ManagedAppClipboardSharingLevelPAllApps = &_ManagedAppClipboardSharingLevelPAllApps
+ // ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn is a pointer to ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn
+ ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn = &_ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn
+ // ManagedAppClipboardSharingLevelPManagedApps is a pointer to ManagedAppClipboardSharingLevelVManagedApps
+ ManagedAppClipboardSharingLevelPManagedApps = &_ManagedAppClipboardSharingLevelPManagedApps
+ // ManagedAppClipboardSharingLevelPBlocked is a pointer to ManagedAppClipboardSharingLevelVBlocked
+ ManagedAppClipboardSharingLevelPBlocked = &_ManagedAppClipboardSharingLevelPBlocked
+)
+
+var (
+ _ManagedAppClipboardSharingLevelPAllApps = ManagedAppClipboardSharingLevelVAllApps
+ _ManagedAppClipboardSharingLevelPManagedAppsWithPasteIn = ManagedAppClipboardSharingLevelVManagedAppsWithPasteIn
+ _ManagedAppClipboardSharingLevelPManagedApps = ManagedAppClipboardSharingLevelVManagedApps
+ _ManagedAppClipboardSharingLevelPBlocked = ManagedAppClipboardSharingLevelVBlocked
+)
+
+// ManagedAppDataEncryptionType undocumented
+type ManagedAppDataEncryptionType string
+
+const (
+ // ManagedAppDataEncryptionTypeVUseDeviceSettings undocumented
+ ManagedAppDataEncryptionTypeVUseDeviceSettings ManagedAppDataEncryptionType = "useDeviceSettings"
+ // ManagedAppDataEncryptionTypeVAfterDeviceRestart undocumented
+ ManagedAppDataEncryptionTypeVAfterDeviceRestart ManagedAppDataEncryptionType = "afterDeviceRestart"
+ // ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles undocumented
+ ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles ManagedAppDataEncryptionType = "whenDeviceLockedExceptOpenFiles"
+ // ManagedAppDataEncryptionTypeVWhenDeviceLocked undocumented
+ ManagedAppDataEncryptionTypeVWhenDeviceLocked ManagedAppDataEncryptionType = "whenDeviceLocked"
+)
+
+var (
+ // ManagedAppDataEncryptionTypePUseDeviceSettings is a pointer to ManagedAppDataEncryptionTypeVUseDeviceSettings
+ ManagedAppDataEncryptionTypePUseDeviceSettings = &_ManagedAppDataEncryptionTypePUseDeviceSettings
+ // ManagedAppDataEncryptionTypePAfterDeviceRestart is a pointer to ManagedAppDataEncryptionTypeVAfterDeviceRestart
+ ManagedAppDataEncryptionTypePAfterDeviceRestart = &_ManagedAppDataEncryptionTypePAfterDeviceRestart
+ // ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles is a pointer to ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles
+ ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles = &_ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles
+ // ManagedAppDataEncryptionTypePWhenDeviceLocked is a pointer to ManagedAppDataEncryptionTypeVWhenDeviceLocked
+ ManagedAppDataEncryptionTypePWhenDeviceLocked = &_ManagedAppDataEncryptionTypePWhenDeviceLocked
+)
+
+var (
+ _ManagedAppDataEncryptionTypePUseDeviceSettings = ManagedAppDataEncryptionTypeVUseDeviceSettings
+ _ManagedAppDataEncryptionTypePAfterDeviceRestart = ManagedAppDataEncryptionTypeVAfterDeviceRestart
+ _ManagedAppDataEncryptionTypePWhenDeviceLockedExceptOpenFiles = ManagedAppDataEncryptionTypeVWhenDeviceLockedExceptOpenFiles
+ _ManagedAppDataEncryptionTypePWhenDeviceLocked = ManagedAppDataEncryptionTypeVWhenDeviceLocked
+)
+
+// ManagedAppDataStorageLocation undocumented
+type ManagedAppDataStorageLocation string
+
+const (
+ // ManagedAppDataStorageLocationVOneDriveForBusiness undocumented
+ ManagedAppDataStorageLocationVOneDriveForBusiness ManagedAppDataStorageLocation = "oneDriveForBusiness"
+ // ManagedAppDataStorageLocationVSharePoint undocumented
+ ManagedAppDataStorageLocationVSharePoint ManagedAppDataStorageLocation = "sharePoint"
+ // ManagedAppDataStorageLocationVLocalStorage undocumented
+ ManagedAppDataStorageLocationVLocalStorage ManagedAppDataStorageLocation = "localStorage"
+)
+
+var (
+ // ManagedAppDataStorageLocationPOneDriveForBusiness is a pointer to ManagedAppDataStorageLocationVOneDriveForBusiness
+ ManagedAppDataStorageLocationPOneDriveForBusiness = &_ManagedAppDataStorageLocationPOneDriveForBusiness
+ // ManagedAppDataStorageLocationPSharePoint is a pointer to ManagedAppDataStorageLocationVSharePoint
+ ManagedAppDataStorageLocationPSharePoint = &_ManagedAppDataStorageLocationPSharePoint
+ // ManagedAppDataStorageLocationPLocalStorage is a pointer to ManagedAppDataStorageLocationVLocalStorage
+ ManagedAppDataStorageLocationPLocalStorage = &_ManagedAppDataStorageLocationPLocalStorage
+)
+
+var (
+ _ManagedAppDataStorageLocationPOneDriveForBusiness = ManagedAppDataStorageLocationVOneDriveForBusiness
+ _ManagedAppDataStorageLocationPSharePoint = ManagedAppDataStorageLocationVSharePoint
+ _ManagedAppDataStorageLocationPLocalStorage = ManagedAppDataStorageLocationVLocalStorage
+)
+
+// ManagedAppDataTransferLevel undocumented
+type ManagedAppDataTransferLevel string
+
+const (
+ // ManagedAppDataTransferLevelVAllApps undocumented
+ ManagedAppDataTransferLevelVAllApps ManagedAppDataTransferLevel = "allApps"
+ // ManagedAppDataTransferLevelVManagedApps undocumented
+ ManagedAppDataTransferLevelVManagedApps ManagedAppDataTransferLevel = "managedApps"
+ // ManagedAppDataTransferLevelVNone undocumented
+ ManagedAppDataTransferLevelVNone ManagedAppDataTransferLevel = "none"
+)
+
+var (
+ // ManagedAppDataTransferLevelPAllApps is a pointer to ManagedAppDataTransferLevelVAllApps
+ ManagedAppDataTransferLevelPAllApps = &_ManagedAppDataTransferLevelPAllApps
+ // ManagedAppDataTransferLevelPManagedApps is a pointer to ManagedAppDataTransferLevelVManagedApps
+ ManagedAppDataTransferLevelPManagedApps = &_ManagedAppDataTransferLevelPManagedApps
+ // ManagedAppDataTransferLevelPNone is a pointer to ManagedAppDataTransferLevelVNone
+ ManagedAppDataTransferLevelPNone = &_ManagedAppDataTransferLevelPNone
+)
+
+var (
+ _ManagedAppDataTransferLevelPAllApps = ManagedAppDataTransferLevelVAllApps
+ _ManagedAppDataTransferLevelPManagedApps = ManagedAppDataTransferLevelVManagedApps
+ _ManagedAppDataTransferLevelPNone = ManagedAppDataTransferLevelVNone
+)
+
+// ManagedAppDeviceThreatLevel undocumented
+type ManagedAppDeviceThreatLevel string
+
+const (
+ // ManagedAppDeviceThreatLevelVNotConfigured undocumented
+ ManagedAppDeviceThreatLevelVNotConfigured ManagedAppDeviceThreatLevel = "notConfigured"
+ // ManagedAppDeviceThreatLevelVSecured undocumented
+ ManagedAppDeviceThreatLevelVSecured ManagedAppDeviceThreatLevel = "secured"
+ // ManagedAppDeviceThreatLevelVLow undocumented
+ ManagedAppDeviceThreatLevelVLow ManagedAppDeviceThreatLevel = "low"
+ // ManagedAppDeviceThreatLevelVMedium undocumented
+ ManagedAppDeviceThreatLevelVMedium ManagedAppDeviceThreatLevel = "medium"
+ // ManagedAppDeviceThreatLevelVHigh undocumented
+ ManagedAppDeviceThreatLevelVHigh ManagedAppDeviceThreatLevel = "high"
+)
+
+var (
+ // ManagedAppDeviceThreatLevelPNotConfigured is a pointer to ManagedAppDeviceThreatLevelVNotConfigured
+ ManagedAppDeviceThreatLevelPNotConfigured = &_ManagedAppDeviceThreatLevelPNotConfigured
+ // ManagedAppDeviceThreatLevelPSecured is a pointer to ManagedAppDeviceThreatLevelVSecured
+ ManagedAppDeviceThreatLevelPSecured = &_ManagedAppDeviceThreatLevelPSecured
+ // ManagedAppDeviceThreatLevelPLow is a pointer to ManagedAppDeviceThreatLevelVLow
+ ManagedAppDeviceThreatLevelPLow = &_ManagedAppDeviceThreatLevelPLow
+ // ManagedAppDeviceThreatLevelPMedium is a pointer to ManagedAppDeviceThreatLevelVMedium
+ ManagedAppDeviceThreatLevelPMedium = &_ManagedAppDeviceThreatLevelPMedium
+ // ManagedAppDeviceThreatLevelPHigh is a pointer to ManagedAppDeviceThreatLevelVHigh
+ ManagedAppDeviceThreatLevelPHigh = &_ManagedAppDeviceThreatLevelPHigh
+)
+
+var (
+ _ManagedAppDeviceThreatLevelPNotConfigured = ManagedAppDeviceThreatLevelVNotConfigured
+ _ManagedAppDeviceThreatLevelPSecured = ManagedAppDeviceThreatLevelVSecured
+ _ManagedAppDeviceThreatLevelPLow = ManagedAppDeviceThreatLevelVLow
+ _ManagedAppDeviceThreatLevelPMedium = ManagedAppDeviceThreatLevelVMedium
+ _ManagedAppDeviceThreatLevelPHigh = ManagedAppDeviceThreatLevelVHigh
+)
+
+// ManagedAppFlaggedReason undocumented
+type ManagedAppFlaggedReason string
+
+const (
+ // ManagedAppFlaggedReasonVNone undocumented
+ ManagedAppFlaggedReasonVNone ManagedAppFlaggedReason = "none"
+ // ManagedAppFlaggedReasonVRootedDevice undocumented
+ ManagedAppFlaggedReasonVRootedDevice ManagedAppFlaggedReason = "rootedDevice"
+ // ManagedAppFlaggedReasonVAndroidBootloaderUnlocked undocumented
+ ManagedAppFlaggedReasonVAndroidBootloaderUnlocked ManagedAppFlaggedReason = "androidBootloaderUnlocked"
+ // ManagedAppFlaggedReasonVAndroidFactoryRomModified undocumented
+ ManagedAppFlaggedReasonVAndroidFactoryRomModified ManagedAppFlaggedReason = "androidFactoryRomModified"
+)
+
+var (
+ // ManagedAppFlaggedReasonPNone is a pointer to ManagedAppFlaggedReasonVNone
+ ManagedAppFlaggedReasonPNone = &_ManagedAppFlaggedReasonPNone
+ // ManagedAppFlaggedReasonPRootedDevice is a pointer to ManagedAppFlaggedReasonVRootedDevice
+ ManagedAppFlaggedReasonPRootedDevice = &_ManagedAppFlaggedReasonPRootedDevice
+ // ManagedAppFlaggedReasonPAndroidBootloaderUnlocked is a pointer to ManagedAppFlaggedReasonVAndroidBootloaderUnlocked
+ ManagedAppFlaggedReasonPAndroidBootloaderUnlocked = &_ManagedAppFlaggedReasonPAndroidBootloaderUnlocked
+ // ManagedAppFlaggedReasonPAndroidFactoryRomModified is a pointer to ManagedAppFlaggedReasonVAndroidFactoryRomModified
+ ManagedAppFlaggedReasonPAndroidFactoryRomModified = &_ManagedAppFlaggedReasonPAndroidFactoryRomModified
+)
+
+var (
+ _ManagedAppFlaggedReasonPNone = ManagedAppFlaggedReasonVNone
+ _ManagedAppFlaggedReasonPRootedDevice = ManagedAppFlaggedReasonVRootedDevice
+ _ManagedAppFlaggedReasonPAndroidBootloaderUnlocked = ManagedAppFlaggedReasonVAndroidBootloaderUnlocked
+ _ManagedAppFlaggedReasonPAndroidFactoryRomModified = ManagedAppFlaggedReasonVAndroidFactoryRomModified
+)
+
+// ManagedAppNotificationRestriction undocumented
+type ManagedAppNotificationRestriction string
+
+const (
+ // ManagedAppNotificationRestrictionVAllow undocumented
+ ManagedAppNotificationRestrictionVAllow ManagedAppNotificationRestriction = "allow"
+ // ManagedAppNotificationRestrictionVBlockOrganizationalData undocumented
+ ManagedAppNotificationRestrictionVBlockOrganizationalData ManagedAppNotificationRestriction = "blockOrganizationalData"
+ // ManagedAppNotificationRestrictionVBlock undocumented
+ ManagedAppNotificationRestrictionVBlock ManagedAppNotificationRestriction = "block"
+)
+
+var (
+ // ManagedAppNotificationRestrictionPAllow is a pointer to ManagedAppNotificationRestrictionVAllow
+ ManagedAppNotificationRestrictionPAllow = &_ManagedAppNotificationRestrictionPAllow
+ // ManagedAppNotificationRestrictionPBlockOrganizationalData is a pointer to ManagedAppNotificationRestrictionVBlockOrganizationalData
+ ManagedAppNotificationRestrictionPBlockOrganizationalData = &_ManagedAppNotificationRestrictionPBlockOrganizationalData
+ // ManagedAppNotificationRestrictionPBlock is a pointer to ManagedAppNotificationRestrictionVBlock
+ ManagedAppNotificationRestrictionPBlock = &_ManagedAppNotificationRestrictionPBlock
+)
+
+var (
+ _ManagedAppNotificationRestrictionPAllow = ManagedAppNotificationRestrictionVAllow
+ _ManagedAppNotificationRestrictionPBlockOrganizationalData = ManagedAppNotificationRestrictionVBlockOrganizationalData
+ _ManagedAppNotificationRestrictionPBlock = ManagedAppNotificationRestrictionVBlock
+)
+
+// ManagedAppPinCharacterSet undocumented
+type ManagedAppPinCharacterSet string
+
+const (
+ // ManagedAppPinCharacterSetVNumeric undocumented
+ ManagedAppPinCharacterSetVNumeric ManagedAppPinCharacterSet = "numeric"
+ // ManagedAppPinCharacterSetVAlphanumericAndSymbol undocumented
+ ManagedAppPinCharacterSetVAlphanumericAndSymbol ManagedAppPinCharacterSet = "alphanumericAndSymbol"
+)
+
+var (
+ // ManagedAppPinCharacterSetPNumeric is a pointer to ManagedAppPinCharacterSetVNumeric
+ ManagedAppPinCharacterSetPNumeric = &_ManagedAppPinCharacterSetPNumeric
+ // ManagedAppPinCharacterSetPAlphanumericAndSymbol is a pointer to ManagedAppPinCharacterSetVAlphanumericAndSymbol
+ ManagedAppPinCharacterSetPAlphanumericAndSymbol = &_ManagedAppPinCharacterSetPAlphanumericAndSymbol
+)
+
+var (
+ _ManagedAppPinCharacterSetPNumeric = ManagedAppPinCharacterSetVNumeric
+ _ManagedAppPinCharacterSetPAlphanumericAndSymbol = ManagedAppPinCharacterSetVAlphanumericAndSymbol
+)
+
+// ManagedAppRemediationAction undocumented
+type ManagedAppRemediationAction string
+
+const (
+ // ManagedAppRemediationActionVBlock undocumented
+ ManagedAppRemediationActionVBlock ManagedAppRemediationAction = "block"
+ // ManagedAppRemediationActionVWipe undocumented
+ ManagedAppRemediationActionVWipe ManagedAppRemediationAction = "wipe"
+ // ManagedAppRemediationActionVWarn undocumented
+ ManagedAppRemediationActionVWarn ManagedAppRemediationAction = "warn"
+)
+
+var (
+ // ManagedAppRemediationActionPBlock is a pointer to ManagedAppRemediationActionVBlock
+ ManagedAppRemediationActionPBlock = &_ManagedAppRemediationActionPBlock
+ // ManagedAppRemediationActionPWipe is a pointer to ManagedAppRemediationActionVWipe
+ ManagedAppRemediationActionPWipe = &_ManagedAppRemediationActionPWipe
+ // ManagedAppRemediationActionPWarn is a pointer to ManagedAppRemediationActionVWarn
+ ManagedAppRemediationActionPWarn = &_ManagedAppRemediationActionPWarn
+)
+
+var (
+ _ManagedAppRemediationActionPBlock = ManagedAppRemediationActionVBlock
+ _ManagedAppRemediationActionPWipe = ManagedAppRemediationActionVWipe
+ _ManagedAppRemediationActionPWarn = ManagedAppRemediationActionVWarn
+)
+
+// ManagedBrowserType undocumented
+type ManagedBrowserType string
+
+const (
+ // ManagedBrowserTypeVNotConfigured undocumented
+ ManagedBrowserTypeVNotConfigured ManagedBrowserType = "notConfigured"
+ // ManagedBrowserTypeVMicrosoftEdge undocumented
+ ManagedBrowserTypeVMicrosoftEdge ManagedBrowserType = "microsoftEdge"
+)
+
+var (
+ // ManagedBrowserTypePNotConfigured is a pointer to ManagedBrowserTypeVNotConfigured
+ ManagedBrowserTypePNotConfigured = &_ManagedBrowserTypePNotConfigured
+ // ManagedBrowserTypePMicrosoftEdge is a pointer to ManagedBrowserTypeVMicrosoftEdge
+ ManagedBrowserTypePMicrosoftEdge = &_ManagedBrowserTypePMicrosoftEdge
+)
+
+var (
+ _ManagedBrowserTypePNotConfigured = ManagedBrowserTypeVNotConfigured
+ _ManagedBrowserTypePMicrosoftEdge = ManagedBrowserTypeVMicrosoftEdge
+)
+
+// ManagedDeviceOwnerType undocumented
+type ManagedDeviceOwnerType string
+
+const (
+ // ManagedDeviceOwnerTypeVUnknown undocumented
+ ManagedDeviceOwnerTypeVUnknown ManagedDeviceOwnerType = "unknown"
+ // ManagedDeviceOwnerTypeVCompany undocumented
+ ManagedDeviceOwnerTypeVCompany ManagedDeviceOwnerType = "company"
+ // ManagedDeviceOwnerTypeVPersonal undocumented
+ ManagedDeviceOwnerTypeVPersonal ManagedDeviceOwnerType = "personal"
+)
+
+var (
+ // ManagedDeviceOwnerTypePUnknown is a pointer to ManagedDeviceOwnerTypeVUnknown
+ ManagedDeviceOwnerTypePUnknown = &_ManagedDeviceOwnerTypePUnknown
+ // ManagedDeviceOwnerTypePCompany is a pointer to ManagedDeviceOwnerTypeVCompany
+ ManagedDeviceOwnerTypePCompany = &_ManagedDeviceOwnerTypePCompany
+ // ManagedDeviceOwnerTypePPersonal is a pointer to ManagedDeviceOwnerTypeVPersonal
+ ManagedDeviceOwnerTypePPersonal = &_ManagedDeviceOwnerTypePPersonal
+)
+
+var (
+ _ManagedDeviceOwnerTypePUnknown = ManagedDeviceOwnerTypeVUnknown
+ _ManagedDeviceOwnerTypePCompany = ManagedDeviceOwnerTypeVCompany
+ _ManagedDeviceOwnerTypePPersonal = ManagedDeviceOwnerTypeVPersonal
+)
+
+// ManagedDevicePartnerReportedHealthState undocumented
+type ManagedDevicePartnerReportedHealthState string
+
+const (
+ // ManagedDevicePartnerReportedHealthStateVUnknown undocumented
+ ManagedDevicePartnerReportedHealthStateVUnknown ManagedDevicePartnerReportedHealthState = "unknown"
+ // ManagedDevicePartnerReportedHealthStateVActivated undocumented
+ ManagedDevicePartnerReportedHealthStateVActivated ManagedDevicePartnerReportedHealthState = "activated"
+ // ManagedDevicePartnerReportedHealthStateVDeactivated undocumented
+ ManagedDevicePartnerReportedHealthStateVDeactivated ManagedDevicePartnerReportedHealthState = "deactivated"
+ // ManagedDevicePartnerReportedHealthStateVSecured undocumented
+ ManagedDevicePartnerReportedHealthStateVSecured ManagedDevicePartnerReportedHealthState = "secured"
+ // ManagedDevicePartnerReportedHealthStateVLowSeverity undocumented
+ ManagedDevicePartnerReportedHealthStateVLowSeverity ManagedDevicePartnerReportedHealthState = "lowSeverity"
+ // ManagedDevicePartnerReportedHealthStateVMediumSeverity undocumented
+ ManagedDevicePartnerReportedHealthStateVMediumSeverity ManagedDevicePartnerReportedHealthState = "mediumSeverity"
+ // ManagedDevicePartnerReportedHealthStateVHighSeverity undocumented
+ ManagedDevicePartnerReportedHealthStateVHighSeverity ManagedDevicePartnerReportedHealthState = "highSeverity"
+ // ManagedDevicePartnerReportedHealthStateVUnresponsive undocumented
+ ManagedDevicePartnerReportedHealthStateVUnresponsive ManagedDevicePartnerReportedHealthState = "unresponsive"
+ // ManagedDevicePartnerReportedHealthStateVCompromised undocumented
+ ManagedDevicePartnerReportedHealthStateVCompromised ManagedDevicePartnerReportedHealthState = "compromised"
+ // ManagedDevicePartnerReportedHealthStateVMisconfigured undocumented
+ ManagedDevicePartnerReportedHealthStateVMisconfigured ManagedDevicePartnerReportedHealthState = "misconfigured"
+)
+
+var (
+ // ManagedDevicePartnerReportedHealthStatePUnknown is a pointer to ManagedDevicePartnerReportedHealthStateVUnknown
+ ManagedDevicePartnerReportedHealthStatePUnknown = &_ManagedDevicePartnerReportedHealthStatePUnknown
+ // ManagedDevicePartnerReportedHealthStatePActivated is a pointer to ManagedDevicePartnerReportedHealthStateVActivated
+ ManagedDevicePartnerReportedHealthStatePActivated = &_ManagedDevicePartnerReportedHealthStatePActivated
+ // ManagedDevicePartnerReportedHealthStatePDeactivated is a pointer to ManagedDevicePartnerReportedHealthStateVDeactivated
+ ManagedDevicePartnerReportedHealthStatePDeactivated = &_ManagedDevicePartnerReportedHealthStatePDeactivated
+ // ManagedDevicePartnerReportedHealthStatePSecured is a pointer to ManagedDevicePartnerReportedHealthStateVSecured
+ ManagedDevicePartnerReportedHealthStatePSecured = &_ManagedDevicePartnerReportedHealthStatePSecured
+ // ManagedDevicePartnerReportedHealthStatePLowSeverity is a pointer to ManagedDevicePartnerReportedHealthStateVLowSeverity
+ ManagedDevicePartnerReportedHealthStatePLowSeverity = &_ManagedDevicePartnerReportedHealthStatePLowSeverity
+ // ManagedDevicePartnerReportedHealthStatePMediumSeverity is a pointer to ManagedDevicePartnerReportedHealthStateVMediumSeverity
+ ManagedDevicePartnerReportedHealthStatePMediumSeverity = &_ManagedDevicePartnerReportedHealthStatePMediumSeverity
+ // ManagedDevicePartnerReportedHealthStatePHighSeverity is a pointer to ManagedDevicePartnerReportedHealthStateVHighSeverity
+ ManagedDevicePartnerReportedHealthStatePHighSeverity = &_ManagedDevicePartnerReportedHealthStatePHighSeverity
+ // ManagedDevicePartnerReportedHealthStatePUnresponsive is a pointer to ManagedDevicePartnerReportedHealthStateVUnresponsive
+ ManagedDevicePartnerReportedHealthStatePUnresponsive = &_ManagedDevicePartnerReportedHealthStatePUnresponsive
+ // ManagedDevicePartnerReportedHealthStatePCompromised is a pointer to ManagedDevicePartnerReportedHealthStateVCompromised
+ ManagedDevicePartnerReportedHealthStatePCompromised = &_ManagedDevicePartnerReportedHealthStatePCompromised
+ // ManagedDevicePartnerReportedHealthStatePMisconfigured is a pointer to ManagedDevicePartnerReportedHealthStateVMisconfigured
+ ManagedDevicePartnerReportedHealthStatePMisconfigured = &_ManagedDevicePartnerReportedHealthStatePMisconfigured
+)
+
+var (
+ _ManagedDevicePartnerReportedHealthStatePUnknown = ManagedDevicePartnerReportedHealthStateVUnknown
+ _ManagedDevicePartnerReportedHealthStatePActivated = ManagedDevicePartnerReportedHealthStateVActivated
+ _ManagedDevicePartnerReportedHealthStatePDeactivated = ManagedDevicePartnerReportedHealthStateVDeactivated
+ _ManagedDevicePartnerReportedHealthStatePSecured = ManagedDevicePartnerReportedHealthStateVSecured
+ _ManagedDevicePartnerReportedHealthStatePLowSeverity = ManagedDevicePartnerReportedHealthStateVLowSeverity
+ _ManagedDevicePartnerReportedHealthStatePMediumSeverity = ManagedDevicePartnerReportedHealthStateVMediumSeverity
+ _ManagedDevicePartnerReportedHealthStatePHighSeverity = ManagedDevicePartnerReportedHealthStateVHighSeverity
+ _ManagedDevicePartnerReportedHealthStatePUnresponsive = ManagedDevicePartnerReportedHealthStateVUnresponsive
+ _ManagedDevicePartnerReportedHealthStatePCompromised = ManagedDevicePartnerReportedHealthStateVCompromised
+ _ManagedDevicePartnerReportedHealthStatePMisconfigured = ManagedDevicePartnerReportedHealthStateVMisconfigured
+)
+
+// ManagedDeviceRemoteAction undocumented
+type ManagedDeviceRemoteAction string
+
+const (
+ // ManagedDeviceRemoteActionVRetire undocumented
+ ManagedDeviceRemoteActionVRetire ManagedDeviceRemoteAction = "retire"
+ // ManagedDeviceRemoteActionVDelete undocumented
+ ManagedDeviceRemoteActionVDelete ManagedDeviceRemoteAction = "delete"
+ // ManagedDeviceRemoteActionVFullScan undocumented
+ ManagedDeviceRemoteActionVFullScan ManagedDeviceRemoteAction = "fullScan"
+ // ManagedDeviceRemoteActionVQuickScan undocumented
+ ManagedDeviceRemoteActionVQuickScan ManagedDeviceRemoteAction = "quickScan"
+ // ManagedDeviceRemoteActionVSignatureUpdate undocumented
+ ManagedDeviceRemoteActionVSignatureUpdate ManagedDeviceRemoteAction = "signatureUpdate"
+ // ManagedDeviceRemoteActionVWipe undocumented
+ ManagedDeviceRemoteActionVWipe ManagedDeviceRemoteAction = "wipe"
+ // ManagedDeviceRemoteActionVCustomTextNotification undocumented
+ ManagedDeviceRemoteActionVCustomTextNotification ManagedDeviceRemoteAction = "customTextNotification"
+ // ManagedDeviceRemoteActionVRebootNow undocumented
+ ManagedDeviceRemoteActionVRebootNow ManagedDeviceRemoteAction = "rebootNow"
+ // ManagedDeviceRemoteActionVSetDeviceName undocumented
+ ManagedDeviceRemoteActionVSetDeviceName ManagedDeviceRemoteAction = "setDeviceName"
+)
+
+var (
+ // ManagedDeviceRemoteActionPRetire is a pointer to ManagedDeviceRemoteActionVRetire
+ ManagedDeviceRemoteActionPRetire = &_ManagedDeviceRemoteActionPRetire
+ // ManagedDeviceRemoteActionPDelete is a pointer to ManagedDeviceRemoteActionVDelete
+ ManagedDeviceRemoteActionPDelete = &_ManagedDeviceRemoteActionPDelete
+ // ManagedDeviceRemoteActionPFullScan is a pointer to ManagedDeviceRemoteActionVFullScan
+ ManagedDeviceRemoteActionPFullScan = &_ManagedDeviceRemoteActionPFullScan
+ // ManagedDeviceRemoteActionPQuickScan is a pointer to ManagedDeviceRemoteActionVQuickScan
+ ManagedDeviceRemoteActionPQuickScan = &_ManagedDeviceRemoteActionPQuickScan
+ // ManagedDeviceRemoteActionPSignatureUpdate is a pointer to ManagedDeviceRemoteActionVSignatureUpdate
+ ManagedDeviceRemoteActionPSignatureUpdate = &_ManagedDeviceRemoteActionPSignatureUpdate
+ // ManagedDeviceRemoteActionPWipe is a pointer to ManagedDeviceRemoteActionVWipe
+ ManagedDeviceRemoteActionPWipe = &_ManagedDeviceRemoteActionPWipe
+ // ManagedDeviceRemoteActionPCustomTextNotification is a pointer to ManagedDeviceRemoteActionVCustomTextNotification
+ ManagedDeviceRemoteActionPCustomTextNotification = &_ManagedDeviceRemoteActionPCustomTextNotification
+ // ManagedDeviceRemoteActionPRebootNow is a pointer to ManagedDeviceRemoteActionVRebootNow
+ ManagedDeviceRemoteActionPRebootNow = &_ManagedDeviceRemoteActionPRebootNow
+ // ManagedDeviceRemoteActionPSetDeviceName is a pointer to ManagedDeviceRemoteActionVSetDeviceName
+ ManagedDeviceRemoteActionPSetDeviceName = &_ManagedDeviceRemoteActionPSetDeviceName
+)
+
+var (
+ _ManagedDeviceRemoteActionPRetire = ManagedDeviceRemoteActionVRetire
+ _ManagedDeviceRemoteActionPDelete = ManagedDeviceRemoteActionVDelete
+ _ManagedDeviceRemoteActionPFullScan = ManagedDeviceRemoteActionVFullScan
+ _ManagedDeviceRemoteActionPQuickScan = ManagedDeviceRemoteActionVQuickScan
+ _ManagedDeviceRemoteActionPSignatureUpdate = ManagedDeviceRemoteActionVSignatureUpdate
+ _ManagedDeviceRemoteActionPWipe = ManagedDeviceRemoteActionVWipe
+ _ManagedDeviceRemoteActionPCustomTextNotification = ManagedDeviceRemoteActionVCustomTextNotification
+ _ManagedDeviceRemoteActionPRebootNow = ManagedDeviceRemoteActionVRebootNow
+ _ManagedDeviceRemoteActionPSetDeviceName = ManagedDeviceRemoteActionVSetDeviceName
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumManagement.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumManagement.go
new file mode 100644
index 00000000..4d4420ef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumManagement.go
@@ -0,0 +1,147 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ManagementAgentType undocumented
+type ManagementAgentType string
+
+const (
+ // ManagementAgentTypeVEas undocumented
+ ManagementAgentTypeVEas ManagementAgentType = "eas"
+ // ManagementAgentTypeVMDM undocumented
+ ManagementAgentTypeVMDM ManagementAgentType = "mdm"
+ // ManagementAgentTypeVEasMDM undocumented
+ ManagementAgentTypeVEasMDM ManagementAgentType = "easMdm"
+ // ManagementAgentTypeVIntuneClient undocumented
+ ManagementAgentTypeVIntuneClient ManagementAgentType = "intuneClient"
+ // ManagementAgentTypeVEasIntuneClient undocumented
+ ManagementAgentTypeVEasIntuneClient ManagementAgentType = "easIntuneClient"
+ // ManagementAgentTypeVConfigurationManagerClient undocumented
+ ManagementAgentTypeVConfigurationManagerClient ManagementAgentType = "configurationManagerClient"
+ // ManagementAgentTypeVConfigurationManagerClientMDM undocumented
+ ManagementAgentTypeVConfigurationManagerClientMDM ManagementAgentType = "configurationManagerClientMdm"
+ // ManagementAgentTypeVConfigurationManagerClientMDMEas undocumented
+ ManagementAgentTypeVConfigurationManagerClientMDMEas ManagementAgentType = "configurationManagerClientMdmEas"
+ // ManagementAgentTypeVUnknown undocumented
+ ManagementAgentTypeVUnknown ManagementAgentType = "unknown"
+ // ManagementAgentTypeVJamf undocumented
+ ManagementAgentTypeVJamf ManagementAgentType = "jamf"
+ // ManagementAgentTypeVGoogleCloudDevicePolicyController undocumented
+ ManagementAgentTypeVGoogleCloudDevicePolicyController ManagementAgentType = "googleCloudDevicePolicyController"
+ // ManagementAgentTypeVMicrosoft365ManagedMDM undocumented
+ ManagementAgentTypeVMicrosoft365ManagedMDM ManagementAgentType = "microsoft365ManagedMdm"
+)
+
+var (
+ // ManagementAgentTypePEas is a pointer to ManagementAgentTypeVEas
+ ManagementAgentTypePEas = &_ManagementAgentTypePEas
+ // ManagementAgentTypePMDM is a pointer to ManagementAgentTypeVMDM
+ ManagementAgentTypePMDM = &_ManagementAgentTypePMDM
+ // ManagementAgentTypePEasMDM is a pointer to ManagementAgentTypeVEasMDM
+ ManagementAgentTypePEasMDM = &_ManagementAgentTypePEasMDM
+ // ManagementAgentTypePIntuneClient is a pointer to ManagementAgentTypeVIntuneClient
+ ManagementAgentTypePIntuneClient = &_ManagementAgentTypePIntuneClient
+ // ManagementAgentTypePEasIntuneClient is a pointer to ManagementAgentTypeVEasIntuneClient
+ ManagementAgentTypePEasIntuneClient = &_ManagementAgentTypePEasIntuneClient
+ // ManagementAgentTypePConfigurationManagerClient is a pointer to ManagementAgentTypeVConfigurationManagerClient
+ ManagementAgentTypePConfigurationManagerClient = &_ManagementAgentTypePConfigurationManagerClient
+ // ManagementAgentTypePConfigurationManagerClientMDM is a pointer to ManagementAgentTypeVConfigurationManagerClientMDM
+ ManagementAgentTypePConfigurationManagerClientMDM = &_ManagementAgentTypePConfigurationManagerClientMDM
+ // ManagementAgentTypePConfigurationManagerClientMDMEas is a pointer to ManagementAgentTypeVConfigurationManagerClientMDMEas
+ ManagementAgentTypePConfigurationManagerClientMDMEas = &_ManagementAgentTypePConfigurationManagerClientMDMEas
+ // ManagementAgentTypePUnknown is a pointer to ManagementAgentTypeVUnknown
+ ManagementAgentTypePUnknown = &_ManagementAgentTypePUnknown
+ // ManagementAgentTypePJamf is a pointer to ManagementAgentTypeVJamf
+ ManagementAgentTypePJamf = &_ManagementAgentTypePJamf
+ // ManagementAgentTypePGoogleCloudDevicePolicyController is a pointer to ManagementAgentTypeVGoogleCloudDevicePolicyController
+ ManagementAgentTypePGoogleCloudDevicePolicyController = &_ManagementAgentTypePGoogleCloudDevicePolicyController
+ // ManagementAgentTypePMicrosoft365ManagedMDM is a pointer to ManagementAgentTypeVMicrosoft365ManagedMDM
+ ManagementAgentTypePMicrosoft365ManagedMDM = &_ManagementAgentTypePMicrosoft365ManagedMDM
+)
+
+var (
+ _ManagementAgentTypePEas = ManagementAgentTypeVEas
+ _ManagementAgentTypePMDM = ManagementAgentTypeVMDM
+ _ManagementAgentTypePEasMDM = ManagementAgentTypeVEasMDM
+ _ManagementAgentTypePIntuneClient = ManagementAgentTypeVIntuneClient
+ _ManagementAgentTypePEasIntuneClient = ManagementAgentTypeVEasIntuneClient
+ _ManagementAgentTypePConfigurationManagerClient = ManagementAgentTypeVConfigurationManagerClient
+ _ManagementAgentTypePConfigurationManagerClientMDM = ManagementAgentTypeVConfigurationManagerClientMDM
+ _ManagementAgentTypePConfigurationManagerClientMDMEas = ManagementAgentTypeVConfigurationManagerClientMDMEas
+ _ManagementAgentTypePUnknown = ManagementAgentTypeVUnknown
+ _ManagementAgentTypePJamf = ManagementAgentTypeVJamf
+ _ManagementAgentTypePGoogleCloudDevicePolicyController = ManagementAgentTypeVGoogleCloudDevicePolicyController
+ _ManagementAgentTypePMicrosoft365ManagedMDM = ManagementAgentTypeVMicrosoft365ManagedMDM
+)
+
+// ManagementState undocumented
+type ManagementState string
+
+const (
+ // ManagementStateVManaged undocumented
+ ManagementStateVManaged ManagementState = "managed"
+ // ManagementStateVRetirePending undocumented
+ ManagementStateVRetirePending ManagementState = "retirePending"
+ // ManagementStateVRetireFailed undocumented
+ ManagementStateVRetireFailed ManagementState = "retireFailed"
+ // ManagementStateVWipePending undocumented
+ ManagementStateVWipePending ManagementState = "wipePending"
+ // ManagementStateVWipeFailed undocumented
+ ManagementStateVWipeFailed ManagementState = "wipeFailed"
+ // ManagementStateVUnhealthy undocumented
+ ManagementStateVUnhealthy ManagementState = "unhealthy"
+ // ManagementStateVDeletePending undocumented
+ ManagementStateVDeletePending ManagementState = "deletePending"
+ // ManagementStateVRetireIssued undocumented
+ ManagementStateVRetireIssued ManagementState = "retireIssued"
+ // ManagementStateVWipeIssued undocumented
+ ManagementStateVWipeIssued ManagementState = "wipeIssued"
+ // ManagementStateVWipeCanceled undocumented
+ ManagementStateVWipeCanceled ManagementState = "wipeCanceled"
+ // ManagementStateVRetireCanceled undocumented
+ ManagementStateVRetireCanceled ManagementState = "retireCanceled"
+ // ManagementStateVDiscovered undocumented
+ ManagementStateVDiscovered ManagementState = "discovered"
+)
+
+var (
+ // ManagementStatePManaged is a pointer to ManagementStateVManaged
+ ManagementStatePManaged = &_ManagementStatePManaged
+ // ManagementStatePRetirePending is a pointer to ManagementStateVRetirePending
+ ManagementStatePRetirePending = &_ManagementStatePRetirePending
+ // ManagementStatePRetireFailed is a pointer to ManagementStateVRetireFailed
+ ManagementStatePRetireFailed = &_ManagementStatePRetireFailed
+ // ManagementStatePWipePending is a pointer to ManagementStateVWipePending
+ ManagementStatePWipePending = &_ManagementStatePWipePending
+ // ManagementStatePWipeFailed is a pointer to ManagementStateVWipeFailed
+ ManagementStatePWipeFailed = &_ManagementStatePWipeFailed
+ // ManagementStatePUnhealthy is a pointer to ManagementStateVUnhealthy
+ ManagementStatePUnhealthy = &_ManagementStatePUnhealthy
+ // ManagementStatePDeletePending is a pointer to ManagementStateVDeletePending
+ ManagementStatePDeletePending = &_ManagementStatePDeletePending
+ // ManagementStatePRetireIssued is a pointer to ManagementStateVRetireIssued
+ ManagementStatePRetireIssued = &_ManagementStatePRetireIssued
+ // ManagementStatePWipeIssued is a pointer to ManagementStateVWipeIssued
+ ManagementStatePWipeIssued = &_ManagementStatePWipeIssued
+ // ManagementStatePWipeCanceled is a pointer to ManagementStateVWipeCanceled
+ ManagementStatePWipeCanceled = &_ManagementStatePWipeCanceled
+ // ManagementStatePRetireCanceled is a pointer to ManagementStateVRetireCanceled
+ ManagementStatePRetireCanceled = &_ManagementStatePRetireCanceled
+ // ManagementStatePDiscovered is a pointer to ManagementStateVDiscovered
+ ManagementStatePDiscovered = &_ManagementStatePDiscovered
+)
+
+var (
+ _ManagementStatePManaged = ManagementStateVManaged
+ _ManagementStatePRetirePending = ManagementStateVRetirePending
+ _ManagementStatePRetireFailed = ManagementStateVRetireFailed
+ _ManagementStatePWipePending = ManagementStateVWipePending
+ _ManagementStatePWipeFailed = ManagementStateVWipeFailed
+ _ManagementStatePUnhealthy = ManagementStateVUnhealthy
+ _ManagementStatePDeletePending = ManagementStateVDeletePending
+ _ManagementStatePRetireIssued = ManagementStateVRetireIssued
+ _ManagementStatePWipeIssued = ManagementStateVWipeIssued
+ _ManagementStatePWipeCanceled = ManagementStateVWipeCanceled
+ _ManagementStatePRetireCanceled = ManagementStateVRetireCanceled
+ _ManagementStatePDiscovered = ManagementStateVDiscovered
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMedia.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMedia.go
new file mode 100644
index 00000000..c644623c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMedia.go
@@ -0,0 +1,62 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaDirection undocumented
+type MediaDirection string
+
+const (
+ // MediaDirectionVInactive undocumented
+ MediaDirectionVInactive MediaDirection = "inactive"
+ // MediaDirectionVSendOnly undocumented
+ MediaDirectionVSendOnly MediaDirection = "sendOnly"
+ // MediaDirectionVReceiveOnly undocumented
+ MediaDirectionVReceiveOnly MediaDirection = "receiveOnly"
+ // MediaDirectionVSendReceive undocumented
+ MediaDirectionVSendReceive MediaDirection = "sendReceive"
+)
+
+var (
+ // MediaDirectionPInactive is a pointer to MediaDirectionVInactive
+ MediaDirectionPInactive = &_MediaDirectionPInactive
+ // MediaDirectionPSendOnly is a pointer to MediaDirectionVSendOnly
+ MediaDirectionPSendOnly = &_MediaDirectionPSendOnly
+ // MediaDirectionPReceiveOnly is a pointer to MediaDirectionVReceiveOnly
+ MediaDirectionPReceiveOnly = &_MediaDirectionPReceiveOnly
+ // MediaDirectionPSendReceive is a pointer to MediaDirectionVSendReceive
+ MediaDirectionPSendReceive = &_MediaDirectionPSendReceive
+)
+
+var (
+ _MediaDirectionPInactive = MediaDirectionVInactive
+ _MediaDirectionPSendOnly = MediaDirectionVSendOnly
+ _MediaDirectionPReceiveOnly = MediaDirectionVReceiveOnly
+ _MediaDirectionPSendReceive = MediaDirectionVSendReceive
+)
+
+// MediaState undocumented
+type MediaState string
+
+const (
+ // MediaStateVActive undocumented
+ MediaStateVActive MediaState = "active"
+ // MediaStateVInactive undocumented
+ MediaStateVInactive MediaState = "inactive"
+ // MediaStateVUnknownFutureValue undocumented
+ MediaStateVUnknownFutureValue MediaState = "unknownFutureValue"
+)
+
+var (
+ // MediaStatePActive is a pointer to MediaStateVActive
+ MediaStatePActive = &_MediaStatePActive
+ // MediaStatePInactive is a pointer to MediaStateVInactive
+ MediaStatePInactive = &_MediaStatePInactive
+ // MediaStatePUnknownFutureValue is a pointer to MediaStateVUnknownFutureValue
+ MediaStatePUnknownFutureValue = &_MediaStatePUnknownFutureValue
+)
+
+var (
+ _MediaStatePActive = MediaStateVActive
+ _MediaStatePInactive = MediaStateVInactive
+ _MediaStatePUnknownFutureValue = MediaStateVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMeeting.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMeeting.go
new file mode 100644
index 00000000..11c84546
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMeeting.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingCapabilities undocumented
+type MeetingCapabilities string
+
+const (
+ // MeetingCapabilitiesVQuestionAndAnswer undocumented
+ MeetingCapabilitiesVQuestionAndAnswer MeetingCapabilities = "questionAndAnswer"
+ // MeetingCapabilitiesVUnknownFutureValue undocumented
+ MeetingCapabilitiesVUnknownFutureValue MeetingCapabilities = "unknownFutureValue"
+)
+
+var (
+ // MeetingCapabilitiesPQuestionAndAnswer is a pointer to MeetingCapabilitiesVQuestionAndAnswer
+ MeetingCapabilitiesPQuestionAndAnswer = &_MeetingCapabilitiesPQuestionAndAnswer
+ // MeetingCapabilitiesPUnknownFutureValue is a pointer to MeetingCapabilitiesVUnknownFutureValue
+ MeetingCapabilitiesPUnknownFutureValue = &_MeetingCapabilitiesPUnknownFutureValue
+)
+
+var (
+ _MeetingCapabilitiesPQuestionAndAnswer = MeetingCapabilitiesVQuestionAndAnswer
+ _MeetingCapabilitiesPUnknownFutureValue = MeetingCapabilitiesVUnknownFutureValue
+)
+
+// MeetingMessageType undocumented
+type MeetingMessageType string
+
+const (
+ // MeetingMessageTypeVNone undocumented
+ MeetingMessageTypeVNone MeetingMessageType = "none"
+ // MeetingMessageTypeVMeetingRequest undocumented
+ MeetingMessageTypeVMeetingRequest MeetingMessageType = "meetingRequest"
+ // MeetingMessageTypeVMeetingCancelled undocumented
+ MeetingMessageTypeVMeetingCancelled MeetingMessageType = "meetingCancelled"
+ // MeetingMessageTypeVMeetingAccepted undocumented
+ MeetingMessageTypeVMeetingAccepted MeetingMessageType = "meetingAccepted"
+ // MeetingMessageTypeVMeetingTentativelyAccepted undocumented
+ MeetingMessageTypeVMeetingTentativelyAccepted MeetingMessageType = "meetingTentativelyAccepted"
+ // MeetingMessageTypeVMeetingDeclined undocumented
+ MeetingMessageTypeVMeetingDeclined MeetingMessageType = "meetingDeclined"
+)
+
+var (
+ // MeetingMessageTypePNone is a pointer to MeetingMessageTypeVNone
+ MeetingMessageTypePNone = &_MeetingMessageTypePNone
+ // MeetingMessageTypePMeetingRequest is a pointer to MeetingMessageTypeVMeetingRequest
+ MeetingMessageTypePMeetingRequest = &_MeetingMessageTypePMeetingRequest
+ // MeetingMessageTypePMeetingCancelled is a pointer to MeetingMessageTypeVMeetingCancelled
+ MeetingMessageTypePMeetingCancelled = &_MeetingMessageTypePMeetingCancelled
+ // MeetingMessageTypePMeetingAccepted is a pointer to MeetingMessageTypeVMeetingAccepted
+ MeetingMessageTypePMeetingAccepted = &_MeetingMessageTypePMeetingAccepted
+ // MeetingMessageTypePMeetingTentativelyAccepted is a pointer to MeetingMessageTypeVMeetingTentativelyAccepted
+ MeetingMessageTypePMeetingTentativelyAccepted = &_MeetingMessageTypePMeetingTentativelyAccepted
+ // MeetingMessageTypePMeetingDeclined is a pointer to MeetingMessageTypeVMeetingDeclined
+ MeetingMessageTypePMeetingDeclined = &_MeetingMessageTypePMeetingDeclined
+)
+
+var (
+ _MeetingMessageTypePNone = MeetingMessageTypeVNone
+ _MeetingMessageTypePMeetingRequest = MeetingMessageTypeVMeetingRequest
+ _MeetingMessageTypePMeetingCancelled = MeetingMessageTypeVMeetingCancelled
+ _MeetingMessageTypePMeetingAccepted = MeetingMessageTypeVMeetingAccepted
+ _MeetingMessageTypePMeetingTentativelyAccepted = MeetingMessageTypeVMeetingTentativelyAccepted
+ _MeetingMessageTypePMeetingDeclined = MeetingMessageTypeVMeetingDeclined
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMessage.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMessage.go
new file mode 100644
index 00000000..16f1808a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMessage.go
@@ -0,0 +1,70 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MessageActionFlag undocumented
+type MessageActionFlag string
+
+const (
+ // MessageActionFlagVAny undocumented
+ MessageActionFlagVAny MessageActionFlag = "any"
+ // MessageActionFlagVCall undocumented
+ MessageActionFlagVCall MessageActionFlag = "call"
+ // MessageActionFlagVDoNotForward undocumented
+ MessageActionFlagVDoNotForward MessageActionFlag = "doNotForward"
+ // MessageActionFlagVFollowUp undocumented
+ MessageActionFlagVFollowUp MessageActionFlag = "followUp"
+ // MessageActionFlagVFyi undocumented
+ MessageActionFlagVFyi MessageActionFlag = "fyi"
+ // MessageActionFlagVForward undocumented
+ MessageActionFlagVForward MessageActionFlag = "forward"
+ // MessageActionFlagVNoResponseNecessary undocumented
+ MessageActionFlagVNoResponseNecessary MessageActionFlag = "noResponseNecessary"
+ // MessageActionFlagVRead undocumented
+ MessageActionFlagVRead MessageActionFlag = "read"
+ // MessageActionFlagVReply undocumented
+ MessageActionFlagVReply MessageActionFlag = "reply"
+ // MessageActionFlagVReplyToAll undocumented
+ MessageActionFlagVReplyToAll MessageActionFlag = "replyToAll"
+ // MessageActionFlagVReview undocumented
+ MessageActionFlagVReview MessageActionFlag = "review"
+)
+
+var (
+ // MessageActionFlagPAny is a pointer to MessageActionFlagVAny
+ MessageActionFlagPAny = &_MessageActionFlagPAny
+ // MessageActionFlagPCall is a pointer to MessageActionFlagVCall
+ MessageActionFlagPCall = &_MessageActionFlagPCall
+ // MessageActionFlagPDoNotForward is a pointer to MessageActionFlagVDoNotForward
+ MessageActionFlagPDoNotForward = &_MessageActionFlagPDoNotForward
+ // MessageActionFlagPFollowUp is a pointer to MessageActionFlagVFollowUp
+ MessageActionFlagPFollowUp = &_MessageActionFlagPFollowUp
+ // MessageActionFlagPFyi is a pointer to MessageActionFlagVFyi
+ MessageActionFlagPFyi = &_MessageActionFlagPFyi
+ // MessageActionFlagPForward is a pointer to MessageActionFlagVForward
+ MessageActionFlagPForward = &_MessageActionFlagPForward
+ // MessageActionFlagPNoResponseNecessary is a pointer to MessageActionFlagVNoResponseNecessary
+ MessageActionFlagPNoResponseNecessary = &_MessageActionFlagPNoResponseNecessary
+ // MessageActionFlagPRead is a pointer to MessageActionFlagVRead
+ MessageActionFlagPRead = &_MessageActionFlagPRead
+ // MessageActionFlagPReply is a pointer to MessageActionFlagVReply
+ MessageActionFlagPReply = &_MessageActionFlagPReply
+ // MessageActionFlagPReplyToAll is a pointer to MessageActionFlagVReplyToAll
+ MessageActionFlagPReplyToAll = &_MessageActionFlagPReplyToAll
+ // MessageActionFlagPReview is a pointer to MessageActionFlagVReview
+ MessageActionFlagPReview = &_MessageActionFlagPReview
+)
+
+var (
+ _MessageActionFlagPAny = MessageActionFlagVAny
+ _MessageActionFlagPCall = MessageActionFlagVCall
+ _MessageActionFlagPDoNotForward = MessageActionFlagVDoNotForward
+ _MessageActionFlagPFollowUp = MessageActionFlagVFollowUp
+ _MessageActionFlagPFyi = MessageActionFlagVFyi
+ _MessageActionFlagPForward = MessageActionFlagVForward
+ _MessageActionFlagPNoResponseNecessary = MessageActionFlagVNoResponseNecessary
+ _MessageActionFlagPRead = MessageActionFlagVRead
+ _MessageActionFlagPReply = MessageActionFlagVReply
+ _MessageActionFlagPReplyToAll = MessageActionFlagVReplyToAll
+ _MessageActionFlagPReview = MessageActionFlagVReview
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMetered.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMetered.go
new file mode 100644
index 00000000..3febbbea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMetered.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeteredConnectionLimitType undocumented
+type MeteredConnectionLimitType string
+
+const (
+ // MeteredConnectionLimitTypeVUnrestricted undocumented
+ MeteredConnectionLimitTypeVUnrestricted MeteredConnectionLimitType = "unrestricted"
+ // MeteredConnectionLimitTypeVFixed undocumented
+ MeteredConnectionLimitTypeVFixed MeteredConnectionLimitType = "fixed"
+ // MeteredConnectionLimitTypeVVariable undocumented
+ MeteredConnectionLimitTypeVVariable MeteredConnectionLimitType = "variable"
+)
+
+var (
+ // MeteredConnectionLimitTypePUnrestricted is a pointer to MeteredConnectionLimitTypeVUnrestricted
+ MeteredConnectionLimitTypePUnrestricted = &_MeteredConnectionLimitTypePUnrestricted
+ // MeteredConnectionLimitTypePFixed is a pointer to MeteredConnectionLimitTypeVFixed
+ MeteredConnectionLimitTypePFixed = &_MeteredConnectionLimitTypePFixed
+ // MeteredConnectionLimitTypePVariable is a pointer to MeteredConnectionLimitTypeVVariable
+ MeteredConnectionLimitTypePVariable = &_MeteredConnectionLimitTypePVariable
+)
+
+var (
+ _MeteredConnectionLimitTypePUnrestricted = MeteredConnectionLimitTypeVUnrestricted
+ _MeteredConnectionLimitTypePFixed = MeteredConnectionLimitTypeVFixed
+ _MeteredConnectionLimitTypePVariable = MeteredConnectionLimitTypeVVariable
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMicrosoft.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMicrosoft.go
new file mode 100644
index 00000000..7ea97e61
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMicrosoft.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftEdgeChannel undocumented
+type MicrosoftEdgeChannel string
+
+const (
+ // MicrosoftEdgeChannelVDev undocumented
+ MicrosoftEdgeChannelVDev MicrosoftEdgeChannel = "dev"
+ // MicrosoftEdgeChannelVBeta undocumented
+ MicrosoftEdgeChannelVBeta MicrosoftEdgeChannel = "beta"
+ // MicrosoftEdgeChannelVStable undocumented
+ MicrosoftEdgeChannelVStable MicrosoftEdgeChannel = "stable"
+)
+
+var (
+ // MicrosoftEdgeChannelPDev is a pointer to MicrosoftEdgeChannelVDev
+ MicrosoftEdgeChannelPDev = &_MicrosoftEdgeChannelPDev
+ // MicrosoftEdgeChannelPBeta is a pointer to MicrosoftEdgeChannelVBeta
+ MicrosoftEdgeChannelPBeta = &_MicrosoftEdgeChannelPBeta
+ // MicrosoftEdgeChannelPStable is a pointer to MicrosoftEdgeChannelVStable
+ MicrosoftEdgeChannelPStable = &_MicrosoftEdgeChannelPStable
+)
+
+var (
+ _MicrosoftEdgeChannelPDev = MicrosoftEdgeChannelVDev
+ _MicrosoftEdgeChannelPBeta = MicrosoftEdgeChannelVBeta
+ _MicrosoftEdgeChannelPStable = MicrosoftEdgeChannelVStable
+)
+
+// MicrosoftStoreForBusinessLicenseType undocumented
+type MicrosoftStoreForBusinessLicenseType string
+
+const (
+ // MicrosoftStoreForBusinessLicenseTypeVOffline undocumented
+ MicrosoftStoreForBusinessLicenseTypeVOffline MicrosoftStoreForBusinessLicenseType = "offline"
+ // MicrosoftStoreForBusinessLicenseTypeVOnline undocumented
+ MicrosoftStoreForBusinessLicenseTypeVOnline MicrosoftStoreForBusinessLicenseType = "online"
+)
+
+var (
+ // MicrosoftStoreForBusinessLicenseTypePOffline is a pointer to MicrosoftStoreForBusinessLicenseTypeVOffline
+ MicrosoftStoreForBusinessLicenseTypePOffline = &_MicrosoftStoreForBusinessLicenseTypePOffline
+ // MicrosoftStoreForBusinessLicenseTypePOnline is a pointer to MicrosoftStoreForBusinessLicenseTypeVOnline
+ MicrosoftStoreForBusinessLicenseTypePOnline = &_MicrosoftStoreForBusinessLicenseTypePOnline
+)
+
+var (
+ _MicrosoftStoreForBusinessLicenseTypePOffline = MicrosoftStoreForBusinessLicenseTypeVOffline
+ _MicrosoftStoreForBusinessLicenseTypePOnline = MicrosoftStoreForBusinessLicenseTypeVOnline
+)
+
+// MicrosoftStoreForBusinessPortalSelectionOptions undocumented
+type MicrosoftStoreForBusinessPortalSelectionOptions string
+
+const (
+ // MicrosoftStoreForBusinessPortalSelectionOptionsVNone undocumented
+ MicrosoftStoreForBusinessPortalSelectionOptionsVNone MicrosoftStoreForBusinessPortalSelectionOptions = "none"
+ // MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal undocumented
+ MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal MicrosoftStoreForBusinessPortalSelectionOptions = "companyPortal"
+ // MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore undocumented
+ MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore MicrosoftStoreForBusinessPortalSelectionOptions = "privateStore"
+)
+
+var (
+ // MicrosoftStoreForBusinessPortalSelectionOptionsPNone is a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVNone
+ MicrosoftStoreForBusinessPortalSelectionOptionsPNone = &_MicrosoftStoreForBusinessPortalSelectionOptionsPNone
+ // MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal is a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal
+ MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal = &_MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal
+ // MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore is a pointer to MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore
+ MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore = &_MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore
+)
+
+var (
+ _MicrosoftStoreForBusinessPortalSelectionOptionsPNone = MicrosoftStoreForBusinessPortalSelectionOptionsVNone
+ _MicrosoftStoreForBusinessPortalSelectionOptionsPCompanyPortal = MicrosoftStoreForBusinessPortalSelectionOptionsVCompanyPortal
+ _MicrosoftStoreForBusinessPortalSelectionOptionsPPrivateStore = MicrosoftStoreForBusinessPortalSelectionOptionsVPrivateStore
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMigration.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMigration.go
new file mode 100644
index 00000000..de09954b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMigration.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MigrationStatus undocumented
+type MigrationStatus string
+
+const (
+ // MigrationStatusVReady undocumented
+ MigrationStatusVReady MigrationStatus = "ready"
+ // MigrationStatusVNeedsReview undocumented
+ MigrationStatusVNeedsReview MigrationStatus = "needsReview"
+ // MigrationStatusVAdditionalStepsRequired undocumented
+ MigrationStatusVAdditionalStepsRequired MigrationStatus = "additionalStepsRequired"
+ // MigrationStatusVUnknownFutureValue undocumented
+ MigrationStatusVUnknownFutureValue MigrationStatus = "unknownFutureValue"
+)
+
+var (
+ // MigrationStatusPReady is a pointer to MigrationStatusVReady
+ MigrationStatusPReady = &_MigrationStatusPReady
+ // MigrationStatusPNeedsReview is a pointer to MigrationStatusVNeedsReview
+ MigrationStatusPNeedsReview = &_MigrationStatusPNeedsReview
+ // MigrationStatusPAdditionalStepsRequired is a pointer to MigrationStatusVAdditionalStepsRequired
+ MigrationStatusPAdditionalStepsRequired = &_MigrationStatusPAdditionalStepsRequired
+ // MigrationStatusPUnknownFutureValue is a pointer to MigrationStatusVUnknownFutureValue
+ MigrationStatusPUnknownFutureValue = &_MigrationStatusPUnknownFutureValue
+)
+
+var (
+ _MigrationStatusPReady = MigrationStatusVReady
+ _MigrationStatusPNeedsReview = MigrationStatusVNeedsReview
+ _MigrationStatusPAdditionalStepsRequired = MigrationStatusVAdditionalStepsRequired
+ _MigrationStatusPUnknownFutureValue = MigrationStatusVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMiracast.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMiracast.go
new file mode 100644
index 00000000..7b30ef77
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMiracast.go
@@ -0,0 +1,120 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MiracastChannel undocumented
+type MiracastChannel string
+
+const (
+ // MiracastChannelVUserDefined undocumented
+ MiracastChannelVUserDefined MiracastChannel = "userDefined"
+ // MiracastChannelVOne undocumented
+ MiracastChannelVOne MiracastChannel = "one"
+ // MiracastChannelVTwo undocumented
+ MiracastChannelVTwo MiracastChannel = "two"
+ // MiracastChannelVThree undocumented
+ MiracastChannelVThree MiracastChannel = "three"
+ // MiracastChannelVFour undocumented
+ MiracastChannelVFour MiracastChannel = "four"
+ // MiracastChannelVFive undocumented
+ MiracastChannelVFive MiracastChannel = "five"
+ // MiracastChannelVSix undocumented
+ MiracastChannelVSix MiracastChannel = "six"
+ // MiracastChannelVSeven undocumented
+ MiracastChannelVSeven MiracastChannel = "seven"
+ // MiracastChannelVEight undocumented
+ MiracastChannelVEight MiracastChannel = "eight"
+ // MiracastChannelVNine undocumented
+ MiracastChannelVNine MiracastChannel = "nine"
+ // MiracastChannelVTen undocumented
+ MiracastChannelVTen MiracastChannel = "ten"
+ // MiracastChannelVEleven undocumented
+ MiracastChannelVEleven MiracastChannel = "eleven"
+ // MiracastChannelVThirtySix undocumented
+ MiracastChannelVThirtySix MiracastChannel = "thirtySix"
+ // MiracastChannelVForty undocumented
+ MiracastChannelVForty MiracastChannel = "forty"
+ // MiracastChannelVFortyFour undocumented
+ MiracastChannelVFortyFour MiracastChannel = "fortyFour"
+ // MiracastChannelVFortyEight undocumented
+ MiracastChannelVFortyEight MiracastChannel = "fortyEight"
+ // MiracastChannelVOneHundredFortyNine undocumented
+ MiracastChannelVOneHundredFortyNine MiracastChannel = "oneHundredFortyNine"
+ // MiracastChannelVOneHundredFiftyThree undocumented
+ MiracastChannelVOneHundredFiftyThree MiracastChannel = "oneHundredFiftyThree"
+ // MiracastChannelVOneHundredFiftySeven undocumented
+ MiracastChannelVOneHundredFiftySeven MiracastChannel = "oneHundredFiftySeven"
+ // MiracastChannelVOneHundredSixtyOne undocumented
+ MiracastChannelVOneHundredSixtyOne MiracastChannel = "oneHundredSixtyOne"
+ // MiracastChannelVOneHundredSixtyFive undocumented
+ MiracastChannelVOneHundredSixtyFive MiracastChannel = "oneHundredSixtyFive"
+)
+
+var (
+ // MiracastChannelPUserDefined is a pointer to MiracastChannelVUserDefined
+ MiracastChannelPUserDefined = &_MiracastChannelPUserDefined
+ // MiracastChannelPOne is a pointer to MiracastChannelVOne
+ MiracastChannelPOne = &_MiracastChannelPOne
+ // MiracastChannelPTwo is a pointer to MiracastChannelVTwo
+ MiracastChannelPTwo = &_MiracastChannelPTwo
+ // MiracastChannelPThree is a pointer to MiracastChannelVThree
+ MiracastChannelPThree = &_MiracastChannelPThree
+ // MiracastChannelPFour is a pointer to MiracastChannelVFour
+ MiracastChannelPFour = &_MiracastChannelPFour
+ // MiracastChannelPFive is a pointer to MiracastChannelVFive
+ MiracastChannelPFive = &_MiracastChannelPFive
+ // MiracastChannelPSix is a pointer to MiracastChannelVSix
+ MiracastChannelPSix = &_MiracastChannelPSix
+ // MiracastChannelPSeven is a pointer to MiracastChannelVSeven
+ MiracastChannelPSeven = &_MiracastChannelPSeven
+ // MiracastChannelPEight is a pointer to MiracastChannelVEight
+ MiracastChannelPEight = &_MiracastChannelPEight
+ // MiracastChannelPNine is a pointer to MiracastChannelVNine
+ MiracastChannelPNine = &_MiracastChannelPNine
+ // MiracastChannelPTen is a pointer to MiracastChannelVTen
+ MiracastChannelPTen = &_MiracastChannelPTen
+ // MiracastChannelPEleven is a pointer to MiracastChannelVEleven
+ MiracastChannelPEleven = &_MiracastChannelPEleven
+ // MiracastChannelPThirtySix is a pointer to MiracastChannelVThirtySix
+ MiracastChannelPThirtySix = &_MiracastChannelPThirtySix
+ // MiracastChannelPForty is a pointer to MiracastChannelVForty
+ MiracastChannelPForty = &_MiracastChannelPForty
+ // MiracastChannelPFortyFour is a pointer to MiracastChannelVFortyFour
+ MiracastChannelPFortyFour = &_MiracastChannelPFortyFour
+ // MiracastChannelPFortyEight is a pointer to MiracastChannelVFortyEight
+ MiracastChannelPFortyEight = &_MiracastChannelPFortyEight
+ // MiracastChannelPOneHundredFortyNine is a pointer to MiracastChannelVOneHundredFortyNine
+ MiracastChannelPOneHundredFortyNine = &_MiracastChannelPOneHundredFortyNine
+ // MiracastChannelPOneHundredFiftyThree is a pointer to MiracastChannelVOneHundredFiftyThree
+ MiracastChannelPOneHundredFiftyThree = &_MiracastChannelPOneHundredFiftyThree
+ // MiracastChannelPOneHundredFiftySeven is a pointer to MiracastChannelVOneHundredFiftySeven
+ MiracastChannelPOneHundredFiftySeven = &_MiracastChannelPOneHundredFiftySeven
+ // MiracastChannelPOneHundredSixtyOne is a pointer to MiracastChannelVOneHundredSixtyOne
+ MiracastChannelPOneHundredSixtyOne = &_MiracastChannelPOneHundredSixtyOne
+ // MiracastChannelPOneHundredSixtyFive is a pointer to MiracastChannelVOneHundredSixtyFive
+ MiracastChannelPOneHundredSixtyFive = &_MiracastChannelPOneHundredSixtyFive
+)
+
+var (
+ _MiracastChannelPUserDefined = MiracastChannelVUserDefined
+ _MiracastChannelPOne = MiracastChannelVOne
+ _MiracastChannelPTwo = MiracastChannelVTwo
+ _MiracastChannelPThree = MiracastChannelVThree
+ _MiracastChannelPFour = MiracastChannelVFour
+ _MiracastChannelPFive = MiracastChannelVFive
+ _MiracastChannelPSix = MiracastChannelVSix
+ _MiracastChannelPSeven = MiracastChannelVSeven
+ _MiracastChannelPEight = MiracastChannelVEight
+ _MiracastChannelPNine = MiracastChannelVNine
+ _MiracastChannelPTen = MiracastChannelVTen
+ _MiracastChannelPEleven = MiracastChannelVEleven
+ _MiracastChannelPThirtySix = MiracastChannelVThirtySix
+ _MiracastChannelPForty = MiracastChannelVForty
+ _MiracastChannelPFortyFour = MiracastChannelVFortyFour
+ _MiracastChannelPFortyEight = MiracastChannelVFortyEight
+ _MiracastChannelPOneHundredFortyNine = MiracastChannelVOneHundredFortyNine
+ _MiracastChannelPOneHundredFiftyThree = MiracastChannelVOneHundredFiftyThree
+ _MiracastChannelPOneHundredFiftySeven = MiracastChannelVOneHundredFiftySeven
+ _MiracastChannelPOneHundredSixtyOne = MiracastChannelVOneHundredSixtyOne
+ _MiracastChannelPOneHundredSixtyFive = MiracastChannelVOneHundredSixtyFive
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMobile.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMobile.go
new file mode 100644
index 00000000..60e16798
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMobile.go
@@ -0,0 +1,260 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MobileAppActionType undocumented
+type MobileAppActionType string
+
+const (
+ // MobileAppActionTypeVUnknown undocumented
+ MobileAppActionTypeVUnknown MobileAppActionType = "unknown"
+ // MobileAppActionTypeVInstallCommandSent undocumented
+ MobileAppActionTypeVInstallCommandSent MobileAppActionType = "installCommandSent"
+ // MobileAppActionTypeVInstalled undocumented
+ MobileAppActionTypeVInstalled MobileAppActionType = "installed"
+ // MobileAppActionTypeVUninstalled undocumented
+ MobileAppActionTypeVUninstalled MobileAppActionType = "uninstalled"
+ // MobileAppActionTypeVUserRequestedInstall undocumented
+ MobileAppActionTypeVUserRequestedInstall MobileAppActionType = "userRequestedInstall"
+)
+
+var (
+ // MobileAppActionTypePUnknown is a pointer to MobileAppActionTypeVUnknown
+ MobileAppActionTypePUnknown = &_MobileAppActionTypePUnknown
+ // MobileAppActionTypePInstallCommandSent is a pointer to MobileAppActionTypeVInstallCommandSent
+ MobileAppActionTypePInstallCommandSent = &_MobileAppActionTypePInstallCommandSent
+ // MobileAppActionTypePInstalled is a pointer to MobileAppActionTypeVInstalled
+ MobileAppActionTypePInstalled = &_MobileAppActionTypePInstalled
+ // MobileAppActionTypePUninstalled is a pointer to MobileAppActionTypeVUninstalled
+ MobileAppActionTypePUninstalled = &_MobileAppActionTypePUninstalled
+ // MobileAppActionTypePUserRequestedInstall is a pointer to MobileAppActionTypeVUserRequestedInstall
+ MobileAppActionTypePUserRequestedInstall = &_MobileAppActionTypePUserRequestedInstall
+)
+
+var (
+ _MobileAppActionTypePUnknown = MobileAppActionTypeVUnknown
+ _MobileAppActionTypePInstallCommandSent = MobileAppActionTypeVInstallCommandSent
+ _MobileAppActionTypePInstalled = MobileAppActionTypeVInstalled
+ _MobileAppActionTypePUninstalled = MobileAppActionTypeVUninstalled
+ _MobileAppActionTypePUserRequestedInstall = MobileAppActionTypeVUserRequestedInstall
+)
+
+// MobileAppContentFileUploadState undocumented
+type MobileAppContentFileUploadState string
+
+const (
+ // MobileAppContentFileUploadStateVSuccess undocumented
+ MobileAppContentFileUploadStateVSuccess MobileAppContentFileUploadState = "success"
+ // MobileAppContentFileUploadStateVTransientError undocumented
+ MobileAppContentFileUploadStateVTransientError MobileAppContentFileUploadState = "transientError"
+ // MobileAppContentFileUploadStateVError undocumented
+ MobileAppContentFileUploadStateVError MobileAppContentFileUploadState = "error"
+ // MobileAppContentFileUploadStateVUnknown undocumented
+ MobileAppContentFileUploadStateVUnknown MobileAppContentFileUploadState = "unknown"
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess MobileAppContentFileUploadState = "azureStorageUriRequestSuccess"
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestPending undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestPending MobileAppContentFileUploadState = "azureStorageUriRequestPending"
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestFailed undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestFailed MobileAppContentFileUploadState = "azureStorageUriRequestFailed"
+ // MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut MobileAppContentFileUploadState = "azureStorageUriRequestTimedOut"
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess MobileAppContentFileUploadState = "azureStorageUriRenewalSuccess"
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalPending undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalPending MobileAppContentFileUploadState = "azureStorageUriRenewalPending"
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed MobileAppContentFileUploadState = "azureStorageUriRenewalFailed"
+ // MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut undocumented
+ MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut MobileAppContentFileUploadState = "azureStorageUriRenewalTimedOut"
+ // MobileAppContentFileUploadStateVCommitFileSuccess undocumented
+ MobileAppContentFileUploadStateVCommitFileSuccess MobileAppContentFileUploadState = "commitFileSuccess"
+ // MobileAppContentFileUploadStateVCommitFilePending undocumented
+ MobileAppContentFileUploadStateVCommitFilePending MobileAppContentFileUploadState = "commitFilePending"
+ // MobileAppContentFileUploadStateVCommitFileFailed undocumented
+ MobileAppContentFileUploadStateVCommitFileFailed MobileAppContentFileUploadState = "commitFileFailed"
+ // MobileAppContentFileUploadStateVCommitFileTimedOut undocumented
+ MobileAppContentFileUploadStateVCommitFileTimedOut MobileAppContentFileUploadState = "commitFileTimedOut"
+)
+
+var (
+ // MobileAppContentFileUploadStatePSuccess is a pointer to MobileAppContentFileUploadStateVSuccess
+ MobileAppContentFileUploadStatePSuccess = &_MobileAppContentFileUploadStatePSuccess
+ // MobileAppContentFileUploadStatePTransientError is a pointer to MobileAppContentFileUploadStateVTransientError
+ MobileAppContentFileUploadStatePTransientError = &_MobileAppContentFileUploadStatePTransientError
+ // MobileAppContentFileUploadStatePError is a pointer to MobileAppContentFileUploadStateVError
+ MobileAppContentFileUploadStatePError = &_MobileAppContentFileUploadStatePError
+ // MobileAppContentFileUploadStatePUnknown is a pointer to MobileAppContentFileUploadStateVUnknown
+ MobileAppContentFileUploadStatePUnknown = &_MobileAppContentFileUploadStatePUnknown
+ // MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess
+ MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess = &_MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess
+ // MobileAppContentFileUploadStatePAzureStorageURIRequestPending is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestPending
+ MobileAppContentFileUploadStatePAzureStorageURIRequestPending = &_MobileAppContentFileUploadStatePAzureStorageURIRequestPending
+ // MobileAppContentFileUploadStatePAzureStorageURIRequestFailed is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestFailed
+ MobileAppContentFileUploadStatePAzureStorageURIRequestFailed = &_MobileAppContentFileUploadStatePAzureStorageURIRequestFailed
+ // MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut
+ MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut = &_MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut
+ // MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess
+ MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess = &_MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess
+ // MobileAppContentFileUploadStatePAzureStorageURIRenewalPending is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalPending
+ MobileAppContentFileUploadStatePAzureStorageURIRenewalPending = &_MobileAppContentFileUploadStatePAzureStorageURIRenewalPending
+ // MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed
+ MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed = &_MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed
+ // MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut is a pointer to MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut
+ MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut = &_MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut
+ // MobileAppContentFileUploadStatePCommitFileSuccess is a pointer to MobileAppContentFileUploadStateVCommitFileSuccess
+ MobileAppContentFileUploadStatePCommitFileSuccess = &_MobileAppContentFileUploadStatePCommitFileSuccess
+ // MobileAppContentFileUploadStatePCommitFilePending is a pointer to MobileAppContentFileUploadStateVCommitFilePending
+ MobileAppContentFileUploadStatePCommitFilePending = &_MobileAppContentFileUploadStatePCommitFilePending
+ // MobileAppContentFileUploadStatePCommitFileFailed is a pointer to MobileAppContentFileUploadStateVCommitFileFailed
+ MobileAppContentFileUploadStatePCommitFileFailed = &_MobileAppContentFileUploadStatePCommitFileFailed
+ // MobileAppContentFileUploadStatePCommitFileTimedOut is a pointer to MobileAppContentFileUploadStateVCommitFileTimedOut
+ MobileAppContentFileUploadStatePCommitFileTimedOut = &_MobileAppContentFileUploadStatePCommitFileTimedOut
+)
+
+var (
+ _MobileAppContentFileUploadStatePSuccess = MobileAppContentFileUploadStateVSuccess
+ _MobileAppContentFileUploadStatePTransientError = MobileAppContentFileUploadStateVTransientError
+ _MobileAppContentFileUploadStatePError = MobileAppContentFileUploadStateVError
+ _MobileAppContentFileUploadStatePUnknown = MobileAppContentFileUploadStateVUnknown
+ _MobileAppContentFileUploadStatePAzureStorageURIRequestSuccess = MobileAppContentFileUploadStateVAzureStorageURIRequestSuccess
+ _MobileAppContentFileUploadStatePAzureStorageURIRequestPending = MobileAppContentFileUploadStateVAzureStorageURIRequestPending
+ _MobileAppContentFileUploadStatePAzureStorageURIRequestFailed = MobileAppContentFileUploadStateVAzureStorageURIRequestFailed
+ _MobileAppContentFileUploadStatePAzureStorageURIRequestTimedOut = MobileAppContentFileUploadStateVAzureStorageURIRequestTimedOut
+ _MobileAppContentFileUploadStatePAzureStorageURIRenewalSuccess = MobileAppContentFileUploadStateVAzureStorageURIRenewalSuccess
+ _MobileAppContentFileUploadStatePAzureStorageURIRenewalPending = MobileAppContentFileUploadStateVAzureStorageURIRenewalPending
+ _MobileAppContentFileUploadStatePAzureStorageURIRenewalFailed = MobileAppContentFileUploadStateVAzureStorageURIRenewalFailed
+ _MobileAppContentFileUploadStatePAzureStorageURIRenewalTimedOut = MobileAppContentFileUploadStateVAzureStorageURIRenewalTimedOut
+ _MobileAppContentFileUploadStatePCommitFileSuccess = MobileAppContentFileUploadStateVCommitFileSuccess
+ _MobileAppContentFileUploadStatePCommitFilePending = MobileAppContentFileUploadStateVCommitFilePending
+ _MobileAppContentFileUploadStatePCommitFileFailed = MobileAppContentFileUploadStateVCommitFileFailed
+ _MobileAppContentFileUploadStatePCommitFileTimedOut = MobileAppContentFileUploadStateVCommitFileTimedOut
+)
+
+// MobileAppDependencyType undocumented
+type MobileAppDependencyType string
+
+const (
+ // MobileAppDependencyTypeVDetect undocumented
+ MobileAppDependencyTypeVDetect MobileAppDependencyType = "detect"
+ // MobileAppDependencyTypeVAutoInstall undocumented
+ MobileAppDependencyTypeVAutoInstall MobileAppDependencyType = "autoInstall"
+)
+
+var (
+ // MobileAppDependencyTypePDetect is a pointer to MobileAppDependencyTypeVDetect
+ MobileAppDependencyTypePDetect = &_MobileAppDependencyTypePDetect
+ // MobileAppDependencyTypePAutoInstall is a pointer to MobileAppDependencyTypeVAutoInstall
+ MobileAppDependencyTypePAutoInstall = &_MobileAppDependencyTypePAutoInstall
+)
+
+var (
+ _MobileAppDependencyTypePDetect = MobileAppDependencyTypeVDetect
+ _MobileAppDependencyTypePAutoInstall = MobileAppDependencyTypeVAutoInstall
+)
+
+// MobileAppIntent undocumented
+type MobileAppIntent string
+
+const (
+ // MobileAppIntentVAvailable undocumented
+ MobileAppIntentVAvailable MobileAppIntent = "available"
+ // MobileAppIntentVNotAvailable undocumented
+ MobileAppIntentVNotAvailable MobileAppIntent = "notAvailable"
+ // MobileAppIntentVRequiredInstall undocumented
+ MobileAppIntentVRequiredInstall MobileAppIntent = "requiredInstall"
+ // MobileAppIntentVRequiredUninstall undocumented
+ MobileAppIntentVRequiredUninstall MobileAppIntent = "requiredUninstall"
+ // MobileAppIntentVRequiredAndAvailableInstall undocumented
+ MobileAppIntentVRequiredAndAvailableInstall MobileAppIntent = "requiredAndAvailableInstall"
+ // MobileAppIntentVAvailableInstallWithoutEnrollment undocumented
+ MobileAppIntentVAvailableInstallWithoutEnrollment MobileAppIntent = "availableInstallWithoutEnrollment"
+ // MobileAppIntentVExclude undocumented
+ MobileAppIntentVExclude MobileAppIntent = "exclude"
+)
+
+var (
+ // MobileAppIntentPAvailable is a pointer to MobileAppIntentVAvailable
+ MobileAppIntentPAvailable = &_MobileAppIntentPAvailable
+ // MobileAppIntentPNotAvailable is a pointer to MobileAppIntentVNotAvailable
+ MobileAppIntentPNotAvailable = &_MobileAppIntentPNotAvailable
+ // MobileAppIntentPRequiredInstall is a pointer to MobileAppIntentVRequiredInstall
+ MobileAppIntentPRequiredInstall = &_MobileAppIntentPRequiredInstall
+ // MobileAppIntentPRequiredUninstall is a pointer to MobileAppIntentVRequiredUninstall
+ MobileAppIntentPRequiredUninstall = &_MobileAppIntentPRequiredUninstall
+ // MobileAppIntentPRequiredAndAvailableInstall is a pointer to MobileAppIntentVRequiredAndAvailableInstall
+ MobileAppIntentPRequiredAndAvailableInstall = &_MobileAppIntentPRequiredAndAvailableInstall
+ // MobileAppIntentPAvailableInstallWithoutEnrollment is a pointer to MobileAppIntentVAvailableInstallWithoutEnrollment
+ MobileAppIntentPAvailableInstallWithoutEnrollment = &_MobileAppIntentPAvailableInstallWithoutEnrollment
+ // MobileAppIntentPExclude is a pointer to MobileAppIntentVExclude
+ MobileAppIntentPExclude = &_MobileAppIntentPExclude
+)
+
+var (
+ _MobileAppIntentPAvailable = MobileAppIntentVAvailable
+ _MobileAppIntentPNotAvailable = MobileAppIntentVNotAvailable
+ _MobileAppIntentPRequiredInstall = MobileAppIntentVRequiredInstall
+ _MobileAppIntentPRequiredUninstall = MobileAppIntentVRequiredUninstall
+ _MobileAppIntentPRequiredAndAvailableInstall = MobileAppIntentVRequiredAndAvailableInstall
+ _MobileAppIntentPAvailableInstallWithoutEnrollment = MobileAppIntentVAvailableInstallWithoutEnrollment
+ _MobileAppIntentPExclude = MobileAppIntentVExclude
+)
+
+// MobileAppPublishingState undocumented
+type MobileAppPublishingState string
+
+const (
+ // MobileAppPublishingStateVNotPublished undocumented
+ MobileAppPublishingStateVNotPublished MobileAppPublishingState = "notPublished"
+ // MobileAppPublishingStateVProcessing undocumented
+ MobileAppPublishingStateVProcessing MobileAppPublishingState = "processing"
+ // MobileAppPublishingStateVPublished undocumented
+ MobileAppPublishingStateVPublished MobileAppPublishingState = "published"
+)
+
+var (
+ // MobileAppPublishingStatePNotPublished is a pointer to MobileAppPublishingStateVNotPublished
+ MobileAppPublishingStatePNotPublished = &_MobileAppPublishingStatePNotPublished
+ // MobileAppPublishingStatePProcessing is a pointer to MobileAppPublishingStateVProcessing
+ MobileAppPublishingStatePProcessing = &_MobileAppPublishingStatePProcessing
+ // MobileAppPublishingStatePPublished is a pointer to MobileAppPublishingStateVPublished
+ MobileAppPublishingStatePPublished = &_MobileAppPublishingStatePPublished
+)
+
+var (
+ _MobileAppPublishingStatePNotPublished = MobileAppPublishingStateVNotPublished
+ _MobileAppPublishingStatePProcessing = MobileAppPublishingStateVProcessing
+ _MobileAppPublishingStatePPublished = MobileAppPublishingStateVPublished
+)
+
+// MobileThreatPartnerTenantState undocumented
+type MobileThreatPartnerTenantState string
+
+const (
+ // MobileThreatPartnerTenantStateVUnavailable undocumented
+ MobileThreatPartnerTenantStateVUnavailable MobileThreatPartnerTenantState = "unavailable"
+ // MobileThreatPartnerTenantStateVAvailable undocumented
+ MobileThreatPartnerTenantStateVAvailable MobileThreatPartnerTenantState = "available"
+ // MobileThreatPartnerTenantStateVEnabled undocumented
+ MobileThreatPartnerTenantStateVEnabled MobileThreatPartnerTenantState = "enabled"
+ // MobileThreatPartnerTenantStateVUnresponsive undocumented
+ MobileThreatPartnerTenantStateVUnresponsive MobileThreatPartnerTenantState = "unresponsive"
+)
+
+var (
+ // MobileThreatPartnerTenantStatePUnavailable is a pointer to MobileThreatPartnerTenantStateVUnavailable
+ MobileThreatPartnerTenantStatePUnavailable = &_MobileThreatPartnerTenantStatePUnavailable
+ // MobileThreatPartnerTenantStatePAvailable is a pointer to MobileThreatPartnerTenantStateVAvailable
+ MobileThreatPartnerTenantStatePAvailable = &_MobileThreatPartnerTenantStatePAvailable
+ // MobileThreatPartnerTenantStatePEnabled is a pointer to MobileThreatPartnerTenantStateVEnabled
+ MobileThreatPartnerTenantStatePEnabled = &_MobileThreatPartnerTenantStatePEnabled
+ // MobileThreatPartnerTenantStatePUnresponsive is a pointer to MobileThreatPartnerTenantStateVUnresponsive
+ MobileThreatPartnerTenantStatePUnresponsive = &_MobileThreatPartnerTenantStatePUnresponsive
+)
+
+var (
+ _MobileThreatPartnerTenantStatePUnavailable = MobileThreatPartnerTenantStateVUnavailable
+ _MobileThreatPartnerTenantStatePAvailable = MobileThreatPartnerTenantStateVAvailable
+ _MobileThreatPartnerTenantStatePEnabled = MobileThreatPartnerTenantStateVEnabled
+ _MobileThreatPartnerTenantStatePUnresponsive = MobileThreatPartnerTenantStateVUnresponsive
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumModality.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumModality.go
new file mode 100644
index 00000000..2db69227
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumModality.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Modality undocumented
+type Modality string
+
+const (
+ // ModalityVUnknown undocumented
+ ModalityVUnknown Modality = "unknown"
+ // ModalityVAudio undocumented
+ ModalityVAudio Modality = "audio"
+ // ModalityVVideo undocumented
+ ModalityVVideo Modality = "video"
+ // ModalityVVideoBasedScreenSharing undocumented
+ ModalityVVideoBasedScreenSharing Modality = "videoBasedScreenSharing"
+ // ModalityVData undocumented
+ ModalityVData Modality = "data"
+ // ModalityVUnknownFutureValue undocumented
+ ModalityVUnknownFutureValue Modality = "unknownFutureValue"
+)
+
+var (
+ // ModalityPUnknown is a pointer to ModalityVUnknown
+ ModalityPUnknown = &_ModalityPUnknown
+ // ModalityPAudio is a pointer to ModalityVAudio
+ ModalityPAudio = &_ModalityPAudio
+ // ModalityPVideo is a pointer to ModalityVVideo
+ ModalityPVideo = &_ModalityPVideo
+ // ModalityPVideoBasedScreenSharing is a pointer to ModalityVVideoBasedScreenSharing
+ ModalityPVideoBasedScreenSharing = &_ModalityPVideoBasedScreenSharing
+ // ModalityPData is a pointer to ModalityVData
+ ModalityPData = &_ModalityPData
+ // ModalityPUnknownFutureValue is a pointer to ModalityVUnknownFutureValue
+ ModalityPUnknownFutureValue = &_ModalityPUnknownFutureValue
+)
+
+var (
+ _ModalityPUnknown = ModalityVUnknown
+ _ModalityPAudio = ModalityVAudio
+ _ModalityPVideo = ModalityVVideo
+ _ModalityPVideoBasedScreenSharing = ModalityVVideoBasedScreenSharing
+ _ModalityPData = ModalityVData
+ _ModalityPUnknownFutureValue = ModalityVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumMutability.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMutability.go
new file mode 100644
index 00000000..e9f91b25
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumMutability.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Mutability undocumented
+type Mutability string
+
+const (
+ // MutabilityVReadWrite undocumented
+ MutabilityVReadWrite Mutability = "ReadWrite"
+ // MutabilityVReadOnly undocumented
+ MutabilityVReadOnly Mutability = "ReadOnly"
+ // MutabilityVImmutable undocumented
+ MutabilityVImmutable Mutability = "Immutable"
+ // MutabilityVWriteOnly undocumented
+ MutabilityVWriteOnly Mutability = "WriteOnly"
+)
+
+var (
+ // MutabilityPReadWrite is a pointer to MutabilityVReadWrite
+ MutabilityPReadWrite = &_MutabilityPReadWrite
+ // MutabilityPReadOnly is a pointer to MutabilityVReadOnly
+ MutabilityPReadOnly = &_MutabilityPReadOnly
+ // MutabilityPImmutable is a pointer to MutabilityVImmutable
+ MutabilityPImmutable = &_MutabilityPImmutable
+ // MutabilityPWriteOnly is a pointer to MutabilityVWriteOnly
+ MutabilityPWriteOnly = &_MutabilityPWriteOnly
+)
+
+var (
+ _MutabilityPReadWrite = MutabilityVReadWrite
+ _MutabilityPReadOnly = MutabilityVReadOnly
+ _MutabilityPImmutable = MutabilityVImmutable
+ _MutabilityPWriteOnly = MutabilityVWriteOnly
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumNDES.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNDES.go
new file mode 100644
index 00000000..5f5daea3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNDES.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NDESConnectorState undocumented
+type NDESConnectorState string
+
+const (
+ // NDESConnectorStateVNone undocumented
+ NDESConnectorStateVNone NDESConnectorState = "none"
+ // NDESConnectorStateVActive undocumented
+ NDESConnectorStateVActive NDESConnectorState = "active"
+ // NDESConnectorStateVInactive undocumented
+ NDESConnectorStateVInactive NDESConnectorState = "inactive"
+)
+
+var (
+ // NDESConnectorStatePNone is a pointer to NDESConnectorStateVNone
+ NDESConnectorStatePNone = &_NDESConnectorStatePNone
+ // NDESConnectorStatePActive is a pointer to NDESConnectorStateVActive
+ NDESConnectorStatePActive = &_NDESConnectorStatePActive
+ // NDESConnectorStatePInactive is a pointer to NDESConnectorStateVInactive
+ NDESConnectorStatePInactive = &_NDESConnectorStatePInactive
+)
+
+var (
+ _NDESConnectorStatePNone = NDESConnectorStateVNone
+ _NDESConnectorStatePActive = NDESConnectorStateVActive
+ _NDESConnectorStatePInactive = NDESConnectorStateVInactive
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumNetwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNetwork.go
new file mode 100644
index 00000000..741b9f75
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNetwork.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NetworkSingleSignOnType undocumented
+type NetworkSingleSignOnType string
+
+const (
+ // NetworkSingleSignOnTypeVDisabled undocumented
+ NetworkSingleSignOnTypeVDisabled NetworkSingleSignOnType = "disabled"
+ // NetworkSingleSignOnTypeVPrelogon undocumented
+ NetworkSingleSignOnTypeVPrelogon NetworkSingleSignOnType = "prelogon"
+ // NetworkSingleSignOnTypeVPostlogon undocumented
+ NetworkSingleSignOnTypeVPostlogon NetworkSingleSignOnType = "postlogon"
+)
+
+var (
+ // NetworkSingleSignOnTypePDisabled is a pointer to NetworkSingleSignOnTypeVDisabled
+ NetworkSingleSignOnTypePDisabled = &_NetworkSingleSignOnTypePDisabled
+ // NetworkSingleSignOnTypePPrelogon is a pointer to NetworkSingleSignOnTypeVPrelogon
+ NetworkSingleSignOnTypePPrelogon = &_NetworkSingleSignOnTypePPrelogon
+ // NetworkSingleSignOnTypePPostlogon is a pointer to NetworkSingleSignOnTypeVPostlogon
+ NetworkSingleSignOnTypePPostlogon = &_NetworkSingleSignOnTypePPostlogon
+)
+
+var (
+ _NetworkSingleSignOnTypePDisabled = NetworkSingleSignOnTypeVDisabled
+ _NetworkSingleSignOnTypePPrelogon = NetworkSingleSignOnTypeVPrelogon
+ _NetworkSingleSignOnTypePPostlogon = NetworkSingleSignOnTypeVPostlogon
+)
+
+// NetworkType undocumented
+type NetworkType string
+
+const (
+ // NetworkTypeVIntranet undocumented
+ NetworkTypeVIntranet NetworkType = "intranet"
+ // NetworkTypeVExtranet undocumented
+ NetworkTypeVExtranet NetworkType = "extranet"
+ // NetworkTypeVNamedNetwork undocumented
+ NetworkTypeVNamedNetwork NetworkType = "namedNetwork"
+ // NetworkTypeVTrusted undocumented
+ NetworkTypeVTrusted NetworkType = "trusted"
+ // NetworkTypeVUnknownFutureValue undocumented
+ NetworkTypeVUnknownFutureValue NetworkType = "unknownFutureValue"
+)
+
+var (
+ // NetworkTypePIntranet is a pointer to NetworkTypeVIntranet
+ NetworkTypePIntranet = &_NetworkTypePIntranet
+ // NetworkTypePExtranet is a pointer to NetworkTypeVExtranet
+ NetworkTypePExtranet = &_NetworkTypePExtranet
+ // NetworkTypePNamedNetwork is a pointer to NetworkTypeVNamedNetwork
+ NetworkTypePNamedNetwork = &_NetworkTypePNamedNetwork
+ // NetworkTypePTrusted is a pointer to NetworkTypeVTrusted
+ NetworkTypePTrusted = &_NetworkTypePTrusted
+ // NetworkTypePUnknownFutureValue is a pointer to NetworkTypeVUnknownFutureValue
+ NetworkTypePUnknownFutureValue = &_NetworkTypePUnknownFutureValue
+)
+
+var (
+ _NetworkTypePIntranet = NetworkTypeVIntranet
+ _NetworkTypePExtranet = NetworkTypeVExtranet
+ _NetworkTypePNamedNetwork = NetworkTypeVNamedNetwork
+ _NetworkTypePTrusted = NetworkTypeVTrusted
+ _NetworkTypePUnknownFutureValue = NetworkTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumNon.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNon.go
new file mode 100644
index 00000000..fb8ce5cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNon.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NonEapAuthenticationMethodForEapTtlsType undocumented
+type NonEapAuthenticationMethodForEapTtlsType string
+
+const (
+ // NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword NonEapAuthenticationMethodForEapTtlsType = "unencryptedPassword"
+ // NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol NonEapAuthenticationMethodForEapTtlsType = "challengeHandshakeAuthenticationProtocol"
+ // NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap NonEapAuthenticationMethodForEapTtlsType = "microsoftChap"
+ // NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo undocumented
+ NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo NonEapAuthenticationMethodForEapTtlsType = "microsoftChapVersionTwo"
+)
+
+var (
+ // NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword is a pointer to NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword
+ NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword = &_NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword
+ // NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol is a pointer to NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol
+ NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol = &_NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol
+ // NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap is a pointer to NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap
+ NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap = &_NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap
+ // NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo is a pointer to NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo
+ NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo = &_NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo
+)
+
+var (
+ _NonEapAuthenticationMethodForEapTtlsTypePUnencryptedPassword = NonEapAuthenticationMethodForEapTtlsTypeVUnencryptedPassword
+ _NonEapAuthenticationMethodForEapTtlsTypePChallengeHandshakeAuthenticationProtocol = NonEapAuthenticationMethodForEapTtlsTypeVChallengeHandshakeAuthenticationProtocol
+ _NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChap = NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChap
+ _NonEapAuthenticationMethodForEapTtlsTypePMicrosoftChapVersionTwo = NonEapAuthenticationMethodForEapTtlsTypeVMicrosoftChapVersionTwo
+)
+
+// NonEapAuthenticationMethodForPeap undocumented
+type NonEapAuthenticationMethodForPeap string
+
+const (
+ // NonEapAuthenticationMethodForPeapVNone undocumented
+ NonEapAuthenticationMethodForPeapVNone NonEapAuthenticationMethodForPeap = "none"
+ // NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo undocumented
+ NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo NonEapAuthenticationMethodForPeap = "microsoftChapVersionTwo"
+)
+
+var (
+ // NonEapAuthenticationMethodForPeapPNone is a pointer to NonEapAuthenticationMethodForPeapVNone
+ NonEapAuthenticationMethodForPeapPNone = &_NonEapAuthenticationMethodForPeapPNone
+ // NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo is a pointer to NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo
+ NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo = &_NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo
+)
+
+var (
+ _NonEapAuthenticationMethodForPeapPNone = NonEapAuthenticationMethodForPeapVNone
+ _NonEapAuthenticationMethodForPeapPMicrosoftChapVersionTwo = NonEapAuthenticationMethodForPeapVMicrosoftChapVersionTwo
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumNotification.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNotification.go
new file mode 100644
index 00000000..4e652269
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumNotification.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NotificationTemplateBrandingOptions undocumented
+type NotificationTemplateBrandingOptions string
+
+const (
+ // NotificationTemplateBrandingOptionsVNone undocumented
+ NotificationTemplateBrandingOptionsVNone NotificationTemplateBrandingOptions = "none"
+ // NotificationTemplateBrandingOptionsVIncludeCompanyLogo undocumented
+ NotificationTemplateBrandingOptionsVIncludeCompanyLogo NotificationTemplateBrandingOptions = "includeCompanyLogo"
+ // NotificationTemplateBrandingOptionsVIncludeCompanyName undocumented
+ NotificationTemplateBrandingOptionsVIncludeCompanyName NotificationTemplateBrandingOptions = "includeCompanyName"
+ // NotificationTemplateBrandingOptionsVIncludeContactInformation undocumented
+ NotificationTemplateBrandingOptionsVIncludeContactInformation NotificationTemplateBrandingOptions = "includeContactInformation"
+)
+
+var (
+ // NotificationTemplateBrandingOptionsPNone is a pointer to NotificationTemplateBrandingOptionsVNone
+ NotificationTemplateBrandingOptionsPNone = &_NotificationTemplateBrandingOptionsPNone
+ // NotificationTemplateBrandingOptionsPIncludeCompanyLogo is a pointer to NotificationTemplateBrandingOptionsVIncludeCompanyLogo
+ NotificationTemplateBrandingOptionsPIncludeCompanyLogo = &_NotificationTemplateBrandingOptionsPIncludeCompanyLogo
+ // NotificationTemplateBrandingOptionsPIncludeCompanyName is a pointer to NotificationTemplateBrandingOptionsVIncludeCompanyName
+ NotificationTemplateBrandingOptionsPIncludeCompanyName = &_NotificationTemplateBrandingOptionsPIncludeCompanyName
+ // NotificationTemplateBrandingOptionsPIncludeContactInformation is a pointer to NotificationTemplateBrandingOptionsVIncludeContactInformation
+ NotificationTemplateBrandingOptionsPIncludeContactInformation = &_NotificationTemplateBrandingOptionsPIncludeContactInformation
+)
+
+var (
+ _NotificationTemplateBrandingOptionsPNone = NotificationTemplateBrandingOptionsVNone
+ _NotificationTemplateBrandingOptionsPIncludeCompanyLogo = NotificationTemplateBrandingOptionsVIncludeCompanyLogo
+ _NotificationTemplateBrandingOptionsPIncludeCompanyName = NotificationTemplateBrandingOptionsVIncludeCompanyName
+ _NotificationTemplateBrandingOptionsPIncludeContactInformation = NotificationTemplateBrandingOptionsVIncludeContactInformation
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumObject.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumObject.go
new file mode 100644
index 00000000..d85f02f8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumObject.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ObjectFlowTypes undocumented
+type ObjectFlowTypes string
+
+const (
+ // ObjectFlowTypesVNone undocumented
+ ObjectFlowTypesVNone ObjectFlowTypes = "None"
+ // ObjectFlowTypesVAdd undocumented
+ ObjectFlowTypesVAdd ObjectFlowTypes = "Add"
+ // ObjectFlowTypesVUpdate undocumented
+ ObjectFlowTypesVUpdate ObjectFlowTypes = "Update"
+ // ObjectFlowTypesVDelete undocumented
+ ObjectFlowTypesVDelete ObjectFlowTypes = "Delete"
+)
+
+var (
+ // ObjectFlowTypesPNone is a pointer to ObjectFlowTypesVNone
+ ObjectFlowTypesPNone = &_ObjectFlowTypesPNone
+ // ObjectFlowTypesPAdd is a pointer to ObjectFlowTypesVAdd
+ ObjectFlowTypesPAdd = &_ObjectFlowTypesPAdd
+ // ObjectFlowTypesPUpdate is a pointer to ObjectFlowTypesVUpdate
+ ObjectFlowTypesPUpdate = &_ObjectFlowTypesPUpdate
+ // ObjectFlowTypesPDelete is a pointer to ObjectFlowTypesVDelete
+ ObjectFlowTypesPDelete = &_ObjectFlowTypesPDelete
+)
+
+var (
+ _ObjectFlowTypesPNone = ObjectFlowTypesVNone
+ _ObjectFlowTypesPAdd = ObjectFlowTypesVAdd
+ _ObjectFlowTypesPUpdate = ObjectFlowTypesVUpdate
+ _ObjectFlowTypesPDelete = ObjectFlowTypesVDelete
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOffice.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOffice.go
new file mode 100644
index 00000000..9bf7a28d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOffice.go
@@ -0,0 +1,94 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OfficeProductID undocumented
+type OfficeProductID string
+
+const (
+ // OfficeProductIDVO365ProPlusRetail undocumented
+ OfficeProductIDVO365ProPlusRetail OfficeProductID = "o365ProPlusRetail"
+ // OfficeProductIDVO365BusinessRetail undocumented
+ OfficeProductIDVO365BusinessRetail OfficeProductID = "o365BusinessRetail"
+ // OfficeProductIDVVisioProRetail undocumented
+ OfficeProductIDVVisioProRetail OfficeProductID = "visioProRetail"
+ // OfficeProductIDVProjectProRetail undocumented
+ OfficeProductIDVProjectProRetail OfficeProductID = "projectProRetail"
+)
+
+var (
+ // OfficeProductIDPO365ProPlusRetail is a pointer to OfficeProductIDVO365ProPlusRetail
+ OfficeProductIDPO365ProPlusRetail = &_OfficeProductIDPO365ProPlusRetail
+ // OfficeProductIDPO365BusinessRetail is a pointer to OfficeProductIDVO365BusinessRetail
+ OfficeProductIDPO365BusinessRetail = &_OfficeProductIDPO365BusinessRetail
+ // OfficeProductIDPVisioProRetail is a pointer to OfficeProductIDVVisioProRetail
+ OfficeProductIDPVisioProRetail = &_OfficeProductIDPVisioProRetail
+ // OfficeProductIDPProjectProRetail is a pointer to OfficeProductIDVProjectProRetail
+ OfficeProductIDPProjectProRetail = &_OfficeProductIDPProjectProRetail
+)
+
+var (
+ _OfficeProductIDPO365ProPlusRetail = OfficeProductIDVO365ProPlusRetail
+ _OfficeProductIDPO365BusinessRetail = OfficeProductIDVO365BusinessRetail
+ _OfficeProductIDPVisioProRetail = OfficeProductIDVVisioProRetail
+ _OfficeProductIDPProjectProRetail = OfficeProductIDVProjectProRetail
+)
+
+// OfficeSuiteInstallProgressDisplayLevel undocumented
+type OfficeSuiteInstallProgressDisplayLevel string
+
+const (
+ // OfficeSuiteInstallProgressDisplayLevelVNone undocumented
+ OfficeSuiteInstallProgressDisplayLevelVNone OfficeSuiteInstallProgressDisplayLevel = "none"
+ // OfficeSuiteInstallProgressDisplayLevelVFull undocumented
+ OfficeSuiteInstallProgressDisplayLevelVFull OfficeSuiteInstallProgressDisplayLevel = "full"
+)
+
+var (
+ // OfficeSuiteInstallProgressDisplayLevelPNone is a pointer to OfficeSuiteInstallProgressDisplayLevelVNone
+ OfficeSuiteInstallProgressDisplayLevelPNone = &_OfficeSuiteInstallProgressDisplayLevelPNone
+ // OfficeSuiteInstallProgressDisplayLevelPFull is a pointer to OfficeSuiteInstallProgressDisplayLevelVFull
+ OfficeSuiteInstallProgressDisplayLevelPFull = &_OfficeSuiteInstallProgressDisplayLevelPFull
+)
+
+var (
+ _OfficeSuiteInstallProgressDisplayLevelPNone = OfficeSuiteInstallProgressDisplayLevelVNone
+ _OfficeSuiteInstallProgressDisplayLevelPFull = OfficeSuiteInstallProgressDisplayLevelVFull
+)
+
+// OfficeUpdateChannel undocumented
+type OfficeUpdateChannel string
+
+const (
+ // OfficeUpdateChannelVNone undocumented
+ OfficeUpdateChannelVNone OfficeUpdateChannel = "none"
+ // OfficeUpdateChannelVCurrent undocumented
+ OfficeUpdateChannelVCurrent OfficeUpdateChannel = "current"
+ // OfficeUpdateChannelVDeferred undocumented
+ OfficeUpdateChannelVDeferred OfficeUpdateChannel = "deferred"
+ // OfficeUpdateChannelVFirstReleaseCurrent undocumented
+ OfficeUpdateChannelVFirstReleaseCurrent OfficeUpdateChannel = "firstReleaseCurrent"
+ // OfficeUpdateChannelVFirstReleaseDeferred undocumented
+ OfficeUpdateChannelVFirstReleaseDeferred OfficeUpdateChannel = "firstReleaseDeferred"
+)
+
+var (
+ // OfficeUpdateChannelPNone is a pointer to OfficeUpdateChannelVNone
+ OfficeUpdateChannelPNone = &_OfficeUpdateChannelPNone
+ // OfficeUpdateChannelPCurrent is a pointer to OfficeUpdateChannelVCurrent
+ OfficeUpdateChannelPCurrent = &_OfficeUpdateChannelPCurrent
+ // OfficeUpdateChannelPDeferred is a pointer to OfficeUpdateChannelVDeferred
+ OfficeUpdateChannelPDeferred = &_OfficeUpdateChannelPDeferred
+ // OfficeUpdateChannelPFirstReleaseCurrent is a pointer to OfficeUpdateChannelVFirstReleaseCurrent
+ OfficeUpdateChannelPFirstReleaseCurrent = &_OfficeUpdateChannelPFirstReleaseCurrent
+ // OfficeUpdateChannelPFirstReleaseDeferred is a pointer to OfficeUpdateChannelVFirstReleaseDeferred
+ OfficeUpdateChannelPFirstReleaseDeferred = &_OfficeUpdateChannelPFirstReleaseDeferred
+)
+
+var (
+ _OfficeUpdateChannelPNone = OfficeUpdateChannelVNone
+ _OfficeUpdateChannelPCurrent = OfficeUpdateChannelVCurrent
+ _OfficeUpdateChannelPDeferred = OfficeUpdateChannelVDeferred
+ _OfficeUpdateChannelPFirstReleaseCurrent = OfficeUpdateChannelVFirstReleaseCurrent
+ _OfficeUpdateChannelPFirstReleaseDeferred = OfficeUpdateChannelVFirstReleaseDeferred
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOn.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOn.go
new file mode 100644
index 00000000..be5333f7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOn.go
@@ -0,0 +1,50 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnPremisesPublishingType undocumented
+type OnPremisesPublishingType string
+
+const (
+ // OnPremisesPublishingTypeVAppProxy undocumented
+ OnPremisesPublishingTypeVAppProxy OnPremisesPublishingType = "appProxy"
+ // OnPremisesPublishingTypeVExchangeOnline undocumented
+ OnPremisesPublishingTypeVExchangeOnline OnPremisesPublishingType = "exchangeOnline"
+ // OnPremisesPublishingTypeVAuthentication undocumented
+ OnPremisesPublishingTypeVAuthentication OnPremisesPublishingType = "authentication"
+ // OnPremisesPublishingTypeVProvisioning undocumented
+ OnPremisesPublishingTypeVProvisioning OnPremisesPublishingType = "provisioning"
+ // OnPremisesPublishingTypeVIntunePfx undocumented
+ OnPremisesPublishingTypeVIntunePfx OnPremisesPublishingType = "intunePfx"
+ // OnPremisesPublishingTypeVOflineDomainJoin undocumented
+ OnPremisesPublishingTypeVOflineDomainJoin OnPremisesPublishingType = "oflineDomainJoin"
+ // OnPremisesPublishingTypeVUnknownFutureValue undocumented
+ OnPremisesPublishingTypeVUnknownFutureValue OnPremisesPublishingType = "unknownFutureValue"
+)
+
+var (
+ // OnPremisesPublishingTypePAppProxy is a pointer to OnPremisesPublishingTypeVAppProxy
+ OnPremisesPublishingTypePAppProxy = &_OnPremisesPublishingTypePAppProxy
+ // OnPremisesPublishingTypePExchangeOnline is a pointer to OnPremisesPublishingTypeVExchangeOnline
+ OnPremisesPublishingTypePExchangeOnline = &_OnPremisesPublishingTypePExchangeOnline
+ // OnPremisesPublishingTypePAuthentication is a pointer to OnPremisesPublishingTypeVAuthentication
+ OnPremisesPublishingTypePAuthentication = &_OnPremisesPublishingTypePAuthentication
+ // OnPremisesPublishingTypePProvisioning is a pointer to OnPremisesPublishingTypeVProvisioning
+ OnPremisesPublishingTypePProvisioning = &_OnPremisesPublishingTypePProvisioning
+ // OnPremisesPublishingTypePIntunePfx is a pointer to OnPremisesPublishingTypeVIntunePfx
+ OnPremisesPublishingTypePIntunePfx = &_OnPremisesPublishingTypePIntunePfx
+ // OnPremisesPublishingTypePOflineDomainJoin is a pointer to OnPremisesPublishingTypeVOflineDomainJoin
+ OnPremisesPublishingTypePOflineDomainJoin = &_OnPremisesPublishingTypePOflineDomainJoin
+ // OnPremisesPublishingTypePUnknownFutureValue is a pointer to OnPremisesPublishingTypeVUnknownFutureValue
+ OnPremisesPublishingTypePUnknownFutureValue = &_OnPremisesPublishingTypePUnknownFutureValue
+)
+
+var (
+ _OnPremisesPublishingTypePAppProxy = OnPremisesPublishingTypeVAppProxy
+ _OnPremisesPublishingTypePExchangeOnline = OnPremisesPublishingTypeVExchangeOnline
+ _OnPremisesPublishingTypePAuthentication = OnPremisesPublishingTypeVAuthentication
+ _OnPremisesPublishingTypePProvisioning = OnPremisesPublishingTypeVProvisioning
+ _OnPremisesPublishingTypePIntunePfx = OnPremisesPublishingTypeVIntunePfx
+ _OnPremisesPublishingTypePOflineDomainJoin = OnPremisesPublishingTypeVOflineDomainJoin
+ _OnPremisesPublishingTypePUnknownFutureValue = OnPremisesPublishingTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnenote.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnenote.go
new file mode 100644
index 00000000..e372594b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnenote.go
@@ -0,0 +1,126 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnenotePatchActionType undocumented
+type OnenotePatchActionType string
+
+const (
+ // OnenotePatchActionTypeVReplace undocumented
+ OnenotePatchActionTypeVReplace OnenotePatchActionType = "Replace"
+ // OnenotePatchActionTypeVAppend undocumented
+ OnenotePatchActionTypeVAppend OnenotePatchActionType = "Append"
+ // OnenotePatchActionTypeVDelete undocumented
+ OnenotePatchActionTypeVDelete OnenotePatchActionType = "Delete"
+ // OnenotePatchActionTypeVInsert undocumented
+ OnenotePatchActionTypeVInsert OnenotePatchActionType = "Insert"
+ // OnenotePatchActionTypeVPrepend undocumented
+ OnenotePatchActionTypeVPrepend OnenotePatchActionType = "Prepend"
+)
+
+var (
+ // OnenotePatchActionTypePReplace is a pointer to OnenotePatchActionTypeVReplace
+ OnenotePatchActionTypePReplace = &_OnenotePatchActionTypePReplace
+ // OnenotePatchActionTypePAppend is a pointer to OnenotePatchActionTypeVAppend
+ OnenotePatchActionTypePAppend = &_OnenotePatchActionTypePAppend
+ // OnenotePatchActionTypePDelete is a pointer to OnenotePatchActionTypeVDelete
+ OnenotePatchActionTypePDelete = &_OnenotePatchActionTypePDelete
+ // OnenotePatchActionTypePInsert is a pointer to OnenotePatchActionTypeVInsert
+ OnenotePatchActionTypePInsert = &_OnenotePatchActionTypePInsert
+ // OnenotePatchActionTypePPrepend is a pointer to OnenotePatchActionTypeVPrepend
+ OnenotePatchActionTypePPrepend = &_OnenotePatchActionTypePPrepend
+)
+
+var (
+ _OnenotePatchActionTypePReplace = OnenotePatchActionTypeVReplace
+ _OnenotePatchActionTypePAppend = OnenotePatchActionTypeVAppend
+ _OnenotePatchActionTypePDelete = OnenotePatchActionTypeVDelete
+ _OnenotePatchActionTypePInsert = OnenotePatchActionTypeVInsert
+ _OnenotePatchActionTypePPrepend = OnenotePatchActionTypeVPrepend
+)
+
+// OnenotePatchInsertPosition undocumented
+type OnenotePatchInsertPosition string
+
+const (
+ // OnenotePatchInsertPositionVAfter undocumented
+ OnenotePatchInsertPositionVAfter OnenotePatchInsertPosition = "After"
+ // OnenotePatchInsertPositionVBefore undocumented
+ OnenotePatchInsertPositionVBefore OnenotePatchInsertPosition = "Before"
+)
+
+var (
+ // OnenotePatchInsertPositionPAfter is a pointer to OnenotePatchInsertPositionVAfter
+ OnenotePatchInsertPositionPAfter = &_OnenotePatchInsertPositionPAfter
+ // OnenotePatchInsertPositionPBefore is a pointer to OnenotePatchInsertPositionVBefore
+ OnenotePatchInsertPositionPBefore = &_OnenotePatchInsertPositionPBefore
+)
+
+var (
+ _OnenotePatchInsertPositionPAfter = OnenotePatchInsertPositionVAfter
+ _OnenotePatchInsertPositionPBefore = OnenotePatchInsertPositionVBefore
+)
+
+// OnenoteSourceService undocumented
+type OnenoteSourceService string
+
+const (
+ // OnenoteSourceServiceVUnknown undocumented
+ OnenoteSourceServiceVUnknown OnenoteSourceService = "Unknown"
+ // OnenoteSourceServiceVOneDrive undocumented
+ OnenoteSourceServiceVOneDrive OnenoteSourceService = "OneDrive"
+ // OnenoteSourceServiceVOneDriveForBusiness undocumented
+ OnenoteSourceServiceVOneDriveForBusiness OnenoteSourceService = "OneDriveForBusiness"
+ // OnenoteSourceServiceVOnPremOneDriveForBusiness undocumented
+ OnenoteSourceServiceVOnPremOneDriveForBusiness OnenoteSourceService = "OnPremOneDriveForBusiness"
+)
+
+var (
+ // OnenoteSourceServicePUnknown is a pointer to OnenoteSourceServiceVUnknown
+ OnenoteSourceServicePUnknown = &_OnenoteSourceServicePUnknown
+ // OnenoteSourceServicePOneDrive is a pointer to OnenoteSourceServiceVOneDrive
+ OnenoteSourceServicePOneDrive = &_OnenoteSourceServicePOneDrive
+ // OnenoteSourceServicePOneDriveForBusiness is a pointer to OnenoteSourceServiceVOneDriveForBusiness
+ OnenoteSourceServicePOneDriveForBusiness = &_OnenoteSourceServicePOneDriveForBusiness
+ // OnenoteSourceServicePOnPremOneDriveForBusiness is a pointer to OnenoteSourceServiceVOnPremOneDriveForBusiness
+ OnenoteSourceServicePOnPremOneDriveForBusiness = &_OnenoteSourceServicePOnPremOneDriveForBusiness
+)
+
+var (
+ _OnenoteSourceServicePUnknown = OnenoteSourceServiceVUnknown
+ _OnenoteSourceServicePOneDrive = OnenoteSourceServiceVOneDrive
+ _OnenoteSourceServicePOneDriveForBusiness = OnenoteSourceServiceVOneDriveForBusiness
+ _OnenoteSourceServicePOnPremOneDriveForBusiness = OnenoteSourceServiceVOnPremOneDriveForBusiness
+)
+
+// OnenoteUserRole undocumented
+type OnenoteUserRole string
+
+const (
+ // OnenoteUserRoleVOwner undocumented
+ OnenoteUserRoleVOwner OnenoteUserRole = "Owner"
+ // OnenoteUserRoleVContributor undocumented
+ OnenoteUserRoleVContributor OnenoteUserRole = "Contributor"
+ // OnenoteUserRoleVReader undocumented
+ OnenoteUserRoleVReader OnenoteUserRole = "Reader"
+ // OnenoteUserRoleVNone undocumented
+ OnenoteUserRoleVNone OnenoteUserRole = "None"
+)
+
+var (
+ // OnenoteUserRolePOwner is a pointer to OnenoteUserRoleVOwner
+ OnenoteUserRolePOwner = &_OnenoteUserRolePOwner
+ // OnenoteUserRolePContributor is a pointer to OnenoteUserRoleVContributor
+ OnenoteUserRolePContributor = &_OnenoteUserRolePContributor
+ // OnenoteUserRolePReader is a pointer to OnenoteUserRoleVReader
+ OnenoteUserRolePReader = &_OnenoteUserRolePReader
+ // OnenoteUserRolePNone is a pointer to OnenoteUserRoleVNone
+ OnenoteUserRolePNone = &_OnenoteUserRolePNone
+)
+
+var (
+ _OnenoteUserRolePOwner = OnenoteUserRoleVOwner
+ _OnenoteUserRolePContributor = OnenoteUserRoleVContributor
+ _OnenoteUserRolePReader = OnenoteUserRoleVReader
+ _OnenoteUserRolePNone = OnenoteUserRoleVNone
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnline.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnline.go
new file mode 100644
index 00000000..29e67d56
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOnline.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OnlineMeetingProviderType undocumented
+type OnlineMeetingProviderType string
+
+const (
+ // OnlineMeetingProviderTypeVUnknown undocumented
+ OnlineMeetingProviderTypeVUnknown OnlineMeetingProviderType = "unknown"
+ // OnlineMeetingProviderTypeVSkypeForBusiness undocumented
+ OnlineMeetingProviderTypeVSkypeForBusiness OnlineMeetingProviderType = "skypeForBusiness"
+ // OnlineMeetingProviderTypeVSkypeForConsumer undocumented
+ OnlineMeetingProviderTypeVSkypeForConsumer OnlineMeetingProviderType = "skypeForConsumer"
+ // OnlineMeetingProviderTypeVTeamsForBusiness undocumented
+ OnlineMeetingProviderTypeVTeamsForBusiness OnlineMeetingProviderType = "teamsForBusiness"
+)
+
+var (
+ // OnlineMeetingProviderTypePUnknown is a pointer to OnlineMeetingProviderTypeVUnknown
+ OnlineMeetingProviderTypePUnknown = &_OnlineMeetingProviderTypePUnknown
+ // OnlineMeetingProviderTypePSkypeForBusiness is a pointer to OnlineMeetingProviderTypeVSkypeForBusiness
+ OnlineMeetingProviderTypePSkypeForBusiness = &_OnlineMeetingProviderTypePSkypeForBusiness
+ // OnlineMeetingProviderTypePSkypeForConsumer is a pointer to OnlineMeetingProviderTypeVSkypeForConsumer
+ OnlineMeetingProviderTypePSkypeForConsumer = &_OnlineMeetingProviderTypePSkypeForConsumer
+ // OnlineMeetingProviderTypePTeamsForBusiness is a pointer to OnlineMeetingProviderTypeVTeamsForBusiness
+ OnlineMeetingProviderTypePTeamsForBusiness = &_OnlineMeetingProviderTypePTeamsForBusiness
+)
+
+var (
+ _OnlineMeetingProviderTypePUnknown = OnlineMeetingProviderTypeVUnknown
+ _OnlineMeetingProviderTypePSkypeForBusiness = OnlineMeetingProviderTypeVSkypeForBusiness
+ _OnlineMeetingProviderTypePSkypeForConsumer = OnlineMeetingProviderTypeVSkypeForConsumer
+ _OnlineMeetingProviderTypePTeamsForBusiness = OnlineMeetingProviderTypeVTeamsForBusiness
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOperation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOperation.go
new file mode 100644
index 00000000..4994b700
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOperation.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OperationResult undocumented
+type OperationResult string
+
+const (
+ // OperationResultVSuccess undocumented
+ OperationResultVSuccess OperationResult = "success"
+ // OperationResultVFailure undocumented
+ OperationResultVFailure OperationResult = "failure"
+ // OperationResultVTimeout undocumented
+ OperationResultVTimeout OperationResult = "timeout"
+ // OperationResultVUnknownFutureValue undocumented
+ OperationResultVUnknownFutureValue OperationResult = "unknownFutureValue"
+)
+
+var (
+ // OperationResultPSuccess is a pointer to OperationResultVSuccess
+ OperationResultPSuccess = &_OperationResultPSuccess
+ // OperationResultPFailure is a pointer to OperationResultVFailure
+ OperationResultPFailure = &_OperationResultPFailure
+ // OperationResultPTimeout is a pointer to OperationResultVTimeout
+ OperationResultPTimeout = &_OperationResultPTimeout
+ // OperationResultPUnknownFutureValue is a pointer to OperationResultVUnknownFutureValue
+ OperationResultPUnknownFutureValue = &_OperationResultPUnknownFutureValue
+)
+
+var (
+ _OperationResultPSuccess = OperationResultVSuccess
+ _OperationResultPFailure = OperationResultVFailure
+ _OperationResultPTimeout = OperationResultVTimeout
+ _OperationResultPUnknownFutureValue = OperationResultVUnknownFutureValue
+)
+
+// OperationStatus undocumented
+type OperationStatus string
+
+const (
+ // OperationStatusVNotStarted undocumented
+ OperationStatusVNotStarted OperationStatus = "NotStarted"
+ // OperationStatusVRunning undocumented
+ OperationStatusVRunning OperationStatus = "Running"
+ // OperationStatusVCompleted undocumented
+ OperationStatusVCompleted OperationStatus = "Completed"
+ // OperationStatusVFailed undocumented
+ OperationStatusVFailed OperationStatus = "Failed"
+)
+
+var (
+ // OperationStatusPNotStarted is a pointer to OperationStatusVNotStarted
+ OperationStatusPNotStarted = &_OperationStatusPNotStarted
+ // OperationStatusPRunning is a pointer to OperationStatusVRunning
+ OperationStatusPRunning = &_OperationStatusPRunning
+ // OperationStatusPCompleted is a pointer to OperationStatusVCompleted
+ OperationStatusPCompleted = &_OperationStatusPCompleted
+ // OperationStatusPFailed is a pointer to OperationStatusVFailed
+ OperationStatusPFailed = &_OperationStatusPFailed
+)
+
+var (
+ _OperationStatusPNotStarted = OperationStatusVNotStarted
+ _OperationStatusPRunning = OperationStatusVRunning
+ _OperationStatusPCompleted = OperationStatusVCompleted
+ _OperationStatusPFailed = OperationStatusVFailed
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOverride.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOverride.go
new file mode 100644
index 00000000..0e71e090
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOverride.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OverrideOption undocumented
+type OverrideOption string
+
+const (
+ // OverrideOptionVNotAllowed undocumented
+ OverrideOptionVNotAllowed OverrideOption = "notAllowed"
+ // OverrideOptionVAllowFalsePositiveOverride undocumented
+ OverrideOptionVAllowFalsePositiveOverride OverrideOption = "allowFalsePositiveOverride"
+ // OverrideOptionVAllowWithJustification undocumented
+ OverrideOptionVAllowWithJustification OverrideOption = "allowWithJustification"
+ // OverrideOptionVAllowWithoutJustification undocumented
+ OverrideOptionVAllowWithoutJustification OverrideOption = "allowWithoutJustification"
+)
+
+var (
+ // OverrideOptionPNotAllowed is a pointer to OverrideOptionVNotAllowed
+ OverrideOptionPNotAllowed = &_OverrideOptionPNotAllowed
+ // OverrideOptionPAllowFalsePositiveOverride is a pointer to OverrideOptionVAllowFalsePositiveOverride
+ OverrideOptionPAllowFalsePositiveOverride = &_OverrideOptionPAllowFalsePositiveOverride
+ // OverrideOptionPAllowWithJustification is a pointer to OverrideOptionVAllowWithJustification
+ OverrideOptionPAllowWithJustification = &_OverrideOptionPAllowWithJustification
+ // OverrideOptionPAllowWithoutJustification is a pointer to OverrideOptionVAllowWithoutJustification
+ OverrideOptionPAllowWithoutJustification = &_OverrideOptionPAllowWithoutJustification
+)
+
+var (
+ _OverrideOptionPNotAllowed = OverrideOptionVNotAllowed
+ _OverrideOptionPAllowFalsePositiveOverride = OverrideOptionVAllowFalsePositiveOverride
+ _OverrideOptionPAllowWithJustification = OverrideOptionVAllowWithJustification
+ _OverrideOptionPAllowWithoutJustification = OverrideOptionVAllowWithoutJustification
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumOwner.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOwner.go
new file mode 100644
index 00000000..3c66a161
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumOwner.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OwnerType undocumented
+type OwnerType string
+
+const (
+ // OwnerTypeVUnknown undocumented
+ OwnerTypeVUnknown OwnerType = "unknown"
+ // OwnerTypeVCompany undocumented
+ OwnerTypeVCompany OwnerType = "company"
+ // OwnerTypeVPersonal undocumented
+ OwnerTypeVPersonal OwnerType = "personal"
+)
+
+var (
+ // OwnerTypePUnknown is a pointer to OwnerTypeVUnknown
+ OwnerTypePUnknown = &_OwnerTypePUnknown
+ // OwnerTypePCompany is a pointer to OwnerTypeVCompany
+ OwnerTypePCompany = &_OwnerTypePCompany
+ // OwnerTypePPersonal is a pointer to OwnerTypeVPersonal
+ OwnerTypePPersonal = &_OwnerTypePPersonal
+)
+
+var (
+ _OwnerTypePUnknown = OwnerTypeVUnknown
+ _OwnerTypePCompany = OwnerTypeVCompany
+ _OwnerTypePPersonal = OwnerTypeVPersonal
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPage.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPage.go
new file mode 100644
index 00000000..0c290ce9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPage.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PageOrientation undocumented
+type PageOrientation string
+
+const (
+ // PageOrientationVHorizontal undocumented
+ PageOrientationVHorizontal PageOrientation = "horizontal"
+ // PageOrientationVDiagonal undocumented
+ PageOrientationVDiagonal PageOrientation = "diagonal"
+)
+
+var (
+ // PageOrientationPHorizontal is a pointer to PageOrientationVHorizontal
+ PageOrientationPHorizontal = &_PageOrientationPHorizontal
+ // PageOrientationPDiagonal is a pointer to PageOrientationVDiagonal
+ PageOrientationPDiagonal = &_PageOrientationPDiagonal
+)
+
+var (
+ _PageOrientationPHorizontal = PageOrientationVHorizontal
+ _PageOrientationPDiagonal = PageOrientationVDiagonal
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPermission.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPermission.go
new file mode 100644
index 00000000..b3938cfd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPermission.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PermissionClassificationType undocumented
+type PermissionClassificationType string
+
+const (
+ // PermissionClassificationTypeVLow undocumented
+ PermissionClassificationTypeVLow PermissionClassificationType = "low"
+ // PermissionClassificationTypeVMedium undocumented
+ PermissionClassificationTypeVMedium PermissionClassificationType = "medium"
+ // PermissionClassificationTypeVHigh undocumented
+ PermissionClassificationTypeVHigh PermissionClassificationType = "high"
+ // PermissionClassificationTypeVUnknownFutureValue undocumented
+ PermissionClassificationTypeVUnknownFutureValue PermissionClassificationType = "unknownFutureValue"
+)
+
+var (
+ // PermissionClassificationTypePLow is a pointer to PermissionClassificationTypeVLow
+ PermissionClassificationTypePLow = &_PermissionClassificationTypePLow
+ // PermissionClassificationTypePMedium is a pointer to PermissionClassificationTypeVMedium
+ PermissionClassificationTypePMedium = &_PermissionClassificationTypePMedium
+ // PermissionClassificationTypePHigh is a pointer to PermissionClassificationTypeVHigh
+ PermissionClassificationTypePHigh = &_PermissionClassificationTypePHigh
+ // PermissionClassificationTypePUnknownFutureValue is a pointer to PermissionClassificationTypeVUnknownFutureValue
+ PermissionClassificationTypePUnknownFutureValue = &_PermissionClassificationTypePUnknownFutureValue
+)
+
+var (
+ _PermissionClassificationTypePLow = PermissionClassificationTypeVLow
+ _PermissionClassificationTypePMedium = PermissionClassificationTypeVMedium
+ _PermissionClassificationTypePHigh = PermissionClassificationTypeVHigh
+ _PermissionClassificationTypePUnknownFutureValue = PermissionClassificationTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPersistent.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPersistent.go
new file mode 100644
index 00000000..961b78ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPersistent.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersistentBrowserSessionMode undocumented
+type PersistentBrowserSessionMode string
+
+const (
+ // PersistentBrowserSessionModeVAlways undocumented
+ PersistentBrowserSessionModeVAlways PersistentBrowserSessionMode = "always"
+ // PersistentBrowserSessionModeVNever undocumented
+ PersistentBrowserSessionModeVNever PersistentBrowserSessionMode = "never"
+)
+
+var (
+ // PersistentBrowserSessionModePAlways is a pointer to PersistentBrowserSessionModeVAlways
+ PersistentBrowserSessionModePAlways = &_PersistentBrowserSessionModePAlways
+ // PersistentBrowserSessionModePNever is a pointer to PersistentBrowserSessionModeVNever
+ PersistentBrowserSessionModePNever = &_PersistentBrowserSessionModePNever
+)
+
+var (
+ _PersistentBrowserSessionModePAlways = PersistentBrowserSessionModeVAlways
+ _PersistentBrowserSessionModePNever = PersistentBrowserSessionModeVNever
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPerson.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPerson.go
new file mode 100644
index 00000000..b57e6f6f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPerson.go
@@ -0,0 +1,95 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersonRelationship undocumented
+type PersonRelationship string
+
+const (
+ // PersonRelationshipVManager undocumented
+ PersonRelationshipVManager PersonRelationship = "manager"
+ // PersonRelationshipVColleague undocumented
+ PersonRelationshipVColleague PersonRelationship = "colleague"
+ // PersonRelationshipVDirectReport undocumented
+ PersonRelationshipVDirectReport PersonRelationship = "directReport"
+ // PersonRelationshipVDotLineReport undocumented
+ PersonRelationshipVDotLineReport PersonRelationship = "dotLineReport"
+ // PersonRelationshipVAssistant undocumented
+ PersonRelationshipVAssistant PersonRelationship = "assistant"
+ // PersonRelationshipVDotLineManager undocumented
+ PersonRelationshipVDotLineManager PersonRelationship = "dotLineManager"
+ // PersonRelationshipVAlternateContact undocumented
+ PersonRelationshipVAlternateContact PersonRelationship = "alternateContact"
+ // PersonRelationshipVFriend undocumented
+ PersonRelationshipVFriend PersonRelationship = "friend"
+ // PersonRelationshipVSpouse undocumented
+ PersonRelationshipVSpouse PersonRelationship = "spouse"
+ // PersonRelationshipVSibling undocumented
+ PersonRelationshipVSibling PersonRelationship = "sibling"
+ // PersonRelationshipVChild undocumented
+ PersonRelationshipVChild PersonRelationship = "child"
+ // PersonRelationshipVParent undocumented
+ PersonRelationshipVParent PersonRelationship = "parent"
+ // PersonRelationshipVSponsor undocumented
+ PersonRelationshipVSponsor PersonRelationship = "sponsor"
+ // PersonRelationshipVEmergencyContact undocumented
+ PersonRelationshipVEmergencyContact PersonRelationship = "emergencyContact"
+ // PersonRelationshipVOther undocumented
+ PersonRelationshipVOther PersonRelationship = "other"
+ // PersonRelationshipVUnknownFutureValue undocumented
+ PersonRelationshipVUnknownFutureValue PersonRelationship = "unknownFutureValue"
+)
+
+var (
+ // PersonRelationshipPManager is a pointer to PersonRelationshipVManager
+ PersonRelationshipPManager = &_PersonRelationshipPManager
+ // PersonRelationshipPColleague is a pointer to PersonRelationshipVColleague
+ PersonRelationshipPColleague = &_PersonRelationshipPColleague
+ // PersonRelationshipPDirectReport is a pointer to PersonRelationshipVDirectReport
+ PersonRelationshipPDirectReport = &_PersonRelationshipPDirectReport
+ // PersonRelationshipPDotLineReport is a pointer to PersonRelationshipVDotLineReport
+ PersonRelationshipPDotLineReport = &_PersonRelationshipPDotLineReport
+ // PersonRelationshipPAssistant is a pointer to PersonRelationshipVAssistant
+ PersonRelationshipPAssistant = &_PersonRelationshipPAssistant
+ // PersonRelationshipPDotLineManager is a pointer to PersonRelationshipVDotLineManager
+ PersonRelationshipPDotLineManager = &_PersonRelationshipPDotLineManager
+ // PersonRelationshipPAlternateContact is a pointer to PersonRelationshipVAlternateContact
+ PersonRelationshipPAlternateContact = &_PersonRelationshipPAlternateContact
+ // PersonRelationshipPFriend is a pointer to PersonRelationshipVFriend
+ PersonRelationshipPFriend = &_PersonRelationshipPFriend
+ // PersonRelationshipPSpouse is a pointer to PersonRelationshipVSpouse
+ PersonRelationshipPSpouse = &_PersonRelationshipPSpouse
+ // PersonRelationshipPSibling is a pointer to PersonRelationshipVSibling
+ PersonRelationshipPSibling = &_PersonRelationshipPSibling
+ // PersonRelationshipPChild is a pointer to PersonRelationshipVChild
+ PersonRelationshipPChild = &_PersonRelationshipPChild
+ // PersonRelationshipPParent is a pointer to PersonRelationshipVParent
+ PersonRelationshipPParent = &_PersonRelationshipPParent
+ // PersonRelationshipPSponsor is a pointer to PersonRelationshipVSponsor
+ PersonRelationshipPSponsor = &_PersonRelationshipPSponsor
+ // PersonRelationshipPEmergencyContact is a pointer to PersonRelationshipVEmergencyContact
+ PersonRelationshipPEmergencyContact = &_PersonRelationshipPEmergencyContact
+ // PersonRelationshipPOther is a pointer to PersonRelationshipVOther
+ PersonRelationshipPOther = &_PersonRelationshipPOther
+ // PersonRelationshipPUnknownFutureValue is a pointer to PersonRelationshipVUnknownFutureValue
+ PersonRelationshipPUnknownFutureValue = &_PersonRelationshipPUnknownFutureValue
+)
+
+var (
+ _PersonRelationshipPManager = PersonRelationshipVManager
+ _PersonRelationshipPColleague = PersonRelationshipVColleague
+ _PersonRelationshipPDirectReport = PersonRelationshipVDirectReport
+ _PersonRelationshipPDotLineReport = PersonRelationshipVDotLineReport
+ _PersonRelationshipPAssistant = PersonRelationshipVAssistant
+ _PersonRelationshipPDotLineManager = PersonRelationshipVDotLineManager
+ _PersonRelationshipPAlternateContact = PersonRelationshipVAlternateContact
+ _PersonRelationshipPFriend = PersonRelationshipVFriend
+ _PersonRelationshipPSpouse = PersonRelationshipVSpouse
+ _PersonRelationshipPSibling = PersonRelationshipVSibling
+ _PersonRelationshipPChild = PersonRelationshipVChild
+ _PersonRelationshipPParent = PersonRelationshipVParent
+ _PersonRelationshipPSponsor = PersonRelationshipVSponsor
+ _PersonRelationshipPEmergencyContact = PersonRelationshipVEmergencyContact
+ _PersonRelationshipPOther = PersonRelationshipVOther
+ _PersonRelationshipPUnknownFutureValue = PersonRelationshipVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhone.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhone.go
new file mode 100644
index 00000000..4beafb6c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhone.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PhoneType undocumented
+type PhoneType string
+
+const (
+ // PhoneTypeVHome undocumented
+ PhoneTypeVHome PhoneType = "home"
+ // PhoneTypeVBusiness undocumented
+ PhoneTypeVBusiness PhoneType = "business"
+ // PhoneTypeVMobile undocumented
+ PhoneTypeVMobile PhoneType = "mobile"
+ // PhoneTypeVOther undocumented
+ PhoneTypeVOther PhoneType = "other"
+ // PhoneTypeVAssistant undocumented
+ PhoneTypeVAssistant PhoneType = "assistant"
+ // PhoneTypeVHomeFax undocumented
+ PhoneTypeVHomeFax PhoneType = "homeFax"
+ // PhoneTypeVBusinessFax undocumented
+ PhoneTypeVBusinessFax PhoneType = "businessFax"
+ // PhoneTypeVOtherFax undocumented
+ PhoneTypeVOtherFax PhoneType = "otherFax"
+ // PhoneTypeVPager undocumented
+ PhoneTypeVPager PhoneType = "pager"
+ // PhoneTypeVRadio undocumented
+ PhoneTypeVRadio PhoneType = "radio"
+)
+
+var (
+ // PhoneTypePHome is a pointer to PhoneTypeVHome
+ PhoneTypePHome = &_PhoneTypePHome
+ // PhoneTypePBusiness is a pointer to PhoneTypeVBusiness
+ PhoneTypePBusiness = &_PhoneTypePBusiness
+ // PhoneTypePMobile is a pointer to PhoneTypeVMobile
+ PhoneTypePMobile = &_PhoneTypePMobile
+ // PhoneTypePOther is a pointer to PhoneTypeVOther
+ PhoneTypePOther = &_PhoneTypePOther
+ // PhoneTypePAssistant is a pointer to PhoneTypeVAssistant
+ PhoneTypePAssistant = &_PhoneTypePAssistant
+ // PhoneTypePHomeFax is a pointer to PhoneTypeVHomeFax
+ PhoneTypePHomeFax = &_PhoneTypePHomeFax
+ // PhoneTypePBusinessFax is a pointer to PhoneTypeVBusinessFax
+ PhoneTypePBusinessFax = &_PhoneTypePBusinessFax
+ // PhoneTypePOtherFax is a pointer to PhoneTypeVOtherFax
+ PhoneTypePOtherFax = &_PhoneTypePOtherFax
+ // PhoneTypePPager is a pointer to PhoneTypeVPager
+ PhoneTypePPager = &_PhoneTypePPager
+ // PhoneTypePRadio is a pointer to PhoneTypeVRadio
+ PhoneTypePRadio = &_PhoneTypePRadio
+)
+
+var (
+ _PhoneTypePHome = PhoneTypeVHome
+ _PhoneTypePBusiness = PhoneTypeVBusiness
+ _PhoneTypePMobile = PhoneTypeVMobile
+ _PhoneTypePOther = PhoneTypeVOther
+ _PhoneTypePAssistant = PhoneTypeVAssistant
+ _PhoneTypePHomeFax = PhoneTypeVHomeFax
+ _PhoneTypePBusinessFax = PhoneTypeVBusinessFax
+ _PhoneTypePOtherFax = PhoneTypeVOtherFax
+ _PhoneTypePPager = PhoneTypeVPager
+ _PhoneTypePRadio = PhoneTypeVRadio
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhysical.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhysical.go
new file mode 100644
index 00000000..6fd0b596
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPhysical.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PhysicalAddressType undocumented
+type PhysicalAddressType string
+
+const (
+ // PhysicalAddressTypeVUnknown undocumented
+ PhysicalAddressTypeVUnknown PhysicalAddressType = "unknown"
+ // PhysicalAddressTypeVHome undocumented
+ PhysicalAddressTypeVHome PhysicalAddressType = "home"
+ // PhysicalAddressTypeVBusiness undocumented
+ PhysicalAddressTypeVBusiness PhysicalAddressType = "business"
+ // PhysicalAddressTypeVOther undocumented
+ PhysicalAddressTypeVOther PhysicalAddressType = "other"
+)
+
+var (
+ // PhysicalAddressTypePUnknown is a pointer to PhysicalAddressTypeVUnknown
+ PhysicalAddressTypePUnknown = &_PhysicalAddressTypePUnknown
+ // PhysicalAddressTypePHome is a pointer to PhysicalAddressTypeVHome
+ PhysicalAddressTypePHome = &_PhysicalAddressTypePHome
+ // PhysicalAddressTypePBusiness is a pointer to PhysicalAddressTypeVBusiness
+ PhysicalAddressTypePBusiness = &_PhysicalAddressTypePBusiness
+ // PhysicalAddressTypePOther is a pointer to PhysicalAddressTypeVOther
+ PhysicalAddressTypePOther = &_PhysicalAddressTypePOther
+)
+
+var (
+ _PhysicalAddressTypePUnknown = PhysicalAddressTypeVUnknown
+ _PhysicalAddressTypePHome = PhysicalAddressTypeVHome
+ _PhysicalAddressTypePBusiness = PhysicalAddressTypeVBusiness
+ _PhysicalAddressTypePOther = PhysicalAddressTypeVOther
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlace.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlace.go
new file mode 100644
index 00000000..a3425ade
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlace.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlaceType undocumented
+type PlaceType string
+
+const (
+ // PlaceTypeVUnknown undocumented
+ PlaceTypeVUnknown PlaceType = "unknown"
+ // PlaceTypeVRoom undocumented
+ PlaceTypeVRoom PlaceType = "room"
+ // PlaceTypeVRoomList undocumented
+ PlaceTypeVRoomList PlaceType = "roomList"
+ // PlaceTypeVPublicPlace undocumented
+ PlaceTypeVPublicPlace PlaceType = "publicPlace"
+ // PlaceTypeVPersonalPlace undocumented
+ PlaceTypeVPersonalPlace PlaceType = "personalPlace"
+)
+
+var (
+ // PlaceTypePUnknown is a pointer to PlaceTypeVUnknown
+ PlaceTypePUnknown = &_PlaceTypePUnknown
+ // PlaceTypePRoom is a pointer to PlaceTypeVRoom
+ PlaceTypePRoom = &_PlaceTypePRoom
+ // PlaceTypePRoomList is a pointer to PlaceTypeVRoomList
+ PlaceTypePRoomList = &_PlaceTypePRoomList
+ // PlaceTypePPublicPlace is a pointer to PlaceTypeVPublicPlace
+ PlaceTypePPublicPlace = &_PlaceTypePPublicPlace
+ // PlaceTypePPersonalPlace is a pointer to PlaceTypeVPersonalPlace
+ PlaceTypePPersonalPlace = &_PlaceTypePPersonalPlace
+)
+
+var (
+ _PlaceTypePUnknown = PlaceTypeVUnknown
+ _PlaceTypePRoom = PlaceTypeVRoom
+ _PlaceTypePRoomList = PlaceTypeVRoomList
+ _PlaceTypePPublicPlace = PlaceTypeVPublicPlace
+ _PlaceTypePPersonalPlace = PlaceTypeVPersonalPlace
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlanner.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlanner.go
new file mode 100644
index 00000000..97d78320
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlanner.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlannerPreviewType undocumented
+type PlannerPreviewType string
+
+const (
+ // PlannerPreviewTypeVAutomatic undocumented
+ PlannerPreviewTypeVAutomatic PlannerPreviewType = "automatic"
+ // PlannerPreviewTypeVNoPreview undocumented
+ PlannerPreviewTypeVNoPreview PlannerPreviewType = "noPreview"
+ // PlannerPreviewTypeVChecklist undocumented
+ PlannerPreviewTypeVChecklist PlannerPreviewType = "checklist"
+ // PlannerPreviewTypeVDescription undocumented
+ PlannerPreviewTypeVDescription PlannerPreviewType = "description"
+ // PlannerPreviewTypeVReference undocumented
+ PlannerPreviewTypeVReference PlannerPreviewType = "reference"
+)
+
+var (
+ // PlannerPreviewTypePAutomatic is a pointer to PlannerPreviewTypeVAutomatic
+ PlannerPreviewTypePAutomatic = &_PlannerPreviewTypePAutomatic
+ // PlannerPreviewTypePNoPreview is a pointer to PlannerPreviewTypeVNoPreview
+ PlannerPreviewTypePNoPreview = &_PlannerPreviewTypePNoPreview
+ // PlannerPreviewTypePChecklist is a pointer to PlannerPreviewTypeVChecklist
+ PlannerPreviewTypePChecklist = &_PlannerPreviewTypePChecklist
+ // PlannerPreviewTypePDescription is a pointer to PlannerPreviewTypeVDescription
+ PlannerPreviewTypePDescription = &_PlannerPreviewTypePDescription
+ // PlannerPreviewTypePReference is a pointer to PlannerPreviewTypeVReference
+ PlannerPreviewTypePReference = &_PlannerPreviewTypePReference
+)
+
+var (
+ _PlannerPreviewTypePAutomatic = PlannerPreviewTypeVAutomatic
+ _PlannerPreviewTypePNoPreview = PlannerPreviewTypeVNoPreview
+ _PlannerPreviewTypePChecklist = PlannerPreviewTypeVChecklist
+ _PlannerPreviewTypePDescription = PlannerPreviewTypeVDescription
+ _PlannerPreviewTypePReference = PlannerPreviewTypeVReference
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlatform.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlatform.go
new file mode 100644
index 00000000..797ce7f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlatform.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Platform undocumented
+type Platform string
+
+const (
+ // PlatformVUnknown undocumented
+ PlatformVUnknown Platform = "unknown"
+ // PlatformVIOS undocumented
+ PlatformVIOS Platform = "ios"
+ // PlatformVAndroid undocumented
+ PlatformVAndroid Platform = "android"
+ // PlatformVWindows undocumented
+ PlatformVWindows Platform = "windows"
+ // PlatformVWindowsMobile undocumented
+ PlatformVWindowsMobile Platform = "windowsMobile"
+ // PlatformVMacOS undocumented
+ PlatformVMacOS Platform = "macOS"
+)
+
+var (
+ // PlatformPUnknown is a pointer to PlatformVUnknown
+ PlatformPUnknown = &_PlatformPUnknown
+ // PlatformPIOS is a pointer to PlatformVIOS
+ PlatformPIOS = &_PlatformPIOS
+ // PlatformPAndroid is a pointer to PlatformVAndroid
+ PlatformPAndroid = &_PlatformPAndroid
+ // PlatformPWindows is a pointer to PlatformVWindows
+ PlatformPWindows = &_PlatformPWindows
+ // PlatformPWindowsMobile is a pointer to PlatformVWindowsMobile
+ PlatformPWindowsMobile = &_PlatformPWindowsMobile
+ // PlatformPMacOS is a pointer to PlatformVMacOS
+ PlatformPMacOS = &_PlatformPMacOS
+)
+
+var (
+ _PlatformPUnknown = PlatformVUnknown
+ _PlatformPIOS = PlatformVIOS
+ _PlatformPAndroid = PlatformVAndroid
+ _PlatformPWindows = PlatformVWindows
+ _PlatformPWindowsMobile = PlatformVWindowsMobile
+ _PlatformPMacOS = PlatformVMacOS
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlay.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlay.go
new file mode 100644
index 00000000..46b3d13a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPlay.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlayPromptCompletionReason undocumented
+type PlayPromptCompletionReason string
+
+const (
+ // PlayPromptCompletionReasonVUnknown undocumented
+ PlayPromptCompletionReasonVUnknown PlayPromptCompletionReason = "unknown"
+ // PlayPromptCompletionReasonVCompletedSuccessfully undocumented
+ PlayPromptCompletionReasonVCompletedSuccessfully PlayPromptCompletionReason = "completedSuccessfully"
+ // PlayPromptCompletionReasonVMediaOperationCanceled undocumented
+ PlayPromptCompletionReasonVMediaOperationCanceled PlayPromptCompletionReason = "mediaOperationCanceled"
+ // PlayPromptCompletionReasonVUnknownFutureValue undocumented
+ PlayPromptCompletionReasonVUnknownFutureValue PlayPromptCompletionReason = "unknownFutureValue"
+)
+
+var (
+ // PlayPromptCompletionReasonPUnknown is a pointer to PlayPromptCompletionReasonVUnknown
+ PlayPromptCompletionReasonPUnknown = &_PlayPromptCompletionReasonPUnknown
+ // PlayPromptCompletionReasonPCompletedSuccessfully is a pointer to PlayPromptCompletionReasonVCompletedSuccessfully
+ PlayPromptCompletionReasonPCompletedSuccessfully = &_PlayPromptCompletionReasonPCompletedSuccessfully
+ // PlayPromptCompletionReasonPMediaOperationCanceled is a pointer to PlayPromptCompletionReasonVMediaOperationCanceled
+ PlayPromptCompletionReasonPMediaOperationCanceled = &_PlayPromptCompletionReasonPMediaOperationCanceled
+ // PlayPromptCompletionReasonPUnknownFutureValue is a pointer to PlayPromptCompletionReasonVUnknownFutureValue
+ PlayPromptCompletionReasonPUnknownFutureValue = &_PlayPromptCompletionReasonPUnknownFutureValue
+)
+
+var (
+ _PlayPromptCompletionReasonPUnknown = PlayPromptCompletionReasonVUnknown
+ _PlayPromptCompletionReasonPCompletedSuccessfully = PlayPromptCompletionReasonVCompletedSuccessfully
+ _PlayPromptCompletionReasonPMediaOperationCanceled = PlayPromptCompletionReasonVMediaOperationCanceled
+ _PlayPromptCompletionReasonPUnknownFutureValue = PlayPromptCompletionReasonVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPolicy.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPolicy.go
new file mode 100644
index 00000000..66d4f20e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPolicy.go
@@ -0,0 +1,102 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PolicyPlatformType undocumented
+type PolicyPlatformType string
+
+const (
+ // PolicyPlatformTypeVAndroid undocumented
+ PolicyPlatformTypeVAndroid PolicyPlatformType = "android"
+ // PolicyPlatformTypeVAndroidForWork undocumented
+ PolicyPlatformTypeVAndroidForWork PolicyPlatformType = "androidForWork"
+ // PolicyPlatformTypeVIOS undocumented
+ PolicyPlatformTypeVIOS PolicyPlatformType = "iOS"
+ // PolicyPlatformTypeVMacOS undocumented
+ PolicyPlatformTypeVMacOS PolicyPlatformType = "macOS"
+ // PolicyPlatformTypeVWindowsPhone81 undocumented
+ PolicyPlatformTypeVWindowsPhone81 PolicyPlatformType = "windowsPhone81"
+ // PolicyPlatformTypeVWindows81AndLater undocumented
+ PolicyPlatformTypeVWindows81AndLater PolicyPlatformType = "windows81AndLater"
+ // PolicyPlatformTypeVWindows10AndLater undocumented
+ PolicyPlatformTypeVWindows10AndLater PolicyPlatformType = "windows10AndLater"
+ // PolicyPlatformTypeVAndroidWorkProfile undocumented
+ PolicyPlatformTypeVAndroidWorkProfile PolicyPlatformType = "androidWorkProfile"
+ // PolicyPlatformTypeVAll undocumented
+ PolicyPlatformTypeVAll PolicyPlatformType = "all"
+)
+
+var (
+ // PolicyPlatformTypePAndroid is a pointer to PolicyPlatformTypeVAndroid
+ PolicyPlatformTypePAndroid = &_PolicyPlatformTypePAndroid
+ // PolicyPlatformTypePAndroidForWork is a pointer to PolicyPlatformTypeVAndroidForWork
+ PolicyPlatformTypePAndroidForWork = &_PolicyPlatformTypePAndroidForWork
+ // PolicyPlatformTypePIOS is a pointer to PolicyPlatformTypeVIOS
+ PolicyPlatformTypePIOS = &_PolicyPlatformTypePIOS
+ // PolicyPlatformTypePMacOS is a pointer to PolicyPlatformTypeVMacOS
+ PolicyPlatformTypePMacOS = &_PolicyPlatformTypePMacOS
+ // PolicyPlatformTypePWindowsPhone81 is a pointer to PolicyPlatformTypeVWindowsPhone81
+ PolicyPlatformTypePWindowsPhone81 = &_PolicyPlatformTypePWindowsPhone81
+ // PolicyPlatformTypePWindows81AndLater is a pointer to PolicyPlatformTypeVWindows81AndLater
+ PolicyPlatformTypePWindows81AndLater = &_PolicyPlatformTypePWindows81AndLater
+ // PolicyPlatformTypePWindows10AndLater is a pointer to PolicyPlatformTypeVWindows10AndLater
+ PolicyPlatformTypePWindows10AndLater = &_PolicyPlatformTypePWindows10AndLater
+ // PolicyPlatformTypePAndroidWorkProfile is a pointer to PolicyPlatformTypeVAndroidWorkProfile
+ PolicyPlatformTypePAndroidWorkProfile = &_PolicyPlatformTypePAndroidWorkProfile
+ // PolicyPlatformTypePAll is a pointer to PolicyPlatformTypeVAll
+ PolicyPlatformTypePAll = &_PolicyPlatformTypePAll
+)
+
+var (
+ _PolicyPlatformTypePAndroid = PolicyPlatformTypeVAndroid
+ _PolicyPlatformTypePAndroidForWork = PolicyPlatformTypeVAndroidForWork
+ _PolicyPlatformTypePIOS = PolicyPlatformTypeVIOS
+ _PolicyPlatformTypePMacOS = PolicyPlatformTypeVMacOS
+ _PolicyPlatformTypePWindowsPhone81 = PolicyPlatformTypeVWindowsPhone81
+ _PolicyPlatformTypePWindows81AndLater = PolicyPlatformTypeVWindows81AndLater
+ _PolicyPlatformTypePWindows10AndLater = PolicyPlatformTypeVWindows10AndLater
+ _PolicyPlatformTypePAndroidWorkProfile = PolicyPlatformTypeVAndroidWorkProfile
+ _PolicyPlatformTypePAll = PolicyPlatformTypeVAll
+)
+
+// PolicySetStatus undocumented
+type PolicySetStatus string
+
+const (
+ // PolicySetStatusVUnknown undocumented
+ PolicySetStatusVUnknown PolicySetStatus = "unknown"
+ // PolicySetStatusVValidating undocumented
+ PolicySetStatusVValidating PolicySetStatus = "validating"
+ // PolicySetStatusVPartialSuccess undocumented
+ PolicySetStatusVPartialSuccess PolicySetStatus = "partialSuccess"
+ // PolicySetStatusVSuccess undocumented
+ PolicySetStatusVSuccess PolicySetStatus = "success"
+ // PolicySetStatusVError undocumented
+ PolicySetStatusVError PolicySetStatus = "error"
+ // PolicySetStatusVNotAssigned undocumented
+ PolicySetStatusVNotAssigned PolicySetStatus = "notAssigned"
+)
+
+var (
+ // PolicySetStatusPUnknown is a pointer to PolicySetStatusVUnknown
+ PolicySetStatusPUnknown = &_PolicySetStatusPUnknown
+ // PolicySetStatusPValidating is a pointer to PolicySetStatusVValidating
+ PolicySetStatusPValidating = &_PolicySetStatusPValidating
+ // PolicySetStatusPPartialSuccess is a pointer to PolicySetStatusVPartialSuccess
+ PolicySetStatusPPartialSuccess = &_PolicySetStatusPPartialSuccess
+ // PolicySetStatusPSuccess is a pointer to PolicySetStatusVSuccess
+ PolicySetStatusPSuccess = &_PolicySetStatusPSuccess
+ // PolicySetStatusPError is a pointer to PolicySetStatusVError
+ PolicySetStatusPError = &_PolicySetStatusPError
+ // PolicySetStatusPNotAssigned is a pointer to PolicySetStatusVNotAssigned
+ PolicySetStatusPNotAssigned = &_PolicySetStatusPNotAssigned
+)
+
+var (
+ _PolicySetStatusPUnknown = PolicySetStatusVUnknown
+ _PolicySetStatusPValidating = PolicySetStatusVValidating
+ _PolicySetStatusPPartialSuccess = PolicySetStatusVPartialSuccess
+ _PolicySetStatusPSuccess = PolicySetStatusVSuccess
+ _PolicySetStatusPError = PolicySetStatusVError
+ _PolicySetStatusPNotAssigned = PolicySetStatusVNotAssigned
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPower.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPower.go
new file mode 100644
index 00000000..0ebd242a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPower.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PowerActionType undocumented
+type PowerActionType string
+
+const (
+ // PowerActionTypeVNotConfigured undocumented
+ PowerActionTypeVNotConfigured PowerActionType = "notConfigured"
+ // PowerActionTypeVNoAction undocumented
+ PowerActionTypeVNoAction PowerActionType = "noAction"
+ // PowerActionTypeVSleep undocumented
+ PowerActionTypeVSleep PowerActionType = "sleep"
+ // PowerActionTypeVHibernate undocumented
+ PowerActionTypeVHibernate PowerActionType = "hibernate"
+ // PowerActionTypeVShutdown undocumented
+ PowerActionTypeVShutdown PowerActionType = "shutdown"
+)
+
+var (
+ // PowerActionTypePNotConfigured is a pointer to PowerActionTypeVNotConfigured
+ PowerActionTypePNotConfigured = &_PowerActionTypePNotConfigured
+ // PowerActionTypePNoAction is a pointer to PowerActionTypeVNoAction
+ PowerActionTypePNoAction = &_PowerActionTypePNoAction
+ // PowerActionTypePSleep is a pointer to PowerActionTypeVSleep
+ PowerActionTypePSleep = &_PowerActionTypePSleep
+ // PowerActionTypePHibernate is a pointer to PowerActionTypeVHibernate
+ PowerActionTypePHibernate = &_PowerActionTypePHibernate
+ // PowerActionTypePShutdown is a pointer to PowerActionTypeVShutdown
+ PowerActionTypePShutdown = &_PowerActionTypePShutdown
+)
+
+var (
+ _PowerActionTypePNotConfigured = PowerActionTypeVNotConfigured
+ _PowerActionTypePNoAction = PowerActionTypeVNoAction
+ _PowerActionTypePSleep = PowerActionTypeVSleep
+ _PowerActionTypePHibernate = PowerActionTypeVHibernate
+ _PowerActionTypePShutdown = PowerActionTypeVShutdown
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPrerelease.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPrerelease.go
new file mode 100644
index 00000000..9b2ab6aa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPrerelease.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrereleaseFeatures undocumented
+type PrereleaseFeatures string
+
+const (
+ // PrereleaseFeaturesVUserDefined undocumented
+ PrereleaseFeaturesVUserDefined PrereleaseFeatures = "userDefined"
+ // PrereleaseFeaturesVSettingsOnly undocumented
+ PrereleaseFeaturesVSettingsOnly PrereleaseFeatures = "settingsOnly"
+ // PrereleaseFeaturesVSettingsAndExperimentations undocumented
+ PrereleaseFeaturesVSettingsAndExperimentations PrereleaseFeatures = "settingsAndExperimentations"
+ // PrereleaseFeaturesVNotAllowed undocumented
+ PrereleaseFeaturesVNotAllowed PrereleaseFeatures = "notAllowed"
+)
+
+var (
+ // PrereleaseFeaturesPUserDefined is a pointer to PrereleaseFeaturesVUserDefined
+ PrereleaseFeaturesPUserDefined = &_PrereleaseFeaturesPUserDefined
+ // PrereleaseFeaturesPSettingsOnly is a pointer to PrereleaseFeaturesVSettingsOnly
+ PrereleaseFeaturesPSettingsOnly = &_PrereleaseFeaturesPSettingsOnly
+ // PrereleaseFeaturesPSettingsAndExperimentations is a pointer to PrereleaseFeaturesVSettingsAndExperimentations
+ PrereleaseFeaturesPSettingsAndExperimentations = &_PrereleaseFeaturesPSettingsAndExperimentations
+ // PrereleaseFeaturesPNotAllowed is a pointer to PrereleaseFeaturesVNotAllowed
+ PrereleaseFeaturesPNotAllowed = &_PrereleaseFeaturesPNotAllowed
+)
+
+var (
+ _PrereleaseFeaturesPUserDefined = PrereleaseFeaturesVUserDefined
+ _PrereleaseFeaturesPSettingsOnly = PrereleaseFeaturesVSettingsOnly
+ _PrereleaseFeaturesPSettingsAndExperimentations = PrereleaseFeaturesVSettingsAndExperimentations
+ _PrereleaseFeaturesPNotAllowed = PrereleaseFeaturesVNotAllowed
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumPriority.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPriority.go
new file mode 100644
index 00000000..7a522a2a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumPriority.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Priority undocumented
+type Priority string
+
+const (
+ // PriorityVNone undocumented
+ PriorityVNone Priority = "None"
+ // PriorityVHigh undocumented
+ PriorityVHigh Priority = "High"
+ // PriorityVLow undocumented
+ PriorityVLow Priority = "Low"
+)
+
+var (
+ // PriorityPNone is a pointer to PriorityVNone
+ PriorityPNone = &_PriorityPNone
+ // PriorityPHigh is a pointer to PriorityVHigh
+ PriorityPHigh = &_PriorityPHigh
+ // PriorityPLow is a pointer to PriorityVLow
+ PriorityPLow = &_PriorityPLow
+)
+
+var (
+ _PriorityPNone = PriorityVNone
+ _PriorityPHigh = PriorityVHigh
+ _PriorityPLow = PriorityVLow
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumProcess.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProcess.go
new file mode 100644
index 00000000..e5a33f0c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProcess.go
@@ -0,0 +1,50 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProcessIntegrityLevel undocumented
+type ProcessIntegrityLevel string
+
+const (
+ // ProcessIntegrityLevelVUnknown undocumented
+ ProcessIntegrityLevelVUnknown ProcessIntegrityLevel = "unknown"
+ // ProcessIntegrityLevelVUntrusted undocumented
+ ProcessIntegrityLevelVUntrusted ProcessIntegrityLevel = "untrusted"
+ // ProcessIntegrityLevelVLow undocumented
+ ProcessIntegrityLevelVLow ProcessIntegrityLevel = "low"
+ // ProcessIntegrityLevelVMedium undocumented
+ ProcessIntegrityLevelVMedium ProcessIntegrityLevel = "medium"
+ // ProcessIntegrityLevelVHigh undocumented
+ ProcessIntegrityLevelVHigh ProcessIntegrityLevel = "high"
+ // ProcessIntegrityLevelVSystem undocumented
+ ProcessIntegrityLevelVSystem ProcessIntegrityLevel = "system"
+ // ProcessIntegrityLevelVUnknownFutureValue undocumented
+ ProcessIntegrityLevelVUnknownFutureValue ProcessIntegrityLevel = "unknownFutureValue"
+)
+
+var (
+ // ProcessIntegrityLevelPUnknown is a pointer to ProcessIntegrityLevelVUnknown
+ ProcessIntegrityLevelPUnknown = &_ProcessIntegrityLevelPUnknown
+ // ProcessIntegrityLevelPUntrusted is a pointer to ProcessIntegrityLevelVUntrusted
+ ProcessIntegrityLevelPUntrusted = &_ProcessIntegrityLevelPUntrusted
+ // ProcessIntegrityLevelPLow is a pointer to ProcessIntegrityLevelVLow
+ ProcessIntegrityLevelPLow = &_ProcessIntegrityLevelPLow
+ // ProcessIntegrityLevelPMedium is a pointer to ProcessIntegrityLevelVMedium
+ ProcessIntegrityLevelPMedium = &_ProcessIntegrityLevelPMedium
+ // ProcessIntegrityLevelPHigh is a pointer to ProcessIntegrityLevelVHigh
+ ProcessIntegrityLevelPHigh = &_ProcessIntegrityLevelPHigh
+ // ProcessIntegrityLevelPSystem is a pointer to ProcessIntegrityLevelVSystem
+ ProcessIntegrityLevelPSystem = &_ProcessIntegrityLevelPSystem
+ // ProcessIntegrityLevelPUnknownFutureValue is a pointer to ProcessIntegrityLevelVUnknownFutureValue
+ ProcessIntegrityLevelPUnknownFutureValue = &_ProcessIntegrityLevelPUnknownFutureValue
+)
+
+var (
+ _ProcessIntegrityLevelPUnknown = ProcessIntegrityLevelVUnknown
+ _ProcessIntegrityLevelPUntrusted = ProcessIntegrityLevelVUntrusted
+ _ProcessIntegrityLevelPLow = ProcessIntegrityLevelVLow
+ _ProcessIntegrityLevelPMedium = ProcessIntegrityLevelVMedium
+ _ProcessIntegrityLevelPHigh = ProcessIntegrityLevelVHigh
+ _ProcessIntegrityLevelPSystem = ProcessIntegrityLevelVSystem
+ _ProcessIntegrityLevelPUnknownFutureValue = ProcessIntegrityLevelVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumProperty.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProperty.go
new file mode 100644
index 00000000..1d58087a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProperty.go
@@ -0,0 +1,60 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PropertyType undocumented
+type PropertyType string
+
+const (
+ // PropertyTypeVString undocumented
+ PropertyTypeVString PropertyType = "String"
+ // PropertyTypeVInt64 undocumented
+ PropertyTypeVInt64 PropertyType = "Int64"
+ // PropertyTypeVDouble undocumented
+ PropertyTypeVDouble PropertyType = "Double"
+ // PropertyTypeVDateTime undocumented
+ PropertyTypeVDateTime PropertyType = "DateTime"
+ // PropertyTypeVBoolean undocumented
+ PropertyTypeVBoolean PropertyType = "Boolean"
+ // PropertyTypeVStringCollection undocumented
+ PropertyTypeVStringCollection PropertyType = "StringCollection"
+ // PropertyTypeVInt64Collection undocumented
+ PropertyTypeVInt64Collection PropertyType = "Int64Collection"
+ // PropertyTypeVDoubleCollection undocumented
+ PropertyTypeVDoubleCollection PropertyType = "DoubleCollection"
+ // PropertyTypeVDateTimeCollection undocumented
+ PropertyTypeVDateTimeCollection PropertyType = "DateTimeCollection"
+)
+
+var (
+ // PropertyTypePString is a pointer to PropertyTypeVString
+ PropertyTypePString = &_PropertyTypePString
+ // PropertyTypePInt64 is a pointer to PropertyTypeVInt64
+ PropertyTypePInt64 = &_PropertyTypePInt64
+ // PropertyTypePDouble is a pointer to PropertyTypeVDouble
+ PropertyTypePDouble = &_PropertyTypePDouble
+ // PropertyTypePDateTime is a pointer to PropertyTypeVDateTime
+ PropertyTypePDateTime = &_PropertyTypePDateTime
+ // PropertyTypePBoolean is a pointer to PropertyTypeVBoolean
+ PropertyTypePBoolean = &_PropertyTypePBoolean
+ // PropertyTypePStringCollection is a pointer to PropertyTypeVStringCollection
+ PropertyTypePStringCollection = &_PropertyTypePStringCollection
+ // PropertyTypePInt64Collection is a pointer to PropertyTypeVInt64Collection
+ PropertyTypePInt64Collection = &_PropertyTypePInt64Collection
+ // PropertyTypePDoubleCollection is a pointer to PropertyTypeVDoubleCollection
+ PropertyTypePDoubleCollection = &_PropertyTypePDoubleCollection
+ // PropertyTypePDateTimeCollection is a pointer to PropertyTypeVDateTimeCollection
+ PropertyTypePDateTimeCollection = &_PropertyTypePDateTimeCollection
+)
+
+var (
+ _PropertyTypePString = PropertyTypeVString
+ _PropertyTypePInt64 = PropertyTypeVInt64
+ _PropertyTypePDouble = PropertyTypeVDouble
+ _PropertyTypePDateTime = PropertyTypeVDateTime
+ _PropertyTypePBoolean = PropertyTypeVBoolean
+ _PropertyTypePStringCollection = PropertyTypeVStringCollection
+ _PropertyTypePInt64Collection = PropertyTypeVInt64Collection
+ _PropertyTypePDoubleCollection = PropertyTypeVDoubleCollection
+ _PropertyTypePDateTimeCollection = PropertyTypeVDateTimeCollection
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumProvisioning.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProvisioning.go
new file mode 100644
index 00000000..b5f41643
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumProvisioning.go
@@ -0,0 +1,82 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisioningResult undocumented
+type ProvisioningResult string
+
+const (
+ // ProvisioningResultVSuccess undocumented
+ ProvisioningResultVSuccess ProvisioningResult = "success"
+ // ProvisioningResultVFailure undocumented
+ ProvisioningResultVFailure ProvisioningResult = "failure"
+ // ProvisioningResultVSkipped undocumented
+ ProvisioningResultVSkipped ProvisioningResult = "skipped"
+ // ProvisioningResultVUnknownFutureValue undocumented
+ ProvisioningResultVUnknownFutureValue ProvisioningResult = "unknownFutureValue"
+)
+
+var (
+ // ProvisioningResultPSuccess is a pointer to ProvisioningResultVSuccess
+ ProvisioningResultPSuccess = &_ProvisioningResultPSuccess
+ // ProvisioningResultPFailure is a pointer to ProvisioningResultVFailure
+ ProvisioningResultPFailure = &_ProvisioningResultPFailure
+ // ProvisioningResultPSkipped is a pointer to ProvisioningResultVSkipped
+ ProvisioningResultPSkipped = &_ProvisioningResultPSkipped
+ // ProvisioningResultPUnknownFutureValue is a pointer to ProvisioningResultVUnknownFutureValue
+ ProvisioningResultPUnknownFutureValue = &_ProvisioningResultPUnknownFutureValue
+)
+
+var (
+ _ProvisioningResultPSuccess = ProvisioningResultVSuccess
+ _ProvisioningResultPFailure = ProvisioningResultVFailure
+ _ProvisioningResultPSkipped = ProvisioningResultVSkipped
+ _ProvisioningResultPUnknownFutureValue = ProvisioningResultVUnknownFutureValue
+)
+
+// ProvisioningStepType undocumented
+type ProvisioningStepType string
+
+const (
+ // ProvisioningStepTypeVImport undocumented
+ ProvisioningStepTypeVImport ProvisioningStepType = "import"
+ // ProvisioningStepTypeVScoping undocumented
+ ProvisioningStepTypeVScoping ProvisioningStepType = "scoping"
+ // ProvisioningStepTypeVMatching undocumented
+ ProvisioningStepTypeVMatching ProvisioningStepType = "matching"
+ // ProvisioningStepTypeVProcessing undocumented
+ ProvisioningStepTypeVProcessing ProvisioningStepType = "processing"
+ // ProvisioningStepTypeVReferenceResolution undocumented
+ ProvisioningStepTypeVReferenceResolution ProvisioningStepType = "referenceResolution"
+ // ProvisioningStepTypeVExport undocumented
+ ProvisioningStepTypeVExport ProvisioningStepType = "export"
+ // ProvisioningStepTypeVUnknownFutureValue undocumented
+ ProvisioningStepTypeVUnknownFutureValue ProvisioningStepType = "unknownFutureValue"
+)
+
+var (
+ // ProvisioningStepTypePImport is a pointer to ProvisioningStepTypeVImport
+ ProvisioningStepTypePImport = &_ProvisioningStepTypePImport
+ // ProvisioningStepTypePScoping is a pointer to ProvisioningStepTypeVScoping
+ ProvisioningStepTypePScoping = &_ProvisioningStepTypePScoping
+ // ProvisioningStepTypePMatching is a pointer to ProvisioningStepTypeVMatching
+ ProvisioningStepTypePMatching = &_ProvisioningStepTypePMatching
+ // ProvisioningStepTypePProcessing is a pointer to ProvisioningStepTypeVProcessing
+ ProvisioningStepTypePProcessing = &_ProvisioningStepTypePProcessing
+ // ProvisioningStepTypePReferenceResolution is a pointer to ProvisioningStepTypeVReferenceResolution
+ ProvisioningStepTypePReferenceResolution = &_ProvisioningStepTypePReferenceResolution
+ // ProvisioningStepTypePExport is a pointer to ProvisioningStepTypeVExport
+ ProvisioningStepTypePExport = &_ProvisioningStepTypePExport
+ // ProvisioningStepTypePUnknownFutureValue is a pointer to ProvisioningStepTypeVUnknownFutureValue
+ ProvisioningStepTypePUnknownFutureValue = &_ProvisioningStepTypePUnknownFutureValue
+)
+
+var (
+ _ProvisioningStepTypePImport = ProvisioningStepTypeVImport
+ _ProvisioningStepTypePScoping = ProvisioningStepTypeVScoping
+ _ProvisioningStepTypePMatching = ProvisioningStepTypeVMatching
+ _ProvisioningStepTypePProcessing = ProvisioningStepTypeVProcessing
+ _ProvisioningStepTypePReferenceResolution = ProvisioningStepTypeVReferenceResolution
+ _ProvisioningStepTypePExport = ProvisioningStepTypeVExport
+ _ProvisioningStepTypePUnknownFutureValue = ProvisioningStepTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumQuarantine.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumQuarantine.go
new file mode 100644
index 00000000..c87c32a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumQuarantine.go
@@ -0,0 +1,50 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// QuarantineReason undocumented
+type QuarantineReason string
+
+const (
+ // QuarantineReasonVEncounteredBaseEscrowThreshold undocumented
+ QuarantineReasonVEncounteredBaseEscrowThreshold QuarantineReason = "EncounteredBaseEscrowThreshold"
+ // QuarantineReasonVEncounteredTotalEscrowThreshold undocumented
+ QuarantineReasonVEncounteredTotalEscrowThreshold QuarantineReason = "EncounteredTotalEscrowThreshold"
+ // QuarantineReasonVEncounteredEscrowProportionThreshold undocumented
+ QuarantineReasonVEncounteredEscrowProportionThreshold QuarantineReason = "EncounteredEscrowProportionThreshold"
+ // QuarantineReasonVEncounteredQuarantineException undocumented
+ QuarantineReasonVEncounteredQuarantineException QuarantineReason = "EncounteredQuarantineException"
+ // QuarantineReasonVUnknown undocumented
+ QuarantineReasonVUnknown QuarantineReason = "Unknown"
+ // QuarantineReasonVQuarantinedOnDemand undocumented
+ QuarantineReasonVQuarantinedOnDemand QuarantineReason = "QuarantinedOnDemand"
+ // QuarantineReasonVTooManyDeletes undocumented
+ QuarantineReasonVTooManyDeletes QuarantineReason = "TooManyDeletes"
+)
+
+var (
+ // QuarantineReasonPEncounteredBaseEscrowThreshold is a pointer to QuarantineReasonVEncounteredBaseEscrowThreshold
+ QuarantineReasonPEncounteredBaseEscrowThreshold = &_QuarantineReasonPEncounteredBaseEscrowThreshold
+ // QuarantineReasonPEncounteredTotalEscrowThreshold is a pointer to QuarantineReasonVEncounteredTotalEscrowThreshold
+ QuarantineReasonPEncounteredTotalEscrowThreshold = &_QuarantineReasonPEncounteredTotalEscrowThreshold
+ // QuarantineReasonPEncounteredEscrowProportionThreshold is a pointer to QuarantineReasonVEncounteredEscrowProportionThreshold
+ QuarantineReasonPEncounteredEscrowProportionThreshold = &_QuarantineReasonPEncounteredEscrowProportionThreshold
+ // QuarantineReasonPEncounteredQuarantineException is a pointer to QuarantineReasonVEncounteredQuarantineException
+ QuarantineReasonPEncounteredQuarantineException = &_QuarantineReasonPEncounteredQuarantineException
+ // QuarantineReasonPUnknown is a pointer to QuarantineReasonVUnknown
+ QuarantineReasonPUnknown = &_QuarantineReasonPUnknown
+ // QuarantineReasonPQuarantinedOnDemand is a pointer to QuarantineReasonVQuarantinedOnDemand
+ QuarantineReasonPQuarantinedOnDemand = &_QuarantineReasonPQuarantinedOnDemand
+ // QuarantineReasonPTooManyDeletes is a pointer to QuarantineReasonVTooManyDeletes
+ QuarantineReasonPTooManyDeletes = &_QuarantineReasonPTooManyDeletes
+)
+
+var (
+ _QuarantineReasonPEncounteredBaseEscrowThreshold = QuarantineReasonVEncounteredBaseEscrowThreshold
+ _QuarantineReasonPEncounteredTotalEscrowThreshold = QuarantineReasonVEncounteredTotalEscrowThreshold
+ _QuarantineReasonPEncounteredEscrowProportionThreshold = QuarantineReasonVEncounteredEscrowProportionThreshold
+ _QuarantineReasonPEncounteredQuarantineException = QuarantineReasonVEncounteredQuarantineException
+ _QuarantineReasonPUnknown = QuarantineReasonVUnknown
+ _QuarantineReasonPQuarantinedOnDemand = QuarantineReasonVQuarantinedOnDemand
+ _QuarantineReasonPTooManyDeletes = QuarantineReasonVTooManyDeletes
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRating.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRating.go
new file mode 100644
index 00000000..b838a199
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRating.go
@@ -0,0 +1,881 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RatingAppsType undocumented
+type RatingAppsType string
+
+const (
+ // RatingAppsTypeVAllAllowed undocumented
+ RatingAppsTypeVAllAllowed RatingAppsType = "allAllowed"
+ // RatingAppsTypeVAllBlocked undocumented
+ RatingAppsTypeVAllBlocked RatingAppsType = "allBlocked"
+ // RatingAppsTypeVAgesAbove4 undocumented
+ RatingAppsTypeVAgesAbove4 RatingAppsType = "agesAbove4"
+ // RatingAppsTypeVAgesAbove9 undocumented
+ RatingAppsTypeVAgesAbove9 RatingAppsType = "agesAbove9"
+ // RatingAppsTypeVAgesAbove12 undocumented
+ RatingAppsTypeVAgesAbove12 RatingAppsType = "agesAbove12"
+ // RatingAppsTypeVAgesAbove17 undocumented
+ RatingAppsTypeVAgesAbove17 RatingAppsType = "agesAbove17"
+)
+
+var (
+ // RatingAppsTypePAllAllowed is a pointer to RatingAppsTypeVAllAllowed
+ RatingAppsTypePAllAllowed = &_RatingAppsTypePAllAllowed
+ // RatingAppsTypePAllBlocked is a pointer to RatingAppsTypeVAllBlocked
+ RatingAppsTypePAllBlocked = &_RatingAppsTypePAllBlocked
+ // RatingAppsTypePAgesAbove4 is a pointer to RatingAppsTypeVAgesAbove4
+ RatingAppsTypePAgesAbove4 = &_RatingAppsTypePAgesAbove4
+ // RatingAppsTypePAgesAbove9 is a pointer to RatingAppsTypeVAgesAbove9
+ RatingAppsTypePAgesAbove9 = &_RatingAppsTypePAgesAbove9
+ // RatingAppsTypePAgesAbove12 is a pointer to RatingAppsTypeVAgesAbove12
+ RatingAppsTypePAgesAbove12 = &_RatingAppsTypePAgesAbove12
+ // RatingAppsTypePAgesAbove17 is a pointer to RatingAppsTypeVAgesAbove17
+ RatingAppsTypePAgesAbove17 = &_RatingAppsTypePAgesAbove17
+)
+
+var (
+ _RatingAppsTypePAllAllowed = RatingAppsTypeVAllAllowed
+ _RatingAppsTypePAllBlocked = RatingAppsTypeVAllBlocked
+ _RatingAppsTypePAgesAbove4 = RatingAppsTypeVAgesAbove4
+ _RatingAppsTypePAgesAbove9 = RatingAppsTypeVAgesAbove9
+ _RatingAppsTypePAgesAbove12 = RatingAppsTypeVAgesAbove12
+ _RatingAppsTypePAgesAbove17 = RatingAppsTypeVAgesAbove17
+)
+
+// RatingAustraliaMoviesType undocumented
+type RatingAustraliaMoviesType string
+
+const (
+ // RatingAustraliaMoviesTypeVAllAllowed undocumented
+ RatingAustraliaMoviesTypeVAllAllowed RatingAustraliaMoviesType = "allAllowed"
+ // RatingAustraliaMoviesTypeVAllBlocked undocumented
+ RatingAustraliaMoviesTypeVAllBlocked RatingAustraliaMoviesType = "allBlocked"
+ // RatingAustraliaMoviesTypeVGeneral undocumented
+ RatingAustraliaMoviesTypeVGeneral RatingAustraliaMoviesType = "general"
+ // RatingAustraliaMoviesTypeVParentalGuidance undocumented
+ RatingAustraliaMoviesTypeVParentalGuidance RatingAustraliaMoviesType = "parentalGuidance"
+ // RatingAustraliaMoviesTypeVMature undocumented
+ RatingAustraliaMoviesTypeVMature RatingAustraliaMoviesType = "mature"
+ // RatingAustraliaMoviesTypeVAgesAbove15 undocumented
+ RatingAustraliaMoviesTypeVAgesAbove15 RatingAustraliaMoviesType = "agesAbove15"
+ // RatingAustraliaMoviesTypeVAgesAbove18 undocumented
+ RatingAustraliaMoviesTypeVAgesAbove18 RatingAustraliaMoviesType = "agesAbove18"
+)
+
+var (
+ // RatingAustraliaMoviesTypePAllAllowed is a pointer to RatingAustraliaMoviesTypeVAllAllowed
+ RatingAustraliaMoviesTypePAllAllowed = &_RatingAustraliaMoviesTypePAllAllowed
+ // RatingAustraliaMoviesTypePAllBlocked is a pointer to RatingAustraliaMoviesTypeVAllBlocked
+ RatingAustraliaMoviesTypePAllBlocked = &_RatingAustraliaMoviesTypePAllBlocked
+ // RatingAustraliaMoviesTypePGeneral is a pointer to RatingAustraliaMoviesTypeVGeneral
+ RatingAustraliaMoviesTypePGeneral = &_RatingAustraliaMoviesTypePGeneral
+ // RatingAustraliaMoviesTypePParentalGuidance is a pointer to RatingAustraliaMoviesTypeVParentalGuidance
+ RatingAustraliaMoviesTypePParentalGuidance = &_RatingAustraliaMoviesTypePParentalGuidance
+ // RatingAustraliaMoviesTypePMature is a pointer to RatingAustraliaMoviesTypeVMature
+ RatingAustraliaMoviesTypePMature = &_RatingAustraliaMoviesTypePMature
+ // RatingAustraliaMoviesTypePAgesAbove15 is a pointer to RatingAustraliaMoviesTypeVAgesAbove15
+ RatingAustraliaMoviesTypePAgesAbove15 = &_RatingAustraliaMoviesTypePAgesAbove15
+ // RatingAustraliaMoviesTypePAgesAbove18 is a pointer to RatingAustraliaMoviesTypeVAgesAbove18
+ RatingAustraliaMoviesTypePAgesAbove18 = &_RatingAustraliaMoviesTypePAgesAbove18
+)
+
+var (
+ _RatingAustraliaMoviesTypePAllAllowed = RatingAustraliaMoviesTypeVAllAllowed
+ _RatingAustraliaMoviesTypePAllBlocked = RatingAustraliaMoviesTypeVAllBlocked
+ _RatingAustraliaMoviesTypePGeneral = RatingAustraliaMoviesTypeVGeneral
+ _RatingAustraliaMoviesTypePParentalGuidance = RatingAustraliaMoviesTypeVParentalGuidance
+ _RatingAustraliaMoviesTypePMature = RatingAustraliaMoviesTypeVMature
+ _RatingAustraliaMoviesTypePAgesAbove15 = RatingAustraliaMoviesTypeVAgesAbove15
+ _RatingAustraliaMoviesTypePAgesAbove18 = RatingAustraliaMoviesTypeVAgesAbove18
+)
+
+// RatingAustraliaTelevisionType undocumented
+type RatingAustraliaTelevisionType string
+
+const (
+ // RatingAustraliaTelevisionTypeVAllAllowed undocumented
+ RatingAustraliaTelevisionTypeVAllAllowed RatingAustraliaTelevisionType = "allAllowed"
+ // RatingAustraliaTelevisionTypeVAllBlocked undocumented
+ RatingAustraliaTelevisionTypeVAllBlocked RatingAustraliaTelevisionType = "allBlocked"
+ // RatingAustraliaTelevisionTypeVPreschoolers undocumented
+ RatingAustraliaTelevisionTypeVPreschoolers RatingAustraliaTelevisionType = "preschoolers"
+ // RatingAustraliaTelevisionTypeVChildren undocumented
+ RatingAustraliaTelevisionTypeVChildren RatingAustraliaTelevisionType = "children"
+ // RatingAustraliaTelevisionTypeVGeneral undocumented
+ RatingAustraliaTelevisionTypeVGeneral RatingAustraliaTelevisionType = "general"
+ // RatingAustraliaTelevisionTypeVParentalGuidance undocumented
+ RatingAustraliaTelevisionTypeVParentalGuidance RatingAustraliaTelevisionType = "parentalGuidance"
+ // RatingAustraliaTelevisionTypeVMature undocumented
+ RatingAustraliaTelevisionTypeVMature RatingAustraliaTelevisionType = "mature"
+ // RatingAustraliaTelevisionTypeVAgesAbove15 undocumented
+ RatingAustraliaTelevisionTypeVAgesAbove15 RatingAustraliaTelevisionType = "agesAbove15"
+ // RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence undocumented
+ RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence RatingAustraliaTelevisionType = "agesAbove15AdultViolence"
+)
+
+var (
+ // RatingAustraliaTelevisionTypePAllAllowed is a pointer to RatingAustraliaTelevisionTypeVAllAllowed
+ RatingAustraliaTelevisionTypePAllAllowed = &_RatingAustraliaTelevisionTypePAllAllowed
+ // RatingAustraliaTelevisionTypePAllBlocked is a pointer to RatingAustraliaTelevisionTypeVAllBlocked
+ RatingAustraliaTelevisionTypePAllBlocked = &_RatingAustraliaTelevisionTypePAllBlocked
+ // RatingAustraliaTelevisionTypePPreschoolers is a pointer to RatingAustraliaTelevisionTypeVPreschoolers
+ RatingAustraliaTelevisionTypePPreschoolers = &_RatingAustraliaTelevisionTypePPreschoolers
+ // RatingAustraliaTelevisionTypePChildren is a pointer to RatingAustraliaTelevisionTypeVChildren
+ RatingAustraliaTelevisionTypePChildren = &_RatingAustraliaTelevisionTypePChildren
+ // RatingAustraliaTelevisionTypePGeneral is a pointer to RatingAustraliaTelevisionTypeVGeneral
+ RatingAustraliaTelevisionTypePGeneral = &_RatingAustraliaTelevisionTypePGeneral
+ // RatingAustraliaTelevisionTypePParentalGuidance is a pointer to RatingAustraliaTelevisionTypeVParentalGuidance
+ RatingAustraliaTelevisionTypePParentalGuidance = &_RatingAustraliaTelevisionTypePParentalGuidance
+ // RatingAustraliaTelevisionTypePMature is a pointer to RatingAustraliaTelevisionTypeVMature
+ RatingAustraliaTelevisionTypePMature = &_RatingAustraliaTelevisionTypePMature
+ // RatingAustraliaTelevisionTypePAgesAbove15 is a pointer to RatingAustraliaTelevisionTypeVAgesAbove15
+ RatingAustraliaTelevisionTypePAgesAbove15 = &_RatingAustraliaTelevisionTypePAgesAbove15
+ // RatingAustraliaTelevisionTypePAgesAbove15AdultViolence is a pointer to RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence
+ RatingAustraliaTelevisionTypePAgesAbove15AdultViolence = &_RatingAustraliaTelevisionTypePAgesAbove15AdultViolence
+)
+
+var (
+ _RatingAustraliaTelevisionTypePAllAllowed = RatingAustraliaTelevisionTypeVAllAllowed
+ _RatingAustraliaTelevisionTypePAllBlocked = RatingAustraliaTelevisionTypeVAllBlocked
+ _RatingAustraliaTelevisionTypePPreschoolers = RatingAustraliaTelevisionTypeVPreschoolers
+ _RatingAustraliaTelevisionTypePChildren = RatingAustraliaTelevisionTypeVChildren
+ _RatingAustraliaTelevisionTypePGeneral = RatingAustraliaTelevisionTypeVGeneral
+ _RatingAustraliaTelevisionTypePParentalGuidance = RatingAustraliaTelevisionTypeVParentalGuidance
+ _RatingAustraliaTelevisionTypePMature = RatingAustraliaTelevisionTypeVMature
+ _RatingAustraliaTelevisionTypePAgesAbove15 = RatingAustraliaTelevisionTypeVAgesAbove15
+ _RatingAustraliaTelevisionTypePAgesAbove15AdultViolence = RatingAustraliaTelevisionTypeVAgesAbove15AdultViolence
+)
+
+// RatingCanadaMoviesType undocumented
+type RatingCanadaMoviesType string
+
+const (
+ // RatingCanadaMoviesTypeVAllAllowed undocumented
+ RatingCanadaMoviesTypeVAllAllowed RatingCanadaMoviesType = "allAllowed"
+ // RatingCanadaMoviesTypeVAllBlocked undocumented
+ RatingCanadaMoviesTypeVAllBlocked RatingCanadaMoviesType = "allBlocked"
+ // RatingCanadaMoviesTypeVGeneral undocumented
+ RatingCanadaMoviesTypeVGeneral RatingCanadaMoviesType = "general"
+ // RatingCanadaMoviesTypeVParentalGuidance undocumented
+ RatingCanadaMoviesTypeVParentalGuidance RatingCanadaMoviesType = "parentalGuidance"
+ // RatingCanadaMoviesTypeVAgesAbove14 undocumented
+ RatingCanadaMoviesTypeVAgesAbove14 RatingCanadaMoviesType = "agesAbove14"
+ // RatingCanadaMoviesTypeVAgesAbove18 undocumented
+ RatingCanadaMoviesTypeVAgesAbove18 RatingCanadaMoviesType = "agesAbove18"
+ // RatingCanadaMoviesTypeVRestricted undocumented
+ RatingCanadaMoviesTypeVRestricted RatingCanadaMoviesType = "restricted"
+)
+
+var (
+ // RatingCanadaMoviesTypePAllAllowed is a pointer to RatingCanadaMoviesTypeVAllAllowed
+ RatingCanadaMoviesTypePAllAllowed = &_RatingCanadaMoviesTypePAllAllowed
+ // RatingCanadaMoviesTypePAllBlocked is a pointer to RatingCanadaMoviesTypeVAllBlocked
+ RatingCanadaMoviesTypePAllBlocked = &_RatingCanadaMoviesTypePAllBlocked
+ // RatingCanadaMoviesTypePGeneral is a pointer to RatingCanadaMoviesTypeVGeneral
+ RatingCanadaMoviesTypePGeneral = &_RatingCanadaMoviesTypePGeneral
+ // RatingCanadaMoviesTypePParentalGuidance is a pointer to RatingCanadaMoviesTypeVParentalGuidance
+ RatingCanadaMoviesTypePParentalGuidance = &_RatingCanadaMoviesTypePParentalGuidance
+ // RatingCanadaMoviesTypePAgesAbove14 is a pointer to RatingCanadaMoviesTypeVAgesAbove14
+ RatingCanadaMoviesTypePAgesAbove14 = &_RatingCanadaMoviesTypePAgesAbove14
+ // RatingCanadaMoviesTypePAgesAbove18 is a pointer to RatingCanadaMoviesTypeVAgesAbove18
+ RatingCanadaMoviesTypePAgesAbove18 = &_RatingCanadaMoviesTypePAgesAbove18
+ // RatingCanadaMoviesTypePRestricted is a pointer to RatingCanadaMoviesTypeVRestricted
+ RatingCanadaMoviesTypePRestricted = &_RatingCanadaMoviesTypePRestricted
+)
+
+var (
+ _RatingCanadaMoviesTypePAllAllowed = RatingCanadaMoviesTypeVAllAllowed
+ _RatingCanadaMoviesTypePAllBlocked = RatingCanadaMoviesTypeVAllBlocked
+ _RatingCanadaMoviesTypePGeneral = RatingCanadaMoviesTypeVGeneral
+ _RatingCanadaMoviesTypePParentalGuidance = RatingCanadaMoviesTypeVParentalGuidance
+ _RatingCanadaMoviesTypePAgesAbove14 = RatingCanadaMoviesTypeVAgesAbove14
+ _RatingCanadaMoviesTypePAgesAbove18 = RatingCanadaMoviesTypeVAgesAbove18
+ _RatingCanadaMoviesTypePRestricted = RatingCanadaMoviesTypeVRestricted
+)
+
+// RatingCanadaTelevisionType undocumented
+type RatingCanadaTelevisionType string
+
+const (
+ // RatingCanadaTelevisionTypeVAllAllowed undocumented
+ RatingCanadaTelevisionTypeVAllAllowed RatingCanadaTelevisionType = "allAllowed"
+ // RatingCanadaTelevisionTypeVAllBlocked undocumented
+ RatingCanadaTelevisionTypeVAllBlocked RatingCanadaTelevisionType = "allBlocked"
+ // RatingCanadaTelevisionTypeVChildren undocumented
+ RatingCanadaTelevisionTypeVChildren RatingCanadaTelevisionType = "children"
+ // RatingCanadaTelevisionTypeVChildrenAbove8 undocumented
+ RatingCanadaTelevisionTypeVChildrenAbove8 RatingCanadaTelevisionType = "childrenAbove8"
+ // RatingCanadaTelevisionTypeVGeneral undocumented
+ RatingCanadaTelevisionTypeVGeneral RatingCanadaTelevisionType = "general"
+ // RatingCanadaTelevisionTypeVParentalGuidance undocumented
+ RatingCanadaTelevisionTypeVParentalGuidance RatingCanadaTelevisionType = "parentalGuidance"
+ // RatingCanadaTelevisionTypeVAgesAbove14 undocumented
+ RatingCanadaTelevisionTypeVAgesAbove14 RatingCanadaTelevisionType = "agesAbove14"
+ // RatingCanadaTelevisionTypeVAgesAbove18 undocumented
+ RatingCanadaTelevisionTypeVAgesAbove18 RatingCanadaTelevisionType = "agesAbove18"
+)
+
+var (
+ // RatingCanadaTelevisionTypePAllAllowed is a pointer to RatingCanadaTelevisionTypeVAllAllowed
+ RatingCanadaTelevisionTypePAllAllowed = &_RatingCanadaTelevisionTypePAllAllowed
+ // RatingCanadaTelevisionTypePAllBlocked is a pointer to RatingCanadaTelevisionTypeVAllBlocked
+ RatingCanadaTelevisionTypePAllBlocked = &_RatingCanadaTelevisionTypePAllBlocked
+ // RatingCanadaTelevisionTypePChildren is a pointer to RatingCanadaTelevisionTypeVChildren
+ RatingCanadaTelevisionTypePChildren = &_RatingCanadaTelevisionTypePChildren
+ // RatingCanadaTelevisionTypePChildrenAbove8 is a pointer to RatingCanadaTelevisionTypeVChildrenAbove8
+ RatingCanadaTelevisionTypePChildrenAbove8 = &_RatingCanadaTelevisionTypePChildrenAbove8
+ // RatingCanadaTelevisionTypePGeneral is a pointer to RatingCanadaTelevisionTypeVGeneral
+ RatingCanadaTelevisionTypePGeneral = &_RatingCanadaTelevisionTypePGeneral
+ // RatingCanadaTelevisionTypePParentalGuidance is a pointer to RatingCanadaTelevisionTypeVParentalGuidance
+ RatingCanadaTelevisionTypePParentalGuidance = &_RatingCanadaTelevisionTypePParentalGuidance
+ // RatingCanadaTelevisionTypePAgesAbove14 is a pointer to RatingCanadaTelevisionTypeVAgesAbove14
+ RatingCanadaTelevisionTypePAgesAbove14 = &_RatingCanadaTelevisionTypePAgesAbove14
+ // RatingCanadaTelevisionTypePAgesAbove18 is a pointer to RatingCanadaTelevisionTypeVAgesAbove18
+ RatingCanadaTelevisionTypePAgesAbove18 = &_RatingCanadaTelevisionTypePAgesAbove18
+)
+
+var (
+ _RatingCanadaTelevisionTypePAllAllowed = RatingCanadaTelevisionTypeVAllAllowed
+ _RatingCanadaTelevisionTypePAllBlocked = RatingCanadaTelevisionTypeVAllBlocked
+ _RatingCanadaTelevisionTypePChildren = RatingCanadaTelevisionTypeVChildren
+ _RatingCanadaTelevisionTypePChildrenAbove8 = RatingCanadaTelevisionTypeVChildrenAbove8
+ _RatingCanadaTelevisionTypePGeneral = RatingCanadaTelevisionTypeVGeneral
+ _RatingCanadaTelevisionTypePParentalGuidance = RatingCanadaTelevisionTypeVParentalGuidance
+ _RatingCanadaTelevisionTypePAgesAbove14 = RatingCanadaTelevisionTypeVAgesAbove14
+ _RatingCanadaTelevisionTypePAgesAbove18 = RatingCanadaTelevisionTypeVAgesAbove18
+)
+
+// RatingFranceMoviesType undocumented
+type RatingFranceMoviesType string
+
+const (
+ // RatingFranceMoviesTypeVAllAllowed undocumented
+ RatingFranceMoviesTypeVAllAllowed RatingFranceMoviesType = "allAllowed"
+ // RatingFranceMoviesTypeVAllBlocked undocumented
+ RatingFranceMoviesTypeVAllBlocked RatingFranceMoviesType = "allBlocked"
+ // RatingFranceMoviesTypeVAgesAbove10 undocumented
+ RatingFranceMoviesTypeVAgesAbove10 RatingFranceMoviesType = "agesAbove10"
+ // RatingFranceMoviesTypeVAgesAbove12 undocumented
+ RatingFranceMoviesTypeVAgesAbove12 RatingFranceMoviesType = "agesAbove12"
+ // RatingFranceMoviesTypeVAgesAbove16 undocumented
+ RatingFranceMoviesTypeVAgesAbove16 RatingFranceMoviesType = "agesAbove16"
+ // RatingFranceMoviesTypeVAgesAbove18 undocumented
+ RatingFranceMoviesTypeVAgesAbove18 RatingFranceMoviesType = "agesAbove18"
+)
+
+var (
+ // RatingFranceMoviesTypePAllAllowed is a pointer to RatingFranceMoviesTypeVAllAllowed
+ RatingFranceMoviesTypePAllAllowed = &_RatingFranceMoviesTypePAllAllowed
+ // RatingFranceMoviesTypePAllBlocked is a pointer to RatingFranceMoviesTypeVAllBlocked
+ RatingFranceMoviesTypePAllBlocked = &_RatingFranceMoviesTypePAllBlocked
+ // RatingFranceMoviesTypePAgesAbove10 is a pointer to RatingFranceMoviesTypeVAgesAbove10
+ RatingFranceMoviesTypePAgesAbove10 = &_RatingFranceMoviesTypePAgesAbove10
+ // RatingFranceMoviesTypePAgesAbove12 is a pointer to RatingFranceMoviesTypeVAgesAbove12
+ RatingFranceMoviesTypePAgesAbove12 = &_RatingFranceMoviesTypePAgesAbove12
+ // RatingFranceMoviesTypePAgesAbove16 is a pointer to RatingFranceMoviesTypeVAgesAbove16
+ RatingFranceMoviesTypePAgesAbove16 = &_RatingFranceMoviesTypePAgesAbove16
+ // RatingFranceMoviesTypePAgesAbove18 is a pointer to RatingFranceMoviesTypeVAgesAbove18
+ RatingFranceMoviesTypePAgesAbove18 = &_RatingFranceMoviesTypePAgesAbove18
+)
+
+var (
+ _RatingFranceMoviesTypePAllAllowed = RatingFranceMoviesTypeVAllAllowed
+ _RatingFranceMoviesTypePAllBlocked = RatingFranceMoviesTypeVAllBlocked
+ _RatingFranceMoviesTypePAgesAbove10 = RatingFranceMoviesTypeVAgesAbove10
+ _RatingFranceMoviesTypePAgesAbove12 = RatingFranceMoviesTypeVAgesAbove12
+ _RatingFranceMoviesTypePAgesAbove16 = RatingFranceMoviesTypeVAgesAbove16
+ _RatingFranceMoviesTypePAgesAbove18 = RatingFranceMoviesTypeVAgesAbove18
+)
+
+// RatingFranceTelevisionType undocumented
+type RatingFranceTelevisionType string
+
+const (
+ // RatingFranceTelevisionTypeVAllAllowed undocumented
+ RatingFranceTelevisionTypeVAllAllowed RatingFranceTelevisionType = "allAllowed"
+ // RatingFranceTelevisionTypeVAllBlocked undocumented
+ RatingFranceTelevisionTypeVAllBlocked RatingFranceTelevisionType = "allBlocked"
+ // RatingFranceTelevisionTypeVAgesAbove10 undocumented
+ RatingFranceTelevisionTypeVAgesAbove10 RatingFranceTelevisionType = "agesAbove10"
+ // RatingFranceTelevisionTypeVAgesAbove12 undocumented
+ RatingFranceTelevisionTypeVAgesAbove12 RatingFranceTelevisionType = "agesAbove12"
+ // RatingFranceTelevisionTypeVAgesAbove16 undocumented
+ RatingFranceTelevisionTypeVAgesAbove16 RatingFranceTelevisionType = "agesAbove16"
+ // RatingFranceTelevisionTypeVAgesAbove18 undocumented
+ RatingFranceTelevisionTypeVAgesAbove18 RatingFranceTelevisionType = "agesAbove18"
+)
+
+var (
+ // RatingFranceTelevisionTypePAllAllowed is a pointer to RatingFranceTelevisionTypeVAllAllowed
+ RatingFranceTelevisionTypePAllAllowed = &_RatingFranceTelevisionTypePAllAllowed
+ // RatingFranceTelevisionTypePAllBlocked is a pointer to RatingFranceTelevisionTypeVAllBlocked
+ RatingFranceTelevisionTypePAllBlocked = &_RatingFranceTelevisionTypePAllBlocked
+ // RatingFranceTelevisionTypePAgesAbove10 is a pointer to RatingFranceTelevisionTypeVAgesAbove10
+ RatingFranceTelevisionTypePAgesAbove10 = &_RatingFranceTelevisionTypePAgesAbove10
+ // RatingFranceTelevisionTypePAgesAbove12 is a pointer to RatingFranceTelevisionTypeVAgesAbove12
+ RatingFranceTelevisionTypePAgesAbove12 = &_RatingFranceTelevisionTypePAgesAbove12
+ // RatingFranceTelevisionTypePAgesAbove16 is a pointer to RatingFranceTelevisionTypeVAgesAbove16
+ RatingFranceTelevisionTypePAgesAbove16 = &_RatingFranceTelevisionTypePAgesAbove16
+ // RatingFranceTelevisionTypePAgesAbove18 is a pointer to RatingFranceTelevisionTypeVAgesAbove18
+ RatingFranceTelevisionTypePAgesAbove18 = &_RatingFranceTelevisionTypePAgesAbove18
+)
+
+var (
+ _RatingFranceTelevisionTypePAllAllowed = RatingFranceTelevisionTypeVAllAllowed
+ _RatingFranceTelevisionTypePAllBlocked = RatingFranceTelevisionTypeVAllBlocked
+ _RatingFranceTelevisionTypePAgesAbove10 = RatingFranceTelevisionTypeVAgesAbove10
+ _RatingFranceTelevisionTypePAgesAbove12 = RatingFranceTelevisionTypeVAgesAbove12
+ _RatingFranceTelevisionTypePAgesAbove16 = RatingFranceTelevisionTypeVAgesAbove16
+ _RatingFranceTelevisionTypePAgesAbove18 = RatingFranceTelevisionTypeVAgesAbove18
+)
+
+// RatingGermanyMoviesType undocumented
+type RatingGermanyMoviesType string
+
+const (
+ // RatingGermanyMoviesTypeVAllAllowed undocumented
+ RatingGermanyMoviesTypeVAllAllowed RatingGermanyMoviesType = "allAllowed"
+ // RatingGermanyMoviesTypeVAllBlocked undocumented
+ RatingGermanyMoviesTypeVAllBlocked RatingGermanyMoviesType = "allBlocked"
+ // RatingGermanyMoviesTypeVGeneral undocumented
+ RatingGermanyMoviesTypeVGeneral RatingGermanyMoviesType = "general"
+ // RatingGermanyMoviesTypeVAgesAbove6 undocumented
+ RatingGermanyMoviesTypeVAgesAbove6 RatingGermanyMoviesType = "agesAbove6"
+ // RatingGermanyMoviesTypeVAgesAbove12 undocumented
+ RatingGermanyMoviesTypeVAgesAbove12 RatingGermanyMoviesType = "agesAbove12"
+ // RatingGermanyMoviesTypeVAgesAbove16 undocumented
+ RatingGermanyMoviesTypeVAgesAbove16 RatingGermanyMoviesType = "agesAbove16"
+ // RatingGermanyMoviesTypeVAdults undocumented
+ RatingGermanyMoviesTypeVAdults RatingGermanyMoviesType = "adults"
+)
+
+var (
+ // RatingGermanyMoviesTypePAllAllowed is a pointer to RatingGermanyMoviesTypeVAllAllowed
+ RatingGermanyMoviesTypePAllAllowed = &_RatingGermanyMoviesTypePAllAllowed
+ // RatingGermanyMoviesTypePAllBlocked is a pointer to RatingGermanyMoviesTypeVAllBlocked
+ RatingGermanyMoviesTypePAllBlocked = &_RatingGermanyMoviesTypePAllBlocked
+ // RatingGermanyMoviesTypePGeneral is a pointer to RatingGermanyMoviesTypeVGeneral
+ RatingGermanyMoviesTypePGeneral = &_RatingGermanyMoviesTypePGeneral
+ // RatingGermanyMoviesTypePAgesAbove6 is a pointer to RatingGermanyMoviesTypeVAgesAbove6
+ RatingGermanyMoviesTypePAgesAbove6 = &_RatingGermanyMoviesTypePAgesAbove6
+ // RatingGermanyMoviesTypePAgesAbove12 is a pointer to RatingGermanyMoviesTypeVAgesAbove12
+ RatingGermanyMoviesTypePAgesAbove12 = &_RatingGermanyMoviesTypePAgesAbove12
+ // RatingGermanyMoviesTypePAgesAbove16 is a pointer to RatingGermanyMoviesTypeVAgesAbove16
+ RatingGermanyMoviesTypePAgesAbove16 = &_RatingGermanyMoviesTypePAgesAbove16
+ // RatingGermanyMoviesTypePAdults is a pointer to RatingGermanyMoviesTypeVAdults
+ RatingGermanyMoviesTypePAdults = &_RatingGermanyMoviesTypePAdults
+)
+
+var (
+ _RatingGermanyMoviesTypePAllAllowed = RatingGermanyMoviesTypeVAllAllowed
+ _RatingGermanyMoviesTypePAllBlocked = RatingGermanyMoviesTypeVAllBlocked
+ _RatingGermanyMoviesTypePGeneral = RatingGermanyMoviesTypeVGeneral
+ _RatingGermanyMoviesTypePAgesAbove6 = RatingGermanyMoviesTypeVAgesAbove6
+ _RatingGermanyMoviesTypePAgesAbove12 = RatingGermanyMoviesTypeVAgesAbove12
+ _RatingGermanyMoviesTypePAgesAbove16 = RatingGermanyMoviesTypeVAgesAbove16
+ _RatingGermanyMoviesTypePAdults = RatingGermanyMoviesTypeVAdults
+)
+
+// RatingGermanyTelevisionType undocumented
+type RatingGermanyTelevisionType string
+
+const (
+ // RatingGermanyTelevisionTypeVAllAllowed undocumented
+ RatingGermanyTelevisionTypeVAllAllowed RatingGermanyTelevisionType = "allAllowed"
+ // RatingGermanyTelevisionTypeVAllBlocked undocumented
+ RatingGermanyTelevisionTypeVAllBlocked RatingGermanyTelevisionType = "allBlocked"
+ // RatingGermanyTelevisionTypeVGeneral undocumented
+ RatingGermanyTelevisionTypeVGeneral RatingGermanyTelevisionType = "general"
+ // RatingGermanyTelevisionTypeVAgesAbove6 undocumented
+ RatingGermanyTelevisionTypeVAgesAbove6 RatingGermanyTelevisionType = "agesAbove6"
+ // RatingGermanyTelevisionTypeVAgesAbove12 undocumented
+ RatingGermanyTelevisionTypeVAgesAbove12 RatingGermanyTelevisionType = "agesAbove12"
+ // RatingGermanyTelevisionTypeVAgesAbove16 undocumented
+ RatingGermanyTelevisionTypeVAgesAbove16 RatingGermanyTelevisionType = "agesAbove16"
+ // RatingGermanyTelevisionTypeVAdults undocumented
+ RatingGermanyTelevisionTypeVAdults RatingGermanyTelevisionType = "adults"
+)
+
+var (
+ // RatingGermanyTelevisionTypePAllAllowed is a pointer to RatingGermanyTelevisionTypeVAllAllowed
+ RatingGermanyTelevisionTypePAllAllowed = &_RatingGermanyTelevisionTypePAllAllowed
+ // RatingGermanyTelevisionTypePAllBlocked is a pointer to RatingGermanyTelevisionTypeVAllBlocked
+ RatingGermanyTelevisionTypePAllBlocked = &_RatingGermanyTelevisionTypePAllBlocked
+ // RatingGermanyTelevisionTypePGeneral is a pointer to RatingGermanyTelevisionTypeVGeneral
+ RatingGermanyTelevisionTypePGeneral = &_RatingGermanyTelevisionTypePGeneral
+ // RatingGermanyTelevisionTypePAgesAbove6 is a pointer to RatingGermanyTelevisionTypeVAgesAbove6
+ RatingGermanyTelevisionTypePAgesAbove6 = &_RatingGermanyTelevisionTypePAgesAbove6
+ // RatingGermanyTelevisionTypePAgesAbove12 is a pointer to RatingGermanyTelevisionTypeVAgesAbove12
+ RatingGermanyTelevisionTypePAgesAbove12 = &_RatingGermanyTelevisionTypePAgesAbove12
+ // RatingGermanyTelevisionTypePAgesAbove16 is a pointer to RatingGermanyTelevisionTypeVAgesAbove16
+ RatingGermanyTelevisionTypePAgesAbove16 = &_RatingGermanyTelevisionTypePAgesAbove16
+ // RatingGermanyTelevisionTypePAdults is a pointer to RatingGermanyTelevisionTypeVAdults
+ RatingGermanyTelevisionTypePAdults = &_RatingGermanyTelevisionTypePAdults
+)
+
+var (
+ _RatingGermanyTelevisionTypePAllAllowed = RatingGermanyTelevisionTypeVAllAllowed
+ _RatingGermanyTelevisionTypePAllBlocked = RatingGermanyTelevisionTypeVAllBlocked
+ _RatingGermanyTelevisionTypePGeneral = RatingGermanyTelevisionTypeVGeneral
+ _RatingGermanyTelevisionTypePAgesAbove6 = RatingGermanyTelevisionTypeVAgesAbove6
+ _RatingGermanyTelevisionTypePAgesAbove12 = RatingGermanyTelevisionTypeVAgesAbove12
+ _RatingGermanyTelevisionTypePAgesAbove16 = RatingGermanyTelevisionTypeVAgesAbove16
+ _RatingGermanyTelevisionTypePAdults = RatingGermanyTelevisionTypeVAdults
+)
+
+// RatingIrelandMoviesType undocumented
+type RatingIrelandMoviesType string
+
+const (
+ // RatingIrelandMoviesTypeVAllAllowed undocumented
+ RatingIrelandMoviesTypeVAllAllowed RatingIrelandMoviesType = "allAllowed"
+ // RatingIrelandMoviesTypeVAllBlocked undocumented
+ RatingIrelandMoviesTypeVAllBlocked RatingIrelandMoviesType = "allBlocked"
+ // RatingIrelandMoviesTypeVGeneral undocumented
+ RatingIrelandMoviesTypeVGeneral RatingIrelandMoviesType = "general"
+ // RatingIrelandMoviesTypeVParentalGuidance undocumented
+ RatingIrelandMoviesTypeVParentalGuidance RatingIrelandMoviesType = "parentalGuidance"
+ // RatingIrelandMoviesTypeVAgesAbove12 undocumented
+ RatingIrelandMoviesTypeVAgesAbove12 RatingIrelandMoviesType = "agesAbove12"
+ // RatingIrelandMoviesTypeVAgesAbove15 undocumented
+ RatingIrelandMoviesTypeVAgesAbove15 RatingIrelandMoviesType = "agesAbove15"
+ // RatingIrelandMoviesTypeVAgesAbove16 undocumented
+ RatingIrelandMoviesTypeVAgesAbove16 RatingIrelandMoviesType = "agesAbove16"
+ // RatingIrelandMoviesTypeVAdults undocumented
+ RatingIrelandMoviesTypeVAdults RatingIrelandMoviesType = "adults"
+)
+
+var (
+ // RatingIrelandMoviesTypePAllAllowed is a pointer to RatingIrelandMoviesTypeVAllAllowed
+ RatingIrelandMoviesTypePAllAllowed = &_RatingIrelandMoviesTypePAllAllowed
+ // RatingIrelandMoviesTypePAllBlocked is a pointer to RatingIrelandMoviesTypeVAllBlocked
+ RatingIrelandMoviesTypePAllBlocked = &_RatingIrelandMoviesTypePAllBlocked
+ // RatingIrelandMoviesTypePGeneral is a pointer to RatingIrelandMoviesTypeVGeneral
+ RatingIrelandMoviesTypePGeneral = &_RatingIrelandMoviesTypePGeneral
+ // RatingIrelandMoviesTypePParentalGuidance is a pointer to RatingIrelandMoviesTypeVParentalGuidance
+ RatingIrelandMoviesTypePParentalGuidance = &_RatingIrelandMoviesTypePParentalGuidance
+ // RatingIrelandMoviesTypePAgesAbove12 is a pointer to RatingIrelandMoviesTypeVAgesAbove12
+ RatingIrelandMoviesTypePAgesAbove12 = &_RatingIrelandMoviesTypePAgesAbove12
+ // RatingIrelandMoviesTypePAgesAbove15 is a pointer to RatingIrelandMoviesTypeVAgesAbove15
+ RatingIrelandMoviesTypePAgesAbove15 = &_RatingIrelandMoviesTypePAgesAbove15
+ // RatingIrelandMoviesTypePAgesAbove16 is a pointer to RatingIrelandMoviesTypeVAgesAbove16
+ RatingIrelandMoviesTypePAgesAbove16 = &_RatingIrelandMoviesTypePAgesAbove16
+ // RatingIrelandMoviesTypePAdults is a pointer to RatingIrelandMoviesTypeVAdults
+ RatingIrelandMoviesTypePAdults = &_RatingIrelandMoviesTypePAdults
+)
+
+var (
+ _RatingIrelandMoviesTypePAllAllowed = RatingIrelandMoviesTypeVAllAllowed
+ _RatingIrelandMoviesTypePAllBlocked = RatingIrelandMoviesTypeVAllBlocked
+ _RatingIrelandMoviesTypePGeneral = RatingIrelandMoviesTypeVGeneral
+ _RatingIrelandMoviesTypePParentalGuidance = RatingIrelandMoviesTypeVParentalGuidance
+ _RatingIrelandMoviesTypePAgesAbove12 = RatingIrelandMoviesTypeVAgesAbove12
+ _RatingIrelandMoviesTypePAgesAbove15 = RatingIrelandMoviesTypeVAgesAbove15
+ _RatingIrelandMoviesTypePAgesAbove16 = RatingIrelandMoviesTypeVAgesAbove16
+ _RatingIrelandMoviesTypePAdults = RatingIrelandMoviesTypeVAdults
+)
+
+// RatingIrelandTelevisionType undocumented
+type RatingIrelandTelevisionType string
+
+const (
+ // RatingIrelandTelevisionTypeVAllAllowed undocumented
+ RatingIrelandTelevisionTypeVAllAllowed RatingIrelandTelevisionType = "allAllowed"
+ // RatingIrelandTelevisionTypeVAllBlocked undocumented
+ RatingIrelandTelevisionTypeVAllBlocked RatingIrelandTelevisionType = "allBlocked"
+ // RatingIrelandTelevisionTypeVGeneral undocumented
+ RatingIrelandTelevisionTypeVGeneral RatingIrelandTelevisionType = "general"
+ // RatingIrelandTelevisionTypeVChildren undocumented
+ RatingIrelandTelevisionTypeVChildren RatingIrelandTelevisionType = "children"
+ // RatingIrelandTelevisionTypeVYoungAdults undocumented
+ RatingIrelandTelevisionTypeVYoungAdults RatingIrelandTelevisionType = "youngAdults"
+ // RatingIrelandTelevisionTypeVParentalSupervision undocumented
+ RatingIrelandTelevisionTypeVParentalSupervision RatingIrelandTelevisionType = "parentalSupervision"
+ // RatingIrelandTelevisionTypeVMature undocumented
+ RatingIrelandTelevisionTypeVMature RatingIrelandTelevisionType = "mature"
+)
+
+var (
+ // RatingIrelandTelevisionTypePAllAllowed is a pointer to RatingIrelandTelevisionTypeVAllAllowed
+ RatingIrelandTelevisionTypePAllAllowed = &_RatingIrelandTelevisionTypePAllAllowed
+ // RatingIrelandTelevisionTypePAllBlocked is a pointer to RatingIrelandTelevisionTypeVAllBlocked
+ RatingIrelandTelevisionTypePAllBlocked = &_RatingIrelandTelevisionTypePAllBlocked
+ // RatingIrelandTelevisionTypePGeneral is a pointer to RatingIrelandTelevisionTypeVGeneral
+ RatingIrelandTelevisionTypePGeneral = &_RatingIrelandTelevisionTypePGeneral
+ // RatingIrelandTelevisionTypePChildren is a pointer to RatingIrelandTelevisionTypeVChildren
+ RatingIrelandTelevisionTypePChildren = &_RatingIrelandTelevisionTypePChildren
+ // RatingIrelandTelevisionTypePYoungAdults is a pointer to RatingIrelandTelevisionTypeVYoungAdults
+ RatingIrelandTelevisionTypePYoungAdults = &_RatingIrelandTelevisionTypePYoungAdults
+ // RatingIrelandTelevisionTypePParentalSupervision is a pointer to RatingIrelandTelevisionTypeVParentalSupervision
+ RatingIrelandTelevisionTypePParentalSupervision = &_RatingIrelandTelevisionTypePParentalSupervision
+ // RatingIrelandTelevisionTypePMature is a pointer to RatingIrelandTelevisionTypeVMature
+ RatingIrelandTelevisionTypePMature = &_RatingIrelandTelevisionTypePMature
+)
+
+var (
+ _RatingIrelandTelevisionTypePAllAllowed = RatingIrelandTelevisionTypeVAllAllowed
+ _RatingIrelandTelevisionTypePAllBlocked = RatingIrelandTelevisionTypeVAllBlocked
+ _RatingIrelandTelevisionTypePGeneral = RatingIrelandTelevisionTypeVGeneral
+ _RatingIrelandTelevisionTypePChildren = RatingIrelandTelevisionTypeVChildren
+ _RatingIrelandTelevisionTypePYoungAdults = RatingIrelandTelevisionTypeVYoungAdults
+ _RatingIrelandTelevisionTypePParentalSupervision = RatingIrelandTelevisionTypeVParentalSupervision
+ _RatingIrelandTelevisionTypePMature = RatingIrelandTelevisionTypeVMature
+)
+
+// RatingJapanMoviesType undocumented
+type RatingJapanMoviesType string
+
+const (
+ // RatingJapanMoviesTypeVAllAllowed undocumented
+ RatingJapanMoviesTypeVAllAllowed RatingJapanMoviesType = "allAllowed"
+ // RatingJapanMoviesTypeVAllBlocked undocumented
+ RatingJapanMoviesTypeVAllBlocked RatingJapanMoviesType = "allBlocked"
+ // RatingJapanMoviesTypeVGeneral undocumented
+ RatingJapanMoviesTypeVGeneral RatingJapanMoviesType = "general"
+ // RatingJapanMoviesTypeVParentalGuidance undocumented
+ RatingJapanMoviesTypeVParentalGuidance RatingJapanMoviesType = "parentalGuidance"
+ // RatingJapanMoviesTypeVAgesAbove15 undocumented
+ RatingJapanMoviesTypeVAgesAbove15 RatingJapanMoviesType = "agesAbove15"
+ // RatingJapanMoviesTypeVAgesAbove18 undocumented
+ RatingJapanMoviesTypeVAgesAbove18 RatingJapanMoviesType = "agesAbove18"
+)
+
+var (
+ // RatingJapanMoviesTypePAllAllowed is a pointer to RatingJapanMoviesTypeVAllAllowed
+ RatingJapanMoviesTypePAllAllowed = &_RatingJapanMoviesTypePAllAllowed
+ // RatingJapanMoviesTypePAllBlocked is a pointer to RatingJapanMoviesTypeVAllBlocked
+ RatingJapanMoviesTypePAllBlocked = &_RatingJapanMoviesTypePAllBlocked
+ // RatingJapanMoviesTypePGeneral is a pointer to RatingJapanMoviesTypeVGeneral
+ RatingJapanMoviesTypePGeneral = &_RatingJapanMoviesTypePGeneral
+ // RatingJapanMoviesTypePParentalGuidance is a pointer to RatingJapanMoviesTypeVParentalGuidance
+ RatingJapanMoviesTypePParentalGuidance = &_RatingJapanMoviesTypePParentalGuidance
+ // RatingJapanMoviesTypePAgesAbove15 is a pointer to RatingJapanMoviesTypeVAgesAbove15
+ RatingJapanMoviesTypePAgesAbove15 = &_RatingJapanMoviesTypePAgesAbove15
+ // RatingJapanMoviesTypePAgesAbove18 is a pointer to RatingJapanMoviesTypeVAgesAbove18
+ RatingJapanMoviesTypePAgesAbove18 = &_RatingJapanMoviesTypePAgesAbove18
+)
+
+var (
+ _RatingJapanMoviesTypePAllAllowed = RatingJapanMoviesTypeVAllAllowed
+ _RatingJapanMoviesTypePAllBlocked = RatingJapanMoviesTypeVAllBlocked
+ _RatingJapanMoviesTypePGeneral = RatingJapanMoviesTypeVGeneral
+ _RatingJapanMoviesTypePParentalGuidance = RatingJapanMoviesTypeVParentalGuidance
+ _RatingJapanMoviesTypePAgesAbove15 = RatingJapanMoviesTypeVAgesAbove15
+ _RatingJapanMoviesTypePAgesAbove18 = RatingJapanMoviesTypeVAgesAbove18
+)
+
+// RatingJapanTelevisionType undocumented
+type RatingJapanTelevisionType string
+
+const (
+ // RatingJapanTelevisionTypeVAllAllowed undocumented
+ RatingJapanTelevisionTypeVAllAllowed RatingJapanTelevisionType = "allAllowed"
+ // RatingJapanTelevisionTypeVAllBlocked undocumented
+ RatingJapanTelevisionTypeVAllBlocked RatingJapanTelevisionType = "allBlocked"
+ // RatingJapanTelevisionTypeVExplicitAllowed undocumented
+ RatingJapanTelevisionTypeVExplicitAllowed RatingJapanTelevisionType = "explicitAllowed"
+)
+
+var (
+ // RatingJapanTelevisionTypePAllAllowed is a pointer to RatingJapanTelevisionTypeVAllAllowed
+ RatingJapanTelevisionTypePAllAllowed = &_RatingJapanTelevisionTypePAllAllowed
+ // RatingJapanTelevisionTypePAllBlocked is a pointer to RatingJapanTelevisionTypeVAllBlocked
+ RatingJapanTelevisionTypePAllBlocked = &_RatingJapanTelevisionTypePAllBlocked
+ // RatingJapanTelevisionTypePExplicitAllowed is a pointer to RatingJapanTelevisionTypeVExplicitAllowed
+ RatingJapanTelevisionTypePExplicitAllowed = &_RatingJapanTelevisionTypePExplicitAllowed
+)
+
+var (
+ _RatingJapanTelevisionTypePAllAllowed = RatingJapanTelevisionTypeVAllAllowed
+ _RatingJapanTelevisionTypePAllBlocked = RatingJapanTelevisionTypeVAllBlocked
+ _RatingJapanTelevisionTypePExplicitAllowed = RatingJapanTelevisionTypeVExplicitAllowed
+)
+
+// RatingNewZealandMoviesType undocumented
+type RatingNewZealandMoviesType string
+
+const (
+ // RatingNewZealandMoviesTypeVAllAllowed undocumented
+ RatingNewZealandMoviesTypeVAllAllowed RatingNewZealandMoviesType = "allAllowed"
+ // RatingNewZealandMoviesTypeVAllBlocked undocumented
+ RatingNewZealandMoviesTypeVAllBlocked RatingNewZealandMoviesType = "allBlocked"
+ // RatingNewZealandMoviesTypeVGeneral undocumented
+ RatingNewZealandMoviesTypeVGeneral RatingNewZealandMoviesType = "general"
+ // RatingNewZealandMoviesTypeVParentalGuidance undocumented
+ RatingNewZealandMoviesTypeVParentalGuidance RatingNewZealandMoviesType = "parentalGuidance"
+ // RatingNewZealandMoviesTypeVMature undocumented
+ RatingNewZealandMoviesTypeVMature RatingNewZealandMoviesType = "mature"
+ // RatingNewZealandMoviesTypeVAgesAbove13 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove13 RatingNewZealandMoviesType = "agesAbove13"
+ // RatingNewZealandMoviesTypeVAgesAbove15 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove15 RatingNewZealandMoviesType = "agesAbove15"
+ // RatingNewZealandMoviesTypeVAgesAbove16 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove16 RatingNewZealandMoviesType = "agesAbove16"
+ // RatingNewZealandMoviesTypeVAgesAbove18 undocumented
+ RatingNewZealandMoviesTypeVAgesAbove18 RatingNewZealandMoviesType = "agesAbove18"
+ // RatingNewZealandMoviesTypeVRestricted undocumented
+ RatingNewZealandMoviesTypeVRestricted RatingNewZealandMoviesType = "restricted"
+ // RatingNewZealandMoviesTypeVAgesAbove16Restricted undocumented
+ RatingNewZealandMoviesTypeVAgesAbove16Restricted RatingNewZealandMoviesType = "agesAbove16Restricted"
+)
+
+var (
+ // RatingNewZealandMoviesTypePAllAllowed is a pointer to RatingNewZealandMoviesTypeVAllAllowed
+ RatingNewZealandMoviesTypePAllAllowed = &_RatingNewZealandMoviesTypePAllAllowed
+ // RatingNewZealandMoviesTypePAllBlocked is a pointer to RatingNewZealandMoviesTypeVAllBlocked
+ RatingNewZealandMoviesTypePAllBlocked = &_RatingNewZealandMoviesTypePAllBlocked
+ // RatingNewZealandMoviesTypePGeneral is a pointer to RatingNewZealandMoviesTypeVGeneral
+ RatingNewZealandMoviesTypePGeneral = &_RatingNewZealandMoviesTypePGeneral
+ // RatingNewZealandMoviesTypePParentalGuidance is a pointer to RatingNewZealandMoviesTypeVParentalGuidance
+ RatingNewZealandMoviesTypePParentalGuidance = &_RatingNewZealandMoviesTypePParentalGuidance
+ // RatingNewZealandMoviesTypePMature is a pointer to RatingNewZealandMoviesTypeVMature
+ RatingNewZealandMoviesTypePMature = &_RatingNewZealandMoviesTypePMature
+ // RatingNewZealandMoviesTypePAgesAbove13 is a pointer to RatingNewZealandMoviesTypeVAgesAbove13
+ RatingNewZealandMoviesTypePAgesAbove13 = &_RatingNewZealandMoviesTypePAgesAbove13
+ // RatingNewZealandMoviesTypePAgesAbove15 is a pointer to RatingNewZealandMoviesTypeVAgesAbove15
+ RatingNewZealandMoviesTypePAgesAbove15 = &_RatingNewZealandMoviesTypePAgesAbove15
+ // RatingNewZealandMoviesTypePAgesAbove16 is a pointer to RatingNewZealandMoviesTypeVAgesAbove16
+ RatingNewZealandMoviesTypePAgesAbove16 = &_RatingNewZealandMoviesTypePAgesAbove16
+ // RatingNewZealandMoviesTypePAgesAbove18 is a pointer to RatingNewZealandMoviesTypeVAgesAbove18
+ RatingNewZealandMoviesTypePAgesAbove18 = &_RatingNewZealandMoviesTypePAgesAbove18
+ // RatingNewZealandMoviesTypePRestricted is a pointer to RatingNewZealandMoviesTypeVRestricted
+ RatingNewZealandMoviesTypePRestricted = &_RatingNewZealandMoviesTypePRestricted
+ // RatingNewZealandMoviesTypePAgesAbove16Restricted is a pointer to RatingNewZealandMoviesTypeVAgesAbove16Restricted
+ RatingNewZealandMoviesTypePAgesAbove16Restricted = &_RatingNewZealandMoviesTypePAgesAbove16Restricted
+)
+
+var (
+ _RatingNewZealandMoviesTypePAllAllowed = RatingNewZealandMoviesTypeVAllAllowed
+ _RatingNewZealandMoviesTypePAllBlocked = RatingNewZealandMoviesTypeVAllBlocked
+ _RatingNewZealandMoviesTypePGeneral = RatingNewZealandMoviesTypeVGeneral
+ _RatingNewZealandMoviesTypePParentalGuidance = RatingNewZealandMoviesTypeVParentalGuidance
+ _RatingNewZealandMoviesTypePMature = RatingNewZealandMoviesTypeVMature
+ _RatingNewZealandMoviesTypePAgesAbove13 = RatingNewZealandMoviesTypeVAgesAbove13
+ _RatingNewZealandMoviesTypePAgesAbove15 = RatingNewZealandMoviesTypeVAgesAbove15
+ _RatingNewZealandMoviesTypePAgesAbove16 = RatingNewZealandMoviesTypeVAgesAbove16
+ _RatingNewZealandMoviesTypePAgesAbove18 = RatingNewZealandMoviesTypeVAgesAbove18
+ _RatingNewZealandMoviesTypePRestricted = RatingNewZealandMoviesTypeVRestricted
+ _RatingNewZealandMoviesTypePAgesAbove16Restricted = RatingNewZealandMoviesTypeVAgesAbove16Restricted
+)
+
+// RatingNewZealandTelevisionType undocumented
+type RatingNewZealandTelevisionType string
+
+const (
+ // RatingNewZealandTelevisionTypeVAllAllowed undocumented
+ RatingNewZealandTelevisionTypeVAllAllowed RatingNewZealandTelevisionType = "allAllowed"
+ // RatingNewZealandTelevisionTypeVAllBlocked undocumented
+ RatingNewZealandTelevisionTypeVAllBlocked RatingNewZealandTelevisionType = "allBlocked"
+ // RatingNewZealandTelevisionTypeVGeneral undocumented
+ RatingNewZealandTelevisionTypeVGeneral RatingNewZealandTelevisionType = "general"
+ // RatingNewZealandTelevisionTypeVParentalGuidance undocumented
+ RatingNewZealandTelevisionTypeVParentalGuidance RatingNewZealandTelevisionType = "parentalGuidance"
+ // RatingNewZealandTelevisionTypeVAdults undocumented
+ RatingNewZealandTelevisionTypeVAdults RatingNewZealandTelevisionType = "adults"
+)
+
+var (
+ // RatingNewZealandTelevisionTypePAllAllowed is a pointer to RatingNewZealandTelevisionTypeVAllAllowed
+ RatingNewZealandTelevisionTypePAllAllowed = &_RatingNewZealandTelevisionTypePAllAllowed
+ // RatingNewZealandTelevisionTypePAllBlocked is a pointer to RatingNewZealandTelevisionTypeVAllBlocked
+ RatingNewZealandTelevisionTypePAllBlocked = &_RatingNewZealandTelevisionTypePAllBlocked
+ // RatingNewZealandTelevisionTypePGeneral is a pointer to RatingNewZealandTelevisionTypeVGeneral
+ RatingNewZealandTelevisionTypePGeneral = &_RatingNewZealandTelevisionTypePGeneral
+ // RatingNewZealandTelevisionTypePParentalGuidance is a pointer to RatingNewZealandTelevisionTypeVParentalGuidance
+ RatingNewZealandTelevisionTypePParentalGuidance = &_RatingNewZealandTelevisionTypePParentalGuidance
+ // RatingNewZealandTelevisionTypePAdults is a pointer to RatingNewZealandTelevisionTypeVAdults
+ RatingNewZealandTelevisionTypePAdults = &_RatingNewZealandTelevisionTypePAdults
+)
+
+var (
+ _RatingNewZealandTelevisionTypePAllAllowed = RatingNewZealandTelevisionTypeVAllAllowed
+ _RatingNewZealandTelevisionTypePAllBlocked = RatingNewZealandTelevisionTypeVAllBlocked
+ _RatingNewZealandTelevisionTypePGeneral = RatingNewZealandTelevisionTypeVGeneral
+ _RatingNewZealandTelevisionTypePParentalGuidance = RatingNewZealandTelevisionTypeVParentalGuidance
+ _RatingNewZealandTelevisionTypePAdults = RatingNewZealandTelevisionTypeVAdults
+)
+
+// RatingUnitedKingdomMoviesType undocumented
+type RatingUnitedKingdomMoviesType string
+
+const (
+ // RatingUnitedKingdomMoviesTypeVAllAllowed undocumented
+ RatingUnitedKingdomMoviesTypeVAllAllowed RatingUnitedKingdomMoviesType = "allAllowed"
+ // RatingUnitedKingdomMoviesTypeVAllBlocked undocumented
+ RatingUnitedKingdomMoviesTypeVAllBlocked RatingUnitedKingdomMoviesType = "allBlocked"
+ // RatingUnitedKingdomMoviesTypeVGeneral undocumented
+ RatingUnitedKingdomMoviesTypeVGeneral RatingUnitedKingdomMoviesType = "general"
+ // RatingUnitedKingdomMoviesTypeVUniversalChildren undocumented
+ RatingUnitedKingdomMoviesTypeVUniversalChildren RatingUnitedKingdomMoviesType = "universalChildren"
+ // RatingUnitedKingdomMoviesTypeVParentalGuidance undocumented
+ RatingUnitedKingdomMoviesTypeVParentalGuidance RatingUnitedKingdomMoviesType = "parentalGuidance"
+ // RatingUnitedKingdomMoviesTypeVAgesAbove12Video undocumented
+ RatingUnitedKingdomMoviesTypeVAgesAbove12Video RatingUnitedKingdomMoviesType = "agesAbove12Video"
+ // RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema undocumented
+ RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema RatingUnitedKingdomMoviesType = "agesAbove12Cinema"
+ // RatingUnitedKingdomMoviesTypeVAgesAbove15 undocumented
+ RatingUnitedKingdomMoviesTypeVAgesAbove15 RatingUnitedKingdomMoviesType = "agesAbove15"
+ // RatingUnitedKingdomMoviesTypeVAdults undocumented
+ RatingUnitedKingdomMoviesTypeVAdults RatingUnitedKingdomMoviesType = "adults"
+)
+
+var (
+ // RatingUnitedKingdomMoviesTypePAllAllowed is a pointer to RatingUnitedKingdomMoviesTypeVAllAllowed
+ RatingUnitedKingdomMoviesTypePAllAllowed = &_RatingUnitedKingdomMoviesTypePAllAllowed
+ // RatingUnitedKingdomMoviesTypePAllBlocked is a pointer to RatingUnitedKingdomMoviesTypeVAllBlocked
+ RatingUnitedKingdomMoviesTypePAllBlocked = &_RatingUnitedKingdomMoviesTypePAllBlocked
+ // RatingUnitedKingdomMoviesTypePGeneral is a pointer to RatingUnitedKingdomMoviesTypeVGeneral
+ RatingUnitedKingdomMoviesTypePGeneral = &_RatingUnitedKingdomMoviesTypePGeneral
+ // RatingUnitedKingdomMoviesTypePUniversalChildren is a pointer to RatingUnitedKingdomMoviesTypeVUniversalChildren
+ RatingUnitedKingdomMoviesTypePUniversalChildren = &_RatingUnitedKingdomMoviesTypePUniversalChildren
+ // RatingUnitedKingdomMoviesTypePParentalGuidance is a pointer to RatingUnitedKingdomMoviesTypeVParentalGuidance
+ RatingUnitedKingdomMoviesTypePParentalGuidance = &_RatingUnitedKingdomMoviesTypePParentalGuidance
+ // RatingUnitedKingdomMoviesTypePAgesAbove12Video is a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove12Video
+ RatingUnitedKingdomMoviesTypePAgesAbove12Video = &_RatingUnitedKingdomMoviesTypePAgesAbove12Video
+ // RatingUnitedKingdomMoviesTypePAgesAbove12Cinema is a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema
+ RatingUnitedKingdomMoviesTypePAgesAbove12Cinema = &_RatingUnitedKingdomMoviesTypePAgesAbove12Cinema
+ // RatingUnitedKingdomMoviesTypePAgesAbove15 is a pointer to RatingUnitedKingdomMoviesTypeVAgesAbove15
+ RatingUnitedKingdomMoviesTypePAgesAbove15 = &_RatingUnitedKingdomMoviesTypePAgesAbove15
+ // RatingUnitedKingdomMoviesTypePAdults is a pointer to RatingUnitedKingdomMoviesTypeVAdults
+ RatingUnitedKingdomMoviesTypePAdults = &_RatingUnitedKingdomMoviesTypePAdults
+)
+
+var (
+ _RatingUnitedKingdomMoviesTypePAllAllowed = RatingUnitedKingdomMoviesTypeVAllAllowed
+ _RatingUnitedKingdomMoviesTypePAllBlocked = RatingUnitedKingdomMoviesTypeVAllBlocked
+ _RatingUnitedKingdomMoviesTypePGeneral = RatingUnitedKingdomMoviesTypeVGeneral
+ _RatingUnitedKingdomMoviesTypePUniversalChildren = RatingUnitedKingdomMoviesTypeVUniversalChildren
+ _RatingUnitedKingdomMoviesTypePParentalGuidance = RatingUnitedKingdomMoviesTypeVParentalGuidance
+ _RatingUnitedKingdomMoviesTypePAgesAbove12Video = RatingUnitedKingdomMoviesTypeVAgesAbove12Video
+ _RatingUnitedKingdomMoviesTypePAgesAbove12Cinema = RatingUnitedKingdomMoviesTypeVAgesAbove12Cinema
+ _RatingUnitedKingdomMoviesTypePAgesAbove15 = RatingUnitedKingdomMoviesTypeVAgesAbove15
+ _RatingUnitedKingdomMoviesTypePAdults = RatingUnitedKingdomMoviesTypeVAdults
+)
+
+// RatingUnitedKingdomTelevisionType undocumented
+type RatingUnitedKingdomTelevisionType string
+
+const (
+ // RatingUnitedKingdomTelevisionTypeVAllAllowed undocumented
+ RatingUnitedKingdomTelevisionTypeVAllAllowed RatingUnitedKingdomTelevisionType = "allAllowed"
+ // RatingUnitedKingdomTelevisionTypeVAllBlocked undocumented
+ RatingUnitedKingdomTelevisionTypeVAllBlocked RatingUnitedKingdomTelevisionType = "allBlocked"
+ // RatingUnitedKingdomTelevisionTypeVCaution undocumented
+ RatingUnitedKingdomTelevisionTypeVCaution RatingUnitedKingdomTelevisionType = "caution"
+)
+
+var (
+ // RatingUnitedKingdomTelevisionTypePAllAllowed is a pointer to RatingUnitedKingdomTelevisionTypeVAllAllowed
+ RatingUnitedKingdomTelevisionTypePAllAllowed = &_RatingUnitedKingdomTelevisionTypePAllAllowed
+ // RatingUnitedKingdomTelevisionTypePAllBlocked is a pointer to RatingUnitedKingdomTelevisionTypeVAllBlocked
+ RatingUnitedKingdomTelevisionTypePAllBlocked = &_RatingUnitedKingdomTelevisionTypePAllBlocked
+ // RatingUnitedKingdomTelevisionTypePCaution is a pointer to RatingUnitedKingdomTelevisionTypeVCaution
+ RatingUnitedKingdomTelevisionTypePCaution = &_RatingUnitedKingdomTelevisionTypePCaution
+)
+
+var (
+ _RatingUnitedKingdomTelevisionTypePAllAllowed = RatingUnitedKingdomTelevisionTypeVAllAllowed
+ _RatingUnitedKingdomTelevisionTypePAllBlocked = RatingUnitedKingdomTelevisionTypeVAllBlocked
+ _RatingUnitedKingdomTelevisionTypePCaution = RatingUnitedKingdomTelevisionTypeVCaution
+)
+
+// RatingUnitedStatesMoviesType undocumented
+type RatingUnitedStatesMoviesType string
+
+const (
+ // RatingUnitedStatesMoviesTypeVAllAllowed undocumented
+ RatingUnitedStatesMoviesTypeVAllAllowed RatingUnitedStatesMoviesType = "allAllowed"
+ // RatingUnitedStatesMoviesTypeVAllBlocked undocumented
+ RatingUnitedStatesMoviesTypeVAllBlocked RatingUnitedStatesMoviesType = "allBlocked"
+ // RatingUnitedStatesMoviesTypeVGeneral undocumented
+ RatingUnitedStatesMoviesTypeVGeneral RatingUnitedStatesMoviesType = "general"
+ // RatingUnitedStatesMoviesTypeVParentalGuidance undocumented
+ RatingUnitedStatesMoviesTypeVParentalGuidance RatingUnitedStatesMoviesType = "parentalGuidance"
+ // RatingUnitedStatesMoviesTypeVParentalGuidance13 undocumented
+ RatingUnitedStatesMoviesTypeVParentalGuidance13 RatingUnitedStatesMoviesType = "parentalGuidance13"
+ // RatingUnitedStatesMoviesTypeVRestricted undocumented
+ RatingUnitedStatesMoviesTypeVRestricted RatingUnitedStatesMoviesType = "restricted"
+ // RatingUnitedStatesMoviesTypeVAdults undocumented
+ RatingUnitedStatesMoviesTypeVAdults RatingUnitedStatesMoviesType = "adults"
+)
+
+var (
+ // RatingUnitedStatesMoviesTypePAllAllowed is a pointer to RatingUnitedStatesMoviesTypeVAllAllowed
+ RatingUnitedStatesMoviesTypePAllAllowed = &_RatingUnitedStatesMoviesTypePAllAllowed
+ // RatingUnitedStatesMoviesTypePAllBlocked is a pointer to RatingUnitedStatesMoviesTypeVAllBlocked
+ RatingUnitedStatesMoviesTypePAllBlocked = &_RatingUnitedStatesMoviesTypePAllBlocked
+ // RatingUnitedStatesMoviesTypePGeneral is a pointer to RatingUnitedStatesMoviesTypeVGeneral
+ RatingUnitedStatesMoviesTypePGeneral = &_RatingUnitedStatesMoviesTypePGeneral
+ // RatingUnitedStatesMoviesTypePParentalGuidance is a pointer to RatingUnitedStatesMoviesTypeVParentalGuidance
+ RatingUnitedStatesMoviesTypePParentalGuidance = &_RatingUnitedStatesMoviesTypePParentalGuidance
+ // RatingUnitedStatesMoviesTypePParentalGuidance13 is a pointer to RatingUnitedStatesMoviesTypeVParentalGuidance13
+ RatingUnitedStatesMoviesTypePParentalGuidance13 = &_RatingUnitedStatesMoviesTypePParentalGuidance13
+ // RatingUnitedStatesMoviesTypePRestricted is a pointer to RatingUnitedStatesMoviesTypeVRestricted
+ RatingUnitedStatesMoviesTypePRestricted = &_RatingUnitedStatesMoviesTypePRestricted
+ // RatingUnitedStatesMoviesTypePAdults is a pointer to RatingUnitedStatesMoviesTypeVAdults
+ RatingUnitedStatesMoviesTypePAdults = &_RatingUnitedStatesMoviesTypePAdults
+)
+
+var (
+ _RatingUnitedStatesMoviesTypePAllAllowed = RatingUnitedStatesMoviesTypeVAllAllowed
+ _RatingUnitedStatesMoviesTypePAllBlocked = RatingUnitedStatesMoviesTypeVAllBlocked
+ _RatingUnitedStatesMoviesTypePGeneral = RatingUnitedStatesMoviesTypeVGeneral
+ _RatingUnitedStatesMoviesTypePParentalGuidance = RatingUnitedStatesMoviesTypeVParentalGuidance
+ _RatingUnitedStatesMoviesTypePParentalGuidance13 = RatingUnitedStatesMoviesTypeVParentalGuidance13
+ _RatingUnitedStatesMoviesTypePRestricted = RatingUnitedStatesMoviesTypeVRestricted
+ _RatingUnitedStatesMoviesTypePAdults = RatingUnitedStatesMoviesTypeVAdults
+)
+
+// RatingUnitedStatesTelevisionType undocumented
+type RatingUnitedStatesTelevisionType string
+
+const (
+ // RatingUnitedStatesTelevisionTypeVAllAllowed undocumented
+ RatingUnitedStatesTelevisionTypeVAllAllowed RatingUnitedStatesTelevisionType = "allAllowed"
+ // RatingUnitedStatesTelevisionTypeVAllBlocked undocumented
+ RatingUnitedStatesTelevisionTypeVAllBlocked RatingUnitedStatesTelevisionType = "allBlocked"
+ // RatingUnitedStatesTelevisionTypeVChildrenAll undocumented
+ RatingUnitedStatesTelevisionTypeVChildrenAll RatingUnitedStatesTelevisionType = "childrenAll"
+ // RatingUnitedStatesTelevisionTypeVChildrenAbove7 undocumented
+ RatingUnitedStatesTelevisionTypeVChildrenAbove7 RatingUnitedStatesTelevisionType = "childrenAbove7"
+ // RatingUnitedStatesTelevisionTypeVGeneral undocumented
+ RatingUnitedStatesTelevisionTypeVGeneral RatingUnitedStatesTelevisionType = "general"
+ // RatingUnitedStatesTelevisionTypeVParentalGuidance undocumented
+ RatingUnitedStatesTelevisionTypeVParentalGuidance RatingUnitedStatesTelevisionType = "parentalGuidance"
+ // RatingUnitedStatesTelevisionTypeVChildrenAbove14 undocumented
+ RatingUnitedStatesTelevisionTypeVChildrenAbove14 RatingUnitedStatesTelevisionType = "childrenAbove14"
+ // RatingUnitedStatesTelevisionTypeVAdults undocumented
+ RatingUnitedStatesTelevisionTypeVAdults RatingUnitedStatesTelevisionType = "adults"
+)
+
+var (
+ // RatingUnitedStatesTelevisionTypePAllAllowed is a pointer to RatingUnitedStatesTelevisionTypeVAllAllowed
+ RatingUnitedStatesTelevisionTypePAllAllowed = &_RatingUnitedStatesTelevisionTypePAllAllowed
+ // RatingUnitedStatesTelevisionTypePAllBlocked is a pointer to RatingUnitedStatesTelevisionTypeVAllBlocked
+ RatingUnitedStatesTelevisionTypePAllBlocked = &_RatingUnitedStatesTelevisionTypePAllBlocked
+ // RatingUnitedStatesTelevisionTypePChildrenAll is a pointer to RatingUnitedStatesTelevisionTypeVChildrenAll
+ RatingUnitedStatesTelevisionTypePChildrenAll = &_RatingUnitedStatesTelevisionTypePChildrenAll
+ // RatingUnitedStatesTelevisionTypePChildrenAbove7 is a pointer to RatingUnitedStatesTelevisionTypeVChildrenAbove7
+ RatingUnitedStatesTelevisionTypePChildrenAbove7 = &_RatingUnitedStatesTelevisionTypePChildrenAbove7
+ // RatingUnitedStatesTelevisionTypePGeneral is a pointer to RatingUnitedStatesTelevisionTypeVGeneral
+ RatingUnitedStatesTelevisionTypePGeneral = &_RatingUnitedStatesTelevisionTypePGeneral
+ // RatingUnitedStatesTelevisionTypePParentalGuidance is a pointer to RatingUnitedStatesTelevisionTypeVParentalGuidance
+ RatingUnitedStatesTelevisionTypePParentalGuidance = &_RatingUnitedStatesTelevisionTypePParentalGuidance
+ // RatingUnitedStatesTelevisionTypePChildrenAbove14 is a pointer to RatingUnitedStatesTelevisionTypeVChildrenAbove14
+ RatingUnitedStatesTelevisionTypePChildrenAbove14 = &_RatingUnitedStatesTelevisionTypePChildrenAbove14
+ // RatingUnitedStatesTelevisionTypePAdults is a pointer to RatingUnitedStatesTelevisionTypeVAdults
+ RatingUnitedStatesTelevisionTypePAdults = &_RatingUnitedStatesTelevisionTypePAdults
+)
+
+var (
+ _RatingUnitedStatesTelevisionTypePAllAllowed = RatingUnitedStatesTelevisionTypeVAllAllowed
+ _RatingUnitedStatesTelevisionTypePAllBlocked = RatingUnitedStatesTelevisionTypeVAllBlocked
+ _RatingUnitedStatesTelevisionTypePChildrenAll = RatingUnitedStatesTelevisionTypeVChildrenAll
+ _RatingUnitedStatesTelevisionTypePChildrenAbove7 = RatingUnitedStatesTelevisionTypeVChildrenAbove7
+ _RatingUnitedStatesTelevisionTypePGeneral = RatingUnitedStatesTelevisionTypeVGeneral
+ _RatingUnitedStatesTelevisionTypePParentalGuidance = RatingUnitedStatesTelevisionTypeVParentalGuidance
+ _RatingUnitedStatesTelevisionTypePChildrenAbove14 = RatingUnitedStatesTelevisionTypeVChildrenAbove14
+ _RatingUnitedStatesTelevisionTypePAdults = RatingUnitedStatesTelevisionTypeVAdults
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecipient.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecipient.go
new file mode 100644
index 00000000..09b3374f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecipient.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecipientScopeType undocumented
+type RecipientScopeType string
+
+const (
+ // RecipientScopeTypeVNone undocumented
+ RecipientScopeTypeVNone RecipientScopeType = "none"
+ // RecipientScopeTypeVInternal undocumented
+ RecipientScopeTypeVInternal RecipientScopeType = "internal"
+ // RecipientScopeTypeVExternal undocumented
+ RecipientScopeTypeVExternal RecipientScopeType = "external"
+ // RecipientScopeTypeVExternalPartner undocumented
+ RecipientScopeTypeVExternalPartner RecipientScopeType = "externalPartner"
+ // RecipientScopeTypeVExternalNonPartner undocumented
+ RecipientScopeTypeVExternalNonPartner RecipientScopeType = "externalNonPartner"
+)
+
+var (
+ // RecipientScopeTypePNone is a pointer to RecipientScopeTypeVNone
+ RecipientScopeTypePNone = &_RecipientScopeTypePNone
+ // RecipientScopeTypePInternal is a pointer to RecipientScopeTypeVInternal
+ RecipientScopeTypePInternal = &_RecipientScopeTypePInternal
+ // RecipientScopeTypePExternal is a pointer to RecipientScopeTypeVExternal
+ RecipientScopeTypePExternal = &_RecipientScopeTypePExternal
+ // RecipientScopeTypePExternalPartner is a pointer to RecipientScopeTypeVExternalPartner
+ RecipientScopeTypePExternalPartner = &_RecipientScopeTypePExternalPartner
+ // RecipientScopeTypePExternalNonPartner is a pointer to RecipientScopeTypeVExternalNonPartner
+ RecipientScopeTypePExternalNonPartner = &_RecipientScopeTypePExternalNonPartner
+)
+
+var (
+ _RecipientScopeTypePNone = RecipientScopeTypeVNone
+ _RecipientScopeTypePInternal = RecipientScopeTypeVInternal
+ _RecipientScopeTypePExternal = RecipientScopeTypeVExternal
+ _RecipientScopeTypePExternalPartner = RecipientScopeTypeVExternalPartner
+ _RecipientScopeTypePExternalNonPartner = RecipientScopeTypeVExternalNonPartner
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecord.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecord.go
new file mode 100644
index 00000000..50aed54f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecord.go
@@ -0,0 +1,60 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordCompletionReason undocumented
+type RecordCompletionReason string
+
+const (
+ // RecordCompletionReasonVOperationCanceled undocumented
+ RecordCompletionReasonVOperationCanceled RecordCompletionReason = "operationCanceled"
+ // RecordCompletionReasonVStopToneDetected undocumented
+ RecordCompletionReasonVStopToneDetected RecordCompletionReason = "stopToneDetected"
+ // RecordCompletionReasonVMaxRecordDurationReached undocumented
+ RecordCompletionReasonVMaxRecordDurationReached RecordCompletionReason = "maxRecordDurationReached"
+ // RecordCompletionReasonVInitialSilenceTimeout undocumented
+ RecordCompletionReasonVInitialSilenceTimeout RecordCompletionReason = "initialSilenceTimeout"
+ // RecordCompletionReasonVMaxSilenceTimeout undocumented
+ RecordCompletionReasonVMaxSilenceTimeout RecordCompletionReason = "maxSilenceTimeout"
+ // RecordCompletionReasonVPlayPromptFailed undocumented
+ RecordCompletionReasonVPlayPromptFailed RecordCompletionReason = "playPromptFailed"
+ // RecordCompletionReasonVPlayBeepFailed undocumented
+ RecordCompletionReasonVPlayBeepFailed RecordCompletionReason = "playBeepFailed"
+ // RecordCompletionReasonVMediaReceiveTimeout undocumented
+ RecordCompletionReasonVMediaReceiveTimeout RecordCompletionReason = "mediaReceiveTimeout"
+ // RecordCompletionReasonVUnspecifiedError undocumented
+ RecordCompletionReasonVUnspecifiedError RecordCompletionReason = "unspecifiedError"
+)
+
+var (
+ // RecordCompletionReasonPOperationCanceled is a pointer to RecordCompletionReasonVOperationCanceled
+ RecordCompletionReasonPOperationCanceled = &_RecordCompletionReasonPOperationCanceled
+ // RecordCompletionReasonPStopToneDetected is a pointer to RecordCompletionReasonVStopToneDetected
+ RecordCompletionReasonPStopToneDetected = &_RecordCompletionReasonPStopToneDetected
+ // RecordCompletionReasonPMaxRecordDurationReached is a pointer to RecordCompletionReasonVMaxRecordDurationReached
+ RecordCompletionReasonPMaxRecordDurationReached = &_RecordCompletionReasonPMaxRecordDurationReached
+ // RecordCompletionReasonPInitialSilenceTimeout is a pointer to RecordCompletionReasonVInitialSilenceTimeout
+ RecordCompletionReasonPInitialSilenceTimeout = &_RecordCompletionReasonPInitialSilenceTimeout
+ // RecordCompletionReasonPMaxSilenceTimeout is a pointer to RecordCompletionReasonVMaxSilenceTimeout
+ RecordCompletionReasonPMaxSilenceTimeout = &_RecordCompletionReasonPMaxSilenceTimeout
+ // RecordCompletionReasonPPlayPromptFailed is a pointer to RecordCompletionReasonVPlayPromptFailed
+ RecordCompletionReasonPPlayPromptFailed = &_RecordCompletionReasonPPlayPromptFailed
+ // RecordCompletionReasonPPlayBeepFailed is a pointer to RecordCompletionReasonVPlayBeepFailed
+ RecordCompletionReasonPPlayBeepFailed = &_RecordCompletionReasonPPlayBeepFailed
+ // RecordCompletionReasonPMediaReceiveTimeout is a pointer to RecordCompletionReasonVMediaReceiveTimeout
+ RecordCompletionReasonPMediaReceiveTimeout = &_RecordCompletionReasonPMediaReceiveTimeout
+ // RecordCompletionReasonPUnspecifiedError is a pointer to RecordCompletionReasonVUnspecifiedError
+ RecordCompletionReasonPUnspecifiedError = &_RecordCompletionReasonPUnspecifiedError
+)
+
+var (
+ _RecordCompletionReasonPOperationCanceled = RecordCompletionReasonVOperationCanceled
+ _RecordCompletionReasonPStopToneDetected = RecordCompletionReasonVStopToneDetected
+ _RecordCompletionReasonPMaxRecordDurationReached = RecordCompletionReasonVMaxRecordDurationReached
+ _RecordCompletionReasonPInitialSilenceTimeout = RecordCompletionReasonVInitialSilenceTimeout
+ _RecordCompletionReasonPMaxSilenceTimeout = RecordCompletionReasonVMaxSilenceTimeout
+ _RecordCompletionReasonPPlayPromptFailed = RecordCompletionReasonVPlayPromptFailed
+ _RecordCompletionReasonPPlayBeepFailed = RecordCompletionReasonVPlayBeepFailed
+ _RecordCompletionReasonPMediaReceiveTimeout = RecordCompletionReasonVMediaReceiveTimeout
+ _RecordCompletionReasonPUnspecifiedError = RecordCompletionReasonVUnspecifiedError
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecording.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecording.go
new file mode 100644
index 00000000..8ce07cc6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecording.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordingStatus undocumented
+type RecordingStatus string
+
+const (
+ // RecordingStatusVUnknown undocumented
+ RecordingStatusVUnknown RecordingStatus = "unknown"
+ // RecordingStatusVNotRecording undocumented
+ RecordingStatusVNotRecording RecordingStatus = "notRecording"
+ // RecordingStatusVRecording undocumented
+ RecordingStatusVRecording RecordingStatus = "recording"
+ // RecordingStatusVFailed undocumented
+ RecordingStatusVFailed RecordingStatus = "failed"
+ // RecordingStatusVUnknownFutureValue undocumented
+ RecordingStatusVUnknownFutureValue RecordingStatus = "unknownFutureValue"
+)
+
+var (
+ // RecordingStatusPUnknown is a pointer to RecordingStatusVUnknown
+ RecordingStatusPUnknown = &_RecordingStatusPUnknown
+ // RecordingStatusPNotRecording is a pointer to RecordingStatusVNotRecording
+ RecordingStatusPNotRecording = &_RecordingStatusPNotRecording
+ // RecordingStatusPRecording is a pointer to RecordingStatusVRecording
+ RecordingStatusPRecording = &_RecordingStatusPRecording
+ // RecordingStatusPFailed is a pointer to RecordingStatusVFailed
+ RecordingStatusPFailed = &_RecordingStatusPFailed
+ // RecordingStatusPUnknownFutureValue is a pointer to RecordingStatusVUnknownFutureValue
+ RecordingStatusPUnknownFutureValue = &_RecordingStatusPUnknownFutureValue
+)
+
+var (
+ _RecordingStatusPUnknown = RecordingStatusVUnknown
+ _RecordingStatusPNotRecording = RecordingStatusVNotRecording
+ _RecordingStatusPRecording = RecordingStatusVRecording
+ _RecordingStatusPFailed = RecordingStatusVFailed
+ _RecordingStatusPUnknownFutureValue = RecordingStatusVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecurrence.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecurrence.go
new file mode 100644
index 00000000..9529012b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRecurrence.go
@@ -0,0 +1,72 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecurrencePatternType undocumented
+type RecurrencePatternType string
+
+const (
+ // RecurrencePatternTypeVDaily undocumented
+ RecurrencePatternTypeVDaily RecurrencePatternType = "daily"
+ // RecurrencePatternTypeVWeekly undocumented
+ RecurrencePatternTypeVWeekly RecurrencePatternType = "weekly"
+ // RecurrencePatternTypeVAbsoluteMonthly undocumented
+ RecurrencePatternTypeVAbsoluteMonthly RecurrencePatternType = "absoluteMonthly"
+ // RecurrencePatternTypeVRelativeMonthly undocumented
+ RecurrencePatternTypeVRelativeMonthly RecurrencePatternType = "relativeMonthly"
+ // RecurrencePatternTypeVAbsoluteYearly undocumented
+ RecurrencePatternTypeVAbsoluteYearly RecurrencePatternType = "absoluteYearly"
+ // RecurrencePatternTypeVRelativeYearly undocumented
+ RecurrencePatternTypeVRelativeYearly RecurrencePatternType = "relativeYearly"
+)
+
+var (
+ // RecurrencePatternTypePDaily is a pointer to RecurrencePatternTypeVDaily
+ RecurrencePatternTypePDaily = &_RecurrencePatternTypePDaily
+ // RecurrencePatternTypePWeekly is a pointer to RecurrencePatternTypeVWeekly
+ RecurrencePatternTypePWeekly = &_RecurrencePatternTypePWeekly
+ // RecurrencePatternTypePAbsoluteMonthly is a pointer to RecurrencePatternTypeVAbsoluteMonthly
+ RecurrencePatternTypePAbsoluteMonthly = &_RecurrencePatternTypePAbsoluteMonthly
+ // RecurrencePatternTypePRelativeMonthly is a pointer to RecurrencePatternTypeVRelativeMonthly
+ RecurrencePatternTypePRelativeMonthly = &_RecurrencePatternTypePRelativeMonthly
+ // RecurrencePatternTypePAbsoluteYearly is a pointer to RecurrencePatternTypeVAbsoluteYearly
+ RecurrencePatternTypePAbsoluteYearly = &_RecurrencePatternTypePAbsoluteYearly
+ // RecurrencePatternTypePRelativeYearly is a pointer to RecurrencePatternTypeVRelativeYearly
+ RecurrencePatternTypePRelativeYearly = &_RecurrencePatternTypePRelativeYearly
+)
+
+var (
+ _RecurrencePatternTypePDaily = RecurrencePatternTypeVDaily
+ _RecurrencePatternTypePWeekly = RecurrencePatternTypeVWeekly
+ _RecurrencePatternTypePAbsoluteMonthly = RecurrencePatternTypeVAbsoluteMonthly
+ _RecurrencePatternTypePRelativeMonthly = RecurrencePatternTypeVRelativeMonthly
+ _RecurrencePatternTypePAbsoluteYearly = RecurrencePatternTypeVAbsoluteYearly
+ _RecurrencePatternTypePRelativeYearly = RecurrencePatternTypeVRelativeYearly
+)
+
+// RecurrenceRangeType undocumented
+type RecurrenceRangeType string
+
+const (
+ // RecurrenceRangeTypeVEndDate undocumented
+ RecurrenceRangeTypeVEndDate RecurrenceRangeType = "endDate"
+ // RecurrenceRangeTypeVNoEnd undocumented
+ RecurrenceRangeTypeVNoEnd RecurrenceRangeType = "noEnd"
+ // RecurrenceRangeTypeVNumbered undocumented
+ RecurrenceRangeTypeVNumbered RecurrenceRangeType = "numbered"
+)
+
+var (
+ // RecurrenceRangeTypePEndDate is a pointer to RecurrenceRangeTypeVEndDate
+ RecurrenceRangeTypePEndDate = &_RecurrenceRangeTypePEndDate
+ // RecurrenceRangeTypePNoEnd is a pointer to RecurrenceRangeTypeVNoEnd
+ RecurrenceRangeTypePNoEnd = &_RecurrenceRangeTypePNoEnd
+ // RecurrenceRangeTypePNumbered is a pointer to RecurrenceRangeTypeVNumbered
+ RecurrenceRangeTypePNumbered = &_RecurrenceRangeTypePNumbered
+)
+
+var (
+ _RecurrenceRangeTypePEndDate = RecurrenceRangeTypeVEndDate
+ _RecurrenceRangeTypePNoEnd = RecurrenceRangeTypeVNoEnd
+ _RecurrenceRangeTypePNumbered = RecurrenceRangeTypeVNumbered
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumReference.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumReference.go
new file mode 100644
index 00000000..2021d116
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumReference.go
@@ -0,0 +1,82 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReferenceAttachmentPermission undocumented
+type ReferenceAttachmentPermission string
+
+const (
+ // ReferenceAttachmentPermissionVOther undocumented
+ ReferenceAttachmentPermissionVOther ReferenceAttachmentPermission = "other"
+ // ReferenceAttachmentPermissionVView undocumented
+ ReferenceAttachmentPermissionVView ReferenceAttachmentPermission = "view"
+ // ReferenceAttachmentPermissionVEdit undocumented
+ ReferenceAttachmentPermissionVEdit ReferenceAttachmentPermission = "edit"
+ // ReferenceAttachmentPermissionVAnonymousView undocumented
+ ReferenceAttachmentPermissionVAnonymousView ReferenceAttachmentPermission = "anonymousView"
+ // ReferenceAttachmentPermissionVAnonymousEdit undocumented
+ ReferenceAttachmentPermissionVAnonymousEdit ReferenceAttachmentPermission = "anonymousEdit"
+ // ReferenceAttachmentPermissionVOrganizationView undocumented
+ ReferenceAttachmentPermissionVOrganizationView ReferenceAttachmentPermission = "organizationView"
+ // ReferenceAttachmentPermissionVOrganizationEdit undocumented
+ ReferenceAttachmentPermissionVOrganizationEdit ReferenceAttachmentPermission = "organizationEdit"
+)
+
+var (
+ // ReferenceAttachmentPermissionPOther is a pointer to ReferenceAttachmentPermissionVOther
+ ReferenceAttachmentPermissionPOther = &_ReferenceAttachmentPermissionPOther
+ // ReferenceAttachmentPermissionPView is a pointer to ReferenceAttachmentPermissionVView
+ ReferenceAttachmentPermissionPView = &_ReferenceAttachmentPermissionPView
+ // ReferenceAttachmentPermissionPEdit is a pointer to ReferenceAttachmentPermissionVEdit
+ ReferenceAttachmentPermissionPEdit = &_ReferenceAttachmentPermissionPEdit
+ // ReferenceAttachmentPermissionPAnonymousView is a pointer to ReferenceAttachmentPermissionVAnonymousView
+ ReferenceAttachmentPermissionPAnonymousView = &_ReferenceAttachmentPermissionPAnonymousView
+ // ReferenceAttachmentPermissionPAnonymousEdit is a pointer to ReferenceAttachmentPermissionVAnonymousEdit
+ ReferenceAttachmentPermissionPAnonymousEdit = &_ReferenceAttachmentPermissionPAnonymousEdit
+ // ReferenceAttachmentPermissionPOrganizationView is a pointer to ReferenceAttachmentPermissionVOrganizationView
+ ReferenceAttachmentPermissionPOrganizationView = &_ReferenceAttachmentPermissionPOrganizationView
+ // ReferenceAttachmentPermissionPOrganizationEdit is a pointer to ReferenceAttachmentPermissionVOrganizationEdit
+ ReferenceAttachmentPermissionPOrganizationEdit = &_ReferenceAttachmentPermissionPOrganizationEdit
+)
+
+var (
+ _ReferenceAttachmentPermissionPOther = ReferenceAttachmentPermissionVOther
+ _ReferenceAttachmentPermissionPView = ReferenceAttachmentPermissionVView
+ _ReferenceAttachmentPermissionPEdit = ReferenceAttachmentPermissionVEdit
+ _ReferenceAttachmentPermissionPAnonymousView = ReferenceAttachmentPermissionVAnonymousView
+ _ReferenceAttachmentPermissionPAnonymousEdit = ReferenceAttachmentPermissionVAnonymousEdit
+ _ReferenceAttachmentPermissionPOrganizationView = ReferenceAttachmentPermissionVOrganizationView
+ _ReferenceAttachmentPermissionPOrganizationEdit = ReferenceAttachmentPermissionVOrganizationEdit
+)
+
+// ReferenceAttachmentProvider undocumented
+type ReferenceAttachmentProvider string
+
+const (
+ // ReferenceAttachmentProviderVOther undocumented
+ ReferenceAttachmentProviderVOther ReferenceAttachmentProvider = "other"
+ // ReferenceAttachmentProviderVOneDriveBusiness undocumented
+ ReferenceAttachmentProviderVOneDriveBusiness ReferenceAttachmentProvider = "oneDriveBusiness"
+ // ReferenceAttachmentProviderVOneDriveConsumer undocumented
+ ReferenceAttachmentProviderVOneDriveConsumer ReferenceAttachmentProvider = "oneDriveConsumer"
+ // ReferenceAttachmentProviderVDropbox undocumented
+ ReferenceAttachmentProviderVDropbox ReferenceAttachmentProvider = "dropbox"
+)
+
+var (
+ // ReferenceAttachmentProviderPOther is a pointer to ReferenceAttachmentProviderVOther
+ ReferenceAttachmentProviderPOther = &_ReferenceAttachmentProviderPOther
+ // ReferenceAttachmentProviderPOneDriveBusiness is a pointer to ReferenceAttachmentProviderVOneDriveBusiness
+ ReferenceAttachmentProviderPOneDriveBusiness = &_ReferenceAttachmentProviderPOneDriveBusiness
+ // ReferenceAttachmentProviderPOneDriveConsumer is a pointer to ReferenceAttachmentProviderVOneDriveConsumer
+ ReferenceAttachmentProviderPOneDriveConsumer = &_ReferenceAttachmentProviderPOneDriveConsumer
+ // ReferenceAttachmentProviderPDropbox is a pointer to ReferenceAttachmentProviderVDropbox
+ ReferenceAttachmentProviderPDropbox = &_ReferenceAttachmentProviderPDropbox
+)
+
+var (
+ _ReferenceAttachmentProviderPOther = ReferenceAttachmentProviderVOther
+ _ReferenceAttachmentProviderPOneDriveBusiness = ReferenceAttachmentProviderVOneDriveBusiness
+ _ReferenceAttachmentProviderPOneDriveConsumer = ReferenceAttachmentProviderVOneDriveConsumer
+ _ReferenceAttachmentProviderPDropbox = ReferenceAttachmentProviderVDropbox
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistration.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistration.go
new file mode 100644
index 00000000..e1d3f06e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistration.go
@@ -0,0 +1,102 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistrationAuthMethod undocumented
+type RegistrationAuthMethod string
+
+const (
+ // RegistrationAuthMethodVEmail undocumented
+ RegistrationAuthMethodVEmail RegistrationAuthMethod = "email"
+ // RegistrationAuthMethodVMobilePhone undocumented
+ RegistrationAuthMethodVMobilePhone RegistrationAuthMethod = "mobilePhone"
+ // RegistrationAuthMethodVOfficePhone undocumented
+ RegistrationAuthMethodVOfficePhone RegistrationAuthMethod = "officePhone"
+ // RegistrationAuthMethodVSecurityQuestion undocumented
+ RegistrationAuthMethodVSecurityQuestion RegistrationAuthMethod = "securityQuestion"
+ // RegistrationAuthMethodVAppNotification undocumented
+ RegistrationAuthMethodVAppNotification RegistrationAuthMethod = "appNotification"
+ // RegistrationAuthMethodVAppCode undocumented
+ RegistrationAuthMethodVAppCode RegistrationAuthMethod = "appCode"
+ // RegistrationAuthMethodVAlternateMobilePhone undocumented
+ RegistrationAuthMethodVAlternateMobilePhone RegistrationAuthMethod = "alternateMobilePhone"
+ // RegistrationAuthMethodVFido undocumented
+ RegistrationAuthMethodVFido RegistrationAuthMethod = "fido"
+ // RegistrationAuthMethodVAppPassword undocumented
+ RegistrationAuthMethodVAppPassword RegistrationAuthMethod = "appPassword"
+ // RegistrationAuthMethodVUnknownFutureValue undocumented
+ RegistrationAuthMethodVUnknownFutureValue RegistrationAuthMethod = "unknownFutureValue"
+)
+
+var (
+ // RegistrationAuthMethodPEmail is a pointer to RegistrationAuthMethodVEmail
+ RegistrationAuthMethodPEmail = &_RegistrationAuthMethodPEmail
+ // RegistrationAuthMethodPMobilePhone is a pointer to RegistrationAuthMethodVMobilePhone
+ RegistrationAuthMethodPMobilePhone = &_RegistrationAuthMethodPMobilePhone
+ // RegistrationAuthMethodPOfficePhone is a pointer to RegistrationAuthMethodVOfficePhone
+ RegistrationAuthMethodPOfficePhone = &_RegistrationAuthMethodPOfficePhone
+ // RegistrationAuthMethodPSecurityQuestion is a pointer to RegistrationAuthMethodVSecurityQuestion
+ RegistrationAuthMethodPSecurityQuestion = &_RegistrationAuthMethodPSecurityQuestion
+ // RegistrationAuthMethodPAppNotification is a pointer to RegistrationAuthMethodVAppNotification
+ RegistrationAuthMethodPAppNotification = &_RegistrationAuthMethodPAppNotification
+ // RegistrationAuthMethodPAppCode is a pointer to RegistrationAuthMethodVAppCode
+ RegistrationAuthMethodPAppCode = &_RegistrationAuthMethodPAppCode
+ // RegistrationAuthMethodPAlternateMobilePhone is a pointer to RegistrationAuthMethodVAlternateMobilePhone
+ RegistrationAuthMethodPAlternateMobilePhone = &_RegistrationAuthMethodPAlternateMobilePhone
+ // RegistrationAuthMethodPFido is a pointer to RegistrationAuthMethodVFido
+ RegistrationAuthMethodPFido = &_RegistrationAuthMethodPFido
+ // RegistrationAuthMethodPAppPassword is a pointer to RegistrationAuthMethodVAppPassword
+ RegistrationAuthMethodPAppPassword = &_RegistrationAuthMethodPAppPassword
+ // RegistrationAuthMethodPUnknownFutureValue is a pointer to RegistrationAuthMethodVUnknownFutureValue
+ RegistrationAuthMethodPUnknownFutureValue = &_RegistrationAuthMethodPUnknownFutureValue
+)
+
+var (
+ _RegistrationAuthMethodPEmail = RegistrationAuthMethodVEmail
+ _RegistrationAuthMethodPMobilePhone = RegistrationAuthMethodVMobilePhone
+ _RegistrationAuthMethodPOfficePhone = RegistrationAuthMethodVOfficePhone
+ _RegistrationAuthMethodPSecurityQuestion = RegistrationAuthMethodVSecurityQuestion
+ _RegistrationAuthMethodPAppNotification = RegistrationAuthMethodVAppNotification
+ _RegistrationAuthMethodPAppCode = RegistrationAuthMethodVAppCode
+ _RegistrationAuthMethodPAlternateMobilePhone = RegistrationAuthMethodVAlternateMobilePhone
+ _RegistrationAuthMethodPFido = RegistrationAuthMethodVFido
+ _RegistrationAuthMethodPAppPassword = RegistrationAuthMethodVAppPassword
+ _RegistrationAuthMethodPUnknownFutureValue = RegistrationAuthMethodVUnknownFutureValue
+)
+
+// RegistrationStatusType undocumented
+type RegistrationStatusType string
+
+const (
+ // RegistrationStatusTypeVRegistered undocumented
+ RegistrationStatusTypeVRegistered RegistrationStatusType = "registered"
+ // RegistrationStatusTypeVEnabled undocumented
+ RegistrationStatusTypeVEnabled RegistrationStatusType = "enabled"
+ // RegistrationStatusTypeVCapable undocumented
+ RegistrationStatusTypeVCapable RegistrationStatusType = "capable"
+ // RegistrationStatusTypeVMFARegistered undocumented
+ RegistrationStatusTypeVMFARegistered RegistrationStatusType = "mfaRegistered"
+ // RegistrationStatusTypeVUnknownFutureValue undocumented
+ RegistrationStatusTypeVUnknownFutureValue RegistrationStatusType = "unknownFutureValue"
+)
+
+var (
+ // RegistrationStatusTypePRegistered is a pointer to RegistrationStatusTypeVRegistered
+ RegistrationStatusTypePRegistered = &_RegistrationStatusTypePRegistered
+ // RegistrationStatusTypePEnabled is a pointer to RegistrationStatusTypeVEnabled
+ RegistrationStatusTypePEnabled = &_RegistrationStatusTypePEnabled
+ // RegistrationStatusTypePCapable is a pointer to RegistrationStatusTypeVCapable
+ RegistrationStatusTypePCapable = &_RegistrationStatusTypePCapable
+ // RegistrationStatusTypePMFARegistered is a pointer to RegistrationStatusTypeVMFARegistered
+ RegistrationStatusTypePMFARegistered = &_RegistrationStatusTypePMFARegistered
+ // RegistrationStatusTypePUnknownFutureValue is a pointer to RegistrationStatusTypeVUnknownFutureValue
+ RegistrationStatusTypePUnknownFutureValue = &_RegistrationStatusTypePUnknownFutureValue
+)
+
+var (
+ _RegistrationStatusTypePRegistered = RegistrationStatusTypeVRegistered
+ _RegistrationStatusTypePEnabled = RegistrationStatusTypeVEnabled
+ _RegistrationStatusTypePCapable = RegistrationStatusTypeVCapable
+ _RegistrationStatusTypePMFARegistered = RegistrationStatusTypeVMFARegistered
+ _RegistrationStatusTypePUnknownFutureValue = RegistrationStatusTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistry.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistry.go
new file mode 100644
index 00000000..78df13fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRegistry.go
@@ -0,0 +1,174 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistryHive undocumented
+type RegistryHive string
+
+const (
+ // RegistryHiveVUnknown undocumented
+ RegistryHiveVUnknown RegistryHive = "unknown"
+ // RegistryHiveVCurrentConfig undocumented
+ RegistryHiveVCurrentConfig RegistryHive = "currentConfig"
+ // RegistryHiveVCurrentUser undocumented
+ RegistryHiveVCurrentUser RegistryHive = "currentUser"
+ // RegistryHiveVLocalMachineSam undocumented
+ RegistryHiveVLocalMachineSam RegistryHive = "localMachineSam"
+ // RegistryHiveVLocalMachineSecurity undocumented
+ RegistryHiveVLocalMachineSecurity RegistryHive = "localMachineSecurity"
+ // RegistryHiveVLocalMachineSoftware undocumented
+ RegistryHiveVLocalMachineSoftware RegistryHive = "localMachineSoftware"
+ // RegistryHiveVLocalMachineSystem undocumented
+ RegistryHiveVLocalMachineSystem RegistryHive = "localMachineSystem"
+ // RegistryHiveVUsersDefault undocumented
+ RegistryHiveVUsersDefault RegistryHive = "usersDefault"
+ // RegistryHiveVUnknownFutureValue undocumented
+ RegistryHiveVUnknownFutureValue RegistryHive = "unknownFutureValue"
+)
+
+var (
+ // RegistryHivePUnknown is a pointer to RegistryHiveVUnknown
+ RegistryHivePUnknown = &_RegistryHivePUnknown
+ // RegistryHivePCurrentConfig is a pointer to RegistryHiveVCurrentConfig
+ RegistryHivePCurrentConfig = &_RegistryHivePCurrentConfig
+ // RegistryHivePCurrentUser is a pointer to RegistryHiveVCurrentUser
+ RegistryHivePCurrentUser = &_RegistryHivePCurrentUser
+ // RegistryHivePLocalMachineSam is a pointer to RegistryHiveVLocalMachineSam
+ RegistryHivePLocalMachineSam = &_RegistryHivePLocalMachineSam
+ // RegistryHivePLocalMachineSecurity is a pointer to RegistryHiveVLocalMachineSecurity
+ RegistryHivePLocalMachineSecurity = &_RegistryHivePLocalMachineSecurity
+ // RegistryHivePLocalMachineSoftware is a pointer to RegistryHiveVLocalMachineSoftware
+ RegistryHivePLocalMachineSoftware = &_RegistryHivePLocalMachineSoftware
+ // RegistryHivePLocalMachineSystem is a pointer to RegistryHiveVLocalMachineSystem
+ RegistryHivePLocalMachineSystem = &_RegistryHivePLocalMachineSystem
+ // RegistryHivePUsersDefault is a pointer to RegistryHiveVUsersDefault
+ RegistryHivePUsersDefault = &_RegistryHivePUsersDefault
+ // RegistryHivePUnknownFutureValue is a pointer to RegistryHiveVUnknownFutureValue
+ RegistryHivePUnknownFutureValue = &_RegistryHivePUnknownFutureValue
+)
+
+var (
+ _RegistryHivePUnknown = RegistryHiveVUnknown
+ _RegistryHivePCurrentConfig = RegistryHiveVCurrentConfig
+ _RegistryHivePCurrentUser = RegistryHiveVCurrentUser
+ _RegistryHivePLocalMachineSam = RegistryHiveVLocalMachineSam
+ _RegistryHivePLocalMachineSecurity = RegistryHiveVLocalMachineSecurity
+ _RegistryHivePLocalMachineSoftware = RegistryHiveVLocalMachineSoftware
+ _RegistryHivePLocalMachineSystem = RegistryHiveVLocalMachineSystem
+ _RegistryHivePUsersDefault = RegistryHiveVUsersDefault
+ _RegistryHivePUnknownFutureValue = RegistryHiveVUnknownFutureValue
+)
+
+// RegistryOperation undocumented
+type RegistryOperation string
+
+const (
+ // RegistryOperationVUnknown undocumented
+ RegistryOperationVUnknown RegistryOperation = "unknown"
+ // RegistryOperationVCreate undocumented
+ RegistryOperationVCreate RegistryOperation = "create"
+ // RegistryOperationVModify undocumented
+ RegistryOperationVModify RegistryOperation = "modify"
+ // RegistryOperationVDelete undocumented
+ RegistryOperationVDelete RegistryOperation = "delete"
+ // RegistryOperationVUnknownFutureValue undocumented
+ RegistryOperationVUnknownFutureValue RegistryOperation = "unknownFutureValue"
+)
+
+var (
+ // RegistryOperationPUnknown is a pointer to RegistryOperationVUnknown
+ RegistryOperationPUnknown = &_RegistryOperationPUnknown
+ // RegistryOperationPCreate is a pointer to RegistryOperationVCreate
+ RegistryOperationPCreate = &_RegistryOperationPCreate
+ // RegistryOperationPModify is a pointer to RegistryOperationVModify
+ RegistryOperationPModify = &_RegistryOperationPModify
+ // RegistryOperationPDelete is a pointer to RegistryOperationVDelete
+ RegistryOperationPDelete = &_RegistryOperationPDelete
+ // RegistryOperationPUnknownFutureValue is a pointer to RegistryOperationVUnknownFutureValue
+ RegistryOperationPUnknownFutureValue = &_RegistryOperationPUnknownFutureValue
+)
+
+var (
+ _RegistryOperationPUnknown = RegistryOperationVUnknown
+ _RegistryOperationPCreate = RegistryOperationVCreate
+ _RegistryOperationPModify = RegistryOperationVModify
+ _RegistryOperationPDelete = RegistryOperationVDelete
+ _RegistryOperationPUnknownFutureValue = RegistryOperationVUnknownFutureValue
+)
+
+// RegistryValueType undocumented
+type RegistryValueType string
+
+const (
+ // RegistryValueTypeVUnknown undocumented
+ RegistryValueTypeVUnknown RegistryValueType = "unknown"
+ // RegistryValueTypeVBinary undocumented
+ RegistryValueTypeVBinary RegistryValueType = "binary"
+ // RegistryValueTypeVDword undocumented
+ RegistryValueTypeVDword RegistryValueType = "dword"
+ // RegistryValueTypeVDwordLittleEndian undocumented
+ RegistryValueTypeVDwordLittleEndian RegistryValueType = "dwordLittleEndian"
+ // RegistryValueTypeVDwordBigEndian undocumented
+ RegistryValueTypeVDwordBigEndian RegistryValueType = "dwordBigEndian"
+ // RegistryValueTypeVExpandSz undocumented
+ RegistryValueTypeVExpandSz RegistryValueType = "expandSz"
+ // RegistryValueTypeVLink undocumented
+ RegistryValueTypeVLink RegistryValueType = "link"
+ // RegistryValueTypeVMultiSz undocumented
+ RegistryValueTypeVMultiSz RegistryValueType = "multiSz"
+ // RegistryValueTypeVNone undocumented
+ RegistryValueTypeVNone RegistryValueType = "none"
+ // RegistryValueTypeVQword undocumented
+ RegistryValueTypeVQword RegistryValueType = "qword"
+ // RegistryValueTypeVQwordlittleEndian undocumented
+ RegistryValueTypeVQwordlittleEndian RegistryValueType = "qwordlittleEndian"
+ // RegistryValueTypeVSz undocumented
+ RegistryValueTypeVSz RegistryValueType = "sz"
+ // RegistryValueTypeVUnknownFutureValue undocumented
+ RegistryValueTypeVUnknownFutureValue RegistryValueType = "unknownFutureValue"
+)
+
+var (
+ // RegistryValueTypePUnknown is a pointer to RegistryValueTypeVUnknown
+ RegistryValueTypePUnknown = &_RegistryValueTypePUnknown
+ // RegistryValueTypePBinary is a pointer to RegistryValueTypeVBinary
+ RegistryValueTypePBinary = &_RegistryValueTypePBinary
+ // RegistryValueTypePDword is a pointer to RegistryValueTypeVDword
+ RegistryValueTypePDword = &_RegistryValueTypePDword
+ // RegistryValueTypePDwordLittleEndian is a pointer to RegistryValueTypeVDwordLittleEndian
+ RegistryValueTypePDwordLittleEndian = &_RegistryValueTypePDwordLittleEndian
+ // RegistryValueTypePDwordBigEndian is a pointer to RegistryValueTypeVDwordBigEndian
+ RegistryValueTypePDwordBigEndian = &_RegistryValueTypePDwordBigEndian
+ // RegistryValueTypePExpandSz is a pointer to RegistryValueTypeVExpandSz
+ RegistryValueTypePExpandSz = &_RegistryValueTypePExpandSz
+ // RegistryValueTypePLink is a pointer to RegistryValueTypeVLink
+ RegistryValueTypePLink = &_RegistryValueTypePLink
+ // RegistryValueTypePMultiSz is a pointer to RegistryValueTypeVMultiSz
+ RegistryValueTypePMultiSz = &_RegistryValueTypePMultiSz
+ // RegistryValueTypePNone is a pointer to RegistryValueTypeVNone
+ RegistryValueTypePNone = &_RegistryValueTypePNone
+ // RegistryValueTypePQword is a pointer to RegistryValueTypeVQword
+ RegistryValueTypePQword = &_RegistryValueTypePQword
+ // RegistryValueTypePQwordlittleEndian is a pointer to RegistryValueTypeVQwordlittleEndian
+ RegistryValueTypePQwordlittleEndian = &_RegistryValueTypePQwordlittleEndian
+ // RegistryValueTypePSz is a pointer to RegistryValueTypeVSz
+ RegistryValueTypePSz = &_RegistryValueTypePSz
+ // RegistryValueTypePUnknownFutureValue is a pointer to RegistryValueTypeVUnknownFutureValue
+ RegistryValueTypePUnknownFutureValue = &_RegistryValueTypePUnknownFutureValue
+)
+
+var (
+ _RegistryValueTypePUnknown = RegistryValueTypeVUnknown
+ _RegistryValueTypePBinary = RegistryValueTypeVBinary
+ _RegistryValueTypePDword = RegistryValueTypeVDword
+ _RegistryValueTypePDwordLittleEndian = RegistryValueTypeVDwordLittleEndian
+ _RegistryValueTypePDwordBigEndian = RegistryValueTypeVDwordBigEndian
+ _RegistryValueTypePExpandSz = RegistryValueTypeVExpandSz
+ _RegistryValueTypePLink = RegistryValueTypeVLink
+ _RegistryValueTypePMultiSz = RegistryValueTypeVMultiSz
+ _RegistryValueTypePNone = RegistryValueTypeVNone
+ _RegistryValueTypePQword = RegistryValueTypeVQword
+ _RegistryValueTypePQwordlittleEndian = RegistryValueTypeVQwordlittleEndian
+ _RegistryValueTypePSz = RegistryValueTypeVSz
+ _RegistryValueTypePUnknownFutureValue = RegistryValueTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumReject.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumReject.go
new file mode 100644
index 00000000..75219230
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumReject.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RejectReason undocumented
+type RejectReason string
+
+const (
+ // RejectReasonVNone undocumented
+ RejectReasonVNone RejectReason = "none"
+ // RejectReasonVBusy undocumented
+ RejectReasonVBusy RejectReason = "busy"
+ // RejectReasonVForbidden undocumented
+ RejectReasonVForbidden RejectReason = "forbidden"
+ // RejectReasonVUnknownFutureValue undocumented
+ RejectReasonVUnknownFutureValue RejectReason = "unknownFutureValue"
+)
+
+var (
+ // RejectReasonPNone is a pointer to RejectReasonVNone
+ RejectReasonPNone = &_RejectReasonPNone
+ // RejectReasonPBusy is a pointer to RejectReasonVBusy
+ RejectReasonPBusy = &_RejectReasonPBusy
+ // RejectReasonPForbidden is a pointer to RejectReasonVForbidden
+ RejectReasonPForbidden = &_RejectReasonPForbidden
+ // RejectReasonPUnknownFutureValue is a pointer to RejectReasonVUnknownFutureValue
+ RejectReasonPUnknownFutureValue = &_RejectReasonPUnknownFutureValue
+)
+
+var (
+ _RejectReasonPNone = RejectReasonVNone
+ _RejectReasonPBusy = RejectReasonVBusy
+ _RejectReasonPForbidden = RejectReasonVForbidden
+ _RejectReasonPUnknownFutureValue = RejectReasonVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemediation.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemediation.go
new file mode 100644
index 00000000..19faad7f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemediation.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemediationState undocumented
+type RemediationState string
+
+const (
+ // RemediationStateVUnknown undocumented
+ RemediationStateVUnknown RemediationState = "unknown"
+ // RemediationStateVSkipped undocumented
+ RemediationStateVSkipped RemediationState = "skipped"
+ // RemediationStateVSuccess undocumented
+ RemediationStateVSuccess RemediationState = "success"
+ // RemediationStateVRemediationFailed undocumented
+ RemediationStateVRemediationFailed RemediationState = "remediationFailed"
+ // RemediationStateVScriptError undocumented
+ RemediationStateVScriptError RemediationState = "scriptError"
+)
+
+var (
+ // RemediationStatePUnknown is a pointer to RemediationStateVUnknown
+ RemediationStatePUnknown = &_RemediationStatePUnknown
+ // RemediationStatePSkipped is a pointer to RemediationStateVSkipped
+ RemediationStatePSkipped = &_RemediationStatePSkipped
+ // RemediationStatePSuccess is a pointer to RemediationStateVSuccess
+ RemediationStatePSuccess = &_RemediationStatePSuccess
+ // RemediationStatePRemediationFailed is a pointer to RemediationStateVRemediationFailed
+ RemediationStatePRemediationFailed = &_RemediationStatePRemediationFailed
+ // RemediationStatePScriptError is a pointer to RemediationStateVScriptError
+ RemediationStatePScriptError = &_RemediationStatePScriptError
+)
+
+var (
+ _RemediationStatePUnknown = RemediationStateVUnknown
+ _RemediationStatePSkipped = RemediationStateVSkipped
+ _RemediationStatePSuccess = RemediationStateVSuccess
+ _RemediationStatePRemediationFailed = RemediationStateVRemediationFailed
+ _RemediationStatePScriptError = RemediationStateVScriptError
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemote.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemote.go
new file mode 100644
index 00000000..a5962c53
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRemote.go
@@ -0,0 +1,157 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoteAction undocumented
+type RemoteAction string
+
+const (
+ // RemoteActionVUnknown undocumented
+ RemoteActionVUnknown RemoteAction = "unknown"
+ // RemoteActionVFactoryReset undocumented
+ RemoteActionVFactoryReset RemoteAction = "factoryReset"
+ // RemoteActionVRemoveCompanyData undocumented
+ RemoteActionVRemoveCompanyData RemoteAction = "removeCompanyData"
+ // RemoteActionVResetPasscode undocumented
+ RemoteActionVResetPasscode RemoteAction = "resetPasscode"
+ // RemoteActionVRemoteLock undocumented
+ RemoteActionVRemoteLock RemoteAction = "remoteLock"
+ // RemoteActionVEnableLostMode undocumented
+ RemoteActionVEnableLostMode RemoteAction = "enableLostMode"
+ // RemoteActionVDisableLostMode undocumented
+ RemoteActionVDisableLostMode RemoteAction = "disableLostMode"
+ // RemoteActionVLocateDevice undocumented
+ RemoteActionVLocateDevice RemoteAction = "locateDevice"
+ // RemoteActionVRebootNow undocumented
+ RemoteActionVRebootNow RemoteAction = "rebootNow"
+ // RemoteActionVRecoverPasscode undocumented
+ RemoteActionVRecoverPasscode RemoteAction = "recoverPasscode"
+ // RemoteActionVCleanWindowsDevice undocumented
+ RemoteActionVCleanWindowsDevice RemoteAction = "cleanWindowsDevice"
+ // RemoteActionVLogoutSharedAppleDeviceActiveUser undocumented
+ RemoteActionVLogoutSharedAppleDeviceActiveUser RemoteAction = "logoutSharedAppleDeviceActiveUser"
+ // RemoteActionVQuickScan undocumented
+ RemoteActionVQuickScan RemoteAction = "quickScan"
+ // RemoteActionVFullScan undocumented
+ RemoteActionVFullScan RemoteAction = "fullScan"
+ // RemoteActionVWindowsDefenderUpdateSignatures undocumented
+ RemoteActionVWindowsDefenderUpdateSignatures RemoteAction = "windowsDefenderUpdateSignatures"
+ // RemoteActionVFactoryResetKeepEnrollmentData undocumented
+ RemoteActionVFactoryResetKeepEnrollmentData RemoteAction = "factoryResetKeepEnrollmentData"
+ // RemoteActionVUpdateDeviceAccount undocumented
+ RemoteActionVUpdateDeviceAccount RemoteAction = "updateDeviceAccount"
+ // RemoteActionVAutomaticRedeployment undocumented
+ RemoteActionVAutomaticRedeployment RemoteAction = "automaticRedeployment"
+ // RemoteActionVShutDown undocumented
+ RemoteActionVShutDown RemoteAction = "shutDown"
+ // RemoteActionVRotateBitLockerKeys undocumented
+ RemoteActionVRotateBitLockerKeys RemoteAction = "rotateBitLockerKeys"
+ // RemoteActionVRotateFileVaultKey undocumented
+ RemoteActionVRotateFileVaultKey RemoteAction = "rotateFileVaultKey"
+ // RemoteActionVGetFileVaultKey undocumented
+ RemoteActionVGetFileVaultKey RemoteAction = "getFileVaultKey"
+ // RemoteActionVSetDeviceName undocumented
+ RemoteActionVSetDeviceName RemoteAction = "setDeviceName"
+)
+
+var (
+ // RemoteActionPUnknown is a pointer to RemoteActionVUnknown
+ RemoteActionPUnknown = &_RemoteActionPUnknown
+ // RemoteActionPFactoryReset is a pointer to RemoteActionVFactoryReset
+ RemoteActionPFactoryReset = &_RemoteActionPFactoryReset
+ // RemoteActionPRemoveCompanyData is a pointer to RemoteActionVRemoveCompanyData
+ RemoteActionPRemoveCompanyData = &_RemoteActionPRemoveCompanyData
+ // RemoteActionPResetPasscode is a pointer to RemoteActionVResetPasscode
+ RemoteActionPResetPasscode = &_RemoteActionPResetPasscode
+ // RemoteActionPRemoteLock is a pointer to RemoteActionVRemoteLock
+ RemoteActionPRemoteLock = &_RemoteActionPRemoteLock
+ // RemoteActionPEnableLostMode is a pointer to RemoteActionVEnableLostMode
+ RemoteActionPEnableLostMode = &_RemoteActionPEnableLostMode
+ // RemoteActionPDisableLostMode is a pointer to RemoteActionVDisableLostMode
+ RemoteActionPDisableLostMode = &_RemoteActionPDisableLostMode
+ // RemoteActionPLocateDevice is a pointer to RemoteActionVLocateDevice
+ RemoteActionPLocateDevice = &_RemoteActionPLocateDevice
+ // RemoteActionPRebootNow is a pointer to RemoteActionVRebootNow
+ RemoteActionPRebootNow = &_RemoteActionPRebootNow
+ // RemoteActionPRecoverPasscode is a pointer to RemoteActionVRecoverPasscode
+ RemoteActionPRecoverPasscode = &_RemoteActionPRecoverPasscode
+ // RemoteActionPCleanWindowsDevice is a pointer to RemoteActionVCleanWindowsDevice
+ RemoteActionPCleanWindowsDevice = &_RemoteActionPCleanWindowsDevice
+ // RemoteActionPLogoutSharedAppleDeviceActiveUser is a pointer to RemoteActionVLogoutSharedAppleDeviceActiveUser
+ RemoteActionPLogoutSharedAppleDeviceActiveUser = &_RemoteActionPLogoutSharedAppleDeviceActiveUser
+ // RemoteActionPQuickScan is a pointer to RemoteActionVQuickScan
+ RemoteActionPQuickScan = &_RemoteActionPQuickScan
+ // RemoteActionPFullScan is a pointer to RemoteActionVFullScan
+ RemoteActionPFullScan = &_RemoteActionPFullScan
+ // RemoteActionPWindowsDefenderUpdateSignatures is a pointer to RemoteActionVWindowsDefenderUpdateSignatures
+ RemoteActionPWindowsDefenderUpdateSignatures = &_RemoteActionPWindowsDefenderUpdateSignatures
+ // RemoteActionPFactoryResetKeepEnrollmentData is a pointer to RemoteActionVFactoryResetKeepEnrollmentData
+ RemoteActionPFactoryResetKeepEnrollmentData = &_RemoteActionPFactoryResetKeepEnrollmentData
+ // RemoteActionPUpdateDeviceAccount is a pointer to RemoteActionVUpdateDeviceAccount
+ RemoteActionPUpdateDeviceAccount = &_RemoteActionPUpdateDeviceAccount
+ // RemoteActionPAutomaticRedeployment is a pointer to RemoteActionVAutomaticRedeployment
+ RemoteActionPAutomaticRedeployment = &_RemoteActionPAutomaticRedeployment
+ // RemoteActionPShutDown is a pointer to RemoteActionVShutDown
+ RemoteActionPShutDown = &_RemoteActionPShutDown
+ // RemoteActionPRotateBitLockerKeys is a pointer to RemoteActionVRotateBitLockerKeys
+ RemoteActionPRotateBitLockerKeys = &_RemoteActionPRotateBitLockerKeys
+ // RemoteActionPRotateFileVaultKey is a pointer to RemoteActionVRotateFileVaultKey
+ RemoteActionPRotateFileVaultKey = &_RemoteActionPRotateFileVaultKey
+ // RemoteActionPGetFileVaultKey is a pointer to RemoteActionVGetFileVaultKey
+ RemoteActionPGetFileVaultKey = &_RemoteActionPGetFileVaultKey
+ // RemoteActionPSetDeviceName is a pointer to RemoteActionVSetDeviceName
+ RemoteActionPSetDeviceName = &_RemoteActionPSetDeviceName
+)
+
+var (
+ _RemoteActionPUnknown = RemoteActionVUnknown
+ _RemoteActionPFactoryReset = RemoteActionVFactoryReset
+ _RemoteActionPRemoveCompanyData = RemoteActionVRemoveCompanyData
+ _RemoteActionPResetPasscode = RemoteActionVResetPasscode
+ _RemoteActionPRemoteLock = RemoteActionVRemoteLock
+ _RemoteActionPEnableLostMode = RemoteActionVEnableLostMode
+ _RemoteActionPDisableLostMode = RemoteActionVDisableLostMode
+ _RemoteActionPLocateDevice = RemoteActionVLocateDevice
+ _RemoteActionPRebootNow = RemoteActionVRebootNow
+ _RemoteActionPRecoverPasscode = RemoteActionVRecoverPasscode
+ _RemoteActionPCleanWindowsDevice = RemoteActionVCleanWindowsDevice
+ _RemoteActionPLogoutSharedAppleDeviceActiveUser = RemoteActionVLogoutSharedAppleDeviceActiveUser
+ _RemoteActionPQuickScan = RemoteActionVQuickScan
+ _RemoteActionPFullScan = RemoteActionVFullScan
+ _RemoteActionPWindowsDefenderUpdateSignatures = RemoteActionVWindowsDefenderUpdateSignatures
+ _RemoteActionPFactoryResetKeepEnrollmentData = RemoteActionVFactoryResetKeepEnrollmentData
+ _RemoteActionPUpdateDeviceAccount = RemoteActionVUpdateDeviceAccount
+ _RemoteActionPAutomaticRedeployment = RemoteActionVAutomaticRedeployment
+ _RemoteActionPShutDown = RemoteActionVShutDown
+ _RemoteActionPRotateBitLockerKeys = RemoteActionVRotateBitLockerKeys
+ _RemoteActionPRotateFileVaultKey = RemoteActionVRotateFileVaultKey
+ _RemoteActionPGetFileVaultKey = RemoteActionVGetFileVaultKey
+ _RemoteActionPSetDeviceName = RemoteActionVSetDeviceName
+)
+
+// RemoteAssistanceOnboardingStatus undocumented
+type RemoteAssistanceOnboardingStatus string
+
+const (
+ // RemoteAssistanceOnboardingStatusVNotOnboarded undocumented
+ RemoteAssistanceOnboardingStatusVNotOnboarded RemoteAssistanceOnboardingStatus = "notOnboarded"
+ // RemoteAssistanceOnboardingStatusVOnboarding undocumented
+ RemoteAssistanceOnboardingStatusVOnboarding RemoteAssistanceOnboardingStatus = "onboarding"
+ // RemoteAssistanceOnboardingStatusVOnboarded undocumented
+ RemoteAssistanceOnboardingStatusVOnboarded RemoteAssistanceOnboardingStatus = "onboarded"
+)
+
+var (
+ // RemoteAssistanceOnboardingStatusPNotOnboarded is a pointer to RemoteAssistanceOnboardingStatusVNotOnboarded
+ RemoteAssistanceOnboardingStatusPNotOnboarded = &_RemoteAssistanceOnboardingStatusPNotOnboarded
+ // RemoteAssistanceOnboardingStatusPOnboarding is a pointer to RemoteAssistanceOnboardingStatusVOnboarding
+ RemoteAssistanceOnboardingStatusPOnboarding = &_RemoteAssistanceOnboardingStatusPOnboarding
+ // RemoteAssistanceOnboardingStatusPOnboarded is a pointer to RemoteAssistanceOnboardingStatusVOnboarded
+ RemoteAssistanceOnboardingStatusPOnboarded = &_RemoteAssistanceOnboardingStatusPOnboarded
+)
+
+var (
+ _RemoteAssistanceOnboardingStatusPNotOnboarded = RemoteAssistanceOnboardingStatusVNotOnboarded
+ _RemoteAssistanceOnboardingStatusPOnboarding = RemoteAssistanceOnboardingStatusVOnboarding
+ _RemoteAssistanceOnboardingStatusPOnboarded = RemoteAssistanceOnboardingStatusVOnboarded
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequired.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequired.go
new file mode 100644
index 00000000..473cd4fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequired.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RequiredPasswordType undocumented
+type RequiredPasswordType string
+
+const (
+ // RequiredPasswordTypeVDeviceDefault undocumented
+ RequiredPasswordTypeVDeviceDefault RequiredPasswordType = "deviceDefault"
+ // RequiredPasswordTypeVAlphanumeric undocumented
+ RequiredPasswordTypeVAlphanumeric RequiredPasswordType = "alphanumeric"
+ // RequiredPasswordTypeVNumeric undocumented
+ RequiredPasswordTypeVNumeric RequiredPasswordType = "numeric"
+)
+
+var (
+ // RequiredPasswordTypePDeviceDefault is a pointer to RequiredPasswordTypeVDeviceDefault
+ RequiredPasswordTypePDeviceDefault = &_RequiredPasswordTypePDeviceDefault
+ // RequiredPasswordTypePAlphanumeric is a pointer to RequiredPasswordTypeVAlphanumeric
+ RequiredPasswordTypePAlphanumeric = &_RequiredPasswordTypePAlphanumeric
+ // RequiredPasswordTypePNumeric is a pointer to RequiredPasswordTypeVNumeric
+ RequiredPasswordTypePNumeric = &_RequiredPasswordTypePNumeric
+)
+
+var (
+ _RequiredPasswordTypePDeviceDefault = RequiredPasswordTypeVDeviceDefault
+ _RequiredPasswordTypePAlphanumeric = RequiredPasswordTypeVAlphanumeric
+ _RequiredPasswordTypePNumeric = RequiredPasswordTypeVNumeric
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequirement.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequirement.go
new file mode 100644
index 00000000..efc13df0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRequirement.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RequirementProvider undocumented
+type RequirementProvider string
+
+const (
+ // RequirementProviderVMFA undocumented
+ RequirementProviderVMFA RequirementProvider = "MFA"
+ // RequirementProviderVCA undocumented
+ RequirementProviderVCA RequirementProvider = "CA"
+ // RequirementProviderVUnknownFutureValue undocumented
+ RequirementProviderVUnknownFutureValue RequirementProvider = "unknownFutureValue"
+)
+
+var (
+ // RequirementProviderPMFA is a pointer to RequirementProviderVMFA
+ RequirementProviderPMFA = &_RequirementProviderPMFA
+ // RequirementProviderPCA is a pointer to RequirementProviderVCA
+ RequirementProviderPCA = &_RequirementProviderPCA
+ // RequirementProviderPUnknownFutureValue is a pointer to RequirementProviderVUnknownFutureValue
+ RequirementProviderPUnknownFutureValue = &_RequirementProviderPUnknownFutureValue
+)
+
+var (
+ _RequirementProviderPMFA = RequirementProviderVMFA
+ _RequirementProviderPCA = RequirementProviderVCA
+ _RequirementProviderPUnknownFutureValue = RequirementProviderVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumResponse.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumResponse.go
new file mode 100644
index 00000000..bd45acb6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumResponse.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResponseType undocumented
+type ResponseType string
+
+const (
+ // ResponseTypeVNone undocumented
+ ResponseTypeVNone ResponseType = "none"
+ // ResponseTypeVOrganizer undocumented
+ ResponseTypeVOrganizer ResponseType = "organizer"
+ // ResponseTypeVTentativelyAccepted undocumented
+ ResponseTypeVTentativelyAccepted ResponseType = "tentativelyAccepted"
+ // ResponseTypeVAccepted undocumented
+ ResponseTypeVAccepted ResponseType = "accepted"
+ // ResponseTypeVDeclined undocumented
+ ResponseTypeVDeclined ResponseType = "declined"
+ // ResponseTypeVNotResponded undocumented
+ ResponseTypeVNotResponded ResponseType = "notResponded"
+)
+
+var (
+ // ResponseTypePNone is a pointer to ResponseTypeVNone
+ ResponseTypePNone = &_ResponseTypePNone
+ // ResponseTypePOrganizer is a pointer to ResponseTypeVOrganizer
+ ResponseTypePOrganizer = &_ResponseTypePOrganizer
+ // ResponseTypePTentativelyAccepted is a pointer to ResponseTypeVTentativelyAccepted
+ ResponseTypePTentativelyAccepted = &_ResponseTypePTentativelyAccepted
+ // ResponseTypePAccepted is a pointer to ResponseTypeVAccepted
+ ResponseTypePAccepted = &_ResponseTypePAccepted
+ // ResponseTypePDeclined is a pointer to ResponseTypeVDeclined
+ ResponseTypePDeclined = &_ResponseTypePDeclined
+ // ResponseTypePNotResponded is a pointer to ResponseTypeVNotResponded
+ ResponseTypePNotResponded = &_ResponseTypePNotResponded
+)
+
+var (
+ _ResponseTypePNone = ResponseTypeVNone
+ _ResponseTypePOrganizer = ResponseTypeVOrganizer
+ _ResponseTypePTentativelyAccepted = ResponseTypeVTentativelyAccepted
+ _ResponseTypePAccepted = ResponseTypeVAccepted
+ _ResponseTypePDeclined = ResponseTypeVDeclined
+ _ResponseTypePNotResponded = ResponseTypeVNotResponded
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestricted.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestricted.go
new file mode 100644
index 00000000..45f044d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestricted.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictedAppsState undocumented
+type RestrictedAppsState string
+
+const (
+ // RestrictedAppsStateVProhibitedApps undocumented
+ RestrictedAppsStateVProhibitedApps RestrictedAppsState = "prohibitedApps"
+ // RestrictedAppsStateVNotApprovedApps undocumented
+ RestrictedAppsStateVNotApprovedApps RestrictedAppsState = "notApprovedApps"
+)
+
+var (
+ // RestrictedAppsStatePProhibitedApps is a pointer to RestrictedAppsStateVProhibitedApps
+ RestrictedAppsStatePProhibitedApps = &_RestrictedAppsStatePProhibitedApps
+ // RestrictedAppsStatePNotApprovedApps is a pointer to RestrictedAppsStateVNotApprovedApps
+ RestrictedAppsStatePNotApprovedApps = &_RestrictedAppsStatePNotApprovedApps
+)
+
+var (
+ _RestrictedAppsStatePProhibitedApps = RestrictedAppsStateVProhibitedApps
+ _RestrictedAppsStatePNotApprovedApps = RestrictedAppsStateVNotApprovedApps
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestriction.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestriction.go
new file mode 100644
index 00000000..ac762e26
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRestriction.go
@@ -0,0 +1,77 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictionAction undocumented
+type RestrictionAction string
+
+const (
+ // RestrictionActionVWarn undocumented
+ RestrictionActionVWarn RestrictionAction = "warn"
+ // RestrictionActionVAudit undocumented
+ RestrictionActionVAudit RestrictionAction = "audit"
+ // RestrictionActionVBlock undocumented
+ RestrictionActionVBlock RestrictionAction = "block"
+)
+
+var (
+ // RestrictionActionPWarn is a pointer to RestrictionActionVWarn
+ RestrictionActionPWarn = &_RestrictionActionPWarn
+ // RestrictionActionPAudit is a pointer to RestrictionActionVAudit
+ RestrictionActionPAudit = &_RestrictionActionPAudit
+ // RestrictionActionPBlock is a pointer to RestrictionActionVBlock
+ RestrictionActionPBlock = &_RestrictionActionPBlock
+)
+
+var (
+ _RestrictionActionPWarn = RestrictionActionVWarn
+ _RestrictionActionPAudit = RestrictionActionVAudit
+ _RestrictionActionPBlock = RestrictionActionVBlock
+)
+
+// RestrictionTrigger undocumented
+type RestrictionTrigger string
+
+const (
+ // RestrictionTriggerVCopyPaste undocumented
+ RestrictionTriggerVCopyPaste RestrictionTrigger = "copyPaste"
+ // RestrictionTriggerVCopyToNetworkShare undocumented
+ RestrictionTriggerVCopyToNetworkShare RestrictionTrigger = "copyToNetworkShare"
+ // RestrictionTriggerVCopyToRemovableMedia undocumented
+ RestrictionTriggerVCopyToRemovableMedia RestrictionTrigger = "copyToRemovableMedia"
+ // RestrictionTriggerVScreenCapture undocumented
+ RestrictionTriggerVScreenCapture RestrictionTrigger = "screenCapture"
+ // RestrictionTriggerVPrint undocumented
+ RestrictionTriggerVPrint RestrictionTrigger = "print"
+ // RestrictionTriggerVCloudEgress undocumented
+ RestrictionTriggerVCloudEgress RestrictionTrigger = "cloudEgress"
+ // RestrictionTriggerVUnallowedApps undocumented
+ RestrictionTriggerVUnallowedApps RestrictionTrigger = "unallowedApps"
+)
+
+var (
+ // RestrictionTriggerPCopyPaste is a pointer to RestrictionTriggerVCopyPaste
+ RestrictionTriggerPCopyPaste = &_RestrictionTriggerPCopyPaste
+ // RestrictionTriggerPCopyToNetworkShare is a pointer to RestrictionTriggerVCopyToNetworkShare
+ RestrictionTriggerPCopyToNetworkShare = &_RestrictionTriggerPCopyToNetworkShare
+ // RestrictionTriggerPCopyToRemovableMedia is a pointer to RestrictionTriggerVCopyToRemovableMedia
+ RestrictionTriggerPCopyToRemovableMedia = &_RestrictionTriggerPCopyToRemovableMedia
+ // RestrictionTriggerPScreenCapture is a pointer to RestrictionTriggerVScreenCapture
+ RestrictionTriggerPScreenCapture = &_RestrictionTriggerPScreenCapture
+ // RestrictionTriggerPPrint is a pointer to RestrictionTriggerVPrint
+ RestrictionTriggerPPrint = &_RestrictionTriggerPPrint
+ // RestrictionTriggerPCloudEgress is a pointer to RestrictionTriggerVCloudEgress
+ RestrictionTriggerPCloudEgress = &_RestrictionTriggerPCloudEgress
+ // RestrictionTriggerPUnallowedApps is a pointer to RestrictionTriggerVUnallowedApps
+ RestrictionTriggerPUnallowedApps = &_RestrictionTriggerPUnallowedApps
+)
+
+var (
+ _RestrictionTriggerPCopyPaste = RestrictionTriggerVCopyPaste
+ _RestrictionTriggerPCopyToNetworkShare = RestrictionTriggerVCopyToNetworkShare
+ _RestrictionTriggerPCopyToRemovableMedia = RestrictionTriggerVCopyToRemovableMedia
+ _RestrictionTriggerPScreenCapture = RestrictionTriggerVScreenCapture
+ _RestrictionTriggerPPrint = RestrictionTriggerVPrint
+ _RestrictionTriggerPCloudEgress = RestrictionTriggerVCloudEgress
+ _RestrictionTriggerPUnallowedApps = RestrictionTriggerVUnallowedApps
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumResultant.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumResultant.go
new file mode 100644
index 00000000..157280e9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumResultant.go
@@ -0,0 +1,162 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResultantAppState undocumented
+type ResultantAppState string
+
+const (
+ // ResultantAppStateVInstalled undocumented
+ ResultantAppStateVInstalled ResultantAppState = "installed"
+ // ResultantAppStateVFailed undocumented
+ ResultantAppStateVFailed ResultantAppState = "failed"
+ // ResultantAppStateVNotInstalled undocumented
+ ResultantAppStateVNotInstalled ResultantAppState = "notInstalled"
+ // ResultantAppStateVUninstallFailed undocumented
+ ResultantAppStateVUninstallFailed ResultantAppState = "uninstallFailed"
+ // ResultantAppStateVPendingInstall undocumented
+ ResultantAppStateVPendingInstall ResultantAppState = "pendingInstall"
+ // ResultantAppStateVUnknown undocumented
+ ResultantAppStateVUnknown ResultantAppState = "unknown"
+ // ResultantAppStateVNotApplicable undocumented
+ ResultantAppStateVNotApplicable ResultantAppState = "notApplicable"
+)
+
+var (
+ // ResultantAppStatePInstalled is a pointer to ResultantAppStateVInstalled
+ ResultantAppStatePInstalled = &_ResultantAppStatePInstalled
+ // ResultantAppStatePFailed is a pointer to ResultantAppStateVFailed
+ ResultantAppStatePFailed = &_ResultantAppStatePFailed
+ // ResultantAppStatePNotInstalled is a pointer to ResultantAppStateVNotInstalled
+ ResultantAppStatePNotInstalled = &_ResultantAppStatePNotInstalled
+ // ResultantAppStatePUninstallFailed is a pointer to ResultantAppStateVUninstallFailed
+ ResultantAppStatePUninstallFailed = &_ResultantAppStatePUninstallFailed
+ // ResultantAppStatePPendingInstall is a pointer to ResultantAppStateVPendingInstall
+ ResultantAppStatePPendingInstall = &_ResultantAppStatePPendingInstall
+ // ResultantAppStatePUnknown is a pointer to ResultantAppStateVUnknown
+ ResultantAppStatePUnknown = &_ResultantAppStatePUnknown
+ // ResultantAppStatePNotApplicable is a pointer to ResultantAppStateVNotApplicable
+ ResultantAppStatePNotApplicable = &_ResultantAppStatePNotApplicable
+)
+
+var (
+ _ResultantAppStatePInstalled = ResultantAppStateVInstalled
+ _ResultantAppStatePFailed = ResultantAppStateVFailed
+ _ResultantAppStatePNotInstalled = ResultantAppStateVNotInstalled
+ _ResultantAppStatePUninstallFailed = ResultantAppStateVUninstallFailed
+ _ResultantAppStatePPendingInstall = ResultantAppStateVPendingInstall
+ _ResultantAppStatePUnknown = ResultantAppStateVUnknown
+ _ResultantAppStatePNotApplicable = ResultantAppStateVNotApplicable
+)
+
+// ResultantAppStateDetail undocumented
+type ResultantAppStateDetail string
+
+const (
+ // ResultantAppStateDetailVNoAdditionalDetails undocumented
+ ResultantAppStateDetailVNoAdditionalDetails ResultantAppStateDetail = "noAdditionalDetails"
+ // ResultantAppStateDetailVDependencyFailedToInstall undocumented
+ ResultantAppStateDetailVDependencyFailedToInstall ResultantAppStateDetail = "dependencyFailedToInstall"
+ // ResultantAppStateDetailVDependencyWithRequirementsNotMet undocumented
+ ResultantAppStateDetailVDependencyWithRequirementsNotMet ResultantAppStateDetail = "dependencyWithRequirementsNotMet"
+ // ResultantAppStateDetailVDependencyPendingReboot undocumented
+ ResultantAppStateDetailVDependencyPendingReboot ResultantAppStateDetail = "dependencyPendingReboot"
+ // ResultantAppStateDetailVDependencyWithAutoInstallDisabled undocumented
+ ResultantAppStateDetailVDependencyWithAutoInstallDisabled ResultantAppStateDetail = "dependencyWithAutoInstallDisabled"
+ // ResultantAppStateDetailVSeeInstallErrorCode undocumented
+ ResultantAppStateDetailVSeeInstallErrorCode ResultantAppStateDetail = "seeInstallErrorCode"
+ // ResultantAppStateDetailVAutoInstallDisabled undocumented
+ ResultantAppStateDetailVAutoInstallDisabled ResultantAppStateDetail = "autoInstallDisabled"
+ // ResultantAppStateDetailVSeeUninstallErrorCode undocumented
+ ResultantAppStateDetailVSeeUninstallErrorCode ResultantAppStateDetail = "seeUninstallErrorCode"
+ // ResultantAppStateDetailVPendingReboot undocumented
+ ResultantAppStateDetailVPendingReboot ResultantAppStateDetail = "pendingReboot"
+ // ResultantAppStateDetailVInstallingDependencies undocumented
+ ResultantAppStateDetailVInstallingDependencies ResultantAppStateDetail = "installingDependencies"
+ // ResultantAppStateDetailVPowerShellScriptRequirementNotMet undocumented
+ ResultantAppStateDetailVPowerShellScriptRequirementNotMet ResultantAppStateDetail = "powerShellScriptRequirementNotMet"
+ // ResultantAppStateDetailVRegistryRequirementNotMet undocumented
+ ResultantAppStateDetailVRegistryRequirementNotMet ResultantAppStateDetail = "registryRequirementNotMet"
+ // ResultantAppStateDetailVFileSystemRequirementNotMet undocumented
+ ResultantAppStateDetailVFileSystemRequirementNotMet ResultantAppStateDetail = "fileSystemRequirementNotMet"
+ // ResultantAppStateDetailVPlatformNotApplicable undocumented
+ ResultantAppStateDetailVPlatformNotApplicable ResultantAppStateDetail = "platformNotApplicable"
+ // ResultantAppStateDetailVMinimumCPUSpeedNotMet undocumented
+ ResultantAppStateDetailVMinimumCPUSpeedNotMet ResultantAppStateDetail = "minimumCpuSpeedNotMet"
+ // ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet undocumented
+ ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet ResultantAppStateDetail = "minimumLogicalProcessorCountNotMet"
+ // ResultantAppStateDetailVMinimumPhysicalMemoryNotMet undocumented
+ ResultantAppStateDetailVMinimumPhysicalMemoryNotMet ResultantAppStateDetail = "minimumPhysicalMemoryNotMet"
+ // ResultantAppStateDetailVMinimumOsVersionNotMet undocumented
+ ResultantAppStateDetailVMinimumOsVersionNotMet ResultantAppStateDetail = "minimumOsVersionNotMet"
+ // ResultantAppStateDetailVMinimumDiskSpaceNotMet undocumented
+ ResultantAppStateDetailVMinimumDiskSpaceNotMet ResultantAppStateDetail = "minimumDiskSpaceNotMet"
+ // ResultantAppStateDetailVProcessorArchitectureNotApplicable undocumented
+ ResultantAppStateDetailVProcessorArchitectureNotApplicable ResultantAppStateDetail = "processorArchitectureNotApplicable"
+)
+
+var (
+ // ResultantAppStateDetailPNoAdditionalDetails is a pointer to ResultantAppStateDetailVNoAdditionalDetails
+ ResultantAppStateDetailPNoAdditionalDetails = &_ResultantAppStateDetailPNoAdditionalDetails
+ // ResultantAppStateDetailPDependencyFailedToInstall is a pointer to ResultantAppStateDetailVDependencyFailedToInstall
+ ResultantAppStateDetailPDependencyFailedToInstall = &_ResultantAppStateDetailPDependencyFailedToInstall
+ // ResultantAppStateDetailPDependencyWithRequirementsNotMet is a pointer to ResultantAppStateDetailVDependencyWithRequirementsNotMet
+ ResultantAppStateDetailPDependencyWithRequirementsNotMet = &_ResultantAppStateDetailPDependencyWithRequirementsNotMet
+ // ResultantAppStateDetailPDependencyPendingReboot is a pointer to ResultantAppStateDetailVDependencyPendingReboot
+ ResultantAppStateDetailPDependencyPendingReboot = &_ResultantAppStateDetailPDependencyPendingReboot
+ // ResultantAppStateDetailPDependencyWithAutoInstallDisabled is a pointer to ResultantAppStateDetailVDependencyWithAutoInstallDisabled
+ ResultantAppStateDetailPDependencyWithAutoInstallDisabled = &_ResultantAppStateDetailPDependencyWithAutoInstallDisabled
+ // ResultantAppStateDetailPSeeInstallErrorCode is a pointer to ResultantAppStateDetailVSeeInstallErrorCode
+ ResultantAppStateDetailPSeeInstallErrorCode = &_ResultantAppStateDetailPSeeInstallErrorCode
+ // ResultantAppStateDetailPAutoInstallDisabled is a pointer to ResultantAppStateDetailVAutoInstallDisabled
+ ResultantAppStateDetailPAutoInstallDisabled = &_ResultantAppStateDetailPAutoInstallDisabled
+ // ResultantAppStateDetailPSeeUninstallErrorCode is a pointer to ResultantAppStateDetailVSeeUninstallErrorCode
+ ResultantAppStateDetailPSeeUninstallErrorCode = &_ResultantAppStateDetailPSeeUninstallErrorCode
+ // ResultantAppStateDetailPPendingReboot is a pointer to ResultantAppStateDetailVPendingReboot
+ ResultantAppStateDetailPPendingReboot = &_ResultantAppStateDetailPPendingReboot
+ // ResultantAppStateDetailPInstallingDependencies is a pointer to ResultantAppStateDetailVInstallingDependencies
+ ResultantAppStateDetailPInstallingDependencies = &_ResultantAppStateDetailPInstallingDependencies
+ // ResultantAppStateDetailPPowerShellScriptRequirementNotMet is a pointer to ResultantAppStateDetailVPowerShellScriptRequirementNotMet
+ ResultantAppStateDetailPPowerShellScriptRequirementNotMet = &_ResultantAppStateDetailPPowerShellScriptRequirementNotMet
+ // ResultantAppStateDetailPRegistryRequirementNotMet is a pointer to ResultantAppStateDetailVRegistryRequirementNotMet
+ ResultantAppStateDetailPRegistryRequirementNotMet = &_ResultantAppStateDetailPRegistryRequirementNotMet
+ // ResultantAppStateDetailPFileSystemRequirementNotMet is a pointer to ResultantAppStateDetailVFileSystemRequirementNotMet
+ ResultantAppStateDetailPFileSystemRequirementNotMet = &_ResultantAppStateDetailPFileSystemRequirementNotMet
+ // ResultantAppStateDetailPPlatformNotApplicable is a pointer to ResultantAppStateDetailVPlatformNotApplicable
+ ResultantAppStateDetailPPlatformNotApplicable = &_ResultantAppStateDetailPPlatformNotApplicable
+ // ResultantAppStateDetailPMinimumCPUSpeedNotMet is a pointer to ResultantAppStateDetailVMinimumCPUSpeedNotMet
+ ResultantAppStateDetailPMinimumCPUSpeedNotMet = &_ResultantAppStateDetailPMinimumCPUSpeedNotMet
+ // ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet is a pointer to ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet
+ ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet = &_ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet
+ // ResultantAppStateDetailPMinimumPhysicalMemoryNotMet is a pointer to ResultantAppStateDetailVMinimumPhysicalMemoryNotMet
+ ResultantAppStateDetailPMinimumPhysicalMemoryNotMet = &_ResultantAppStateDetailPMinimumPhysicalMemoryNotMet
+ // ResultantAppStateDetailPMinimumOsVersionNotMet is a pointer to ResultantAppStateDetailVMinimumOsVersionNotMet
+ ResultantAppStateDetailPMinimumOsVersionNotMet = &_ResultantAppStateDetailPMinimumOsVersionNotMet
+ // ResultantAppStateDetailPMinimumDiskSpaceNotMet is a pointer to ResultantAppStateDetailVMinimumDiskSpaceNotMet
+ ResultantAppStateDetailPMinimumDiskSpaceNotMet = &_ResultantAppStateDetailPMinimumDiskSpaceNotMet
+ // ResultantAppStateDetailPProcessorArchitectureNotApplicable is a pointer to ResultantAppStateDetailVProcessorArchitectureNotApplicable
+ ResultantAppStateDetailPProcessorArchitectureNotApplicable = &_ResultantAppStateDetailPProcessorArchitectureNotApplicable
+)
+
+var (
+ _ResultantAppStateDetailPNoAdditionalDetails = ResultantAppStateDetailVNoAdditionalDetails
+ _ResultantAppStateDetailPDependencyFailedToInstall = ResultantAppStateDetailVDependencyFailedToInstall
+ _ResultantAppStateDetailPDependencyWithRequirementsNotMet = ResultantAppStateDetailVDependencyWithRequirementsNotMet
+ _ResultantAppStateDetailPDependencyPendingReboot = ResultantAppStateDetailVDependencyPendingReboot
+ _ResultantAppStateDetailPDependencyWithAutoInstallDisabled = ResultantAppStateDetailVDependencyWithAutoInstallDisabled
+ _ResultantAppStateDetailPSeeInstallErrorCode = ResultantAppStateDetailVSeeInstallErrorCode
+ _ResultantAppStateDetailPAutoInstallDisabled = ResultantAppStateDetailVAutoInstallDisabled
+ _ResultantAppStateDetailPSeeUninstallErrorCode = ResultantAppStateDetailVSeeUninstallErrorCode
+ _ResultantAppStateDetailPPendingReboot = ResultantAppStateDetailVPendingReboot
+ _ResultantAppStateDetailPInstallingDependencies = ResultantAppStateDetailVInstallingDependencies
+ _ResultantAppStateDetailPPowerShellScriptRequirementNotMet = ResultantAppStateDetailVPowerShellScriptRequirementNotMet
+ _ResultantAppStateDetailPRegistryRequirementNotMet = ResultantAppStateDetailVRegistryRequirementNotMet
+ _ResultantAppStateDetailPFileSystemRequirementNotMet = ResultantAppStateDetailVFileSystemRequirementNotMet
+ _ResultantAppStateDetailPPlatformNotApplicable = ResultantAppStateDetailVPlatformNotApplicable
+ _ResultantAppStateDetailPMinimumCPUSpeedNotMet = ResultantAppStateDetailVMinimumCPUSpeedNotMet
+ _ResultantAppStateDetailPMinimumLogicalProcessorCountNotMet = ResultantAppStateDetailVMinimumLogicalProcessorCountNotMet
+ _ResultantAppStateDetailPMinimumPhysicalMemoryNotMet = ResultantAppStateDetailVMinimumPhysicalMemoryNotMet
+ _ResultantAppStateDetailPMinimumOsVersionNotMet = ResultantAppStateDetailVMinimumOsVersionNotMet
+ _ResultantAppStateDetailPMinimumDiskSpaceNotMet = ResultantAppStateDetailVMinimumDiskSpaceNotMet
+ _ResultantAppStateDetailPProcessorArchitectureNotApplicable = ResultantAppStateDetailVProcessorArchitectureNotApplicable
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRisk.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRisk.go
new file mode 100644
index 00000000..a2571503
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRisk.go
@@ -0,0 +1,340 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RiskDetail undocumented
+type RiskDetail string
+
+const (
+ // RiskDetailVNone undocumented
+ RiskDetailVNone RiskDetail = "none"
+ // RiskDetailVAdminGeneratedTemporaryPassword undocumented
+ RiskDetailVAdminGeneratedTemporaryPassword RiskDetail = "adminGeneratedTemporaryPassword"
+ // RiskDetailVUserPerformedSecuredPasswordChange undocumented
+ RiskDetailVUserPerformedSecuredPasswordChange RiskDetail = "userPerformedSecuredPasswordChange"
+ // RiskDetailVUserPerformedSecuredPasswordReset undocumented
+ RiskDetailVUserPerformedSecuredPasswordReset RiskDetail = "userPerformedSecuredPasswordReset"
+ // RiskDetailVAdminConfirmedSigninSafe undocumented
+ RiskDetailVAdminConfirmedSigninSafe RiskDetail = "adminConfirmedSigninSafe"
+ // RiskDetailVAiConfirmedSigninSafe undocumented
+ RiskDetailVAiConfirmedSigninSafe RiskDetail = "aiConfirmedSigninSafe"
+ // RiskDetailVUserPassedMFADrivenByRiskBasedPolicy undocumented
+ RiskDetailVUserPassedMFADrivenByRiskBasedPolicy RiskDetail = "userPassedMFADrivenByRiskBasedPolicy"
+ // RiskDetailVAdminDismissedAllRiskForUser undocumented
+ RiskDetailVAdminDismissedAllRiskForUser RiskDetail = "adminDismissedAllRiskForUser"
+ // RiskDetailVAdminConfirmedSigninCompromised undocumented
+ RiskDetailVAdminConfirmedSigninCompromised RiskDetail = "adminConfirmedSigninCompromised"
+ // RiskDetailVHidden undocumented
+ RiskDetailVHidden RiskDetail = "hidden"
+ // RiskDetailVAdminConfirmedUserCompromised undocumented
+ RiskDetailVAdminConfirmedUserCompromised RiskDetail = "adminConfirmedUserCompromised"
+ // RiskDetailVUnknownFutureValue undocumented
+ RiskDetailVUnknownFutureValue RiskDetail = "unknownFutureValue"
+)
+
+var (
+ // RiskDetailPNone is a pointer to RiskDetailVNone
+ RiskDetailPNone = &_RiskDetailPNone
+ // RiskDetailPAdminGeneratedTemporaryPassword is a pointer to RiskDetailVAdminGeneratedTemporaryPassword
+ RiskDetailPAdminGeneratedTemporaryPassword = &_RiskDetailPAdminGeneratedTemporaryPassword
+ // RiskDetailPUserPerformedSecuredPasswordChange is a pointer to RiskDetailVUserPerformedSecuredPasswordChange
+ RiskDetailPUserPerformedSecuredPasswordChange = &_RiskDetailPUserPerformedSecuredPasswordChange
+ // RiskDetailPUserPerformedSecuredPasswordReset is a pointer to RiskDetailVUserPerformedSecuredPasswordReset
+ RiskDetailPUserPerformedSecuredPasswordReset = &_RiskDetailPUserPerformedSecuredPasswordReset
+ // RiskDetailPAdminConfirmedSigninSafe is a pointer to RiskDetailVAdminConfirmedSigninSafe
+ RiskDetailPAdminConfirmedSigninSafe = &_RiskDetailPAdminConfirmedSigninSafe
+ // RiskDetailPAiConfirmedSigninSafe is a pointer to RiskDetailVAiConfirmedSigninSafe
+ RiskDetailPAiConfirmedSigninSafe = &_RiskDetailPAiConfirmedSigninSafe
+ // RiskDetailPUserPassedMFADrivenByRiskBasedPolicy is a pointer to RiskDetailVUserPassedMFADrivenByRiskBasedPolicy
+ RiskDetailPUserPassedMFADrivenByRiskBasedPolicy = &_RiskDetailPUserPassedMFADrivenByRiskBasedPolicy
+ // RiskDetailPAdminDismissedAllRiskForUser is a pointer to RiskDetailVAdminDismissedAllRiskForUser
+ RiskDetailPAdminDismissedAllRiskForUser = &_RiskDetailPAdminDismissedAllRiskForUser
+ // RiskDetailPAdminConfirmedSigninCompromised is a pointer to RiskDetailVAdminConfirmedSigninCompromised
+ RiskDetailPAdminConfirmedSigninCompromised = &_RiskDetailPAdminConfirmedSigninCompromised
+ // RiskDetailPHidden is a pointer to RiskDetailVHidden
+ RiskDetailPHidden = &_RiskDetailPHidden
+ // RiskDetailPAdminConfirmedUserCompromised is a pointer to RiskDetailVAdminConfirmedUserCompromised
+ RiskDetailPAdminConfirmedUserCompromised = &_RiskDetailPAdminConfirmedUserCompromised
+ // RiskDetailPUnknownFutureValue is a pointer to RiskDetailVUnknownFutureValue
+ RiskDetailPUnknownFutureValue = &_RiskDetailPUnknownFutureValue
+)
+
+var (
+ _RiskDetailPNone = RiskDetailVNone
+ _RiskDetailPAdminGeneratedTemporaryPassword = RiskDetailVAdminGeneratedTemporaryPassword
+ _RiskDetailPUserPerformedSecuredPasswordChange = RiskDetailVUserPerformedSecuredPasswordChange
+ _RiskDetailPUserPerformedSecuredPasswordReset = RiskDetailVUserPerformedSecuredPasswordReset
+ _RiskDetailPAdminConfirmedSigninSafe = RiskDetailVAdminConfirmedSigninSafe
+ _RiskDetailPAiConfirmedSigninSafe = RiskDetailVAiConfirmedSigninSafe
+ _RiskDetailPUserPassedMFADrivenByRiskBasedPolicy = RiskDetailVUserPassedMFADrivenByRiskBasedPolicy
+ _RiskDetailPAdminDismissedAllRiskForUser = RiskDetailVAdminDismissedAllRiskForUser
+ _RiskDetailPAdminConfirmedSigninCompromised = RiskDetailVAdminConfirmedSigninCompromised
+ _RiskDetailPHidden = RiskDetailVHidden
+ _RiskDetailPAdminConfirmedUserCompromised = RiskDetailVAdminConfirmedUserCompromised
+ _RiskDetailPUnknownFutureValue = RiskDetailVUnknownFutureValue
+)
+
+// RiskDetectionTimingType undocumented
+type RiskDetectionTimingType string
+
+const (
+ // RiskDetectionTimingTypeVNotDefined undocumented
+ RiskDetectionTimingTypeVNotDefined RiskDetectionTimingType = "notDefined"
+ // RiskDetectionTimingTypeVRealtime undocumented
+ RiskDetectionTimingTypeVRealtime RiskDetectionTimingType = "realtime"
+ // RiskDetectionTimingTypeVNearRealtime undocumented
+ RiskDetectionTimingTypeVNearRealtime RiskDetectionTimingType = "nearRealtime"
+ // RiskDetectionTimingTypeVOffline undocumented
+ RiskDetectionTimingTypeVOffline RiskDetectionTimingType = "offline"
+ // RiskDetectionTimingTypeVUnknownFutureValue undocumented
+ RiskDetectionTimingTypeVUnknownFutureValue RiskDetectionTimingType = "unknownFutureValue"
+)
+
+var (
+ // RiskDetectionTimingTypePNotDefined is a pointer to RiskDetectionTimingTypeVNotDefined
+ RiskDetectionTimingTypePNotDefined = &_RiskDetectionTimingTypePNotDefined
+ // RiskDetectionTimingTypePRealtime is a pointer to RiskDetectionTimingTypeVRealtime
+ RiskDetectionTimingTypePRealtime = &_RiskDetectionTimingTypePRealtime
+ // RiskDetectionTimingTypePNearRealtime is a pointer to RiskDetectionTimingTypeVNearRealtime
+ RiskDetectionTimingTypePNearRealtime = &_RiskDetectionTimingTypePNearRealtime
+ // RiskDetectionTimingTypePOffline is a pointer to RiskDetectionTimingTypeVOffline
+ RiskDetectionTimingTypePOffline = &_RiskDetectionTimingTypePOffline
+ // RiskDetectionTimingTypePUnknownFutureValue is a pointer to RiskDetectionTimingTypeVUnknownFutureValue
+ RiskDetectionTimingTypePUnknownFutureValue = &_RiskDetectionTimingTypePUnknownFutureValue
+)
+
+var (
+ _RiskDetectionTimingTypePNotDefined = RiskDetectionTimingTypeVNotDefined
+ _RiskDetectionTimingTypePRealtime = RiskDetectionTimingTypeVRealtime
+ _RiskDetectionTimingTypePNearRealtime = RiskDetectionTimingTypeVNearRealtime
+ _RiskDetectionTimingTypePOffline = RiskDetectionTimingTypeVOffline
+ _RiskDetectionTimingTypePUnknownFutureValue = RiskDetectionTimingTypeVUnknownFutureValue
+)
+
+// RiskEventStatus undocumented
+type RiskEventStatus string
+
+const (
+ // RiskEventStatusVActive undocumented
+ RiskEventStatusVActive RiskEventStatus = "active"
+ // RiskEventStatusVRemediated undocumented
+ RiskEventStatusVRemediated RiskEventStatus = "remediated"
+ // RiskEventStatusVDismissedAsFixed undocumented
+ RiskEventStatusVDismissedAsFixed RiskEventStatus = "dismissedAsFixed"
+ // RiskEventStatusVDismissedAsFalsePositive undocumented
+ RiskEventStatusVDismissedAsFalsePositive RiskEventStatus = "dismissedAsFalsePositive"
+ // RiskEventStatusVDismissedAsIgnore undocumented
+ RiskEventStatusVDismissedAsIgnore RiskEventStatus = "dismissedAsIgnore"
+ // RiskEventStatusVLoginBlocked undocumented
+ RiskEventStatusVLoginBlocked RiskEventStatus = "loginBlocked"
+ // RiskEventStatusVClosedMFAAuto undocumented
+ RiskEventStatusVClosedMFAAuto RiskEventStatus = "closedMfaAuto"
+ // RiskEventStatusVClosedMultipleReasons undocumented
+ RiskEventStatusVClosedMultipleReasons RiskEventStatus = "closedMultipleReasons"
+)
+
+var (
+ // RiskEventStatusPActive is a pointer to RiskEventStatusVActive
+ RiskEventStatusPActive = &_RiskEventStatusPActive
+ // RiskEventStatusPRemediated is a pointer to RiskEventStatusVRemediated
+ RiskEventStatusPRemediated = &_RiskEventStatusPRemediated
+ // RiskEventStatusPDismissedAsFixed is a pointer to RiskEventStatusVDismissedAsFixed
+ RiskEventStatusPDismissedAsFixed = &_RiskEventStatusPDismissedAsFixed
+ // RiskEventStatusPDismissedAsFalsePositive is a pointer to RiskEventStatusVDismissedAsFalsePositive
+ RiskEventStatusPDismissedAsFalsePositive = &_RiskEventStatusPDismissedAsFalsePositive
+ // RiskEventStatusPDismissedAsIgnore is a pointer to RiskEventStatusVDismissedAsIgnore
+ RiskEventStatusPDismissedAsIgnore = &_RiskEventStatusPDismissedAsIgnore
+ // RiskEventStatusPLoginBlocked is a pointer to RiskEventStatusVLoginBlocked
+ RiskEventStatusPLoginBlocked = &_RiskEventStatusPLoginBlocked
+ // RiskEventStatusPClosedMFAAuto is a pointer to RiskEventStatusVClosedMFAAuto
+ RiskEventStatusPClosedMFAAuto = &_RiskEventStatusPClosedMFAAuto
+ // RiskEventStatusPClosedMultipleReasons is a pointer to RiskEventStatusVClosedMultipleReasons
+ RiskEventStatusPClosedMultipleReasons = &_RiskEventStatusPClosedMultipleReasons
+)
+
+var (
+ _RiskEventStatusPActive = RiskEventStatusVActive
+ _RiskEventStatusPRemediated = RiskEventStatusVRemediated
+ _RiskEventStatusPDismissedAsFixed = RiskEventStatusVDismissedAsFixed
+ _RiskEventStatusPDismissedAsFalsePositive = RiskEventStatusVDismissedAsFalsePositive
+ _RiskEventStatusPDismissedAsIgnore = RiskEventStatusVDismissedAsIgnore
+ _RiskEventStatusPLoginBlocked = RiskEventStatusVLoginBlocked
+ _RiskEventStatusPClosedMFAAuto = RiskEventStatusVClosedMFAAuto
+ _RiskEventStatusPClosedMultipleReasons = RiskEventStatusVClosedMultipleReasons
+)
+
+// RiskEventType undocumented
+type RiskEventType string
+
+const (
+ // RiskEventTypeVUnlikelyTravel undocumented
+ RiskEventTypeVUnlikelyTravel RiskEventType = "unlikelyTravel"
+ // RiskEventTypeVAnonymizedIPAddress undocumented
+ RiskEventTypeVAnonymizedIPAddress RiskEventType = "anonymizedIPAddress"
+ // RiskEventTypeVMaliciousIPAddress undocumented
+ RiskEventTypeVMaliciousIPAddress RiskEventType = "maliciousIPAddress"
+ // RiskEventTypeVUnfamiliarFeatures undocumented
+ RiskEventTypeVUnfamiliarFeatures RiskEventType = "unfamiliarFeatures"
+ // RiskEventTypeVMalwareInfectedIPAddress undocumented
+ RiskEventTypeVMalwareInfectedIPAddress RiskEventType = "malwareInfectedIPAddress"
+ // RiskEventTypeVSuspiciousIPAddress undocumented
+ RiskEventTypeVSuspiciousIPAddress RiskEventType = "suspiciousIPAddress"
+ // RiskEventTypeVLeakedCredentials undocumented
+ RiskEventTypeVLeakedCredentials RiskEventType = "leakedCredentials"
+ // RiskEventTypeVInvestigationsThreatIntelligence undocumented
+ RiskEventTypeVInvestigationsThreatIntelligence RiskEventType = "investigationsThreatIntelligence"
+ // RiskEventTypeVGeneric undocumented
+ RiskEventTypeVGeneric RiskEventType = "generic"
+ // RiskEventTypeVAdminConfirmedUserCompromised undocumented
+ RiskEventTypeVAdminConfirmedUserCompromised RiskEventType = "adminConfirmedUserCompromised"
+ // RiskEventTypeVMcasImpossibleTravel undocumented
+ RiskEventTypeVMcasImpossibleTravel RiskEventType = "mcasImpossibleTravel"
+ // RiskEventTypeVMcasSuspiciousInboxManipulationRules undocumented
+ RiskEventTypeVMcasSuspiciousInboxManipulationRules RiskEventType = "mcasSuspiciousInboxManipulationRules"
+ // RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked undocumented
+ RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked RiskEventType = "investigationsThreatIntelligenceSigninLinked"
+ // RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP undocumented
+ RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP RiskEventType = "maliciousIPAddressValidCredentialsBlockedIP"
+ // RiskEventTypeVUnknownFutureValue undocumented
+ RiskEventTypeVUnknownFutureValue RiskEventType = "unknownFutureValue"
+)
+
+var (
+ // RiskEventTypePUnlikelyTravel is a pointer to RiskEventTypeVUnlikelyTravel
+ RiskEventTypePUnlikelyTravel = &_RiskEventTypePUnlikelyTravel
+ // RiskEventTypePAnonymizedIPAddress is a pointer to RiskEventTypeVAnonymizedIPAddress
+ RiskEventTypePAnonymizedIPAddress = &_RiskEventTypePAnonymizedIPAddress
+ // RiskEventTypePMaliciousIPAddress is a pointer to RiskEventTypeVMaliciousIPAddress
+ RiskEventTypePMaliciousIPAddress = &_RiskEventTypePMaliciousIPAddress
+ // RiskEventTypePUnfamiliarFeatures is a pointer to RiskEventTypeVUnfamiliarFeatures
+ RiskEventTypePUnfamiliarFeatures = &_RiskEventTypePUnfamiliarFeatures
+ // RiskEventTypePMalwareInfectedIPAddress is a pointer to RiskEventTypeVMalwareInfectedIPAddress
+ RiskEventTypePMalwareInfectedIPAddress = &_RiskEventTypePMalwareInfectedIPAddress
+ // RiskEventTypePSuspiciousIPAddress is a pointer to RiskEventTypeVSuspiciousIPAddress
+ RiskEventTypePSuspiciousIPAddress = &_RiskEventTypePSuspiciousIPAddress
+ // RiskEventTypePLeakedCredentials is a pointer to RiskEventTypeVLeakedCredentials
+ RiskEventTypePLeakedCredentials = &_RiskEventTypePLeakedCredentials
+ // RiskEventTypePInvestigationsThreatIntelligence is a pointer to RiskEventTypeVInvestigationsThreatIntelligence
+ RiskEventTypePInvestigationsThreatIntelligence = &_RiskEventTypePInvestigationsThreatIntelligence
+ // RiskEventTypePGeneric is a pointer to RiskEventTypeVGeneric
+ RiskEventTypePGeneric = &_RiskEventTypePGeneric
+ // RiskEventTypePAdminConfirmedUserCompromised is a pointer to RiskEventTypeVAdminConfirmedUserCompromised
+ RiskEventTypePAdminConfirmedUserCompromised = &_RiskEventTypePAdminConfirmedUserCompromised
+ // RiskEventTypePMcasImpossibleTravel is a pointer to RiskEventTypeVMcasImpossibleTravel
+ RiskEventTypePMcasImpossibleTravel = &_RiskEventTypePMcasImpossibleTravel
+ // RiskEventTypePMcasSuspiciousInboxManipulationRules is a pointer to RiskEventTypeVMcasSuspiciousInboxManipulationRules
+ RiskEventTypePMcasSuspiciousInboxManipulationRules = &_RiskEventTypePMcasSuspiciousInboxManipulationRules
+ // RiskEventTypePInvestigationsThreatIntelligenceSigninLinked is a pointer to RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked
+ RiskEventTypePInvestigationsThreatIntelligenceSigninLinked = &_RiskEventTypePInvestigationsThreatIntelligenceSigninLinked
+ // RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP is a pointer to RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP
+ RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP = &_RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP
+ // RiskEventTypePUnknownFutureValue is a pointer to RiskEventTypeVUnknownFutureValue
+ RiskEventTypePUnknownFutureValue = &_RiskEventTypePUnknownFutureValue
+)
+
+var (
+ _RiskEventTypePUnlikelyTravel = RiskEventTypeVUnlikelyTravel
+ _RiskEventTypePAnonymizedIPAddress = RiskEventTypeVAnonymizedIPAddress
+ _RiskEventTypePMaliciousIPAddress = RiskEventTypeVMaliciousIPAddress
+ _RiskEventTypePUnfamiliarFeatures = RiskEventTypeVUnfamiliarFeatures
+ _RiskEventTypePMalwareInfectedIPAddress = RiskEventTypeVMalwareInfectedIPAddress
+ _RiskEventTypePSuspiciousIPAddress = RiskEventTypeVSuspiciousIPAddress
+ _RiskEventTypePLeakedCredentials = RiskEventTypeVLeakedCredentials
+ _RiskEventTypePInvestigationsThreatIntelligence = RiskEventTypeVInvestigationsThreatIntelligence
+ _RiskEventTypePGeneric = RiskEventTypeVGeneric
+ _RiskEventTypePAdminConfirmedUserCompromised = RiskEventTypeVAdminConfirmedUserCompromised
+ _RiskEventTypePMcasImpossibleTravel = RiskEventTypeVMcasImpossibleTravel
+ _RiskEventTypePMcasSuspiciousInboxManipulationRules = RiskEventTypeVMcasSuspiciousInboxManipulationRules
+ _RiskEventTypePInvestigationsThreatIntelligenceSigninLinked = RiskEventTypeVInvestigationsThreatIntelligenceSigninLinked
+ _RiskEventTypePMaliciousIPAddressValidCredentialsBlockedIP = RiskEventTypeVMaliciousIPAddressValidCredentialsBlockedIP
+ _RiskEventTypePUnknownFutureValue = RiskEventTypeVUnknownFutureValue
+)
+
+// RiskLevel undocumented
+type RiskLevel string
+
+const (
+ // RiskLevelVLow undocumented
+ RiskLevelVLow RiskLevel = "low"
+ // RiskLevelVMedium undocumented
+ RiskLevelVMedium RiskLevel = "medium"
+ // RiskLevelVHigh undocumented
+ RiskLevelVHigh RiskLevel = "high"
+ // RiskLevelVHidden undocumented
+ RiskLevelVHidden RiskLevel = "hidden"
+ // RiskLevelVNone undocumented
+ RiskLevelVNone RiskLevel = "none"
+ // RiskLevelVUnknownFutureValue undocumented
+ RiskLevelVUnknownFutureValue RiskLevel = "unknownFutureValue"
+)
+
+var (
+ // RiskLevelPLow is a pointer to RiskLevelVLow
+ RiskLevelPLow = &_RiskLevelPLow
+ // RiskLevelPMedium is a pointer to RiskLevelVMedium
+ RiskLevelPMedium = &_RiskLevelPMedium
+ // RiskLevelPHigh is a pointer to RiskLevelVHigh
+ RiskLevelPHigh = &_RiskLevelPHigh
+ // RiskLevelPHidden is a pointer to RiskLevelVHidden
+ RiskLevelPHidden = &_RiskLevelPHidden
+ // RiskLevelPNone is a pointer to RiskLevelVNone
+ RiskLevelPNone = &_RiskLevelPNone
+ // RiskLevelPUnknownFutureValue is a pointer to RiskLevelVUnknownFutureValue
+ RiskLevelPUnknownFutureValue = &_RiskLevelPUnknownFutureValue
+)
+
+var (
+ _RiskLevelPLow = RiskLevelVLow
+ _RiskLevelPMedium = RiskLevelVMedium
+ _RiskLevelPHigh = RiskLevelVHigh
+ _RiskLevelPHidden = RiskLevelVHidden
+ _RiskLevelPNone = RiskLevelVNone
+ _RiskLevelPUnknownFutureValue = RiskLevelVUnknownFutureValue
+)
+
+// RiskState undocumented
+type RiskState string
+
+const (
+ // RiskStateVNone undocumented
+ RiskStateVNone RiskState = "none"
+ // RiskStateVConfirmedSafe undocumented
+ RiskStateVConfirmedSafe RiskState = "confirmedSafe"
+ // RiskStateVRemediated undocumented
+ RiskStateVRemediated RiskState = "remediated"
+ // RiskStateVDismissed undocumented
+ RiskStateVDismissed RiskState = "dismissed"
+ // RiskStateVAtRisk undocumented
+ RiskStateVAtRisk RiskState = "atRisk"
+ // RiskStateVConfirmedCompromised undocumented
+ RiskStateVConfirmedCompromised RiskState = "confirmedCompromised"
+ // RiskStateVUnknownFutureValue undocumented
+ RiskStateVUnknownFutureValue RiskState = "unknownFutureValue"
+)
+
+var (
+ // RiskStatePNone is a pointer to RiskStateVNone
+ RiskStatePNone = &_RiskStatePNone
+ // RiskStatePConfirmedSafe is a pointer to RiskStateVConfirmedSafe
+ RiskStatePConfirmedSafe = &_RiskStatePConfirmedSafe
+ // RiskStatePRemediated is a pointer to RiskStateVRemediated
+ RiskStatePRemediated = &_RiskStatePRemediated
+ // RiskStatePDismissed is a pointer to RiskStateVDismissed
+ RiskStatePDismissed = &_RiskStatePDismissed
+ // RiskStatePAtRisk is a pointer to RiskStateVAtRisk
+ RiskStatePAtRisk = &_RiskStatePAtRisk
+ // RiskStatePConfirmedCompromised is a pointer to RiskStateVConfirmedCompromised
+ RiskStatePConfirmedCompromised = &_RiskStatePConfirmedCompromised
+ // RiskStatePUnknownFutureValue is a pointer to RiskStateVUnknownFutureValue
+ RiskStatePUnknownFutureValue = &_RiskStatePUnknownFutureValue
+)
+
+var (
+ _RiskStatePNone = RiskStateVNone
+ _RiskStatePConfirmedSafe = RiskStateVConfirmedSafe
+ _RiskStatePRemediated = RiskStateVRemediated
+ _RiskStatePDismissed = RiskStateVDismissed
+ _RiskStatePAtRisk = RiskStateVAtRisk
+ _RiskStatePConfirmedCompromised = RiskStateVConfirmedCompromised
+ _RiskStatePUnknownFutureValue = RiskStateVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRole.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRole.go
new file mode 100644
index 00000000..b9155be5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRole.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleAssignmentScopeType undocumented
+type RoleAssignmentScopeType string
+
+const (
+ // RoleAssignmentScopeTypeVResourceScope undocumented
+ RoleAssignmentScopeTypeVResourceScope RoleAssignmentScopeType = "resourceScope"
+ // RoleAssignmentScopeTypeVAllDevices undocumented
+ RoleAssignmentScopeTypeVAllDevices RoleAssignmentScopeType = "allDevices"
+ // RoleAssignmentScopeTypeVAllLicensedUsers undocumented
+ RoleAssignmentScopeTypeVAllLicensedUsers RoleAssignmentScopeType = "allLicensedUsers"
+ // RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers undocumented
+ RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers RoleAssignmentScopeType = "allDevicesAndLicensedUsers"
+)
+
+var (
+ // RoleAssignmentScopeTypePResourceScope is a pointer to RoleAssignmentScopeTypeVResourceScope
+ RoleAssignmentScopeTypePResourceScope = &_RoleAssignmentScopeTypePResourceScope
+ // RoleAssignmentScopeTypePAllDevices is a pointer to RoleAssignmentScopeTypeVAllDevices
+ RoleAssignmentScopeTypePAllDevices = &_RoleAssignmentScopeTypePAllDevices
+ // RoleAssignmentScopeTypePAllLicensedUsers is a pointer to RoleAssignmentScopeTypeVAllLicensedUsers
+ RoleAssignmentScopeTypePAllLicensedUsers = &_RoleAssignmentScopeTypePAllLicensedUsers
+ // RoleAssignmentScopeTypePAllDevicesAndLicensedUsers is a pointer to RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers
+ RoleAssignmentScopeTypePAllDevicesAndLicensedUsers = &_RoleAssignmentScopeTypePAllDevicesAndLicensedUsers
+)
+
+var (
+ _RoleAssignmentScopeTypePResourceScope = RoleAssignmentScopeTypeVResourceScope
+ _RoleAssignmentScopeTypePAllDevices = RoleAssignmentScopeTypeVAllDevices
+ _RoleAssignmentScopeTypePAllLicensedUsers = RoleAssignmentScopeTypeVAllLicensedUsers
+ _RoleAssignmentScopeTypePAllDevicesAndLicensedUsers = RoleAssignmentScopeTypeVAllDevicesAndLicensedUsers
+)
+
+// RoleSummaryStatus undocumented
+type RoleSummaryStatus string
+
+const (
+ // RoleSummaryStatusVOk undocumented
+ RoleSummaryStatusVOk RoleSummaryStatus = "ok"
+ // RoleSummaryStatusVBad undocumented
+ RoleSummaryStatusVBad RoleSummaryStatus = "bad"
+)
+
+var (
+ // RoleSummaryStatusPOk is a pointer to RoleSummaryStatusVOk
+ RoleSummaryStatusPOk = &_RoleSummaryStatusPOk
+ // RoleSummaryStatusPBad is a pointer to RoleSummaryStatusVBad
+ RoleSummaryStatusPBad = &_RoleSummaryStatusPBad
+)
+
+var (
+ _RoleSummaryStatusPOk = RoleSummaryStatusVOk
+ _RoleSummaryStatusPBad = RoleSummaryStatusVBad
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRouting.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRouting.go
new file mode 100644
index 00000000..31455baa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRouting.go
@@ -0,0 +1,94 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoutingMode undocumented
+type RoutingMode string
+
+const (
+ // RoutingModeVOneToOne undocumented
+ RoutingModeVOneToOne RoutingMode = "oneToOne"
+ // RoutingModeVMulticast undocumented
+ RoutingModeVMulticast RoutingMode = "multicast"
+)
+
+var (
+ // RoutingModePOneToOne is a pointer to RoutingModeVOneToOne
+ RoutingModePOneToOne = &_RoutingModePOneToOne
+ // RoutingModePMulticast is a pointer to RoutingModeVMulticast
+ RoutingModePMulticast = &_RoutingModePMulticast
+)
+
+var (
+ _RoutingModePOneToOne = RoutingModeVOneToOne
+ _RoutingModePMulticast = RoutingModeVMulticast
+)
+
+// RoutingPolicy undocumented
+type RoutingPolicy string
+
+const (
+ // RoutingPolicyVNone undocumented
+ RoutingPolicyVNone RoutingPolicy = "none"
+ // RoutingPolicyVNoMissedCall undocumented
+ RoutingPolicyVNoMissedCall RoutingPolicy = "noMissedCall"
+ // RoutingPolicyVDisableForwardingExceptPhone undocumented
+ RoutingPolicyVDisableForwardingExceptPhone RoutingPolicy = "disableForwardingExceptPhone"
+ // RoutingPolicyVDisableForwarding undocumented
+ RoutingPolicyVDisableForwarding RoutingPolicy = "disableForwarding"
+ // RoutingPolicyVPreferSkypeForBusiness undocumented
+ RoutingPolicyVPreferSkypeForBusiness RoutingPolicy = "preferSkypeForBusiness"
+ // RoutingPolicyVUnknownFutureValue undocumented
+ RoutingPolicyVUnknownFutureValue RoutingPolicy = "unknownFutureValue"
+)
+
+var (
+ // RoutingPolicyPNone is a pointer to RoutingPolicyVNone
+ RoutingPolicyPNone = &_RoutingPolicyPNone
+ // RoutingPolicyPNoMissedCall is a pointer to RoutingPolicyVNoMissedCall
+ RoutingPolicyPNoMissedCall = &_RoutingPolicyPNoMissedCall
+ // RoutingPolicyPDisableForwardingExceptPhone is a pointer to RoutingPolicyVDisableForwardingExceptPhone
+ RoutingPolicyPDisableForwardingExceptPhone = &_RoutingPolicyPDisableForwardingExceptPhone
+ // RoutingPolicyPDisableForwarding is a pointer to RoutingPolicyVDisableForwarding
+ RoutingPolicyPDisableForwarding = &_RoutingPolicyPDisableForwarding
+ // RoutingPolicyPPreferSkypeForBusiness is a pointer to RoutingPolicyVPreferSkypeForBusiness
+ RoutingPolicyPPreferSkypeForBusiness = &_RoutingPolicyPPreferSkypeForBusiness
+ // RoutingPolicyPUnknownFutureValue is a pointer to RoutingPolicyVUnknownFutureValue
+ RoutingPolicyPUnknownFutureValue = &_RoutingPolicyPUnknownFutureValue
+)
+
+var (
+ _RoutingPolicyPNone = RoutingPolicyVNone
+ _RoutingPolicyPNoMissedCall = RoutingPolicyVNoMissedCall
+ _RoutingPolicyPDisableForwardingExceptPhone = RoutingPolicyVDisableForwardingExceptPhone
+ _RoutingPolicyPDisableForwarding = RoutingPolicyVDisableForwarding
+ _RoutingPolicyPPreferSkypeForBusiness = RoutingPolicyVPreferSkypeForBusiness
+ _RoutingPolicyPUnknownFutureValue = RoutingPolicyVUnknownFutureValue
+)
+
+// RoutingType undocumented
+type RoutingType string
+
+const (
+ // RoutingTypeVForwarded undocumented
+ RoutingTypeVForwarded RoutingType = "forwarded"
+ // RoutingTypeVLookup undocumented
+ RoutingTypeVLookup RoutingType = "lookup"
+ // RoutingTypeVSelfFork undocumented
+ RoutingTypeVSelfFork RoutingType = "selfFork"
+)
+
+var (
+ // RoutingTypePForwarded is a pointer to RoutingTypeVForwarded
+ RoutingTypePForwarded = &_RoutingTypePForwarded
+ // RoutingTypePLookup is a pointer to RoutingTypeVLookup
+ RoutingTypePLookup = &_RoutingTypePLookup
+ // RoutingTypePSelfFork is a pointer to RoutingTypeVSelfFork
+ RoutingTypePSelfFork = &_RoutingTypePSelfFork
+)
+
+var (
+ _RoutingTypePForwarded = RoutingTypeVForwarded
+ _RoutingTypePLookup = RoutingTypeVLookup
+ _RoutingTypePSelfFork = RoutingTypeVSelfFork
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRule.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRule.go
new file mode 100644
index 00000000..c08069d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRule.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RuleMode undocumented
+type RuleMode string
+
+const (
+ // RuleModeVAudit undocumented
+ RuleModeVAudit RuleMode = "audit"
+ // RuleModeVAuditAndNotify undocumented
+ RuleModeVAuditAndNotify RuleMode = "auditAndNotify"
+ // RuleModeVEnforce undocumented
+ RuleModeVEnforce RuleMode = "enforce"
+ // RuleModeVPendingDeletion undocumented
+ RuleModeVPendingDeletion RuleMode = "pendingDeletion"
+ // RuleModeVTest undocumented
+ RuleModeVTest RuleMode = "test"
+)
+
+var (
+ // RuleModePAudit is a pointer to RuleModeVAudit
+ RuleModePAudit = &_RuleModePAudit
+ // RuleModePAuditAndNotify is a pointer to RuleModeVAuditAndNotify
+ RuleModePAuditAndNotify = &_RuleModePAuditAndNotify
+ // RuleModePEnforce is a pointer to RuleModeVEnforce
+ RuleModePEnforce = &_RuleModePEnforce
+ // RuleModePPendingDeletion is a pointer to RuleModeVPendingDeletion
+ RuleModePPendingDeletion = &_RuleModePPendingDeletion
+ // RuleModePTest is a pointer to RuleModeVTest
+ RuleModePTest = &_RuleModePTest
+)
+
+var (
+ _RuleModePAudit = RuleModeVAudit
+ _RuleModePAuditAndNotify = RuleModeVAuditAndNotify
+ _RuleModePEnforce = RuleModeVEnforce
+ _RuleModePPendingDeletion = RuleModeVPendingDeletion
+ _RuleModePTest = RuleModeVTest
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumRun.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRun.go
new file mode 100644
index 00000000..1ee9d5e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumRun.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RunAsAccountType undocumented
+type RunAsAccountType string
+
+const (
+ // RunAsAccountTypeVSystem undocumented
+ RunAsAccountTypeVSystem RunAsAccountType = "system"
+ // RunAsAccountTypeVUser undocumented
+ RunAsAccountTypeVUser RunAsAccountType = "user"
+)
+
+var (
+ // RunAsAccountTypePSystem is a pointer to RunAsAccountTypeVSystem
+ RunAsAccountTypePSystem = &_RunAsAccountTypePSystem
+ // RunAsAccountTypePUser is a pointer to RunAsAccountTypeVUser
+ RunAsAccountTypePUser = &_RunAsAccountTypePUser
+)
+
+var (
+ _RunAsAccountTypePSystem = RunAsAccountTypeVSystem
+ _RunAsAccountTypePUser = RunAsAccountTypeVUser
+)
+
+// RunState undocumented
+type RunState string
+
+const (
+ // RunStateVUnknown undocumented
+ RunStateVUnknown RunState = "unknown"
+ // RunStateVSuccess undocumented
+ RunStateVSuccess RunState = "success"
+ // RunStateVFail undocumented
+ RunStateVFail RunState = "fail"
+ // RunStateVScriptError undocumented
+ RunStateVScriptError RunState = "scriptError"
+ // RunStateVPending undocumented
+ RunStateVPending RunState = "pending"
+ // RunStateVNotApplicable undocumented
+ RunStateVNotApplicable RunState = "notApplicable"
+)
+
+var (
+ // RunStatePUnknown is a pointer to RunStateVUnknown
+ RunStatePUnknown = &_RunStatePUnknown
+ // RunStatePSuccess is a pointer to RunStateVSuccess
+ RunStatePSuccess = &_RunStatePSuccess
+ // RunStatePFail is a pointer to RunStateVFail
+ RunStatePFail = &_RunStatePFail
+ // RunStatePScriptError is a pointer to RunStateVScriptError
+ RunStatePScriptError = &_RunStatePScriptError
+ // RunStatePPending is a pointer to RunStateVPending
+ RunStatePPending = &_RunStatePPending
+ // RunStatePNotApplicable is a pointer to RunStateVNotApplicable
+ RunStatePNotApplicable = &_RunStatePNotApplicable
+)
+
+var (
+ _RunStatePUnknown = RunStateVUnknown
+ _RunStatePSuccess = RunStateVSuccess
+ _RunStatePFail = RunStateVFail
+ _RunStatePScriptError = RunStateVScriptError
+ _RunStatePPending = RunStateVPending
+ _RunStatePNotApplicable = RunStateVNotApplicable
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSafe.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSafe.go
new file mode 100644
index 00000000..a6fcf3c0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSafe.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SafeSearchFilterType undocumented
+type SafeSearchFilterType string
+
+const (
+ // SafeSearchFilterTypeVUserDefined undocumented
+ SafeSearchFilterTypeVUserDefined SafeSearchFilterType = "userDefined"
+ // SafeSearchFilterTypeVStrict undocumented
+ SafeSearchFilterTypeVStrict SafeSearchFilterType = "strict"
+ // SafeSearchFilterTypeVModerate undocumented
+ SafeSearchFilterTypeVModerate SafeSearchFilterType = "moderate"
+)
+
+var (
+ // SafeSearchFilterTypePUserDefined is a pointer to SafeSearchFilterTypeVUserDefined
+ SafeSearchFilterTypePUserDefined = &_SafeSearchFilterTypePUserDefined
+ // SafeSearchFilterTypePStrict is a pointer to SafeSearchFilterTypeVStrict
+ SafeSearchFilterTypePStrict = &_SafeSearchFilterTypePStrict
+ // SafeSearchFilterTypePModerate is a pointer to SafeSearchFilterTypeVModerate
+ SafeSearchFilterTypePModerate = &_SafeSearchFilterTypePModerate
+)
+
+var (
+ _SafeSearchFilterTypePUserDefined = SafeSearchFilterTypeVUserDefined
+ _SafeSearchFilterTypePStrict = SafeSearchFilterTypeVStrict
+ _SafeSearchFilterTypePModerate = SafeSearchFilterTypeVModerate
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSchedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSchedule.go
new file mode 100644
index 00000000..ce67f61f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSchedule.go
@@ -0,0 +1,149 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScheduleChangeRequestActor undocumented
+type ScheduleChangeRequestActor string
+
+const (
+ // ScheduleChangeRequestActorVSender undocumented
+ ScheduleChangeRequestActorVSender ScheduleChangeRequestActor = "sender"
+ // ScheduleChangeRequestActorVRecipient undocumented
+ ScheduleChangeRequestActorVRecipient ScheduleChangeRequestActor = "recipient"
+ // ScheduleChangeRequestActorVManager undocumented
+ ScheduleChangeRequestActorVManager ScheduleChangeRequestActor = "manager"
+ // ScheduleChangeRequestActorVSystem undocumented
+ ScheduleChangeRequestActorVSystem ScheduleChangeRequestActor = "system"
+ // ScheduleChangeRequestActorVUnknownFutureValue undocumented
+ ScheduleChangeRequestActorVUnknownFutureValue ScheduleChangeRequestActor = "unknownFutureValue"
+)
+
+var (
+ // ScheduleChangeRequestActorPSender is a pointer to ScheduleChangeRequestActorVSender
+ ScheduleChangeRequestActorPSender = &_ScheduleChangeRequestActorPSender
+ // ScheduleChangeRequestActorPRecipient is a pointer to ScheduleChangeRequestActorVRecipient
+ ScheduleChangeRequestActorPRecipient = &_ScheduleChangeRequestActorPRecipient
+ // ScheduleChangeRequestActorPManager is a pointer to ScheduleChangeRequestActorVManager
+ ScheduleChangeRequestActorPManager = &_ScheduleChangeRequestActorPManager
+ // ScheduleChangeRequestActorPSystem is a pointer to ScheduleChangeRequestActorVSystem
+ ScheduleChangeRequestActorPSystem = &_ScheduleChangeRequestActorPSystem
+ // ScheduleChangeRequestActorPUnknownFutureValue is a pointer to ScheduleChangeRequestActorVUnknownFutureValue
+ ScheduleChangeRequestActorPUnknownFutureValue = &_ScheduleChangeRequestActorPUnknownFutureValue
+)
+
+var (
+ _ScheduleChangeRequestActorPSender = ScheduleChangeRequestActorVSender
+ _ScheduleChangeRequestActorPRecipient = ScheduleChangeRequestActorVRecipient
+ _ScheduleChangeRequestActorPManager = ScheduleChangeRequestActorVManager
+ _ScheduleChangeRequestActorPSystem = ScheduleChangeRequestActorVSystem
+ _ScheduleChangeRequestActorPUnknownFutureValue = ScheduleChangeRequestActorVUnknownFutureValue
+)
+
+// ScheduleChangeState undocumented
+type ScheduleChangeState string
+
+const (
+ // ScheduleChangeStateVPending undocumented
+ ScheduleChangeStateVPending ScheduleChangeState = "pending"
+ // ScheduleChangeStateVApproved undocumented
+ ScheduleChangeStateVApproved ScheduleChangeState = "approved"
+ // ScheduleChangeStateVDeclined undocumented
+ ScheduleChangeStateVDeclined ScheduleChangeState = "declined"
+ // ScheduleChangeStateVUnknownFutureValue undocumented
+ ScheduleChangeStateVUnknownFutureValue ScheduleChangeState = "unknownFutureValue"
+)
+
+var (
+ // ScheduleChangeStatePPending is a pointer to ScheduleChangeStateVPending
+ ScheduleChangeStatePPending = &_ScheduleChangeStatePPending
+ // ScheduleChangeStatePApproved is a pointer to ScheduleChangeStateVApproved
+ ScheduleChangeStatePApproved = &_ScheduleChangeStatePApproved
+ // ScheduleChangeStatePDeclined is a pointer to ScheduleChangeStateVDeclined
+ ScheduleChangeStatePDeclined = &_ScheduleChangeStatePDeclined
+ // ScheduleChangeStatePUnknownFutureValue is a pointer to ScheduleChangeStateVUnknownFutureValue
+ ScheduleChangeStatePUnknownFutureValue = &_ScheduleChangeStatePUnknownFutureValue
+)
+
+var (
+ _ScheduleChangeStatePPending = ScheduleChangeStateVPending
+ _ScheduleChangeStatePApproved = ScheduleChangeStateVApproved
+ _ScheduleChangeStatePDeclined = ScheduleChangeStateVDeclined
+ _ScheduleChangeStatePUnknownFutureValue = ScheduleChangeStateVUnknownFutureValue
+)
+
+// ScheduleEntityTheme undocumented
+type ScheduleEntityTheme string
+
+const (
+ // ScheduleEntityThemeVWhite undocumented
+ ScheduleEntityThemeVWhite ScheduleEntityTheme = "white"
+ // ScheduleEntityThemeVBlue undocumented
+ ScheduleEntityThemeVBlue ScheduleEntityTheme = "blue"
+ // ScheduleEntityThemeVGreen undocumented
+ ScheduleEntityThemeVGreen ScheduleEntityTheme = "green"
+ // ScheduleEntityThemeVPurple undocumented
+ ScheduleEntityThemeVPurple ScheduleEntityTheme = "purple"
+ // ScheduleEntityThemeVPink undocumented
+ ScheduleEntityThemeVPink ScheduleEntityTheme = "pink"
+ // ScheduleEntityThemeVYellow undocumented
+ ScheduleEntityThemeVYellow ScheduleEntityTheme = "yellow"
+ // ScheduleEntityThemeVGray undocumented
+ ScheduleEntityThemeVGray ScheduleEntityTheme = "gray"
+ // ScheduleEntityThemeVDarkBlue undocumented
+ ScheduleEntityThemeVDarkBlue ScheduleEntityTheme = "darkBlue"
+ // ScheduleEntityThemeVDarkGreen undocumented
+ ScheduleEntityThemeVDarkGreen ScheduleEntityTheme = "darkGreen"
+ // ScheduleEntityThemeVDarkPurple undocumented
+ ScheduleEntityThemeVDarkPurple ScheduleEntityTheme = "darkPurple"
+ // ScheduleEntityThemeVDarkPink undocumented
+ ScheduleEntityThemeVDarkPink ScheduleEntityTheme = "darkPink"
+ // ScheduleEntityThemeVDarkYellow undocumented
+ ScheduleEntityThemeVDarkYellow ScheduleEntityTheme = "darkYellow"
+ // ScheduleEntityThemeVUnknownFutureValue undocumented
+ ScheduleEntityThemeVUnknownFutureValue ScheduleEntityTheme = "unknownFutureValue"
+)
+
+var (
+ // ScheduleEntityThemePWhite is a pointer to ScheduleEntityThemeVWhite
+ ScheduleEntityThemePWhite = &_ScheduleEntityThemePWhite
+ // ScheduleEntityThemePBlue is a pointer to ScheduleEntityThemeVBlue
+ ScheduleEntityThemePBlue = &_ScheduleEntityThemePBlue
+ // ScheduleEntityThemePGreen is a pointer to ScheduleEntityThemeVGreen
+ ScheduleEntityThemePGreen = &_ScheduleEntityThemePGreen
+ // ScheduleEntityThemePPurple is a pointer to ScheduleEntityThemeVPurple
+ ScheduleEntityThemePPurple = &_ScheduleEntityThemePPurple
+ // ScheduleEntityThemePPink is a pointer to ScheduleEntityThemeVPink
+ ScheduleEntityThemePPink = &_ScheduleEntityThemePPink
+ // ScheduleEntityThemePYellow is a pointer to ScheduleEntityThemeVYellow
+ ScheduleEntityThemePYellow = &_ScheduleEntityThemePYellow
+ // ScheduleEntityThemePGray is a pointer to ScheduleEntityThemeVGray
+ ScheduleEntityThemePGray = &_ScheduleEntityThemePGray
+ // ScheduleEntityThemePDarkBlue is a pointer to ScheduleEntityThemeVDarkBlue
+ ScheduleEntityThemePDarkBlue = &_ScheduleEntityThemePDarkBlue
+ // ScheduleEntityThemePDarkGreen is a pointer to ScheduleEntityThemeVDarkGreen
+ ScheduleEntityThemePDarkGreen = &_ScheduleEntityThemePDarkGreen
+ // ScheduleEntityThemePDarkPurple is a pointer to ScheduleEntityThemeVDarkPurple
+ ScheduleEntityThemePDarkPurple = &_ScheduleEntityThemePDarkPurple
+ // ScheduleEntityThemePDarkPink is a pointer to ScheduleEntityThemeVDarkPink
+ ScheduleEntityThemePDarkPink = &_ScheduleEntityThemePDarkPink
+ // ScheduleEntityThemePDarkYellow is a pointer to ScheduleEntityThemeVDarkYellow
+ ScheduleEntityThemePDarkYellow = &_ScheduleEntityThemePDarkYellow
+ // ScheduleEntityThemePUnknownFutureValue is a pointer to ScheduleEntityThemeVUnknownFutureValue
+ ScheduleEntityThemePUnknownFutureValue = &_ScheduleEntityThemePUnknownFutureValue
+)
+
+var (
+ _ScheduleEntityThemePWhite = ScheduleEntityThemeVWhite
+ _ScheduleEntityThemePBlue = ScheduleEntityThemeVBlue
+ _ScheduleEntityThemePGreen = ScheduleEntityThemeVGreen
+ _ScheduleEntityThemePPurple = ScheduleEntityThemeVPurple
+ _ScheduleEntityThemePPink = ScheduleEntityThemeVPink
+ _ScheduleEntityThemePYellow = ScheduleEntityThemeVYellow
+ _ScheduleEntityThemePGray = ScheduleEntityThemeVGray
+ _ScheduleEntityThemePDarkBlue = ScheduleEntityThemeVDarkBlue
+ _ScheduleEntityThemePDarkGreen = ScheduleEntityThemeVDarkGreen
+ _ScheduleEntityThemePDarkPurple = ScheduleEntityThemeVDarkPurple
+ _ScheduleEntityThemePDarkPink = ScheduleEntityThemeVDarkPink
+ _ScheduleEntityThemePDarkYellow = ScheduleEntityThemeVDarkYellow
+ _ScheduleEntityThemePUnknownFutureValue = ScheduleEntityThemeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumScope.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumScope.go
new file mode 100644
index 00000000..679fa9ff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumScope.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScopeOperatorMultiValuedComparisonType undocumented
+type ScopeOperatorMultiValuedComparisonType string
+
+const (
+ // ScopeOperatorMultiValuedComparisonTypeVAll undocumented
+ ScopeOperatorMultiValuedComparisonTypeVAll ScopeOperatorMultiValuedComparisonType = "All"
+ // ScopeOperatorMultiValuedComparisonTypeVAny undocumented
+ ScopeOperatorMultiValuedComparisonTypeVAny ScopeOperatorMultiValuedComparisonType = "Any"
+)
+
+var (
+ // ScopeOperatorMultiValuedComparisonTypePAll is a pointer to ScopeOperatorMultiValuedComparisonTypeVAll
+ ScopeOperatorMultiValuedComparisonTypePAll = &_ScopeOperatorMultiValuedComparisonTypePAll
+ // ScopeOperatorMultiValuedComparisonTypePAny is a pointer to ScopeOperatorMultiValuedComparisonTypeVAny
+ ScopeOperatorMultiValuedComparisonTypePAny = &_ScopeOperatorMultiValuedComparisonTypePAny
+)
+
+var (
+ _ScopeOperatorMultiValuedComparisonTypePAll = ScopeOperatorMultiValuedComparisonTypeVAll
+ _ScopeOperatorMultiValuedComparisonTypePAny = ScopeOperatorMultiValuedComparisonTypeVAny
+)
+
+// ScopeOperatorType undocumented
+type ScopeOperatorType string
+
+const (
+ // ScopeOperatorTypeVBinary undocumented
+ ScopeOperatorTypeVBinary ScopeOperatorType = "Binary"
+ // ScopeOperatorTypeVUnary undocumented
+ ScopeOperatorTypeVUnary ScopeOperatorType = "Unary"
+)
+
+var (
+ // ScopeOperatorTypePBinary is a pointer to ScopeOperatorTypeVBinary
+ ScopeOperatorTypePBinary = &_ScopeOperatorTypePBinary
+ // ScopeOperatorTypePUnary is a pointer to ScopeOperatorTypeVUnary
+ ScopeOperatorTypePUnary = &_ScopeOperatorTypePUnary
+)
+
+var (
+ _ScopeOperatorTypePBinary = ScopeOperatorTypeVBinary
+ _ScopeOperatorTypePUnary = ScopeOperatorTypeVUnary
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumScreen.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumScreen.go
new file mode 100644
index 00000000..72c2eca9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumScreen.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScreenSharingRole undocumented
+type ScreenSharingRole string
+
+const (
+ // ScreenSharingRoleVViewer undocumented
+ ScreenSharingRoleVViewer ScreenSharingRole = "viewer"
+ // ScreenSharingRoleVSharer undocumented
+ ScreenSharingRoleVSharer ScreenSharingRole = "sharer"
+)
+
+var (
+ // ScreenSharingRolePViewer is a pointer to ScreenSharingRoleVViewer
+ ScreenSharingRolePViewer = &_ScreenSharingRolePViewer
+ // ScreenSharingRolePSharer is a pointer to ScreenSharingRoleVSharer
+ ScreenSharingRolePSharer = &_ScreenSharingRolePSharer
+)
+
+var (
+ _ScreenSharingRolePViewer = ScreenSharingRoleVViewer
+ _ScreenSharingRolePSharer = ScreenSharingRoleVSharer
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecure.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecure.go
new file mode 100644
index 00000000..b635938d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecure.go
@@ -0,0 +1,62 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecureAssessmentAccountType undocumented
+type SecureAssessmentAccountType string
+
+const (
+ // SecureAssessmentAccountTypeVAzureADAccount undocumented
+ SecureAssessmentAccountTypeVAzureADAccount SecureAssessmentAccountType = "azureADAccount"
+ // SecureAssessmentAccountTypeVDomainAccount undocumented
+ SecureAssessmentAccountTypeVDomainAccount SecureAssessmentAccountType = "domainAccount"
+ // SecureAssessmentAccountTypeVLocalAccount undocumented
+ SecureAssessmentAccountTypeVLocalAccount SecureAssessmentAccountType = "localAccount"
+ // SecureAssessmentAccountTypeVLocalGuestAccount undocumented
+ SecureAssessmentAccountTypeVLocalGuestAccount SecureAssessmentAccountType = "localGuestAccount"
+)
+
+var (
+ // SecureAssessmentAccountTypePAzureADAccount is a pointer to SecureAssessmentAccountTypeVAzureADAccount
+ SecureAssessmentAccountTypePAzureADAccount = &_SecureAssessmentAccountTypePAzureADAccount
+ // SecureAssessmentAccountTypePDomainAccount is a pointer to SecureAssessmentAccountTypeVDomainAccount
+ SecureAssessmentAccountTypePDomainAccount = &_SecureAssessmentAccountTypePDomainAccount
+ // SecureAssessmentAccountTypePLocalAccount is a pointer to SecureAssessmentAccountTypeVLocalAccount
+ SecureAssessmentAccountTypePLocalAccount = &_SecureAssessmentAccountTypePLocalAccount
+ // SecureAssessmentAccountTypePLocalGuestAccount is a pointer to SecureAssessmentAccountTypeVLocalGuestAccount
+ SecureAssessmentAccountTypePLocalGuestAccount = &_SecureAssessmentAccountTypePLocalGuestAccount
+)
+
+var (
+ _SecureAssessmentAccountTypePAzureADAccount = SecureAssessmentAccountTypeVAzureADAccount
+ _SecureAssessmentAccountTypePDomainAccount = SecureAssessmentAccountTypeVDomainAccount
+ _SecureAssessmentAccountTypePLocalAccount = SecureAssessmentAccountTypeVLocalAccount
+ _SecureAssessmentAccountTypePLocalGuestAccount = SecureAssessmentAccountTypeVLocalGuestAccount
+)
+
+// SecureBootWithDMAType undocumented
+type SecureBootWithDMAType string
+
+const (
+ // SecureBootWithDMATypeVNotConfigured undocumented
+ SecureBootWithDMATypeVNotConfigured SecureBootWithDMAType = "notConfigured"
+ // SecureBootWithDMATypeVWithoutDMA undocumented
+ SecureBootWithDMATypeVWithoutDMA SecureBootWithDMAType = "withoutDMA"
+ // SecureBootWithDMATypeVWithDMA undocumented
+ SecureBootWithDMATypeVWithDMA SecureBootWithDMAType = "withDMA"
+)
+
+var (
+ // SecureBootWithDMATypePNotConfigured is a pointer to SecureBootWithDMATypeVNotConfigured
+ SecureBootWithDMATypePNotConfigured = &_SecureBootWithDMATypePNotConfigured
+ // SecureBootWithDMATypePWithoutDMA is a pointer to SecureBootWithDMATypeVWithoutDMA
+ SecureBootWithDMATypePWithoutDMA = &_SecureBootWithDMATypePWithoutDMA
+ // SecureBootWithDMATypePWithDMA is a pointer to SecureBootWithDMATypeVWithDMA
+ SecureBootWithDMATypePWithDMA = &_SecureBootWithDMATypePWithDMA
+)
+
+var (
+ _SecureBootWithDMATypePNotConfigured = SecureBootWithDMATypeVNotConfigured
+ _SecureBootWithDMATypePWithoutDMA = SecureBootWithDMATypeVWithoutDMA
+ _SecureBootWithDMATypePWithDMA = SecureBootWithDMATypeVWithDMA
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecurity.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecurity.go
new file mode 100644
index 00000000..1ecd5966
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSecurity.go
@@ -0,0 +1,177 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SecurityBaselineComplianceState undocumented
+type SecurityBaselineComplianceState string
+
+const (
+ // SecurityBaselineComplianceStateVUnknown undocumented
+ SecurityBaselineComplianceStateVUnknown SecurityBaselineComplianceState = "unknown"
+ // SecurityBaselineComplianceStateVSecure undocumented
+ SecurityBaselineComplianceStateVSecure SecurityBaselineComplianceState = "secure"
+ // SecurityBaselineComplianceStateVNotApplicable undocumented
+ SecurityBaselineComplianceStateVNotApplicable SecurityBaselineComplianceState = "notApplicable"
+ // SecurityBaselineComplianceStateVNotSecure undocumented
+ SecurityBaselineComplianceStateVNotSecure SecurityBaselineComplianceState = "notSecure"
+ // SecurityBaselineComplianceStateVError undocumented
+ SecurityBaselineComplianceStateVError SecurityBaselineComplianceState = "error"
+ // SecurityBaselineComplianceStateVConflict undocumented
+ SecurityBaselineComplianceStateVConflict SecurityBaselineComplianceState = "conflict"
+)
+
+var (
+ // SecurityBaselineComplianceStatePUnknown is a pointer to SecurityBaselineComplianceStateVUnknown
+ SecurityBaselineComplianceStatePUnknown = &_SecurityBaselineComplianceStatePUnknown
+ // SecurityBaselineComplianceStatePSecure is a pointer to SecurityBaselineComplianceStateVSecure
+ SecurityBaselineComplianceStatePSecure = &_SecurityBaselineComplianceStatePSecure
+ // SecurityBaselineComplianceStatePNotApplicable is a pointer to SecurityBaselineComplianceStateVNotApplicable
+ SecurityBaselineComplianceStatePNotApplicable = &_SecurityBaselineComplianceStatePNotApplicable
+ // SecurityBaselineComplianceStatePNotSecure is a pointer to SecurityBaselineComplianceStateVNotSecure
+ SecurityBaselineComplianceStatePNotSecure = &_SecurityBaselineComplianceStatePNotSecure
+ // SecurityBaselineComplianceStatePError is a pointer to SecurityBaselineComplianceStateVError
+ SecurityBaselineComplianceStatePError = &_SecurityBaselineComplianceStatePError
+ // SecurityBaselineComplianceStatePConflict is a pointer to SecurityBaselineComplianceStateVConflict
+ SecurityBaselineComplianceStatePConflict = &_SecurityBaselineComplianceStatePConflict
+)
+
+var (
+ _SecurityBaselineComplianceStatePUnknown = SecurityBaselineComplianceStateVUnknown
+ _SecurityBaselineComplianceStatePSecure = SecurityBaselineComplianceStateVSecure
+ _SecurityBaselineComplianceStatePNotApplicable = SecurityBaselineComplianceStateVNotApplicable
+ _SecurityBaselineComplianceStatePNotSecure = SecurityBaselineComplianceStateVNotSecure
+ _SecurityBaselineComplianceStatePError = SecurityBaselineComplianceStateVError
+ _SecurityBaselineComplianceStatePConflict = SecurityBaselineComplianceStateVConflict
+)
+
+// SecurityNetworkProtocol undocumented
+type SecurityNetworkProtocol string
+
+const (
+ // SecurityNetworkProtocolVIP undocumented
+ SecurityNetworkProtocolVIP SecurityNetworkProtocol = "ip"
+ // SecurityNetworkProtocolVICMP undocumented
+ SecurityNetworkProtocolVICMP SecurityNetworkProtocol = "icmp"
+ // SecurityNetworkProtocolVIGMP undocumented
+ SecurityNetworkProtocolVIGMP SecurityNetworkProtocol = "igmp"
+ // SecurityNetworkProtocolVGgp undocumented
+ SecurityNetworkProtocolVGgp SecurityNetworkProtocol = "ggp"
+ // SecurityNetworkProtocolVIpv4 undocumented
+ SecurityNetworkProtocolVIpv4 SecurityNetworkProtocol = "ipv4"
+ // SecurityNetworkProtocolVTCP undocumented
+ SecurityNetworkProtocolVTCP SecurityNetworkProtocol = "tcp"
+ // SecurityNetworkProtocolVPup undocumented
+ SecurityNetworkProtocolVPup SecurityNetworkProtocol = "pup"
+ // SecurityNetworkProtocolVUDP undocumented
+ SecurityNetworkProtocolVUDP SecurityNetworkProtocol = "udp"
+ // SecurityNetworkProtocolVIdp undocumented
+ SecurityNetworkProtocolVIdp SecurityNetworkProtocol = "idp"
+ // SecurityNetworkProtocolVIpv6 undocumented
+ SecurityNetworkProtocolVIpv6 SecurityNetworkProtocol = "ipv6"
+ // SecurityNetworkProtocolVIpv6RoutingHeader undocumented
+ SecurityNetworkProtocolVIpv6RoutingHeader SecurityNetworkProtocol = "ipv6RoutingHeader"
+ // SecurityNetworkProtocolVIpv6FragmentHeader undocumented
+ SecurityNetworkProtocolVIpv6FragmentHeader SecurityNetworkProtocol = "ipv6FragmentHeader"
+ // SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload undocumented
+ SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload SecurityNetworkProtocol = "ipSecEncapsulatingSecurityPayload"
+ // SecurityNetworkProtocolVIPSecAuthenticationHeader undocumented
+ SecurityNetworkProtocolVIPSecAuthenticationHeader SecurityNetworkProtocol = "ipSecAuthenticationHeader"
+ // SecurityNetworkProtocolVICMPV6 undocumented
+ SecurityNetworkProtocolVICMPV6 SecurityNetworkProtocol = "icmpV6"
+ // SecurityNetworkProtocolVIpv6NoNextHeader undocumented
+ SecurityNetworkProtocolVIpv6NoNextHeader SecurityNetworkProtocol = "ipv6NoNextHeader"
+ // SecurityNetworkProtocolVIpv6DestinationOptions undocumented
+ SecurityNetworkProtocolVIpv6DestinationOptions SecurityNetworkProtocol = "ipv6DestinationOptions"
+ // SecurityNetworkProtocolVNd undocumented
+ SecurityNetworkProtocolVNd SecurityNetworkProtocol = "nd"
+ // SecurityNetworkProtocolVRaw undocumented
+ SecurityNetworkProtocolVRaw SecurityNetworkProtocol = "raw"
+ // SecurityNetworkProtocolVIpx undocumented
+ SecurityNetworkProtocolVIpx SecurityNetworkProtocol = "ipx"
+ // SecurityNetworkProtocolVSpx undocumented
+ SecurityNetworkProtocolVSpx SecurityNetworkProtocol = "spx"
+ // SecurityNetworkProtocolVSpxII undocumented
+ SecurityNetworkProtocolVSpxII SecurityNetworkProtocol = "spxII"
+ // SecurityNetworkProtocolVUnknownFutureValue undocumented
+ SecurityNetworkProtocolVUnknownFutureValue SecurityNetworkProtocol = "unknownFutureValue"
+ // SecurityNetworkProtocolVUnknown undocumented
+ SecurityNetworkProtocolVUnknown SecurityNetworkProtocol = "unknown"
+)
+
+var (
+ // SecurityNetworkProtocolPIP is a pointer to SecurityNetworkProtocolVIP
+ SecurityNetworkProtocolPIP = &_SecurityNetworkProtocolPIP
+ // SecurityNetworkProtocolPICMP is a pointer to SecurityNetworkProtocolVICMP
+ SecurityNetworkProtocolPICMP = &_SecurityNetworkProtocolPICMP
+ // SecurityNetworkProtocolPIGMP is a pointer to SecurityNetworkProtocolVIGMP
+ SecurityNetworkProtocolPIGMP = &_SecurityNetworkProtocolPIGMP
+ // SecurityNetworkProtocolPGgp is a pointer to SecurityNetworkProtocolVGgp
+ SecurityNetworkProtocolPGgp = &_SecurityNetworkProtocolPGgp
+ // SecurityNetworkProtocolPIpv4 is a pointer to SecurityNetworkProtocolVIpv4
+ SecurityNetworkProtocolPIpv4 = &_SecurityNetworkProtocolPIpv4
+ // SecurityNetworkProtocolPTCP is a pointer to SecurityNetworkProtocolVTCP
+ SecurityNetworkProtocolPTCP = &_SecurityNetworkProtocolPTCP
+ // SecurityNetworkProtocolPPup is a pointer to SecurityNetworkProtocolVPup
+ SecurityNetworkProtocolPPup = &_SecurityNetworkProtocolPPup
+ // SecurityNetworkProtocolPUDP is a pointer to SecurityNetworkProtocolVUDP
+ SecurityNetworkProtocolPUDP = &_SecurityNetworkProtocolPUDP
+ // SecurityNetworkProtocolPIdp is a pointer to SecurityNetworkProtocolVIdp
+ SecurityNetworkProtocolPIdp = &_SecurityNetworkProtocolPIdp
+ // SecurityNetworkProtocolPIpv6 is a pointer to SecurityNetworkProtocolVIpv6
+ SecurityNetworkProtocolPIpv6 = &_SecurityNetworkProtocolPIpv6
+ // SecurityNetworkProtocolPIpv6RoutingHeader is a pointer to SecurityNetworkProtocolVIpv6RoutingHeader
+ SecurityNetworkProtocolPIpv6RoutingHeader = &_SecurityNetworkProtocolPIpv6RoutingHeader
+ // SecurityNetworkProtocolPIpv6FragmentHeader is a pointer to SecurityNetworkProtocolVIpv6FragmentHeader
+ SecurityNetworkProtocolPIpv6FragmentHeader = &_SecurityNetworkProtocolPIpv6FragmentHeader
+ // SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload is a pointer to SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload
+ SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload = &_SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload
+ // SecurityNetworkProtocolPIPSecAuthenticationHeader is a pointer to SecurityNetworkProtocolVIPSecAuthenticationHeader
+ SecurityNetworkProtocolPIPSecAuthenticationHeader = &_SecurityNetworkProtocolPIPSecAuthenticationHeader
+ // SecurityNetworkProtocolPICMPV6 is a pointer to SecurityNetworkProtocolVICMPV6
+ SecurityNetworkProtocolPICMPV6 = &_SecurityNetworkProtocolPICMPV6
+ // SecurityNetworkProtocolPIpv6NoNextHeader is a pointer to SecurityNetworkProtocolVIpv6NoNextHeader
+ SecurityNetworkProtocolPIpv6NoNextHeader = &_SecurityNetworkProtocolPIpv6NoNextHeader
+ // SecurityNetworkProtocolPIpv6DestinationOptions is a pointer to SecurityNetworkProtocolVIpv6DestinationOptions
+ SecurityNetworkProtocolPIpv6DestinationOptions = &_SecurityNetworkProtocolPIpv6DestinationOptions
+ // SecurityNetworkProtocolPNd is a pointer to SecurityNetworkProtocolVNd
+ SecurityNetworkProtocolPNd = &_SecurityNetworkProtocolPNd
+ // SecurityNetworkProtocolPRaw is a pointer to SecurityNetworkProtocolVRaw
+ SecurityNetworkProtocolPRaw = &_SecurityNetworkProtocolPRaw
+ // SecurityNetworkProtocolPIpx is a pointer to SecurityNetworkProtocolVIpx
+ SecurityNetworkProtocolPIpx = &_SecurityNetworkProtocolPIpx
+ // SecurityNetworkProtocolPSpx is a pointer to SecurityNetworkProtocolVSpx
+ SecurityNetworkProtocolPSpx = &_SecurityNetworkProtocolPSpx
+ // SecurityNetworkProtocolPSpxII is a pointer to SecurityNetworkProtocolVSpxII
+ SecurityNetworkProtocolPSpxII = &_SecurityNetworkProtocolPSpxII
+ // SecurityNetworkProtocolPUnknownFutureValue is a pointer to SecurityNetworkProtocolVUnknownFutureValue
+ SecurityNetworkProtocolPUnknownFutureValue = &_SecurityNetworkProtocolPUnknownFutureValue
+ // SecurityNetworkProtocolPUnknown is a pointer to SecurityNetworkProtocolVUnknown
+ SecurityNetworkProtocolPUnknown = &_SecurityNetworkProtocolPUnknown
+)
+
+var (
+ _SecurityNetworkProtocolPIP = SecurityNetworkProtocolVIP
+ _SecurityNetworkProtocolPICMP = SecurityNetworkProtocolVICMP
+ _SecurityNetworkProtocolPIGMP = SecurityNetworkProtocolVIGMP
+ _SecurityNetworkProtocolPGgp = SecurityNetworkProtocolVGgp
+ _SecurityNetworkProtocolPIpv4 = SecurityNetworkProtocolVIpv4
+ _SecurityNetworkProtocolPTCP = SecurityNetworkProtocolVTCP
+ _SecurityNetworkProtocolPPup = SecurityNetworkProtocolVPup
+ _SecurityNetworkProtocolPUDP = SecurityNetworkProtocolVUDP
+ _SecurityNetworkProtocolPIdp = SecurityNetworkProtocolVIdp
+ _SecurityNetworkProtocolPIpv6 = SecurityNetworkProtocolVIpv6
+ _SecurityNetworkProtocolPIpv6RoutingHeader = SecurityNetworkProtocolVIpv6RoutingHeader
+ _SecurityNetworkProtocolPIpv6FragmentHeader = SecurityNetworkProtocolVIpv6FragmentHeader
+ _SecurityNetworkProtocolPIPSecEncapsulatingSecurityPayload = SecurityNetworkProtocolVIPSecEncapsulatingSecurityPayload
+ _SecurityNetworkProtocolPIPSecAuthenticationHeader = SecurityNetworkProtocolVIPSecAuthenticationHeader
+ _SecurityNetworkProtocolPICMPV6 = SecurityNetworkProtocolVICMPV6
+ _SecurityNetworkProtocolPIpv6NoNextHeader = SecurityNetworkProtocolVIpv6NoNextHeader
+ _SecurityNetworkProtocolPIpv6DestinationOptions = SecurityNetworkProtocolVIpv6DestinationOptions
+ _SecurityNetworkProtocolPNd = SecurityNetworkProtocolVNd
+ _SecurityNetworkProtocolPRaw = SecurityNetworkProtocolVRaw
+ _SecurityNetworkProtocolPIpx = SecurityNetworkProtocolVIpx
+ _SecurityNetworkProtocolPSpx = SecurityNetworkProtocolVSpx
+ _SecurityNetworkProtocolPSpxII = SecurityNetworkProtocolVSpxII
+ _SecurityNetworkProtocolPUnknownFutureValue = SecurityNetworkProtocolVUnknownFutureValue
+ _SecurityNetworkProtocolPUnknown = SecurityNetworkProtocolVUnknown
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSensitivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSensitivity.go
new file mode 100644
index 00000000..96caafa5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSensitivity.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Sensitivity undocumented
+type Sensitivity string
+
+const (
+ // SensitivityVNormal undocumented
+ SensitivityVNormal Sensitivity = "normal"
+ // SensitivityVPersonal undocumented
+ SensitivityVPersonal Sensitivity = "personal"
+ // SensitivityVPrivate undocumented
+ SensitivityVPrivate Sensitivity = "private"
+ // SensitivityVConfidential undocumented
+ SensitivityVConfidential Sensitivity = "confidential"
+)
+
+var (
+ // SensitivityPNormal is a pointer to SensitivityVNormal
+ SensitivityPNormal = &_SensitivityPNormal
+ // SensitivityPPersonal is a pointer to SensitivityVPersonal
+ SensitivityPPersonal = &_SensitivityPPersonal
+ // SensitivityPPrivate is a pointer to SensitivityVPrivate
+ SensitivityPPrivate = &_SensitivityPPrivate
+ // SensitivityPConfidential is a pointer to SensitivityVConfidential
+ SensitivityPConfidential = &_SensitivityPConfidential
+)
+
+var (
+ _SensitivityPNormal = SensitivityVNormal
+ _SensitivityPPersonal = SensitivityVPersonal
+ _SensitivityPPrivate = SensitivityVPrivate
+ _SensitivityPConfidential = SensitivityVConfidential
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumService.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumService.go
new file mode 100644
index 00000000..39b36a03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumService.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ServiceStartType undocumented
+type ServiceStartType string
+
+const (
+ // ServiceStartTypeVManual undocumented
+ ServiceStartTypeVManual ServiceStartType = "manual"
+ // ServiceStartTypeVAutomatic undocumented
+ ServiceStartTypeVAutomatic ServiceStartType = "automatic"
+ // ServiceStartTypeVDisabled undocumented
+ ServiceStartTypeVDisabled ServiceStartType = "disabled"
+)
+
+var (
+ // ServiceStartTypePManual is a pointer to ServiceStartTypeVManual
+ ServiceStartTypePManual = &_ServiceStartTypePManual
+ // ServiceStartTypePAutomatic is a pointer to ServiceStartTypeVAutomatic
+ ServiceStartTypePAutomatic = &_ServiceStartTypePAutomatic
+ // ServiceStartTypePDisabled is a pointer to ServiceStartTypeVDisabled
+ ServiceStartTypePDisabled = &_ServiceStartTypePDisabled
+)
+
+var (
+ _ServiceStartTypePManual = ServiceStartTypeVManual
+ _ServiceStartTypePAutomatic = ServiceStartTypeVAutomatic
+ _ServiceStartTypePDisabled = ServiceStartTypeVDisabled
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSetup.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSetup.go
new file mode 100644
index 00000000..1f7f8440
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSetup.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SetupStatus undocumented
+type SetupStatus string
+
+const (
+ // SetupStatusVUnknown undocumented
+ SetupStatusVUnknown SetupStatus = "unknown"
+ // SetupStatusVNotRegisteredYet undocumented
+ SetupStatusVNotRegisteredYet SetupStatus = "notRegisteredYet"
+ // SetupStatusVRegisteredSetupNotStarted undocumented
+ SetupStatusVRegisteredSetupNotStarted SetupStatus = "registeredSetupNotStarted"
+ // SetupStatusVRegisteredSetupInProgress undocumented
+ SetupStatusVRegisteredSetupInProgress SetupStatus = "registeredSetupInProgress"
+ // SetupStatusVRegistrationAndSetupCompleted undocumented
+ SetupStatusVRegistrationAndSetupCompleted SetupStatus = "registrationAndSetupCompleted"
+ // SetupStatusVRegistrationFailed undocumented
+ SetupStatusVRegistrationFailed SetupStatus = "registrationFailed"
+ // SetupStatusVRegistrationTimedOut undocumented
+ SetupStatusVRegistrationTimedOut SetupStatus = "registrationTimedOut"
+ // SetupStatusVDisabled undocumented
+ SetupStatusVDisabled SetupStatus = "disabled"
+)
+
+var (
+ // SetupStatusPUnknown is a pointer to SetupStatusVUnknown
+ SetupStatusPUnknown = &_SetupStatusPUnknown
+ // SetupStatusPNotRegisteredYet is a pointer to SetupStatusVNotRegisteredYet
+ SetupStatusPNotRegisteredYet = &_SetupStatusPNotRegisteredYet
+ // SetupStatusPRegisteredSetupNotStarted is a pointer to SetupStatusVRegisteredSetupNotStarted
+ SetupStatusPRegisteredSetupNotStarted = &_SetupStatusPRegisteredSetupNotStarted
+ // SetupStatusPRegisteredSetupInProgress is a pointer to SetupStatusVRegisteredSetupInProgress
+ SetupStatusPRegisteredSetupInProgress = &_SetupStatusPRegisteredSetupInProgress
+ // SetupStatusPRegistrationAndSetupCompleted is a pointer to SetupStatusVRegistrationAndSetupCompleted
+ SetupStatusPRegistrationAndSetupCompleted = &_SetupStatusPRegistrationAndSetupCompleted
+ // SetupStatusPRegistrationFailed is a pointer to SetupStatusVRegistrationFailed
+ SetupStatusPRegistrationFailed = &_SetupStatusPRegistrationFailed
+ // SetupStatusPRegistrationTimedOut is a pointer to SetupStatusVRegistrationTimedOut
+ SetupStatusPRegistrationTimedOut = &_SetupStatusPRegistrationTimedOut
+ // SetupStatusPDisabled is a pointer to SetupStatusVDisabled
+ SetupStatusPDisabled = &_SetupStatusPDisabled
+)
+
+var (
+ _SetupStatusPUnknown = SetupStatusVUnknown
+ _SetupStatusPNotRegisteredYet = SetupStatusVNotRegisteredYet
+ _SetupStatusPRegisteredSetupNotStarted = SetupStatusVRegisteredSetupNotStarted
+ _SetupStatusPRegisteredSetupInProgress = SetupStatusVRegisteredSetupInProgress
+ _SetupStatusPRegistrationAndSetupCompleted = SetupStatusVRegistrationAndSetupCompleted
+ _SetupStatusPRegistrationFailed = SetupStatusVRegistrationFailed
+ _SetupStatusPRegistrationTimedOut = SetupStatusVRegistrationTimedOut
+ _SetupStatusPDisabled = SetupStatusVDisabled
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumShared.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumShared.go
new file mode 100644
index 00000000..7f98eb77
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumShared.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharedPCAccountDeletionPolicyType undocumented
+type SharedPCAccountDeletionPolicyType string
+
+const (
+ // SharedPCAccountDeletionPolicyTypeVImmediate undocumented
+ SharedPCAccountDeletionPolicyTypeVImmediate SharedPCAccountDeletionPolicyType = "immediate"
+ // SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold undocumented
+ SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold SharedPCAccountDeletionPolicyType = "diskSpaceThreshold"
+ // SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold undocumented
+ SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold SharedPCAccountDeletionPolicyType = "diskSpaceThresholdOrInactiveThreshold"
+)
+
+var (
+ // SharedPCAccountDeletionPolicyTypePImmediate is a pointer to SharedPCAccountDeletionPolicyTypeVImmediate
+ SharedPCAccountDeletionPolicyTypePImmediate = &_SharedPCAccountDeletionPolicyTypePImmediate
+ // SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold is a pointer to SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold
+ SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold = &_SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold
+ // SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold is a pointer to SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold
+ SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold = &_SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold
+)
+
+var (
+ _SharedPCAccountDeletionPolicyTypePImmediate = SharedPCAccountDeletionPolicyTypeVImmediate
+ _SharedPCAccountDeletionPolicyTypePDiskSpaceThreshold = SharedPCAccountDeletionPolicyTypeVDiskSpaceThreshold
+ _SharedPCAccountDeletionPolicyTypePDiskSpaceThresholdOrInactiveThreshold = SharedPCAccountDeletionPolicyTypeVDiskSpaceThresholdOrInactiveThreshold
+)
+
+// SharedPCAllowedAccountType undocumented
+type SharedPCAllowedAccountType string
+
+const (
+ // SharedPCAllowedAccountTypeVNotConfigured undocumented
+ SharedPCAllowedAccountTypeVNotConfigured SharedPCAllowedAccountType = "notConfigured"
+ // SharedPCAllowedAccountTypeVGuest undocumented
+ SharedPCAllowedAccountTypeVGuest SharedPCAllowedAccountType = "guest"
+ // SharedPCAllowedAccountTypeVDomain undocumented
+ SharedPCAllowedAccountTypeVDomain SharedPCAllowedAccountType = "domain"
+)
+
+var (
+ // SharedPCAllowedAccountTypePNotConfigured is a pointer to SharedPCAllowedAccountTypeVNotConfigured
+ SharedPCAllowedAccountTypePNotConfigured = &_SharedPCAllowedAccountTypePNotConfigured
+ // SharedPCAllowedAccountTypePGuest is a pointer to SharedPCAllowedAccountTypeVGuest
+ SharedPCAllowedAccountTypePGuest = &_SharedPCAllowedAccountTypePGuest
+ // SharedPCAllowedAccountTypePDomain is a pointer to SharedPCAllowedAccountTypeVDomain
+ SharedPCAllowedAccountTypePDomain = &_SharedPCAllowedAccountTypePDomain
+)
+
+var (
+ _SharedPCAllowedAccountTypePNotConfigured = SharedPCAllowedAccountTypeVNotConfigured
+ _SharedPCAllowedAccountTypePGuest = SharedPCAllowedAccountTypeVGuest
+ _SharedPCAllowedAccountTypePDomain = SharedPCAllowedAccountTypeVDomain
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSign.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSign.go
new file mode 100644
index 00000000..6c877e88
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSign.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SignInAssistantOptions undocumented
+type SignInAssistantOptions string
+
+const (
+ // SignInAssistantOptionsVNotConfigured undocumented
+ SignInAssistantOptionsVNotConfigured SignInAssistantOptions = "notConfigured"
+ // SignInAssistantOptionsVDisabled undocumented
+ SignInAssistantOptionsVDisabled SignInAssistantOptions = "disabled"
+)
+
+var (
+ // SignInAssistantOptionsPNotConfigured is a pointer to SignInAssistantOptionsVNotConfigured
+ SignInAssistantOptionsPNotConfigured = &_SignInAssistantOptionsPNotConfigured
+ // SignInAssistantOptionsPDisabled is a pointer to SignInAssistantOptionsVDisabled
+ SignInAssistantOptionsPDisabled = &_SignInAssistantOptionsPDisabled
+)
+
+var (
+ _SignInAssistantOptionsPNotConfigured = SignInAssistantOptionsVNotConfigured
+ _SignInAssistantOptionsPDisabled = SignInAssistantOptionsVDisabled
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSignin.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSignin.go
new file mode 100644
index 00000000..145bbd98
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSignin.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SigninFrequencyType undocumented
+type SigninFrequencyType string
+
+const (
+ // SigninFrequencyTypeVDays undocumented
+ SigninFrequencyTypeVDays SigninFrequencyType = "days"
+ // SigninFrequencyTypeVHours undocumented
+ SigninFrequencyTypeVHours SigninFrequencyType = "hours"
+)
+
+var (
+ // SigninFrequencyTypePDays is a pointer to SigninFrequencyTypeVDays
+ SigninFrequencyTypePDays = &_SigninFrequencyTypePDays
+ // SigninFrequencyTypePHours is a pointer to SigninFrequencyTypeVHours
+ SigninFrequencyTypePHours = &_SigninFrequencyTypePHours
+)
+
+var (
+ _SigninFrequencyTypePDays = SigninFrequencyTypeVDays
+ _SigninFrequencyTypePHours = SigninFrequencyTypeVHours
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSite.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSite.go
new file mode 100644
index 00000000..46d748d6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSite.go
@@ -0,0 +1,72 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SiteAccessType undocumented
+type SiteAccessType string
+
+const (
+ // SiteAccessTypeVBlock undocumented
+ SiteAccessTypeVBlock SiteAccessType = "block"
+ // SiteAccessTypeVFull undocumented
+ SiteAccessTypeVFull SiteAccessType = "full"
+ // SiteAccessTypeVLimited undocumented
+ SiteAccessTypeVLimited SiteAccessType = "limited"
+)
+
+var (
+ // SiteAccessTypePBlock is a pointer to SiteAccessTypeVBlock
+ SiteAccessTypePBlock = &_SiteAccessTypePBlock
+ // SiteAccessTypePFull is a pointer to SiteAccessTypeVFull
+ SiteAccessTypePFull = &_SiteAccessTypePFull
+ // SiteAccessTypePLimited is a pointer to SiteAccessTypeVLimited
+ SiteAccessTypePLimited = &_SiteAccessTypePLimited
+)
+
+var (
+ _SiteAccessTypePBlock = SiteAccessTypeVBlock
+ _SiteAccessTypePFull = SiteAccessTypeVFull
+ _SiteAccessTypePLimited = SiteAccessTypeVLimited
+)
+
+// SiteSecurityLevel undocumented
+type SiteSecurityLevel string
+
+const (
+ // SiteSecurityLevelVUserDefined undocumented
+ SiteSecurityLevelVUserDefined SiteSecurityLevel = "userDefined"
+ // SiteSecurityLevelVLow undocumented
+ SiteSecurityLevelVLow SiteSecurityLevel = "low"
+ // SiteSecurityLevelVMediumLow undocumented
+ SiteSecurityLevelVMediumLow SiteSecurityLevel = "mediumLow"
+ // SiteSecurityLevelVMedium undocumented
+ SiteSecurityLevelVMedium SiteSecurityLevel = "medium"
+ // SiteSecurityLevelVMediumHigh undocumented
+ SiteSecurityLevelVMediumHigh SiteSecurityLevel = "mediumHigh"
+ // SiteSecurityLevelVHigh undocumented
+ SiteSecurityLevelVHigh SiteSecurityLevel = "high"
+)
+
+var (
+ // SiteSecurityLevelPUserDefined is a pointer to SiteSecurityLevelVUserDefined
+ SiteSecurityLevelPUserDefined = &_SiteSecurityLevelPUserDefined
+ // SiteSecurityLevelPLow is a pointer to SiteSecurityLevelVLow
+ SiteSecurityLevelPLow = &_SiteSecurityLevelPLow
+ // SiteSecurityLevelPMediumLow is a pointer to SiteSecurityLevelVMediumLow
+ SiteSecurityLevelPMediumLow = &_SiteSecurityLevelPMediumLow
+ // SiteSecurityLevelPMedium is a pointer to SiteSecurityLevelVMedium
+ SiteSecurityLevelPMedium = &_SiteSecurityLevelPMedium
+ // SiteSecurityLevelPMediumHigh is a pointer to SiteSecurityLevelVMediumHigh
+ SiteSecurityLevelPMediumHigh = &_SiteSecurityLevelPMediumHigh
+ // SiteSecurityLevelPHigh is a pointer to SiteSecurityLevelVHigh
+ SiteSecurityLevelPHigh = &_SiteSecurityLevelPHigh
+)
+
+var (
+ _SiteSecurityLevelPUserDefined = SiteSecurityLevelVUserDefined
+ _SiteSecurityLevelPLow = SiteSecurityLevelVLow
+ _SiteSecurityLevelPMediumLow = SiteSecurityLevelVMediumLow
+ _SiteSecurityLevelPMedium = SiteSecurityLevelVMedium
+ _SiteSecurityLevelPMediumHigh = SiteSecurityLevelVMediumHigh
+ _SiteSecurityLevelPHigh = SiteSecurityLevelVHigh
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSkill.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSkill.go
new file mode 100644
index 00000000..09a3babe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSkill.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SkillProficiencyLevel undocumented
+type SkillProficiencyLevel string
+
+const (
+ // SkillProficiencyLevelVElementary undocumented
+ SkillProficiencyLevelVElementary SkillProficiencyLevel = "elementary"
+ // SkillProficiencyLevelVLimitedWorking undocumented
+ SkillProficiencyLevelVLimitedWorking SkillProficiencyLevel = "limitedWorking"
+ // SkillProficiencyLevelVGeneralProfessional undocumented
+ SkillProficiencyLevelVGeneralProfessional SkillProficiencyLevel = "generalProfessional"
+ // SkillProficiencyLevelVAdvancedProfessional undocumented
+ SkillProficiencyLevelVAdvancedProfessional SkillProficiencyLevel = "advancedProfessional"
+ // SkillProficiencyLevelVExpert undocumented
+ SkillProficiencyLevelVExpert SkillProficiencyLevel = "expert"
+ // SkillProficiencyLevelVUnknownFutureValue undocumented
+ SkillProficiencyLevelVUnknownFutureValue SkillProficiencyLevel = "unknownFutureValue"
+)
+
+var (
+ // SkillProficiencyLevelPElementary is a pointer to SkillProficiencyLevelVElementary
+ SkillProficiencyLevelPElementary = &_SkillProficiencyLevelPElementary
+ // SkillProficiencyLevelPLimitedWorking is a pointer to SkillProficiencyLevelVLimitedWorking
+ SkillProficiencyLevelPLimitedWorking = &_SkillProficiencyLevelPLimitedWorking
+ // SkillProficiencyLevelPGeneralProfessional is a pointer to SkillProficiencyLevelVGeneralProfessional
+ SkillProficiencyLevelPGeneralProfessional = &_SkillProficiencyLevelPGeneralProfessional
+ // SkillProficiencyLevelPAdvancedProfessional is a pointer to SkillProficiencyLevelVAdvancedProfessional
+ SkillProficiencyLevelPAdvancedProfessional = &_SkillProficiencyLevelPAdvancedProfessional
+ // SkillProficiencyLevelPExpert is a pointer to SkillProficiencyLevelVExpert
+ SkillProficiencyLevelPExpert = &_SkillProficiencyLevelPExpert
+ // SkillProficiencyLevelPUnknownFutureValue is a pointer to SkillProficiencyLevelVUnknownFutureValue
+ SkillProficiencyLevelPUnknownFutureValue = &_SkillProficiencyLevelPUnknownFutureValue
+)
+
+var (
+ _SkillProficiencyLevelPElementary = SkillProficiencyLevelVElementary
+ _SkillProficiencyLevelPLimitedWorking = SkillProficiencyLevelVLimitedWorking
+ _SkillProficiencyLevelPGeneralProfessional = SkillProficiencyLevelVGeneralProfessional
+ _SkillProficiencyLevelPAdvancedProfessional = SkillProficiencyLevelVAdvancedProfessional
+ _SkillProficiencyLevelPExpert = SkillProficiencyLevelVExpert
+ _SkillProficiencyLevelPUnknownFutureValue = SkillProficiencyLevelVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumStaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumStaged.go
new file mode 100644
index 00000000..455b6836
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumStaged.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StagedFeatureName undocumented
+type StagedFeatureName string
+
+const (
+ // StagedFeatureNameVPassthroughAuthentication undocumented
+ StagedFeatureNameVPassthroughAuthentication StagedFeatureName = "passthroughAuthentication"
+ // StagedFeatureNameVSeamlessSso undocumented
+ StagedFeatureNameVSeamlessSso StagedFeatureName = "seamlessSso"
+ // StagedFeatureNameVPasswordHashSync undocumented
+ StagedFeatureNameVPasswordHashSync StagedFeatureName = "passwordHashSync"
+ // StagedFeatureNameVUnknownFutureValue undocumented
+ StagedFeatureNameVUnknownFutureValue StagedFeatureName = "unknownFutureValue"
+)
+
+var (
+ // StagedFeatureNamePPassthroughAuthentication is a pointer to StagedFeatureNameVPassthroughAuthentication
+ StagedFeatureNamePPassthroughAuthentication = &_StagedFeatureNamePPassthroughAuthentication
+ // StagedFeatureNamePSeamlessSso is a pointer to StagedFeatureNameVSeamlessSso
+ StagedFeatureNamePSeamlessSso = &_StagedFeatureNamePSeamlessSso
+ // StagedFeatureNamePPasswordHashSync is a pointer to StagedFeatureNameVPasswordHashSync
+ StagedFeatureNamePPasswordHashSync = &_StagedFeatureNamePPasswordHashSync
+ // StagedFeatureNamePUnknownFutureValue is a pointer to StagedFeatureNameVUnknownFutureValue
+ StagedFeatureNamePUnknownFutureValue = &_StagedFeatureNamePUnknownFutureValue
+)
+
+var (
+ _StagedFeatureNamePPassthroughAuthentication = StagedFeatureNameVPassthroughAuthentication
+ _StagedFeatureNamePSeamlessSso = StagedFeatureNameVSeamlessSso
+ _StagedFeatureNamePPasswordHashSync = StagedFeatureNameVPasswordHashSync
+ _StagedFeatureNamePUnknownFutureValue = StagedFeatureNameVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumState.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumState.go
new file mode 100644
index 00000000..bc37f1c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumState.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StateManagementSetting undocumented
+type StateManagementSetting string
+
+const (
+ // StateManagementSettingVNotConfigured undocumented
+ StateManagementSettingVNotConfigured StateManagementSetting = "notConfigured"
+ // StateManagementSettingVBlocked undocumented
+ StateManagementSettingVBlocked StateManagementSetting = "blocked"
+ // StateManagementSettingVAllowed undocumented
+ StateManagementSettingVAllowed StateManagementSetting = "allowed"
+)
+
+var (
+ // StateManagementSettingPNotConfigured is a pointer to StateManagementSettingVNotConfigured
+ StateManagementSettingPNotConfigured = &_StateManagementSettingPNotConfigured
+ // StateManagementSettingPBlocked is a pointer to StateManagementSettingVBlocked
+ StateManagementSettingPBlocked = &_StateManagementSettingPBlocked
+ // StateManagementSettingPAllowed is a pointer to StateManagementSettingVAllowed
+ StateManagementSettingPAllowed = &_StateManagementSettingPAllowed
+)
+
+var (
+ _StateManagementSettingPNotConfigured = StateManagementSettingVNotConfigured
+ _StateManagementSettingPBlocked = StateManagementSettingVBlocked
+ _StateManagementSettingPAllowed = StateManagementSettingVAllowed
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumStatus.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumStatus.go
new file mode 100644
index 00000000..0d9a284d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumStatus.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Status undocumented
+type Status string
+
+const (
+ // StatusVActive undocumented
+ StatusVActive Status = "active"
+ // StatusVUpdated undocumented
+ StatusVUpdated Status = "updated"
+ // StatusVDeleted undocumented
+ StatusVDeleted Status = "deleted"
+ // StatusVIgnored undocumented
+ StatusVIgnored Status = "ignored"
+ // StatusVUnknownFutureValue undocumented
+ StatusVUnknownFutureValue Status = "unknownFutureValue"
+)
+
+var (
+ // StatusPActive is a pointer to StatusVActive
+ StatusPActive = &_StatusPActive
+ // StatusPUpdated is a pointer to StatusVUpdated
+ StatusPUpdated = &_StatusPUpdated
+ // StatusPDeleted is a pointer to StatusVDeleted
+ StatusPDeleted = &_StatusPDeleted
+ // StatusPIgnored is a pointer to StatusVIgnored
+ StatusPIgnored = &_StatusPIgnored
+ // StatusPUnknownFutureValue is a pointer to StatusVUnknownFutureValue
+ StatusPUnknownFutureValue = &_StatusPUnknownFutureValue
+)
+
+var (
+ _StatusPActive = StatusVActive
+ _StatusPUpdated = StatusVUpdated
+ _StatusPDeleted = StatusVDeleted
+ _StatusPIgnored = StatusVIgnored
+ _StatusPUnknownFutureValue = StatusVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSubject.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSubject.go
new file mode 100644
index 00000000..aa568b40
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSubject.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SubjectAlternativeNameType undocumented
+type SubjectAlternativeNameType string
+
+const (
+ // SubjectAlternativeNameTypeVNone undocumented
+ SubjectAlternativeNameTypeVNone SubjectAlternativeNameType = "none"
+ // SubjectAlternativeNameTypeVEmailAddress undocumented
+ SubjectAlternativeNameTypeVEmailAddress SubjectAlternativeNameType = "emailAddress"
+ // SubjectAlternativeNameTypeVUserPrincipalName undocumented
+ SubjectAlternativeNameTypeVUserPrincipalName SubjectAlternativeNameType = "userPrincipalName"
+ // SubjectAlternativeNameTypeVCustomAzureADAttribute undocumented
+ SubjectAlternativeNameTypeVCustomAzureADAttribute SubjectAlternativeNameType = "customAzureADAttribute"
+ // SubjectAlternativeNameTypeVDomainNameService undocumented
+ SubjectAlternativeNameTypeVDomainNameService SubjectAlternativeNameType = "domainNameService"
+)
+
+var (
+ // SubjectAlternativeNameTypePNone is a pointer to SubjectAlternativeNameTypeVNone
+ SubjectAlternativeNameTypePNone = &_SubjectAlternativeNameTypePNone
+ // SubjectAlternativeNameTypePEmailAddress is a pointer to SubjectAlternativeNameTypeVEmailAddress
+ SubjectAlternativeNameTypePEmailAddress = &_SubjectAlternativeNameTypePEmailAddress
+ // SubjectAlternativeNameTypePUserPrincipalName is a pointer to SubjectAlternativeNameTypeVUserPrincipalName
+ SubjectAlternativeNameTypePUserPrincipalName = &_SubjectAlternativeNameTypePUserPrincipalName
+ // SubjectAlternativeNameTypePCustomAzureADAttribute is a pointer to SubjectAlternativeNameTypeVCustomAzureADAttribute
+ SubjectAlternativeNameTypePCustomAzureADAttribute = &_SubjectAlternativeNameTypePCustomAzureADAttribute
+ // SubjectAlternativeNameTypePDomainNameService is a pointer to SubjectAlternativeNameTypeVDomainNameService
+ SubjectAlternativeNameTypePDomainNameService = &_SubjectAlternativeNameTypePDomainNameService
+)
+
+var (
+ _SubjectAlternativeNameTypePNone = SubjectAlternativeNameTypeVNone
+ _SubjectAlternativeNameTypePEmailAddress = SubjectAlternativeNameTypeVEmailAddress
+ _SubjectAlternativeNameTypePUserPrincipalName = SubjectAlternativeNameTypeVUserPrincipalName
+ _SubjectAlternativeNameTypePCustomAzureADAttribute = SubjectAlternativeNameTypeVCustomAzureADAttribute
+ _SubjectAlternativeNameTypePDomainNameService = SubjectAlternativeNameTypeVDomainNameService
+)
+
+// SubjectNameFormat undocumented
+type SubjectNameFormat string
+
+const (
+ // SubjectNameFormatVCommonName undocumented
+ SubjectNameFormatVCommonName SubjectNameFormat = "commonName"
+ // SubjectNameFormatVCommonNameIncludingEmail undocumented
+ SubjectNameFormatVCommonNameIncludingEmail SubjectNameFormat = "commonNameIncludingEmail"
+ // SubjectNameFormatVCommonNameAsEmail undocumented
+ SubjectNameFormatVCommonNameAsEmail SubjectNameFormat = "commonNameAsEmail"
+ // SubjectNameFormatVCustom undocumented
+ SubjectNameFormatVCustom SubjectNameFormat = "custom"
+ // SubjectNameFormatVCommonNameAsIMEI undocumented
+ SubjectNameFormatVCommonNameAsIMEI SubjectNameFormat = "commonNameAsIMEI"
+ // SubjectNameFormatVCommonNameAsSerialNumber undocumented
+ SubjectNameFormatVCommonNameAsSerialNumber SubjectNameFormat = "commonNameAsSerialNumber"
+ // SubjectNameFormatVCommonNameAsAadDeviceID undocumented
+ SubjectNameFormatVCommonNameAsAadDeviceID SubjectNameFormat = "commonNameAsAadDeviceId"
+ // SubjectNameFormatVCommonNameAsIntuneDeviceID undocumented
+ SubjectNameFormatVCommonNameAsIntuneDeviceID SubjectNameFormat = "commonNameAsIntuneDeviceId"
+ // SubjectNameFormatVCommonNameAsDurableDeviceID undocumented
+ SubjectNameFormatVCommonNameAsDurableDeviceID SubjectNameFormat = "commonNameAsDurableDeviceId"
+)
+
+var (
+ // SubjectNameFormatPCommonName is a pointer to SubjectNameFormatVCommonName
+ SubjectNameFormatPCommonName = &_SubjectNameFormatPCommonName
+ // SubjectNameFormatPCommonNameIncludingEmail is a pointer to SubjectNameFormatVCommonNameIncludingEmail
+ SubjectNameFormatPCommonNameIncludingEmail = &_SubjectNameFormatPCommonNameIncludingEmail
+ // SubjectNameFormatPCommonNameAsEmail is a pointer to SubjectNameFormatVCommonNameAsEmail
+ SubjectNameFormatPCommonNameAsEmail = &_SubjectNameFormatPCommonNameAsEmail
+ // SubjectNameFormatPCustom is a pointer to SubjectNameFormatVCustom
+ SubjectNameFormatPCustom = &_SubjectNameFormatPCustom
+ // SubjectNameFormatPCommonNameAsIMEI is a pointer to SubjectNameFormatVCommonNameAsIMEI
+ SubjectNameFormatPCommonNameAsIMEI = &_SubjectNameFormatPCommonNameAsIMEI
+ // SubjectNameFormatPCommonNameAsSerialNumber is a pointer to SubjectNameFormatVCommonNameAsSerialNumber
+ SubjectNameFormatPCommonNameAsSerialNumber = &_SubjectNameFormatPCommonNameAsSerialNumber
+ // SubjectNameFormatPCommonNameAsAadDeviceID is a pointer to SubjectNameFormatVCommonNameAsAadDeviceID
+ SubjectNameFormatPCommonNameAsAadDeviceID = &_SubjectNameFormatPCommonNameAsAadDeviceID
+ // SubjectNameFormatPCommonNameAsIntuneDeviceID is a pointer to SubjectNameFormatVCommonNameAsIntuneDeviceID
+ SubjectNameFormatPCommonNameAsIntuneDeviceID = &_SubjectNameFormatPCommonNameAsIntuneDeviceID
+ // SubjectNameFormatPCommonNameAsDurableDeviceID is a pointer to SubjectNameFormatVCommonNameAsDurableDeviceID
+ SubjectNameFormatPCommonNameAsDurableDeviceID = &_SubjectNameFormatPCommonNameAsDurableDeviceID
+)
+
+var (
+ _SubjectNameFormatPCommonName = SubjectNameFormatVCommonName
+ _SubjectNameFormatPCommonNameIncludingEmail = SubjectNameFormatVCommonNameIncludingEmail
+ _SubjectNameFormatPCommonNameAsEmail = SubjectNameFormatVCommonNameAsEmail
+ _SubjectNameFormatPCustom = SubjectNameFormatVCustom
+ _SubjectNameFormatPCommonNameAsIMEI = SubjectNameFormatVCommonNameAsIMEI
+ _SubjectNameFormatPCommonNameAsSerialNumber = SubjectNameFormatVCommonNameAsSerialNumber
+ _SubjectNameFormatPCommonNameAsAadDeviceID = SubjectNameFormatVCommonNameAsAadDeviceID
+ _SubjectNameFormatPCommonNameAsIntuneDeviceID = SubjectNameFormatVCommonNameAsIntuneDeviceID
+ _SubjectNameFormatPCommonNameAsDurableDeviceID = SubjectNameFormatVCommonNameAsDurableDeviceID
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumSynchronization.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSynchronization.go
new file mode 100644
index 00000000..70220d8a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumSynchronization.go
@@ -0,0 +1,333 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SynchronizationJobRestartScope undocumented
+type SynchronizationJobRestartScope string
+
+const (
+ // SynchronizationJobRestartScopeVForceDeletes undocumented
+ SynchronizationJobRestartScopeVForceDeletes SynchronizationJobRestartScope = "ForceDeletes"
+ // SynchronizationJobRestartScopeVFull undocumented
+ SynchronizationJobRestartScopeVFull SynchronizationJobRestartScope = "Full"
+ // SynchronizationJobRestartScopeVQuarantineState undocumented
+ SynchronizationJobRestartScopeVQuarantineState SynchronizationJobRestartScope = "QuarantineState"
+ // SynchronizationJobRestartScopeVWatermark undocumented
+ SynchronizationJobRestartScopeVWatermark SynchronizationJobRestartScope = "Watermark"
+ // SynchronizationJobRestartScopeVEscrows undocumented
+ SynchronizationJobRestartScopeVEscrows SynchronizationJobRestartScope = "Escrows"
+ // SynchronizationJobRestartScopeVConnectorDataStore undocumented
+ SynchronizationJobRestartScopeVConnectorDataStore SynchronizationJobRestartScope = "ConnectorDataStore"
+ // SynchronizationJobRestartScopeVNone undocumented
+ SynchronizationJobRestartScopeVNone SynchronizationJobRestartScope = "None"
+)
+
+var (
+ // SynchronizationJobRestartScopePForceDeletes is a pointer to SynchronizationJobRestartScopeVForceDeletes
+ SynchronizationJobRestartScopePForceDeletes = &_SynchronizationJobRestartScopePForceDeletes
+ // SynchronizationJobRestartScopePFull is a pointer to SynchronizationJobRestartScopeVFull
+ SynchronizationJobRestartScopePFull = &_SynchronizationJobRestartScopePFull
+ // SynchronizationJobRestartScopePQuarantineState is a pointer to SynchronizationJobRestartScopeVQuarantineState
+ SynchronizationJobRestartScopePQuarantineState = &_SynchronizationJobRestartScopePQuarantineState
+ // SynchronizationJobRestartScopePWatermark is a pointer to SynchronizationJobRestartScopeVWatermark
+ SynchronizationJobRestartScopePWatermark = &_SynchronizationJobRestartScopePWatermark
+ // SynchronizationJobRestartScopePEscrows is a pointer to SynchronizationJobRestartScopeVEscrows
+ SynchronizationJobRestartScopePEscrows = &_SynchronizationJobRestartScopePEscrows
+ // SynchronizationJobRestartScopePConnectorDataStore is a pointer to SynchronizationJobRestartScopeVConnectorDataStore
+ SynchronizationJobRestartScopePConnectorDataStore = &_SynchronizationJobRestartScopePConnectorDataStore
+ // SynchronizationJobRestartScopePNone is a pointer to SynchronizationJobRestartScopeVNone
+ SynchronizationJobRestartScopePNone = &_SynchronizationJobRestartScopePNone
+)
+
+var (
+ _SynchronizationJobRestartScopePForceDeletes = SynchronizationJobRestartScopeVForceDeletes
+ _SynchronizationJobRestartScopePFull = SynchronizationJobRestartScopeVFull
+ _SynchronizationJobRestartScopePQuarantineState = SynchronizationJobRestartScopeVQuarantineState
+ _SynchronizationJobRestartScopePWatermark = SynchronizationJobRestartScopeVWatermark
+ _SynchronizationJobRestartScopePEscrows = SynchronizationJobRestartScopeVEscrows
+ _SynchronizationJobRestartScopePConnectorDataStore = SynchronizationJobRestartScopeVConnectorDataStore
+ _SynchronizationJobRestartScopePNone = SynchronizationJobRestartScopeVNone
+)
+
+// SynchronizationScheduleState undocumented
+type SynchronizationScheduleState string
+
+const (
+ // SynchronizationScheduleStateVActive undocumented
+ SynchronizationScheduleStateVActive SynchronizationScheduleState = "Active"
+ // SynchronizationScheduleStateVDisabled undocumented
+ SynchronizationScheduleStateVDisabled SynchronizationScheduleState = "Disabled"
+)
+
+var (
+ // SynchronizationScheduleStatePActive is a pointer to SynchronizationScheduleStateVActive
+ SynchronizationScheduleStatePActive = &_SynchronizationScheduleStatePActive
+ // SynchronizationScheduleStatePDisabled is a pointer to SynchronizationScheduleStateVDisabled
+ SynchronizationScheduleStatePDisabled = &_SynchronizationScheduleStatePDisabled
+)
+
+var (
+ _SynchronizationScheduleStatePActive = SynchronizationScheduleStateVActive
+ _SynchronizationScheduleStatePDisabled = SynchronizationScheduleStateVDisabled
+)
+
+// SynchronizationSecret undocumented
+type SynchronizationSecret string
+
+const (
+ // SynchronizationSecretVNone undocumented
+ SynchronizationSecretVNone SynchronizationSecret = "None"
+ // SynchronizationSecretVUserName undocumented
+ SynchronizationSecretVUserName SynchronizationSecret = "UserName"
+ // SynchronizationSecretVPassword undocumented
+ SynchronizationSecretVPassword SynchronizationSecret = "Password"
+ // SynchronizationSecretVSecretToken undocumented
+ SynchronizationSecretVSecretToken SynchronizationSecret = "SecretToken"
+ // SynchronizationSecretVAppKey undocumented
+ SynchronizationSecretVAppKey SynchronizationSecret = "AppKey"
+ // SynchronizationSecretVBaseAddress undocumented
+ SynchronizationSecretVBaseAddress SynchronizationSecret = "BaseAddress"
+ // SynchronizationSecretVClientIdentifier undocumented
+ SynchronizationSecretVClientIdentifier SynchronizationSecret = "ClientIdentifier"
+ // SynchronizationSecretVClientSecret undocumented
+ SynchronizationSecretVClientSecret SynchronizationSecret = "ClientSecret"
+ // SynchronizationSecretVSingleSignOnType undocumented
+ SynchronizationSecretVSingleSignOnType SynchronizationSecret = "SingleSignOnType"
+ // SynchronizationSecretVSandbox undocumented
+ SynchronizationSecretVSandbox SynchronizationSecret = "Sandbox"
+ // SynchronizationSecretVURL undocumented
+ SynchronizationSecretVURL SynchronizationSecret = "Url"
+ // SynchronizationSecretVDomain undocumented
+ SynchronizationSecretVDomain SynchronizationSecret = "Domain"
+ // SynchronizationSecretVConsumerKey undocumented
+ SynchronizationSecretVConsumerKey SynchronizationSecret = "ConsumerKey"
+ // SynchronizationSecretVConsumerSecret undocumented
+ SynchronizationSecretVConsumerSecret SynchronizationSecret = "ConsumerSecret"
+ // SynchronizationSecretVTokenKey undocumented
+ SynchronizationSecretVTokenKey SynchronizationSecret = "TokenKey"
+ // SynchronizationSecretVTokenExpiration undocumented
+ SynchronizationSecretVTokenExpiration SynchronizationSecret = "TokenExpiration"
+ // SynchronizationSecretVOauth2AccessToken undocumented
+ SynchronizationSecretVOauth2AccessToken SynchronizationSecret = "Oauth2AccessToken"
+ // SynchronizationSecretVOauth2AccessTokenCreationTime undocumented
+ SynchronizationSecretVOauth2AccessTokenCreationTime SynchronizationSecret = "Oauth2AccessTokenCreationTime"
+ // SynchronizationSecretVOauth2RefreshToken undocumented
+ SynchronizationSecretVOauth2RefreshToken SynchronizationSecret = "Oauth2RefreshToken"
+ // SynchronizationSecretVSyncAll undocumented
+ SynchronizationSecretVSyncAll SynchronizationSecret = "SyncAll"
+ // SynchronizationSecretVInstanceName undocumented
+ SynchronizationSecretVInstanceName SynchronizationSecret = "InstanceName"
+ // SynchronizationSecretVOauth2ClientID undocumented
+ SynchronizationSecretVOauth2ClientID SynchronizationSecret = "Oauth2ClientId"
+ // SynchronizationSecretVOauth2ClientSecret undocumented
+ SynchronizationSecretVOauth2ClientSecret SynchronizationSecret = "Oauth2ClientSecret"
+ // SynchronizationSecretVCompanyID undocumented
+ SynchronizationSecretVCompanyID SynchronizationSecret = "CompanyId"
+ // SynchronizationSecretVUpdateKeyOnSoftDelete undocumented
+ SynchronizationSecretVUpdateKeyOnSoftDelete SynchronizationSecret = "UpdateKeyOnSoftDelete"
+ // SynchronizationSecretVSynchronizationSchedule undocumented
+ SynchronizationSecretVSynchronizationSchedule SynchronizationSecret = "SynchronizationSchedule"
+ // SynchronizationSecretVSystemOfRecord undocumented
+ SynchronizationSecretVSystemOfRecord SynchronizationSecret = "SystemOfRecord"
+ // SynchronizationSecretVSandboxName undocumented
+ SynchronizationSecretVSandboxName SynchronizationSecret = "SandboxName"
+ // SynchronizationSecretVEnforceDomain undocumented
+ SynchronizationSecretVEnforceDomain SynchronizationSecret = "EnforceDomain"
+ // SynchronizationSecretVSyncNotificationSettings undocumented
+ SynchronizationSecretVSyncNotificationSettings SynchronizationSecret = "SyncNotificationSettings"
+ // SynchronizationSecretVServer undocumented
+ SynchronizationSecretVServer SynchronizationSecret = "Server"
+ // SynchronizationSecretVPerformInboundEntitlementGrants undocumented
+ SynchronizationSecretVPerformInboundEntitlementGrants SynchronizationSecret = "PerformInboundEntitlementGrants"
+ // SynchronizationSecretVHardDeletesEnabled undocumented
+ SynchronizationSecretVHardDeletesEnabled SynchronizationSecret = "HardDeletesEnabled"
+ // SynchronizationSecretVSyncAgentCompatibilityKey undocumented
+ SynchronizationSecretVSyncAgentCompatibilityKey SynchronizationSecret = "SyncAgentCompatibilityKey"
+ // SynchronizationSecretVSyncAgentADContainer undocumented
+ SynchronizationSecretVSyncAgentADContainer SynchronizationSecret = "SyncAgentADContainer"
+ // SynchronizationSecretVValidateDomain undocumented
+ SynchronizationSecretVValidateDomain SynchronizationSecret = "ValidateDomain"
+ // SynchronizationSecretVTestReferences undocumented
+ SynchronizationSecretVTestReferences SynchronizationSecret = "TestReferences"
+)
+
+var (
+ // SynchronizationSecretPNone is a pointer to SynchronizationSecretVNone
+ SynchronizationSecretPNone = &_SynchronizationSecretPNone
+ // SynchronizationSecretPUserName is a pointer to SynchronizationSecretVUserName
+ SynchronizationSecretPUserName = &_SynchronizationSecretPUserName
+ // SynchronizationSecretPPassword is a pointer to SynchronizationSecretVPassword
+ SynchronizationSecretPPassword = &_SynchronizationSecretPPassword
+ // SynchronizationSecretPSecretToken is a pointer to SynchronizationSecretVSecretToken
+ SynchronizationSecretPSecretToken = &_SynchronizationSecretPSecretToken
+ // SynchronizationSecretPAppKey is a pointer to SynchronizationSecretVAppKey
+ SynchronizationSecretPAppKey = &_SynchronizationSecretPAppKey
+ // SynchronizationSecretPBaseAddress is a pointer to SynchronizationSecretVBaseAddress
+ SynchronizationSecretPBaseAddress = &_SynchronizationSecretPBaseAddress
+ // SynchronizationSecretPClientIdentifier is a pointer to SynchronizationSecretVClientIdentifier
+ SynchronizationSecretPClientIdentifier = &_SynchronizationSecretPClientIdentifier
+ // SynchronizationSecretPClientSecret is a pointer to SynchronizationSecretVClientSecret
+ SynchronizationSecretPClientSecret = &_SynchronizationSecretPClientSecret
+ // SynchronizationSecretPSingleSignOnType is a pointer to SynchronizationSecretVSingleSignOnType
+ SynchronizationSecretPSingleSignOnType = &_SynchronizationSecretPSingleSignOnType
+ // SynchronizationSecretPSandbox is a pointer to SynchronizationSecretVSandbox
+ SynchronizationSecretPSandbox = &_SynchronizationSecretPSandbox
+ // SynchronizationSecretPURL is a pointer to SynchronizationSecretVURL
+ SynchronizationSecretPURL = &_SynchronizationSecretPURL
+ // SynchronizationSecretPDomain is a pointer to SynchronizationSecretVDomain
+ SynchronizationSecretPDomain = &_SynchronizationSecretPDomain
+ // SynchronizationSecretPConsumerKey is a pointer to SynchronizationSecretVConsumerKey
+ SynchronizationSecretPConsumerKey = &_SynchronizationSecretPConsumerKey
+ // SynchronizationSecretPConsumerSecret is a pointer to SynchronizationSecretVConsumerSecret
+ SynchronizationSecretPConsumerSecret = &_SynchronizationSecretPConsumerSecret
+ // SynchronizationSecretPTokenKey is a pointer to SynchronizationSecretVTokenKey
+ SynchronizationSecretPTokenKey = &_SynchronizationSecretPTokenKey
+ // SynchronizationSecretPTokenExpiration is a pointer to SynchronizationSecretVTokenExpiration
+ SynchronizationSecretPTokenExpiration = &_SynchronizationSecretPTokenExpiration
+ // SynchronizationSecretPOauth2AccessToken is a pointer to SynchronizationSecretVOauth2AccessToken
+ SynchronizationSecretPOauth2AccessToken = &_SynchronizationSecretPOauth2AccessToken
+ // SynchronizationSecretPOauth2AccessTokenCreationTime is a pointer to SynchronizationSecretVOauth2AccessTokenCreationTime
+ SynchronizationSecretPOauth2AccessTokenCreationTime = &_SynchronizationSecretPOauth2AccessTokenCreationTime
+ // SynchronizationSecretPOauth2RefreshToken is a pointer to SynchronizationSecretVOauth2RefreshToken
+ SynchronizationSecretPOauth2RefreshToken = &_SynchronizationSecretPOauth2RefreshToken
+ // SynchronizationSecretPSyncAll is a pointer to SynchronizationSecretVSyncAll
+ SynchronizationSecretPSyncAll = &_SynchronizationSecretPSyncAll
+ // SynchronizationSecretPInstanceName is a pointer to SynchronizationSecretVInstanceName
+ SynchronizationSecretPInstanceName = &_SynchronizationSecretPInstanceName
+ // SynchronizationSecretPOauth2ClientID is a pointer to SynchronizationSecretVOauth2ClientID
+ SynchronizationSecretPOauth2ClientID = &_SynchronizationSecretPOauth2ClientID
+ // SynchronizationSecretPOauth2ClientSecret is a pointer to SynchronizationSecretVOauth2ClientSecret
+ SynchronizationSecretPOauth2ClientSecret = &_SynchronizationSecretPOauth2ClientSecret
+ // SynchronizationSecretPCompanyID is a pointer to SynchronizationSecretVCompanyID
+ SynchronizationSecretPCompanyID = &_SynchronizationSecretPCompanyID
+ // SynchronizationSecretPUpdateKeyOnSoftDelete is a pointer to SynchronizationSecretVUpdateKeyOnSoftDelete
+ SynchronizationSecretPUpdateKeyOnSoftDelete = &_SynchronizationSecretPUpdateKeyOnSoftDelete
+ // SynchronizationSecretPSynchronizationSchedule is a pointer to SynchronizationSecretVSynchronizationSchedule
+ SynchronizationSecretPSynchronizationSchedule = &_SynchronizationSecretPSynchronizationSchedule
+ // SynchronizationSecretPSystemOfRecord is a pointer to SynchronizationSecretVSystemOfRecord
+ SynchronizationSecretPSystemOfRecord = &_SynchronizationSecretPSystemOfRecord
+ // SynchronizationSecretPSandboxName is a pointer to SynchronizationSecretVSandboxName
+ SynchronizationSecretPSandboxName = &_SynchronizationSecretPSandboxName
+ // SynchronizationSecretPEnforceDomain is a pointer to SynchronizationSecretVEnforceDomain
+ SynchronizationSecretPEnforceDomain = &_SynchronizationSecretPEnforceDomain
+ // SynchronizationSecretPSyncNotificationSettings is a pointer to SynchronizationSecretVSyncNotificationSettings
+ SynchronizationSecretPSyncNotificationSettings = &_SynchronizationSecretPSyncNotificationSettings
+ // SynchronizationSecretPServer is a pointer to SynchronizationSecretVServer
+ SynchronizationSecretPServer = &_SynchronizationSecretPServer
+ // SynchronizationSecretPPerformInboundEntitlementGrants is a pointer to SynchronizationSecretVPerformInboundEntitlementGrants
+ SynchronizationSecretPPerformInboundEntitlementGrants = &_SynchronizationSecretPPerformInboundEntitlementGrants
+ // SynchronizationSecretPHardDeletesEnabled is a pointer to SynchronizationSecretVHardDeletesEnabled
+ SynchronizationSecretPHardDeletesEnabled = &_SynchronizationSecretPHardDeletesEnabled
+ // SynchronizationSecretPSyncAgentCompatibilityKey is a pointer to SynchronizationSecretVSyncAgentCompatibilityKey
+ SynchronizationSecretPSyncAgentCompatibilityKey = &_SynchronizationSecretPSyncAgentCompatibilityKey
+ // SynchronizationSecretPSyncAgentADContainer is a pointer to SynchronizationSecretVSyncAgentADContainer
+ SynchronizationSecretPSyncAgentADContainer = &_SynchronizationSecretPSyncAgentADContainer
+ // SynchronizationSecretPValidateDomain is a pointer to SynchronizationSecretVValidateDomain
+ SynchronizationSecretPValidateDomain = &_SynchronizationSecretPValidateDomain
+ // SynchronizationSecretPTestReferences is a pointer to SynchronizationSecretVTestReferences
+ SynchronizationSecretPTestReferences = &_SynchronizationSecretPTestReferences
+)
+
+var (
+ _SynchronizationSecretPNone = SynchronizationSecretVNone
+ _SynchronizationSecretPUserName = SynchronizationSecretVUserName
+ _SynchronizationSecretPPassword = SynchronizationSecretVPassword
+ _SynchronizationSecretPSecretToken = SynchronizationSecretVSecretToken
+ _SynchronizationSecretPAppKey = SynchronizationSecretVAppKey
+ _SynchronizationSecretPBaseAddress = SynchronizationSecretVBaseAddress
+ _SynchronizationSecretPClientIdentifier = SynchronizationSecretVClientIdentifier
+ _SynchronizationSecretPClientSecret = SynchronizationSecretVClientSecret
+ _SynchronizationSecretPSingleSignOnType = SynchronizationSecretVSingleSignOnType
+ _SynchronizationSecretPSandbox = SynchronizationSecretVSandbox
+ _SynchronizationSecretPURL = SynchronizationSecretVURL
+ _SynchronizationSecretPDomain = SynchronizationSecretVDomain
+ _SynchronizationSecretPConsumerKey = SynchronizationSecretVConsumerKey
+ _SynchronizationSecretPConsumerSecret = SynchronizationSecretVConsumerSecret
+ _SynchronizationSecretPTokenKey = SynchronizationSecretVTokenKey
+ _SynchronizationSecretPTokenExpiration = SynchronizationSecretVTokenExpiration
+ _SynchronizationSecretPOauth2AccessToken = SynchronizationSecretVOauth2AccessToken
+ _SynchronizationSecretPOauth2AccessTokenCreationTime = SynchronizationSecretVOauth2AccessTokenCreationTime
+ _SynchronizationSecretPOauth2RefreshToken = SynchronizationSecretVOauth2RefreshToken
+ _SynchronizationSecretPSyncAll = SynchronizationSecretVSyncAll
+ _SynchronizationSecretPInstanceName = SynchronizationSecretVInstanceName
+ _SynchronizationSecretPOauth2ClientID = SynchronizationSecretVOauth2ClientID
+ _SynchronizationSecretPOauth2ClientSecret = SynchronizationSecretVOauth2ClientSecret
+ _SynchronizationSecretPCompanyID = SynchronizationSecretVCompanyID
+ _SynchronizationSecretPUpdateKeyOnSoftDelete = SynchronizationSecretVUpdateKeyOnSoftDelete
+ _SynchronizationSecretPSynchronizationSchedule = SynchronizationSecretVSynchronizationSchedule
+ _SynchronizationSecretPSystemOfRecord = SynchronizationSecretVSystemOfRecord
+ _SynchronizationSecretPSandboxName = SynchronizationSecretVSandboxName
+ _SynchronizationSecretPEnforceDomain = SynchronizationSecretVEnforceDomain
+ _SynchronizationSecretPSyncNotificationSettings = SynchronizationSecretVSyncNotificationSettings
+ _SynchronizationSecretPServer = SynchronizationSecretVServer
+ _SynchronizationSecretPPerformInboundEntitlementGrants = SynchronizationSecretVPerformInboundEntitlementGrants
+ _SynchronizationSecretPHardDeletesEnabled = SynchronizationSecretVHardDeletesEnabled
+ _SynchronizationSecretPSyncAgentCompatibilityKey = SynchronizationSecretVSyncAgentCompatibilityKey
+ _SynchronizationSecretPSyncAgentADContainer = SynchronizationSecretVSyncAgentADContainer
+ _SynchronizationSecretPValidateDomain = SynchronizationSecretVValidateDomain
+ _SynchronizationSecretPTestReferences = SynchronizationSecretVTestReferences
+)
+
+// SynchronizationStatusCode undocumented
+type SynchronizationStatusCode string
+
+const (
+ // SynchronizationStatusCodeVNotConfigured undocumented
+ SynchronizationStatusCodeVNotConfigured SynchronizationStatusCode = "NotConfigured"
+ // SynchronizationStatusCodeVNotRun undocumented
+ SynchronizationStatusCodeVNotRun SynchronizationStatusCode = "NotRun"
+ // SynchronizationStatusCodeVActive undocumented
+ SynchronizationStatusCodeVActive SynchronizationStatusCode = "Active"
+ // SynchronizationStatusCodeVPaused undocumented
+ SynchronizationStatusCodeVPaused SynchronizationStatusCode = "Paused"
+ // SynchronizationStatusCodeVQuarantine undocumented
+ SynchronizationStatusCodeVQuarantine SynchronizationStatusCode = "Quarantine"
+)
+
+var (
+ // SynchronizationStatusCodePNotConfigured is a pointer to SynchronizationStatusCodeVNotConfigured
+ SynchronizationStatusCodePNotConfigured = &_SynchronizationStatusCodePNotConfigured
+ // SynchronizationStatusCodePNotRun is a pointer to SynchronizationStatusCodeVNotRun
+ SynchronizationStatusCodePNotRun = &_SynchronizationStatusCodePNotRun
+ // SynchronizationStatusCodePActive is a pointer to SynchronizationStatusCodeVActive
+ SynchronizationStatusCodePActive = &_SynchronizationStatusCodePActive
+ // SynchronizationStatusCodePPaused is a pointer to SynchronizationStatusCodeVPaused
+ SynchronizationStatusCodePPaused = &_SynchronizationStatusCodePPaused
+ // SynchronizationStatusCodePQuarantine is a pointer to SynchronizationStatusCodeVQuarantine
+ SynchronizationStatusCodePQuarantine = &_SynchronizationStatusCodePQuarantine
+)
+
+var (
+ _SynchronizationStatusCodePNotConfigured = SynchronizationStatusCodeVNotConfigured
+ _SynchronizationStatusCodePNotRun = SynchronizationStatusCodeVNotRun
+ _SynchronizationStatusCodePActive = SynchronizationStatusCodeVActive
+ _SynchronizationStatusCodePPaused = SynchronizationStatusCodeVPaused
+ _SynchronizationStatusCodePQuarantine = SynchronizationStatusCodeVQuarantine
+)
+
+// SynchronizationTaskExecutionResult undocumented
+type SynchronizationTaskExecutionResult string
+
+const (
+ // SynchronizationTaskExecutionResultVSucceeded undocumented
+ SynchronizationTaskExecutionResultVSucceeded SynchronizationTaskExecutionResult = "Succeeded"
+ // SynchronizationTaskExecutionResultVFailed undocumented
+ SynchronizationTaskExecutionResultVFailed SynchronizationTaskExecutionResult = "Failed"
+ // SynchronizationTaskExecutionResultVEntryLevelErrors undocumented
+ SynchronizationTaskExecutionResultVEntryLevelErrors SynchronizationTaskExecutionResult = "EntryLevelErrors"
+)
+
+var (
+ // SynchronizationTaskExecutionResultPSucceeded is a pointer to SynchronizationTaskExecutionResultVSucceeded
+ SynchronizationTaskExecutionResultPSucceeded = &_SynchronizationTaskExecutionResultPSucceeded
+ // SynchronizationTaskExecutionResultPFailed is a pointer to SynchronizationTaskExecutionResultVFailed
+ SynchronizationTaskExecutionResultPFailed = &_SynchronizationTaskExecutionResultPFailed
+ // SynchronizationTaskExecutionResultPEntryLevelErrors is a pointer to SynchronizationTaskExecutionResultVEntryLevelErrors
+ SynchronizationTaskExecutionResultPEntryLevelErrors = &_SynchronizationTaskExecutionResultPEntryLevelErrors
+)
+
+var (
+ _SynchronizationTaskExecutionResultPSucceeded = SynchronizationTaskExecutionResultVSucceeded
+ _SynchronizationTaskExecutionResultPFailed = SynchronizationTaskExecutionResultVFailed
+ _SynchronizationTaskExecutionResultPEntryLevelErrors = SynchronizationTaskExecutionResultVEntryLevelErrors
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTask.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTask.go
new file mode 100644
index 00000000..de2bf07c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTask.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TaskStatus undocumented
+type TaskStatus string
+
+const (
+ // TaskStatusVNotStarted undocumented
+ TaskStatusVNotStarted TaskStatus = "notStarted"
+ // TaskStatusVInProgress undocumented
+ TaskStatusVInProgress TaskStatus = "inProgress"
+ // TaskStatusVCompleted undocumented
+ TaskStatusVCompleted TaskStatus = "completed"
+ // TaskStatusVWaitingOnOthers undocumented
+ TaskStatusVWaitingOnOthers TaskStatus = "waitingOnOthers"
+ // TaskStatusVDeferred undocumented
+ TaskStatusVDeferred TaskStatus = "deferred"
+)
+
+var (
+ // TaskStatusPNotStarted is a pointer to TaskStatusVNotStarted
+ TaskStatusPNotStarted = &_TaskStatusPNotStarted
+ // TaskStatusPInProgress is a pointer to TaskStatusVInProgress
+ TaskStatusPInProgress = &_TaskStatusPInProgress
+ // TaskStatusPCompleted is a pointer to TaskStatusVCompleted
+ TaskStatusPCompleted = &_TaskStatusPCompleted
+ // TaskStatusPWaitingOnOthers is a pointer to TaskStatusVWaitingOnOthers
+ TaskStatusPWaitingOnOthers = &_TaskStatusPWaitingOnOthers
+ // TaskStatusPDeferred is a pointer to TaskStatusVDeferred
+ TaskStatusPDeferred = &_TaskStatusPDeferred
+)
+
+var (
+ _TaskStatusPNotStarted = TaskStatusVNotStarted
+ _TaskStatusPInProgress = TaskStatusVInProgress
+ _TaskStatusPCompleted = TaskStatusVCompleted
+ _TaskStatusPWaitingOnOthers = TaskStatusVWaitingOnOthers
+ _TaskStatusPDeferred = TaskStatusVDeferred
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeam.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeam.go
new file mode 100644
index 00000000..27bdff00
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeam.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamSpecialization undocumented
+type TeamSpecialization string
+
+const (
+ // TeamSpecializationVNone undocumented
+ TeamSpecializationVNone TeamSpecialization = "none"
+ // TeamSpecializationVEducationStandard undocumented
+ TeamSpecializationVEducationStandard TeamSpecialization = "educationStandard"
+ // TeamSpecializationVEducationClass undocumented
+ TeamSpecializationVEducationClass TeamSpecialization = "educationClass"
+ // TeamSpecializationVEducationProfessionalLearningCommunity undocumented
+ TeamSpecializationVEducationProfessionalLearningCommunity TeamSpecialization = "educationProfessionalLearningCommunity"
+ // TeamSpecializationVEducationStaff undocumented
+ TeamSpecializationVEducationStaff TeamSpecialization = "educationStaff"
+ // TeamSpecializationVHealthcareStandard undocumented
+ TeamSpecializationVHealthcareStandard TeamSpecialization = "healthcareStandard"
+ // TeamSpecializationVHealthcareCareCoordination undocumented
+ TeamSpecializationVHealthcareCareCoordination TeamSpecialization = "healthcareCareCoordination"
+ // TeamSpecializationVUnknownFutureValue undocumented
+ TeamSpecializationVUnknownFutureValue TeamSpecialization = "unknownFutureValue"
+)
+
+var (
+ // TeamSpecializationPNone is a pointer to TeamSpecializationVNone
+ TeamSpecializationPNone = &_TeamSpecializationPNone
+ // TeamSpecializationPEducationStandard is a pointer to TeamSpecializationVEducationStandard
+ TeamSpecializationPEducationStandard = &_TeamSpecializationPEducationStandard
+ // TeamSpecializationPEducationClass is a pointer to TeamSpecializationVEducationClass
+ TeamSpecializationPEducationClass = &_TeamSpecializationPEducationClass
+ // TeamSpecializationPEducationProfessionalLearningCommunity is a pointer to TeamSpecializationVEducationProfessionalLearningCommunity
+ TeamSpecializationPEducationProfessionalLearningCommunity = &_TeamSpecializationPEducationProfessionalLearningCommunity
+ // TeamSpecializationPEducationStaff is a pointer to TeamSpecializationVEducationStaff
+ TeamSpecializationPEducationStaff = &_TeamSpecializationPEducationStaff
+ // TeamSpecializationPHealthcareStandard is a pointer to TeamSpecializationVHealthcareStandard
+ TeamSpecializationPHealthcareStandard = &_TeamSpecializationPHealthcareStandard
+ // TeamSpecializationPHealthcareCareCoordination is a pointer to TeamSpecializationVHealthcareCareCoordination
+ TeamSpecializationPHealthcareCareCoordination = &_TeamSpecializationPHealthcareCareCoordination
+ // TeamSpecializationPUnknownFutureValue is a pointer to TeamSpecializationVUnknownFutureValue
+ TeamSpecializationPUnknownFutureValue = &_TeamSpecializationPUnknownFutureValue
+)
+
+var (
+ _TeamSpecializationPNone = TeamSpecializationVNone
+ _TeamSpecializationPEducationStandard = TeamSpecializationVEducationStandard
+ _TeamSpecializationPEducationClass = TeamSpecializationVEducationClass
+ _TeamSpecializationPEducationProfessionalLearningCommunity = TeamSpecializationVEducationProfessionalLearningCommunity
+ _TeamSpecializationPEducationStaff = TeamSpecializationVEducationStaff
+ _TeamSpecializationPHealthcareStandard = TeamSpecializationVHealthcareStandard
+ _TeamSpecializationPHealthcareCareCoordination = TeamSpecializationVHealthcareCareCoordination
+ _TeamSpecializationPUnknownFutureValue = TeamSpecializationVUnknownFutureValue
+)
+
+// TeamVisibilityType undocumented
+type TeamVisibilityType string
+
+const (
+ // TeamVisibilityTypeVPrivate undocumented
+ TeamVisibilityTypeVPrivate TeamVisibilityType = "private"
+ // TeamVisibilityTypeVPublic undocumented
+ TeamVisibilityTypeVPublic TeamVisibilityType = "public"
+ // TeamVisibilityTypeVHiddenMembership undocumented
+ TeamVisibilityTypeVHiddenMembership TeamVisibilityType = "hiddenMembership"
+ // TeamVisibilityTypeVUnknownFutureValue undocumented
+ TeamVisibilityTypeVUnknownFutureValue TeamVisibilityType = "unknownFutureValue"
+)
+
+var (
+ // TeamVisibilityTypePPrivate is a pointer to TeamVisibilityTypeVPrivate
+ TeamVisibilityTypePPrivate = &_TeamVisibilityTypePPrivate
+ // TeamVisibilityTypePPublic is a pointer to TeamVisibilityTypeVPublic
+ TeamVisibilityTypePPublic = &_TeamVisibilityTypePPublic
+ // TeamVisibilityTypePHiddenMembership is a pointer to TeamVisibilityTypeVHiddenMembership
+ TeamVisibilityTypePHiddenMembership = &_TeamVisibilityTypePHiddenMembership
+ // TeamVisibilityTypePUnknownFutureValue is a pointer to TeamVisibilityTypeVUnknownFutureValue
+ TeamVisibilityTypePUnknownFutureValue = &_TeamVisibilityTypePUnknownFutureValue
+)
+
+var (
+ _TeamVisibilityTypePPrivate = TeamVisibilityTypeVPrivate
+ _TeamVisibilityTypePPublic = TeamVisibilityTypeVPublic
+ _TeamVisibilityTypePHiddenMembership = TeamVisibilityTypeVHiddenMembership
+ _TeamVisibilityTypePUnknownFutureValue = TeamVisibilityTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeams.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeams.go
new file mode 100644
index 00000000..1b2985ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTeams.go
@@ -0,0 +1,119 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TeamsAppDistributionMethod undocumented
+type TeamsAppDistributionMethod string
+
+const (
+ // TeamsAppDistributionMethodVStore undocumented
+ TeamsAppDistributionMethodVStore TeamsAppDistributionMethod = "store"
+ // TeamsAppDistributionMethodVOrganization undocumented
+ TeamsAppDistributionMethodVOrganization TeamsAppDistributionMethod = "organization"
+ // TeamsAppDistributionMethodVSideloaded undocumented
+ TeamsAppDistributionMethodVSideloaded TeamsAppDistributionMethod = "sideloaded"
+ // TeamsAppDistributionMethodVUnknownFutureValue undocumented
+ TeamsAppDistributionMethodVUnknownFutureValue TeamsAppDistributionMethod = "unknownFutureValue"
+)
+
+var (
+ // TeamsAppDistributionMethodPStore is a pointer to TeamsAppDistributionMethodVStore
+ TeamsAppDistributionMethodPStore = &_TeamsAppDistributionMethodPStore
+ // TeamsAppDistributionMethodPOrganization is a pointer to TeamsAppDistributionMethodVOrganization
+ TeamsAppDistributionMethodPOrganization = &_TeamsAppDistributionMethodPOrganization
+ // TeamsAppDistributionMethodPSideloaded is a pointer to TeamsAppDistributionMethodVSideloaded
+ TeamsAppDistributionMethodPSideloaded = &_TeamsAppDistributionMethodPSideloaded
+ // TeamsAppDistributionMethodPUnknownFutureValue is a pointer to TeamsAppDistributionMethodVUnknownFutureValue
+ TeamsAppDistributionMethodPUnknownFutureValue = &_TeamsAppDistributionMethodPUnknownFutureValue
+)
+
+var (
+ _TeamsAppDistributionMethodPStore = TeamsAppDistributionMethodVStore
+ _TeamsAppDistributionMethodPOrganization = TeamsAppDistributionMethodVOrganization
+ _TeamsAppDistributionMethodPSideloaded = TeamsAppDistributionMethodVSideloaded
+ _TeamsAppDistributionMethodPUnknownFutureValue = TeamsAppDistributionMethodVUnknownFutureValue
+)
+
+// TeamsAsyncOperationStatus undocumented
+type TeamsAsyncOperationStatus string
+
+const (
+ // TeamsAsyncOperationStatusVInvalid undocumented
+ TeamsAsyncOperationStatusVInvalid TeamsAsyncOperationStatus = "invalid"
+ // TeamsAsyncOperationStatusVNotStarted undocumented
+ TeamsAsyncOperationStatusVNotStarted TeamsAsyncOperationStatus = "notStarted"
+ // TeamsAsyncOperationStatusVInProgress undocumented
+ TeamsAsyncOperationStatusVInProgress TeamsAsyncOperationStatus = "inProgress"
+ // TeamsAsyncOperationStatusVSucceeded undocumented
+ TeamsAsyncOperationStatusVSucceeded TeamsAsyncOperationStatus = "succeeded"
+ // TeamsAsyncOperationStatusVFailed undocumented
+ TeamsAsyncOperationStatusVFailed TeamsAsyncOperationStatus = "failed"
+ // TeamsAsyncOperationStatusVUnknownFutureValue undocumented
+ TeamsAsyncOperationStatusVUnknownFutureValue TeamsAsyncOperationStatus = "unknownFutureValue"
+)
+
+var (
+ // TeamsAsyncOperationStatusPInvalid is a pointer to TeamsAsyncOperationStatusVInvalid
+ TeamsAsyncOperationStatusPInvalid = &_TeamsAsyncOperationStatusPInvalid
+ // TeamsAsyncOperationStatusPNotStarted is a pointer to TeamsAsyncOperationStatusVNotStarted
+ TeamsAsyncOperationStatusPNotStarted = &_TeamsAsyncOperationStatusPNotStarted
+ // TeamsAsyncOperationStatusPInProgress is a pointer to TeamsAsyncOperationStatusVInProgress
+ TeamsAsyncOperationStatusPInProgress = &_TeamsAsyncOperationStatusPInProgress
+ // TeamsAsyncOperationStatusPSucceeded is a pointer to TeamsAsyncOperationStatusVSucceeded
+ TeamsAsyncOperationStatusPSucceeded = &_TeamsAsyncOperationStatusPSucceeded
+ // TeamsAsyncOperationStatusPFailed is a pointer to TeamsAsyncOperationStatusVFailed
+ TeamsAsyncOperationStatusPFailed = &_TeamsAsyncOperationStatusPFailed
+ // TeamsAsyncOperationStatusPUnknownFutureValue is a pointer to TeamsAsyncOperationStatusVUnknownFutureValue
+ TeamsAsyncOperationStatusPUnknownFutureValue = &_TeamsAsyncOperationStatusPUnknownFutureValue
+)
+
+var (
+ _TeamsAsyncOperationStatusPInvalid = TeamsAsyncOperationStatusVInvalid
+ _TeamsAsyncOperationStatusPNotStarted = TeamsAsyncOperationStatusVNotStarted
+ _TeamsAsyncOperationStatusPInProgress = TeamsAsyncOperationStatusVInProgress
+ _TeamsAsyncOperationStatusPSucceeded = TeamsAsyncOperationStatusVSucceeded
+ _TeamsAsyncOperationStatusPFailed = TeamsAsyncOperationStatusVFailed
+ _TeamsAsyncOperationStatusPUnknownFutureValue = TeamsAsyncOperationStatusVUnknownFutureValue
+)
+
+// TeamsAsyncOperationType undocumented
+type TeamsAsyncOperationType string
+
+const (
+ // TeamsAsyncOperationTypeVInvalid undocumented
+ TeamsAsyncOperationTypeVInvalid TeamsAsyncOperationType = "invalid"
+ // TeamsAsyncOperationTypeVCloneTeam undocumented
+ TeamsAsyncOperationTypeVCloneTeam TeamsAsyncOperationType = "cloneTeam"
+ // TeamsAsyncOperationTypeVArchiveTeam undocumented
+ TeamsAsyncOperationTypeVArchiveTeam TeamsAsyncOperationType = "archiveTeam"
+ // TeamsAsyncOperationTypeVUnarchiveTeam undocumented
+ TeamsAsyncOperationTypeVUnarchiveTeam TeamsAsyncOperationType = "unarchiveTeam"
+ // TeamsAsyncOperationTypeVCreateTeam undocumented
+ TeamsAsyncOperationTypeVCreateTeam TeamsAsyncOperationType = "createTeam"
+ // TeamsAsyncOperationTypeVUnknownFutureValue undocumented
+ TeamsAsyncOperationTypeVUnknownFutureValue TeamsAsyncOperationType = "unknownFutureValue"
+)
+
+var (
+ // TeamsAsyncOperationTypePInvalid is a pointer to TeamsAsyncOperationTypeVInvalid
+ TeamsAsyncOperationTypePInvalid = &_TeamsAsyncOperationTypePInvalid
+ // TeamsAsyncOperationTypePCloneTeam is a pointer to TeamsAsyncOperationTypeVCloneTeam
+ TeamsAsyncOperationTypePCloneTeam = &_TeamsAsyncOperationTypePCloneTeam
+ // TeamsAsyncOperationTypePArchiveTeam is a pointer to TeamsAsyncOperationTypeVArchiveTeam
+ TeamsAsyncOperationTypePArchiveTeam = &_TeamsAsyncOperationTypePArchiveTeam
+ // TeamsAsyncOperationTypePUnarchiveTeam is a pointer to TeamsAsyncOperationTypeVUnarchiveTeam
+ TeamsAsyncOperationTypePUnarchiveTeam = &_TeamsAsyncOperationTypePUnarchiveTeam
+ // TeamsAsyncOperationTypePCreateTeam is a pointer to TeamsAsyncOperationTypeVCreateTeam
+ TeamsAsyncOperationTypePCreateTeam = &_TeamsAsyncOperationTypePCreateTeam
+ // TeamsAsyncOperationTypePUnknownFutureValue is a pointer to TeamsAsyncOperationTypeVUnknownFutureValue
+ TeamsAsyncOperationTypePUnknownFutureValue = &_TeamsAsyncOperationTypePUnknownFutureValue
+)
+
+var (
+ _TeamsAsyncOperationTypePInvalid = TeamsAsyncOperationTypeVInvalid
+ _TeamsAsyncOperationTypePCloneTeam = TeamsAsyncOperationTypeVCloneTeam
+ _TeamsAsyncOperationTypePArchiveTeam = TeamsAsyncOperationTypeVArchiveTeam
+ _TeamsAsyncOperationTypePUnarchiveTeam = TeamsAsyncOperationTypeVUnarchiveTeam
+ _TeamsAsyncOperationTypePCreateTeam = TeamsAsyncOperationTypeVCreateTeam
+ _TeamsAsyncOperationTypePUnknownFutureValue = TeamsAsyncOperationTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumThreat.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumThreat.go
new file mode 100644
index 00000000..28870e61
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumThreat.go
@@ -0,0 +1,182 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ThreatAssessmentContentType undocumented
+type ThreatAssessmentContentType string
+
+const (
+ // ThreatAssessmentContentTypeVMail undocumented
+ ThreatAssessmentContentTypeVMail ThreatAssessmentContentType = "mail"
+ // ThreatAssessmentContentTypeVURL undocumented
+ ThreatAssessmentContentTypeVURL ThreatAssessmentContentType = "url"
+ // ThreatAssessmentContentTypeVFile undocumented
+ ThreatAssessmentContentTypeVFile ThreatAssessmentContentType = "file"
+)
+
+var (
+ // ThreatAssessmentContentTypePMail is a pointer to ThreatAssessmentContentTypeVMail
+ ThreatAssessmentContentTypePMail = &_ThreatAssessmentContentTypePMail
+ // ThreatAssessmentContentTypePURL is a pointer to ThreatAssessmentContentTypeVURL
+ ThreatAssessmentContentTypePURL = &_ThreatAssessmentContentTypePURL
+ // ThreatAssessmentContentTypePFile is a pointer to ThreatAssessmentContentTypeVFile
+ ThreatAssessmentContentTypePFile = &_ThreatAssessmentContentTypePFile
+)
+
+var (
+ _ThreatAssessmentContentTypePMail = ThreatAssessmentContentTypeVMail
+ _ThreatAssessmentContentTypePURL = ThreatAssessmentContentTypeVURL
+ _ThreatAssessmentContentTypePFile = ThreatAssessmentContentTypeVFile
+)
+
+// ThreatAssessmentRequestPivotProperty undocumented
+type ThreatAssessmentRequestPivotProperty string
+
+const (
+ // ThreatAssessmentRequestPivotPropertyVThreatCategory undocumented
+ ThreatAssessmentRequestPivotPropertyVThreatCategory ThreatAssessmentRequestPivotProperty = "threatCategory"
+ // ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason undocumented
+ ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason ThreatAssessmentRequestPivotProperty = "mailDestinationRoutingReason"
+)
+
+var (
+ // ThreatAssessmentRequestPivotPropertyPThreatCategory is a pointer to ThreatAssessmentRequestPivotPropertyVThreatCategory
+ ThreatAssessmentRequestPivotPropertyPThreatCategory = &_ThreatAssessmentRequestPivotPropertyPThreatCategory
+ // ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason is a pointer to ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason
+ ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason = &_ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason
+)
+
+var (
+ _ThreatAssessmentRequestPivotPropertyPThreatCategory = ThreatAssessmentRequestPivotPropertyVThreatCategory
+ _ThreatAssessmentRequestPivotPropertyPMailDestinationRoutingReason = ThreatAssessmentRequestPivotPropertyVMailDestinationRoutingReason
+)
+
+// ThreatAssessmentRequestSource undocumented
+type ThreatAssessmentRequestSource string
+
+const (
+ // ThreatAssessmentRequestSourceVUndefined undocumented
+ ThreatAssessmentRequestSourceVUndefined ThreatAssessmentRequestSource = "undefined"
+ // ThreatAssessmentRequestSourceVUser undocumented
+ ThreatAssessmentRequestSourceVUser ThreatAssessmentRequestSource = "user"
+ // ThreatAssessmentRequestSourceVAdministrator undocumented
+ ThreatAssessmentRequestSourceVAdministrator ThreatAssessmentRequestSource = "administrator"
+)
+
+var (
+ // ThreatAssessmentRequestSourcePUndefined is a pointer to ThreatAssessmentRequestSourceVUndefined
+ ThreatAssessmentRequestSourcePUndefined = &_ThreatAssessmentRequestSourcePUndefined
+ // ThreatAssessmentRequestSourcePUser is a pointer to ThreatAssessmentRequestSourceVUser
+ ThreatAssessmentRequestSourcePUser = &_ThreatAssessmentRequestSourcePUser
+ // ThreatAssessmentRequestSourcePAdministrator is a pointer to ThreatAssessmentRequestSourceVAdministrator
+ ThreatAssessmentRequestSourcePAdministrator = &_ThreatAssessmentRequestSourcePAdministrator
+)
+
+var (
+ _ThreatAssessmentRequestSourcePUndefined = ThreatAssessmentRequestSourceVUndefined
+ _ThreatAssessmentRequestSourcePUser = ThreatAssessmentRequestSourceVUser
+ _ThreatAssessmentRequestSourcePAdministrator = ThreatAssessmentRequestSourceVAdministrator
+)
+
+// ThreatAssessmentResultType undocumented
+type ThreatAssessmentResultType string
+
+const (
+ // ThreatAssessmentResultTypeVCheckPolicy undocumented
+ ThreatAssessmentResultTypeVCheckPolicy ThreatAssessmentResultType = "checkPolicy"
+ // ThreatAssessmentResultTypeVRescan undocumented
+ ThreatAssessmentResultTypeVRescan ThreatAssessmentResultType = "rescan"
+ // ThreatAssessmentResultTypeVUnknownFutureValue undocumented
+ ThreatAssessmentResultTypeVUnknownFutureValue ThreatAssessmentResultType = "unknownFutureValue"
+)
+
+var (
+ // ThreatAssessmentResultTypePCheckPolicy is a pointer to ThreatAssessmentResultTypeVCheckPolicy
+ ThreatAssessmentResultTypePCheckPolicy = &_ThreatAssessmentResultTypePCheckPolicy
+ // ThreatAssessmentResultTypePRescan is a pointer to ThreatAssessmentResultTypeVRescan
+ ThreatAssessmentResultTypePRescan = &_ThreatAssessmentResultTypePRescan
+ // ThreatAssessmentResultTypePUnknownFutureValue is a pointer to ThreatAssessmentResultTypeVUnknownFutureValue
+ ThreatAssessmentResultTypePUnknownFutureValue = &_ThreatAssessmentResultTypePUnknownFutureValue
+)
+
+var (
+ _ThreatAssessmentResultTypePCheckPolicy = ThreatAssessmentResultTypeVCheckPolicy
+ _ThreatAssessmentResultTypePRescan = ThreatAssessmentResultTypeVRescan
+ _ThreatAssessmentResultTypePUnknownFutureValue = ThreatAssessmentResultTypeVUnknownFutureValue
+)
+
+// ThreatAssessmentStatus undocumented
+type ThreatAssessmentStatus string
+
+const (
+ // ThreatAssessmentStatusVPending undocumented
+ ThreatAssessmentStatusVPending ThreatAssessmentStatus = "pending"
+ // ThreatAssessmentStatusVCompleted undocumented
+ ThreatAssessmentStatusVCompleted ThreatAssessmentStatus = "completed"
+)
+
+var (
+ // ThreatAssessmentStatusPPending is a pointer to ThreatAssessmentStatusVPending
+ ThreatAssessmentStatusPPending = &_ThreatAssessmentStatusPPending
+ // ThreatAssessmentStatusPCompleted is a pointer to ThreatAssessmentStatusVCompleted
+ ThreatAssessmentStatusPCompleted = &_ThreatAssessmentStatusPCompleted
+)
+
+var (
+ _ThreatAssessmentStatusPPending = ThreatAssessmentStatusVPending
+ _ThreatAssessmentStatusPCompleted = ThreatAssessmentStatusVCompleted
+)
+
+// ThreatCategory undocumented
+type ThreatCategory string
+
+const (
+ // ThreatCategoryVSpam undocumented
+ ThreatCategoryVSpam ThreatCategory = "spam"
+ // ThreatCategoryVPhishing undocumented
+ ThreatCategoryVPhishing ThreatCategory = "phishing"
+ // ThreatCategoryVMalware undocumented
+ ThreatCategoryVMalware ThreatCategory = "malware"
+ // ThreatCategoryVUnknownFutureValue undocumented
+ ThreatCategoryVUnknownFutureValue ThreatCategory = "unknownFutureValue"
+)
+
+var (
+ // ThreatCategoryPSpam is a pointer to ThreatCategoryVSpam
+ ThreatCategoryPSpam = &_ThreatCategoryPSpam
+ // ThreatCategoryPPhishing is a pointer to ThreatCategoryVPhishing
+ ThreatCategoryPPhishing = &_ThreatCategoryPPhishing
+ // ThreatCategoryPMalware is a pointer to ThreatCategoryVMalware
+ ThreatCategoryPMalware = &_ThreatCategoryPMalware
+ // ThreatCategoryPUnknownFutureValue is a pointer to ThreatCategoryVUnknownFutureValue
+ ThreatCategoryPUnknownFutureValue = &_ThreatCategoryPUnknownFutureValue
+)
+
+var (
+ _ThreatCategoryPSpam = ThreatCategoryVSpam
+ _ThreatCategoryPPhishing = ThreatCategoryVPhishing
+ _ThreatCategoryPMalware = ThreatCategoryVMalware
+ _ThreatCategoryPUnknownFutureValue = ThreatCategoryVUnknownFutureValue
+)
+
+// ThreatExpectedAssessment undocumented
+type ThreatExpectedAssessment string
+
+const (
+ // ThreatExpectedAssessmentVBlock undocumented
+ ThreatExpectedAssessmentVBlock ThreatExpectedAssessment = "block"
+ // ThreatExpectedAssessmentVUnblock undocumented
+ ThreatExpectedAssessmentVUnblock ThreatExpectedAssessment = "unblock"
+)
+
+var (
+ // ThreatExpectedAssessmentPBlock is a pointer to ThreatExpectedAssessmentVBlock
+ ThreatExpectedAssessmentPBlock = &_ThreatExpectedAssessmentPBlock
+ // ThreatExpectedAssessmentPUnblock is a pointer to ThreatExpectedAssessmentVUnblock
+ ThreatExpectedAssessmentPUnblock = &_ThreatExpectedAssessmentPUnblock
+)
+
+var (
+ _ThreatExpectedAssessmentPBlock = ThreatExpectedAssessmentVBlock
+ _ThreatExpectedAssessmentPUnblock = ThreatExpectedAssessmentVUnblock
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTi.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTi.go
new file mode 100644
index 00000000..58e39a2f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTi.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TiAction undocumented
+type TiAction string
+
+const (
+ // TiActionVUnknown undocumented
+ TiActionVUnknown TiAction = "unknown"
+ // TiActionVAllow undocumented
+ TiActionVAllow TiAction = "allow"
+ // TiActionVBlock undocumented
+ TiActionVBlock TiAction = "block"
+ // TiActionVAlert undocumented
+ TiActionVAlert TiAction = "alert"
+ // TiActionVUnknownFutureValue undocumented
+ TiActionVUnknownFutureValue TiAction = "unknownFutureValue"
+)
+
+var (
+ // TiActionPUnknown is a pointer to TiActionVUnknown
+ TiActionPUnknown = &_TiActionPUnknown
+ // TiActionPAllow is a pointer to TiActionVAllow
+ TiActionPAllow = &_TiActionPAllow
+ // TiActionPBlock is a pointer to TiActionVBlock
+ TiActionPBlock = &_TiActionPBlock
+ // TiActionPAlert is a pointer to TiActionVAlert
+ TiActionPAlert = &_TiActionPAlert
+ // TiActionPUnknownFutureValue is a pointer to TiActionVUnknownFutureValue
+ TiActionPUnknownFutureValue = &_TiActionPUnknownFutureValue
+)
+
+var (
+ _TiActionPUnknown = TiActionVUnknown
+ _TiActionPAllow = TiActionVAllow
+ _TiActionPBlock = TiActionVBlock
+ _TiActionPAlert = TiActionVAlert
+ _TiActionPUnknownFutureValue = TiActionVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTime.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTime.go
new file mode 100644
index 00000000..3a7f5f5c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTime.go
@@ -0,0 +1,147 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TimeOffReasonIconType undocumented
+type TimeOffReasonIconType string
+
+const (
+ // TimeOffReasonIconTypeVNone undocumented
+ TimeOffReasonIconTypeVNone TimeOffReasonIconType = "none"
+ // TimeOffReasonIconTypeVCar undocumented
+ TimeOffReasonIconTypeVCar TimeOffReasonIconType = "car"
+ // TimeOffReasonIconTypeVCalendar undocumented
+ TimeOffReasonIconTypeVCalendar TimeOffReasonIconType = "calendar"
+ // TimeOffReasonIconTypeVRunning undocumented
+ TimeOffReasonIconTypeVRunning TimeOffReasonIconType = "running"
+ // TimeOffReasonIconTypeVPlane undocumented
+ TimeOffReasonIconTypeVPlane TimeOffReasonIconType = "plane"
+ // TimeOffReasonIconTypeVFirstAid undocumented
+ TimeOffReasonIconTypeVFirstAid TimeOffReasonIconType = "firstAid"
+ // TimeOffReasonIconTypeVDoctor undocumented
+ TimeOffReasonIconTypeVDoctor TimeOffReasonIconType = "doctor"
+ // TimeOffReasonIconTypeVNotWorking undocumented
+ TimeOffReasonIconTypeVNotWorking TimeOffReasonIconType = "notWorking"
+ // TimeOffReasonIconTypeVClock undocumented
+ TimeOffReasonIconTypeVClock TimeOffReasonIconType = "clock"
+ // TimeOffReasonIconTypeVJuryDuty undocumented
+ TimeOffReasonIconTypeVJuryDuty TimeOffReasonIconType = "juryDuty"
+ // TimeOffReasonIconTypeVGlobe undocumented
+ TimeOffReasonIconTypeVGlobe TimeOffReasonIconType = "globe"
+ // TimeOffReasonIconTypeVCup undocumented
+ TimeOffReasonIconTypeVCup TimeOffReasonIconType = "cup"
+ // TimeOffReasonIconTypeVPhone undocumented
+ TimeOffReasonIconTypeVPhone TimeOffReasonIconType = "phone"
+ // TimeOffReasonIconTypeVWeather undocumented
+ TimeOffReasonIconTypeVWeather TimeOffReasonIconType = "weather"
+ // TimeOffReasonIconTypeVUmbrella undocumented
+ TimeOffReasonIconTypeVUmbrella TimeOffReasonIconType = "umbrella"
+ // TimeOffReasonIconTypeVPiggyBank undocumented
+ TimeOffReasonIconTypeVPiggyBank TimeOffReasonIconType = "piggyBank"
+ // TimeOffReasonIconTypeVDog undocumented
+ TimeOffReasonIconTypeVDog TimeOffReasonIconType = "dog"
+ // TimeOffReasonIconTypeVCake undocumented
+ TimeOffReasonIconTypeVCake TimeOffReasonIconType = "cake"
+ // TimeOffReasonIconTypeVTrafficCone undocumented
+ TimeOffReasonIconTypeVTrafficCone TimeOffReasonIconType = "trafficCone"
+ // TimeOffReasonIconTypeVPin undocumented
+ TimeOffReasonIconTypeVPin TimeOffReasonIconType = "pin"
+ // TimeOffReasonIconTypeVSunny undocumented
+ TimeOffReasonIconTypeVSunny TimeOffReasonIconType = "sunny"
+ // TimeOffReasonIconTypeVUnknownFutureValue undocumented
+ TimeOffReasonIconTypeVUnknownFutureValue TimeOffReasonIconType = "unknownFutureValue"
+)
+
+var (
+ // TimeOffReasonIconTypePNone is a pointer to TimeOffReasonIconTypeVNone
+ TimeOffReasonIconTypePNone = &_TimeOffReasonIconTypePNone
+ // TimeOffReasonIconTypePCar is a pointer to TimeOffReasonIconTypeVCar
+ TimeOffReasonIconTypePCar = &_TimeOffReasonIconTypePCar
+ // TimeOffReasonIconTypePCalendar is a pointer to TimeOffReasonIconTypeVCalendar
+ TimeOffReasonIconTypePCalendar = &_TimeOffReasonIconTypePCalendar
+ // TimeOffReasonIconTypePRunning is a pointer to TimeOffReasonIconTypeVRunning
+ TimeOffReasonIconTypePRunning = &_TimeOffReasonIconTypePRunning
+ // TimeOffReasonIconTypePPlane is a pointer to TimeOffReasonIconTypeVPlane
+ TimeOffReasonIconTypePPlane = &_TimeOffReasonIconTypePPlane
+ // TimeOffReasonIconTypePFirstAid is a pointer to TimeOffReasonIconTypeVFirstAid
+ TimeOffReasonIconTypePFirstAid = &_TimeOffReasonIconTypePFirstAid
+ // TimeOffReasonIconTypePDoctor is a pointer to TimeOffReasonIconTypeVDoctor
+ TimeOffReasonIconTypePDoctor = &_TimeOffReasonIconTypePDoctor
+ // TimeOffReasonIconTypePNotWorking is a pointer to TimeOffReasonIconTypeVNotWorking
+ TimeOffReasonIconTypePNotWorking = &_TimeOffReasonIconTypePNotWorking
+ // TimeOffReasonIconTypePClock is a pointer to TimeOffReasonIconTypeVClock
+ TimeOffReasonIconTypePClock = &_TimeOffReasonIconTypePClock
+ // TimeOffReasonIconTypePJuryDuty is a pointer to TimeOffReasonIconTypeVJuryDuty
+ TimeOffReasonIconTypePJuryDuty = &_TimeOffReasonIconTypePJuryDuty
+ // TimeOffReasonIconTypePGlobe is a pointer to TimeOffReasonIconTypeVGlobe
+ TimeOffReasonIconTypePGlobe = &_TimeOffReasonIconTypePGlobe
+ // TimeOffReasonIconTypePCup is a pointer to TimeOffReasonIconTypeVCup
+ TimeOffReasonIconTypePCup = &_TimeOffReasonIconTypePCup
+ // TimeOffReasonIconTypePPhone is a pointer to TimeOffReasonIconTypeVPhone
+ TimeOffReasonIconTypePPhone = &_TimeOffReasonIconTypePPhone
+ // TimeOffReasonIconTypePWeather is a pointer to TimeOffReasonIconTypeVWeather
+ TimeOffReasonIconTypePWeather = &_TimeOffReasonIconTypePWeather
+ // TimeOffReasonIconTypePUmbrella is a pointer to TimeOffReasonIconTypeVUmbrella
+ TimeOffReasonIconTypePUmbrella = &_TimeOffReasonIconTypePUmbrella
+ // TimeOffReasonIconTypePPiggyBank is a pointer to TimeOffReasonIconTypeVPiggyBank
+ TimeOffReasonIconTypePPiggyBank = &_TimeOffReasonIconTypePPiggyBank
+ // TimeOffReasonIconTypePDog is a pointer to TimeOffReasonIconTypeVDog
+ TimeOffReasonIconTypePDog = &_TimeOffReasonIconTypePDog
+ // TimeOffReasonIconTypePCake is a pointer to TimeOffReasonIconTypeVCake
+ TimeOffReasonIconTypePCake = &_TimeOffReasonIconTypePCake
+ // TimeOffReasonIconTypePTrafficCone is a pointer to TimeOffReasonIconTypeVTrafficCone
+ TimeOffReasonIconTypePTrafficCone = &_TimeOffReasonIconTypePTrafficCone
+ // TimeOffReasonIconTypePPin is a pointer to TimeOffReasonIconTypeVPin
+ TimeOffReasonIconTypePPin = &_TimeOffReasonIconTypePPin
+ // TimeOffReasonIconTypePSunny is a pointer to TimeOffReasonIconTypeVSunny
+ TimeOffReasonIconTypePSunny = &_TimeOffReasonIconTypePSunny
+ // TimeOffReasonIconTypePUnknownFutureValue is a pointer to TimeOffReasonIconTypeVUnknownFutureValue
+ TimeOffReasonIconTypePUnknownFutureValue = &_TimeOffReasonIconTypePUnknownFutureValue
+)
+
+var (
+ _TimeOffReasonIconTypePNone = TimeOffReasonIconTypeVNone
+ _TimeOffReasonIconTypePCar = TimeOffReasonIconTypeVCar
+ _TimeOffReasonIconTypePCalendar = TimeOffReasonIconTypeVCalendar
+ _TimeOffReasonIconTypePRunning = TimeOffReasonIconTypeVRunning
+ _TimeOffReasonIconTypePPlane = TimeOffReasonIconTypeVPlane
+ _TimeOffReasonIconTypePFirstAid = TimeOffReasonIconTypeVFirstAid
+ _TimeOffReasonIconTypePDoctor = TimeOffReasonIconTypeVDoctor
+ _TimeOffReasonIconTypePNotWorking = TimeOffReasonIconTypeVNotWorking
+ _TimeOffReasonIconTypePClock = TimeOffReasonIconTypeVClock
+ _TimeOffReasonIconTypePJuryDuty = TimeOffReasonIconTypeVJuryDuty
+ _TimeOffReasonIconTypePGlobe = TimeOffReasonIconTypeVGlobe
+ _TimeOffReasonIconTypePCup = TimeOffReasonIconTypeVCup
+ _TimeOffReasonIconTypePPhone = TimeOffReasonIconTypeVPhone
+ _TimeOffReasonIconTypePWeather = TimeOffReasonIconTypeVWeather
+ _TimeOffReasonIconTypePUmbrella = TimeOffReasonIconTypeVUmbrella
+ _TimeOffReasonIconTypePPiggyBank = TimeOffReasonIconTypeVPiggyBank
+ _TimeOffReasonIconTypePDog = TimeOffReasonIconTypeVDog
+ _TimeOffReasonIconTypePCake = TimeOffReasonIconTypeVCake
+ _TimeOffReasonIconTypePTrafficCone = TimeOffReasonIconTypeVTrafficCone
+ _TimeOffReasonIconTypePPin = TimeOffReasonIconTypeVPin
+ _TimeOffReasonIconTypePSunny = TimeOffReasonIconTypeVSunny
+ _TimeOffReasonIconTypePUnknownFutureValue = TimeOffReasonIconTypeVUnknownFutureValue
+)
+
+// TimeZoneStandard undocumented
+type TimeZoneStandard string
+
+const (
+ // TimeZoneStandardVWindows undocumented
+ TimeZoneStandardVWindows TimeZoneStandard = "windows"
+ // TimeZoneStandardVIana undocumented
+ TimeZoneStandardVIana TimeZoneStandard = "iana"
+)
+
+var (
+ // TimeZoneStandardPWindows is a pointer to TimeZoneStandardVWindows
+ TimeZoneStandardPWindows = &_TimeZoneStandardPWindows
+ // TimeZoneStandardPIana is a pointer to TimeZoneStandardVIana
+ TimeZoneStandardPIana = &_TimeZoneStandardPIana
+)
+
+var (
+ _TimeZoneStandardPWindows = TimeZoneStandardVWindows
+ _TimeZoneStandardPIana = TimeZoneStandardVIana
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTlp.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTlp.go
new file mode 100644
index 00000000..1db29f16
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTlp.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TlpLevel undocumented
+type TlpLevel string
+
+const (
+ // TlpLevelVUnknown undocumented
+ TlpLevelVUnknown TlpLevel = "unknown"
+ // TlpLevelVWhite undocumented
+ TlpLevelVWhite TlpLevel = "white"
+ // TlpLevelVGreen undocumented
+ TlpLevelVGreen TlpLevel = "green"
+ // TlpLevelVAmber undocumented
+ TlpLevelVAmber TlpLevel = "amber"
+ // TlpLevelVRed undocumented
+ TlpLevelVRed TlpLevel = "red"
+ // TlpLevelVUnknownFutureValue undocumented
+ TlpLevelVUnknownFutureValue TlpLevel = "unknownFutureValue"
+)
+
+var (
+ // TlpLevelPUnknown is a pointer to TlpLevelVUnknown
+ TlpLevelPUnknown = &_TlpLevelPUnknown
+ // TlpLevelPWhite is a pointer to TlpLevelVWhite
+ TlpLevelPWhite = &_TlpLevelPWhite
+ // TlpLevelPGreen is a pointer to TlpLevelVGreen
+ TlpLevelPGreen = &_TlpLevelPGreen
+ // TlpLevelPAmber is a pointer to TlpLevelVAmber
+ TlpLevelPAmber = &_TlpLevelPAmber
+ // TlpLevelPRed is a pointer to TlpLevelVRed
+ TlpLevelPRed = &_TlpLevelPRed
+ // TlpLevelPUnknownFutureValue is a pointer to TlpLevelVUnknownFutureValue
+ TlpLevelPUnknownFutureValue = &_TlpLevelPUnknownFutureValue
+)
+
+var (
+ _TlpLevelPUnknown = TlpLevelVUnknown
+ _TlpLevelPWhite = TlpLevelVWhite
+ _TlpLevelPGreen = TlpLevelVGreen
+ _TlpLevelPAmber = TlpLevelVAmber
+ _TlpLevelPRed = TlpLevelVRed
+ _TlpLevelPUnknownFutureValue = TlpLevelVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumToken.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumToken.go
new file mode 100644
index 00000000..b94830fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumToken.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TokenIssuerType undocumented
+type TokenIssuerType string
+
+const (
+ // TokenIssuerTypeVAzureAD undocumented
+ TokenIssuerTypeVAzureAD TokenIssuerType = "AzureAD"
+ // TokenIssuerTypeVADFederationServices undocumented
+ TokenIssuerTypeVADFederationServices TokenIssuerType = "ADFederationServices"
+ // TokenIssuerTypeVUnknownFutureValue undocumented
+ TokenIssuerTypeVUnknownFutureValue TokenIssuerType = "UnknownFutureValue"
+)
+
+var (
+ // TokenIssuerTypePAzureAD is a pointer to TokenIssuerTypeVAzureAD
+ TokenIssuerTypePAzureAD = &_TokenIssuerTypePAzureAD
+ // TokenIssuerTypePADFederationServices is a pointer to TokenIssuerTypeVADFederationServices
+ TokenIssuerTypePADFederationServices = &_TokenIssuerTypePADFederationServices
+ // TokenIssuerTypePUnknownFutureValue is a pointer to TokenIssuerTypeVUnknownFutureValue
+ TokenIssuerTypePUnknownFutureValue = &_TokenIssuerTypePUnknownFutureValue
+)
+
+var (
+ _TokenIssuerTypePAzureAD = TokenIssuerTypeVAzureAD
+ _TokenIssuerTypePADFederationServices = TokenIssuerTypeVADFederationServices
+ _TokenIssuerTypePUnknownFutureValue = TokenIssuerTypeVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumTone.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTone.go
new file mode 100644
index 00000000..869ac69a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumTone.go
@@ -0,0 +1,100 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Tone undocumented
+type Tone string
+
+const (
+ // ToneVTone0 undocumented
+ ToneVTone0 Tone = "tone0"
+ // ToneVTone1 undocumented
+ ToneVTone1 Tone = "tone1"
+ // ToneVTone2 undocumented
+ ToneVTone2 Tone = "tone2"
+ // ToneVTone3 undocumented
+ ToneVTone3 Tone = "tone3"
+ // ToneVTone4 undocumented
+ ToneVTone4 Tone = "tone4"
+ // ToneVTone5 undocumented
+ ToneVTone5 Tone = "tone5"
+ // ToneVTone6 undocumented
+ ToneVTone6 Tone = "tone6"
+ // ToneVTone7 undocumented
+ ToneVTone7 Tone = "tone7"
+ // ToneVTone8 undocumented
+ ToneVTone8 Tone = "tone8"
+ // ToneVTone9 undocumented
+ ToneVTone9 Tone = "tone9"
+ // ToneVStar undocumented
+ ToneVStar Tone = "star"
+ // ToneVPound undocumented
+ ToneVPound Tone = "pound"
+ // ToneVA undocumented
+ ToneVA Tone = "a"
+ // ToneVB undocumented
+ ToneVB Tone = "b"
+ // ToneVC undocumented
+ ToneVC Tone = "c"
+ // ToneVD undocumented
+ ToneVD Tone = "d"
+ // ToneVFlash undocumented
+ ToneVFlash Tone = "flash"
+)
+
+var (
+ // TonePTone0 is a pointer to ToneVTone0
+ TonePTone0 = &_TonePTone0
+ // TonePTone1 is a pointer to ToneVTone1
+ TonePTone1 = &_TonePTone1
+ // TonePTone2 is a pointer to ToneVTone2
+ TonePTone2 = &_TonePTone2
+ // TonePTone3 is a pointer to ToneVTone3
+ TonePTone3 = &_TonePTone3
+ // TonePTone4 is a pointer to ToneVTone4
+ TonePTone4 = &_TonePTone4
+ // TonePTone5 is a pointer to ToneVTone5
+ TonePTone5 = &_TonePTone5
+ // TonePTone6 is a pointer to ToneVTone6
+ TonePTone6 = &_TonePTone6
+ // TonePTone7 is a pointer to ToneVTone7
+ TonePTone7 = &_TonePTone7
+ // TonePTone8 is a pointer to ToneVTone8
+ TonePTone8 = &_TonePTone8
+ // TonePTone9 is a pointer to ToneVTone9
+ TonePTone9 = &_TonePTone9
+ // TonePStar is a pointer to ToneVStar
+ TonePStar = &_TonePStar
+ // TonePPound is a pointer to ToneVPound
+ TonePPound = &_TonePPound
+ // TonePA is a pointer to ToneVA
+ TonePA = &_TonePA
+ // TonePB is a pointer to ToneVB
+ TonePB = &_TonePB
+ // TonePC is a pointer to ToneVC
+ TonePC = &_TonePC
+ // TonePD is a pointer to ToneVD
+ TonePD = &_TonePD
+ // TonePFlash is a pointer to ToneVFlash
+ TonePFlash = &_TonePFlash
+)
+
+var (
+ _TonePTone0 = ToneVTone0
+ _TonePTone1 = ToneVTone1
+ _TonePTone2 = ToneVTone2
+ _TonePTone3 = ToneVTone3
+ _TonePTone4 = ToneVTone4
+ _TonePTone5 = ToneVTone5
+ _TonePTone6 = ToneVTone6
+ _TonePTone7 = ToneVTone7
+ _TonePTone8 = ToneVTone8
+ _TonePTone9 = ToneVTone9
+ _TonePStar = ToneVStar
+ _TonePPound = ToneVPound
+ _TonePA = ToneVA
+ _TonePB = ToneVB
+ _TonePC = ToneVC
+ _TonePD = ToneVD
+ _TonePFlash = ToneVFlash
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUnary.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUnary.go
new file mode 100644
index 00000000..6eb13f7e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUnary.go
@@ -0,0 +1,20 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnaryManagementConditionExpressionOperatorType undocumented
+type UnaryManagementConditionExpressionOperatorType string
+
+const (
+ // UnaryManagementConditionExpressionOperatorTypeVNot undocumented
+ UnaryManagementConditionExpressionOperatorTypeVNot UnaryManagementConditionExpressionOperatorType = "not"
+)
+
+var (
+ // UnaryManagementConditionExpressionOperatorTypePNot is a pointer to UnaryManagementConditionExpressionOperatorTypeVNot
+ UnaryManagementConditionExpressionOperatorTypePNot = &_UnaryManagementConditionExpressionOperatorTypePNot
+)
+
+var (
+ _UnaryManagementConditionExpressionOperatorTypePNot = UnaryManagementConditionExpressionOperatorTypeVNot
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUpdate.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUpdate.go
new file mode 100644
index 00000000..398bb878
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUpdate.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UpdateClassification undocumented
+type UpdateClassification string
+
+const (
+ // UpdateClassificationVUserDefined undocumented
+ UpdateClassificationVUserDefined UpdateClassification = "userDefined"
+ // UpdateClassificationVRecommendedAndImportant undocumented
+ UpdateClassificationVRecommendedAndImportant UpdateClassification = "recommendedAndImportant"
+ // UpdateClassificationVImportant undocumented
+ UpdateClassificationVImportant UpdateClassification = "important"
+ // UpdateClassificationVNone undocumented
+ UpdateClassificationVNone UpdateClassification = "none"
+)
+
+var (
+ // UpdateClassificationPUserDefined is a pointer to UpdateClassificationVUserDefined
+ UpdateClassificationPUserDefined = &_UpdateClassificationPUserDefined
+ // UpdateClassificationPRecommendedAndImportant is a pointer to UpdateClassificationVRecommendedAndImportant
+ UpdateClassificationPRecommendedAndImportant = &_UpdateClassificationPRecommendedAndImportant
+ // UpdateClassificationPImportant is a pointer to UpdateClassificationVImportant
+ UpdateClassificationPImportant = &_UpdateClassificationPImportant
+ // UpdateClassificationPNone is a pointer to UpdateClassificationVNone
+ UpdateClassificationPNone = &_UpdateClassificationPNone
+)
+
+var (
+ _UpdateClassificationPUserDefined = UpdateClassificationVUserDefined
+ _UpdateClassificationPRecommendedAndImportant = UpdateClassificationVRecommendedAndImportant
+ _UpdateClassificationPImportant = UpdateClassificationVImportant
+ _UpdateClassificationPNone = UpdateClassificationVNone
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsage.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsage.go
new file mode 100644
index 00000000..54166ad6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsage.go
@@ -0,0 +1,70 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UsageAuthMethod undocumented
+type UsageAuthMethod string
+
+const (
+ // UsageAuthMethodVEmail undocumented
+ UsageAuthMethodVEmail UsageAuthMethod = "email"
+ // UsageAuthMethodVMobileSMS undocumented
+ UsageAuthMethodVMobileSMS UsageAuthMethod = "mobileSMS"
+ // UsageAuthMethodVMobileCall undocumented
+ UsageAuthMethodVMobileCall UsageAuthMethod = "mobileCall"
+ // UsageAuthMethodVOfficePhone undocumented
+ UsageAuthMethodVOfficePhone UsageAuthMethod = "officePhone"
+ // UsageAuthMethodVSecurityQuestion undocumented
+ UsageAuthMethodVSecurityQuestion UsageAuthMethod = "securityQuestion"
+ // UsageAuthMethodVAppNotification undocumented
+ UsageAuthMethodVAppNotification UsageAuthMethod = "appNotification"
+ // UsageAuthMethodVAppCode undocumented
+ UsageAuthMethodVAppCode UsageAuthMethod = "appCode"
+ // UsageAuthMethodVAlternateMobileCall undocumented
+ UsageAuthMethodVAlternateMobileCall UsageAuthMethod = "alternateMobileCall"
+ // UsageAuthMethodVFido undocumented
+ UsageAuthMethodVFido UsageAuthMethod = "fido"
+ // UsageAuthMethodVAppPassword undocumented
+ UsageAuthMethodVAppPassword UsageAuthMethod = "appPassword"
+ // UsageAuthMethodVUnknownFutureValue undocumented
+ UsageAuthMethodVUnknownFutureValue UsageAuthMethod = "unknownFutureValue"
+)
+
+var (
+ // UsageAuthMethodPEmail is a pointer to UsageAuthMethodVEmail
+ UsageAuthMethodPEmail = &_UsageAuthMethodPEmail
+ // UsageAuthMethodPMobileSMS is a pointer to UsageAuthMethodVMobileSMS
+ UsageAuthMethodPMobileSMS = &_UsageAuthMethodPMobileSMS
+ // UsageAuthMethodPMobileCall is a pointer to UsageAuthMethodVMobileCall
+ UsageAuthMethodPMobileCall = &_UsageAuthMethodPMobileCall
+ // UsageAuthMethodPOfficePhone is a pointer to UsageAuthMethodVOfficePhone
+ UsageAuthMethodPOfficePhone = &_UsageAuthMethodPOfficePhone
+ // UsageAuthMethodPSecurityQuestion is a pointer to UsageAuthMethodVSecurityQuestion
+ UsageAuthMethodPSecurityQuestion = &_UsageAuthMethodPSecurityQuestion
+ // UsageAuthMethodPAppNotification is a pointer to UsageAuthMethodVAppNotification
+ UsageAuthMethodPAppNotification = &_UsageAuthMethodPAppNotification
+ // UsageAuthMethodPAppCode is a pointer to UsageAuthMethodVAppCode
+ UsageAuthMethodPAppCode = &_UsageAuthMethodPAppCode
+ // UsageAuthMethodPAlternateMobileCall is a pointer to UsageAuthMethodVAlternateMobileCall
+ UsageAuthMethodPAlternateMobileCall = &_UsageAuthMethodPAlternateMobileCall
+ // UsageAuthMethodPFido is a pointer to UsageAuthMethodVFido
+ UsageAuthMethodPFido = &_UsageAuthMethodPFido
+ // UsageAuthMethodPAppPassword is a pointer to UsageAuthMethodVAppPassword
+ UsageAuthMethodPAppPassword = &_UsageAuthMethodPAppPassword
+ // UsageAuthMethodPUnknownFutureValue is a pointer to UsageAuthMethodVUnknownFutureValue
+ UsageAuthMethodPUnknownFutureValue = &_UsageAuthMethodPUnknownFutureValue
+)
+
+var (
+ _UsageAuthMethodPEmail = UsageAuthMethodVEmail
+ _UsageAuthMethodPMobileSMS = UsageAuthMethodVMobileSMS
+ _UsageAuthMethodPMobileCall = UsageAuthMethodVMobileCall
+ _UsageAuthMethodPOfficePhone = UsageAuthMethodVOfficePhone
+ _UsageAuthMethodPSecurityQuestion = UsageAuthMethodVSecurityQuestion
+ _UsageAuthMethodPAppNotification = UsageAuthMethodVAppNotification
+ _UsageAuthMethodPAppCode = UsageAuthMethodVAppCode
+ _UsageAuthMethodPAlternateMobileCall = UsageAuthMethodVAlternateMobileCall
+ _UsageAuthMethodPFido = UsageAuthMethodVFido
+ _UsageAuthMethodPAppPassword = UsageAuthMethodVAppPassword
+ _UsageAuthMethodPUnknownFutureValue = UsageAuthMethodVUnknownFutureValue
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUser.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUser.go
new file mode 100644
index 00000000..0cfb656c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUser.go
@@ -0,0 +1,363 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UserAccountSecurityType undocumented
+type UserAccountSecurityType string
+
+const (
+ // UserAccountSecurityTypeVUnknown undocumented
+ UserAccountSecurityTypeVUnknown UserAccountSecurityType = "unknown"
+ // UserAccountSecurityTypeVStandard undocumented
+ UserAccountSecurityTypeVStandard UserAccountSecurityType = "standard"
+ // UserAccountSecurityTypeVPower undocumented
+ UserAccountSecurityTypeVPower UserAccountSecurityType = "power"
+ // UserAccountSecurityTypeVAdministrator undocumented
+ UserAccountSecurityTypeVAdministrator UserAccountSecurityType = "administrator"
+ // UserAccountSecurityTypeVUnknownFutureValue undocumented
+ UserAccountSecurityTypeVUnknownFutureValue UserAccountSecurityType = "unknownFutureValue"
+)
+
+var (
+ // UserAccountSecurityTypePUnknown is a pointer to UserAccountSecurityTypeVUnknown
+ UserAccountSecurityTypePUnknown = &_UserAccountSecurityTypePUnknown
+ // UserAccountSecurityTypePStandard is a pointer to UserAccountSecurityTypeVStandard
+ UserAccountSecurityTypePStandard = &_UserAccountSecurityTypePStandard
+ // UserAccountSecurityTypePPower is a pointer to UserAccountSecurityTypeVPower
+ UserAccountSecurityTypePPower = &_UserAccountSecurityTypePPower
+ // UserAccountSecurityTypePAdministrator is a pointer to UserAccountSecurityTypeVAdministrator
+ UserAccountSecurityTypePAdministrator = &_UserAccountSecurityTypePAdministrator
+ // UserAccountSecurityTypePUnknownFutureValue is a pointer to UserAccountSecurityTypeVUnknownFutureValue
+ UserAccountSecurityTypePUnknownFutureValue = &_UserAccountSecurityTypePUnknownFutureValue
+)
+
+var (
+ _UserAccountSecurityTypePUnknown = UserAccountSecurityTypeVUnknown
+ _UserAccountSecurityTypePStandard = UserAccountSecurityTypeVStandard
+ _UserAccountSecurityTypePPower = UserAccountSecurityTypeVPower
+ _UserAccountSecurityTypePAdministrator = UserAccountSecurityTypeVAdministrator
+ _UserAccountSecurityTypePUnknownFutureValue = UserAccountSecurityTypeVUnknownFutureValue
+)
+
+// UserEmailSource undocumented
+type UserEmailSource string
+
+const (
+ // UserEmailSourceVUserPrincipalName undocumented
+ UserEmailSourceVUserPrincipalName UserEmailSource = "userPrincipalName"
+ // UserEmailSourceVPrimarySMTPAddress undocumented
+ UserEmailSourceVPrimarySMTPAddress UserEmailSource = "primarySmtpAddress"
+)
+
+var (
+ // UserEmailSourcePUserPrincipalName is a pointer to UserEmailSourceVUserPrincipalName
+ UserEmailSourcePUserPrincipalName = &_UserEmailSourcePUserPrincipalName
+ // UserEmailSourcePPrimarySMTPAddress is a pointer to UserEmailSourceVPrimarySMTPAddress
+ UserEmailSourcePPrimarySMTPAddress = &_UserEmailSourcePPrimarySMTPAddress
+)
+
+var (
+ _UserEmailSourcePUserPrincipalName = UserEmailSourceVUserPrincipalName
+ _UserEmailSourcePPrimarySMTPAddress = UserEmailSourceVPrimarySMTPAddress
+)
+
+// UserExperienceAnalyticsHealthState undocumented
+type UserExperienceAnalyticsHealthState string
+
+const (
+ // UserExperienceAnalyticsHealthStateVUnknown undocumented
+ UserExperienceAnalyticsHealthStateVUnknown UserExperienceAnalyticsHealthState = "unknown"
+ // UserExperienceAnalyticsHealthStateVInsufficientData undocumented
+ UserExperienceAnalyticsHealthStateVInsufficientData UserExperienceAnalyticsHealthState = "insufficientData"
+ // UserExperienceAnalyticsHealthStateVNeedsAttention undocumented
+ UserExperienceAnalyticsHealthStateVNeedsAttention UserExperienceAnalyticsHealthState = "needsAttention"
+ // UserExperienceAnalyticsHealthStateVMeetingGoals undocumented
+ UserExperienceAnalyticsHealthStateVMeetingGoals UserExperienceAnalyticsHealthState = "meetingGoals"
+)
+
+var (
+ // UserExperienceAnalyticsHealthStatePUnknown is a pointer to UserExperienceAnalyticsHealthStateVUnknown
+ UserExperienceAnalyticsHealthStatePUnknown = &_UserExperienceAnalyticsHealthStatePUnknown
+ // UserExperienceAnalyticsHealthStatePInsufficientData is a pointer to UserExperienceAnalyticsHealthStateVInsufficientData
+ UserExperienceAnalyticsHealthStatePInsufficientData = &_UserExperienceAnalyticsHealthStatePInsufficientData
+ // UserExperienceAnalyticsHealthStatePNeedsAttention is a pointer to UserExperienceAnalyticsHealthStateVNeedsAttention
+ UserExperienceAnalyticsHealthStatePNeedsAttention = &_UserExperienceAnalyticsHealthStatePNeedsAttention
+ // UserExperienceAnalyticsHealthStatePMeetingGoals is a pointer to UserExperienceAnalyticsHealthStateVMeetingGoals
+ UserExperienceAnalyticsHealthStatePMeetingGoals = &_UserExperienceAnalyticsHealthStatePMeetingGoals
+)
+
+var (
+ _UserExperienceAnalyticsHealthStatePUnknown = UserExperienceAnalyticsHealthStateVUnknown
+ _UserExperienceAnalyticsHealthStatePInsufficientData = UserExperienceAnalyticsHealthStateVInsufficientData
+ _UserExperienceAnalyticsHealthStatePNeedsAttention = UserExperienceAnalyticsHealthStateVNeedsAttention
+ _UserExperienceAnalyticsHealthStatePMeetingGoals = UserExperienceAnalyticsHealthStateVMeetingGoals
+)
+
+// UserExperienceAnalyticsInsightSeverity undocumented
+type UserExperienceAnalyticsInsightSeverity string
+
+const (
+ // UserExperienceAnalyticsInsightSeverityVNone undocumented
+ UserExperienceAnalyticsInsightSeverityVNone UserExperienceAnalyticsInsightSeverity = "none"
+ // UserExperienceAnalyticsInsightSeverityVInformational undocumented
+ UserExperienceAnalyticsInsightSeverityVInformational UserExperienceAnalyticsInsightSeverity = "informational"
+ // UserExperienceAnalyticsInsightSeverityVWarning undocumented
+ UserExperienceAnalyticsInsightSeverityVWarning UserExperienceAnalyticsInsightSeverity = "warning"
+ // UserExperienceAnalyticsInsightSeverityVError undocumented
+ UserExperienceAnalyticsInsightSeverityVError UserExperienceAnalyticsInsightSeverity = "error"
+)
+
+var (
+ // UserExperienceAnalyticsInsightSeverityPNone is a pointer to UserExperienceAnalyticsInsightSeverityVNone
+ UserExperienceAnalyticsInsightSeverityPNone = &_UserExperienceAnalyticsInsightSeverityPNone
+ // UserExperienceAnalyticsInsightSeverityPInformational is a pointer to UserExperienceAnalyticsInsightSeverityVInformational
+ UserExperienceAnalyticsInsightSeverityPInformational = &_UserExperienceAnalyticsInsightSeverityPInformational
+ // UserExperienceAnalyticsInsightSeverityPWarning is a pointer to UserExperienceAnalyticsInsightSeverityVWarning
+ UserExperienceAnalyticsInsightSeverityPWarning = &_UserExperienceAnalyticsInsightSeverityPWarning
+ // UserExperienceAnalyticsInsightSeverityPError is a pointer to UserExperienceAnalyticsInsightSeverityVError
+ UserExperienceAnalyticsInsightSeverityPError = &_UserExperienceAnalyticsInsightSeverityPError
+)
+
+var (
+ _UserExperienceAnalyticsInsightSeverityPNone = UserExperienceAnalyticsInsightSeverityVNone
+ _UserExperienceAnalyticsInsightSeverityPInformational = UserExperienceAnalyticsInsightSeverityVInformational
+ _UserExperienceAnalyticsInsightSeverityPWarning = UserExperienceAnalyticsInsightSeverityVWarning
+ _UserExperienceAnalyticsInsightSeverityPError = UserExperienceAnalyticsInsightSeverityVError
+)
+
+// UserExperienceAnalyticsSummarizedBy undocumented
+type UserExperienceAnalyticsSummarizedBy string
+
+const (
+ // UserExperienceAnalyticsSummarizedByVNone undocumented
+ UserExperienceAnalyticsSummarizedByVNone UserExperienceAnalyticsSummarizedBy = "none"
+ // UserExperienceAnalyticsSummarizedByVModel undocumented
+ UserExperienceAnalyticsSummarizedByVModel UserExperienceAnalyticsSummarizedBy = "model"
+ // UserExperienceAnalyticsSummarizedByVAllRegressions undocumented
+ UserExperienceAnalyticsSummarizedByVAllRegressions UserExperienceAnalyticsSummarizedBy = "allRegressions"
+ // UserExperienceAnalyticsSummarizedByVModelRegression undocumented
+ UserExperienceAnalyticsSummarizedByVModelRegression UserExperienceAnalyticsSummarizedBy = "modelRegression"
+ // UserExperienceAnalyticsSummarizedByVManufacturerRegression undocumented
+ UserExperienceAnalyticsSummarizedByVManufacturerRegression UserExperienceAnalyticsSummarizedBy = "manufacturerRegression"
+ // UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression undocumented
+ UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression UserExperienceAnalyticsSummarizedBy = "operatingSystemVersionRegression"
+)
+
+var (
+ // UserExperienceAnalyticsSummarizedByPNone is a pointer to UserExperienceAnalyticsSummarizedByVNone
+ UserExperienceAnalyticsSummarizedByPNone = &_UserExperienceAnalyticsSummarizedByPNone
+ // UserExperienceAnalyticsSummarizedByPModel is a pointer to UserExperienceAnalyticsSummarizedByVModel
+ UserExperienceAnalyticsSummarizedByPModel = &_UserExperienceAnalyticsSummarizedByPModel
+ // UserExperienceAnalyticsSummarizedByPAllRegressions is a pointer to UserExperienceAnalyticsSummarizedByVAllRegressions
+ UserExperienceAnalyticsSummarizedByPAllRegressions = &_UserExperienceAnalyticsSummarizedByPAllRegressions
+ // UserExperienceAnalyticsSummarizedByPModelRegression is a pointer to UserExperienceAnalyticsSummarizedByVModelRegression
+ UserExperienceAnalyticsSummarizedByPModelRegression = &_UserExperienceAnalyticsSummarizedByPModelRegression
+ // UserExperienceAnalyticsSummarizedByPManufacturerRegression is a pointer to UserExperienceAnalyticsSummarizedByVManufacturerRegression
+ UserExperienceAnalyticsSummarizedByPManufacturerRegression = &_UserExperienceAnalyticsSummarizedByPManufacturerRegression
+ // UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression is a pointer to UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression
+ UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression = &_UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression
+)
+
+var (
+ _UserExperienceAnalyticsSummarizedByPNone = UserExperienceAnalyticsSummarizedByVNone
+ _UserExperienceAnalyticsSummarizedByPModel = UserExperienceAnalyticsSummarizedByVModel
+ _UserExperienceAnalyticsSummarizedByPAllRegressions = UserExperienceAnalyticsSummarizedByVAllRegressions
+ _UserExperienceAnalyticsSummarizedByPModelRegression = UserExperienceAnalyticsSummarizedByVModelRegression
+ _UserExperienceAnalyticsSummarizedByPManufacturerRegression = UserExperienceAnalyticsSummarizedByVManufacturerRegression
+ _UserExperienceAnalyticsSummarizedByPOperatingSystemVersionRegression = UserExperienceAnalyticsSummarizedByVOperatingSystemVersionRegression
+)
+
+// UserFlowType undocumented
+type UserFlowType string
+
+const (
+ // UserFlowTypeVSignUp undocumented
+ UserFlowTypeVSignUp UserFlowType = "signUp"
+ // UserFlowTypeVSignIn undocumented
+ UserFlowTypeVSignIn UserFlowType = "signIn"
+ // UserFlowTypeVSignUpOrSignIn undocumented
+ UserFlowTypeVSignUpOrSignIn UserFlowType = "signUpOrSignIn"
+ // UserFlowTypeVPasswordReset undocumented
+ UserFlowTypeVPasswordReset UserFlowType = "passwordReset"
+ // UserFlowTypeVProfileUpdate undocumented
+ UserFlowTypeVProfileUpdate UserFlowType = "profileUpdate"
+ // UserFlowTypeVResourceOwner undocumented
+ UserFlowTypeVResourceOwner UserFlowType = "resourceOwner"
+ // UserFlowTypeVUnknownFutureValue undocumented
+ UserFlowTypeVUnknownFutureValue UserFlowType = "unknownFutureValue"
+)
+
+var (
+ // UserFlowTypePSignUp is a pointer to UserFlowTypeVSignUp
+ UserFlowTypePSignUp = &_UserFlowTypePSignUp
+ // UserFlowTypePSignIn is a pointer to UserFlowTypeVSignIn
+ UserFlowTypePSignIn = &_UserFlowTypePSignIn
+ // UserFlowTypePSignUpOrSignIn is a pointer to UserFlowTypeVSignUpOrSignIn
+ UserFlowTypePSignUpOrSignIn = &_UserFlowTypePSignUpOrSignIn
+ // UserFlowTypePPasswordReset is a pointer to UserFlowTypeVPasswordReset
+ UserFlowTypePPasswordReset = &_UserFlowTypePPasswordReset
+ // UserFlowTypePProfileUpdate is a pointer to UserFlowTypeVProfileUpdate
+ UserFlowTypePProfileUpdate = &_UserFlowTypePProfileUpdate
+ // UserFlowTypePResourceOwner is a pointer to UserFlowTypeVResourceOwner
+ UserFlowTypePResourceOwner = &_UserFlowTypePResourceOwner
+ // UserFlowTypePUnknownFutureValue is a pointer to UserFlowTypeVUnknownFutureValue
+ UserFlowTypePUnknownFutureValue = &_UserFlowTypePUnknownFutureValue
+)
+
+var (
+ _UserFlowTypePSignUp = UserFlowTypeVSignUp
+ _UserFlowTypePSignIn = UserFlowTypeVSignIn
+ _UserFlowTypePSignUpOrSignIn = UserFlowTypeVSignUpOrSignIn
+ _UserFlowTypePPasswordReset = UserFlowTypeVPasswordReset
+ _UserFlowTypePProfileUpdate = UserFlowTypeVProfileUpdate
+ _UserFlowTypePResourceOwner = UserFlowTypeVResourceOwner
+ _UserFlowTypePUnknownFutureValue = UserFlowTypeVUnknownFutureValue
+)
+
+// UserIdentityType undocumented
+type UserIdentityType string
+
+const (
+ // UserIdentityTypeVAadUser undocumented
+ UserIdentityTypeVAadUser UserIdentityType = "aadUser"
+ // UserIdentityTypeVOnPremiseAadUser undocumented
+ UserIdentityTypeVOnPremiseAadUser UserIdentityType = "onPremiseAadUser"
+ // UserIdentityTypeVAnonymousGuest undocumented
+ UserIdentityTypeVAnonymousGuest UserIdentityType = "anonymousGuest"
+ // UserIdentityTypeVFederatedUser undocumented
+ UserIdentityTypeVFederatedUser UserIdentityType = "federatedUser"
+)
+
+var (
+ // UserIdentityTypePAadUser is a pointer to UserIdentityTypeVAadUser
+ UserIdentityTypePAadUser = &_UserIdentityTypePAadUser
+ // UserIdentityTypePOnPremiseAadUser is a pointer to UserIdentityTypeVOnPremiseAadUser
+ UserIdentityTypePOnPremiseAadUser = &_UserIdentityTypePOnPremiseAadUser
+ // UserIdentityTypePAnonymousGuest is a pointer to UserIdentityTypeVAnonymousGuest
+ UserIdentityTypePAnonymousGuest = &_UserIdentityTypePAnonymousGuest
+ // UserIdentityTypePFederatedUser is a pointer to UserIdentityTypeVFederatedUser
+ UserIdentityTypePFederatedUser = &_UserIdentityTypePFederatedUser
+)
+
+var (
+ _UserIdentityTypePAadUser = UserIdentityTypeVAadUser
+ _UserIdentityTypePOnPremiseAadUser = UserIdentityTypeVOnPremiseAadUser
+ _UserIdentityTypePAnonymousGuest = UserIdentityTypeVAnonymousGuest
+ _UserIdentityTypePFederatedUser = UserIdentityTypeVFederatedUser
+)
+
+// UserPfxIntendedPurpose undocumented
+type UserPfxIntendedPurpose string
+
+const (
+ // UserPfxIntendedPurposeVUnassigned undocumented
+ UserPfxIntendedPurposeVUnassigned UserPfxIntendedPurpose = "unassigned"
+ // UserPfxIntendedPurposeVSmimeEncryption undocumented
+ UserPfxIntendedPurposeVSmimeEncryption UserPfxIntendedPurpose = "smimeEncryption"
+ // UserPfxIntendedPurposeVSmimeSigning undocumented
+ UserPfxIntendedPurposeVSmimeSigning UserPfxIntendedPurpose = "smimeSigning"
+ // UserPfxIntendedPurposeVVPN undocumented
+ UserPfxIntendedPurposeVVPN UserPfxIntendedPurpose = "vpn"
+ // UserPfxIntendedPurposeVWiFi undocumented
+ UserPfxIntendedPurposeVWiFi UserPfxIntendedPurpose = "wifi"
+)
+
+var (
+ // UserPfxIntendedPurposePUnassigned is a pointer to UserPfxIntendedPurposeVUnassigned
+ UserPfxIntendedPurposePUnassigned = &_UserPfxIntendedPurposePUnassigned
+ // UserPfxIntendedPurposePSmimeEncryption is a pointer to UserPfxIntendedPurposeVSmimeEncryption
+ UserPfxIntendedPurposePSmimeEncryption = &_UserPfxIntendedPurposePSmimeEncryption
+ // UserPfxIntendedPurposePSmimeSigning is a pointer to UserPfxIntendedPurposeVSmimeSigning
+ UserPfxIntendedPurposePSmimeSigning = &_UserPfxIntendedPurposePSmimeSigning
+ // UserPfxIntendedPurposePVPN is a pointer to UserPfxIntendedPurposeVVPN
+ UserPfxIntendedPurposePVPN = &_UserPfxIntendedPurposePVPN
+ // UserPfxIntendedPurposePWiFi is a pointer to UserPfxIntendedPurposeVWiFi
+ UserPfxIntendedPurposePWiFi = &_UserPfxIntendedPurposePWiFi
+)
+
+var (
+ _UserPfxIntendedPurposePUnassigned = UserPfxIntendedPurposeVUnassigned
+ _UserPfxIntendedPurposePSmimeEncryption = UserPfxIntendedPurposeVSmimeEncryption
+ _UserPfxIntendedPurposePSmimeSigning = UserPfxIntendedPurposeVSmimeSigning
+ _UserPfxIntendedPurposePVPN = UserPfxIntendedPurposeVVPN
+ _UserPfxIntendedPurposePWiFi = UserPfxIntendedPurposeVWiFi
+)
+
+// UserPfxPaddingScheme undocumented
+type UserPfxPaddingScheme string
+
+const (
+ // UserPfxPaddingSchemeVNone undocumented
+ UserPfxPaddingSchemeVNone UserPfxPaddingScheme = "none"
+ // UserPfxPaddingSchemeVPkcs1 undocumented
+ UserPfxPaddingSchemeVPkcs1 UserPfxPaddingScheme = "pkcs1"
+ // UserPfxPaddingSchemeVOaepSha1 undocumented
+ UserPfxPaddingSchemeVOaepSha1 UserPfxPaddingScheme = "oaepSha1"
+ // UserPfxPaddingSchemeVOaepSha256 undocumented
+ UserPfxPaddingSchemeVOaepSha256 UserPfxPaddingScheme = "oaepSha256"
+ // UserPfxPaddingSchemeVOaepSha384 undocumented
+ UserPfxPaddingSchemeVOaepSha384 UserPfxPaddingScheme = "oaepSha384"
+ // UserPfxPaddingSchemeVOaepSha512 undocumented
+ UserPfxPaddingSchemeVOaepSha512 UserPfxPaddingScheme = "oaepSha512"
+)
+
+var (
+ // UserPfxPaddingSchemePNone is a pointer to UserPfxPaddingSchemeVNone
+ UserPfxPaddingSchemePNone = &_UserPfxPaddingSchemePNone
+ // UserPfxPaddingSchemePPkcs1 is a pointer to UserPfxPaddingSchemeVPkcs1
+ UserPfxPaddingSchemePPkcs1 = &_UserPfxPaddingSchemePPkcs1
+ // UserPfxPaddingSchemePOaepSha1 is a pointer to UserPfxPaddingSchemeVOaepSha1
+ UserPfxPaddingSchemePOaepSha1 = &_UserPfxPaddingSchemePOaepSha1
+ // UserPfxPaddingSchemePOaepSha256 is a pointer to UserPfxPaddingSchemeVOaepSha256
+ UserPfxPaddingSchemePOaepSha256 = &_UserPfxPaddingSchemePOaepSha256
+ // UserPfxPaddingSchemePOaepSha384 is a pointer to UserPfxPaddingSchemeVOaepSha384
+ UserPfxPaddingSchemePOaepSha384 = &_UserPfxPaddingSchemePOaepSha384
+ // UserPfxPaddingSchemePOaepSha512 is a pointer to UserPfxPaddingSchemeVOaepSha512
+ UserPfxPaddingSchemePOaepSha512 = &_UserPfxPaddingSchemePOaepSha512
+)
+
+var (
+ _UserPfxPaddingSchemePNone = UserPfxPaddingSchemeVNone
+ _UserPfxPaddingSchemePPkcs1 = UserPfxPaddingSchemeVPkcs1
+ _UserPfxPaddingSchemePOaepSha1 = UserPfxPaddingSchemeVOaepSha1
+ _UserPfxPaddingSchemePOaepSha256 = UserPfxPaddingSchemeVOaepSha256
+ _UserPfxPaddingSchemePOaepSha384 = UserPfxPaddingSchemeVOaepSha384
+ _UserPfxPaddingSchemePOaepSha512 = UserPfxPaddingSchemeVOaepSha512
+)
+
+// UserRiskLevel undocumented
+type UserRiskLevel string
+
+const (
+ // UserRiskLevelVUnknown undocumented
+ UserRiskLevelVUnknown UserRiskLevel = "unknown"
+ // UserRiskLevelVNone undocumented
+ UserRiskLevelVNone UserRiskLevel = "none"
+ // UserRiskLevelVLow undocumented
+ UserRiskLevelVLow UserRiskLevel = "low"
+ // UserRiskLevelVMedium undocumented
+ UserRiskLevelVMedium UserRiskLevel = "medium"
+ // UserRiskLevelVHigh undocumented
+ UserRiskLevelVHigh UserRiskLevel = "high"
+)
+
+var (
+ // UserRiskLevelPUnknown is a pointer to UserRiskLevelVUnknown
+ UserRiskLevelPUnknown = &_UserRiskLevelPUnknown
+ // UserRiskLevelPNone is a pointer to UserRiskLevelVNone
+ UserRiskLevelPNone = &_UserRiskLevelPNone
+ // UserRiskLevelPLow is a pointer to UserRiskLevelVLow
+ UserRiskLevelPLow = &_UserRiskLevelPLow
+ // UserRiskLevelPMedium is a pointer to UserRiskLevelVMedium
+ UserRiskLevelPMedium = &_UserRiskLevelPMedium
+ // UserRiskLevelPHigh is a pointer to UserRiskLevelVHigh
+ UserRiskLevelPHigh = &_UserRiskLevelPHigh
+)
+
+var (
+ _UserRiskLevelPUnknown = UserRiskLevelVUnknown
+ _UserRiskLevelPNone = UserRiskLevelVNone
+ _UserRiskLevelPLow = UserRiskLevelVLow
+ _UserRiskLevelPMedium = UserRiskLevelVMedium
+ _UserRiskLevelPHigh = UserRiskLevelVHigh
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsername.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsername.go
new file mode 100644
index 00000000..54c59d07
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumUsername.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UsernameSource undocumented
+type UsernameSource string
+
+const (
+ // UsernameSourceVUserPrincipalName undocumented
+ UsernameSourceVUserPrincipalName UsernameSource = "userPrincipalName"
+ // UsernameSourceVPrimarySMTPAddress undocumented
+ UsernameSourceVPrimarySMTPAddress UsernameSource = "primarySmtpAddress"
+ // UsernameSourceVSamAccountName undocumented
+ UsernameSourceVSamAccountName UsernameSource = "samAccountName"
+)
+
+var (
+ // UsernameSourcePUserPrincipalName is a pointer to UsernameSourceVUserPrincipalName
+ UsernameSourcePUserPrincipalName = &_UsernameSourcePUserPrincipalName
+ // UsernameSourcePPrimarySMTPAddress is a pointer to UsernameSourceVPrimarySMTPAddress
+ UsernameSourcePPrimarySMTPAddress = &_UsernameSourcePPrimarySMTPAddress
+ // UsernameSourcePSamAccountName is a pointer to UsernameSourceVSamAccountName
+ UsernameSourcePSamAccountName = &_UsernameSourcePSamAccountName
+)
+
+var (
+ _UsernameSourcePUserPrincipalName = UsernameSourceVUserPrincipalName
+ _UsernameSourcePPrimarySMTPAddress = UsernameSourceVPrimarySMTPAddress
+ _UsernameSourcePSamAccountName = UsernameSourceVSamAccountName
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPN.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPN.go
new file mode 100644
index 00000000..4cb53f75
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPN.go
@@ -0,0 +1,362 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VPNAuthenticationMethod undocumented
+type VPNAuthenticationMethod string
+
+const (
+ // VPNAuthenticationMethodVCertificate undocumented
+ VPNAuthenticationMethodVCertificate VPNAuthenticationMethod = "certificate"
+ // VPNAuthenticationMethodVUsernameAndPassword undocumented
+ VPNAuthenticationMethodVUsernameAndPassword VPNAuthenticationMethod = "usernameAndPassword"
+ // VPNAuthenticationMethodVSharedSecret undocumented
+ VPNAuthenticationMethodVSharedSecret VPNAuthenticationMethod = "sharedSecret"
+ // VPNAuthenticationMethodVDerivedCredential undocumented
+ VPNAuthenticationMethodVDerivedCredential VPNAuthenticationMethod = "derivedCredential"
+)
+
+var (
+ // VPNAuthenticationMethodPCertificate is a pointer to VPNAuthenticationMethodVCertificate
+ VPNAuthenticationMethodPCertificate = &_VPNAuthenticationMethodPCertificate
+ // VPNAuthenticationMethodPUsernameAndPassword is a pointer to VPNAuthenticationMethodVUsernameAndPassword
+ VPNAuthenticationMethodPUsernameAndPassword = &_VPNAuthenticationMethodPUsernameAndPassword
+ // VPNAuthenticationMethodPSharedSecret is a pointer to VPNAuthenticationMethodVSharedSecret
+ VPNAuthenticationMethodPSharedSecret = &_VPNAuthenticationMethodPSharedSecret
+ // VPNAuthenticationMethodPDerivedCredential is a pointer to VPNAuthenticationMethodVDerivedCredential
+ VPNAuthenticationMethodPDerivedCredential = &_VPNAuthenticationMethodPDerivedCredential
+)
+
+var (
+ _VPNAuthenticationMethodPCertificate = VPNAuthenticationMethodVCertificate
+ _VPNAuthenticationMethodPUsernameAndPassword = VPNAuthenticationMethodVUsernameAndPassword
+ _VPNAuthenticationMethodPSharedSecret = VPNAuthenticationMethodVSharedSecret
+ _VPNAuthenticationMethodPDerivedCredential = VPNAuthenticationMethodVDerivedCredential
+)
+
+// VPNClientAuthenticationType undocumented
+type VPNClientAuthenticationType string
+
+const (
+ // VPNClientAuthenticationTypeVUserAuthentication undocumented
+ VPNClientAuthenticationTypeVUserAuthentication VPNClientAuthenticationType = "userAuthentication"
+ // VPNClientAuthenticationTypeVDeviceAuthentication undocumented
+ VPNClientAuthenticationTypeVDeviceAuthentication VPNClientAuthenticationType = "deviceAuthentication"
+)
+
+var (
+ // VPNClientAuthenticationTypePUserAuthentication is a pointer to VPNClientAuthenticationTypeVUserAuthentication
+ VPNClientAuthenticationTypePUserAuthentication = &_VPNClientAuthenticationTypePUserAuthentication
+ // VPNClientAuthenticationTypePDeviceAuthentication is a pointer to VPNClientAuthenticationTypeVDeviceAuthentication
+ VPNClientAuthenticationTypePDeviceAuthentication = &_VPNClientAuthenticationTypePDeviceAuthentication
+)
+
+var (
+ _VPNClientAuthenticationTypePUserAuthentication = VPNClientAuthenticationTypeVUserAuthentication
+ _VPNClientAuthenticationTypePDeviceAuthentication = VPNClientAuthenticationTypeVDeviceAuthentication
+)
+
+// VPNDeadPeerDetectionRate undocumented
+type VPNDeadPeerDetectionRate string
+
+const (
+ // VPNDeadPeerDetectionRateVMedium undocumented
+ VPNDeadPeerDetectionRateVMedium VPNDeadPeerDetectionRate = "medium"
+ // VPNDeadPeerDetectionRateVNone undocumented
+ VPNDeadPeerDetectionRateVNone VPNDeadPeerDetectionRate = "none"
+ // VPNDeadPeerDetectionRateVLow undocumented
+ VPNDeadPeerDetectionRateVLow VPNDeadPeerDetectionRate = "low"
+ // VPNDeadPeerDetectionRateVHigh undocumented
+ VPNDeadPeerDetectionRateVHigh VPNDeadPeerDetectionRate = "high"
+)
+
+var (
+ // VPNDeadPeerDetectionRatePMedium is a pointer to VPNDeadPeerDetectionRateVMedium
+ VPNDeadPeerDetectionRatePMedium = &_VPNDeadPeerDetectionRatePMedium
+ // VPNDeadPeerDetectionRatePNone is a pointer to VPNDeadPeerDetectionRateVNone
+ VPNDeadPeerDetectionRatePNone = &_VPNDeadPeerDetectionRatePNone
+ // VPNDeadPeerDetectionRatePLow is a pointer to VPNDeadPeerDetectionRateVLow
+ VPNDeadPeerDetectionRatePLow = &_VPNDeadPeerDetectionRatePLow
+ // VPNDeadPeerDetectionRatePHigh is a pointer to VPNDeadPeerDetectionRateVHigh
+ VPNDeadPeerDetectionRatePHigh = &_VPNDeadPeerDetectionRatePHigh
+)
+
+var (
+ _VPNDeadPeerDetectionRatePMedium = VPNDeadPeerDetectionRateVMedium
+ _VPNDeadPeerDetectionRatePNone = VPNDeadPeerDetectionRateVNone
+ _VPNDeadPeerDetectionRatePLow = VPNDeadPeerDetectionRateVLow
+ _VPNDeadPeerDetectionRatePHigh = VPNDeadPeerDetectionRateVHigh
+)
+
+// VPNEncryptionAlgorithmType undocumented
+type VPNEncryptionAlgorithmType string
+
+const (
+ // VPNEncryptionAlgorithmTypeVAes256 undocumented
+ VPNEncryptionAlgorithmTypeVAes256 VPNEncryptionAlgorithmType = "aes256"
+ // VPNEncryptionAlgorithmTypeVDes undocumented
+ VPNEncryptionAlgorithmTypeVDes VPNEncryptionAlgorithmType = "des"
+ // VPNEncryptionAlgorithmTypeVTripleDes undocumented
+ VPNEncryptionAlgorithmTypeVTripleDes VPNEncryptionAlgorithmType = "tripleDes"
+ // VPNEncryptionAlgorithmTypeVAes128 undocumented
+ VPNEncryptionAlgorithmTypeVAes128 VPNEncryptionAlgorithmType = "aes128"
+ // VPNEncryptionAlgorithmTypeVAes128Gcm undocumented
+ VPNEncryptionAlgorithmTypeVAes128Gcm VPNEncryptionAlgorithmType = "aes128Gcm"
+ // VPNEncryptionAlgorithmTypeVAes256Gcm undocumented
+ VPNEncryptionAlgorithmTypeVAes256Gcm VPNEncryptionAlgorithmType = "aes256Gcm"
+)
+
+var (
+ // VPNEncryptionAlgorithmTypePAes256 is a pointer to VPNEncryptionAlgorithmTypeVAes256
+ VPNEncryptionAlgorithmTypePAes256 = &_VPNEncryptionAlgorithmTypePAes256
+ // VPNEncryptionAlgorithmTypePDes is a pointer to VPNEncryptionAlgorithmTypeVDes
+ VPNEncryptionAlgorithmTypePDes = &_VPNEncryptionAlgorithmTypePDes
+ // VPNEncryptionAlgorithmTypePTripleDes is a pointer to VPNEncryptionAlgorithmTypeVTripleDes
+ VPNEncryptionAlgorithmTypePTripleDes = &_VPNEncryptionAlgorithmTypePTripleDes
+ // VPNEncryptionAlgorithmTypePAes128 is a pointer to VPNEncryptionAlgorithmTypeVAes128
+ VPNEncryptionAlgorithmTypePAes128 = &_VPNEncryptionAlgorithmTypePAes128
+ // VPNEncryptionAlgorithmTypePAes128Gcm is a pointer to VPNEncryptionAlgorithmTypeVAes128Gcm
+ VPNEncryptionAlgorithmTypePAes128Gcm = &_VPNEncryptionAlgorithmTypePAes128Gcm
+ // VPNEncryptionAlgorithmTypePAes256Gcm is a pointer to VPNEncryptionAlgorithmTypeVAes256Gcm
+ VPNEncryptionAlgorithmTypePAes256Gcm = &_VPNEncryptionAlgorithmTypePAes256Gcm
+)
+
+var (
+ _VPNEncryptionAlgorithmTypePAes256 = VPNEncryptionAlgorithmTypeVAes256
+ _VPNEncryptionAlgorithmTypePDes = VPNEncryptionAlgorithmTypeVDes
+ _VPNEncryptionAlgorithmTypePTripleDes = VPNEncryptionAlgorithmTypeVTripleDes
+ _VPNEncryptionAlgorithmTypePAes128 = VPNEncryptionAlgorithmTypeVAes128
+ _VPNEncryptionAlgorithmTypePAes128Gcm = VPNEncryptionAlgorithmTypeVAes128Gcm
+ _VPNEncryptionAlgorithmTypePAes256Gcm = VPNEncryptionAlgorithmTypeVAes256Gcm
+)
+
+// VPNIntegrityAlgorithmType undocumented
+type VPNIntegrityAlgorithmType string
+
+const (
+ // VPNIntegrityAlgorithmTypeVSha2_256 undocumented
+ VPNIntegrityAlgorithmTypeVSha2_256 VPNIntegrityAlgorithmType = "sha2_256"
+ // VPNIntegrityAlgorithmTypeVSha1_96 undocumented
+ VPNIntegrityAlgorithmTypeVSha1_96 VPNIntegrityAlgorithmType = "sha1_96"
+ // VPNIntegrityAlgorithmTypeVSha1_160 undocumented
+ VPNIntegrityAlgorithmTypeVSha1_160 VPNIntegrityAlgorithmType = "sha1_160"
+ // VPNIntegrityAlgorithmTypeVSha2_384 undocumented
+ VPNIntegrityAlgorithmTypeVSha2_384 VPNIntegrityAlgorithmType = "sha2_384"
+ // VPNIntegrityAlgorithmTypeVSha2_512 undocumented
+ VPNIntegrityAlgorithmTypeVSha2_512 VPNIntegrityAlgorithmType = "sha2_512"
+)
+
+var (
+ // VPNIntegrityAlgorithmTypePSha2_256 is a pointer to VPNIntegrityAlgorithmTypeVSha2_256
+ VPNIntegrityAlgorithmTypePSha2_256 = &_VPNIntegrityAlgorithmTypePSha2_256
+ // VPNIntegrityAlgorithmTypePSha1_96 is a pointer to VPNIntegrityAlgorithmTypeVSha1_96
+ VPNIntegrityAlgorithmTypePSha1_96 = &_VPNIntegrityAlgorithmTypePSha1_96
+ // VPNIntegrityAlgorithmTypePSha1_160 is a pointer to VPNIntegrityAlgorithmTypeVSha1_160
+ VPNIntegrityAlgorithmTypePSha1_160 = &_VPNIntegrityAlgorithmTypePSha1_160
+ // VPNIntegrityAlgorithmTypePSha2_384 is a pointer to VPNIntegrityAlgorithmTypeVSha2_384
+ VPNIntegrityAlgorithmTypePSha2_384 = &_VPNIntegrityAlgorithmTypePSha2_384
+ // VPNIntegrityAlgorithmTypePSha2_512 is a pointer to VPNIntegrityAlgorithmTypeVSha2_512
+ VPNIntegrityAlgorithmTypePSha2_512 = &_VPNIntegrityAlgorithmTypePSha2_512
+)
+
+var (
+ _VPNIntegrityAlgorithmTypePSha2_256 = VPNIntegrityAlgorithmTypeVSha2_256
+ _VPNIntegrityAlgorithmTypePSha1_96 = VPNIntegrityAlgorithmTypeVSha1_96
+ _VPNIntegrityAlgorithmTypePSha1_160 = VPNIntegrityAlgorithmTypeVSha1_160
+ _VPNIntegrityAlgorithmTypePSha2_384 = VPNIntegrityAlgorithmTypeVSha2_384
+ _VPNIntegrityAlgorithmTypePSha2_512 = VPNIntegrityAlgorithmTypeVSha2_512
+)
+
+// VPNLocalIdentifier undocumented
+type VPNLocalIdentifier string
+
+const (
+ // VPNLocalIdentifierVDeviceFQDN undocumented
+ VPNLocalIdentifierVDeviceFQDN VPNLocalIdentifier = "deviceFQDN"
+ // VPNLocalIdentifierVEmpty undocumented
+ VPNLocalIdentifierVEmpty VPNLocalIdentifier = "empty"
+ // VPNLocalIdentifierVClientCertificateSubjectName undocumented
+ VPNLocalIdentifierVClientCertificateSubjectName VPNLocalIdentifier = "clientCertificateSubjectName"
+)
+
+var (
+ // VPNLocalIdentifierPDeviceFQDN is a pointer to VPNLocalIdentifierVDeviceFQDN
+ VPNLocalIdentifierPDeviceFQDN = &_VPNLocalIdentifierPDeviceFQDN
+ // VPNLocalIdentifierPEmpty is a pointer to VPNLocalIdentifierVEmpty
+ VPNLocalIdentifierPEmpty = &_VPNLocalIdentifierPEmpty
+ // VPNLocalIdentifierPClientCertificateSubjectName is a pointer to VPNLocalIdentifierVClientCertificateSubjectName
+ VPNLocalIdentifierPClientCertificateSubjectName = &_VPNLocalIdentifierPClientCertificateSubjectName
+)
+
+var (
+ _VPNLocalIdentifierPDeviceFQDN = VPNLocalIdentifierVDeviceFQDN
+ _VPNLocalIdentifierPEmpty = VPNLocalIdentifierVEmpty
+ _VPNLocalIdentifierPClientCertificateSubjectName = VPNLocalIdentifierVClientCertificateSubjectName
+)
+
+// VPNOnDemandRuleConnectionAction undocumented
+type VPNOnDemandRuleConnectionAction string
+
+const (
+ // VPNOnDemandRuleConnectionActionVConnect undocumented
+ VPNOnDemandRuleConnectionActionVConnect VPNOnDemandRuleConnectionAction = "connect"
+ // VPNOnDemandRuleConnectionActionVEvaluateConnection undocumented
+ VPNOnDemandRuleConnectionActionVEvaluateConnection VPNOnDemandRuleConnectionAction = "evaluateConnection"
+ // VPNOnDemandRuleConnectionActionVIgnore undocumented
+ VPNOnDemandRuleConnectionActionVIgnore VPNOnDemandRuleConnectionAction = "ignore"
+ // VPNOnDemandRuleConnectionActionVDisconnect undocumented
+ VPNOnDemandRuleConnectionActionVDisconnect VPNOnDemandRuleConnectionAction = "disconnect"
+)
+
+var (
+ // VPNOnDemandRuleConnectionActionPConnect is a pointer to VPNOnDemandRuleConnectionActionVConnect
+ VPNOnDemandRuleConnectionActionPConnect = &_VPNOnDemandRuleConnectionActionPConnect
+ // VPNOnDemandRuleConnectionActionPEvaluateConnection is a pointer to VPNOnDemandRuleConnectionActionVEvaluateConnection
+ VPNOnDemandRuleConnectionActionPEvaluateConnection = &_VPNOnDemandRuleConnectionActionPEvaluateConnection
+ // VPNOnDemandRuleConnectionActionPIgnore is a pointer to VPNOnDemandRuleConnectionActionVIgnore
+ VPNOnDemandRuleConnectionActionPIgnore = &_VPNOnDemandRuleConnectionActionPIgnore
+ // VPNOnDemandRuleConnectionActionPDisconnect is a pointer to VPNOnDemandRuleConnectionActionVDisconnect
+ VPNOnDemandRuleConnectionActionPDisconnect = &_VPNOnDemandRuleConnectionActionPDisconnect
+)
+
+var (
+ _VPNOnDemandRuleConnectionActionPConnect = VPNOnDemandRuleConnectionActionVConnect
+ _VPNOnDemandRuleConnectionActionPEvaluateConnection = VPNOnDemandRuleConnectionActionVEvaluateConnection
+ _VPNOnDemandRuleConnectionActionPIgnore = VPNOnDemandRuleConnectionActionVIgnore
+ _VPNOnDemandRuleConnectionActionPDisconnect = VPNOnDemandRuleConnectionActionVDisconnect
+)
+
+// VPNOnDemandRuleConnectionDomainAction undocumented
+type VPNOnDemandRuleConnectionDomainAction string
+
+const (
+ // VPNOnDemandRuleConnectionDomainActionVConnectIfNeeded undocumented
+ VPNOnDemandRuleConnectionDomainActionVConnectIfNeeded VPNOnDemandRuleConnectionDomainAction = "connectIfNeeded"
+ // VPNOnDemandRuleConnectionDomainActionVNeverConnect undocumented
+ VPNOnDemandRuleConnectionDomainActionVNeverConnect VPNOnDemandRuleConnectionDomainAction = "neverConnect"
+)
+
+var (
+ // VPNOnDemandRuleConnectionDomainActionPConnectIfNeeded is a pointer to VPNOnDemandRuleConnectionDomainActionVConnectIfNeeded
+ VPNOnDemandRuleConnectionDomainActionPConnectIfNeeded = &_VPNOnDemandRuleConnectionDomainActionPConnectIfNeeded
+ // VPNOnDemandRuleConnectionDomainActionPNeverConnect is a pointer to VPNOnDemandRuleConnectionDomainActionVNeverConnect
+ VPNOnDemandRuleConnectionDomainActionPNeverConnect = &_VPNOnDemandRuleConnectionDomainActionPNeverConnect
+)
+
+var (
+ _VPNOnDemandRuleConnectionDomainActionPConnectIfNeeded = VPNOnDemandRuleConnectionDomainActionVConnectIfNeeded
+ _VPNOnDemandRuleConnectionDomainActionPNeverConnect = VPNOnDemandRuleConnectionDomainActionVNeverConnect
+)
+
+// VPNProviderType undocumented
+type VPNProviderType string
+
+const (
+ // VPNProviderTypeVNotConfigured undocumented
+ VPNProviderTypeVNotConfigured VPNProviderType = "notConfigured"
+ // VPNProviderTypeVAppProxy undocumented
+ VPNProviderTypeVAppProxy VPNProviderType = "appProxy"
+ // VPNProviderTypeVPacketTunnel undocumented
+ VPNProviderTypeVPacketTunnel VPNProviderType = "packetTunnel"
+)
+
+var (
+ // VPNProviderTypePNotConfigured is a pointer to VPNProviderTypeVNotConfigured
+ VPNProviderTypePNotConfigured = &_VPNProviderTypePNotConfigured
+ // VPNProviderTypePAppProxy is a pointer to VPNProviderTypeVAppProxy
+ VPNProviderTypePAppProxy = &_VPNProviderTypePAppProxy
+ // VPNProviderTypePPacketTunnel is a pointer to VPNProviderTypeVPacketTunnel
+ VPNProviderTypePPacketTunnel = &_VPNProviderTypePPacketTunnel
+)
+
+var (
+ _VPNProviderTypePNotConfigured = VPNProviderTypeVNotConfigured
+ _VPNProviderTypePAppProxy = VPNProviderTypeVAppProxy
+ _VPNProviderTypePPacketTunnel = VPNProviderTypeVPacketTunnel
+)
+
+// VPNServerCertificateType undocumented
+type VPNServerCertificateType string
+
+const (
+ // VPNServerCertificateTypeVRsa undocumented
+ VPNServerCertificateTypeVRsa VPNServerCertificateType = "rsa"
+ // VPNServerCertificateTypeVEcdsa256 undocumented
+ VPNServerCertificateTypeVEcdsa256 VPNServerCertificateType = "ecdsa256"
+ // VPNServerCertificateTypeVEcdsa384 undocumented
+ VPNServerCertificateTypeVEcdsa384 VPNServerCertificateType = "ecdsa384"
+ // VPNServerCertificateTypeVEcdsa521 undocumented
+ VPNServerCertificateTypeVEcdsa521 VPNServerCertificateType = "ecdsa521"
+)
+
+var (
+ // VPNServerCertificateTypePRsa is a pointer to VPNServerCertificateTypeVRsa
+ VPNServerCertificateTypePRsa = &_VPNServerCertificateTypePRsa
+ // VPNServerCertificateTypePEcdsa256 is a pointer to VPNServerCertificateTypeVEcdsa256
+ VPNServerCertificateTypePEcdsa256 = &_VPNServerCertificateTypePEcdsa256
+ // VPNServerCertificateTypePEcdsa384 is a pointer to VPNServerCertificateTypeVEcdsa384
+ VPNServerCertificateTypePEcdsa384 = &_VPNServerCertificateTypePEcdsa384
+ // VPNServerCertificateTypePEcdsa521 is a pointer to VPNServerCertificateTypeVEcdsa521
+ VPNServerCertificateTypePEcdsa521 = &_VPNServerCertificateTypePEcdsa521
+)
+
+var (
+ _VPNServerCertificateTypePRsa = VPNServerCertificateTypeVRsa
+ _VPNServerCertificateTypePEcdsa256 = VPNServerCertificateTypeVEcdsa256
+ _VPNServerCertificateTypePEcdsa384 = VPNServerCertificateTypeVEcdsa384
+ _VPNServerCertificateTypePEcdsa521 = VPNServerCertificateTypeVEcdsa521
+)
+
+// VPNTrafficRuleAppType undocumented
+type VPNTrafficRuleAppType string
+
+const (
+ // VPNTrafficRuleAppTypeVNone undocumented
+ VPNTrafficRuleAppTypeVNone VPNTrafficRuleAppType = "none"
+ // VPNTrafficRuleAppTypeVDesktop undocumented
+ VPNTrafficRuleAppTypeVDesktop VPNTrafficRuleAppType = "desktop"
+ // VPNTrafficRuleAppTypeVUniversal undocumented
+ VPNTrafficRuleAppTypeVUniversal VPNTrafficRuleAppType = "universal"
+)
+
+var (
+ // VPNTrafficRuleAppTypePNone is a pointer to VPNTrafficRuleAppTypeVNone
+ VPNTrafficRuleAppTypePNone = &_VPNTrafficRuleAppTypePNone
+ // VPNTrafficRuleAppTypePDesktop is a pointer to VPNTrafficRuleAppTypeVDesktop
+ VPNTrafficRuleAppTypePDesktop = &_VPNTrafficRuleAppTypePDesktop
+ // VPNTrafficRuleAppTypePUniversal is a pointer to VPNTrafficRuleAppTypeVUniversal
+ VPNTrafficRuleAppTypePUniversal = &_VPNTrafficRuleAppTypePUniversal
+)
+
+var (
+ _VPNTrafficRuleAppTypePNone = VPNTrafficRuleAppTypeVNone
+ _VPNTrafficRuleAppTypePDesktop = VPNTrafficRuleAppTypeVDesktop
+ _VPNTrafficRuleAppTypePUniversal = VPNTrafficRuleAppTypeVUniversal
+)
+
+// VPNTrafficRuleRoutingPolicyType undocumented
+type VPNTrafficRuleRoutingPolicyType string
+
+const (
+ // VPNTrafficRuleRoutingPolicyTypeVNone undocumented
+ VPNTrafficRuleRoutingPolicyTypeVNone VPNTrafficRuleRoutingPolicyType = "none"
+ // VPNTrafficRuleRoutingPolicyTypeVSplitTunnel undocumented
+ VPNTrafficRuleRoutingPolicyTypeVSplitTunnel VPNTrafficRuleRoutingPolicyType = "splitTunnel"
+ // VPNTrafficRuleRoutingPolicyTypeVForceTunnel undocumented
+ VPNTrafficRuleRoutingPolicyTypeVForceTunnel VPNTrafficRuleRoutingPolicyType = "forceTunnel"
+)
+
+var (
+ // VPNTrafficRuleRoutingPolicyTypePNone is a pointer to VPNTrafficRuleRoutingPolicyTypeVNone
+ VPNTrafficRuleRoutingPolicyTypePNone = &_VPNTrafficRuleRoutingPolicyTypePNone
+ // VPNTrafficRuleRoutingPolicyTypePSplitTunnel is a pointer to VPNTrafficRuleRoutingPolicyTypeVSplitTunnel
+ VPNTrafficRuleRoutingPolicyTypePSplitTunnel = &_VPNTrafficRuleRoutingPolicyTypePSplitTunnel
+ // VPNTrafficRuleRoutingPolicyTypePForceTunnel is a pointer to VPNTrafficRuleRoutingPolicyTypeVForceTunnel
+ VPNTrafficRuleRoutingPolicyTypePForceTunnel = &_VPNTrafficRuleRoutingPolicyTypePForceTunnel
+)
+
+var (
+ _VPNTrafficRuleRoutingPolicyTypePNone = VPNTrafficRuleRoutingPolicyTypeVNone
+ _VPNTrafficRuleRoutingPolicyTypePSplitTunnel = VPNTrafficRuleRoutingPolicyTypeVSplitTunnel
+ _VPNTrafficRuleRoutingPolicyTypePForceTunnel = VPNTrafficRuleRoutingPolicyTypeVForceTunnel
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPP.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPP.go
new file mode 100644
index 00000000..65843d8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVPP.go
@@ -0,0 +1,131 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VPPTokenAccountType undocumented
+type VPPTokenAccountType string
+
+const (
+ // VPPTokenAccountTypeVBusiness undocumented
+ VPPTokenAccountTypeVBusiness VPPTokenAccountType = "business"
+ // VPPTokenAccountTypeVEducation undocumented
+ VPPTokenAccountTypeVEducation VPPTokenAccountType = "education"
+)
+
+var (
+ // VPPTokenAccountTypePBusiness is a pointer to VPPTokenAccountTypeVBusiness
+ VPPTokenAccountTypePBusiness = &_VPPTokenAccountTypePBusiness
+ // VPPTokenAccountTypePEducation is a pointer to VPPTokenAccountTypeVEducation
+ VPPTokenAccountTypePEducation = &_VPPTokenAccountTypePEducation
+)
+
+var (
+ _VPPTokenAccountTypePBusiness = VPPTokenAccountTypeVBusiness
+ _VPPTokenAccountTypePEducation = VPPTokenAccountTypeVEducation
+)
+
+// VPPTokenActionFailureReason undocumented
+type VPPTokenActionFailureReason string
+
+const (
+ // VPPTokenActionFailureReasonVNone undocumented
+ VPPTokenActionFailureReasonVNone VPPTokenActionFailureReason = "none"
+ // VPPTokenActionFailureReasonVAppleFailure undocumented
+ VPPTokenActionFailureReasonVAppleFailure VPPTokenActionFailureReason = "appleFailure"
+ // VPPTokenActionFailureReasonVInternalError undocumented
+ VPPTokenActionFailureReasonVInternalError VPPTokenActionFailureReason = "internalError"
+ // VPPTokenActionFailureReasonVExpiredVPPToken undocumented
+ VPPTokenActionFailureReasonVExpiredVPPToken VPPTokenActionFailureReason = "expiredVppToken"
+ // VPPTokenActionFailureReasonVExpiredApplePushNotificationCertificate undocumented
+ VPPTokenActionFailureReasonVExpiredApplePushNotificationCertificate VPPTokenActionFailureReason = "expiredApplePushNotificationCertificate"
+)
+
+var (
+ // VPPTokenActionFailureReasonPNone is a pointer to VPPTokenActionFailureReasonVNone
+ VPPTokenActionFailureReasonPNone = &_VPPTokenActionFailureReasonPNone
+ // VPPTokenActionFailureReasonPAppleFailure is a pointer to VPPTokenActionFailureReasonVAppleFailure
+ VPPTokenActionFailureReasonPAppleFailure = &_VPPTokenActionFailureReasonPAppleFailure
+ // VPPTokenActionFailureReasonPInternalError is a pointer to VPPTokenActionFailureReasonVInternalError
+ VPPTokenActionFailureReasonPInternalError = &_VPPTokenActionFailureReasonPInternalError
+ // VPPTokenActionFailureReasonPExpiredVPPToken is a pointer to VPPTokenActionFailureReasonVExpiredVPPToken
+ VPPTokenActionFailureReasonPExpiredVPPToken = &_VPPTokenActionFailureReasonPExpiredVPPToken
+ // VPPTokenActionFailureReasonPExpiredApplePushNotificationCertificate is a pointer to VPPTokenActionFailureReasonVExpiredApplePushNotificationCertificate
+ VPPTokenActionFailureReasonPExpiredApplePushNotificationCertificate = &_VPPTokenActionFailureReasonPExpiredApplePushNotificationCertificate
+)
+
+var (
+ _VPPTokenActionFailureReasonPNone = VPPTokenActionFailureReasonVNone
+ _VPPTokenActionFailureReasonPAppleFailure = VPPTokenActionFailureReasonVAppleFailure
+ _VPPTokenActionFailureReasonPInternalError = VPPTokenActionFailureReasonVInternalError
+ _VPPTokenActionFailureReasonPExpiredVPPToken = VPPTokenActionFailureReasonVExpiredVPPToken
+ _VPPTokenActionFailureReasonPExpiredApplePushNotificationCertificate = VPPTokenActionFailureReasonVExpiredApplePushNotificationCertificate
+)
+
+// VPPTokenState undocumented
+type VPPTokenState string
+
+const (
+ // VPPTokenStateVUnknown undocumented
+ VPPTokenStateVUnknown VPPTokenState = "unknown"
+ // VPPTokenStateVValid undocumented
+ VPPTokenStateVValid VPPTokenState = "valid"
+ // VPPTokenStateVExpired undocumented
+ VPPTokenStateVExpired VPPTokenState = "expired"
+ // VPPTokenStateVInvalid undocumented
+ VPPTokenStateVInvalid VPPTokenState = "invalid"
+ // VPPTokenStateVAssignedToExternalMDM undocumented
+ VPPTokenStateVAssignedToExternalMDM VPPTokenState = "assignedToExternalMDM"
+)
+
+var (
+ // VPPTokenStatePUnknown is a pointer to VPPTokenStateVUnknown
+ VPPTokenStatePUnknown = &_VPPTokenStatePUnknown
+ // VPPTokenStatePValid is a pointer to VPPTokenStateVValid
+ VPPTokenStatePValid = &_VPPTokenStatePValid
+ // VPPTokenStatePExpired is a pointer to VPPTokenStateVExpired
+ VPPTokenStatePExpired = &_VPPTokenStatePExpired
+ // VPPTokenStatePInvalid is a pointer to VPPTokenStateVInvalid
+ VPPTokenStatePInvalid = &_VPPTokenStatePInvalid
+ // VPPTokenStatePAssignedToExternalMDM is a pointer to VPPTokenStateVAssignedToExternalMDM
+ VPPTokenStatePAssignedToExternalMDM = &_VPPTokenStatePAssignedToExternalMDM
+)
+
+var (
+ _VPPTokenStatePUnknown = VPPTokenStateVUnknown
+ _VPPTokenStatePValid = VPPTokenStateVValid
+ _VPPTokenStatePExpired = VPPTokenStateVExpired
+ _VPPTokenStatePInvalid = VPPTokenStateVInvalid
+ _VPPTokenStatePAssignedToExternalMDM = VPPTokenStateVAssignedToExternalMDM
+)
+
+// VPPTokenSyncStatus undocumented
+type VPPTokenSyncStatus string
+
+const (
+ // VPPTokenSyncStatusVNone undocumented
+ VPPTokenSyncStatusVNone VPPTokenSyncStatus = "none"
+ // VPPTokenSyncStatusVInProgress undocumented
+ VPPTokenSyncStatusVInProgress VPPTokenSyncStatus = "inProgress"
+ // VPPTokenSyncStatusVCompleted undocumented
+ VPPTokenSyncStatusVCompleted VPPTokenSyncStatus = "completed"
+ // VPPTokenSyncStatusVFailed undocumented
+ VPPTokenSyncStatusVFailed VPPTokenSyncStatus = "failed"
+)
+
+var (
+ // VPPTokenSyncStatusPNone is a pointer to VPPTokenSyncStatusVNone
+ VPPTokenSyncStatusPNone = &_VPPTokenSyncStatusPNone
+ // VPPTokenSyncStatusPInProgress is a pointer to VPPTokenSyncStatusVInProgress
+ VPPTokenSyncStatusPInProgress = &_VPPTokenSyncStatusPInProgress
+ // VPPTokenSyncStatusPCompleted is a pointer to VPPTokenSyncStatusVCompleted
+ VPPTokenSyncStatusPCompleted = &_VPPTokenSyncStatusPCompleted
+ // VPPTokenSyncStatusPFailed is a pointer to VPPTokenSyncStatusVFailed
+ VPPTokenSyncStatusPFailed = &_VPPTokenSyncStatusPFailed
+)
+
+var (
+ _VPPTokenSyncStatusPNone = VPPTokenSyncStatusVNone
+ _VPPTokenSyncStatusPInProgress = VPPTokenSyncStatusVInProgress
+ _VPPTokenSyncStatusPCompleted = VPPTokenSyncStatusVCompleted
+ _VPPTokenSyncStatusPFailed = VPPTokenSyncStatusVFailed
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumVisibility.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVisibility.go
new file mode 100644
index 00000000..b2ecd832
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumVisibility.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VisibilitySetting undocumented
+type VisibilitySetting string
+
+const (
+ // VisibilitySettingVNotConfigured undocumented
+ VisibilitySettingVNotConfigured VisibilitySetting = "notConfigured"
+ // VisibilitySettingVHide undocumented
+ VisibilitySettingVHide VisibilitySetting = "hide"
+ // VisibilitySettingVShow undocumented
+ VisibilitySettingVShow VisibilitySetting = "show"
+)
+
+var (
+ // VisibilitySettingPNotConfigured is a pointer to VisibilitySettingVNotConfigured
+ VisibilitySettingPNotConfigured = &_VisibilitySettingPNotConfigured
+ // VisibilitySettingPHide is a pointer to VisibilitySettingVHide
+ VisibilitySettingPHide = &_VisibilitySettingPHide
+ // VisibilitySettingPShow is a pointer to VisibilitySettingVShow
+ VisibilitySettingPShow = &_VisibilitySettingPShow
+)
+
+var (
+ _VisibilitySettingPNotConfigured = VisibilitySettingVNotConfigured
+ _VisibilitySettingPHide = VisibilitySettingVHide
+ _VisibilitySettingPShow = VisibilitySettingVShow
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWatermark.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWatermark.go
new file mode 100644
index 00000000..6f5b4b6d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWatermark.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WatermarkLayout undocumented
+type WatermarkLayout string
+
+const (
+ // WatermarkLayoutVHorizontal undocumented
+ WatermarkLayoutVHorizontal WatermarkLayout = "horizontal"
+ // WatermarkLayoutVDiagonal undocumented
+ WatermarkLayoutVDiagonal WatermarkLayout = "diagonal"
+)
+
+var (
+ // WatermarkLayoutPHorizontal is a pointer to WatermarkLayoutVHorizontal
+ WatermarkLayoutPHorizontal = &_WatermarkLayoutPHorizontal
+ // WatermarkLayoutPDiagonal is a pointer to WatermarkLayoutVDiagonal
+ WatermarkLayoutPDiagonal = &_WatermarkLayoutPDiagonal
+)
+
+var (
+ _WatermarkLayoutPHorizontal = WatermarkLayoutVHorizontal
+ _WatermarkLayoutPDiagonal = WatermarkLayoutVDiagonal
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeb.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeb.go
new file mode 100644
index 00000000..e91598dd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeb.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebBrowserCookieSettings undocumented
+type WebBrowserCookieSettings string
+
+const (
+ // WebBrowserCookieSettingsVBrowserDefault undocumented
+ WebBrowserCookieSettingsVBrowserDefault WebBrowserCookieSettings = "browserDefault"
+ // WebBrowserCookieSettingsVBlockAlways undocumented
+ WebBrowserCookieSettingsVBlockAlways WebBrowserCookieSettings = "blockAlways"
+ // WebBrowserCookieSettingsVAllowCurrentWebSite undocumented
+ WebBrowserCookieSettingsVAllowCurrentWebSite WebBrowserCookieSettings = "allowCurrentWebSite"
+ // WebBrowserCookieSettingsVAllowFromWebsitesVisited undocumented
+ WebBrowserCookieSettingsVAllowFromWebsitesVisited WebBrowserCookieSettings = "allowFromWebsitesVisited"
+ // WebBrowserCookieSettingsVAllowAlways undocumented
+ WebBrowserCookieSettingsVAllowAlways WebBrowserCookieSettings = "allowAlways"
+)
+
+var (
+ // WebBrowserCookieSettingsPBrowserDefault is a pointer to WebBrowserCookieSettingsVBrowserDefault
+ WebBrowserCookieSettingsPBrowserDefault = &_WebBrowserCookieSettingsPBrowserDefault
+ // WebBrowserCookieSettingsPBlockAlways is a pointer to WebBrowserCookieSettingsVBlockAlways
+ WebBrowserCookieSettingsPBlockAlways = &_WebBrowserCookieSettingsPBlockAlways
+ // WebBrowserCookieSettingsPAllowCurrentWebSite is a pointer to WebBrowserCookieSettingsVAllowCurrentWebSite
+ WebBrowserCookieSettingsPAllowCurrentWebSite = &_WebBrowserCookieSettingsPAllowCurrentWebSite
+ // WebBrowserCookieSettingsPAllowFromWebsitesVisited is a pointer to WebBrowserCookieSettingsVAllowFromWebsitesVisited
+ WebBrowserCookieSettingsPAllowFromWebsitesVisited = &_WebBrowserCookieSettingsPAllowFromWebsitesVisited
+ // WebBrowserCookieSettingsPAllowAlways is a pointer to WebBrowserCookieSettingsVAllowAlways
+ WebBrowserCookieSettingsPAllowAlways = &_WebBrowserCookieSettingsPAllowAlways
+)
+
+var (
+ _WebBrowserCookieSettingsPBrowserDefault = WebBrowserCookieSettingsVBrowserDefault
+ _WebBrowserCookieSettingsPBlockAlways = WebBrowserCookieSettingsVBlockAlways
+ _WebBrowserCookieSettingsPAllowCurrentWebSite = WebBrowserCookieSettingsVAllowCurrentWebSite
+ _WebBrowserCookieSettingsPAllowFromWebsitesVisited = WebBrowserCookieSettingsVAllowFromWebsitesVisited
+ _WebBrowserCookieSettingsPAllowAlways = WebBrowserCookieSettingsVAllowAlways
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWebsite.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWebsite.go
new file mode 100644
index 00000000..60fb4f49
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWebsite.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebsiteType undocumented
+type WebsiteType string
+
+const (
+ // WebsiteTypeVOther undocumented
+ WebsiteTypeVOther WebsiteType = "other"
+ // WebsiteTypeVHome undocumented
+ WebsiteTypeVHome WebsiteType = "home"
+ // WebsiteTypeVWork undocumented
+ WebsiteTypeVWork WebsiteType = "work"
+ // WebsiteTypeVBlog undocumented
+ WebsiteTypeVBlog WebsiteType = "blog"
+ // WebsiteTypeVProfile undocumented
+ WebsiteTypeVProfile WebsiteType = "profile"
+)
+
+var (
+ // WebsiteTypePOther is a pointer to WebsiteTypeVOther
+ WebsiteTypePOther = &_WebsiteTypePOther
+ // WebsiteTypePHome is a pointer to WebsiteTypeVHome
+ WebsiteTypePHome = &_WebsiteTypePHome
+ // WebsiteTypePWork is a pointer to WebsiteTypeVWork
+ WebsiteTypePWork = &_WebsiteTypePWork
+ // WebsiteTypePBlog is a pointer to WebsiteTypeVBlog
+ WebsiteTypePBlog = &_WebsiteTypePBlog
+ // WebsiteTypePProfile is a pointer to WebsiteTypeVProfile
+ WebsiteTypePProfile = &_WebsiteTypePProfile
+)
+
+var (
+ _WebsiteTypePOther = WebsiteTypeVOther
+ _WebsiteTypePHome = WebsiteTypeVHome
+ _WebsiteTypePWork = WebsiteTypeVWork
+ _WebsiteTypePBlog = WebsiteTypeVBlog
+ _WebsiteTypePProfile = WebsiteTypeVProfile
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeek.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeek.go
new file mode 100644
index 00000000..961c68ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeek.go
@@ -0,0 +1,40 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WeekIndex undocumented
+type WeekIndex string
+
+const (
+ // WeekIndexVFirst undocumented
+ WeekIndexVFirst WeekIndex = "first"
+ // WeekIndexVSecond undocumented
+ WeekIndexVSecond WeekIndex = "second"
+ // WeekIndexVThird undocumented
+ WeekIndexVThird WeekIndex = "third"
+ // WeekIndexVFourth undocumented
+ WeekIndexVFourth WeekIndex = "fourth"
+ // WeekIndexVLast undocumented
+ WeekIndexVLast WeekIndex = "last"
+)
+
+var (
+ // WeekIndexPFirst is a pointer to WeekIndexVFirst
+ WeekIndexPFirst = &_WeekIndexPFirst
+ // WeekIndexPSecond is a pointer to WeekIndexVSecond
+ WeekIndexPSecond = &_WeekIndexPSecond
+ // WeekIndexPThird is a pointer to WeekIndexVThird
+ WeekIndexPThird = &_WeekIndexPThird
+ // WeekIndexPFourth is a pointer to WeekIndexVFourth
+ WeekIndexPFourth = &_WeekIndexPFourth
+ // WeekIndexPLast is a pointer to WeekIndexVLast
+ WeekIndexPLast = &_WeekIndexPLast
+)
+
+var (
+ _WeekIndexPFirst = WeekIndexVFirst
+ _WeekIndexPSecond = WeekIndexVSecond
+ _WeekIndexPThird = WeekIndexVThird
+ _WeekIndexPFourth = WeekIndexVFourth
+ _WeekIndexPLast = WeekIndexVLast
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeekly.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeekly.go
new file mode 100644
index 00000000..201cccd0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWeekly.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WeeklySchedule undocumented
+type WeeklySchedule string
+
+const (
+ // WeeklyScheduleVUserDefined undocumented
+ WeeklyScheduleVUserDefined WeeklySchedule = "userDefined"
+ // WeeklyScheduleVEveryday undocumented
+ WeeklyScheduleVEveryday WeeklySchedule = "everyday"
+ // WeeklyScheduleVSunday undocumented
+ WeeklyScheduleVSunday WeeklySchedule = "sunday"
+ // WeeklyScheduleVMonday undocumented
+ WeeklyScheduleVMonday WeeklySchedule = "monday"
+ // WeeklyScheduleVTuesday undocumented
+ WeeklyScheduleVTuesday WeeklySchedule = "tuesday"
+ // WeeklyScheduleVWednesday undocumented
+ WeeklyScheduleVWednesday WeeklySchedule = "wednesday"
+ // WeeklyScheduleVThursday undocumented
+ WeeklyScheduleVThursday WeeklySchedule = "thursday"
+ // WeeklyScheduleVFriday undocumented
+ WeeklyScheduleVFriday WeeklySchedule = "friday"
+ // WeeklyScheduleVSaturday undocumented
+ WeeklyScheduleVSaturday WeeklySchedule = "saturday"
+ // WeeklyScheduleVNoScheduledScan undocumented
+ WeeklyScheduleVNoScheduledScan WeeklySchedule = "noScheduledScan"
+)
+
+var (
+ // WeeklySchedulePUserDefined is a pointer to WeeklyScheduleVUserDefined
+ WeeklySchedulePUserDefined = &_WeeklySchedulePUserDefined
+ // WeeklySchedulePEveryday is a pointer to WeeklyScheduleVEveryday
+ WeeklySchedulePEveryday = &_WeeklySchedulePEveryday
+ // WeeklySchedulePSunday is a pointer to WeeklyScheduleVSunday
+ WeeklySchedulePSunday = &_WeeklySchedulePSunday
+ // WeeklySchedulePMonday is a pointer to WeeklyScheduleVMonday
+ WeeklySchedulePMonday = &_WeeklySchedulePMonday
+ // WeeklySchedulePTuesday is a pointer to WeeklyScheduleVTuesday
+ WeeklySchedulePTuesday = &_WeeklySchedulePTuesday
+ // WeeklySchedulePWednesday is a pointer to WeeklyScheduleVWednesday
+ WeeklySchedulePWednesday = &_WeeklySchedulePWednesday
+ // WeeklySchedulePThursday is a pointer to WeeklyScheduleVThursday
+ WeeklySchedulePThursday = &_WeeklySchedulePThursday
+ // WeeklySchedulePFriday is a pointer to WeeklyScheduleVFriday
+ WeeklySchedulePFriday = &_WeeklySchedulePFriday
+ // WeeklySchedulePSaturday is a pointer to WeeklyScheduleVSaturday
+ WeeklySchedulePSaturday = &_WeeklySchedulePSaturday
+ // WeeklySchedulePNoScheduledScan is a pointer to WeeklyScheduleVNoScheduledScan
+ WeeklySchedulePNoScheduledScan = &_WeeklySchedulePNoScheduledScan
+)
+
+var (
+ _WeeklySchedulePUserDefined = WeeklyScheduleVUserDefined
+ _WeeklySchedulePEveryday = WeeklyScheduleVEveryday
+ _WeeklySchedulePSunday = WeeklyScheduleVSunday
+ _WeeklySchedulePMonday = WeeklyScheduleVMonday
+ _WeeklySchedulePTuesday = WeeklyScheduleVTuesday
+ _WeeklySchedulePWednesday = WeeklyScheduleVWednesday
+ _WeeklySchedulePThursday = WeeklyScheduleVThursday
+ _WeeklySchedulePFriday = WeeklyScheduleVFriday
+ _WeeklySchedulePSaturday = WeeklyScheduleVSaturday
+ _WeeklySchedulePNoScheduledScan = WeeklyScheduleVNoScheduledScan
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWelcome.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWelcome.go
new file mode 100644
index 00000000..e99fc7e8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWelcome.go
@@ -0,0 +1,30 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WelcomeScreenMeetingInformation undocumented
+type WelcomeScreenMeetingInformation string
+
+const (
+ // WelcomeScreenMeetingInformationVUserDefined undocumented
+ WelcomeScreenMeetingInformationVUserDefined WelcomeScreenMeetingInformation = "userDefined"
+ // WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly undocumented
+ WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly WelcomeScreenMeetingInformation = "showOrganizerAndTimeOnly"
+ // WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject undocumented
+ WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject WelcomeScreenMeetingInformation = "showOrganizerAndTimeAndSubject"
+)
+
+var (
+ // WelcomeScreenMeetingInformationPUserDefined is a pointer to WelcomeScreenMeetingInformationVUserDefined
+ WelcomeScreenMeetingInformationPUserDefined = &_WelcomeScreenMeetingInformationPUserDefined
+ // WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly is a pointer to WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly
+ WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly = &_WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly
+ // WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject is a pointer to WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject
+ WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject = &_WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject
+)
+
+var (
+ _WelcomeScreenMeetingInformationPUserDefined = WelcomeScreenMeetingInformationVUserDefined
+ _WelcomeScreenMeetingInformationPShowOrganizerAndTimeOnly = WelcomeScreenMeetingInformationVShowOrganizerAndTimeOnly
+ _WelcomeScreenMeetingInformationPShowOrganizerAndTimeAndSubject = WelcomeScreenMeetingInformationVShowOrganizerAndTimeAndSubject
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWiFi.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWiFi.go
new file mode 100644
index 00000000..d2fd9957
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWiFi.go
@@ -0,0 +1,99 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WiFiAuthenticationMethod undocumented
+type WiFiAuthenticationMethod string
+
+const (
+ // WiFiAuthenticationMethodVCertificate undocumented
+ WiFiAuthenticationMethodVCertificate WiFiAuthenticationMethod = "certificate"
+ // WiFiAuthenticationMethodVUsernameAndPassword undocumented
+ WiFiAuthenticationMethodVUsernameAndPassword WiFiAuthenticationMethod = "usernameAndPassword"
+ // WiFiAuthenticationMethodVDerivedCredential undocumented
+ WiFiAuthenticationMethodVDerivedCredential WiFiAuthenticationMethod = "derivedCredential"
+)
+
+var (
+ // WiFiAuthenticationMethodPCertificate is a pointer to WiFiAuthenticationMethodVCertificate
+ WiFiAuthenticationMethodPCertificate = &_WiFiAuthenticationMethodPCertificate
+ // WiFiAuthenticationMethodPUsernameAndPassword is a pointer to WiFiAuthenticationMethodVUsernameAndPassword
+ WiFiAuthenticationMethodPUsernameAndPassword = &_WiFiAuthenticationMethodPUsernameAndPassword
+ // WiFiAuthenticationMethodPDerivedCredential is a pointer to WiFiAuthenticationMethodVDerivedCredential
+ WiFiAuthenticationMethodPDerivedCredential = &_WiFiAuthenticationMethodPDerivedCredential
+)
+
+var (
+ _WiFiAuthenticationMethodPCertificate = WiFiAuthenticationMethodVCertificate
+ _WiFiAuthenticationMethodPUsernameAndPassword = WiFiAuthenticationMethodVUsernameAndPassword
+ _WiFiAuthenticationMethodPDerivedCredential = WiFiAuthenticationMethodVDerivedCredential
+)
+
+// WiFiProxySetting undocumented
+type WiFiProxySetting string
+
+const (
+ // WiFiProxySettingVNone undocumented
+ WiFiProxySettingVNone WiFiProxySetting = "none"
+ // WiFiProxySettingVManual undocumented
+ WiFiProxySettingVManual WiFiProxySetting = "manual"
+ // WiFiProxySettingVAutomatic undocumented
+ WiFiProxySettingVAutomatic WiFiProxySetting = "automatic"
+)
+
+var (
+ // WiFiProxySettingPNone is a pointer to WiFiProxySettingVNone
+ WiFiProxySettingPNone = &_WiFiProxySettingPNone
+ // WiFiProxySettingPManual is a pointer to WiFiProxySettingVManual
+ WiFiProxySettingPManual = &_WiFiProxySettingPManual
+ // WiFiProxySettingPAutomatic is a pointer to WiFiProxySettingVAutomatic
+ WiFiProxySettingPAutomatic = &_WiFiProxySettingPAutomatic
+)
+
+var (
+ _WiFiProxySettingPNone = WiFiProxySettingVNone
+ _WiFiProxySettingPManual = WiFiProxySettingVManual
+ _WiFiProxySettingPAutomatic = WiFiProxySettingVAutomatic
+)
+
+// WiFiSecurityType undocumented
+type WiFiSecurityType string
+
+const (
+ // WiFiSecurityTypeVOpen undocumented
+ WiFiSecurityTypeVOpen WiFiSecurityType = "open"
+ // WiFiSecurityTypeVWpaPersonal undocumented
+ WiFiSecurityTypeVWpaPersonal WiFiSecurityType = "wpaPersonal"
+ // WiFiSecurityTypeVWpaEnterprise undocumented
+ WiFiSecurityTypeVWpaEnterprise WiFiSecurityType = "wpaEnterprise"
+ // WiFiSecurityTypeVWep undocumented
+ WiFiSecurityTypeVWep WiFiSecurityType = "wep"
+ // WiFiSecurityTypeVWpa2Personal undocumented
+ WiFiSecurityTypeVWpa2Personal WiFiSecurityType = "wpa2Personal"
+ // WiFiSecurityTypeVWpa2Enterprise undocumented
+ WiFiSecurityTypeVWpa2Enterprise WiFiSecurityType = "wpa2Enterprise"
+)
+
+var (
+ // WiFiSecurityTypePOpen is a pointer to WiFiSecurityTypeVOpen
+ WiFiSecurityTypePOpen = &_WiFiSecurityTypePOpen
+ // WiFiSecurityTypePWpaPersonal is a pointer to WiFiSecurityTypeVWpaPersonal
+ WiFiSecurityTypePWpaPersonal = &_WiFiSecurityTypePWpaPersonal
+ // WiFiSecurityTypePWpaEnterprise is a pointer to WiFiSecurityTypeVWpaEnterprise
+ WiFiSecurityTypePWpaEnterprise = &_WiFiSecurityTypePWpaEnterprise
+ // WiFiSecurityTypePWep is a pointer to WiFiSecurityTypeVWep
+ WiFiSecurityTypePWep = &_WiFiSecurityTypePWep
+ // WiFiSecurityTypePWpa2Personal is a pointer to WiFiSecurityTypeVWpa2Personal
+ WiFiSecurityTypePWpa2Personal = &_WiFiSecurityTypePWpa2Personal
+ // WiFiSecurityTypePWpa2Enterprise is a pointer to WiFiSecurityTypeVWpa2Enterprise
+ WiFiSecurityTypePWpa2Enterprise = &_WiFiSecurityTypePWpa2Enterprise
+)
+
+var (
+ _WiFiSecurityTypePOpen = WiFiSecurityTypeVOpen
+ _WiFiSecurityTypePWpaPersonal = WiFiSecurityTypeVWpaPersonal
+ _WiFiSecurityTypePWpaEnterprise = WiFiSecurityTypeVWpaEnterprise
+ _WiFiSecurityTypePWep = WiFiSecurityTypeVWep
+ _WiFiSecurityTypePWpa2Personal = WiFiSecurityTypeVWpa2Personal
+ _WiFiSecurityTypePWpa2Enterprise = WiFiSecurityTypeVWpa2Enterprise
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWin32.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWin32.go
new file mode 100644
index 00000000..4ebdb5f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWin32.go
@@ -0,0 +1,309 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobAppDetectionOperator undocumented
+type Win32LobAppDetectionOperator string
+
+const (
+ // Win32LobAppDetectionOperatorVNotConfigured undocumented
+ Win32LobAppDetectionOperatorVNotConfigured Win32LobAppDetectionOperator = "notConfigured"
+ // Win32LobAppDetectionOperatorVEqual undocumented
+ Win32LobAppDetectionOperatorVEqual Win32LobAppDetectionOperator = "equal"
+ // Win32LobAppDetectionOperatorVNotEqual undocumented
+ Win32LobAppDetectionOperatorVNotEqual Win32LobAppDetectionOperator = "notEqual"
+ // Win32LobAppDetectionOperatorVGreaterThan undocumented
+ Win32LobAppDetectionOperatorVGreaterThan Win32LobAppDetectionOperator = "greaterThan"
+ // Win32LobAppDetectionOperatorVGreaterThanOrEqual undocumented
+ Win32LobAppDetectionOperatorVGreaterThanOrEqual Win32LobAppDetectionOperator = "greaterThanOrEqual"
+ // Win32LobAppDetectionOperatorVLessThan undocumented
+ Win32LobAppDetectionOperatorVLessThan Win32LobAppDetectionOperator = "lessThan"
+ // Win32LobAppDetectionOperatorVLessThanOrEqual undocumented
+ Win32LobAppDetectionOperatorVLessThanOrEqual Win32LobAppDetectionOperator = "lessThanOrEqual"
+)
+
+var (
+ // Win32LobAppDetectionOperatorPNotConfigured is a pointer to Win32LobAppDetectionOperatorVNotConfigured
+ Win32LobAppDetectionOperatorPNotConfigured = &_Win32LobAppDetectionOperatorPNotConfigured
+ // Win32LobAppDetectionOperatorPEqual is a pointer to Win32LobAppDetectionOperatorVEqual
+ Win32LobAppDetectionOperatorPEqual = &_Win32LobAppDetectionOperatorPEqual
+ // Win32LobAppDetectionOperatorPNotEqual is a pointer to Win32LobAppDetectionOperatorVNotEqual
+ Win32LobAppDetectionOperatorPNotEqual = &_Win32LobAppDetectionOperatorPNotEqual
+ // Win32LobAppDetectionOperatorPGreaterThan is a pointer to Win32LobAppDetectionOperatorVGreaterThan
+ Win32LobAppDetectionOperatorPGreaterThan = &_Win32LobAppDetectionOperatorPGreaterThan
+ // Win32LobAppDetectionOperatorPGreaterThanOrEqual is a pointer to Win32LobAppDetectionOperatorVGreaterThanOrEqual
+ Win32LobAppDetectionOperatorPGreaterThanOrEqual = &_Win32LobAppDetectionOperatorPGreaterThanOrEqual
+ // Win32LobAppDetectionOperatorPLessThan is a pointer to Win32LobAppDetectionOperatorVLessThan
+ Win32LobAppDetectionOperatorPLessThan = &_Win32LobAppDetectionOperatorPLessThan
+ // Win32LobAppDetectionOperatorPLessThanOrEqual is a pointer to Win32LobAppDetectionOperatorVLessThanOrEqual
+ Win32LobAppDetectionOperatorPLessThanOrEqual = &_Win32LobAppDetectionOperatorPLessThanOrEqual
+)
+
+var (
+ _Win32LobAppDetectionOperatorPNotConfigured = Win32LobAppDetectionOperatorVNotConfigured
+ _Win32LobAppDetectionOperatorPEqual = Win32LobAppDetectionOperatorVEqual
+ _Win32LobAppDetectionOperatorPNotEqual = Win32LobAppDetectionOperatorVNotEqual
+ _Win32LobAppDetectionOperatorPGreaterThan = Win32LobAppDetectionOperatorVGreaterThan
+ _Win32LobAppDetectionOperatorPGreaterThanOrEqual = Win32LobAppDetectionOperatorVGreaterThanOrEqual
+ _Win32LobAppDetectionOperatorPLessThan = Win32LobAppDetectionOperatorVLessThan
+ _Win32LobAppDetectionOperatorPLessThanOrEqual = Win32LobAppDetectionOperatorVLessThanOrEqual
+)
+
+// Win32LobAppFileSystemDetectionType undocumented
+type Win32LobAppFileSystemDetectionType string
+
+const (
+ // Win32LobAppFileSystemDetectionTypeVNotConfigured undocumented
+ Win32LobAppFileSystemDetectionTypeVNotConfigured Win32LobAppFileSystemDetectionType = "notConfigured"
+ // Win32LobAppFileSystemDetectionTypeVExists undocumented
+ Win32LobAppFileSystemDetectionTypeVExists Win32LobAppFileSystemDetectionType = "exists"
+ // Win32LobAppFileSystemDetectionTypeVModifiedDate undocumented
+ Win32LobAppFileSystemDetectionTypeVModifiedDate Win32LobAppFileSystemDetectionType = "modifiedDate"
+ // Win32LobAppFileSystemDetectionTypeVCreatedDate undocumented
+ Win32LobAppFileSystemDetectionTypeVCreatedDate Win32LobAppFileSystemDetectionType = "createdDate"
+ // Win32LobAppFileSystemDetectionTypeVVersion undocumented
+ Win32LobAppFileSystemDetectionTypeVVersion Win32LobAppFileSystemDetectionType = "version"
+ // Win32LobAppFileSystemDetectionTypeVSizeInMB undocumented
+ Win32LobAppFileSystemDetectionTypeVSizeInMB Win32LobAppFileSystemDetectionType = "sizeInMB"
+ // Win32LobAppFileSystemDetectionTypeVDoesNotExist undocumented
+ Win32LobAppFileSystemDetectionTypeVDoesNotExist Win32LobAppFileSystemDetectionType = "doesNotExist"
+)
+
+var (
+ // Win32LobAppFileSystemDetectionTypePNotConfigured is a pointer to Win32LobAppFileSystemDetectionTypeVNotConfigured
+ Win32LobAppFileSystemDetectionTypePNotConfigured = &_Win32LobAppFileSystemDetectionTypePNotConfigured
+ // Win32LobAppFileSystemDetectionTypePExists is a pointer to Win32LobAppFileSystemDetectionTypeVExists
+ Win32LobAppFileSystemDetectionTypePExists = &_Win32LobAppFileSystemDetectionTypePExists
+ // Win32LobAppFileSystemDetectionTypePModifiedDate is a pointer to Win32LobAppFileSystemDetectionTypeVModifiedDate
+ Win32LobAppFileSystemDetectionTypePModifiedDate = &_Win32LobAppFileSystemDetectionTypePModifiedDate
+ // Win32LobAppFileSystemDetectionTypePCreatedDate is a pointer to Win32LobAppFileSystemDetectionTypeVCreatedDate
+ Win32LobAppFileSystemDetectionTypePCreatedDate = &_Win32LobAppFileSystemDetectionTypePCreatedDate
+ // Win32LobAppFileSystemDetectionTypePVersion is a pointer to Win32LobAppFileSystemDetectionTypeVVersion
+ Win32LobAppFileSystemDetectionTypePVersion = &_Win32LobAppFileSystemDetectionTypePVersion
+ // Win32LobAppFileSystemDetectionTypePSizeInMB is a pointer to Win32LobAppFileSystemDetectionTypeVSizeInMB
+ Win32LobAppFileSystemDetectionTypePSizeInMB = &_Win32LobAppFileSystemDetectionTypePSizeInMB
+ // Win32LobAppFileSystemDetectionTypePDoesNotExist is a pointer to Win32LobAppFileSystemDetectionTypeVDoesNotExist
+ Win32LobAppFileSystemDetectionTypePDoesNotExist = &_Win32LobAppFileSystemDetectionTypePDoesNotExist
+)
+
+var (
+ _Win32LobAppFileSystemDetectionTypePNotConfigured = Win32LobAppFileSystemDetectionTypeVNotConfigured
+ _Win32LobAppFileSystemDetectionTypePExists = Win32LobAppFileSystemDetectionTypeVExists
+ _Win32LobAppFileSystemDetectionTypePModifiedDate = Win32LobAppFileSystemDetectionTypeVModifiedDate
+ _Win32LobAppFileSystemDetectionTypePCreatedDate = Win32LobAppFileSystemDetectionTypeVCreatedDate
+ _Win32LobAppFileSystemDetectionTypePVersion = Win32LobAppFileSystemDetectionTypeVVersion
+ _Win32LobAppFileSystemDetectionTypePSizeInMB = Win32LobAppFileSystemDetectionTypeVSizeInMB
+ _Win32LobAppFileSystemDetectionTypePDoesNotExist = Win32LobAppFileSystemDetectionTypeVDoesNotExist
+)
+
+// Win32LobAppMsiPackageType undocumented
+type Win32LobAppMsiPackageType string
+
+const (
+ // Win32LobAppMsiPackageTypeVPerMachine undocumented
+ Win32LobAppMsiPackageTypeVPerMachine Win32LobAppMsiPackageType = "perMachine"
+ // Win32LobAppMsiPackageTypeVPerUser undocumented
+ Win32LobAppMsiPackageTypeVPerUser Win32LobAppMsiPackageType = "perUser"
+ // Win32LobAppMsiPackageTypeVDualPurpose undocumented
+ Win32LobAppMsiPackageTypeVDualPurpose Win32LobAppMsiPackageType = "dualPurpose"
+)
+
+var (
+ // Win32LobAppMsiPackageTypePPerMachine is a pointer to Win32LobAppMsiPackageTypeVPerMachine
+ Win32LobAppMsiPackageTypePPerMachine = &_Win32LobAppMsiPackageTypePPerMachine
+ // Win32LobAppMsiPackageTypePPerUser is a pointer to Win32LobAppMsiPackageTypeVPerUser
+ Win32LobAppMsiPackageTypePPerUser = &_Win32LobAppMsiPackageTypePPerUser
+ // Win32LobAppMsiPackageTypePDualPurpose is a pointer to Win32LobAppMsiPackageTypeVDualPurpose
+ Win32LobAppMsiPackageTypePDualPurpose = &_Win32LobAppMsiPackageTypePDualPurpose
+)
+
+var (
+ _Win32LobAppMsiPackageTypePPerMachine = Win32LobAppMsiPackageTypeVPerMachine
+ _Win32LobAppMsiPackageTypePPerUser = Win32LobAppMsiPackageTypeVPerUser
+ _Win32LobAppMsiPackageTypePDualPurpose = Win32LobAppMsiPackageTypeVDualPurpose
+)
+
+// Win32LobAppNotification undocumented
+type Win32LobAppNotification string
+
+const (
+ // Win32LobAppNotificationVShowAll undocumented
+ Win32LobAppNotificationVShowAll Win32LobAppNotification = "showAll"
+ // Win32LobAppNotificationVShowReboot undocumented
+ Win32LobAppNotificationVShowReboot Win32LobAppNotification = "showReboot"
+ // Win32LobAppNotificationVHideAll undocumented
+ Win32LobAppNotificationVHideAll Win32LobAppNotification = "hideAll"
+)
+
+var (
+ // Win32LobAppNotificationPShowAll is a pointer to Win32LobAppNotificationVShowAll
+ Win32LobAppNotificationPShowAll = &_Win32LobAppNotificationPShowAll
+ // Win32LobAppNotificationPShowReboot is a pointer to Win32LobAppNotificationVShowReboot
+ Win32LobAppNotificationPShowReboot = &_Win32LobAppNotificationPShowReboot
+ // Win32LobAppNotificationPHideAll is a pointer to Win32LobAppNotificationVHideAll
+ Win32LobAppNotificationPHideAll = &_Win32LobAppNotificationPHideAll
+)
+
+var (
+ _Win32LobAppNotificationPShowAll = Win32LobAppNotificationVShowAll
+ _Win32LobAppNotificationPShowReboot = Win32LobAppNotificationVShowReboot
+ _Win32LobAppNotificationPHideAll = Win32LobAppNotificationVHideAll
+)
+
+// Win32LobAppPowerShellScriptDetectionType undocumented
+type Win32LobAppPowerShellScriptDetectionType string
+
+const (
+ // Win32LobAppPowerShellScriptDetectionTypeVNotConfigured undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVNotConfigured Win32LobAppPowerShellScriptDetectionType = "notConfigured"
+ // Win32LobAppPowerShellScriptDetectionTypeVString undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVString Win32LobAppPowerShellScriptDetectionType = "string"
+ // Win32LobAppPowerShellScriptDetectionTypeVDateTime undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVDateTime Win32LobAppPowerShellScriptDetectionType = "dateTime"
+ // Win32LobAppPowerShellScriptDetectionTypeVInteger undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVInteger Win32LobAppPowerShellScriptDetectionType = "integer"
+ // Win32LobAppPowerShellScriptDetectionTypeVFloat undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVFloat Win32LobAppPowerShellScriptDetectionType = "float"
+ // Win32LobAppPowerShellScriptDetectionTypeVVersion undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVVersion Win32LobAppPowerShellScriptDetectionType = "version"
+ // Win32LobAppPowerShellScriptDetectionTypeVBoolean undocumented
+ Win32LobAppPowerShellScriptDetectionTypeVBoolean Win32LobAppPowerShellScriptDetectionType = "boolean"
+)
+
+var (
+ // Win32LobAppPowerShellScriptDetectionTypePNotConfigured is a pointer to Win32LobAppPowerShellScriptDetectionTypeVNotConfigured
+ Win32LobAppPowerShellScriptDetectionTypePNotConfigured = &_Win32LobAppPowerShellScriptDetectionTypePNotConfigured
+ // Win32LobAppPowerShellScriptDetectionTypePString is a pointer to Win32LobAppPowerShellScriptDetectionTypeVString
+ Win32LobAppPowerShellScriptDetectionTypePString = &_Win32LobAppPowerShellScriptDetectionTypePString
+ // Win32LobAppPowerShellScriptDetectionTypePDateTime is a pointer to Win32LobAppPowerShellScriptDetectionTypeVDateTime
+ Win32LobAppPowerShellScriptDetectionTypePDateTime = &_Win32LobAppPowerShellScriptDetectionTypePDateTime
+ // Win32LobAppPowerShellScriptDetectionTypePInteger is a pointer to Win32LobAppPowerShellScriptDetectionTypeVInteger
+ Win32LobAppPowerShellScriptDetectionTypePInteger = &_Win32LobAppPowerShellScriptDetectionTypePInteger
+ // Win32LobAppPowerShellScriptDetectionTypePFloat is a pointer to Win32LobAppPowerShellScriptDetectionTypeVFloat
+ Win32LobAppPowerShellScriptDetectionTypePFloat = &_Win32LobAppPowerShellScriptDetectionTypePFloat
+ // Win32LobAppPowerShellScriptDetectionTypePVersion is a pointer to Win32LobAppPowerShellScriptDetectionTypeVVersion
+ Win32LobAppPowerShellScriptDetectionTypePVersion = &_Win32LobAppPowerShellScriptDetectionTypePVersion
+ // Win32LobAppPowerShellScriptDetectionTypePBoolean is a pointer to Win32LobAppPowerShellScriptDetectionTypeVBoolean
+ Win32LobAppPowerShellScriptDetectionTypePBoolean = &_Win32LobAppPowerShellScriptDetectionTypePBoolean
+)
+
+var (
+ _Win32LobAppPowerShellScriptDetectionTypePNotConfigured = Win32LobAppPowerShellScriptDetectionTypeVNotConfigured
+ _Win32LobAppPowerShellScriptDetectionTypePString = Win32LobAppPowerShellScriptDetectionTypeVString
+ _Win32LobAppPowerShellScriptDetectionTypePDateTime = Win32LobAppPowerShellScriptDetectionTypeVDateTime
+ _Win32LobAppPowerShellScriptDetectionTypePInteger = Win32LobAppPowerShellScriptDetectionTypeVInteger
+ _Win32LobAppPowerShellScriptDetectionTypePFloat = Win32LobAppPowerShellScriptDetectionTypeVFloat
+ _Win32LobAppPowerShellScriptDetectionTypePVersion = Win32LobAppPowerShellScriptDetectionTypeVVersion
+ _Win32LobAppPowerShellScriptDetectionTypePBoolean = Win32LobAppPowerShellScriptDetectionTypeVBoolean
+)
+
+// Win32LobAppRegistryDetectionType undocumented
+type Win32LobAppRegistryDetectionType string
+
+const (
+ // Win32LobAppRegistryDetectionTypeVNotConfigured undocumented
+ Win32LobAppRegistryDetectionTypeVNotConfigured Win32LobAppRegistryDetectionType = "notConfigured"
+ // Win32LobAppRegistryDetectionTypeVExists undocumented
+ Win32LobAppRegistryDetectionTypeVExists Win32LobAppRegistryDetectionType = "exists"
+ // Win32LobAppRegistryDetectionTypeVDoesNotExist undocumented
+ Win32LobAppRegistryDetectionTypeVDoesNotExist Win32LobAppRegistryDetectionType = "doesNotExist"
+ // Win32LobAppRegistryDetectionTypeVString undocumented
+ Win32LobAppRegistryDetectionTypeVString Win32LobAppRegistryDetectionType = "string"
+ // Win32LobAppRegistryDetectionTypeVInteger undocumented
+ Win32LobAppRegistryDetectionTypeVInteger Win32LobAppRegistryDetectionType = "integer"
+ // Win32LobAppRegistryDetectionTypeVVersion undocumented
+ Win32LobAppRegistryDetectionTypeVVersion Win32LobAppRegistryDetectionType = "version"
+)
+
+var (
+ // Win32LobAppRegistryDetectionTypePNotConfigured is a pointer to Win32LobAppRegistryDetectionTypeVNotConfigured
+ Win32LobAppRegistryDetectionTypePNotConfigured = &_Win32LobAppRegistryDetectionTypePNotConfigured
+ // Win32LobAppRegistryDetectionTypePExists is a pointer to Win32LobAppRegistryDetectionTypeVExists
+ Win32LobAppRegistryDetectionTypePExists = &_Win32LobAppRegistryDetectionTypePExists
+ // Win32LobAppRegistryDetectionTypePDoesNotExist is a pointer to Win32LobAppRegistryDetectionTypeVDoesNotExist
+ Win32LobAppRegistryDetectionTypePDoesNotExist = &_Win32LobAppRegistryDetectionTypePDoesNotExist
+ // Win32LobAppRegistryDetectionTypePString is a pointer to Win32LobAppRegistryDetectionTypeVString
+ Win32LobAppRegistryDetectionTypePString = &_Win32LobAppRegistryDetectionTypePString
+ // Win32LobAppRegistryDetectionTypePInteger is a pointer to Win32LobAppRegistryDetectionTypeVInteger
+ Win32LobAppRegistryDetectionTypePInteger = &_Win32LobAppRegistryDetectionTypePInteger
+ // Win32LobAppRegistryDetectionTypePVersion is a pointer to Win32LobAppRegistryDetectionTypeVVersion
+ Win32LobAppRegistryDetectionTypePVersion = &_Win32LobAppRegistryDetectionTypePVersion
+)
+
+var (
+ _Win32LobAppRegistryDetectionTypePNotConfigured = Win32LobAppRegistryDetectionTypeVNotConfigured
+ _Win32LobAppRegistryDetectionTypePExists = Win32LobAppRegistryDetectionTypeVExists
+ _Win32LobAppRegistryDetectionTypePDoesNotExist = Win32LobAppRegistryDetectionTypeVDoesNotExist
+ _Win32LobAppRegistryDetectionTypePString = Win32LobAppRegistryDetectionTypeVString
+ _Win32LobAppRegistryDetectionTypePInteger = Win32LobAppRegistryDetectionTypeVInteger
+ _Win32LobAppRegistryDetectionTypePVersion = Win32LobAppRegistryDetectionTypeVVersion
+)
+
+// Win32LobAppRestartBehavior undocumented
+type Win32LobAppRestartBehavior string
+
+const (
+ // Win32LobAppRestartBehaviorVBasedOnReturnCode undocumented
+ Win32LobAppRestartBehaviorVBasedOnReturnCode Win32LobAppRestartBehavior = "basedOnReturnCode"
+ // Win32LobAppRestartBehaviorVAllow undocumented
+ Win32LobAppRestartBehaviorVAllow Win32LobAppRestartBehavior = "allow"
+ // Win32LobAppRestartBehaviorVSuppress undocumented
+ Win32LobAppRestartBehaviorVSuppress Win32LobAppRestartBehavior = "suppress"
+ // Win32LobAppRestartBehaviorVForce undocumented
+ Win32LobAppRestartBehaviorVForce Win32LobAppRestartBehavior = "force"
+)
+
+var (
+ // Win32LobAppRestartBehaviorPBasedOnReturnCode is a pointer to Win32LobAppRestartBehaviorVBasedOnReturnCode
+ Win32LobAppRestartBehaviorPBasedOnReturnCode = &_Win32LobAppRestartBehaviorPBasedOnReturnCode
+ // Win32LobAppRestartBehaviorPAllow is a pointer to Win32LobAppRestartBehaviorVAllow
+ Win32LobAppRestartBehaviorPAllow = &_Win32LobAppRestartBehaviorPAllow
+ // Win32LobAppRestartBehaviorPSuppress is a pointer to Win32LobAppRestartBehaviorVSuppress
+ Win32LobAppRestartBehaviorPSuppress = &_Win32LobAppRestartBehaviorPSuppress
+ // Win32LobAppRestartBehaviorPForce is a pointer to Win32LobAppRestartBehaviorVForce
+ Win32LobAppRestartBehaviorPForce = &_Win32LobAppRestartBehaviorPForce
+)
+
+var (
+ _Win32LobAppRestartBehaviorPBasedOnReturnCode = Win32LobAppRestartBehaviorVBasedOnReturnCode
+ _Win32LobAppRestartBehaviorPAllow = Win32LobAppRestartBehaviorVAllow
+ _Win32LobAppRestartBehaviorPSuppress = Win32LobAppRestartBehaviorVSuppress
+ _Win32LobAppRestartBehaviorPForce = Win32LobAppRestartBehaviorVForce
+)
+
+// Win32LobAppReturnCodeType undocumented
+type Win32LobAppReturnCodeType string
+
+const (
+ // Win32LobAppReturnCodeTypeVFailed undocumented
+ Win32LobAppReturnCodeTypeVFailed Win32LobAppReturnCodeType = "failed"
+ // Win32LobAppReturnCodeTypeVSuccess undocumented
+ Win32LobAppReturnCodeTypeVSuccess Win32LobAppReturnCodeType = "success"
+ // Win32LobAppReturnCodeTypeVSoftReboot undocumented
+ Win32LobAppReturnCodeTypeVSoftReboot Win32LobAppReturnCodeType = "softReboot"
+ // Win32LobAppReturnCodeTypeVHardReboot undocumented
+ Win32LobAppReturnCodeTypeVHardReboot Win32LobAppReturnCodeType = "hardReboot"
+ // Win32LobAppReturnCodeTypeVRetry undocumented
+ Win32LobAppReturnCodeTypeVRetry Win32LobAppReturnCodeType = "retry"
+)
+
+var (
+ // Win32LobAppReturnCodeTypePFailed is a pointer to Win32LobAppReturnCodeTypeVFailed
+ Win32LobAppReturnCodeTypePFailed = &_Win32LobAppReturnCodeTypePFailed
+ // Win32LobAppReturnCodeTypePSuccess is a pointer to Win32LobAppReturnCodeTypeVSuccess
+ Win32LobAppReturnCodeTypePSuccess = &_Win32LobAppReturnCodeTypePSuccess
+ // Win32LobAppReturnCodeTypePSoftReboot is a pointer to Win32LobAppReturnCodeTypeVSoftReboot
+ Win32LobAppReturnCodeTypePSoftReboot = &_Win32LobAppReturnCodeTypePSoftReboot
+ // Win32LobAppReturnCodeTypePHardReboot is a pointer to Win32LobAppReturnCodeTypeVHardReboot
+ Win32LobAppReturnCodeTypePHardReboot = &_Win32LobAppReturnCodeTypePHardReboot
+ // Win32LobAppReturnCodeTypePRetry is a pointer to Win32LobAppReturnCodeTypeVRetry
+ Win32LobAppReturnCodeTypePRetry = &_Win32LobAppReturnCodeTypePRetry
+)
+
+var (
+ _Win32LobAppReturnCodeTypePFailed = Win32LobAppReturnCodeTypeVFailed
+ _Win32LobAppReturnCodeTypePSuccess = Win32LobAppReturnCodeTypeVSuccess
+ _Win32LobAppReturnCodeTypePSoftReboot = Win32LobAppReturnCodeTypeVSoftReboot
+ _Win32LobAppReturnCodeTypePHardReboot = Win32LobAppReturnCodeTypeVHardReboot
+ _Win32LobAppReturnCodeTypePRetry = Win32LobAppReturnCodeTypeVRetry
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows.go
new file mode 100644
index 00000000..d95f48c5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows.go
@@ -0,0 +1,1723 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WindowsAppStartLayoutTileSize undocumented
+type WindowsAppStartLayoutTileSize string
+
+const (
+ // WindowsAppStartLayoutTileSizeVHidden undocumented
+ WindowsAppStartLayoutTileSizeVHidden WindowsAppStartLayoutTileSize = "hidden"
+ // WindowsAppStartLayoutTileSizeVSmall undocumented
+ WindowsAppStartLayoutTileSizeVSmall WindowsAppStartLayoutTileSize = "small"
+ // WindowsAppStartLayoutTileSizeVMedium undocumented
+ WindowsAppStartLayoutTileSizeVMedium WindowsAppStartLayoutTileSize = "medium"
+ // WindowsAppStartLayoutTileSizeVWide undocumented
+ WindowsAppStartLayoutTileSizeVWide WindowsAppStartLayoutTileSize = "wide"
+ // WindowsAppStartLayoutTileSizeVLarge undocumented
+ WindowsAppStartLayoutTileSizeVLarge WindowsAppStartLayoutTileSize = "large"
+)
+
+var (
+ // WindowsAppStartLayoutTileSizePHidden is a pointer to WindowsAppStartLayoutTileSizeVHidden
+ WindowsAppStartLayoutTileSizePHidden = &_WindowsAppStartLayoutTileSizePHidden
+ // WindowsAppStartLayoutTileSizePSmall is a pointer to WindowsAppStartLayoutTileSizeVSmall
+ WindowsAppStartLayoutTileSizePSmall = &_WindowsAppStartLayoutTileSizePSmall
+ // WindowsAppStartLayoutTileSizePMedium is a pointer to WindowsAppStartLayoutTileSizeVMedium
+ WindowsAppStartLayoutTileSizePMedium = &_WindowsAppStartLayoutTileSizePMedium
+ // WindowsAppStartLayoutTileSizePWide is a pointer to WindowsAppStartLayoutTileSizeVWide
+ WindowsAppStartLayoutTileSizePWide = &_WindowsAppStartLayoutTileSizePWide
+ // WindowsAppStartLayoutTileSizePLarge is a pointer to WindowsAppStartLayoutTileSizeVLarge
+ WindowsAppStartLayoutTileSizePLarge = &_WindowsAppStartLayoutTileSizePLarge
+)
+
+var (
+ _WindowsAppStartLayoutTileSizePHidden = WindowsAppStartLayoutTileSizeVHidden
+ _WindowsAppStartLayoutTileSizePSmall = WindowsAppStartLayoutTileSizeVSmall
+ _WindowsAppStartLayoutTileSizePMedium = WindowsAppStartLayoutTileSizeVMedium
+ _WindowsAppStartLayoutTileSizePWide = WindowsAppStartLayoutTileSizeVWide
+ _WindowsAppStartLayoutTileSizePLarge = WindowsAppStartLayoutTileSizeVLarge
+)
+
+// WindowsArchitecture undocumented
+type WindowsArchitecture string
+
+const (
+ // WindowsArchitectureVNone undocumented
+ WindowsArchitectureVNone WindowsArchitecture = "none"
+ // WindowsArchitectureVX86 undocumented
+ WindowsArchitectureVX86 WindowsArchitecture = "x86"
+ // WindowsArchitectureVX64 undocumented
+ WindowsArchitectureVX64 WindowsArchitecture = "x64"
+ // WindowsArchitectureVArm undocumented
+ WindowsArchitectureVArm WindowsArchitecture = "arm"
+ // WindowsArchitectureVNeutral undocumented
+ WindowsArchitectureVNeutral WindowsArchitecture = "neutral"
+ // WindowsArchitectureVArm64 undocumented
+ WindowsArchitectureVArm64 WindowsArchitecture = "arm64"
+)
+
+var (
+ // WindowsArchitecturePNone is a pointer to WindowsArchitectureVNone
+ WindowsArchitecturePNone = &_WindowsArchitecturePNone
+ // WindowsArchitecturePX86 is a pointer to WindowsArchitectureVX86
+ WindowsArchitecturePX86 = &_WindowsArchitecturePX86
+ // WindowsArchitecturePX64 is a pointer to WindowsArchitectureVX64
+ WindowsArchitecturePX64 = &_WindowsArchitecturePX64
+ // WindowsArchitecturePArm is a pointer to WindowsArchitectureVArm
+ WindowsArchitecturePArm = &_WindowsArchitecturePArm
+ // WindowsArchitecturePNeutral is a pointer to WindowsArchitectureVNeutral
+ WindowsArchitecturePNeutral = &_WindowsArchitecturePNeutral
+ // WindowsArchitecturePArm64 is a pointer to WindowsArchitectureVArm64
+ WindowsArchitecturePArm64 = &_WindowsArchitecturePArm64
+)
+
+var (
+ _WindowsArchitecturePNone = WindowsArchitectureVNone
+ _WindowsArchitecturePX86 = WindowsArchitectureVX86
+ _WindowsArchitecturePX64 = WindowsArchitectureVX64
+ _WindowsArchitecturePArm = WindowsArchitectureVArm
+ _WindowsArchitecturePNeutral = WindowsArchitectureVNeutral
+ _WindowsArchitecturePArm64 = WindowsArchitectureVArm64
+)
+
+// WindowsAutopilotDeploymentState undocumented
+type WindowsAutopilotDeploymentState string
+
+const (
+ // WindowsAutopilotDeploymentStateVUnknown undocumented
+ WindowsAutopilotDeploymentStateVUnknown WindowsAutopilotDeploymentState = "unknown"
+ // WindowsAutopilotDeploymentStateVSuccess undocumented
+ WindowsAutopilotDeploymentStateVSuccess WindowsAutopilotDeploymentState = "success"
+ // WindowsAutopilotDeploymentStateVInProgress undocumented
+ WindowsAutopilotDeploymentStateVInProgress WindowsAutopilotDeploymentState = "inProgress"
+ // WindowsAutopilotDeploymentStateVFailure undocumented
+ WindowsAutopilotDeploymentStateVFailure WindowsAutopilotDeploymentState = "failure"
+ // WindowsAutopilotDeploymentStateVSuccessWithTimeout undocumented
+ WindowsAutopilotDeploymentStateVSuccessWithTimeout WindowsAutopilotDeploymentState = "successWithTimeout"
+)
+
+var (
+ // WindowsAutopilotDeploymentStatePUnknown is a pointer to WindowsAutopilotDeploymentStateVUnknown
+ WindowsAutopilotDeploymentStatePUnknown = &_WindowsAutopilotDeploymentStatePUnknown
+ // WindowsAutopilotDeploymentStatePSuccess is a pointer to WindowsAutopilotDeploymentStateVSuccess
+ WindowsAutopilotDeploymentStatePSuccess = &_WindowsAutopilotDeploymentStatePSuccess
+ // WindowsAutopilotDeploymentStatePInProgress is a pointer to WindowsAutopilotDeploymentStateVInProgress
+ WindowsAutopilotDeploymentStatePInProgress = &_WindowsAutopilotDeploymentStatePInProgress
+ // WindowsAutopilotDeploymentStatePFailure is a pointer to WindowsAutopilotDeploymentStateVFailure
+ WindowsAutopilotDeploymentStatePFailure = &_WindowsAutopilotDeploymentStatePFailure
+ // WindowsAutopilotDeploymentStatePSuccessWithTimeout is a pointer to WindowsAutopilotDeploymentStateVSuccessWithTimeout
+ WindowsAutopilotDeploymentStatePSuccessWithTimeout = &_WindowsAutopilotDeploymentStatePSuccessWithTimeout
+)
+
+var (
+ _WindowsAutopilotDeploymentStatePUnknown = WindowsAutopilotDeploymentStateVUnknown
+ _WindowsAutopilotDeploymentStatePSuccess = WindowsAutopilotDeploymentStateVSuccess
+ _WindowsAutopilotDeploymentStatePInProgress = WindowsAutopilotDeploymentStateVInProgress
+ _WindowsAutopilotDeploymentStatePFailure = WindowsAutopilotDeploymentStateVFailure
+ _WindowsAutopilotDeploymentStatePSuccessWithTimeout = WindowsAutopilotDeploymentStateVSuccessWithTimeout
+)
+
+// WindowsAutopilotDeviceType undocumented
+type WindowsAutopilotDeviceType string
+
+const (
+ // WindowsAutopilotDeviceTypeVWindowsPc undocumented
+ WindowsAutopilotDeviceTypeVWindowsPc WindowsAutopilotDeviceType = "windowsPc"
+ // WindowsAutopilotDeviceTypeVSurfaceHub2 undocumented
+ WindowsAutopilotDeviceTypeVSurfaceHub2 WindowsAutopilotDeviceType = "surfaceHub2"
+)
+
+var (
+ // WindowsAutopilotDeviceTypePWindowsPc is a pointer to WindowsAutopilotDeviceTypeVWindowsPc
+ WindowsAutopilotDeviceTypePWindowsPc = &_WindowsAutopilotDeviceTypePWindowsPc
+ // WindowsAutopilotDeviceTypePSurfaceHub2 is a pointer to WindowsAutopilotDeviceTypeVSurfaceHub2
+ WindowsAutopilotDeviceTypePSurfaceHub2 = &_WindowsAutopilotDeviceTypePSurfaceHub2
+)
+
+var (
+ _WindowsAutopilotDeviceTypePWindowsPc = WindowsAutopilotDeviceTypeVWindowsPc
+ _WindowsAutopilotDeviceTypePSurfaceHub2 = WindowsAutopilotDeviceTypeVSurfaceHub2
+)
+
+// WindowsAutopilotEnrollmentType undocumented
+type WindowsAutopilotEnrollmentType string
+
+const (
+ // WindowsAutopilotEnrollmentTypeVUnknown undocumented
+ WindowsAutopilotEnrollmentTypeVUnknown WindowsAutopilotEnrollmentType = "unknown"
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile WindowsAutopilotEnrollmentType = "azureADJoinedWithAutopilotProfile"
+ // WindowsAutopilotEnrollmentTypeVOfflineDomainJoined undocumented
+ WindowsAutopilotEnrollmentTypeVOfflineDomainJoined WindowsAutopilotEnrollmentType = "offlineDomainJoined"
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile WindowsAutopilotEnrollmentType = "azureADJoinedUsingDeviceAuthWithAutopilotProfile"
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile WindowsAutopilotEnrollmentType = "azureADJoinedUsingDeviceAuthWithoutAutopilotProfile"
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile WindowsAutopilotEnrollmentType = "azureADJoinedWithOfflineAutopilotProfile"
+ // WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove undocumented
+ WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove WindowsAutopilotEnrollmentType = "azureADJoinedWithWhiteGlove"
+ // WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove undocumented
+ WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove WindowsAutopilotEnrollmentType = "offlineDomainJoinedWithWhiteGlove"
+ // WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile undocumented
+ WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile WindowsAutopilotEnrollmentType = "offlineDomainJoinedWithOfflineAutopilotProfile"
+)
+
+var (
+ // WindowsAutopilotEnrollmentTypePUnknown is a pointer to WindowsAutopilotEnrollmentTypeVUnknown
+ WindowsAutopilotEnrollmentTypePUnknown = &_WindowsAutopilotEnrollmentTypePUnknown
+ // WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile
+ WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile = &_WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile
+ // WindowsAutopilotEnrollmentTypePOfflineDomainJoined is a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoined
+ WindowsAutopilotEnrollmentTypePOfflineDomainJoined = &_WindowsAutopilotEnrollmentTypePOfflineDomainJoined
+ // WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile
+ WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile = &_WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile
+ // WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile
+ WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile = &_WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile
+ // WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile
+ WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile = &_WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile
+ // WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove is a pointer to WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove
+ WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove = &_WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove
+ // WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove is a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove
+ WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove = &_WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove
+ // WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile is a pointer to WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile
+ WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile = &_WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile
+)
+
+var (
+ _WindowsAutopilotEnrollmentTypePUnknown = WindowsAutopilotEnrollmentTypeVUnknown
+ _WindowsAutopilotEnrollmentTypePAzureADJoinedWithAutopilotProfile = WindowsAutopilotEnrollmentTypeVAzureADJoinedWithAutopilotProfile
+ _WindowsAutopilotEnrollmentTypePOfflineDomainJoined = WindowsAutopilotEnrollmentTypeVOfflineDomainJoined
+ _WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithAutopilotProfile = WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithAutopilotProfile
+ _WindowsAutopilotEnrollmentTypePAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile = WindowsAutopilotEnrollmentTypeVAzureADJoinedUsingDeviceAuthWithoutAutopilotProfile
+ _WindowsAutopilotEnrollmentTypePAzureADJoinedWithOfflineAutopilotProfile = WindowsAutopilotEnrollmentTypeVAzureADJoinedWithOfflineAutopilotProfile
+ _WindowsAutopilotEnrollmentTypePAzureADJoinedWithWhiteGlove = WindowsAutopilotEnrollmentTypeVAzureADJoinedWithWhiteGlove
+ _WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithWhiteGlove = WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithWhiteGlove
+ _WindowsAutopilotEnrollmentTypePOfflineDomainJoinedWithOfflineAutopilotProfile = WindowsAutopilotEnrollmentTypeVOfflineDomainJoinedWithOfflineAutopilotProfile
+)
+
+// WindowsAutopilotProfileAssignmentDetailedStatus undocumented
+type WindowsAutopilotProfileAssignmentDetailedStatus string
+
+const (
+ // WindowsAutopilotProfileAssignmentDetailedStatusVNone undocumented
+ WindowsAutopilotProfileAssignmentDetailedStatusVNone WindowsAutopilotProfileAssignmentDetailedStatus = "none"
+ // WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet undocumented
+ WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet WindowsAutopilotProfileAssignmentDetailedStatus = "hardwareRequirementsNotMet"
+)
+
+var (
+ // WindowsAutopilotProfileAssignmentDetailedStatusPNone is a pointer to WindowsAutopilotProfileAssignmentDetailedStatusVNone
+ WindowsAutopilotProfileAssignmentDetailedStatusPNone = &_WindowsAutopilotProfileAssignmentDetailedStatusPNone
+ // WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet is a pointer to WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet
+ WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet = &_WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet
+)
+
+var (
+ _WindowsAutopilotProfileAssignmentDetailedStatusPNone = WindowsAutopilotProfileAssignmentDetailedStatusVNone
+ _WindowsAutopilotProfileAssignmentDetailedStatusPHardwareRequirementsNotMet = WindowsAutopilotProfileAssignmentDetailedStatusVHardwareRequirementsNotMet
+)
+
+// WindowsAutopilotProfileAssignmentStatus undocumented
+type WindowsAutopilotProfileAssignmentStatus string
+
+const (
+ // WindowsAutopilotProfileAssignmentStatusVUnknown undocumented
+ WindowsAutopilotProfileAssignmentStatusVUnknown WindowsAutopilotProfileAssignmentStatus = "unknown"
+ // WindowsAutopilotProfileAssignmentStatusVAssignedInSync undocumented
+ WindowsAutopilotProfileAssignmentStatusVAssignedInSync WindowsAutopilotProfileAssignmentStatus = "assignedInSync"
+ // WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync undocumented
+ WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync WindowsAutopilotProfileAssignmentStatus = "assignedOutOfSync"
+ // WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState undocumented
+ WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState WindowsAutopilotProfileAssignmentStatus = "assignedUnkownSyncState"
+ // WindowsAutopilotProfileAssignmentStatusVNotAssigned undocumented
+ WindowsAutopilotProfileAssignmentStatusVNotAssigned WindowsAutopilotProfileAssignmentStatus = "notAssigned"
+ // WindowsAutopilotProfileAssignmentStatusVPending undocumented
+ WindowsAutopilotProfileAssignmentStatusVPending WindowsAutopilotProfileAssignmentStatus = "pending"
+ // WindowsAutopilotProfileAssignmentStatusVFailed undocumented
+ WindowsAutopilotProfileAssignmentStatusVFailed WindowsAutopilotProfileAssignmentStatus = "failed"
+)
+
+var (
+ // WindowsAutopilotProfileAssignmentStatusPUnknown is a pointer to WindowsAutopilotProfileAssignmentStatusVUnknown
+ WindowsAutopilotProfileAssignmentStatusPUnknown = &_WindowsAutopilotProfileAssignmentStatusPUnknown
+ // WindowsAutopilotProfileAssignmentStatusPAssignedInSync is a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedInSync
+ WindowsAutopilotProfileAssignmentStatusPAssignedInSync = &_WindowsAutopilotProfileAssignmentStatusPAssignedInSync
+ // WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync is a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync
+ WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync = &_WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync
+ // WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState is a pointer to WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState
+ WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState = &_WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState
+ // WindowsAutopilotProfileAssignmentStatusPNotAssigned is a pointer to WindowsAutopilotProfileAssignmentStatusVNotAssigned
+ WindowsAutopilotProfileAssignmentStatusPNotAssigned = &_WindowsAutopilotProfileAssignmentStatusPNotAssigned
+ // WindowsAutopilotProfileAssignmentStatusPPending is a pointer to WindowsAutopilotProfileAssignmentStatusVPending
+ WindowsAutopilotProfileAssignmentStatusPPending = &_WindowsAutopilotProfileAssignmentStatusPPending
+ // WindowsAutopilotProfileAssignmentStatusPFailed is a pointer to WindowsAutopilotProfileAssignmentStatusVFailed
+ WindowsAutopilotProfileAssignmentStatusPFailed = &_WindowsAutopilotProfileAssignmentStatusPFailed
+)
+
+var (
+ _WindowsAutopilotProfileAssignmentStatusPUnknown = WindowsAutopilotProfileAssignmentStatusVUnknown
+ _WindowsAutopilotProfileAssignmentStatusPAssignedInSync = WindowsAutopilotProfileAssignmentStatusVAssignedInSync
+ _WindowsAutopilotProfileAssignmentStatusPAssignedOutOfSync = WindowsAutopilotProfileAssignmentStatusVAssignedOutOfSync
+ _WindowsAutopilotProfileAssignmentStatusPAssignedUnkownSyncState = WindowsAutopilotProfileAssignmentStatusVAssignedUnkownSyncState
+ _WindowsAutopilotProfileAssignmentStatusPNotAssigned = WindowsAutopilotProfileAssignmentStatusVNotAssigned
+ _WindowsAutopilotProfileAssignmentStatusPPending = WindowsAutopilotProfileAssignmentStatusVPending
+ _WindowsAutopilotProfileAssignmentStatusPFailed = WindowsAutopilotProfileAssignmentStatusVFailed
+)
+
+// WindowsAutopilotSyncStatus undocumented
+type WindowsAutopilotSyncStatus string
+
+const (
+ // WindowsAutopilotSyncStatusVUnknown undocumented
+ WindowsAutopilotSyncStatusVUnknown WindowsAutopilotSyncStatus = "unknown"
+ // WindowsAutopilotSyncStatusVInProgress undocumented
+ WindowsAutopilotSyncStatusVInProgress WindowsAutopilotSyncStatus = "inProgress"
+ // WindowsAutopilotSyncStatusVCompleted undocumented
+ WindowsAutopilotSyncStatusVCompleted WindowsAutopilotSyncStatus = "completed"
+ // WindowsAutopilotSyncStatusVFailed undocumented
+ WindowsAutopilotSyncStatusVFailed WindowsAutopilotSyncStatus = "failed"
+)
+
+var (
+ // WindowsAutopilotSyncStatusPUnknown is a pointer to WindowsAutopilotSyncStatusVUnknown
+ WindowsAutopilotSyncStatusPUnknown = &_WindowsAutopilotSyncStatusPUnknown
+ // WindowsAutopilotSyncStatusPInProgress is a pointer to WindowsAutopilotSyncStatusVInProgress
+ WindowsAutopilotSyncStatusPInProgress = &_WindowsAutopilotSyncStatusPInProgress
+ // WindowsAutopilotSyncStatusPCompleted is a pointer to WindowsAutopilotSyncStatusVCompleted
+ WindowsAutopilotSyncStatusPCompleted = &_WindowsAutopilotSyncStatusPCompleted
+ // WindowsAutopilotSyncStatusPFailed is a pointer to WindowsAutopilotSyncStatusVFailed
+ WindowsAutopilotSyncStatusPFailed = &_WindowsAutopilotSyncStatusPFailed
+)
+
+var (
+ _WindowsAutopilotSyncStatusPUnknown = WindowsAutopilotSyncStatusVUnknown
+ _WindowsAutopilotSyncStatusPInProgress = WindowsAutopilotSyncStatusVInProgress
+ _WindowsAutopilotSyncStatusPCompleted = WindowsAutopilotSyncStatusVCompleted
+ _WindowsAutopilotSyncStatusPFailed = WindowsAutopilotSyncStatusVFailed
+)
+
+// WindowsDefenderApplicationControlSupplementalPolicyStatuses undocumented
+type WindowsDefenderApplicationControlSupplementalPolicyStatuses string
+
+const (
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown WindowsDefenderApplicationControlSupplementalPolicyStatuses = "unknown"
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess WindowsDefenderApplicationControlSupplementalPolicyStatuses = "success"
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError WindowsDefenderApplicationControlSupplementalPolicyStatuses = "tokenError"
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken WindowsDefenderApplicationControlSupplementalPolicyStatuses = "notAuthorizedByToken"
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound undocumented
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound WindowsDefenderApplicationControlSupplementalPolicyStatuses = "policyNotFound"
+)
+
+var (
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken
+ // WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound is a pointer to WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound
+ WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound = &_WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound
+)
+
+var (
+ _WindowsDefenderApplicationControlSupplementalPolicyStatusesPUnknown = WindowsDefenderApplicationControlSupplementalPolicyStatusesVUnknown
+ _WindowsDefenderApplicationControlSupplementalPolicyStatusesPSuccess = WindowsDefenderApplicationControlSupplementalPolicyStatusesVSuccess
+ _WindowsDefenderApplicationControlSupplementalPolicyStatusesPTokenError = WindowsDefenderApplicationControlSupplementalPolicyStatusesVTokenError
+ _WindowsDefenderApplicationControlSupplementalPolicyStatusesPNotAuthorizedByToken = WindowsDefenderApplicationControlSupplementalPolicyStatusesVNotAuthorizedByToken
+ _WindowsDefenderApplicationControlSupplementalPolicyStatusesPPolicyNotFound = WindowsDefenderApplicationControlSupplementalPolicyStatusesVPolicyNotFound
+)
+
+// WindowsDefenderTamperProtectionOptions undocumented
+type WindowsDefenderTamperProtectionOptions string
+
+const (
+ // WindowsDefenderTamperProtectionOptionsVNotConfigured undocumented
+ WindowsDefenderTamperProtectionOptionsVNotConfigured WindowsDefenderTamperProtectionOptions = "notConfigured"
+ // WindowsDefenderTamperProtectionOptionsVEnable undocumented
+ WindowsDefenderTamperProtectionOptionsVEnable WindowsDefenderTamperProtectionOptions = "enable"
+ // WindowsDefenderTamperProtectionOptionsVDisable undocumented
+ WindowsDefenderTamperProtectionOptionsVDisable WindowsDefenderTamperProtectionOptions = "disable"
+)
+
+var (
+ // WindowsDefenderTamperProtectionOptionsPNotConfigured is a pointer to WindowsDefenderTamperProtectionOptionsVNotConfigured
+ WindowsDefenderTamperProtectionOptionsPNotConfigured = &_WindowsDefenderTamperProtectionOptionsPNotConfigured
+ // WindowsDefenderTamperProtectionOptionsPEnable is a pointer to WindowsDefenderTamperProtectionOptionsVEnable
+ WindowsDefenderTamperProtectionOptionsPEnable = &_WindowsDefenderTamperProtectionOptionsPEnable
+ // WindowsDefenderTamperProtectionOptionsPDisable is a pointer to WindowsDefenderTamperProtectionOptionsVDisable
+ WindowsDefenderTamperProtectionOptionsPDisable = &_WindowsDefenderTamperProtectionOptionsPDisable
+)
+
+var (
+ _WindowsDefenderTamperProtectionOptionsPNotConfigured = WindowsDefenderTamperProtectionOptionsVNotConfigured
+ _WindowsDefenderTamperProtectionOptionsPEnable = WindowsDefenderTamperProtectionOptionsVEnable
+ _WindowsDefenderTamperProtectionOptionsPDisable = WindowsDefenderTamperProtectionOptionsVDisable
+)
+
+// WindowsDeliveryOptimizationMode undocumented
+type WindowsDeliveryOptimizationMode string
+
+const (
+ // WindowsDeliveryOptimizationModeVUserDefined undocumented
+ WindowsDeliveryOptimizationModeVUserDefined WindowsDeliveryOptimizationMode = "userDefined"
+ // WindowsDeliveryOptimizationModeVHTTPOnly undocumented
+ WindowsDeliveryOptimizationModeVHTTPOnly WindowsDeliveryOptimizationMode = "httpOnly"
+ // WindowsDeliveryOptimizationModeVHTTPWithPeeringNat undocumented
+ WindowsDeliveryOptimizationModeVHTTPWithPeeringNat WindowsDeliveryOptimizationMode = "httpWithPeeringNat"
+ // WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup undocumented
+ WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup WindowsDeliveryOptimizationMode = "httpWithPeeringPrivateGroup"
+ // WindowsDeliveryOptimizationModeVHTTPWithInternetPeering undocumented
+ WindowsDeliveryOptimizationModeVHTTPWithInternetPeering WindowsDeliveryOptimizationMode = "httpWithInternetPeering"
+ // WindowsDeliveryOptimizationModeVSimpleDownload undocumented
+ WindowsDeliveryOptimizationModeVSimpleDownload WindowsDeliveryOptimizationMode = "simpleDownload"
+ // WindowsDeliveryOptimizationModeVBypassMode undocumented
+ WindowsDeliveryOptimizationModeVBypassMode WindowsDeliveryOptimizationMode = "bypassMode"
+)
+
+var (
+ // WindowsDeliveryOptimizationModePUserDefined is a pointer to WindowsDeliveryOptimizationModeVUserDefined
+ WindowsDeliveryOptimizationModePUserDefined = &_WindowsDeliveryOptimizationModePUserDefined
+ // WindowsDeliveryOptimizationModePHTTPOnly is a pointer to WindowsDeliveryOptimizationModeVHTTPOnly
+ WindowsDeliveryOptimizationModePHTTPOnly = &_WindowsDeliveryOptimizationModePHTTPOnly
+ // WindowsDeliveryOptimizationModePHTTPWithPeeringNat is a pointer to WindowsDeliveryOptimizationModeVHTTPWithPeeringNat
+ WindowsDeliveryOptimizationModePHTTPWithPeeringNat = &_WindowsDeliveryOptimizationModePHTTPWithPeeringNat
+ // WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup is a pointer to WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup
+ WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup = &_WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup
+ // WindowsDeliveryOptimizationModePHTTPWithInternetPeering is a pointer to WindowsDeliveryOptimizationModeVHTTPWithInternetPeering
+ WindowsDeliveryOptimizationModePHTTPWithInternetPeering = &_WindowsDeliveryOptimizationModePHTTPWithInternetPeering
+ // WindowsDeliveryOptimizationModePSimpleDownload is a pointer to WindowsDeliveryOptimizationModeVSimpleDownload
+ WindowsDeliveryOptimizationModePSimpleDownload = &_WindowsDeliveryOptimizationModePSimpleDownload
+ // WindowsDeliveryOptimizationModePBypassMode is a pointer to WindowsDeliveryOptimizationModeVBypassMode
+ WindowsDeliveryOptimizationModePBypassMode = &_WindowsDeliveryOptimizationModePBypassMode
+)
+
+var (
+ _WindowsDeliveryOptimizationModePUserDefined = WindowsDeliveryOptimizationModeVUserDefined
+ _WindowsDeliveryOptimizationModePHTTPOnly = WindowsDeliveryOptimizationModeVHTTPOnly
+ _WindowsDeliveryOptimizationModePHTTPWithPeeringNat = WindowsDeliveryOptimizationModeVHTTPWithPeeringNat
+ _WindowsDeliveryOptimizationModePHTTPWithPeeringPrivateGroup = WindowsDeliveryOptimizationModeVHTTPWithPeeringPrivateGroup
+ _WindowsDeliveryOptimizationModePHTTPWithInternetPeering = WindowsDeliveryOptimizationModeVHTTPWithInternetPeering
+ _WindowsDeliveryOptimizationModePSimpleDownload = WindowsDeliveryOptimizationModeVSimpleDownload
+ _WindowsDeliveryOptimizationModePBypassMode = WindowsDeliveryOptimizationModeVBypassMode
+)
+
+// WindowsDeviceHealthState undocumented
+type WindowsDeviceHealthState string
+
+const (
+ // WindowsDeviceHealthStateVClean undocumented
+ WindowsDeviceHealthStateVClean WindowsDeviceHealthState = "clean"
+ // WindowsDeviceHealthStateVFullScanPending undocumented
+ WindowsDeviceHealthStateVFullScanPending WindowsDeviceHealthState = "fullScanPending"
+ // WindowsDeviceHealthStateVRebootPending undocumented
+ WindowsDeviceHealthStateVRebootPending WindowsDeviceHealthState = "rebootPending"
+ // WindowsDeviceHealthStateVManualStepsPending undocumented
+ WindowsDeviceHealthStateVManualStepsPending WindowsDeviceHealthState = "manualStepsPending"
+ // WindowsDeviceHealthStateVOfflineScanPending undocumented
+ WindowsDeviceHealthStateVOfflineScanPending WindowsDeviceHealthState = "offlineScanPending"
+ // WindowsDeviceHealthStateVCritical undocumented
+ WindowsDeviceHealthStateVCritical WindowsDeviceHealthState = "critical"
+)
+
+var (
+ // WindowsDeviceHealthStatePClean is a pointer to WindowsDeviceHealthStateVClean
+ WindowsDeviceHealthStatePClean = &_WindowsDeviceHealthStatePClean
+ // WindowsDeviceHealthStatePFullScanPending is a pointer to WindowsDeviceHealthStateVFullScanPending
+ WindowsDeviceHealthStatePFullScanPending = &_WindowsDeviceHealthStatePFullScanPending
+ // WindowsDeviceHealthStatePRebootPending is a pointer to WindowsDeviceHealthStateVRebootPending
+ WindowsDeviceHealthStatePRebootPending = &_WindowsDeviceHealthStatePRebootPending
+ // WindowsDeviceHealthStatePManualStepsPending is a pointer to WindowsDeviceHealthStateVManualStepsPending
+ WindowsDeviceHealthStatePManualStepsPending = &_WindowsDeviceHealthStatePManualStepsPending
+ // WindowsDeviceHealthStatePOfflineScanPending is a pointer to WindowsDeviceHealthStateVOfflineScanPending
+ WindowsDeviceHealthStatePOfflineScanPending = &_WindowsDeviceHealthStatePOfflineScanPending
+ // WindowsDeviceHealthStatePCritical is a pointer to WindowsDeviceHealthStateVCritical
+ WindowsDeviceHealthStatePCritical = &_WindowsDeviceHealthStatePCritical
+)
+
+var (
+ _WindowsDeviceHealthStatePClean = WindowsDeviceHealthStateVClean
+ _WindowsDeviceHealthStatePFullScanPending = WindowsDeviceHealthStateVFullScanPending
+ _WindowsDeviceHealthStatePRebootPending = WindowsDeviceHealthStateVRebootPending
+ _WindowsDeviceHealthStatePManualStepsPending = WindowsDeviceHealthStateVManualStepsPending
+ _WindowsDeviceHealthStatePOfflineScanPending = WindowsDeviceHealthStateVOfflineScanPending
+ _WindowsDeviceHealthStatePCritical = WindowsDeviceHealthStateVCritical
+)
+
+// WindowsDeviceType undocumented
+type WindowsDeviceType string
+
+const (
+ // WindowsDeviceTypeVNone undocumented
+ WindowsDeviceTypeVNone WindowsDeviceType = "none"
+ // WindowsDeviceTypeVDesktop undocumented
+ WindowsDeviceTypeVDesktop WindowsDeviceType = "desktop"
+ // WindowsDeviceTypeVMobile undocumented
+ WindowsDeviceTypeVMobile WindowsDeviceType = "mobile"
+ // WindowsDeviceTypeVHolographic undocumented
+ WindowsDeviceTypeVHolographic WindowsDeviceType = "holographic"
+ // WindowsDeviceTypeVTeam undocumented
+ WindowsDeviceTypeVTeam WindowsDeviceType = "team"
+)
+
+var (
+ // WindowsDeviceTypePNone is a pointer to WindowsDeviceTypeVNone
+ WindowsDeviceTypePNone = &_WindowsDeviceTypePNone
+ // WindowsDeviceTypePDesktop is a pointer to WindowsDeviceTypeVDesktop
+ WindowsDeviceTypePDesktop = &_WindowsDeviceTypePDesktop
+ // WindowsDeviceTypePMobile is a pointer to WindowsDeviceTypeVMobile
+ WindowsDeviceTypePMobile = &_WindowsDeviceTypePMobile
+ // WindowsDeviceTypePHolographic is a pointer to WindowsDeviceTypeVHolographic
+ WindowsDeviceTypePHolographic = &_WindowsDeviceTypePHolographic
+ // WindowsDeviceTypePTeam is a pointer to WindowsDeviceTypeVTeam
+ WindowsDeviceTypePTeam = &_WindowsDeviceTypePTeam
+)
+
+var (
+ _WindowsDeviceTypePNone = WindowsDeviceTypeVNone
+ _WindowsDeviceTypePDesktop = WindowsDeviceTypeVDesktop
+ _WindowsDeviceTypePMobile = WindowsDeviceTypeVMobile
+ _WindowsDeviceTypePHolographic = WindowsDeviceTypeVHolographic
+ _WindowsDeviceTypePTeam = WindowsDeviceTypeVTeam
+)
+
+// WindowsDeviceUsageType undocumented
+type WindowsDeviceUsageType string
+
+const (
+ // WindowsDeviceUsageTypeVSingleUser undocumented
+ WindowsDeviceUsageTypeVSingleUser WindowsDeviceUsageType = "singleUser"
+ // WindowsDeviceUsageTypeVShared undocumented
+ WindowsDeviceUsageTypeVShared WindowsDeviceUsageType = "shared"
+)
+
+var (
+ // WindowsDeviceUsageTypePSingleUser is a pointer to WindowsDeviceUsageTypeVSingleUser
+ WindowsDeviceUsageTypePSingleUser = &_WindowsDeviceUsageTypePSingleUser
+ // WindowsDeviceUsageTypePShared is a pointer to WindowsDeviceUsageTypeVShared
+ WindowsDeviceUsageTypePShared = &_WindowsDeviceUsageTypePShared
+)
+
+var (
+ _WindowsDeviceUsageTypePSingleUser = WindowsDeviceUsageTypeVSingleUser
+ _WindowsDeviceUsageTypePShared = WindowsDeviceUsageTypeVShared
+)
+
+// WindowsFirewallRuleInterfaceTypes undocumented
+type WindowsFirewallRuleInterfaceTypes string
+
+const (
+ // WindowsFirewallRuleInterfaceTypesVNotConfigured undocumented
+ WindowsFirewallRuleInterfaceTypesVNotConfigured WindowsFirewallRuleInterfaceTypes = "notConfigured"
+ // WindowsFirewallRuleInterfaceTypesVRemoteAccess undocumented
+ WindowsFirewallRuleInterfaceTypesVRemoteAccess WindowsFirewallRuleInterfaceTypes = "remoteAccess"
+ // WindowsFirewallRuleInterfaceTypesVWireless undocumented
+ WindowsFirewallRuleInterfaceTypesVWireless WindowsFirewallRuleInterfaceTypes = "wireless"
+ // WindowsFirewallRuleInterfaceTypesVLan undocumented
+ WindowsFirewallRuleInterfaceTypesVLan WindowsFirewallRuleInterfaceTypes = "lan"
+)
+
+var (
+ // WindowsFirewallRuleInterfaceTypesPNotConfigured is a pointer to WindowsFirewallRuleInterfaceTypesVNotConfigured
+ WindowsFirewallRuleInterfaceTypesPNotConfigured = &_WindowsFirewallRuleInterfaceTypesPNotConfigured
+ // WindowsFirewallRuleInterfaceTypesPRemoteAccess is a pointer to WindowsFirewallRuleInterfaceTypesVRemoteAccess
+ WindowsFirewallRuleInterfaceTypesPRemoteAccess = &_WindowsFirewallRuleInterfaceTypesPRemoteAccess
+ // WindowsFirewallRuleInterfaceTypesPWireless is a pointer to WindowsFirewallRuleInterfaceTypesVWireless
+ WindowsFirewallRuleInterfaceTypesPWireless = &_WindowsFirewallRuleInterfaceTypesPWireless
+ // WindowsFirewallRuleInterfaceTypesPLan is a pointer to WindowsFirewallRuleInterfaceTypesVLan
+ WindowsFirewallRuleInterfaceTypesPLan = &_WindowsFirewallRuleInterfaceTypesPLan
+)
+
+var (
+ _WindowsFirewallRuleInterfaceTypesPNotConfigured = WindowsFirewallRuleInterfaceTypesVNotConfigured
+ _WindowsFirewallRuleInterfaceTypesPRemoteAccess = WindowsFirewallRuleInterfaceTypesVRemoteAccess
+ _WindowsFirewallRuleInterfaceTypesPWireless = WindowsFirewallRuleInterfaceTypesVWireless
+ _WindowsFirewallRuleInterfaceTypesPLan = WindowsFirewallRuleInterfaceTypesVLan
+)
+
+// WindowsFirewallRuleNetworkProfileTypes undocumented
+type WindowsFirewallRuleNetworkProfileTypes string
+
+const (
+ // WindowsFirewallRuleNetworkProfileTypesVNotConfigured undocumented
+ WindowsFirewallRuleNetworkProfileTypesVNotConfigured WindowsFirewallRuleNetworkProfileTypes = "notConfigured"
+ // WindowsFirewallRuleNetworkProfileTypesVDomain undocumented
+ WindowsFirewallRuleNetworkProfileTypesVDomain WindowsFirewallRuleNetworkProfileTypes = "domain"
+ // WindowsFirewallRuleNetworkProfileTypesVPrivate undocumented
+ WindowsFirewallRuleNetworkProfileTypesVPrivate WindowsFirewallRuleNetworkProfileTypes = "private"
+ // WindowsFirewallRuleNetworkProfileTypesVPublic undocumented
+ WindowsFirewallRuleNetworkProfileTypesVPublic WindowsFirewallRuleNetworkProfileTypes = "public"
+)
+
+var (
+ // WindowsFirewallRuleNetworkProfileTypesPNotConfigured is a pointer to WindowsFirewallRuleNetworkProfileTypesVNotConfigured
+ WindowsFirewallRuleNetworkProfileTypesPNotConfigured = &_WindowsFirewallRuleNetworkProfileTypesPNotConfigured
+ // WindowsFirewallRuleNetworkProfileTypesPDomain is a pointer to WindowsFirewallRuleNetworkProfileTypesVDomain
+ WindowsFirewallRuleNetworkProfileTypesPDomain = &_WindowsFirewallRuleNetworkProfileTypesPDomain
+ // WindowsFirewallRuleNetworkProfileTypesPPrivate is a pointer to WindowsFirewallRuleNetworkProfileTypesVPrivate
+ WindowsFirewallRuleNetworkProfileTypesPPrivate = &_WindowsFirewallRuleNetworkProfileTypesPPrivate
+ // WindowsFirewallRuleNetworkProfileTypesPPublic is a pointer to WindowsFirewallRuleNetworkProfileTypesVPublic
+ WindowsFirewallRuleNetworkProfileTypesPPublic = &_WindowsFirewallRuleNetworkProfileTypesPPublic
+)
+
+var (
+ _WindowsFirewallRuleNetworkProfileTypesPNotConfigured = WindowsFirewallRuleNetworkProfileTypesVNotConfigured
+ _WindowsFirewallRuleNetworkProfileTypesPDomain = WindowsFirewallRuleNetworkProfileTypesVDomain
+ _WindowsFirewallRuleNetworkProfileTypesPPrivate = WindowsFirewallRuleNetworkProfileTypesVPrivate
+ _WindowsFirewallRuleNetworkProfileTypesPPublic = WindowsFirewallRuleNetworkProfileTypesVPublic
+)
+
+// WindowsFirewallRuleTrafficDirectionType undocumented
+type WindowsFirewallRuleTrafficDirectionType string
+
+const (
+ // WindowsFirewallRuleTrafficDirectionTypeVNotConfigured undocumented
+ WindowsFirewallRuleTrafficDirectionTypeVNotConfigured WindowsFirewallRuleTrafficDirectionType = "notConfigured"
+ // WindowsFirewallRuleTrafficDirectionTypeVOut undocumented
+ WindowsFirewallRuleTrafficDirectionTypeVOut WindowsFirewallRuleTrafficDirectionType = "out"
+ // WindowsFirewallRuleTrafficDirectionTypeVIn undocumented
+ WindowsFirewallRuleTrafficDirectionTypeVIn WindowsFirewallRuleTrafficDirectionType = "in"
+)
+
+var (
+ // WindowsFirewallRuleTrafficDirectionTypePNotConfigured is a pointer to WindowsFirewallRuleTrafficDirectionTypeVNotConfigured
+ WindowsFirewallRuleTrafficDirectionTypePNotConfigured = &_WindowsFirewallRuleTrafficDirectionTypePNotConfigured
+ // WindowsFirewallRuleTrafficDirectionTypePOut is a pointer to WindowsFirewallRuleTrafficDirectionTypeVOut
+ WindowsFirewallRuleTrafficDirectionTypePOut = &_WindowsFirewallRuleTrafficDirectionTypePOut
+ // WindowsFirewallRuleTrafficDirectionTypePIn is a pointer to WindowsFirewallRuleTrafficDirectionTypeVIn
+ WindowsFirewallRuleTrafficDirectionTypePIn = &_WindowsFirewallRuleTrafficDirectionTypePIn
+)
+
+var (
+ _WindowsFirewallRuleTrafficDirectionTypePNotConfigured = WindowsFirewallRuleTrafficDirectionTypeVNotConfigured
+ _WindowsFirewallRuleTrafficDirectionTypePOut = WindowsFirewallRuleTrafficDirectionTypeVOut
+ _WindowsFirewallRuleTrafficDirectionTypePIn = WindowsFirewallRuleTrafficDirectionTypeVIn
+)
+
+// WindowsHealthMonitoringScope undocumented
+type WindowsHealthMonitoringScope string
+
+const (
+ // WindowsHealthMonitoringScopeVUndefined undocumented
+ WindowsHealthMonitoringScopeVUndefined WindowsHealthMonitoringScope = "undefined"
+ // WindowsHealthMonitoringScopeVHealthMonitoring undocumented
+ WindowsHealthMonitoringScopeVHealthMonitoring WindowsHealthMonitoringScope = "healthMonitoring"
+ // WindowsHealthMonitoringScopeVBootPerformance undocumented
+ WindowsHealthMonitoringScopeVBootPerformance WindowsHealthMonitoringScope = "bootPerformance"
+ // WindowsHealthMonitoringScopeVUserExperienceAnalytics undocumented
+ WindowsHealthMonitoringScopeVUserExperienceAnalytics WindowsHealthMonitoringScope = "userExperienceAnalytics"
+)
+
+var (
+ // WindowsHealthMonitoringScopePUndefined is a pointer to WindowsHealthMonitoringScopeVUndefined
+ WindowsHealthMonitoringScopePUndefined = &_WindowsHealthMonitoringScopePUndefined
+ // WindowsHealthMonitoringScopePHealthMonitoring is a pointer to WindowsHealthMonitoringScopeVHealthMonitoring
+ WindowsHealthMonitoringScopePHealthMonitoring = &_WindowsHealthMonitoringScopePHealthMonitoring
+ // WindowsHealthMonitoringScopePBootPerformance is a pointer to WindowsHealthMonitoringScopeVBootPerformance
+ WindowsHealthMonitoringScopePBootPerformance = &_WindowsHealthMonitoringScopePBootPerformance
+ // WindowsHealthMonitoringScopePUserExperienceAnalytics is a pointer to WindowsHealthMonitoringScopeVUserExperienceAnalytics
+ WindowsHealthMonitoringScopePUserExperienceAnalytics = &_WindowsHealthMonitoringScopePUserExperienceAnalytics
+)
+
+var (
+ _WindowsHealthMonitoringScopePUndefined = WindowsHealthMonitoringScopeVUndefined
+ _WindowsHealthMonitoringScopePHealthMonitoring = WindowsHealthMonitoringScopeVHealthMonitoring
+ _WindowsHealthMonitoringScopePBootPerformance = WindowsHealthMonitoringScopeVBootPerformance
+ _WindowsHealthMonitoringScopePUserExperienceAnalytics = WindowsHealthMonitoringScopeVUserExperienceAnalytics
+)
+
+// WindowsHelloForBusinessPinUsage undocumented
+type WindowsHelloForBusinessPinUsage string
+
+const (
+ // WindowsHelloForBusinessPinUsageVAllowed undocumented
+ WindowsHelloForBusinessPinUsageVAllowed WindowsHelloForBusinessPinUsage = "allowed"
+ // WindowsHelloForBusinessPinUsageVRequired undocumented
+ WindowsHelloForBusinessPinUsageVRequired WindowsHelloForBusinessPinUsage = "required"
+ // WindowsHelloForBusinessPinUsageVDisallowed undocumented
+ WindowsHelloForBusinessPinUsageVDisallowed WindowsHelloForBusinessPinUsage = "disallowed"
+)
+
+var (
+ // WindowsHelloForBusinessPinUsagePAllowed is a pointer to WindowsHelloForBusinessPinUsageVAllowed
+ WindowsHelloForBusinessPinUsagePAllowed = &_WindowsHelloForBusinessPinUsagePAllowed
+ // WindowsHelloForBusinessPinUsagePRequired is a pointer to WindowsHelloForBusinessPinUsageVRequired
+ WindowsHelloForBusinessPinUsagePRequired = &_WindowsHelloForBusinessPinUsagePRequired
+ // WindowsHelloForBusinessPinUsagePDisallowed is a pointer to WindowsHelloForBusinessPinUsageVDisallowed
+ WindowsHelloForBusinessPinUsagePDisallowed = &_WindowsHelloForBusinessPinUsagePDisallowed
+)
+
+var (
+ _WindowsHelloForBusinessPinUsagePAllowed = WindowsHelloForBusinessPinUsageVAllowed
+ _WindowsHelloForBusinessPinUsagePRequired = WindowsHelloForBusinessPinUsageVRequired
+ _WindowsHelloForBusinessPinUsagePDisallowed = WindowsHelloForBusinessPinUsageVDisallowed
+)
+
+// WindowsInformationProtectionEnforcementLevel undocumented
+type WindowsInformationProtectionEnforcementLevel string
+
+const (
+ // WindowsInformationProtectionEnforcementLevelVNoProtection undocumented
+ WindowsInformationProtectionEnforcementLevelVNoProtection WindowsInformationProtectionEnforcementLevel = "noProtection"
+ // WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly undocumented
+ WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly WindowsInformationProtectionEnforcementLevel = "encryptAndAuditOnly"
+ // WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt undocumented
+ WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt WindowsInformationProtectionEnforcementLevel = "encryptAuditAndPrompt"
+ // WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock undocumented
+ WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock WindowsInformationProtectionEnforcementLevel = "encryptAuditAndBlock"
+)
+
+var (
+ // WindowsInformationProtectionEnforcementLevelPNoProtection is a pointer to WindowsInformationProtectionEnforcementLevelVNoProtection
+ WindowsInformationProtectionEnforcementLevelPNoProtection = &_WindowsInformationProtectionEnforcementLevelPNoProtection
+ // WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly is a pointer to WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly
+ WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly = &_WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly
+ // WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt is a pointer to WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt
+ WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt = &_WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt
+ // WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock is a pointer to WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock
+ WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock = &_WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock
+)
+
+var (
+ _WindowsInformationProtectionEnforcementLevelPNoProtection = WindowsInformationProtectionEnforcementLevelVNoProtection
+ _WindowsInformationProtectionEnforcementLevelPEncryptAndAuditOnly = WindowsInformationProtectionEnforcementLevelVEncryptAndAuditOnly
+ _WindowsInformationProtectionEnforcementLevelPEncryptAuditAndPrompt = WindowsInformationProtectionEnforcementLevelVEncryptAuditAndPrompt
+ _WindowsInformationProtectionEnforcementLevelPEncryptAuditAndBlock = WindowsInformationProtectionEnforcementLevelVEncryptAuditAndBlock
+)
+
+// WindowsInformationProtectionPinCharacterRequirements undocumented
+type WindowsInformationProtectionPinCharacterRequirements string
+
+const (
+ // WindowsInformationProtectionPinCharacterRequirementsVNotAllow undocumented
+ WindowsInformationProtectionPinCharacterRequirementsVNotAllow WindowsInformationProtectionPinCharacterRequirements = "notAllow"
+ // WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne undocumented
+ WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne WindowsInformationProtectionPinCharacterRequirements = "requireAtLeastOne"
+ // WindowsInformationProtectionPinCharacterRequirementsVAllow undocumented
+ WindowsInformationProtectionPinCharacterRequirementsVAllow WindowsInformationProtectionPinCharacterRequirements = "allow"
+)
+
+var (
+ // WindowsInformationProtectionPinCharacterRequirementsPNotAllow is a pointer to WindowsInformationProtectionPinCharacterRequirementsVNotAllow
+ WindowsInformationProtectionPinCharacterRequirementsPNotAllow = &_WindowsInformationProtectionPinCharacterRequirementsPNotAllow
+ // WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne is a pointer to WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne
+ WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne = &_WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne
+ // WindowsInformationProtectionPinCharacterRequirementsPAllow is a pointer to WindowsInformationProtectionPinCharacterRequirementsVAllow
+ WindowsInformationProtectionPinCharacterRequirementsPAllow = &_WindowsInformationProtectionPinCharacterRequirementsPAllow
+)
+
+var (
+ _WindowsInformationProtectionPinCharacterRequirementsPNotAllow = WindowsInformationProtectionPinCharacterRequirementsVNotAllow
+ _WindowsInformationProtectionPinCharacterRequirementsPRequireAtLeastOne = WindowsInformationProtectionPinCharacterRequirementsVRequireAtLeastOne
+ _WindowsInformationProtectionPinCharacterRequirementsPAllow = WindowsInformationProtectionPinCharacterRequirementsVAllow
+)
+
+// WindowsKioskAppType undocumented
+type WindowsKioskAppType string
+
+const (
+ // WindowsKioskAppTypeVUnknown undocumented
+ WindowsKioskAppTypeVUnknown WindowsKioskAppType = "unknown"
+ // WindowsKioskAppTypeVStore undocumented
+ WindowsKioskAppTypeVStore WindowsKioskAppType = "store"
+ // WindowsKioskAppTypeVDesktop undocumented
+ WindowsKioskAppTypeVDesktop WindowsKioskAppType = "desktop"
+ // WindowsKioskAppTypeVAumID undocumented
+ WindowsKioskAppTypeVAumID WindowsKioskAppType = "aumId"
+)
+
+var (
+ // WindowsKioskAppTypePUnknown is a pointer to WindowsKioskAppTypeVUnknown
+ WindowsKioskAppTypePUnknown = &_WindowsKioskAppTypePUnknown
+ // WindowsKioskAppTypePStore is a pointer to WindowsKioskAppTypeVStore
+ WindowsKioskAppTypePStore = &_WindowsKioskAppTypePStore
+ // WindowsKioskAppTypePDesktop is a pointer to WindowsKioskAppTypeVDesktop
+ WindowsKioskAppTypePDesktop = &_WindowsKioskAppTypePDesktop
+ // WindowsKioskAppTypePAumID is a pointer to WindowsKioskAppTypeVAumID
+ WindowsKioskAppTypePAumID = &_WindowsKioskAppTypePAumID
+)
+
+var (
+ _WindowsKioskAppTypePUnknown = WindowsKioskAppTypeVUnknown
+ _WindowsKioskAppTypePStore = WindowsKioskAppTypeVStore
+ _WindowsKioskAppTypePDesktop = WindowsKioskAppTypeVDesktop
+ _WindowsKioskAppTypePAumID = WindowsKioskAppTypeVAumID
+)
+
+// WindowsMalwareCategory undocumented
+type WindowsMalwareCategory string
+
+const (
+ // WindowsMalwareCategoryVInvalid undocumented
+ WindowsMalwareCategoryVInvalid WindowsMalwareCategory = "invalid"
+ // WindowsMalwareCategoryVAdware undocumented
+ WindowsMalwareCategoryVAdware WindowsMalwareCategory = "adware"
+ // WindowsMalwareCategoryVSpyware undocumented
+ WindowsMalwareCategoryVSpyware WindowsMalwareCategory = "spyware"
+ // WindowsMalwareCategoryVPasswordStealer undocumented
+ WindowsMalwareCategoryVPasswordStealer WindowsMalwareCategory = "passwordStealer"
+ // WindowsMalwareCategoryVTrojanDownloader undocumented
+ WindowsMalwareCategoryVTrojanDownloader WindowsMalwareCategory = "trojanDownloader"
+ // WindowsMalwareCategoryVWorm undocumented
+ WindowsMalwareCategoryVWorm WindowsMalwareCategory = "worm"
+ // WindowsMalwareCategoryVBackdoor undocumented
+ WindowsMalwareCategoryVBackdoor WindowsMalwareCategory = "backdoor"
+ // WindowsMalwareCategoryVRemoteAccessTrojan undocumented
+ WindowsMalwareCategoryVRemoteAccessTrojan WindowsMalwareCategory = "remoteAccessTrojan"
+ // WindowsMalwareCategoryVTrojan undocumented
+ WindowsMalwareCategoryVTrojan WindowsMalwareCategory = "trojan"
+ // WindowsMalwareCategoryVEmailFlooder undocumented
+ WindowsMalwareCategoryVEmailFlooder WindowsMalwareCategory = "emailFlooder"
+ // WindowsMalwareCategoryVKeylogger undocumented
+ WindowsMalwareCategoryVKeylogger WindowsMalwareCategory = "keylogger"
+ // WindowsMalwareCategoryVDialer undocumented
+ WindowsMalwareCategoryVDialer WindowsMalwareCategory = "dialer"
+ // WindowsMalwareCategoryVMonitoringSoftware undocumented
+ WindowsMalwareCategoryVMonitoringSoftware WindowsMalwareCategory = "monitoringSoftware"
+ // WindowsMalwareCategoryVBrowserModifier undocumented
+ WindowsMalwareCategoryVBrowserModifier WindowsMalwareCategory = "browserModifier"
+ // WindowsMalwareCategoryVCookie undocumented
+ WindowsMalwareCategoryVCookie WindowsMalwareCategory = "cookie"
+ // WindowsMalwareCategoryVBrowserPlugin undocumented
+ WindowsMalwareCategoryVBrowserPlugin WindowsMalwareCategory = "browserPlugin"
+ // WindowsMalwareCategoryVAolExploit undocumented
+ WindowsMalwareCategoryVAolExploit WindowsMalwareCategory = "aolExploit"
+ // WindowsMalwareCategoryVNuker undocumented
+ WindowsMalwareCategoryVNuker WindowsMalwareCategory = "nuker"
+ // WindowsMalwareCategoryVSecurityDisabler undocumented
+ WindowsMalwareCategoryVSecurityDisabler WindowsMalwareCategory = "securityDisabler"
+ // WindowsMalwareCategoryVJokeProgram undocumented
+ WindowsMalwareCategoryVJokeProgram WindowsMalwareCategory = "jokeProgram"
+ // WindowsMalwareCategoryVHostileActiveXControl undocumented
+ WindowsMalwareCategoryVHostileActiveXControl WindowsMalwareCategory = "hostileActiveXControl"
+ // WindowsMalwareCategoryVSoftwareBundler undocumented
+ WindowsMalwareCategoryVSoftwareBundler WindowsMalwareCategory = "softwareBundler"
+ // WindowsMalwareCategoryVStealthNotifier undocumented
+ WindowsMalwareCategoryVStealthNotifier WindowsMalwareCategory = "stealthNotifier"
+ // WindowsMalwareCategoryVSettingsModifier undocumented
+ WindowsMalwareCategoryVSettingsModifier WindowsMalwareCategory = "settingsModifier"
+ // WindowsMalwareCategoryVToolBar undocumented
+ WindowsMalwareCategoryVToolBar WindowsMalwareCategory = "toolBar"
+ // WindowsMalwareCategoryVRemoteControlSoftware undocumented
+ WindowsMalwareCategoryVRemoteControlSoftware WindowsMalwareCategory = "remoteControlSoftware"
+ // WindowsMalwareCategoryVTrojanFtp undocumented
+ WindowsMalwareCategoryVTrojanFtp WindowsMalwareCategory = "trojanFtp"
+ // WindowsMalwareCategoryVPotentialUnwantedSoftware undocumented
+ WindowsMalwareCategoryVPotentialUnwantedSoftware WindowsMalwareCategory = "potentialUnwantedSoftware"
+ // WindowsMalwareCategoryVIcqExploit undocumented
+ WindowsMalwareCategoryVIcqExploit WindowsMalwareCategory = "icqExploit"
+ // WindowsMalwareCategoryVTrojanTelnet undocumented
+ WindowsMalwareCategoryVTrojanTelnet WindowsMalwareCategory = "trojanTelnet"
+ // WindowsMalwareCategoryVExploit undocumented
+ WindowsMalwareCategoryVExploit WindowsMalwareCategory = "exploit"
+ // WindowsMalwareCategoryVFilesharingProgram undocumented
+ WindowsMalwareCategoryVFilesharingProgram WindowsMalwareCategory = "filesharingProgram"
+ // WindowsMalwareCategoryVMalwareCreationTool undocumented
+ WindowsMalwareCategoryVMalwareCreationTool WindowsMalwareCategory = "malwareCreationTool"
+ // WindowsMalwareCategoryVRemote_Control_Software undocumented
+ WindowsMalwareCategoryVRemote_Control_Software WindowsMalwareCategory = "remote_Control_Software"
+ // WindowsMalwareCategoryVTool undocumented
+ WindowsMalwareCategoryVTool WindowsMalwareCategory = "tool"
+ // WindowsMalwareCategoryVTrojanDenialOfService undocumented
+ WindowsMalwareCategoryVTrojanDenialOfService WindowsMalwareCategory = "trojanDenialOfService"
+ // WindowsMalwareCategoryVTrojanDropper undocumented
+ WindowsMalwareCategoryVTrojanDropper WindowsMalwareCategory = "trojanDropper"
+ // WindowsMalwareCategoryVTrojanMassMailer undocumented
+ WindowsMalwareCategoryVTrojanMassMailer WindowsMalwareCategory = "trojanMassMailer"
+ // WindowsMalwareCategoryVTrojanMonitoringSoftware undocumented
+ WindowsMalwareCategoryVTrojanMonitoringSoftware WindowsMalwareCategory = "trojanMonitoringSoftware"
+ // WindowsMalwareCategoryVTrojanProxyServer undocumented
+ WindowsMalwareCategoryVTrojanProxyServer WindowsMalwareCategory = "trojanProxyServer"
+ // WindowsMalwareCategoryVVirus undocumented
+ WindowsMalwareCategoryVVirus WindowsMalwareCategory = "virus"
+ // WindowsMalwareCategoryVKnown undocumented
+ WindowsMalwareCategoryVKnown WindowsMalwareCategory = "known"
+ // WindowsMalwareCategoryVUnknown undocumented
+ WindowsMalwareCategoryVUnknown WindowsMalwareCategory = "unknown"
+ // WindowsMalwareCategoryVSpp undocumented
+ WindowsMalwareCategoryVSpp WindowsMalwareCategory = "spp"
+ // WindowsMalwareCategoryVBehavior undocumented
+ WindowsMalwareCategoryVBehavior WindowsMalwareCategory = "behavior"
+ // WindowsMalwareCategoryVVulnerability undocumented
+ WindowsMalwareCategoryVVulnerability WindowsMalwareCategory = "vulnerability"
+ // WindowsMalwareCategoryVPolicy undocumented
+ WindowsMalwareCategoryVPolicy WindowsMalwareCategory = "policy"
+ // WindowsMalwareCategoryVEnterpriseUnwantedSoftware undocumented
+ WindowsMalwareCategoryVEnterpriseUnwantedSoftware WindowsMalwareCategory = "enterpriseUnwantedSoftware"
+ // WindowsMalwareCategoryVRansom undocumented
+ WindowsMalwareCategoryVRansom WindowsMalwareCategory = "ransom"
+ // WindowsMalwareCategoryVHipsRule undocumented
+ WindowsMalwareCategoryVHipsRule WindowsMalwareCategory = "hipsRule"
+)
+
+var (
+ // WindowsMalwareCategoryPInvalid is a pointer to WindowsMalwareCategoryVInvalid
+ WindowsMalwareCategoryPInvalid = &_WindowsMalwareCategoryPInvalid
+ // WindowsMalwareCategoryPAdware is a pointer to WindowsMalwareCategoryVAdware
+ WindowsMalwareCategoryPAdware = &_WindowsMalwareCategoryPAdware
+ // WindowsMalwareCategoryPSpyware is a pointer to WindowsMalwareCategoryVSpyware
+ WindowsMalwareCategoryPSpyware = &_WindowsMalwareCategoryPSpyware
+ // WindowsMalwareCategoryPPasswordStealer is a pointer to WindowsMalwareCategoryVPasswordStealer
+ WindowsMalwareCategoryPPasswordStealer = &_WindowsMalwareCategoryPPasswordStealer
+ // WindowsMalwareCategoryPTrojanDownloader is a pointer to WindowsMalwareCategoryVTrojanDownloader
+ WindowsMalwareCategoryPTrojanDownloader = &_WindowsMalwareCategoryPTrojanDownloader
+ // WindowsMalwareCategoryPWorm is a pointer to WindowsMalwareCategoryVWorm
+ WindowsMalwareCategoryPWorm = &_WindowsMalwareCategoryPWorm
+ // WindowsMalwareCategoryPBackdoor is a pointer to WindowsMalwareCategoryVBackdoor
+ WindowsMalwareCategoryPBackdoor = &_WindowsMalwareCategoryPBackdoor
+ // WindowsMalwareCategoryPRemoteAccessTrojan is a pointer to WindowsMalwareCategoryVRemoteAccessTrojan
+ WindowsMalwareCategoryPRemoteAccessTrojan = &_WindowsMalwareCategoryPRemoteAccessTrojan
+ // WindowsMalwareCategoryPTrojan is a pointer to WindowsMalwareCategoryVTrojan
+ WindowsMalwareCategoryPTrojan = &_WindowsMalwareCategoryPTrojan
+ // WindowsMalwareCategoryPEmailFlooder is a pointer to WindowsMalwareCategoryVEmailFlooder
+ WindowsMalwareCategoryPEmailFlooder = &_WindowsMalwareCategoryPEmailFlooder
+ // WindowsMalwareCategoryPKeylogger is a pointer to WindowsMalwareCategoryVKeylogger
+ WindowsMalwareCategoryPKeylogger = &_WindowsMalwareCategoryPKeylogger
+ // WindowsMalwareCategoryPDialer is a pointer to WindowsMalwareCategoryVDialer
+ WindowsMalwareCategoryPDialer = &_WindowsMalwareCategoryPDialer
+ // WindowsMalwareCategoryPMonitoringSoftware is a pointer to WindowsMalwareCategoryVMonitoringSoftware
+ WindowsMalwareCategoryPMonitoringSoftware = &_WindowsMalwareCategoryPMonitoringSoftware
+ // WindowsMalwareCategoryPBrowserModifier is a pointer to WindowsMalwareCategoryVBrowserModifier
+ WindowsMalwareCategoryPBrowserModifier = &_WindowsMalwareCategoryPBrowserModifier
+ // WindowsMalwareCategoryPCookie is a pointer to WindowsMalwareCategoryVCookie
+ WindowsMalwareCategoryPCookie = &_WindowsMalwareCategoryPCookie
+ // WindowsMalwareCategoryPBrowserPlugin is a pointer to WindowsMalwareCategoryVBrowserPlugin
+ WindowsMalwareCategoryPBrowserPlugin = &_WindowsMalwareCategoryPBrowserPlugin
+ // WindowsMalwareCategoryPAolExploit is a pointer to WindowsMalwareCategoryVAolExploit
+ WindowsMalwareCategoryPAolExploit = &_WindowsMalwareCategoryPAolExploit
+ // WindowsMalwareCategoryPNuker is a pointer to WindowsMalwareCategoryVNuker
+ WindowsMalwareCategoryPNuker = &_WindowsMalwareCategoryPNuker
+ // WindowsMalwareCategoryPSecurityDisabler is a pointer to WindowsMalwareCategoryVSecurityDisabler
+ WindowsMalwareCategoryPSecurityDisabler = &_WindowsMalwareCategoryPSecurityDisabler
+ // WindowsMalwareCategoryPJokeProgram is a pointer to WindowsMalwareCategoryVJokeProgram
+ WindowsMalwareCategoryPJokeProgram = &_WindowsMalwareCategoryPJokeProgram
+ // WindowsMalwareCategoryPHostileActiveXControl is a pointer to WindowsMalwareCategoryVHostileActiveXControl
+ WindowsMalwareCategoryPHostileActiveXControl = &_WindowsMalwareCategoryPHostileActiveXControl
+ // WindowsMalwareCategoryPSoftwareBundler is a pointer to WindowsMalwareCategoryVSoftwareBundler
+ WindowsMalwareCategoryPSoftwareBundler = &_WindowsMalwareCategoryPSoftwareBundler
+ // WindowsMalwareCategoryPStealthNotifier is a pointer to WindowsMalwareCategoryVStealthNotifier
+ WindowsMalwareCategoryPStealthNotifier = &_WindowsMalwareCategoryPStealthNotifier
+ // WindowsMalwareCategoryPSettingsModifier is a pointer to WindowsMalwareCategoryVSettingsModifier
+ WindowsMalwareCategoryPSettingsModifier = &_WindowsMalwareCategoryPSettingsModifier
+ // WindowsMalwareCategoryPToolBar is a pointer to WindowsMalwareCategoryVToolBar
+ WindowsMalwareCategoryPToolBar = &_WindowsMalwareCategoryPToolBar
+ // WindowsMalwareCategoryPRemoteControlSoftware is a pointer to WindowsMalwareCategoryVRemoteControlSoftware
+ WindowsMalwareCategoryPRemoteControlSoftware = &_WindowsMalwareCategoryPRemoteControlSoftware
+ // WindowsMalwareCategoryPTrojanFtp is a pointer to WindowsMalwareCategoryVTrojanFtp
+ WindowsMalwareCategoryPTrojanFtp = &_WindowsMalwareCategoryPTrojanFtp
+ // WindowsMalwareCategoryPPotentialUnwantedSoftware is a pointer to WindowsMalwareCategoryVPotentialUnwantedSoftware
+ WindowsMalwareCategoryPPotentialUnwantedSoftware = &_WindowsMalwareCategoryPPotentialUnwantedSoftware
+ // WindowsMalwareCategoryPIcqExploit is a pointer to WindowsMalwareCategoryVIcqExploit
+ WindowsMalwareCategoryPIcqExploit = &_WindowsMalwareCategoryPIcqExploit
+ // WindowsMalwareCategoryPTrojanTelnet is a pointer to WindowsMalwareCategoryVTrojanTelnet
+ WindowsMalwareCategoryPTrojanTelnet = &_WindowsMalwareCategoryPTrojanTelnet
+ // WindowsMalwareCategoryPExploit is a pointer to WindowsMalwareCategoryVExploit
+ WindowsMalwareCategoryPExploit = &_WindowsMalwareCategoryPExploit
+ // WindowsMalwareCategoryPFilesharingProgram is a pointer to WindowsMalwareCategoryVFilesharingProgram
+ WindowsMalwareCategoryPFilesharingProgram = &_WindowsMalwareCategoryPFilesharingProgram
+ // WindowsMalwareCategoryPMalwareCreationTool is a pointer to WindowsMalwareCategoryVMalwareCreationTool
+ WindowsMalwareCategoryPMalwareCreationTool = &_WindowsMalwareCategoryPMalwareCreationTool
+ // WindowsMalwareCategoryPRemote_Control_Software is a pointer to WindowsMalwareCategoryVRemote_Control_Software
+ WindowsMalwareCategoryPRemote_Control_Software = &_WindowsMalwareCategoryPRemote_Control_Software
+ // WindowsMalwareCategoryPTool is a pointer to WindowsMalwareCategoryVTool
+ WindowsMalwareCategoryPTool = &_WindowsMalwareCategoryPTool
+ // WindowsMalwareCategoryPTrojanDenialOfService is a pointer to WindowsMalwareCategoryVTrojanDenialOfService
+ WindowsMalwareCategoryPTrojanDenialOfService = &_WindowsMalwareCategoryPTrojanDenialOfService
+ // WindowsMalwareCategoryPTrojanDropper is a pointer to WindowsMalwareCategoryVTrojanDropper
+ WindowsMalwareCategoryPTrojanDropper = &_WindowsMalwareCategoryPTrojanDropper
+ // WindowsMalwareCategoryPTrojanMassMailer is a pointer to WindowsMalwareCategoryVTrojanMassMailer
+ WindowsMalwareCategoryPTrojanMassMailer = &_WindowsMalwareCategoryPTrojanMassMailer
+ // WindowsMalwareCategoryPTrojanMonitoringSoftware is a pointer to WindowsMalwareCategoryVTrojanMonitoringSoftware
+ WindowsMalwareCategoryPTrojanMonitoringSoftware = &_WindowsMalwareCategoryPTrojanMonitoringSoftware
+ // WindowsMalwareCategoryPTrojanProxyServer is a pointer to WindowsMalwareCategoryVTrojanProxyServer
+ WindowsMalwareCategoryPTrojanProxyServer = &_WindowsMalwareCategoryPTrojanProxyServer
+ // WindowsMalwareCategoryPVirus is a pointer to WindowsMalwareCategoryVVirus
+ WindowsMalwareCategoryPVirus = &_WindowsMalwareCategoryPVirus
+ // WindowsMalwareCategoryPKnown is a pointer to WindowsMalwareCategoryVKnown
+ WindowsMalwareCategoryPKnown = &_WindowsMalwareCategoryPKnown
+ // WindowsMalwareCategoryPUnknown is a pointer to WindowsMalwareCategoryVUnknown
+ WindowsMalwareCategoryPUnknown = &_WindowsMalwareCategoryPUnknown
+ // WindowsMalwareCategoryPSpp is a pointer to WindowsMalwareCategoryVSpp
+ WindowsMalwareCategoryPSpp = &_WindowsMalwareCategoryPSpp
+ // WindowsMalwareCategoryPBehavior is a pointer to WindowsMalwareCategoryVBehavior
+ WindowsMalwareCategoryPBehavior = &_WindowsMalwareCategoryPBehavior
+ // WindowsMalwareCategoryPVulnerability is a pointer to WindowsMalwareCategoryVVulnerability
+ WindowsMalwareCategoryPVulnerability = &_WindowsMalwareCategoryPVulnerability
+ // WindowsMalwareCategoryPPolicy is a pointer to WindowsMalwareCategoryVPolicy
+ WindowsMalwareCategoryPPolicy = &_WindowsMalwareCategoryPPolicy
+ // WindowsMalwareCategoryPEnterpriseUnwantedSoftware is a pointer to WindowsMalwareCategoryVEnterpriseUnwantedSoftware
+ WindowsMalwareCategoryPEnterpriseUnwantedSoftware = &_WindowsMalwareCategoryPEnterpriseUnwantedSoftware
+ // WindowsMalwareCategoryPRansom is a pointer to WindowsMalwareCategoryVRansom
+ WindowsMalwareCategoryPRansom = &_WindowsMalwareCategoryPRansom
+ // WindowsMalwareCategoryPHipsRule is a pointer to WindowsMalwareCategoryVHipsRule
+ WindowsMalwareCategoryPHipsRule = &_WindowsMalwareCategoryPHipsRule
+)
+
+var (
+ _WindowsMalwareCategoryPInvalid = WindowsMalwareCategoryVInvalid
+ _WindowsMalwareCategoryPAdware = WindowsMalwareCategoryVAdware
+ _WindowsMalwareCategoryPSpyware = WindowsMalwareCategoryVSpyware
+ _WindowsMalwareCategoryPPasswordStealer = WindowsMalwareCategoryVPasswordStealer
+ _WindowsMalwareCategoryPTrojanDownloader = WindowsMalwareCategoryVTrojanDownloader
+ _WindowsMalwareCategoryPWorm = WindowsMalwareCategoryVWorm
+ _WindowsMalwareCategoryPBackdoor = WindowsMalwareCategoryVBackdoor
+ _WindowsMalwareCategoryPRemoteAccessTrojan = WindowsMalwareCategoryVRemoteAccessTrojan
+ _WindowsMalwareCategoryPTrojan = WindowsMalwareCategoryVTrojan
+ _WindowsMalwareCategoryPEmailFlooder = WindowsMalwareCategoryVEmailFlooder
+ _WindowsMalwareCategoryPKeylogger = WindowsMalwareCategoryVKeylogger
+ _WindowsMalwareCategoryPDialer = WindowsMalwareCategoryVDialer
+ _WindowsMalwareCategoryPMonitoringSoftware = WindowsMalwareCategoryVMonitoringSoftware
+ _WindowsMalwareCategoryPBrowserModifier = WindowsMalwareCategoryVBrowserModifier
+ _WindowsMalwareCategoryPCookie = WindowsMalwareCategoryVCookie
+ _WindowsMalwareCategoryPBrowserPlugin = WindowsMalwareCategoryVBrowserPlugin
+ _WindowsMalwareCategoryPAolExploit = WindowsMalwareCategoryVAolExploit
+ _WindowsMalwareCategoryPNuker = WindowsMalwareCategoryVNuker
+ _WindowsMalwareCategoryPSecurityDisabler = WindowsMalwareCategoryVSecurityDisabler
+ _WindowsMalwareCategoryPJokeProgram = WindowsMalwareCategoryVJokeProgram
+ _WindowsMalwareCategoryPHostileActiveXControl = WindowsMalwareCategoryVHostileActiveXControl
+ _WindowsMalwareCategoryPSoftwareBundler = WindowsMalwareCategoryVSoftwareBundler
+ _WindowsMalwareCategoryPStealthNotifier = WindowsMalwareCategoryVStealthNotifier
+ _WindowsMalwareCategoryPSettingsModifier = WindowsMalwareCategoryVSettingsModifier
+ _WindowsMalwareCategoryPToolBar = WindowsMalwareCategoryVToolBar
+ _WindowsMalwareCategoryPRemoteControlSoftware = WindowsMalwareCategoryVRemoteControlSoftware
+ _WindowsMalwareCategoryPTrojanFtp = WindowsMalwareCategoryVTrojanFtp
+ _WindowsMalwareCategoryPPotentialUnwantedSoftware = WindowsMalwareCategoryVPotentialUnwantedSoftware
+ _WindowsMalwareCategoryPIcqExploit = WindowsMalwareCategoryVIcqExploit
+ _WindowsMalwareCategoryPTrojanTelnet = WindowsMalwareCategoryVTrojanTelnet
+ _WindowsMalwareCategoryPExploit = WindowsMalwareCategoryVExploit
+ _WindowsMalwareCategoryPFilesharingProgram = WindowsMalwareCategoryVFilesharingProgram
+ _WindowsMalwareCategoryPMalwareCreationTool = WindowsMalwareCategoryVMalwareCreationTool
+ _WindowsMalwareCategoryPRemote_Control_Software = WindowsMalwareCategoryVRemote_Control_Software
+ _WindowsMalwareCategoryPTool = WindowsMalwareCategoryVTool
+ _WindowsMalwareCategoryPTrojanDenialOfService = WindowsMalwareCategoryVTrojanDenialOfService
+ _WindowsMalwareCategoryPTrojanDropper = WindowsMalwareCategoryVTrojanDropper
+ _WindowsMalwareCategoryPTrojanMassMailer = WindowsMalwareCategoryVTrojanMassMailer
+ _WindowsMalwareCategoryPTrojanMonitoringSoftware = WindowsMalwareCategoryVTrojanMonitoringSoftware
+ _WindowsMalwareCategoryPTrojanProxyServer = WindowsMalwareCategoryVTrojanProxyServer
+ _WindowsMalwareCategoryPVirus = WindowsMalwareCategoryVVirus
+ _WindowsMalwareCategoryPKnown = WindowsMalwareCategoryVKnown
+ _WindowsMalwareCategoryPUnknown = WindowsMalwareCategoryVUnknown
+ _WindowsMalwareCategoryPSpp = WindowsMalwareCategoryVSpp
+ _WindowsMalwareCategoryPBehavior = WindowsMalwareCategoryVBehavior
+ _WindowsMalwareCategoryPVulnerability = WindowsMalwareCategoryVVulnerability
+ _WindowsMalwareCategoryPPolicy = WindowsMalwareCategoryVPolicy
+ _WindowsMalwareCategoryPEnterpriseUnwantedSoftware = WindowsMalwareCategoryVEnterpriseUnwantedSoftware
+ _WindowsMalwareCategoryPRansom = WindowsMalwareCategoryVRansom
+ _WindowsMalwareCategoryPHipsRule = WindowsMalwareCategoryVHipsRule
+)
+
+// WindowsMalwareExecutionState undocumented
+type WindowsMalwareExecutionState string
+
+const (
+ // WindowsMalwareExecutionStateVUnknown undocumented
+ WindowsMalwareExecutionStateVUnknown WindowsMalwareExecutionState = "unknown"
+ // WindowsMalwareExecutionStateVBlocked undocumented
+ WindowsMalwareExecutionStateVBlocked WindowsMalwareExecutionState = "blocked"
+ // WindowsMalwareExecutionStateVAllowed undocumented
+ WindowsMalwareExecutionStateVAllowed WindowsMalwareExecutionState = "allowed"
+ // WindowsMalwareExecutionStateVRunning undocumented
+ WindowsMalwareExecutionStateVRunning WindowsMalwareExecutionState = "running"
+ // WindowsMalwareExecutionStateVNotRunning undocumented
+ WindowsMalwareExecutionStateVNotRunning WindowsMalwareExecutionState = "notRunning"
+)
+
+var (
+ // WindowsMalwareExecutionStatePUnknown is a pointer to WindowsMalwareExecutionStateVUnknown
+ WindowsMalwareExecutionStatePUnknown = &_WindowsMalwareExecutionStatePUnknown
+ // WindowsMalwareExecutionStatePBlocked is a pointer to WindowsMalwareExecutionStateVBlocked
+ WindowsMalwareExecutionStatePBlocked = &_WindowsMalwareExecutionStatePBlocked
+ // WindowsMalwareExecutionStatePAllowed is a pointer to WindowsMalwareExecutionStateVAllowed
+ WindowsMalwareExecutionStatePAllowed = &_WindowsMalwareExecutionStatePAllowed
+ // WindowsMalwareExecutionStatePRunning is a pointer to WindowsMalwareExecutionStateVRunning
+ WindowsMalwareExecutionStatePRunning = &_WindowsMalwareExecutionStatePRunning
+ // WindowsMalwareExecutionStatePNotRunning is a pointer to WindowsMalwareExecutionStateVNotRunning
+ WindowsMalwareExecutionStatePNotRunning = &_WindowsMalwareExecutionStatePNotRunning
+)
+
+var (
+ _WindowsMalwareExecutionStatePUnknown = WindowsMalwareExecutionStateVUnknown
+ _WindowsMalwareExecutionStatePBlocked = WindowsMalwareExecutionStateVBlocked
+ _WindowsMalwareExecutionStatePAllowed = WindowsMalwareExecutionStateVAllowed
+ _WindowsMalwareExecutionStatePRunning = WindowsMalwareExecutionStateVRunning
+ _WindowsMalwareExecutionStatePNotRunning = WindowsMalwareExecutionStateVNotRunning
+)
+
+// WindowsMalwareSeverity undocumented
+type WindowsMalwareSeverity string
+
+const (
+ // WindowsMalwareSeverityVUnknown undocumented
+ WindowsMalwareSeverityVUnknown WindowsMalwareSeverity = "unknown"
+ // WindowsMalwareSeverityVLow undocumented
+ WindowsMalwareSeverityVLow WindowsMalwareSeverity = "low"
+ // WindowsMalwareSeverityVModerate undocumented
+ WindowsMalwareSeverityVModerate WindowsMalwareSeverity = "moderate"
+ // WindowsMalwareSeverityVHigh undocumented
+ WindowsMalwareSeverityVHigh WindowsMalwareSeverity = "high"
+ // WindowsMalwareSeverityVSevere undocumented
+ WindowsMalwareSeverityVSevere WindowsMalwareSeverity = "severe"
+)
+
+var (
+ // WindowsMalwareSeverityPUnknown is a pointer to WindowsMalwareSeverityVUnknown
+ WindowsMalwareSeverityPUnknown = &_WindowsMalwareSeverityPUnknown
+ // WindowsMalwareSeverityPLow is a pointer to WindowsMalwareSeverityVLow
+ WindowsMalwareSeverityPLow = &_WindowsMalwareSeverityPLow
+ // WindowsMalwareSeverityPModerate is a pointer to WindowsMalwareSeverityVModerate
+ WindowsMalwareSeverityPModerate = &_WindowsMalwareSeverityPModerate
+ // WindowsMalwareSeverityPHigh is a pointer to WindowsMalwareSeverityVHigh
+ WindowsMalwareSeverityPHigh = &_WindowsMalwareSeverityPHigh
+ // WindowsMalwareSeverityPSevere is a pointer to WindowsMalwareSeverityVSevere
+ WindowsMalwareSeverityPSevere = &_WindowsMalwareSeverityPSevere
+)
+
+var (
+ _WindowsMalwareSeverityPUnknown = WindowsMalwareSeverityVUnknown
+ _WindowsMalwareSeverityPLow = WindowsMalwareSeverityVLow
+ _WindowsMalwareSeverityPModerate = WindowsMalwareSeverityVModerate
+ _WindowsMalwareSeverityPHigh = WindowsMalwareSeverityVHigh
+ _WindowsMalwareSeverityPSevere = WindowsMalwareSeverityVSevere
+)
+
+// WindowsMalwareState undocumented
+type WindowsMalwareState string
+
+const (
+ // WindowsMalwareStateVUnknown undocumented
+ WindowsMalwareStateVUnknown WindowsMalwareState = "unknown"
+ // WindowsMalwareStateVDetected undocumented
+ WindowsMalwareStateVDetected WindowsMalwareState = "detected"
+ // WindowsMalwareStateVCleaned undocumented
+ WindowsMalwareStateVCleaned WindowsMalwareState = "cleaned"
+ // WindowsMalwareStateVQuarantined undocumented
+ WindowsMalwareStateVQuarantined WindowsMalwareState = "quarantined"
+ // WindowsMalwareStateVRemoved undocumented
+ WindowsMalwareStateVRemoved WindowsMalwareState = "removed"
+ // WindowsMalwareStateVAllowed undocumented
+ WindowsMalwareStateVAllowed WindowsMalwareState = "allowed"
+ // WindowsMalwareStateVBlocked undocumented
+ WindowsMalwareStateVBlocked WindowsMalwareState = "blocked"
+ // WindowsMalwareStateVCleanFailed undocumented
+ WindowsMalwareStateVCleanFailed WindowsMalwareState = "cleanFailed"
+ // WindowsMalwareStateVQuarantineFailed undocumented
+ WindowsMalwareStateVQuarantineFailed WindowsMalwareState = "quarantineFailed"
+ // WindowsMalwareStateVRemoveFailed undocumented
+ WindowsMalwareStateVRemoveFailed WindowsMalwareState = "removeFailed"
+ // WindowsMalwareStateVAllowFailed undocumented
+ WindowsMalwareStateVAllowFailed WindowsMalwareState = "allowFailed"
+ // WindowsMalwareStateVAbandoned undocumented
+ WindowsMalwareStateVAbandoned WindowsMalwareState = "abandoned"
+ // WindowsMalwareStateVBlockFailed undocumented
+ WindowsMalwareStateVBlockFailed WindowsMalwareState = "blockFailed"
+)
+
+var (
+ // WindowsMalwareStatePUnknown is a pointer to WindowsMalwareStateVUnknown
+ WindowsMalwareStatePUnknown = &_WindowsMalwareStatePUnknown
+ // WindowsMalwareStatePDetected is a pointer to WindowsMalwareStateVDetected
+ WindowsMalwareStatePDetected = &_WindowsMalwareStatePDetected
+ // WindowsMalwareStatePCleaned is a pointer to WindowsMalwareStateVCleaned
+ WindowsMalwareStatePCleaned = &_WindowsMalwareStatePCleaned
+ // WindowsMalwareStatePQuarantined is a pointer to WindowsMalwareStateVQuarantined
+ WindowsMalwareStatePQuarantined = &_WindowsMalwareStatePQuarantined
+ // WindowsMalwareStatePRemoved is a pointer to WindowsMalwareStateVRemoved
+ WindowsMalwareStatePRemoved = &_WindowsMalwareStatePRemoved
+ // WindowsMalwareStatePAllowed is a pointer to WindowsMalwareStateVAllowed
+ WindowsMalwareStatePAllowed = &_WindowsMalwareStatePAllowed
+ // WindowsMalwareStatePBlocked is a pointer to WindowsMalwareStateVBlocked
+ WindowsMalwareStatePBlocked = &_WindowsMalwareStatePBlocked
+ // WindowsMalwareStatePCleanFailed is a pointer to WindowsMalwareStateVCleanFailed
+ WindowsMalwareStatePCleanFailed = &_WindowsMalwareStatePCleanFailed
+ // WindowsMalwareStatePQuarantineFailed is a pointer to WindowsMalwareStateVQuarantineFailed
+ WindowsMalwareStatePQuarantineFailed = &_WindowsMalwareStatePQuarantineFailed
+ // WindowsMalwareStatePRemoveFailed is a pointer to WindowsMalwareStateVRemoveFailed
+ WindowsMalwareStatePRemoveFailed = &_WindowsMalwareStatePRemoveFailed
+ // WindowsMalwareStatePAllowFailed is a pointer to WindowsMalwareStateVAllowFailed
+ WindowsMalwareStatePAllowFailed = &_WindowsMalwareStatePAllowFailed
+ // WindowsMalwareStatePAbandoned is a pointer to WindowsMalwareStateVAbandoned
+ WindowsMalwareStatePAbandoned = &_WindowsMalwareStatePAbandoned
+ // WindowsMalwareStatePBlockFailed is a pointer to WindowsMalwareStateVBlockFailed
+ WindowsMalwareStatePBlockFailed = &_WindowsMalwareStatePBlockFailed
+)
+
+var (
+ _WindowsMalwareStatePUnknown = WindowsMalwareStateVUnknown
+ _WindowsMalwareStatePDetected = WindowsMalwareStateVDetected
+ _WindowsMalwareStatePCleaned = WindowsMalwareStateVCleaned
+ _WindowsMalwareStatePQuarantined = WindowsMalwareStateVQuarantined
+ _WindowsMalwareStatePRemoved = WindowsMalwareStateVRemoved
+ _WindowsMalwareStatePAllowed = WindowsMalwareStateVAllowed
+ _WindowsMalwareStatePBlocked = WindowsMalwareStateVBlocked
+ _WindowsMalwareStatePCleanFailed = WindowsMalwareStateVCleanFailed
+ _WindowsMalwareStatePQuarantineFailed = WindowsMalwareStateVQuarantineFailed
+ _WindowsMalwareStatePRemoveFailed = WindowsMalwareStateVRemoveFailed
+ _WindowsMalwareStatePAllowFailed = WindowsMalwareStateVAllowFailed
+ _WindowsMalwareStatePAbandoned = WindowsMalwareStateVAbandoned
+ _WindowsMalwareStatePBlockFailed = WindowsMalwareStateVBlockFailed
+)
+
+// WindowsMalwareThreatState undocumented
+type WindowsMalwareThreatState string
+
+const (
+ // WindowsMalwareThreatStateVActive undocumented
+ WindowsMalwareThreatStateVActive WindowsMalwareThreatState = "active"
+ // WindowsMalwareThreatStateVActionFailed undocumented
+ WindowsMalwareThreatStateVActionFailed WindowsMalwareThreatState = "actionFailed"
+ // WindowsMalwareThreatStateVManualStepsRequired undocumented
+ WindowsMalwareThreatStateVManualStepsRequired WindowsMalwareThreatState = "manualStepsRequired"
+ // WindowsMalwareThreatStateVFullScanRequired undocumented
+ WindowsMalwareThreatStateVFullScanRequired WindowsMalwareThreatState = "fullScanRequired"
+ // WindowsMalwareThreatStateVRebootRequired undocumented
+ WindowsMalwareThreatStateVRebootRequired WindowsMalwareThreatState = "rebootRequired"
+ // WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures undocumented
+ WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures WindowsMalwareThreatState = "remediatedWithNonCriticalFailures"
+ // WindowsMalwareThreatStateVQuarantined undocumented
+ WindowsMalwareThreatStateVQuarantined WindowsMalwareThreatState = "quarantined"
+ // WindowsMalwareThreatStateVRemoved undocumented
+ WindowsMalwareThreatStateVRemoved WindowsMalwareThreatState = "removed"
+ // WindowsMalwareThreatStateVCleaned undocumented
+ WindowsMalwareThreatStateVCleaned WindowsMalwareThreatState = "cleaned"
+ // WindowsMalwareThreatStateVAllowed undocumented
+ WindowsMalwareThreatStateVAllowed WindowsMalwareThreatState = "allowed"
+ // WindowsMalwareThreatStateVNoStatusCleared undocumented
+ WindowsMalwareThreatStateVNoStatusCleared WindowsMalwareThreatState = "noStatusCleared"
+)
+
+var (
+ // WindowsMalwareThreatStatePActive is a pointer to WindowsMalwareThreatStateVActive
+ WindowsMalwareThreatStatePActive = &_WindowsMalwareThreatStatePActive
+ // WindowsMalwareThreatStatePActionFailed is a pointer to WindowsMalwareThreatStateVActionFailed
+ WindowsMalwareThreatStatePActionFailed = &_WindowsMalwareThreatStatePActionFailed
+ // WindowsMalwareThreatStatePManualStepsRequired is a pointer to WindowsMalwareThreatStateVManualStepsRequired
+ WindowsMalwareThreatStatePManualStepsRequired = &_WindowsMalwareThreatStatePManualStepsRequired
+ // WindowsMalwareThreatStatePFullScanRequired is a pointer to WindowsMalwareThreatStateVFullScanRequired
+ WindowsMalwareThreatStatePFullScanRequired = &_WindowsMalwareThreatStatePFullScanRequired
+ // WindowsMalwareThreatStatePRebootRequired is a pointer to WindowsMalwareThreatStateVRebootRequired
+ WindowsMalwareThreatStatePRebootRequired = &_WindowsMalwareThreatStatePRebootRequired
+ // WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures is a pointer to WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures
+ WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures = &_WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures
+ // WindowsMalwareThreatStatePQuarantined is a pointer to WindowsMalwareThreatStateVQuarantined
+ WindowsMalwareThreatStatePQuarantined = &_WindowsMalwareThreatStatePQuarantined
+ // WindowsMalwareThreatStatePRemoved is a pointer to WindowsMalwareThreatStateVRemoved
+ WindowsMalwareThreatStatePRemoved = &_WindowsMalwareThreatStatePRemoved
+ // WindowsMalwareThreatStatePCleaned is a pointer to WindowsMalwareThreatStateVCleaned
+ WindowsMalwareThreatStatePCleaned = &_WindowsMalwareThreatStatePCleaned
+ // WindowsMalwareThreatStatePAllowed is a pointer to WindowsMalwareThreatStateVAllowed
+ WindowsMalwareThreatStatePAllowed = &_WindowsMalwareThreatStatePAllowed
+ // WindowsMalwareThreatStatePNoStatusCleared is a pointer to WindowsMalwareThreatStateVNoStatusCleared
+ WindowsMalwareThreatStatePNoStatusCleared = &_WindowsMalwareThreatStatePNoStatusCleared
+)
+
+var (
+ _WindowsMalwareThreatStatePActive = WindowsMalwareThreatStateVActive
+ _WindowsMalwareThreatStatePActionFailed = WindowsMalwareThreatStateVActionFailed
+ _WindowsMalwareThreatStatePManualStepsRequired = WindowsMalwareThreatStateVManualStepsRequired
+ _WindowsMalwareThreatStatePFullScanRequired = WindowsMalwareThreatStateVFullScanRequired
+ _WindowsMalwareThreatStatePRebootRequired = WindowsMalwareThreatStateVRebootRequired
+ _WindowsMalwareThreatStatePRemediatedWithNonCriticalFailures = WindowsMalwareThreatStateVRemediatedWithNonCriticalFailures
+ _WindowsMalwareThreatStatePQuarantined = WindowsMalwareThreatStateVQuarantined
+ _WindowsMalwareThreatStatePRemoved = WindowsMalwareThreatStateVRemoved
+ _WindowsMalwareThreatStatePCleaned = WindowsMalwareThreatStateVCleaned
+ _WindowsMalwareThreatStatePAllowed = WindowsMalwareThreatStateVAllowed
+ _WindowsMalwareThreatStatePNoStatusCleared = WindowsMalwareThreatStateVNoStatusCleared
+)
+
+// WindowsPrivacyDataAccessLevel undocumented
+type WindowsPrivacyDataAccessLevel string
+
+const (
+ // WindowsPrivacyDataAccessLevelVNotConfigured undocumented
+ WindowsPrivacyDataAccessLevelVNotConfigured WindowsPrivacyDataAccessLevel = "notConfigured"
+ // WindowsPrivacyDataAccessLevelVForceAllow undocumented
+ WindowsPrivacyDataAccessLevelVForceAllow WindowsPrivacyDataAccessLevel = "forceAllow"
+ // WindowsPrivacyDataAccessLevelVForceDeny undocumented
+ WindowsPrivacyDataAccessLevelVForceDeny WindowsPrivacyDataAccessLevel = "forceDeny"
+ // WindowsPrivacyDataAccessLevelVUserInControl undocumented
+ WindowsPrivacyDataAccessLevelVUserInControl WindowsPrivacyDataAccessLevel = "userInControl"
+)
+
+var (
+ // WindowsPrivacyDataAccessLevelPNotConfigured is a pointer to WindowsPrivacyDataAccessLevelVNotConfigured
+ WindowsPrivacyDataAccessLevelPNotConfigured = &_WindowsPrivacyDataAccessLevelPNotConfigured
+ // WindowsPrivacyDataAccessLevelPForceAllow is a pointer to WindowsPrivacyDataAccessLevelVForceAllow
+ WindowsPrivacyDataAccessLevelPForceAllow = &_WindowsPrivacyDataAccessLevelPForceAllow
+ // WindowsPrivacyDataAccessLevelPForceDeny is a pointer to WindowsPrivacyDataAccessLevelVForceDeny
+ WindowsPrivacyDataAccessLevelPForceDeny = &_WindowsPrivacyDataAccessLevelPForceDeny
+ // WindowsPrivacyDataAccessLevelPUserInControl is a pointer to WindowsPrivacyDataAccessLevelVUserInControl
+ WindowsPrivacyDataAccessLevelPUserInControl = &_WindowsPrivacyDataAccessLevelPUserInControl
+)
+
+var (
+ _WindowsPrivacyDataAccessLevelPNotConfigured = WindowsPrivacyDataAccessLevelVNotConfigured
+ _WindowsPrivacyDataAccessLevelPForceAllow = WindowsPrivacyDataAccessLevelVForceAllow
+ _WindowsPrivacyDataAccessLevelPForceDeny = WindowsPrivacyDataAccessLevelVForceDeny
+ _WindowsPrivacyDataAccessLevelPUserInControl = WindowsPrivacyDataAccessLevelVUserInControl
+)
+
+// WindowsPrivacyDataCategory undocumented
+type WindowsPrivacyDataCategory string
+
+const (
+ // WindowsPrivacyDataCategoryVNotConfigured undocumented
+ WindowsPrivacyDataCategoryVNotConfigured WindowsPrivacyDataCategory = "notConfigured"
+ // WindowsPrivacyDataCategoryVAccountInfo undocumented
+ WindowsPrivacyDataCategoryVAccountInfo WindowsPrivacyDataCategory = "accountInfo"
+ // WindowsPrivacyDataCategoryVAppsRunInBackground undocumented
+ WindowsPrivacyDataCategoryVAppsRunInBackground WindowsPrivacyDataCategory = "appsRunInBackground"
+ // WindowsPrivacyDataCategoryVCalendar undocumented
+ WindowsPrivacyDataCategoryVCalendar WindowsPrivacyDataCategory = "calendar"
+ // WindowsPrivacyDataCategoryVCallHistory undocumented
+ WindowsPrivacyDataCategoryVCallHistory WindowsPrivacyDataCategory = "callHistory"
+ // WindowsPrivacyDataCategoryVCamera undocumented
+ WindowsPrivacyDataCategoryVCamera WindowsPrivacyDataCategory = "camera"
+ // WindowsPrivacyDataCategoryVContacts undocumented
+ WindowsPrivacyDataCategoryVContacts WindowsPrivacyDataCategory = "contacts"
+ // WindowsPrivacyDataCategoryVDiagnosticsInfo undocumented
+ WindowsPrivacyDataCategoryVDiagnosticsInfo WindowsPrivacyDataCategory = "diagnosticsInfo"
+ // WindowsPrivacyDataCategoryVEmail undocumented
+ WindowsPrivacyDataCategoryVEmail WindowsPrivacyDataCategory = "email"
+ // WindowsPrivacyDataCategoryVLocation undocumented
+ WindowsPrivacyDataCategoryVLocation WindowsPrivacyDataCategory = "location"
+ // WindowsPrivacyDataCategoryVMessaging undocumented
+ WindowsPrivacyDataCategoryVMessaging WindowsPrivacyDataCategory = "messaging"
+ // WindowsPrivacyDataCategoryVMicrophone undocumented
+ WindowsPrivacyDataCategoryVMicrophone WindowsPrivacyDataCategory = "microphone"
+ // WindowsPrivacyDataCategoryVMotion undocumented
+ WindowsPrivacyDataCategoryVMotion WindowsPrivacyDataCategory = "motion"
+ // WindowsPrivacyDataCategoryVNotifications undocumented
+ WindowsPrivacyDataCategoryVNotifications WindowsPrivacyDataCategory = "notifications"
+ // WindowsPrivacyDataCategoryVPhone undocumented
+ WindowsPrivacyDataCategoryVPhone WindowsPrivacyDataCategory = "phone"
+ // WindowsPrivacyDataCategoryVRadios undocumented
+ WindowsPrivacyDataCategoryVRadios WindowsPrivacyDataCategory = "radios"
+ // WindowsPrivacyDataCategoryVTasks undocumented
+ WindowsPrivacyDataCategoryVTasks WindowsPrivacyDataCategory = "tasks"
+ // WindowsPrivacyDataCategoryVSyncWithDevices undocumented
+ WindowsPrivacyDataCategoryVSyncWithDevices WindowsPrivacyDataCategory = "syncWithDevices"
+ // WindowsPrivacyDataCategoryVTrustedDevices undocumented
+ WindowsPrivacyDataCategoryVTrustedDevices WindowsPrivacyDataCategory = "trustedDevices"
+)
+
+var (
+ // WindowsPrivacyDataCategoryPNotConfigured is a pointer to WindowsPrivacyDataCategoryVNotConfigured
+ WindowsPrivacyDataCategoryPNotConfigured = &_WindowsPrivacyDataCategoryPNotConfigured
+ // WindowsPrivacyDataCategoryPAccountInfo is a pointer to WindowsPrivacyDataCategoryVAccountInfo
+ WindowsPrivacyDataCategoryPAccountInfo = &_WindowsPrivacyDataCategoryPAccountInfo
+ // WindowsPrivacyDataCategoryPAppsRunInBackground is a pointer to WindowsPrivacyDataCategoryVAppsRunInBackground
+ WindowsPrivacyDataCategoryPAppsRunInBackground = &_WindowsPrivacyDataCategoryPAppsRunInBackground
+ // WindowsPrivacyDataCategoryPCalendar is a pointer to WindowsPrivacyDataCategoryVCalendar
+ WindowsPrivacyDataCategoryPCalendar = &_WindowsPrivacyDataCategoryPCalendar
+ // WindowsPrivacyDataCategoryPCallHistory is a pointer to WindowsPrivacyDataCategoryVCallHistory
+ WindowsPrivacyDataCategoryPCallHistory = &_WindowsPrivacyDataCategoryPCallHistory
+ // WindowsPrivacyDataCategoryPCamera is a pointer to WindowsPrivacyDataCategoryVCamera
+ WindowsPrivacyDataCategoryPCamera = &_WindowsPrivacyDataCategoryPCamera
+ // WindowsPrivacyDataCategoryPContacts is a pointer to WindowsPrivacyDataCategoryVContacts
+ WindowsPrivacyDataCategoryPContacts = &_WindowsPrivacyDataCategoryPContacts
+ // WindowsPrivacyDataCategoryPDiagnosticsInfo is a pointer to WindowsPrivacyDataCategoryVDiagnosticsInfo
+ WindowsPrivacyDataCategoryPDiagnosticsInfo = &_WindowsPrivacyDataCategoryPDiagnosticsInfo
+ // WindowsPrivacyDataCategoryPEmail is a pointer to WindowsPrivacyDataCategoryVEmail
+ WindowsPrivacyDataCategoryPEmail = &_WindowsPrivacyDataCategoryPEmail
+ // WindowsPrivacyDataCategoryPLocation is a pointer to WindowsPrivacyDataCategoryVLocation
+ WindowsPrivacyDataCategoryPLocation = &_WindowsPrivacyDataCategoryPLocation
+ // WindowsPrivacyDataCategoryPMessaging is a pointer to WindowsPrivacyDataCategoryVMessaging
+ WindowsPrivacyDataCategoryPMessaging = &_WindowsPrivacyDataCategoryPMessaging
+ // WindowsPrivacyDataCategoryPMicrophone is a pointer to WindowsPrivacyDataCategoryVMicrophone
+ WindowsPrivacyDataCategoryPMicrophone = &_WindowsPrivacyDataCategoryPMicrophone
+ // WindowsPrivacyDataCategoryPMotion is a pointer to WindowsPrivacyDataCategoryVMotion
+ WindowsPrivacyDataCategoryPMotion = &_WindowsPrivacyDataCategoryPMotion
+ // WindowsPrivacyDataCategoryPNotifications is a pointer to WindowsPrivacyDataCategoryVNotifications
+ WindowsPrivacyDataCategoryPNotifications = &_WindowsPrivacyDataCategoryPNotifications
+ // WindowsPrivacyDataCategoryPPhone is a pointer to WindowsPrivacyDataCategoryVPhone
+ WindowsPrivacyDataCategoryPPhone = &_WindowsPrivacyDataCategoryPPhone
+ // WindowsPrivacyDataCategoryPRadios is a pointer to WindowsPrivacyDataCategoryVRadios
+ WindowsPrivacyDataCategoryPRadios = &_WindowsPrivacyDataCategoryPRadios
+ // WindowsPrivacyDataCategoryPTasks is a pointer to WindowsPrivacyDataCategoryVTasks
+ WindowsPrivacyDataCategoryPTasks = &_WindowsPrivacyDataCategoryPTasks
+ // WindowsPrivacyDataCategoryPSyncWithDevices is a pointer to WindowsPrivacyDataCategoryVSyncWithDevices
+ WindowsPrivacyDataCategoryPSyncWithDevices = &_WindowsPrivacyDataCategoryPSyncWithDevices
+ // WindowsPrivacyDataCategoryPTrustedDevices is a pointer to WindowsPrivacyDataCategoryVTrustedDevices
+ WindowsPrivacyDataCategoryPTrustedDevices = &_WindowsPrivacyDataCategoryPTrustedDevices
+)
+
+var (
+ _WindowsPrivacyDataCategoryPNotConfigured = WindowsPrivacyDataCategoryVNotConfigured
+ _WindowsPrivacyDataCategoryPAccountInfo = WindowsPrivacyDataCategoryVAccountInfo
+ _WindowsPrivacyDataCategoryPAppsRunInBackground = WindowsPrivacyDataCategoryVAppsRunInBackground
+ _WindowsPrivacyDataCategoryPCalendar = WindowsPrivacyDataCategoryVCalendar
+ _WindowsPrivacyDataCategoryPCallHistory = WindowsPrivacyDataCategoryVCallHistory
+ _WindowsPrivacyDataCategoryPCamera = WindowsPrivacyDataCategoryVCamera
+ _WindowsPrivacyDataCategoryPContacts = WindowsPrivacyDataCategoryVContacts
+ _WindowsPrivacyDataCategoryPDiagnosticsInfo = WindowsPrivacyDataCategoryVDiagnosticsInfo
+ _WindowsPrivacyDataCategoryPEmail = WindowsPrivacyDataCategoryVEmail
+ _WindowsPrivacyDataCategoryPLocation = WindowsPrivacyDataCategoryVLocation
+ _WindowsPrivacyDataCategoryPMessaging = WindowsPrivacyDataCategoryVMessaging
+ _WindowsPrivacyDataCategoryPMicrophone = WindowsPrivacyDataCategoryVMicrophone
+ _WindowsPrivacyDataCategoryPMotion = WindowsPrivacyDataCategoryVMotion
+ _WindowsPrivacyDataCategoryPNotifications = WindowsPrivacyDataCategoryVNotifications
+ _WindowsPrivacyDataCategoryPPhone = WindowsPrivacyDataCategoryVPhone
+ _WindowsPrivacyDataCategoryPRadios = WindowsPrivacyDataCategoryVRadios
+ _WindowsPrivacyDataCategoryPTasks = WindowsPrivacyDataCategoryVTasks
+ _WindowsPrivacyDataCategoryPSyncWithDevices = WindowsPrivacyDataCategoryVSyncWithDevices
+ _WindowsPrivacyDataCategoryPTrustedDevices = WindowsPrivacyDataCategoryVTrustedDevices
+)
+
+// WindowsSModeConfiguration undocumented
+type WindowsSModeConfiguration string
+
+const (
+ // WindowsSModeConfigurationVNoRestriction undocumented
+ WindowsSModeConfigurationVNoRestriction WindowsSModeConfiguration = "noRestriction"
+ // WindowsSModeConfigurationVBlock undocumented
+ WindowsSModeConfigurationVBlock WindowsSModeConfiguration = "block"
+ // WindowsSModeConfigurationVUnlock undocumented
+ WindowsSModeConfigurationVUnlock WindowsSModeConfiguration = "unlock"
+)
+
+var (
+ // WindowsSModeConfigurationPNoRestriction is a pointer to WindowsSModeConfigurationVNoRestriction
+ WindowsSModeConfigurationPNoRestriction = &_WindowsSModeConfigurationPNoRestriction
+ // WindowsSModeConfigurationPBlock is a pointer to WindowsSModeConfigurationVBlock
+ WindowsSModeConfigurationPBlock = &_WindowsSModeConfigurationPBlock
+ // WindowsSModeConfigurationPUnlock is a pointer to WindowsSModeConfigurationVUnlock
+ WindowsSModeConfigurationPUnlock = &_WindowsSModeConfigurationPUnlock
+)
+
+var (
+ _WindowsSModeConfigurationPNoRestriction = WindowsSModeConfigurationVNoRestriction
+ _WindowsSModeConfigurationPBlock = WindowsSModeConfigurationVBlock
+ _WindowsSModeConfigurationPUnlock = WindowsSModeConfigurationVUnlock
+)
+
+// WindowsSpotlightEnablementSettings undocumented
+type WindowsSpotlightEnablementSettings string
+
+const (
+ // WindowsSpotlightEnablementSettingsVNotConfigured undocumented
+ WindowsSpotlightEnablementSettingsVNotConfigured WindowsSpotlightEnablementSettings = "notConfigured"
+ // WindowsSpotlightEnablementSettingsVDisabled undocumented
+ WindowsSpotlightEnablementSettingsVDisabled WindowsSpotlightEnablementSettings = "disabled"
+ // WindowsSpotlightEnablementSettingsVEnabled undocumented
+ WindowsSpotlightEnablementSettingsVEnabled WindowsSpotlightEnablementSettings = "enabled"
+)
+
+var (
+ // WindowsSpotlightEnablementSettingsPNotConfigured is a pointer to WindowsSpotlightEnablementSettingsVNotConfigured
+ WindowsSpotlightEnablementSettingsPNotConfigured = &_WindowsSpotlightEnablementSettingsPNotConfigured
+ // WindowsSpotlightEnablementSettingsPDisabled is a pointer to WindowsSpotlightEnablementSettingsVDisabled
+ WindowsSpotlightEnablementSettingsPDisabled = &_WindowsSpotlightEnablementSettingsPDisabled
+ // WindowsSpotlightEnablementSettingsPEnabled is a pointer to WindowsSpotlightEnablementSettingsVEnabled
+ WindowsSpotlightEnablementSettingsPEnabled = &_WindowsSpotlightEnablementSettingsPEnabled
+)
+
+var (
+ _WindowsSpotlightEnablementSettingsPNotConfigured = WindowsSpotlightEnablementSettingsVNotConfigured
+ _WindowsSpotlightEnablementSettingsPDisabled = WindowsSpotlightEnablementSettingsVDisabled
+ _WindowsSpotlightEnablementSettingsPEnabled = WindowsSpotlightEnablementSettingsVEnabled
+)
+
+// WindowsStartMenuAppListVisibilityType undocumented
+type WindowsStartMenuAppListVisibilityType string
+
+const (
+ // WindowsStartMenuAppListVisibilityTypeVUserDefined undocumented
+ WindowsStartMenuAppListVisibilityTypeVUserDefined WindowsStartMenuAppListVisibilityType = "userDefined"
+ // WindowsStartMenuAppListVisibilityTypeVCollapse undocumented
+ WindowsStartMenuAppListVisibilityTypeVCollapse WindowsStartMenuAppListVisibilityType = "collapse"
+ // WindowsStartMenuAppListVisibilityTypeVRemove undocumented
+ WindowsStartMenuAppListVisibilityTypeVRemove WindowsStartMenuAppListVisibilityType = "remove"
+ // WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp undocumented
+ WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp WindowsStartMenuAppListVisibilityType = "disableSettingsApp"
+)
+
+var (
+ // WindowsStartMenuAppListVisibilityTypePUserDefined is a pointer to WindowsStartMenuAppListVisibilityTypeVUserDefined
+ WindowsStartMenuAppListVisibilityTypePUserDefined = &_WindowsStartMenuAppListVisibilityTypePUserDefined
+ // WindowsStartMenuAppListVisibilityTypePCollapse is a pointer to WindowsStartMenuAppListVisibilityTypeVCollapse
+ WindowsStartMenuAppListVisibilityTypePCollapse = &_WindowsStartMenuAppListVisibilityTypePCollapse
+ // WindowsStartMenuAppListVisibilityTypePRemove is a pointer to WindowsStartMenuAppListVisibilityTypeVRemove
+ WindowsStartMenuAppListVisibilityTypePRemove = &_WindowsStartMenuAppListVisibilityTypePRemove
+ // WindowsStartMenuAppListVisibilityTypePDisableSettingsApp is a pointer to WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp
+ WindowsStartMenuAppListVisibilityTypePDisableSettingsApp = &_WindowsStartMenuAppListVisibilityTypePDisableSettingsApp
+)
+
+var (
+ _WindowsStartMenuAppListVisibilityTypePUserDefined = WindowsStartMenuAppListVisibilityTypeVUserDefined
+ _WindowsStartMenuAppListVisibilityTypePCollapse = WindowsStartMenuAppListVisibilityTypeVCollapse
+ _WindowsStartMenuAppListVisibilityTypePRemove = WindowsStartMenuAppListVisibilityTypeVRemove
+ _WindowsStartMenuAppListVisibilityTypePDisableSettingsApp = WindowsStartMenuAppListVisibilityTypeVDisableSettingsApp
+)
+
+// WindowsStartMenuModeType undocumented
+type WindowsStartMenuModeType string
+
+const (
+ // WindowsStartMenuModeTypeVUserDefined undocumented
+ WindowsStartMenuModeTypeVUserDefined WindowsStartMenuModeType = "userDefined"
+ // WindowsStartMenuModeTypeVFullScreen undocumented
+ WindowsStartMenuModeTypeVFullScreen WindowsStartMenuModeType = "fullScreen"
+ // WindowsStartMenuModeTypeVNonFullScreen undocumented
+ WindowsStartMenuModeTypeVNonFullScreen WindowsStartMenuModeType = "nonFullScreen"
+)
+
+var (
+ // WindowsStartMenuModeTypePUserDefined is a pointer to WindowsStartMenuModeTypeVUserDefined
+ WindowsStartMenuModeTypePUserDefined = &_WindowsStartMenuModeTypePUserDefined
+ // WindowsStartMenuModeTypePFullScreen is a pointer to WindowsStartMenuModeTypeVFullScreen
+ WindowsStartMenuModeTypePFullScreen = &_WindowsStartMenuModeTypePFullScreen
+ // WindowsStartMenuModeTypePNonFullScreen is a pointer to WindowsStartMenuModeTypeVNonFullScreen
+ WindowsStartMenuModeTypePNonFullScreen = &_WindowsStartMenuModeTypePNonFullScreen
+)
+
+var (
+ _WindowsStartMenuModeTypePUserDefined = WindowsStartMenuModeTypeVUserDefined
+ _WindowsStartMenuModeTypePFullScreen = WindowsStartMenuModeTypeVFullScreen
+ _WindowsStartMenuModeTypePNonFullScreen = WindowsStartMenuModeTypeVNonFullScreen
+)
+
+// WindowsUpdateForBusinessUpdateWeeks undocumented
+type WindowsUpdateForBusinessUpdateWeeks string
+
+const (
+ // WindowsUpdateForBusinessUpdateWeeksVUserDefined undocumented
+ WindowsUpdateForBusinessUpdateWeeksVUserDefined WindowsUpdateForBusinessUpdateWeeks = "userDefined"
+ // WindowsUpdateForBusinessUpdateWeeksVFirstWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVFirstWeek WindowsUpdateForBusinessUpdateWeeks = "firstWeek"
+ // WindowsUpdateForBusinessUpdateWeeksVSecondWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVSecondWeek WindowsUpdateForBusinessUpdateWeeks = "secondWeek"
+ // WindowsUpdateForBusinessUpdateWeeksVThirdWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVThirdWeek WindowsUpdateForBusinessUpdateWeeks = "thirdWeek"
+ // WindowsUpdateForBusinessUpdateWeeksVFourthWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVFourthWeek WindowsUpdateForBusinessUpdateWeeks = "fourthWeek"
+ // WindowsUpdateForBusinessUpdateWeeksVEveryWeek undocumented
+ WindowsUpdateForBusinessUpdateWeeksVEveryWeek WindowsUpdateForBusinessUpdateWeeks = "everyWeek"
+)
+
+var (
+ // WindowsUpdateForBusinessUpdateWeeksPUserDefined is a pointer to WindowsUpdateForBusinessUpdateWeeksVUserDefined
+ WindowsUpdateForBusinessUpdateWeeksPUserDefined = &_WindowsUpdateForBusinessUpdateWeeksPUserDefined
+ // WindowsUpdateForBusinessUpdateWeeksPFirstWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVFirstWeek
+ WindowsUpdateForBusinessUpdateWeeksPFirstWeek = &_WindowsUpdateForBusinessUpdateWeeksPFirstWeek
+ // WindowsUpdateForBusinessUpdateWeeksPSecondWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVSecondWeek
+ WindowsUpdateForBusinessUpdateWeeksPSecondWeek = &_WindowsUpdateForBusinessUpdateWeeksPSecondWeek
+ // WindowsUpdateForBusinessUpdateWeeksPThirdWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVThirdWeek
+ WindowsUpdateForBusinessUpdateWeeksPThirdWeek = &_WindowsUpdateForBusinessUpdateWeeksPThirdWeek
+ // WindowsUpdateForBusinessUpdateWeeksPFourthWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVFourthWeek
+ WindowsUpdateForBusinessUpdateWeeksPFourthWeek = &_WindowsUpdateForBusinessUpdateWeeksPFourthWeek
+ // WindowsUpdateForBusinessUpdateWeeksPEveryWeek is a pointer to WindowsUpdateForBusinessUpdateWeeksVEveryWeek
+ WindowsUpdateForBusinessUpdateWeeksPEveryWeek = &_WindowsUpdateForBusinessUpdateWeeksPEveryWeek
+)
+
+var (
+ _WindowsUpdateForBusinessUpdateWeeksPUserDefined = WindowsUpdateForBusinessUpdateWeeksVUserDefined
+ _WindowsUpdateForBusinessUpdateWeeksPFirstWeek = WindowsUpdateForBusinessUpdateWeeksVFirstWeek
+ _WindowsUpdateForBusinessUpdateWeeksPSecondWeek = WindowsUpdateForBusinessUpdateWeeksVSecondWeek
+ _WindowsUpdateForBusinessUpdateWeeksPThirdWeek = WindowsUpdateForBusinessUpdateWeeksVThirdWeek
+ _WindowsUpdateForBusinessUpdateWeeksPFourthWeek = WindowsUpdateForBusinessUpdateWeeksVFourthWeek
+ _WindowsUpdateForBusinessUpdateWeeksPEveryWeek = WindowsUpdateForBusinessUpdateWeeksVEveryWeek
+)
+
+// WindowsUpdateNotificationDisplayOption undocumented
+type WindowsUpdateNotificationDisplayOption string
+
+const (
+ // WindowsUpdateNotificationDisplayOptionVNotConfigured undocumented
+ WindowsUpdateNotificationDisplayOptionVNotConfigured WindowsUpdateNotificationDisplayOption = "notConfigured"
+ // WindowsUpdateNotificationDisplayOptionVDefaultNotifications undocumented
+ WindowsUpdateNotificationDisplayOptionVDefaultNotifications WindowsUpdateNotificationDisplayOption = "defaultNotifications"
+ // WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly undocumented
+ WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly WindowsUpdateNotificationDisplayOption = "restartWarningsOnly"
+ // WindowsUpdateNotificationDisplayOptionVDisableAllNotifications undocumented
+ WindowsUpdateNotificationDisplayOptionVDisableAllNotifications WindowsUpdateNotificationDisplayOption = "disableAllNotifications"
+)
+
+var (
+ // WindowsUpdateNotificationDisplayOptionPNotConfigured is a pointer to WindowsUpdateNotificationDisplayOptionVNotConfigured
+ WindowsUpdateNotificationDisplayOptionPNotConfigured = &_WindowsUpdateNotificationDisplayOptionPNotConfigured
+ // WindowsUpdateNotificationDisplayOptionPDefaultNotifications is a pointer to WindowsUpdateNotificationDisplayOptionVDefaultNotifications
+ WindowsUpdateNotificationDisplayOptionPDefaultNotifications = &_WindowsUpdateNotificationDisplayOptionPDefaultNotifications
+ // WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly is a pointer to WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly
+ WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly = &_WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly
+ // WindowsUpdateNotificationDisplayOptionPDisableAllNotifications is a pointer to WindowsUpdateNotificationDisplayOptionVDisableAllNotifications
+ WindowsUpdateNotificationDisplayOptionPDisableAllNotifications = &_WindowsUpdateNotificationDisplayOptionPDisableAllNotifications
+)
+
+var (
+ _WindowsUpdateNotificationDisplayOptionPNotConfigured = WindowsUpdateNotificationDisplayOptionVNotConfigured
+ _WindowsUpdateNotificationDisplayOptionPDefaultNotifications = WindowsUpdateNotificationDisplayOptionVDefaultNotifications
+ _WindowsUpdateNotificationDisplayOptionPRestartWarningsOnly = WindowsUpdateNotificationDisplayOptionVRestartWarningsOnly
+ _WindowsUpdateNotificationDisplayOptionPDisableAllNotifications = WindowsUpdateNotificationDisplayOptionVDisableAllNotifications
+)
+
+// WindowsUpdateStatus undocumented
+type WindowsUpdateStatus string
+
+const (
+ // WindowsUpdateStatusVUpToDate undocumented
+ WindowsUpdateStatusVUpToDate WindowsUpdateStatus = "upToDate"
+ // WindowsUpdateStatusVPendingInstallation undocumented
+ WindowsUpdateStatusVPendingInstallation WindowsUpdateStatus = "pendingInstallation"
+ // WindowsUpdateStatusVPendingReboot undocumented
+ WindowsUpdateStatusVPendingReboot WindowsUpdateStatus = "pendingReboot"
+ // WindowsUpdateStatusVFailed undocumented
+ WindowsUpdateStatusVFailed WindowsUpdateStatus = "failed"
+)
+
+var (
+ // WindowsUpdateStatusPUpToDate is a pointer to WindowsUpdateStatusVUpToDate
+ WindowsUpdateStatusPUpToDate = &_WindowsUpdateStatusPUpToDate
+ // WindowsUpdateStatusPPendingInstallation is a pointer to WindowsUpdateStatusVPendingInstallation
+ WindowsUpdateStatusPPendingInstallation = &_WindowsUpdateStatusPPendingInstallation
+ // WindowsUpdateStatusPPendingReboot is a pointer to WindowsUpdateStatusVPendingReboot
+ WindowsUpdateStatusPPendingReboot = &_WindowsUpdateStatusPPendingReboot
+ // WindowsUpdateStatusPFailed is a pointer to WindowsUpdateStatusVFailed
+ WindowsUpdateStatusPFailed = &_WindowsUpdateStatusPFailed
+)
+
+var (
+ _WindowsUpdateStatusPUpToDate = WindowsUpdateStatusVUpToDate
+ _WindowsUpdateStatusPPendingInstallation = WindowsUpdateStatusVPendingInstallation
+ _WindowsUpdateStatusPPendingReboot = WindowsUpdateStatusVPendingReboot
+ _WindowsUpdateStatusPFailed = WindowsUpdateStatusVFailed
+)
+
+// WindowsUpdateType undocumented
+type WindowsUpdateType string
+
+const (
+ // WindowsUpdateTypeVUserDefined undocumented
+ WindowsUpdateTypeVUserDefined WindowsUpdateType = "userDefined"
+ // WindowsUpdateTypeVAll undocumented
+ WindowsUpdateTypeVAll WindowsUpdateType = "all"
+ // WindowsUpdateTypeVBusinessReadyOnly undocumented
+ WindowsUpdateTypeVBusinessReadyOnly WindowsUpdateType = "businessReadyOnly"
+ // WindowsUpdateTypeVWindowsInsiderBuildFast undocumented
+ WindowsUpdateTypeVWindowsInsiderBuildFast WindowsUpdateType = "windowsInsiderBuildFast"
+ // WindowsUpdateTypeVWindowsInsiderBuildSlow undocumented
+ WindowsUpdateTypeVWindowsInsiderBuildSlow WindowsUpdateType = "windowsInsiderBuildSlow"
+ // WindowsUpdateTypeVWindowsInsiderBuildRelease undocumented
+ WindowsUpdateTypeVWindowsInsiderBuildRelease WindowsUpdateType = "windowsInsiderBuildRelease"
+)
+
+var (
+ // WindowsUpdateTypePUserDefined is a pointer to WindowsUpdateTypeVUserDefined
+ WindowsUpdateTypePUserDefined = &_WindowsUpdateTypePUserDefined
+ // WindowsUpdateTypePAll is a pointer to WindowsUpdateTypeVAll
+ WindowsUpdateTypePAll = &_WindowsUpdateTypePAll
+ // WindowsUpdateTypePBusinessReadyOnly is a pointer to WindowsUpdateTypeVBusinessReadyOnly
+ WindowsUpdateTypePBusinessReadyOnly = &_WindowsUpdateTypePBusinessReadyOnly
+ // WindowsUpdateTypePWindowsInsiderBuildFast is a pointer to WindowsUpdateTypeVWindowsInsiderBuildFast
+ WindowsUpdateTypePWindowsInsiderBuildFast = &_WindowsUpdateTypePWindowsInsiderBuildFast
+ // WindowsUpdateTypePWindowsInsiderBuildSlow is a pointer to WindowsUpdateTypeVWindowsInsiderBuildSlow
+ WindowsUpdateTypePWindowsInsiderBuildSlow = &_WindowsUpdateTypePWindowsInsiderBuildSlow
+ // WindowsUpdateTypePWindowsInsiderBuildRelease is a pointer to WindowsUpdateTypeVWindowsInsiderBuildRelease
+ WindowsUpdateTypePWindowsInsiderBuildRelease = &_WindowsUpdateTypePWindowsInsiderBuildRelease
+)
+
+var (
+ _WindowsUpdateTypePUserDefined = WindowsUpdateTypeVUserDefined
+ _WindowsUpdateTypePAll = WindowsUpdateTypeVAll
+ _WindowsUpdateTypePBusinessReadyOnly = WindowsUpdateTypeVBusinessReadyOnly
+ _WindowsUpdateTypePWindowsInsiderBuildFast = WindowsUpdateTypeVWindowsInsiderBuildFast
+ _WindowsUpdateTypePWindowsInsiderBuildSlow = WindowsUpdateTypeVWindowsInsiderBuildSlow
+ _WindowsUpdateTypePWindowsInsiderBuildRelease = WindowsUpdateTypeVWindowsInsiderBuildRelease
+)
+
+// WindowsUserAccountControlSettings undocumented
+type WindowsUserAccountControlSettings string
+
+const (
+ // WindowsUserAccountControlSettingsVUserDefined undocumented
+ WindowsUserAccountControlSettingsVUserDefined WindowsUserAccountControlSettings = "userDefined"
+ // WindowsUserAccountControlSettingsVAlwaysNotify undocumented
+ WindowsUserAccountControlSettingsVAlwaysNotify WindowsUserAccountControlSettings = "alwaysNotify"
+ // WindowsUserAccountControlSettingsVNotifyOnAppChanges undocumented
+ WindowsUserAccountControlSettingsVNotifyOnAppChanges WindowsUserAccountControlSettings = "notifyOnAppChanges"
+ // WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming undocumented
+ WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming WindowsUserAccountControlSettings = "notifyOnAppChangesWithoutDimming"
+ // WindowsUserAccountControlSettingsVNeverNotify undocumented
+ WindowsUserAccountControlSettingsVNeverNotify WindowsUserAccountControlSettings = "neverNotify"
+)
+
+var (
+ // WindowsUserAccountControlSettingsPUserDefined is a pointer to WindowsUserAccountControlSettingsVUserDefined
+ WindowsUserAccountControlSettingsPUserDefined = &_WindowsUserAccountControlSettingsPUserDefined
+ // WindowsUserAccountControlSettingsPAlwaysNotify is a pointer to WindowsUserAccountControlSettingsVAlwaysNotify
+ WindowsUserAccountControlSettingsPAlwaysNotify = &_WindowsUserAccountControlSettingsPAlwaysNotify
+ // WindowsUserAccountControlSettingsPNotifyOnAppChanges is a pointer to WindowsUserAccountControlSettingsVNotifyOnAppChanges
+ WindowsUserAccountControlSettingsPNotifyOnAppChanges = &_WindowsUserAccountControlSettingsPNotifyOnAppChanges
+ // WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming is a pointer to WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming
+ WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming = &_WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming
+ // WindowsUserAccountControlSettingsPNeverNotify is a pointer to WindowsUserAccountControlSettingsVNeverNotify
+ WindowsUserAccountControlSettingsPNeverNotify = &_WindowsUserAccountControlSettingsPNeverNotify
+)
+
+var (
+ _WindowsUserAccountControlSettingsPUserDefined = WindowsUserAccountControlSettingsVUserDefined
+ _WindowsUserAccountControlSettingsPAlwaysNotify = WindowsUserAccountControlSettingsVAlwaysNotify
+ _WindowsUserAccountControlSettingsPNotifyOnAppChanges = WindowsUserAccountControlSettingsVNotifyOnAppChanges
+ _WindowsUserAccountControlSettingsPNotifyOnAppChangesWithoutDimming = WindowsUserAccountControlSettingsVNotifyOnAppChangesWithoutDimming
+ _WindowsUserAccountControlSettingsPNeverNotify = WindowsUserAccountControlSettingsVNeverNotify
+)
+
+// WindowsUserType undocumented
+type WindowsUserType string
+
+const (
+ // WindowsUserTypeVAdministrator undocumented
+ WindowsUserTypeVAdministrator WindowsUserType = "administrator"
+ // WindowsUserTypeVStandard undocumented
+ WindowsUserTypeVStandard WindowsUserType = "standard"
+)
+
+var (
+ // WindowsUserTypePAdministrator is a pointer to WindowsUserTypeVAdministrator
+ WindowsUserTypePAdministrator = &_WindowsUserTypePAdministrator
+ // WindowsUserTypePStandard is a pointer to WindowsUserTypeVStandard
+ WindowsUserTypePStandard = &_WindowsUserTypePStandard
+)
+
+var (
+ _WindowsUserTypePAdministrator = WindowsUserTypeVAdministrator
+ _WindowsUserTypePStandard = WindowsUserTypeVStandard
+)
+
+// WindowsVPNConnectionType undocumented
+type WindowsVPNConnectionType string
+
+const (
+ // WindowsVPNConnectionTypeVPulseSecure undocumented
+ WindowsVPNConnectionTypeVPulseSecure WindowsVPNConnectionType = "pulseSecure"
+ // WindowsVPNConnectionTypeVF5EdgeClient undocumented
+ WindowsVPNConnectionTypeVF5EdgeClient WindowsVPNConnectionType = "f5EdgeClient"
+ // WindowsVPNConnectionTypeVDellSonicWallMobileConnect undocumented
+ WindowsVPNConnectionTypeVDellSonicWallMobileConnect WindowsVPNConnectionType = "dellSonicWallMobileConnect"
+ // WindowsVPNConnectionTypeVCheckPointCapsuleVPN undocumented
+ WindowsVPNConnectionTypeVCheckPointCapsuleVPN WindowsVPNConnectionType = "checkPointCapsuleVpn"
+)
+
+var (
+ // WindowsVPNConnectionTypePPulseSecure is a pointer to WindowsVPNConnectionTypeVPulseSecure
+ WindowsVPNConnectionTypePPulseSecure = &_WindowsVPNConnectionTypePPulseSecure
+ // WindowsVPNConnectionTypePF5EdgeClient is a pointer to WindowsVPNConnectionTypeVF5EdgeClient
+ WindowsVPNConnectionTypePF5EdgeClient = &_WindowsVPNConnectionTypePF5EdgeClient
+ // WindowsVPNConnectionTypePDellSonicWallMobileConnect is a pointer to WindowsVPNConnectionTypeVDellSonicWallMobileConnect
+ WindowsVPNConnectionTypePDellSonicWallMobileConnect = &_WindowsVPNConnectionTypePDellSonicWallMobileConnect
+ // WindowsVPNConnectionTypePCheckPointCapsuleVPN is a pointer to WindowsVPNConnectionTypeVCheckPointCapsuleVPN
+ WindowsVPNConnectionTypePCheckPointCapsuleVPN = &_WindowsVPNConnectionTypePCheckPointCapsuleVPN
+)
+
+var (
+ _WindowsVPNConnectionTypePPulseSecure = WindowsVPNConnectionTypeVPulseSecure
+ _WindowsVPNConnectionTypePF5EdgeClient = WindowsVPNConnectionTypeVF5EdgeClient
+ _WindowsVPNConnectionTypePDellSonicWallMobileConnect = WindowsVPNConnectionTypeVDellSonicWallMobileConnect
+ _WindowsVPNConnectionTypePCheckPointCapsuleVPN = WindowsVPNConnectionTypeVCheckPointCapsuleVPN
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows10.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows10.go
new file mode 100644
index 00000000..82c6825c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWindows10.go
@@ -0,0 +1,307 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows10AppType undocumented
+type Windows10AppType string
+
+const (
+ // Windows10AppTypeVDesktop undocumented
+ Windows10AppTypeVDesktop Windows10AppType = "desktop"
+ // Windows10AppTypeVUniversal undocumented
+ Windows10AppTypeVUniversal Windows10AppType = "universal"
+)
+
+var (
+ // Windows10AppTypePDesktop is a pointer to Windows10AppTypeVDesktop
+ Windows10AppTypePDesktop = &_Windows10AppTypePDesktop
+ // Windows10AppTypePUniversal is a pointer to Windows10AppTypeVUniversal
+ Windows10AppTypePUniversal = &_Windows10AppTypePUniversal
+)
+
+var (
+ _Windows10AppTypePDesktop = Windows10AppTypeVDesktop
+ _Windows10AppTypePUniversal = Windows10AppTypeVUniversal
+)
+
+// Windows10AppsUpdateRecurrence undocumented
+type Windows10AppsUpdateRecurrence string
+
+const (
+ // Windows10AppsUpdateRecurrenceVNone undocumented
+ Windows10AppsUpdateRecurrenceVNone Windows10AppsUpdateRecurrence = "none"
+ // Windows10AppsUpdateRecurrenceVDaily undocumented
+ Windows10AppsUpdateRecurrenceVDaily Windows10AppsUpdateRecurrence = "daily"
+ // Windows10AppsUpdateRecurrenceVWeekly undocumented
+ Windows10AppsUpdateRecurrenceVWeekly Windows10AppsUpdateRecurrence = "weekly"
+ // Windows10AppsUpdateRecurrenceVMonthly undocumented
+ Windows10AppsUpdateRecurrenceVMonthly Windows10AppsUpdateRecurrence = "monthly"
+)
+
+var (
+ // Windows10AppsUpdateRecurrencePNone is a pointer to Windows10AppsUpdateRecurrenceVNone
+ Windows10AppsUpdateRecurrencePNone = &_Windows10AppsUpdateRecurrencePNone
+ // Windows10AppsUpdateRecurrencePDaily is a pointer to Windows10AppsUpdateRecurrenceVDaily
+ Windows10AppsUpdateRecurrencePDaily = &_Windows10AppsUpdateRecurrencePDaily
+ // Windows10AppsUpdateRecurrencePWeekly is a pointer to Windows10AppsUpdateRecurrenceVWeekly
+ Windows10AppsUpdateRecurrencePWeekly = &_Windows10AppsUpdateRecurrencePWeekly
+ // Windows10AppsUpdateRecurrencePMonthly is a pointer to Windows10AppsUpdateRecurrenceVMonthly
+ Windows10AppsUpdateRecurrencePMonthly = &_Windows10AppsUpdateRecurrencePMonthly
+)
+
+var (
+ _Windows10AppsUpdateRecurrencePNone = Windows10AppsUpdateRecurrenceVNone
+ _Windows10AppsUpdateRecurrencePDaily = Windows10AppsUpdateRecurrenceVDaily
+ _Windows10AppsUpdateRecurrencePWeekly = Windows10AppsUpdateRecurrenceVWeekly
+ _Windows10AppsUpdateRecurrencePMonthly = Windows10AppsUpdateRecurrenceVMonthly
+)
+
+// Windows10DeviceModeType undocumented
+type Windows10DeviceModeType string
+
+const (
+ // Windows10DeviceModeTypeVStandardConfiguration undocumented
+ Windows10DeviceModeTypeVStandardConfiguration Windows10DeviceModeType = "standardConfiguration"
+ // Windows10DeviceModeTypeVSModeConfiguration undocumented
+ Windows10DeviceModeTypeVSModeConfiguration Windows10DeviceModeType = "sModeConfiguration"
+)
+
+var (
+ // Windows10DeviceModeTypePStandardConfiguration is a pointer to Windows10DeviceModeTypeVStandardConfiguration
+ Windows10DeviceModeTypePStandardConfiguration = &_Windows10DeviceModeTypePStandardConfiguration
+ // Windows10DeviceModeTypePSModeConfiguration is a pointer to Windows10DeviceModeTypeVSModeConfiguration
+ Windows10DeviceModeTypePSModeConfiguration = &_Windows10DeviceModeTypePSModeConfiguration
+)
+
+var (
+ _Windows10DeviceModeTypePStandardConfiguration = Windows10DeviceModeTypeVStandardConfiguration
+ _Windows10DeviceModeTypePSModeConfiguration = Windows10DeviceModeTypeVSModeConfiguration
+)
+
+// Windows10EditionType undocumented
+type Windows10EditionType string
+
+const (
+ // Windows10EditionTypeVWindows10Enterprise undocumented
+ Windows10EditionTypeVWindows10Enterprise Windows10EditionType = "windows10Enterprise"
+ // Windows10EditionTypeVWindows10EnterpriseN undocumented
+ Windows10EditionTypeVWindows10EnterpriseN Windows10EditionType = "windows10EnterpriseN"
+ // Windows10EditionTypeVWindows10Education undocumented
+ Windows10EditionTypeVWindows10Education Windows10EditionType = "windows10Education"
+ // Windows10EditionTypeVWindows10EducationN undocumented
+ Windows10EditionTypeVWindows10EducationN Windows10EditionType = "windows10EducationN"
+ // Windows10EditionTypeVWindows10MobileEnterprise undocumented
+ Windows10EditionTypeVWindows10MobileEnterprise Windows10EditionType = "windows10MobileEnterprise"
+ // Windows10EditionTypeVWindows10HolographicEnterprise undocumented
+ Windows10EditionTypeVWindows10HolographicEnterprise Windows10EditionType = "windows10HolographicEnterprise"
+ // Windows10EditionTypeVWindows10Professional undocumented
+ Windows10EditionTypeVWindows10Professional Windows10EditionType = "windows10Professional"
+ // Windows10EditionTypeVWindows10ProfessionalN undocumented
+ Windows10EditionTypeVWindows10ProfessionalN Windows10EditionType = "windows10ProfessionalN"
+ // Windows10EditionTypeVWindows10ProfessionalEducation undocumented
+ Windows10EditionTypeVWindows10ProfessionalEducation Windows10EditionType = "windows10ProfessionalEducation"
+ // Windows10EditionTypeVWindows10ProfessionalEducationN undocumented
+ Windows10EditionTypeVWindows10ProfessionalEducationN Windows10EditionType = "windows10ProfessionalEducationN"
+ // Windows10EditionTypeVWindows10ProfessionalWorkstation undocumented
+ Windows10EditionTypeVWindows10ProfessionalWorkstation Windows10EditionType = "windows10ProfessionalWorkstation"
+ // Windows10EditionTypeVWindows10ProfessionalWorkstationN undocumented
+ Windows10EditionTypeVWindows10ProfessionalWorkstationN Windows10EditionType = "windows10ProfessionalWorkstationN"
+ // Windows10EditionTypeVNotConfigured undocumented
+ Windows10EditionTypeVNotConfigured Windows10EditionType = "notConfigured"
+ // Windows10EditionTypeVWindows10Home undocumented
+ Windows10EditionTypeVWindows10Home Windows10EditionType = "windows10Home"
+ // Windows10EditionTypeVWindows10HomeChina undocumented
+ Windows10EditionTypeVWindows10HomeChina Windows10EditionType = "windows10HomeChina"
+ // Windows10EditionTypeVWindows10HomeN undocumented
+ Windows10EditionTypeVWindows10HomeN Windows10EditionType = "windows10HomeN"
+ // Windows10EditionTypeVWindows10HomeSingleLanguage undocumented
+ Windows10EditionTypeVWindows10HomeSingleLanguage Windows10EditionType = "windows10HomeSingleLanguage"
+ // Windows10EditionTypeVWindows10Mobile undocumented
+ Windows10EditionTypeVWindows10Mobile Windows10EditionType = "windows10Mobile"
+ // Windows10EditionTypeVWindows10IoTCore undocumented
+ Windows10EditionTypeVWindows10IoTCore Windows10EditionType = "windows10IoTCore"
+ // Windows10EditionTypeVWindows10IoTCoreCommercial undocumented
+ Windows10EditionTypeVWindows10IoTCoreCommercial Windows10EditionType = "windows10IoTCoreCommercial"
+)
+
+var (
+ // Windows10EditionTypePWindows10Enterprise is a pointer to Windows10EditionTypeVWindows10Enterprise
+ Windows10EditionTypePWindows10Enterprise = &_Windows10EditionTypePWindows10Enterprise
+ // Windows10EditionTypePWindows10EnterpriseN is a pointer to Windows10EditionTypeVWindows10EnterpriseN
+ Windows10EditionTypePWindows10EnterpriseN = &_Windows10EditionTypePWindows10EnterpriseN
+ // Windows10EditionTypePWindows10Education is a pointer to Windows10EditionTypeVWindows10Education
+ Windows10EditionTypePWindows10Education = &_Windows10EditionTypePWindows10Education
+ // Windows10EditionTypePWindows10EducationN is a pointer to Windows10EditionTypeVWindows10EducationN
+ Windows10EditionTypePWindows10EducationN = &_Windows10EditionTypePWindows10EducationN
+ // Windows10EditionTypePWindows10MobileEnterprise is a pointer to Windows10EditionTypeVWindows10MobileEnterprise
+ Windows10EditionTypePWindows10MobileEnterprise = &_Windows10EditionTypePWindows10MobileEnterprise
+ // Windows10EditionTypePWindows10HolographicEnterprise is a pointer to Windows10EditionTypeVWindows10HolographicEnterprise
+ Windows10EditionTypePWindows10HolographicEnterprise = &_Windows10EditionTypePWindows10HolographicEnterprise
+ // Windows10EditionTypePWindows10Professional is a pointer to Windows10EditionTypeVWindows10Professional
+ Windows10EditionTypePWindows10Professional = &_Windows10EditionTypePWindows10Professional
+ // Windows10EditionTypePWindows10ProfessionalN is a pointer to Windows10EditionTypeVWindows10ProfessionalN
+ Windows10EditionTypePWindows10ProfessionalN = &_Windows10EditionTypePWindows10ProfessionalN
+ // Windows10EditionTypePWindows10ProfessionalEducation is a pointer to Windows10EditionTypeVWindows10ProfessionalEducation
+ Windows10EditionTypePWindows10ProfessionalEducation = &_Windows10EditionTypePWindows10ProfessionalEducation
+ // Windows10EditionTypePWindows10ProfessionalEducationN is a pointer to Windows10EditionTypeVWindows10ProfessionalEducationN
+ Windows10EditionTypePWindows10ProfessionalEducationN = &_Windows10EditionTypePWindows10ProfessionalEducationN
+ // Windows10EditionTypePWindows10ProfessionalWorkstation is a pointer to Windows10EditionTypeVWindows10ProfessionalWorkstation
+ Windows10EditionTypePWindows10ProfessionalWorkstation = &_Windows10EditionTypePWindows10ProfessionalWorkstation
+ // Windows10EditionTypePWindows10ProfessionalWorkstationN is a pointer to Windows10EditionTypeVWindows10ProfessionalWorkstationN
+ Windows10EditionTypePWindows10ProfessionalWorkstationN = &_Windows10EditionTypePWindows10ProfessionalWorkstationN
+ // Windows10EditionTypePNotConfigured is a pointer to Windows10EditionTypeVNotConfigured
+ Windows10EditionTypePNotConfigured = &_Windows10EditionTypePNotConfigured
+ // Windows10EditionTypePWindows10Home is a pointer to Windows10EditionTypeVWindows10Home
+ Windows10EditionTypePWindows10Home = &_Windows10EditionTypePWindows10Home
+ // Windows10EditionTypePWindows10HomeChina is a pointer to Windows10EditionTypeVWindows10HomeChina
+ Windows10EditionTypePWindows10HomeChina = &_Windows10EditionTypePWindows10HomeChina
+ // Windows10EditionTypePWindows10HomeN is a pointer to Windows10EditionTypeVWindows10HomeN
+ Windows10EditionTypePWindows10HomeN = &_Windows10EditionTypePWindows10HomeN
+ // Windows10EditionTypePWindows10HomeSingleLanguage is a pointer to Windows10EditionTypeVWindows10HomeSingleLanguage
+ Windows10EditionTypePWindows10HomeSingleLanguage = &_Windows10EditionTypePWindows10HomeSingleLanguage
+ // Windows10EditionTypePWindows10Mobile is a pointer to Windows10EditionTypeVWindows10Mobile
+ Windows10EditionTypePWindows10Mobile = &_Windows10EditionTypePWindows10Mobile
+ // Windows10EditionTypePWindows10IoTCore is a pointer to Windows10EditionTypeVWindows10IoTCore
+ Windows10EditionTypePWindows10IoTCore = &_Windows10EditionTypePWindows10IoTCore
+ // Windows10EditionTypePWindows10IoTCoreCommercial is a pointer to Windows10EditionTypeVWindows10IoTCoreCommercial
+ Windows10EditionTypePWindows10IoTCoreCommercial = &_Windows10EditionTypePWindows10IoTCoreCommercial
+)
+
+var (
+ _Windows10EditionTypePWindows10Enterprise = Windows10EditionTypeVWindows10Enterprise
+ _Windows10EditionTypePWindows10EnterpriseN = Windows10EditionTypeVWindows10EnterpriseN
+ _Windows10EditionTypePWindows10Education = Windows10EditionTypeVWindows10Education
+ _Windows10EditionTypePWindows10EducationN = Windows10EditionTypeVWindows10EducationN
+ _Windows10EditionTypePWindows10MobileEnterprise = Windows10EditionTypeVWindows10MobileEnterprise
+ _Windows10EditionTypePWindows10HolographicEnterprise = Windows10EditionTypeVWindows10HolographicEnterprise
+ _Windows10EditionTypePWindows10Professional = Windows10EditionTypeVWindows10Professional
+ _Windows10EditionTypePWindows10ProfessionalN = Windows10EditionTypeVWindows10ProfessionalN
+ _Windows10EditionTypePWindows10ProfessionalEducation = Windows10EditionTypeVWindows10ProfessionalEducation
+ _Windows10EditionTypePWindows10ProfessionalEducationN = Windows10EditionTypeVWindows10ProfessionalEducationN
+ _Windows10EditionTypePWindows10ProfessionalWorkstation = Windows10EditionTypeVWindows10ProfessionalWorkstation
+ _Windows10EditionTypePWindows10ProfessionalWorkstationN = Windows10EditionTypeVWindows10ProfessionalWorkstationN
+ _Windows10EditionTypePNotConfigured = Windows10EditionTypeVNotConfigured
+ _Windows10EditionTypePWindows10Home = Windows10EditionTypeVWindows10Home
+ _Windows10EditionTypePWindows10HomeChina = Windows10EditionTypeVWindows10HomeChina
+ _Windows10EditionTypePWindows10HomeN = Windows10EditionTypeVWindows10HomeN
+ _Windows10EditionTypePWindows10HomeSingleLanguage = Windows10EditionTypeVWindows10HomeSingleLanguage
+ _Windows10EditionTypePWindows10Mobile = Windows10EditionTypeVWindows10Mobile
+ _Windows10EditionTypePWindows10IoTCore = Windows10EditionTypeVWindows10IoTCore
+ _Windows10EditionTypePWindows10IoTCoreCommercial = Windows10EditionTypeVWindows10IoTCoreCommercial
+)
+
+// Windows10VpnAuthenticationMethod undocumented
+type Windows10VpnAuthenticationMethod string
+
+const (
+ // Windows10VpnAuthenticationMethodVCertificate undocumented
+ Windows10VpnAuthenticationMethodVCertificate Windows10VpnAuthenticationMethod = "certificate"
+ // Windows10VpnAuthenticationMethodVUsernameAndPassword undocumented
+ Windows10VpnAuthenticationMethodVUsernameAndPassword Windows10VpnAuthenticationMethod = "usernameAndPassword"
+ // Windows10VpnAuthenticationMethodVCustomEapXML undocumented
+ Windows10VpnAuthenticationMethodVCustomEapXML Windows10VpnAuthenticationMethod = "customEapXml"
+)
+
+var (
+ // Windows10VpnAuthenticationMethodPCertificate is a pointer to Windows10VpnAuthenticationMethodVCertificate
+ Windows10VpnAuthenticationMethodPCertificate = &_Windows10VpnAuthenticationMethodPCertificate
+ // Windows10VpnAuthenticationMethodPUsernameAndPassword is a pointer to Windows10VpnAuthenticationMethodVUsernameAndPassword
+ Windows10VpnAuthenticationMethodPUsernameAndPassword = &_Windows10VpnAuthenticationMethodPUsernameAndPassword
+ // Windows10VpnAuthenticationMethodPCustomEapXML is a pointer to Windows10VpnAuthenticationMethodVCustomEapXML
+ Windows10VpnAuthenticationMethodPCustomEapXML = &_Windows10VpnAuthenticationMethodPCustomEapXML
+)
+
+var (
+ _Windows10VpnAuthenticationMethodPCertificate = Windows10VpnAuthenticationMethodVCertificate
+ _Windows10VpnAuthenticationMethodPUsernameAndPassword = Windows10VpnAuthenticationMethodVUsernameAndPassword
+ _Windows10VpnAuthenticationMethodPCustomEapXML = Windows10VpnAuthenticationMethodVCustomEapXML
+)
+
+// Windows10VpnConnectionType undocumented
+type Windows10VpnConnectionType string
+
+const (
+ // Windows10VpnConnectionTypeVPulseSecure undocumented
+ Windows10VpnConnectionTypeVPulseSecure Windows10VpnConnectionType = "pulseSecure"
+ // Windows10VpnConnectionTypeVF5EdgeClient undocumented
+ Windows10VpnConnectionTypeVF5EdgeClient Windows10VpnConnectionType = "f5EdgeClient"
+ // Windows10VpnConnectionTypeVDellSonicWallMobileConnect undocumented
+ Windows10VpnConnectionTypeVDellSonicWallMobileConnect Windows10VpnConnectionType = "dellSonicWallMobileConnect"
+ // Windows10VpnConnectionTypeVCheckPointCapsuleVPN undocumented
+ Windows10VpnConnectionTypeVCheckPointCapsuleVPN Windows10VpnConnectionType = "checkPointCapsuleVpn"
+ // Windows10VpnConnectionTypeVAutomatic undocumented
+ Windows10VpnConnectionTypeVAutomatic Windows10VpnConnectionType = "automatic"
+ // Windows10VpnConnectionTypeVIkEv2 undocumented
+ Windows10VpnConnectionTypeVIkEv2 Windows10VpnConnectionType = "ikEv2"
+ // Windows10VpnConnectionTypeVL2tp undocumented
+ Windows10VpnConnectionTypeVL2tp Windows10VpnConnectionType = "l2tp"
+ // Windows10VpnConnectionTypeVPptp undocumented
+ Windows10VpnConnectionTypeVPptp Windows10VpnConnectionType = "pptp"
+ // Windows10VpnConnectionTypeVCitrix undocumented
+ Windows10VpnConnectionTypeVCitrix Windows10VpnConnectionType = "citrix"
+ // Windows10VpnConnectionTypeVPaloAltoGlobalProtect undocumented
+ Windows10VpnConnectionTypeVPaloAltoGlobalProtect Windows10VpnConnectionType = "paloAltoGlobalProtect"
+)
+
+var (
+ // Windows10VpnConnectionTypePPulseSecure is a pointer to Windows10VpnConnectionTypeVPulseSecure
+ Windows10VpnConnectionTypePPulseSecure = &_Windows10VpnConnectionTypePPulseSecure
+ // Windows10VpnConnectionTypePF5EdgeClient is a pointer to Windows10VpnConnectionTypeVF5EdgeClient
+ Windows10VpnConnectionTypePF5EdgeClient = &_Windows10VpnConnectionTypePF5EdgeClient
+ // Windows10VpnConnectionTypePDellSonicWallMobileConnect is a pointer to Windows10VpnConnectionTypeVDellSonicWallMobileConnect
+ Windows10VpnConnectionTypePDellSonicWallMobileConnect = &_Windows10VpnConnectionTypePDellSonicWallMobileConnect
+ // Windows10VpnConnectionTypePCheckPointCapsuleVPN is a pointer to Windows10VpnConnectionTypeVCheckPointCapsuleVPN
+ Windows10VpnConnectionTypePCheckPointCapsuleVPN = &_Windows10VpnConnectionTypePCheckPointCapsuleVPN
+ // Windows10VpnConnectionTypePAutomatic is a pointer to Windows10VpnConnectionTypeVAutomatic
+ Windows10VpnConnectionTypePAutomatic = &_Windows10VpnConnectionTypePAutomatic
+ // Windows10VpnConnectionTypePIkEv2 is a pointer to Windows10VpnConnectionTypeVIkEv2
+ Windows10VpnConnectionTypePIkEv2 = &_Windows10VpnConnectionTypePIkEv2
+ // Windows10VpnConnectionTypePL2tp is a pointer to Windows10VpnConnectionTypeVL2tp
+ Windows10VpnConnectionTypePL2tp = &_Windows10VpnConnectionTypePL2tp
+ // Windows10VpnConnectionTypePPptp is a pointer to Windows10VpnConnectionTypeVPptp
+ Windows10VpnConnectionTypePPptp = &_Windows10VpnConnectionTypePPptp
+ // Windows10VpnConnectionTypePCitrix is a pointer to Windows10VpnConnectionTypeVCitrix
+ Windows10VpnConnectionTypePCitrix = &_Windows10VpnConnectionTypePCitrix
+ // Windows10VpnConnectionTypePPaloAltoGlobalProtect is a pointer to Windows10VpnConnectionTypeVPaloAltoGlobalProtect
+ Windows10VpnConnectionTypePPaloAltoGlobalProtect = &_Windows10VpnConnectionTypePPaloAltoGlobalProtect
+)
+
+var (
+ _Windows10VpnConnectionTypePPulseSecure = Windows10VpnConnectionTypeVPulseSecure
+ _Windows10VpnConnectionTypePF5EdgeClient = Windows10VpnConnectionTypeVF5EdgeClient
+ _Windows10VpnConnectionTypePDellSonicWallMobileConnect = Windows10VpnConnectionTypeVDellSonicWallMobileConnect
+ _Windows10VpnConnectionTypePCheckPointCapsuleVPN = Windows10VpnConnectionTypeVCheckPointCapsuleVPN
+ _Windows10VpnConnectionTypePAutomatic = Windows10VpnConnectionTypeVAutomatic
+ _Windows10VpnConnectionTypePIkEv2 = Windows10VpnConnectionTypeVIkEv2
+ _Windows10VpnConnectionTypePL2tp = Windows10VpnConnectionTypeVL2tp
+ _Windows10VpnConnectionTypePPptp = Windows10VpnConnectionTypeVPptp
+ _Windows10VpnConnectionTypePCitrix = Windows10VpnConnectionTypeVCitrix
+ _Windows10VpnConnectionTypePPaloAltoGlobalProtect = Windows10VpnConnectionTypeVPaloAltoGlobalProtect
+)
+
+// Windows10VpnProfileTarget undocumented
+type Windows10VpnProfileTarget string
+
+const (
+ // Windows10VpnProfileTargetVUser undocumented
+ Windows10VpnProfileTargetVUser Windows10VpnProfileTarget = "user"
+ // Windows10VpnProfileTargetVDevice undocumented
+ Windows10VpnProfileTargetVDevice Windows10VpnProfileTarget = "device"
+ // Windows10VpnProfileTargetVAutoPilotDevice undocumented
+ Windows10VpnProfileTargetVAutoPilotDevice Windows10VpnProfileTarget = "autoPilotDevice"
+)
+
+var (
+ // Windows10VpnProfileTargetPUser is a pointer to Windows10VpnProfileTargetVUser
+ Windows10VpnProfileTargetPUser = &_Windows10VpnProfileTargetPUser
+ // Windows10VpnProfileTargetPDevice is a pointer to Windows10VpnProfileTargetVDevice
+ Windows10VpnProfileTargetPDevice = &_Windows10VpnProfileTargetPDevice
+ // Windows10VpnProfileTargetPAutoPilotDevice is a pointer to Windows10VpnProfileTargetVAutoPilotDevice
+ Windows10VpnProfileTargetPAutoPilotDevice = &_Windows10VpnProfileTargetPAutoPilotDevice
+)
+
+var (
+ _Windows10VpnProfileTargetPUser = Windows10VpnProfileTargetVUser
+ _Windows10VpnProfileTargetPDevice = Windows10VpnProfileTargetVDevice
+ _Windows10VpnProfileTargetPAutoPilotDevice = Windows10VpnProfileTargetVAutoPilotDevice
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWired.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWired.go
new file mode 100644
index 00000000..847fc045
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWired.go
@@ -0,0 +1,50 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WiredNetworkInterface undocumented
+type WiredNetworkInterface string
+
+const (
+ // WiredNetworkInterfaceVAnyEthernet undocumented
+ WiredNetworkInterfaceVAnyEthernet WiredNetworkInterface = "anyEthernet"
+ // WiredNetworkInterfaceVFirstActiveEthernet undocumented
+ WiredNetworkInterfaceVFirstActiveEthernet WiredNetworkInterface = "firstActiveEthernet"
+ // WiredNetworkInterfaceVSecondActiveEthernet undocumented
+ WiredNetworkInterfaceVSecondActiveEthernet WiredNetworkInterface = "secondActiveEthernet"
+ // WiredNetworkInterfaceVThirdActiveEthernet undocumented
+ WiredNetworkInterfaceVThirdActiveEthernet WiredNetworkInterface = "thirdActiveEthernet"
+ // WiredNetworkInterfaceVFirstEthernet undocumented
+ WiredNetworkInterfaceVFirstEthernet WiredNetworkInterface = "firstEthernet"
+ // WiredNetworkInterfaceVSecondEthernet undocumented
+ WiredNetworkInterfaceVSecondEthernet WiredNetworkInterface = "secondEthernet"
+ // WiredNetworkInterfaceVThirdEthernet undocumented
+ WiredNetworkInterfaceVThirdEthernet WiredNetworkInterface = "thirdEthernet"
+)
+
+var (
+ // WiredNetworkInterfacePAnyEthernet is a pointer to WiredNetworkInterfaceVAnyEthernet
+ WiredNetworkInterfacePAnyEthernet = &_WiredNetworkInterfacePAnyEthernet
+ // WiredNetworkInterfacePFirstActiveEthernet is a pointer to WiredNetworkInterfaceVFirstActiveEthernet
+ WiredNetworkInterfacePFirstActiveEthernet = &_WiredNetworkInterfacePFirstActiveEthernet
+ // WiredNetworkInterfacePSecondActiveEthernet is a pointer to WiredNetworkInterfaceVSecondActiveEthernet
+ WiredNetworkInterfacePSecondActiveEthernet = &_WiredNetworkInterfacePSecondActiveEthernet
+ // WiredNetworkInterfacePThirdActiveEthernet is a pointer to WiredNetworkInterfaceVThirdActiveEthernet
+ WiredNetworkInterfacePThirdActiveEthernet = &_WiredNetworkInterfacePThirdActiveEthernet
+ // WiredNetworkInterfacePFirstEthernet is a pointer to WiredNetworkInterfaceVFirstEthernet
+ WiredNetworkInterfacePFirstEthernet = &_WiredNetworkInterfacePFirstEthernet
+ // WiredNetworkInterfacePSecondEthernet is a pointer to WiredNetworkInterfaceVSecondEthernet
+ WiredNetworkInterfacePSecondEthernet = &_WiredNetworkInterfacePSecondEthernet
+ // WiredNetworkInterfacePThirdEthernet is a pointer to WiredNetworkInterfaceVThirdEthernet
+ WiredNetworkInterfacePThirdEthernet = &_WiredNetworkInterfacePThirdEthernet
+)
+
+var (
+ _WiredNetworkInterfacePAnyEthernet = WiredNetworkInterfaceVAnyEthernet
+ _WiredNetworkInterfacePFirstActiveEthernet = WiredNetworkInterfaceVFirstActiveEthernet
+ _WiredNetworkInterfacePSecondActiveEthernet = WiredNetworkInterfaceVSecondActiveEthernet
+ _WiredNetworkInterfacePThirdActiveEthernet = WiredNetworkInterfaceVThirdActiveEthernet
+ _WiredNetworkInterfacePFirstEthernet = WiredNetworkInterfaceVFirstEthernet
+ _WiredNetworkInterfacePSecondEthernet = WiredNetworkInterfaceVSecondEthernet
+ _WiredNetworkInterfacePThirdEthernet = WiredNetworkInterfaceVThirdEthernet
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/EnumWorkforce.go b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWorkforce.go
new file mode 100644
index 00000000..90378adf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/EnumWorkforce.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkforceIntegrationEncryptionProtocol undocumented
+type WorkforceIntegrationEncryptionProtocol string
+
+const (
+ // WorkforceIntegrationEncryptionProtocolVSharedSecret undocumented
+ WorkforceIntegrationEncryptionProtocolVSharedSecret WorkforceIntegrationEncryptionProtocol = "sharedSecret"
+ // WorkforceIntegrationEncryptionProtocolVUnknownFutureValue undocumented
+ WorkforceIntegrationEncryptionProtocolVUnknownFutureValue WorkforceIntegrationEncryptionProtocol = "unknownFutureValue"
+)
+
+var (
+ // WorkforceIntegrationEncryptionProtocolPSharedSecret is a pointer to WorkforceIntegrationEncryptionProtocolVSharedSecret
+ WorkforceIntegrationEncryptionProtocolPSharedSecret = &_WorkforceIntegrationEncryptionProtocolPSharedSecret
+ // WorkforceIntegrationEncryptionProtocolPUnknownFutureValue is a pointer to WorkforceIntegrationEncryptionProtocolVUnknownFutureValue
+ WorkforceIntegrationEncryptionProtocolPUnknownFutureValue = &_WorkforceIntegrationEncryptionProtocolPUnknownFutureValue
+)
+
+var (
+ _WorkforceIntegrationEncryptionProtocolPSharedSecret = WorkforceIntegrationEncryptionProtocolVSharedSecret
+ _WorkforceIntegrationEncryptionProtocolPUnknownFutureValue = WorkforceIntegrationEncryptionProtocolVUnknownFutureValue
+)
+
+// WorkforceIntegrationSupportedEntities undocumented
+type WorkforceIntegrationSupportedEntities string
+
+const (
+ // WorkforceIntegrationSupportedEntitiesVNone undocumented
+ WorkforceIntegrationSupportedEntitiesVNone WorkforceIntegrationSupportedEntities = "none"
+ // WorkforceIntegrationSupportedEntitiesVShift undocumented
+ WorkforceIntegrationSupportedEntitiesVShift WorkforceIntegrationSupportedEntities = "shift"
+ // WorkforceIntegrationSupportedEntitiesVSwapRequest undocumented
+ WorkforceIntegrationSupportedEntitiesVSwapRequest WorkforceIntegrationSupportedEntities = "swapRequest"
+ // WorkforceIntegrationSupportedEntitiesVUserShiftPreferences undocumented
+ WorkforceIntegrationSupportedEntitiesVUserShiftPreferences WorkforceIntegrationSupportedEntities = "userShiftPreferences"
+ // WorkforceIntegrationSupportedEntitiesVOpenShift undocumented
+ WorkforceIntegrationSupportedEntitiesVOpenShift WorkforceIntegrationSupportedEntities = "openShift"
+ // WorkforceIntegrationSupportedEntitiesVOpenShiftRequest undocumented
+ WorkforceIntegrationSupportedEntitiesVOpenShiftRequest WorkforceIntegrationSupportedEntities = "openShiftRequest"
+)
+
+var (
+ // WorkforceIntegrationSupportedEntitiesPNone is a pointer to WorkforceIntegrationSupportedEntitiesVNone
+ WorkforceIntegrationSupportedEntitiesPNone = &_WorkforceIntegrationSupportedEntitiesPNone
+ // WorkforceIntegrationSupportedEntitiesPShift is a pointer to WorkforceIntegrationSupportedEntitiesVShift
+ WorkforceIntegrationSupportedEntitiesPShift = &_WorkforceIntegrationSupportedEntitiesPShift
+ // WorkforceIntegrationSupportedEntitiesPSwapRequest is a pointer to WorkforceIntegrationSupportedEntitiesVSwapRequest
+ WorkforceIntegrationSupportedEntitiesPSwapRequest = &_WorkforceIntegrationSupportedEntitiesPSwapRequest
+ // WorkforceIntegrationSupportedEntitiesPUserShiftPreferences is a pointer to WorkforceIntegrationSupportedEntitiesVUserShiftPreferences
+ WorkforceIntegrationSupportedEntitiesPUserShiftPreferences = &_WorkforceIntegrationSupportedEntitiesPUserShiftPreferences
+ // WorkforceIntegrationSupportedEntitiesPOpenShift is a pointer to WorkforceIntegrationSupportedEntitiesVOpenShift
+ WorkforceIntegrationSupportedEntitiesPOpenShift = &_WorkforceIntegrationSupportedEntitiesPOpenShift
+ // WorkforceIntegrationSupportedEntitiesPOpenShiftRequest is a pointer to WorkforceIntegrationSupportedEntitiesVOpenShiftRequest
+ WorkforceIntegrationSupportedEntitiesPOpenShiftRequest = &_WorkforceIntegrationSupportedEntitiesPOpenShiftRequest
+)
+
+var (
+ _WorkforceIntegrationSupportedEntitiesPNone = WorkforceIntegrationSupportedEntitiesVNone
+ _WorkforceIntegrationSupportedEntitiesPShift = WorkforceIntegrationSupportedEntitiesVShift
+ _WorkforceIntegrationSupportedEntitiesPSwapRequest = WorkforceIntegrationSupportedEntitiesVSwapRequest
+ _WorkforceIntegrationSupportedEntitiesPUserShiftPreferences = WorkforceIntegrationSupportedEntitiesVUserShiftPreferences
+ _WorkforceIntegrationSupportedEntitiesPOpenShift = WorkforceIntegrationSupportedEntitiesVOpenShift
+ _WorkforceIntegrationSupportedEntitiesPOpenShiftRequest = WorkforceIntegrationSupportedEntitiesVOpenShiftRequest
+)
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/GraphService.go b/vendor/github.com/yaegashi/msgraph.go/beta/GraphService.go
new file mode 100644
index 00000000..89fdddba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/GraphService.go
@@ -0,0 +1,9272 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AccessPackageAssignmentPolicies returns request builder for AccessPackageAssignmentPolicy collection
+func (b *GraphServiceRequestBuilder) AccessPackageAssignmentPolicies() *GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentPolicies"
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder is request builder for AccessPackageAssignmentPolicy collection
+type GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentPolicy collection
+func (b *GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest {
+ return &GraphServiceAccessPackageAssignmentPoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentPolicy item
+func (b *GraphServiceAccessPackageAssignmentPoliciesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentPolicyRequestBuilder {
+ bb := &AccessPackageAssignmentPolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentPoliciesCollectionRequest is request for AccessPackageAssignmentPolicy collection
+type GraphServiceAccessPackageAssignmentPoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentPolicy collection
+func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentPolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentPolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentPolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignmentPolicy collection, max N pages
+func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentPolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignmentPolicy collection
+func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentPolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignmentPolicy collection
+func (r *GraphServiceAccessPackageAssignmentPoliciesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) (resObj *AccessPackageAssignmentPolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentRequests returns request builder for AccessPackageAssignmentRequestObject collection
+func (b *GraphServiceRequestBuilder) AccessPackageAssignmentRequests() *GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentRequests"
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder is request builder for AccessPackageAssignmentRequestObject collection
+type GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentRequestObject collection
+func (b *GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentRequestsCollectionRequest {
+ return &GraphServiceAccessPackageAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentRequestObject item
+func (b *GraphServiceAccessPackageAssignmentRequestsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestObjectRequestBuilder {
+ bb := &AccessPackageAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentRequestsCollectionRequest is request for AccessPackageAssignmentRequestObject collection
+type GraphServiceAccessPackageAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentRequestObject collection
+func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignmentRequestObject collection, max N pages
+func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignmentRequestObject collection
+func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignmentRequestObject collection
+func (r *GraphServiceAccessPackageAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) (resObj *AccessPackageAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignmentResourceRoles returns request builder for AccessPackageAssignmentResourceRole collection
+func (b *GraphServiceRequestBuilder) AccessPackageAssignmentResourceRoles() *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignmentResourceRoles"
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder is request builder for AccessPackageAssignmentResourceRole collection
+type GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignmentResourceRole collection
+func (b *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest {
+ return &GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignmentResourceRole item
+func (b *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentResourceRoleRequestBuilder {
+ bb := &AccessPackageAssignmentResourceRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest is request for AccessPackageAssignmentResourceRole collection
+type GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignmentResourceRole collection
+func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignmentResourceRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignmentResourceRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignmentResourceRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignmentResourceRole collection, max N pages
+func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignmentResourceRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignmentResourceRole collection
+func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignmentResourceRole, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignmentResourceRole collection
+func (r *GraphServiceAccessPackageAssignmentResourceRolesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) (resObj *AccessPackageAssignmentResourceRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageAssignments returns request builder for AccessPackageAssignment collection
+func (b *GraphServiceRequestBuilder) AccessPackageAssignments() *GraphServiceAccessPackageAssignmentsCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageAssignments"
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentsCollectionRequestBuilder is request builder for AccessPackageAssignment collection
+type GraphServiceAccessPackageAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageAssignment collection
+func (b *GraphServiceAccessPackageAssignmentsCollectionRequestBuilder) Request() *GraphServiceAccessPackageAssignmentsCollectionRequest {
+ return &GraphServiceAccessPackageAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageAssignment item
+func (b *GraphServiceAccessPackageAssignmentsCollectionRequestBuilder) ID(id string) *AccessPackageAssignmentRequestBuilder {
+ bb := &AccessPackageAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageAssignmentsCollectionRequest is request for AccessPackageAssignment collection
+type GraphServiceAccessPackageAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageAssignment collection
+func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageAssignment collection, max N pages
+func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageAssignment collection
+func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Get(ctx context.Context) ([]AccessPackageAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageAssignment collection
+func (r *GraphServiceAccessPackageAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageAssignment) (resObj *AccessPackageAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageCatalogs returns request builder for AccessPackageCatalog collection
+func (b *GraphServiceRequestBuilder) AccessPackageCatalogs() *GraphServiceAccessPackageCatalogsCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageCatalogsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageCatalogs"
+ return bb
+}
+
+// GraphServiceAccessPackageCatalogsCollectionRequestBuilder is request builder for AccessPackageCatalog collection
+type GraphServiceAccessPackageCatalogsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageCatalog collection
+func (b *GraphServiceAccessPackageCatalogsCollectionRequestBuilder) Request() *GraphServiceAccessPackageCatalogsCollectionRequest {
+ return &GraphServiceAccessPackageCatalogsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageCatalog item
+func (b *GraphServiceAccessPackageCatalogsCollectionRequestBuilder) ID(id string) *AccessPackageCatalogRequestBuilder {
+ bb := &AccessPackageCatalogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageCatalogsCollectionRequest is request for AccessPackageCatalog collection
+type GraphServiceAccessPackageCatalogsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageCatalog collection
+func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageCatalog, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageCatalog
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageCatalog
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageCatalog collection, max N pages
+func (r *GraphServiceAccessPackageCatalogsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageCatalog, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageCatalog collection
+func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Get(ctx context.Context) ([]AccessPackageCatalog, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageCatalog collection
+func (r *GraphServiceAccessPackageCatalogsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageCatalog) (resObj *AccessPackageCatalog, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRequests returns request builder for AccessPackageResourceRequestObject collection
+func (b *GraphServiceRequestBuilder) AccessPackageResourceRequests() *GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRequests"
+ return bb
+}
+
+// GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder is request builder for AccessPackageResourceRequestObject collection
+type GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRequestObject collection
+func (b *GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder) Request() *GraphServiceAccessPackageResourceRequestsCollectionRequest {
+ return &GraphServiceAccessPackageResourceRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRequestObject item
+func (b *GraphServiceAccessPackageResourceRequestsCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestObjectRequestBuilder {
+ bb := &AccessPackageResourceRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageResourceRequestsCollectionRequest is request for AccessPackageResourceRequestObject collection
+type GraphServiceAccessPackageResourceRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRequestObject collection
+func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResourceRequestObject collection, max N pages
+func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResourceRequestObject collection
+func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResourceRequestObject collection
+func (r *GraphServiceAccessPackageResourceRequestsCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRequestObject) (resObj *AccessPackageResourceRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResourceRoleScopes returns request builder for AccessPackageResourceRoleScope collection
+func (b *GraphServiceRequestBuilder) AccessPackageResourceRoleScopes() *GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResourceRoleScopes"
+ return bb
+}
+
+// GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder is request builder for AccessPackageResourceRoleScope collection
+type GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResourceRoleScope collection
+func (b *GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder) Request() *GraphServiceAccessPackageResourceRoleScopesCollectionRequest {
+ return &GraphServiceAccessPackageResourceRoleScopesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResourceRoleScope item
+func (b *GraphServiceAccessPackageResourceRoleScopesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRoleScopeRequestBuilder {
+ bb := &AccessPackageResourceRoleScopeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageResourceRoleScopesCollectionRequest is request for AccessPackageResourceRoleScope collection
+type GraphServiceAccessPackageResourceRoleScopesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResourceRoleScope collection
+func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResourceRoleScope, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResourceRoleScope
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResourceRoleScope
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResourceRoleScope collection, max N pages
+func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResourceRoleScope, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResourceRoleScope collection
+func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResourceRoleScope, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResourceRoleScope collection
+func (r *GraphServiceAccessPackageResourceRoleScopesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResourceRoleScope) (resObj *AccessPackageResourceRoleScope, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackageResources returns request builder for AccessPackageResource collection
+func (b *GraphServiceRequestBuilder) AccessPackageResources() *GraphServiceAccessPackageResourcesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackageResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackageResources"
+ return bb
+}
+
+// GraphServiceAccessPackageResourcesCollectionRequestBuilder is request builder for AccessPackageResource collection
+type GraphServiceAccessPackageResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackageResource collection
+func (b *GraphServiceAccessPackageResourcesCollectionRequestBuilder) Request() *GraphServiceAccessPackageResourcesCollectionRequest {
+ return &GraphServiceAccessPackageResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackageResource item
+func (b *GraphServiceAccessPackageResourcesCollectionRequestBuilder) ID(id string) *AccessPackageResourceRequestBuilder {
+ bb := &AccessPackageResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackageResourcesCollectionRequest is request for AccessPackageResource collection
+type GraphServiceAccessPackageResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackageResource collection
+func (r *GraphServiceAccessPackageResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackageResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackageResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackageResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackageResource collection, max N pages
+func (r *GraphServiceAccessPackageResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackageResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackageResource collection
+func (r *GraphServiceAccessPackageResourcesCollectionRequest) Get(ctx context.Context) ([]AccessPackageResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackageResource collection
+func (r *GraphServiceAccessPackageResourcesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackageResource) (resObj *AccessPackageResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessPackages returns request builder for AccessPackage collection
+func (b *GraphServiceRequestBuilder) AccessPackages() *GraphServiceAccessPackagesCollectionRequestBuilder {
+ bb := &GraphServiceAccessPackagesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessPackages"
+ return bb
+}
+
+// GraphServiceAccessPackagesCollectionRequestBuilder is request builder for AccessPackage collection
+type GraphServiceAccessPackagesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessPackage collection
+func (b *GraphServiceAccessPackagesCollectionRequestBuilder) Request() *GraphServiceAccessPackagesCollectionRequest {
+ return &GraphServiceAccessPackagesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessPackage item
+func (b *GraphServiceAccessPackagesCollectionRequestBuilder) ID(id string) *AccessPackageRequestBuilder {
+ bb := &AccessPackageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessPackagesCollectionRequest is request for AccessPackage collection
+type GraphServiceAccessPackagesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessPackage collection
+func (r *GraphServiceAccessPackagesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessPackage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessPackage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessPackage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessPackage collection, max N pages
+func (r *GraphServiceAccessPackagesCollectionRequest) GetN(ctx context.Context, n int) ([]AccessPackage, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessPackage collection
+func (r *GraphServiceAccessPackagesCollectionRequest) Get(ctx context.Context) ([]AccessPackage, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessPackage collection
+func (r *GraphServiceAccessPackagesCollectionRequest) Add(ctx context.Context, reqObj *AccessPackage) (resObj *AccessPackage, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessReviewDecisions returns request builder for AccessReviewDecision collection
+func (b *GraphServiceRequestBuilder) AccessReviewDecisions() *GraphServiceAccessReviewDecisionsCollectionRequestBuilder {
+ bb := &GraphServiceAccessReviewDecisionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessReviewDecisions"
+ return bb
+}
+
+// GraphServiceAccessReviewDecisionsCollectionRequestBuilder is request builder for AccessReviewDecision collection
+type GraphServiceAccessReviewDecisionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReviewDecision collection
+func (b *GraphServiceAccessReviewDecisionsCollectionRequestBuilder) Request() *GraphServiceAccessReviewDecisionsCollectionRequest {
+ return &GraphServiceAccessReviewDecisionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReviewDecision item
+func (b *GraphServiceAccessReviewDecisionsCollectionRequestBuilder) ID(id string) *AccessReviewDecisionRequestBuilder {
+ bb := &AccessReviewDecisionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessReviewDecisionsCollectionRequest is request for AccessReviewDecision collection
+type GraphServiceAccessReviewDecisionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReviewDecision collection
+func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReviewDecision, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReviewDecision
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReviewDecision
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessReviewDecision collection, max N pages
+func (r *GraphServiceAccessReviewDecisionsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReviewDecision, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessReviewDecision collection
+func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Get(ctx context.Context) ([]AccessReviewDecision, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessReviewDecision collection
+func (r *GraphServiceAccessReviewDecisionsCollectionRequest) Add(ctx context.Context, reqObj *AccessReviewDecision) (resObj *AccessReviewDecision, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AccessReviews returns request builder for AccessReview collection
+func (b *GraphServiceRequestBuilder) AccessReviews() *GraphServiceAccessReviewsCollectionRequestBuilder {
+ bb := &GraphServiceAccessReviewsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/accessReviews"
+ return bb
+}
+
+// GraphServiceAccessReviewsCollectionRequestBuilder is request builder for AccessReview collection
+type GraphServiceAccessReviewsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AccessReview collection
+func (b *GraphServiceAccessReviewsCollectionRequestBuilder) Request() *GraphServiceAccessReviewsCollectionRequest {
+ return &GraphServiceAccessReviewsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AccessReview item
+func (b *GraphServiceAccessReviewsCollectionRequestBuilder) ID(id string) *AccessReviewRequestBuilder {
+ bb := &AccessReviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAccessReviewsCollectionRequest is request for AccessReview collection
+type GraphServiceAccessReviewsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AccessReview collection
+func (r *GraphServiceAccessReviewsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AccessReview, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AccessReview
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AccessReview
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AccessReview collection, max N pages
+func (r *GraphServiceAccessReviewsCollectionRequest) GetN(ctx context.Context, n int) ([]AccessReview, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AccessReview collection
+func (r *GraphServiceAccessReviewsCollectionRequest) Get(ctx context.Context) ([]AccessReview, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AccessReview collection
+func (r *GraphServiceAccessReviewsCollectionRequest) Add(ctx context.Context, reqObj *AccessReview) (resObj *AccessReview, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Activitystatistics returns request builder for ActivityStatistics collection
+func (b *GraphServiceRequestBuilder) Activitystatistics() *GraphServiceActivitystatisticsCollectionRequestBuilder {
+ bb := &GraphServiceActivitystatisticsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/activitystatistics"
+ return bb
+}
+
+// GraphServiceActivitystatisticsCollectionRequestBuilder is request builder for ActivityStatistics collection
+type GraphServiceActivitystatisticsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ActivityStatistics collection
+func (b *GraphServiceActivitystatisticsCollectionRequestBuilder) Request() *GraphServiceActivitystatisticsCollectionRequest {
+ return &GraphServiceActivitystatisticsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ActivityStatistics item
+func (b *GraphServiceActivitystatisticsCollectionRequestBuilder) ID(id string) *ActivityStatisticsRequestBuilder {
+ bb := &ActivityStatisticsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceActivitystatisticsCollectionRequest is request for ActivityStatistics collection
+type GraphServiceActivitystatisticsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ActivityStatistics collection
+func (r *GraphServiceActivitystatisticsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ActivityStatistics, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ActivityStatistics
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ActivityStatistics
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ActivityStatistics collection, max N pages
+func (r *GraphServiceActivitystatisticsCollectionRequest) GetN(ctx context.Context, n int) ([]ActivityStatistics, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ActivityStatistics collection
+func (r *GraphServiceActivitystatisticsCollectionRequest) Get(ctx context.Context) ([]ActivityStatistics, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ActivityStatistics collection
+func (r *GraphServiceActivitystatisticsCollectionRequest) Add(ctx context.Context, reqObj *ActivityStatistics) (resObj *ActivityStatistics, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AdministrativeUnits returns request builder for AdministrativeUnit collection
+func (b *GraphServiceRequestBuilder) AdministrativeUnits() *GraphServiceAdministrativeUnitsCollectionRequestBuilder {
+ bb := &GraphServiceAdministrativeUnitsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/administrativeUnits"
+ return bb
+}
+
+// GraphServiceAdministrativeUnitsCollectionRequestBuilder is request builder for AdministrativeUnit collection
+type GraphServiceAdministrativeUnitsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AdministrativeUnit collection
+func (b *GraphServiceAdministrativeUnitsCollectionRequestBuilder) Request() *GraphServiceAdministrativeUnitsCollectionRequest {
+ return &GraphServiceAdministrativeUnitsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AdministrativeUnit item
+func (b *GraphServiceAdministrativeUnitsCollectionRequestBuilder) ID(id string) *AdministrativeUnitRequestBuilder {
+ bb := &AdministrativeUnitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAdministrativeUnitsCollectionRequest is request for AdministrativeUnit collection
+type GraphServiceAdministrativeUnitsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AdministrativeUnit collection
+func (r *GraphServiceAdministrativeUnitsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AdministrativeUnit, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AdministrativeUnit
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AdministrativeUnit
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AdministrativeUnit collection, max N pages
+func (r *GraphServiceAdministrativeUnitsCollectionRequest) GetN(ctx context.Context, n int) ([]AdministrativeUnit, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AdministrativeUnit collection
+func (r *GraphServiceAdministrativeUnitsCollectionRequest) Get(ctx context.Context) ([]AdministrativeUnit, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AdministrativeUnit collection
+func (r *GraphServiceAdministrativeUnitsCollectionRequest) Add(ctx context.Context, reqObj *AdministrativeUnit) (resObj *AdministrativeUnit, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AgreementAcceptances returns request builder for AgreementAcceptance collection
+func (b *GraphServiceRequestBuilder) AgreementAcceptances() *GraphServiceAgreementAcceptancesCollectionRequestBuilder {
+ bb := &GraphServiceAgreementAcceptancesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agreementAcceptances"
+ return bb
+}
+
+// GraphServiceAgreementAcceptancesCollectionRequestBuilder is request builder for AgreementAcceptance collection
+type GraphServiceAgreementAcceptancesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AgreementAcceptance collection
+func (b *GraphServiceAgreementAcceptancesCollectionRequestBuilder) Request() *GraphServiceAgreementAcceptancesCollectionRequest {
+ return &GraphServiceAgreementAcceptancesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AgreementAcceptance item
+func (b *GraphServiceAgreementAcceptancesCollectionRequestBuilder) ID(id string) *AgreementAcceptanceRequestBuilder {
+ bb := &AgreementAcceptanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAgreementAcceptancesCollectionRequest is request for AgreementAcceptance collection
+type GraphServiceAgreementAcceptancesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AgreementAcceptance collection
+func (r *GraphServiceAgreementAcceptancesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AgreementAcceptance, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AgreementAcceptance
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AgreementAcceptance
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AgreementAcceptance collection, max N pages
+func (r *GraphServiceAgreementAcceptancesCollectionRequest) GetN(ctx context.Context, n int) ([]AgreementAcceptance, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AgreementAcceptance collection
+func (r *GraphServiceAgreementAcceptancesCollectionRequest) Get(ctx context.Context) ([]AgreementAcceptance, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AgreementAcceptance collection
+func (r *GraphServiceAgreementAcceptancesCollectionRequest) Add(ctx context.Context, reqObj *AgreementAcceptance) (resObj *AgreementAcceptance, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Agreements returns request builder for Agreement collection
+func (b *GraphServiceRequestBuilder) Agreements() *GraphServiceAgreementsCollectionRequestBuilder {
+ bb := &GraphServiceAgreementsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/agreements"
+ return bb
+}
+
+// GraphServiceAgreementsCollectionRequestBuilder is request builder for Agreement collection
+type GraphServiceAgreementsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Agreement collection
+func (b *GraphServiceAgreementsCollectionRequestBuilder) Request() *GraphServiceAgreementsCollectionRequest {
+ return &GraphServiceAgreementsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Agreement item
+func (b *GraphServiceAgreementsCollectionRequestBuilder) ID(id string) *AgreementRequestBuilder {
+ bb := &AgreementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAgreementsCollectionRequest is request for Agreement collection
+type GraphServiceAgreementsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Agreement collection
+func (r *GraphServiceAgreementsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Agreement, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Agreement
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Agreement
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Agreement collection, max N pages
+func (r *GraphServiceAgreementsCollectionRequest) GetN(ctx context.Context, n int) ([]Agreement, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Agreement collection
+func (r *GraphServiceAgreementsCollectionRequest) Get(ctx context.Context) ([]Agreement, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Agreement collection
+func (r *GraphServiceAgreementsCollectionRequest) Add(ctx context.Context, reqObj *Agreement) (resObj *Agreement, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AllowedDataLocations returns request builder for AllowedDataLocation collection
+func (b *GraphServiceRequestBuilder) AllowedDataLocations() *GraphServiceAllowedDataLocationsCollectionRequestBuilder {
+ bb := &GraphServiceAllowedDataLocationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/allowedDataLocations"
+ return bb
+}
+
+// GraphServiceAllowedDataLocationsCollectionRequestBuilder is request builder for AllowedDataLocation collection
+type GraphServiceAllowedDataLocationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AllowedDataLocation collection
+func (b *GraphServiceAllowedDataLocationsCollectionRequestBuilder) Request() *GraphServiceAllowedDataLocationsCollectionRequest {
+ return &GraphServiceAllowedDataLocationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AllowedDataLocation item
+func (b *GraphServiceAllowedDataLocationsCollectionRequestBuilder) ID(id string) *AllowedDataLocationRequestBuilder {
+ bb := &AllowedDataLocationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAllowedDataLocationsCollectionRequest is request for AllowedDataLocation collection
+type GraphServiceAllowedDataLocationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AllowedDataLocation collection
+func (r *GraphServiceAllowedDataLocationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AllowedDataLocation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AllowedDataLocation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AllowedDataLocation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AllowedDataLocation collection, max N pages
+func (r *GraphServiceAllowedDataLocationsCollectionRequest) GetN(ctx context.Context, n int) ([]AllowedDataLocation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AllowedDataLocation collection
+func (r *GraphServiceAllowedDataLocationsCollectionRequest) Get(ctx context.Context) ([]AllowedDataLocation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AllowedDataLocation collection
+func (r *GraphServiceAllowedDataLocationsCollectionRequest) Add(ctx context.Context, reqObj *AllowedDataLocation) (resObj *AllowedDataLocation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AnonymousIPRiskEvents returns request builder for AnonymousIPRiskEvent collection
+func (b *GraphServiceRequestBuilder) AnonymousIPRiskEvents() *GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/anonymousIpRiskEvents"
+ return bb
+}
+
+// GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder is request builder for AnonymousIPRiskEvent collection
+type GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AnonymousIPRiskEvent collection
+func (b *GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder) Request() *GraphServiceAnonymousIPRiskEventsCollectionRequest {
+ return &GraphServiceAnonymousIPRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AnonymousIPRiskEvent item
+func (b *GraphServiceAnonymousIPRiskEventsCollectionRequestBuilder) ID(id string) *AnonymousIPRiskEventRequestBuilder {
+ bb := &AnonymousIPRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAnonymousIPRiskEventsCollectionRequest is request for AnonymousIPRiskEvent collection
+type GraphServiceAnonymousIPRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AnonymousIPRiskEvent collection
+func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AnonymousIPRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AnonymousIPRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AnonymousIPRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AnonymousIPRiskEvent collection, max N pages
+func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]AnonymousIPRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AnonymousIPRiskEvent collection
+func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Get(ctx context.Context) ([]AnonymousIPRiskEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AnonymousIPRiskEvent collection
+func (r *GraphServiceAnonymousIPRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *AnonymousIPRiskEvent) (resObj *AnonymousIPRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// AppRoleAssignments returns request builder for AppRoleAssignment collection
+func (b *GraphServiceRequestBuilder) AppRoleAssignments() *GraphServiceAppRoleAssignmentsCollectionRequestBuilder {
+ bb := &GraphServiceAppRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appRoleAssignments"
+ return bb
+}
+
+// GraphServiceAppRoleAssignmentsCollectionRequestBuilder is request builder for AppRoleAssignment collection
+type GraphServiceAppRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AppRoleAssignment collection
+func (b *GraphServiceAppRoleAssignmentsCollectionRequestBuilder) Request() *GraphServiceAppRoleAssignmentsCollectionRequest {
+ return &GraphServiceAppRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AppRoleAssignment item
+func (b *GraphServiceAppRoleAssignmentsCollectionRequestBuilder) ID(id string) *AppRoleAssignmentRequestBuilder {
+ bb := &AppRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceAppRoleAssignmentsCollectionRequest is request for AppRoleAssignment collection
+type GraphServiceAppRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AppRoleAssignment collection
+func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AppRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AppRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AppRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AppRoleAssignment collection, max N pages
+func (r *GraphServiceAppRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]AppRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AppRoleAssignment collection
+func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]AppRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AppRoleAssignment collection
+func (r *GraphServiceAppRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *AppRoleAssignment) (resObj *AppRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ApplicationTemplates returns request builder for ApplicationTemplate collection
+func (b *GraphServiceRequestBuilder) ApplicationTemplates() *GraphServiceApplicationTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceApplicationTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/applicationTemplates"
+ return bb
+}
+
+// GraphServiceApplicationTemplatesCollectionRequestBuilder is request builder for ApplicationTemplate collection
+type GraphServiceApplicationTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ApplicationTemplate collection
+func (b *GraphServiceApplicationTemplatesCollectionRequestBuilder) Request() *GraphServiceApplicationTemplatesCollectionRequest {
+ return &GraphServiceApplicationTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ApplicationTemplate item
+func (b *GraphServiceApplicationTemplatesCollectionRequestBuilder) ID(id string) *ApplicationTemplateRequestBuilder {
+ bb := &ApplicationTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceApplicationTemplatesCollectionRequest is request for ApplicationTemplate collection
+type GraphServiceApplicationTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ApplicationTemplate collection
+func (r *GraphServiceApplicationTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ApplicationTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ApplicationTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ApplicationTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ApplicationTemplate collection, max N pages
+func (r *GraphServiceApplicationTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]ApplicationTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ApplicationTemplate collection
+func (r *GraphServiceApplicationTemplatesCollectionRequest) Get(ctx context.Context) ([]ApplicationTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ApplicationTemplate collection
+func (r *GraphServiceApplicationTemplatesCollectionRequest) Add(ctx context.Context, reqObj *ApplicationTemplate) (resObj *ApplicationTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Applications returns request builder for Application collection
+func (b *GraphServiceRequestBuilder) Applications() *GraphServiceApplicationsCollectionRequestBuilder {
+ bb := &GraphServiceApplicationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/applications"
+ return bb
+}
+
+// GraphServiceApplicationsCollectionRequestBuilder is request builder for Application collection
+type GraphServiceApplicationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Application collection
+func (b *GraphServiceApplicationsCollectionRequestBuilder) Request() *GraphServiceApplicationsCollectionRequest {
+ return &GraphServiceApplicationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Application item
+func (b *GraphServiceApplicationsCollectionRequestBuilder) ID(id string) *ApplicationRequestBuilder {
+ bb := &ApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceApplicationsCollectionRequest is request for Application collection
+type GraphServiceApplicationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Application collection
+func (r *GraphServiceApplicationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Application, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Application
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Application
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Application collection, max N pages
+func (r *GraphServiceApplicationsCollectionRequest) GetN(ctx context.Context, n int) ([]Application, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Application collection
+func (r *GraphServiceApplicationsCollectionRequest) Get(ctx context.Context) ([]Application, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Application collection
+func (r *GraphServiceApplicationsCollectionRequest) Add(ctx context.Context, reqObj *Application) (resObj *Application, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ApprovalWorkflowProviders returns request builder for ApprovalWorkflowProvider collection
+func (b *GraphServiceRequestBuilder) ApprovalWorkflowProviders() *GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder {
+ bb := &GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/approvalWorkflowProviders"
+ return bb
+}
+
+// GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder is request builder for ApprovalWorkflowProvider collection
+type GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ApprovalWorkflowProvider collection
+func (b *GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder) Request() *GraphServiceApprovalWorkflowProvidersCollectionRequest {
+ return &GraphServiceApprovalWorkflowProvidersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ApprovalWorkflowProvider item
+func (b *GraphServiceApprovalWorkflowProvidersCollectionRequestBuilder) ID(id string) *ApprovalWorkflowProviderRequestBuilder {
+ bb := &ApprovalWorkflowProviderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceApprovalWorkflowProvidersCollectionRequest is request for ApprovalWorkflowProvider collection
+type GraphServiceApprovalWorkflowProvidersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ApprovalWorkflowProvider collection
+func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ApprovalWorkflowProvider, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ApprovalWorkflowProvider
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ApprovalWorkflowProvider
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ApprovalWorkflowProvider collection, max N pages
+func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) GetN(ctx context.Context, n int) ([]ApprovalWorkflowProvider, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ApprovalWorkflowProvider collection
+func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Get(ctx context.Context) ([]ApprovalWorkflowProvider, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ApprovalWorkflowProvider collection
+func (r *GraphServiceApprovalWorkflowProvidersCollectionRequest) Add(ctx context.Context, reqObj *ApprovalWorkflowProvider) (resObj *ApprovalWorkflowProvider, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// BookingBusinesses returns request builder for BookingBusiness collection
+func (b *GraphServiceRequestBuilder) BookingBusinesses() *GraphServiceBookingBusinessesCollectionRequestBuilder {
+ bb := &GraphServiceBookingBusinessesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bookingBusinesses"
+ return bb
+}
+
+// GraphServiceBookingBusinessesCollectionRequestBuilder is request builder for BookingBusiness collection
+type GraphServiceBookingBusinessesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingBusiness collection
+func (b *GraphServiceBookingBusinessesCollectionRequestBuilder) Request() *GraphServiceBookingBusinessesCollectionRequest {
+ return &GraphServiceBookingBusinessesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingBusiness item
+func (b *GraphServiceBookingBusinessesCollectionRequestBuilder) ID(id string) *BookingBusinessRequestBuilder {
+ bb := &BookingBusinessRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceBookingBusinessesCollectionRequest is request for BookingBusiness collection
+type GraphServiceBookingBusinessesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingBusiness collection
+func (r *GraphServiceBookingBusinessesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingBusiness, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingBusiness
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingBusiness
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BookingBusiness collection, max N pages
+func (r *GraphServiceBookingBusinessesCollectionRequest) GetN(ctx context.Context, n int) ([]BookingBusiness, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BookingBusiness collection
+func (r *GraphServiceBookingBusinessesCollectionRequest) Get(ctx context.Context) ([]BookingBusiness, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BookingBusiness collection
+func (r *GraphServiceBookingBusinessesCollectionRequest) Add(ctx context.Context, reqObj *BookingBusiness) (resObj *BookingBusiness, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// BookingCurrencies returns request builder for BookingCurrency collection
+func (b *GraphServiceRequestBuilder) BookingCurrencies() *GraphServiceBookingCurrenciesCollectionRequestBuilder {
+ bb := &GraphServiceBookingCurrenciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/bookingCurrencies"
+ return bb
+}
+
+// GraphServiceBookingCurrenciesCollectionRequestBuilder is request builder for BookingCurrency collection
+type GraphServiceBookingCurrenciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BookingCurrency collection
+func (b *GraphServiceBookingCurrenciesCollectionRequestBuilder) Request() *GraphServiceBookingCurrenciesCollectionRequest {
+ return &GraphServiceBookingCurrenciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BookingCurrency item
+func (b *GraphServiceBookingCurrenciesCollectionRequestBuilder) ID(id string) *BookingCurrencyRequestBuilder {
+ bb := &BookingCurrencyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceBookingCurrenciesCollectionRequest is request for BookingCurrency collection
+type GraphServiceBookingCurrenciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BookingCurrency collection
+func (r *GraphServiceBookingCurrenciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BookingCurrency, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BookingCurrency
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BookingCurrency
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BookingCurrency collection, max N pages
+func (r *GraphServiceBookingCurrenciesCollectionRequest) GetN(ctx context.Context, n int) ([]BookingCurrency, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BookingCurrency collection
+func (r *GraphServiceBookingCurrenciesCollectionRequest) Get(ctx context.Context) ([]BookingCurrency, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BookingCurrency collection
+func (r *GraphServiceBookingCurrenciesCollectionRequest) Add(ctx context.Context, reqObj *BookingCurrency) (resObj *BookingCurrency, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// BusinessFlowTemplates returns request builder for BusinessFlowTemplate collection
+func (b *GraphServiceRequestBuilder) BusinessFlowTemplates() *GraphServiceBusinessFlowTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceBusinessFlowTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/businessFlowTemplates"
+ return bb
+}
+
+// GraphServiceBusinessFlowTemplatesCollectionRequestBuilder is request builder for BusinessFlowTemplate collection
+type GraphServiceBusinessFlowTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for BusinessFlowTemplate collection
+func (b *GraphServiceBusinessFlowTemplatesCollectionRequestBuilder) Request() *GraphServiceBusinessFlowTemplatesCollectionRequest {
+ return &GraphServiceBusinessFlowTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for BusinessFlowTemplate item
+func (b *GraphServiceBusinessFlowTemplatesCollectionRequestBuilder) ID(id string) *BusinessFlowTemplateRequestBuilder {
+ bb := &BusinessFlowTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceBusinessFlowTemplatesCollectionRequest is request for BusinessFlowTemplate collection
+type GraphServiceBusinessFlowTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for BusinessFlowTemplate collection
+func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]BusinessFlowTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []BusinessFlowTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []BusinessFlowTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for BusinessFlowTemplate collection, max N pages
+func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]BusinessFlowTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for BusinessFlowTemplate collection
+func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Get(ctx context.Context) ([]BusinessFlowTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for BusinessFlowTemplate collection
+func (r *GraphServiceBusinessFlowTemplatesCollectionRequest) Add(ctx context.Context, reqObj *BusinessFlowTemplate) (resObj *BusinessFlowTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// CertificateBasedAuthConfiguration returns request builder for CertificateBasedAuthConfiguration collection
+func (b *GraphServiceRequestBuilder) CertificateBasedAuthConfiguration() *GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder {
+ bb := &GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/certificateBasedAuthConfiguration"
+ return bb
+}
+
+// GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder is request builder for CertificateBasedAuthConfiguration collection
+type GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for CertificateBasedAuthConfiguration collection
+func (b *GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder) Request() *GraphServiceCertificateBasedAuthConfigurationCollectionRequest {
+ return &GraphServiceCertificateBasedAuthConfigurationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for CertificateBasedAuthConfiguration item
+func (b *GraphServiceCertificateBasedAuthConfigurationCollectionRequestBuilder) ID(id string) *CertificateBasedAuthConfigurationRequestBuilder {
+ bb := &CertificateBasedAuthConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceCertificateBasedAuthConfigurationCollectionRequest is request for CertificateBasedAuthConfiguration collection
+type GraphServiceCertificateBasedAuthConfigurationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for CertificateBasedAuthConfiguration collection
+func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]CertificateBasedAuthConfiguration, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []CertificateBasedAuthConfiguration
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []CertificateBasedAuthConfiguration
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for CertificateBasedAuthConfiguration collection, max N pages
+func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) GetN(ctx context.Context, n int) ([]CertificateBasedAuthConfiguration, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for CertificateBasedAuthConfiguration collection
+func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Get(ctx context.Context) ([]CertificateBasedAuthConfiguration, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for CertificateBasedAuthConfiguration collection
+func (r *GraphServiceCertificateBasedAuthConfigurationCollectionRequest) Add(ctx context.Context, reqObj *CertificateBasedAuthConfiguration) (resObj *CertificateBasedAuthConfiguration, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Chats returns request builder for Chat collection
+func (b *GraphServiceRequestBuilder) Chats() *GraphServiceChatsCollectionRequestBuilder {
+ bb := &GraphServiceChatsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/chats"
+ return bb
+}
+
+// GraphServiceChatsCollectionRequestBuilder is request builder for Chat collection
+type GraphServiceChatsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Chat collection
+func (b *GraphServiceChatsCollectionRequestBuilder) Request() *GraphServiceChatsCollectionRequest {
+ return &GraphServiceChatsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Chat item
+func (b *GraphServiceChatsCollectionRequestBuilder) ID(id string) *ChatRequestBuilder {
+ bb := &ChatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceChatsCollectionRequest is request for Chat collection
+type GraphServiceChatsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Chat collection
+func (r *GraphServiceChatsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Chat, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Chat
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Chat
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Chat collection, max N pages
+func (r *GraphServiceChatsCollectionRequest) GetN(ctx context.Context, n int) ([]Chat, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Chat collection
+func (r *GraphServiceChatsCollectionRequest) Get(ctx context.Context) ([]Chat, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Chat collection
+func (r *GraphServiceChatsCollectionRequest) Add(ctx context.Context, reqObj *Chat) (resObj *Chat, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Commands returns request builder for Command collection
+func (b *GraphServiceRequestBuilder) Commands() *GraphServiceCommandsCollectionRequestBuilder {
+ bb := &GraphServiceCommandsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/commands"
+ return bb
+}
+
+// GraphServiceCommandsCollectionRequestBuilder is request builder for Command collection
+type GraphServiceCommandsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Command collection
+func (b *GraphServiceCommandsCollectionRequestBuilder) Request() *GraphServiceCommandsCollectionRequest {
+ return &GraphServiceCommandsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Command item
+func (b *GraphServiceCommandsCollectionRequestBuilder) ID(id string) *CommandRequestBuilder {
+ bb := &CommandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceCommandsCollectionRequest is request for Command collection
+type GraphServiceCommandsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Command collection
+func (r *GraphServiceCommandsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Command, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Command
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Command
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Command collection, max N pages
+func (r *GraphServiceCommandsCollectionRequest) GetN(ctx context.Context, n int) ([]Command, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Command collection
+func (r *GraphServiceCommandsCollectionRequest) Get(ctx context.Context) ([]Command, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Command collection
+func (r *GraphServiceCommandsCollectionRequest) Add(ctx context.Context, reqObj *Command) (resObj *Command, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Connections returns request builder for ExternalConnection collection
+func (b *GraphServiceRequestBuilder) Connections() *GraphServiceConnectionsCollectionRequestBuilder {
+ bb := &GraphServiceConnectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/connections"
+ return bb
+}
+
+// GraphServiceConnectionsCollectionRequestBuilder is request builder for ExternalConnection collection
+type GraphServiceConnectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ExternalConnection collection
+func (b *GraphServiceConnectionsCollectionRequestBuilder) Request() *GraphServiceConnectionsCollectionRequest {
+ return &GraphServiceConnectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ExternalConnection item
+func (b *GraphServiceConnectionsCollectionRequestBuilder) ID(id string) *ExternalConnectionRequestBuilder {
+ bb := &ExternalConnectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceConnectionsCollectionRequest is request for ExternalConnection collection
+type GraphServiceConnectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ExternalConnection collection
+func (r *GraphServiceConnectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ExternalConnection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ExternalConnection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ExternalConnection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ExternalConnection collection, max N pages
+func (r *GraphServiceConnectionsCollectionRequest) GetN(ctx context.Context, n int) ([]ExternalConnection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ExternalConnection collection
+func (r *GraphServiceConnectionsCollectionRequest) Get(ctx context.Context) ([]ExternalConnection, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ExternalConnection collection
+func (r *GraphServiceConnectionsCollectionRequest) Add(ctx context.Context, reqObj *ExternalConnection) (resObj *ExternalConnection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Contacts returns request builder for OrgContact collection
+func (b *GraphServiceRequestBuilder) Contacts() *GraphServiceContactsCollectionRequestBuilder {
+ bb := &GraphServiceContactsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contacts"
+ return bb
+}
+
+// GraphServiceContactsCollectionRequestBuilder is request builder for OrgContact collection
+type GraphServiceContactsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OrgContact collection
+func (b *GraphServiceContactsCollectionRequestBuilder) Request() *GraphServiceContactsCollectionRequest {
+ return &GraphServiceContactsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OrgContact item
+func (b *GraphServiceContactsCollectionRequestBuilder) ID(id string) *OrgContactRequestBuilder {
+ bb := &OrgContactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceContactsCollectionRequest is request for OrgContact collection
+type GraphServiceContactsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OrgContact collection
+func (r *GraphServiceContactsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OrgContact, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OrgContact
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OrgContact
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OrgContact collection, max N pages
+func (r *GraphServiceContactsCollectionRequest) GetN(ctx context.Context, n int) ([]OrgContact, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OrgContact collection
+func (r *GraphServiceContactsCollectionRequest) Get(ctx context.Context) ([]OrgContact, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OrgContact collection
+func (r *GraphServiceContactsCollectionRequest) Add(ctx context.Context, reqObj *OrgContact) (resObj *OrgContact, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Contracts returns request builder for Contract collection
+func (b *GraphServiceRequestBuilder) Contracts() *GraphServiceContractsCollectionRequestBuilder {
+ bb := &GraphServiceContractsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/contracts"
+ return bb
+}
+
+// GraphServiceContractsCollectionRequestBuilder is request builder for Contract collection
+type GraphServiceContractsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Contract collection
+func (b *GraphServiceContractsCollectionRequestBuilder) Request() *GraphServiceContractsCollectionRequest {
+ return &GraphServiceContractsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Contract item
+func (b *GraphServiceContractsCollectionRequestBuilder) ID(id string) *ContractRequestBuilder {
+ bb := &ContractRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceContractsCollectionRequest is request for Contract collection
+type GraphServiceContractsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Contract collection
+func (r *GraphServiceContractsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Contract, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Contract
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Contract
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Contract collection, max N pages
+func (r *GraphServiceContractsCollectionRequest) GetN(ctx context.Context, n int) ([]Contract, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Contract collection
+func (r *GraphServiceContractsCollectionRequest) Get(ctx context.Context) ([]Contract, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Contract collection
+func (r *GraphServiceContractsCollectionRequest) Add(ctx context.Context, reqObj *Contract) (resObj *Contract, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DataPolicyOperations returns request builder for DataPolicyOperation collection
+func (b *GraphServiceRequestBuilder) DataPolicyOperations() *GraphServiceDataPolicyOperationsCollectionRequestBuilder {
+ bb := &GraphServiceDataPolicyOperationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dataPolicyOperations"
+ return bb
+}
+
+// GraphServiceDataPolicyOperationsCollectionRequestBuilder is request builder for DataPolicyOperation collection
+type GraphServiceDataPolicyOperationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DataPolicyOperation collection
+func (b *GraphServiceDataPolicyOperationsCollectionRequestBuilder) Request() *GraphServiceDataPolicyOperationsCollectionRequest {
+ return &GraphServiceDataPolicyOperationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DataPolicyOperation item
+func (b *GraphServiceDataPolicyOperationsCollectionRequestBuilder) ID(id string) *DataPolicyOperationRequestBuilder {
+ bb := &DataPolicyOperationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDataPolicyOperationsCollectionRequest is request for DataPolicyOperation collection
+type GraphServiceDataPolicyOperationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DataPolicyOperation collection
+func (r *GraphServiceDataPolicyOperationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DataPolicyOperation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DataPolicyOperation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DataPolicyOperation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DataPolicyOperation collection, max N pages
+func (r *GraphServiceDataPolicyOperationsCollectionRequest) GetN(ctx context.Context, n int) ([]DataPolicyOperation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DataPolicyOperation collection
+func (r *GraphServiceDataPolicyOperationsCollectionRequest) Get(ctx context.Context) ([]DataPolicyOperation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DataPolicyOperation collection
+func (r *GraphServiceDataPolicyOperationsCollectionRequest) Add(ctx context.Context, reqObj *DataPolicyOperation) (resObj *DataPolicyOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Devices returns request builder for Device collection
+func (b *GraphServiceRequestBuilder) Devices() *GraphServiceDevicesCollectionRequestBuilder {
+ bb := &GraphServiceDevicesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/devices"
+ return bb
+}
+
+// GraphServiceDevicesCollectionRequestBuilder is request builder for Device collection
+type GraphServiceDevicesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Device collection
+func (b *GraphServiceDevicesCollectionRequestBuilder) Request() *GraphServiceDevicesCollectionRequest {
+ return &GraphServiceDevicesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Device item
+func (b *GraphServiceDevicesCollectionRequestBuilder) ID(id string) *DeviceRequestBuilder {
+ bb := &DeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDevicesCollectionRequest is request for Device collection
+type GraphServiceDevicesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Device collection
+func (r *GraphServiceDevicesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Device, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Device
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Device
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Device collection, max N pages
+func (r *GraphServiceDevicesCollectionRequest) GetN(ctx context.Context, n int) ([]Device, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Device collection
+func (r *GraphServiceDevicesCollectionRequest) Get(ctx context.Context) ([]Device, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Device collection
+func (r *GraphServiceDevicesCollectionRequest) Add(ctx context.Context, reqObj *Device) (resObj *Device, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Directories returns request builder for DirectoryDefinition collection
+func (b *GraphServiceRequestBuilder) Directories() *GraphServiceDirectoriesCollectionRequestBuilder {
+ bb := &GraphServiceDirectoriesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directories"
+ return bb
+}
+
+// GraphServiceDirectoriesCollectionRequestBuilder is request builder for DirectoryDefinition collection
+type GraphServiceDirectoriesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryDefinition collection
+func (b *GraphServiceDirectoriesCollectionRequestBuilder) Request() *GraphServiceDirectoriesCollectionRequest {
+ return &GraphServiceDirectoriesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryDefinition item
+func (b *GraphServiceDirectoriesCollectionRequestBuilder) ID(id string) *DirectoryDefinitionRequestBuilder {
+ bb := &DirectoryDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectoriesCollectionRequest is request for DirectoryDefinition collection
+type GraphServiceDirectoriesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryDefinition collection
+func (r *GraphServiceDirectoriesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryDefinition collection, max N pages
+func (r *GraphServiceDirectoriesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryDefinition collection
+func (r *GraphServiceDirectoriesCollectionRequest) Get(ctx context.Context) ([]DirectoryDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryDefinition collection
+func (r *GraphServiceDirectoriesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryDefinition) (resObj *DirectoryDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectoryObjects returns request builder for DirectoryObject collection
+func (b *GraphServiceRequestBuilder) DirectoryObjects() *GraphServiceDirectoryObjectsCollectionRequestBuilder {
+ bb := &GraphServiceDirectoryObjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryObjects"
+ return bb
+}
+
+// GraphServiceDirectoryObjectsCollectionRequestBuilder is request builder for DirectoryObject collection
+type GraphServiceDirectoryObjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryObject collection
+func (b *GraphServiceDirectoryObjectsCollectionRequestBuilder) Request() *GraphServiceDirectoryObjectsCollectionRequest {
+ return &GraphServiceDirectoryObjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryObject item
+func (b *GraphServiceDirectoryObjectsCollectionRequestBuilder) ID(id string) *DirectoryObjectRequestBuilder {
+ bb := &DirectoryObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectoryObjectsCollectionRequest is request for DirectoryObject collection
+type GraphServiceDirectoryObjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryObject collection
+func (r *GraphServiceDirectoryObjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryObject collection, max N pages
+func (r *GraphServiceDirectoryObjectsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryObject collection
+func (r *GraphServiceDirectoryObjectsCollectionRequest) Get(ctx context.Context) ([]DirectoryObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryObject collection
+func (r *GraphServiceDirectoryObjectsCollectionRequest) Add(ctx context.Context, reqObj *DirectoryObject) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectoryRoleTemplates returns request builder for DirectoryRoleTemplate collection
+func (b *GraphServiceRequestBuilder) DirectoryRoleTemplates() *GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryRoleTemplates"
+ return bb
+}
+
+// GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder is request builder for DirectoryRoleTemplate collection
+type GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryRoleTemplate collection
+func (b *GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder) Request() *GraphServiceDirectoryRoleTemplatesCollectionRequest {
+ return &GraphServiceDirectoryRoleTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryRoleTemplate item
+func (b *GraphServiceDirectoryRoleTemplatesCollectionRequestBuilder) ID(id string) *DirectoryRoleTemplateRequestBuilder {
+ bb := &DirectoryRoleTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectoryRoleTemplatesCollectionRequest is request for DirectoryRoleTemplate collection
+type GraphServiceDirectoryRoleTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryRoleTemplate collection
+func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryRoleTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryRoleTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryRoleTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryRoleTemplate collection, max N pages
+func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryRoleTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryRoleTemplate collection
+func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Get(ctx context.Context) ([]DirectoryRoleTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryRoleTemplate collection
+func (r *GraphServiceDirectoryRoleTemplatesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryRoleTemplate) (resObj *DirectoryRoleTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectoryRoles returns request builder for DirectoryRole collection
+func (b *GraphServiceRequestBuilder) DirectoryRoles() *GraphServiceDirectoryRolesCollectionRequestBuilder {
+ bb := &GraphServiceDirectoryRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directoryRoles"
+ return bb
+}
+
+// GraphServiceDirectoryRolesCollectionRequestBuilder is request builder for DirectoryRole collection
+type GraphServiceDirectoryRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectoryRole collection
+func (b *GraphServiceDirectoryRolesCollectionRequestBuilder) Request() *GraphServiceDirectoryRolesCollectionRequest {
+ return &GraphServiceDirectoryRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectoryRole item
+func (b *GraphServiceDirectoryRolesCollectionRequestBuilder) ID(id string) *DirectoryRoleRequestBuilder {
+ bb := &DirectoryRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectoryRolesCollectionRequest is request for DirectoryRole collection
+type GraphServiceDirectoryRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectoryRole collection
+func (r *GraphServiceDirectoryRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectoryRole collection, max N pages
+func (r *GraphServiceDirectoryRolesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectoryRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectoryRole collection
+func (r *GraphServiceDirectoryRolesCollectionRequest) Get(ctx context.Context) ([]DirectoryRole, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectoryRole collection
+func (r *GraphServiceDirectoryRolesCollectionRequest) Add(ctx context.Context, reqObj *DirectoryRole) (resObj *DirectoryRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DirectorySettingTemplates returns request builder for DirectorySettingTemplate collection
+func (b *GraphServiceRequestBuilder) DirectorySettingTemplates() *GraphServiceDirectorySettingTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceDirectorySettingTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directorySettingTemplates"
+ return bb
+}
+
+// GraphServiceDirectorySettingTemplatesCollectionRequestBuilder is request builder for DirectorySettingTemplate collection
+type GraphServiceDirectorySettingTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectorySettingTemplate collection
+func (b *GraphServiceDirectorySettingTemplatesCollectionRequestBuilder) Request() *GraphServiceDirectorySettingTemplatesCollectionRequest {
+ return &GraphServiceDirectorySettingTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectorySettingTemplate item
+func (b *GraphServiceDirectorySettingTemplatesCollectionRequestBuilder) ID(id string) *DirectorySettingTemplateRequestBuilder {
+ bb := &DirectorySettingTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDirectorySettingTemplatesCollectionRequest is request for DirectorySettingTemplate collection
+type GraphServiceDirectorySettingTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectorySettingTemplate collection
+func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectorySettingTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectorySettingTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectorySettingTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectorySettingTemplate collection, max N pages
+func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]DirectorySettingTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectorySettingTemplate collection
+func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Get(ctx context.Context) ([]DirectorySettingTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectorySettingTemplate collection
+func (r *GraphServiceDirectorySettingTemplatesCollectionRequest) Add(ctx context.Context, reqObj *DirectorySettingTemplate) (resObj *DirectorySettingTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// DomainDNSRecords returns request builder for DomainDNSRecord collection
+func (b *GraphServiceRequestBuilder) DomainDNSRecords() *GraphServiceDomainDNSRecordsCollectionRequestBuilder {
+ bb := &GraphServiceDomainDNSRecordsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domainDnsRecords"
+ return bb
+}
+
+// GraphServiceDomainDNSRecordsCollectionRequestBuilder is request builder for DomainDNSRecord collection
+type GraphServiceDomainDNSRecordsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DomainDNSRecord collection
+func (b *GraphServiceDomainDNSRecordsCollectionRequestBuilder) Request() *GraphServiceDomainDNSRecordsCollectionRequest {
+ return &GraphServiceDomainDNSRecordsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DomainDNSRecord item
+func (b *GraphServiceDomainDNSRecordsCollectionRequestBuilder) ID(id string) *DomainDNSRecordRequestBuilder {
+ bb := &DomainDNSRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDomainDNSRecordsCollectionRequest is request for DomainDNSRecord collection
+type GraphServiceDomainDNSRecordsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DomainDNSRecord collection
+func (r *GraphServiceDomainDNSRecordsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DomainDNSRecord, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DomainDNSRecord
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DomainDNSRecord
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DomainDNSRecord collection, max N pages
+func (r *GraphServiceDomainDNSRecordsCollectionRequest) GetN(ctx context.Context, n int) ([]DomainDNSRecord, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DomainDNSRecord collection
+func (r *GraphServiceDomainDNSRecordsCollectionRequest) Get(ctx context.Context) ([]DomainDNSRecord, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DomainDNSRecord collection
+func (r *GraphServiceDomainDNSRecordsCollectionRequest) Add(ctx context.Context, reqObj *DomainDNSRecord) (resObj *DomainDNSRecord, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Domains returns request builder for Domain collection
+func (b *GraphServiceRequestBuilder) Domains() *GraphServiceDomainsCollectionRequestBuilder {
+ bb := &GraphServiceDomainsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/domains"
+ return bb
+}
+
+// GraphServiceDomainsCollectionRequestBuilder is request builder for Domain collection
+type GraphServiceDomainsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Domain collection
+func (b *GraphServiceDomainsCollectionRequestBuilder) Request() *GraphServiceDomainsCollectionRequest {
+ return &GraphServiceDomainsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Domain item
+func (b *GraphServiceDomainsCollectionRequestBuilder) ID(id string) *DomainRequestBuilder {
+ bb := &DomainRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDomainsCollectionRequest is request for Domain collection
+type GraphServiceDomainsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Domain collection
+func (r *GraphServiceDomainsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Domain, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Domain
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Domain
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Domain collection, max N pages
+func (r *GraphServiceDomainsCollectionRequest) GetN(ctx context.Context, n int) ([]Domain, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Domain collection
+func (r *GraphServiceDomainsCollectionRequest) Get(ctx context.Context) ([]Domain, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Domain collection
+func (r *GraphServiceDomainsCollectionRequest) Add(ctx context.Context, reqObj *Domain) (resObj *Domain, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Drives returns request builder for Drive collection
+func (b *GraphServiceRequestBuilder) Drives() *GraphServiceDrivesCollectionRequestBuilder {
+ bb := &GraphServiceDrivesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drives"
+ return bb
+}
+
+// GraphServiceDrivesCollectionRequestBuilder is request builder for Drive collection
+type GraphServiceDrivesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Drive collection
+func (b *GraphServiceDrivesCollectionRequestBuilder) Request() *GraphServiceDrivesCollectionRequest {
+ return &GraphServiceDrivesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Drive item
+func (b *GraphServiceDrivesCollectionRequestBuilder) ID(id string) *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceDrivesCollectionRequest is request for Drive collection
+type GraphServiceDrivesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Drive collection
+func (r *GraphServiceDrivesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Drive, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Drive
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Drive
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Drive collection, max N pages
+func (r *GraphServiceDrivesCollectionRequest) GetN(ctx context.Context, n int) ([]Drive, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Drive collection
+func (r *GraphServiceDrivesCollectionRequest) Get(ctx context.Context) ([]Drive, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Drive collection
+func (r *GraphServiceDrivesCollectionRequest) Add(ctx context.Context, reqObj *Drive) (resObj *Drive, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// FilterOperators returns request builder for FilterOperatorSchema collection
+func (b *GraphServiceRequestBuilder) FilterOperators() *GraphServiceFilterOperatorsCollectionRequestBuilder {
+ bb := &GraphServiceFilterOperatorsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/filterOperators"
+ return bb
+}
+
+// GraphServiceFilterOperatorsCollectionRequestBuilder is request builder for FilterOperatorSchema collection
+type GraphServiceFilterOperatorsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for FilterOperatorSchema collection
+func (b *GraphServiceFilterOperatorsCollectionRequestBuilder) Request() *GraphServiceFilterOperatorsCollectionRequest {
+ return &GraphServiceFilterOperatorsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for FilterOperatorSchema item
+func (b *GraphServiceFilterOperatorsCollectionRequestBuilder) ID(id string) *FilterOperatorSchemaRequestBuilder {
+ bb := &FilterOperatorSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceFilterOperatorsCollectionRequest is request for FilterOperatorSchema collection
+type GraphServiceFilterOperatorsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for FilterOperatorSchema collection
+func (r *GraphServiceFilterOperatorsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]FilterOperatorSchema, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []FilterOperatorSchema
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []FilterOperatorSchema
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for FilterOperatorSchema collection, max N pages
+func (r *GraphServiceFilterOperatorsCollectionRequest) GetN(ctx context.Context, n int) ([]FilterOperatorSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for FilterOperatorSchema collection
+func (r *GraphServiceFilterOperatorsCollectionRequest) Get(ctx context.Context) ([]FilterOperatorSchema, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for FilterOperatorSchema collection
+func (r *GraphServiceFilterOperatorsCollectionRequest) Add(ctx context.Context, reqObj *FilterOperatorSchema) (resObj *FilterOperatorSchema, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Functions returns request builder for AttributeMappingFunctionSchema collection
+func (b *GraphServiceRequestBuilder) Functions() *GraphServiceFunctionsCollectionRequestBuilder {
+ bb := &GraphServiceFunctionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/functions"
+ return bb
+}
+
+// GraphServiceFunctionsCollectionRequestBuilder is request builder for AttributeMappingFunctionSchema collection
+type GraphServiceFunctionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for AttributeMappingFunctionSchema collection
+func (b *GraphServiceFunctionsCollectionRequestBuilder) Request() *GraphServiceFunctionsCollectionRequest {
+ return &GraphServiceFunctionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for AttributeMappingFunctionSchema item
+func (b *GraphServiceFunctionsCollectionRequestBuilder) ID(id string) *AttributeMappingFunctionSchemaRequestBuilder {
+ bb := &AttributeMappingFunctionSchemaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceFunctionsCollectionRequest is request for AttributeMappingFunctionSchema collection
+type GraphServiceFunctionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for AttributeMappingFunctionSchema collection
+func (r *GraphServiceFunctionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]AttributeMappingFunctionSchema, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []AttributeMappingFunctionSchema
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []AttributeMappingFunctionSchema
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for AttributeMappingFunctionSchema collection, max N pages
+func (r *GraphServiceFunctionsCollectionRequest) GetN(ctx context.Context, n int) ([]AttributeMappingFunctionSchema, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for AttributeMappingFunctionSchema collection
+func (r *GraphServiceFunctionsCollectionRequest) Get(ctx context.Context) ([]AttributeMappingFunctionSchema, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for AttributeMappingFunctionSchema collection
+func (r *GraphServiceFunctionsCollectionRequest) Add(ctx context.Context, reqObj *AttributeMappingFunctionSchema) (resObj *AttributeMappingFunctionSchema, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceResources returns request builder for GovernanceResource collection
+func (b *GraphServiceRequestBuilder) GovernanceResources() *GraphServiceGovernanceResourcesCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceResourcesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceResources"
+ return bb
+}
+
+// GraphServiceGovernanceResourcesCollectionRequestBuilder is request builder for GovernanceResource collection
+type GraphServiceGovernanceResourcesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceResource collection
+func (b *GraphServiceGovernanceResourcesCollectionRequestBuilder) Request() *GraphServiceGovernanceResourcesCollectionRequest {
+ return &GraphServiceGovernanceResourcesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceResource item
+func (b *GraphServiceGovernanceResourcesCollectionRequestBuilder) ID(id string) *GovernanceResourceRequestBuilder {
+ bb := &GovernanceResourceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceResourcesCollectionRequest is request for GovernanceResource collection
+type GraphServiceGovernanceResourcesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceResource collection
+func (r *GraphServiceGovernanceResourcesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceResource, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceResource
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceResource
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceResource collection, max N pages
+func (r *GraphServiceGovernanceResourcesCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceResource, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceResource collection
+func (r *GraphServiceGovernanceResourcesCollectionRequest) Get(ctx context.Context) ([]GovernanceResource, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceResource collection
+func (r *GraphServiceGovernanceResourcesCollectionRequest) Add(ctx context.Context, reqObj *GovernanceResource) (resObj *GovernanceResource, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceRoleAssignmentRequests returns request builder for GovernanceRoleAssignmentRequestObject collection
+func (b *GraphServiceRequestBuilder) GovernanceRoleAssignmentRequests() *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceRoleAssignmentRequests"
+ return bb
+}
+
+// GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject collection
+type GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignmentRequestObject collection
+func (b *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest {
+ return &GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignmentRequestObject item
+func (b *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestObjectRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest is request for GovernanceRoleAssignmentRequestObject collection
+type GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignmentRequestObject collection
+func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleAssignmentRequestObject collection, max N pages
+func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject collection
+func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignmentRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleAssignmentRequestObject collection
+func (r *GraphServiceGovernanceRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceRoleAssignments returns request builder for GovernanceRoleAssignment collection
+func (b *GraphServiceRequestBuilder) GovernanceRoleAssignments() *GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceRoleAssignments"
+ return bb
+}
+
+// GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder is request builder for GovernanceRoleAssignment collection
+type GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleAssignment collection
+func (b *GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleAssignmentsCollectionRequest {
+ return &GraphServiceGovernanceRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleAssignment item
+func (b *GraphServiceGovernanceRoleAssignmentsCollectionRequestBuilder) ID(id string) *GovernanceRoleAssignmentRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceRoleAssignmentsCollectionRequest is request for GovernanceRoleAssignment collection
+type GraphServiceGovernanceRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleAssignment collection
+func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleAssignment collection, max N pages
+func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleAssignment collection
+func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleAssignment collection
+func (r *GraphServiceGovernanceRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleAssignment) (resObj *GovernanceRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceRoleDefinitions returns request builder for GovernanceRoleDefinition collection
+func (b *GraphServiceRequestBuilder) GovernanceRoleDefinitions() *GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceRoleDefinitions"
+ return bb
+}
+
+// GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder is request builder for GovernanceRoleDefinition collection
+type GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleDefinition collection
+func (b *GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleDefinitionsCollectionRequest {
+ return &GraphServiceGovernanceRoleDefinitionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleDefinition item
+func (b *GraphServiceGovernanceRoleDefinitionsCollectionRequestBuilder) ID(id string) *GovernanceRoleDefinitionRequestBuilder {
+ bb := &GovernanceRoleDefinitionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceRoleDefinitionsCollectionRequest is request for GovernanceRoleDefinition collection
+type GraphServiceGovernanceRoleDefinitionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleDefinition collection
+func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleDefinition, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleDefinition
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleDefinition
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleDefinition collection, max N pages
+func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleDefinition, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleDefinition collection
+func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleDefinition, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleDefinition collection
+func (r *GraphServiceGovernanceRoleDefinitionsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleDefinition) (resObj *GovernanceRoleDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceRoleSettings returns request builder for GovernanceRoleSetting collection
+func (b *GraphServiceRequestBuilder) GovernanceRoleSettings() *GraphServiceGovernanceRoleSettingsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceRoleSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceRoleSettings"
+ return bb
+}
+
+// GraphServiceGovernanceRoleSettingsCollectionRequestBuilder is request builder for GovernanceRoleSetting collection
+type GraphServiceGovernanceRoleSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceRoleSetting collection
+func (b *GraphServiceGovernanceRoleSettingsCollectionRequestBuilder) Request() *GraphServiceGovernanceRoleSettingsCollectionRequest {
+ return &GraphServiceGovernanceRoleSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceRoleSetting item
+func (b *GraphServiceGovernanceRoleSettingsCollectionRequestBuilder) ID(id string) *GovernanceRoleSettingRequestBuilder {
+ bb := &GovernanceRoleSettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceRoleSettingsCollectionRequest is request for GovernanceRoleSetting collection
+type GraphServiceGovernanceRoleSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceRoleSetting collection
+func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceRoleSetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceRoleSetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceRoleSetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceRoleSetting collection, max N pages
+func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceRoleSetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceRoleSetting collection
+func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Get(ctx context.Context) ([]GovernanceRoleSetting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceRoleSetting collection
+func (r *GraphServiceGovernanceRoleSettingsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceRoleSetting) (resObj *GovernanceRoleSetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GovernanceSubjects returns request builder for GovernanceSubject collection
+func (b *GraphServiceRequestBuilder) GovernanceSubjects() *GraphServiceGovernanceSubjectsCollectionRequestBuilder {
+ bb := &GraphServiceGovernanceSubjectsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/governanceSubjects"
+ return bb
+}
+
+// GraphServiceGovernanceSubjectsCollectionRequestBuilder is request builder for GovernanceSubject collection
+type GraphServiceGovernanceSubjectsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GovernanceSubject collection
+func (b *GraphServiceGovernanceSubjectsCollectionRequestBuilder) Request() *GraphServiceGovernanceSubjectsCollectionRequest {
+ return &GraphServiceGovernanceSubjectsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GovernanceSubject item
+func (b *GraphServiceGovernanceSubjectsCollectionRequestBuilder) ID(id string) *GovernanceSubjectRequestBuilder {
+ bb := &GovernanceSubjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGovernanceSubjectsCollectionRequest is request for GovernanceSubject collection
+type GraphServiceGovernanceSubjectsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GovernanceSubject collection
+func (r *GraphServiceGovernanceSubjectsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GovernanceSubject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GovernanceSubject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GovernanceSubject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GovernanceSubject collection, max N pages
+func (r *GraphServiceGovernanceSubjectsCollectionRequest) GetN(ctx context.Context, n int) ([]GovernanceSubject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GovernanceSubject collection
+func (r *GraphServiceGovernanceSubjectsCollectionRequest) Get(ctx context.Context) ([]GovernanceSubject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GovernanceSubject collection
+func (r *GraphServiceGovernanceSubjectsCollectionRequest) Add(ctx context.Context, reqObj *GovernanceSubject) (resObj *GovernanceSubject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// GroupLifecyclePolicies returns request builder for GroupLifecyclePolicy collection
+func (b *GraphServiceRequestBuilder) GroupLifecyclePolicies() *GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder {
+ bb := &GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groupLifecyclePolicies"
+ return bb
+}
+
+// GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder is request builder for GroupLifecyclePolicy collection
+type GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for GroupLifecyclePolicy collection
+func (b *GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder) Request() *GraphServiceGroupLifecyclePoliciesCollectionRequest {
+ return &GraphServiceGroupLifecyclePoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for GroupLifecyclePolicy item
+func (b *GraphServiceGroupLifecyclePoliciesCollectionRequestBuilder) ID(id string) *GroupLifecyclePolicyRequestBuilder {
+ bb := &GroupLifecyclePolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGroupLifecyclePoliciesCollectionRequest is request for GroupLifecyclePolicy collection
+type GraphServiceGroupLifecyclePoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for GroupLifecyclePolicy collection
+func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupLifecyclePolicy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupLifecyclePolicy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupLifecyclePolicy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for GroupLifecyclePolicy collection, max N pages
+func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]GroupLifecyclePolicy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for GroupLifecyclePolicy collection
+func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Get(ctx context.Context) ([]GroupLifecyclePolicy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for GroupLifecyclePolicy collection
+func (r *GraphServiceGroupLifecyclePoliciesCollectionRequest) Add(ctx context.Context, reqObj *GroupLifecyclePolicy) (resObj *GroupLifecyclePolicy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Groups returns request builder for Group collection
+func (b *GraphServiceRequestBuilder) Groups() *GraphServiceGroupsCollectionRequestBuilder {
+ bb := &GraphServiceGroupsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/groups"
+ return bb
+}
+
+// GraphServiceGroupsCollectionRequestBuilder is request builder for Group collection
+type GraphServiceGroupsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Group collection
+func (b *GraphServiceGroupsCollectionRequestBuilder) Request() *GraphServiceGroupsCollectionRequest {
+ return &GraphServiceGroupsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Group item
+func (b *GraphServiceGroupsCollectionRequestBuilder) ID(id string) *GroupRequestBuilder {
+ bb := &GroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceGroupsCollectionRequest is request for Group collection
+type GraphServiceGroupsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Group collection
+func (r *GraphServiceGroupsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Group, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Group
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Group
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Group collection, max N pages
+func (r *GraphServiceGroupsCollectionRequest) GetN(ctx context.Context, n int) ([]Group, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Group collection
+func (r *GraphServiceGroupsCollectionRequest) Get(ctx context.Context) ([]Group, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Group collection
+func (r *GraphServiceGroupsCollectionRequest) Add(ctx context.Context, reqObj *Group) (resObj *Group, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityProviders returns request builder for IdentityProvider collection
+func (b *GraphServiceRequestBuilder) IdentityProviders() *GraphServiceIdentityProvidersCollectionRequestBuilder {
+ bb := &GraphServiceIdentityProvidersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityProviders"
+ return bb
+}
+
+// GraphServiceIdentityProvidersCollectionRequestBuilder is request builder for IdentityProvider collection
+type GraphServiceIdentityProvidersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IdentityProvider collection
+func (b *GraphServiceIdentityProvidersCollectionRequestBuilder) Request() *GraphServiceIdentityProvidersCollectionRequest {
+ return &GraphServiceIdentityProvidersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IdentityProvider item
+func (b *GraphServiceIdentityProvidersCollectionRequestBuilder) ID(id string) *IdentityProviderRequestBuilder {
+ bb := &IdentityProviderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceIdentityProvidersCollectionRequest is request for IdentityProvider collection
+type GraphServiceIdentityProvidersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IdentityProvider collection
+func (r *GraphServiceIdentityProvidersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IdentityProvider, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IdentityProvider
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IdentityProvider
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IdentityProvider collection, max N pages
+func (r *GraphServiceIdentityProvidersCollectionRequest) GetN(ctx context.Context, n int) ([]IdentityProvider, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IdentityProvider collection
+func (r *GraphServiceIdentityProvidersCollectionRequest) Get(ctx context.Context) ([]IdentityProvider, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IdentityProvider collection
+func (r *GraphServiceIdentityProvidersCollectionRequest) Add(ctx context.Context, reqObj *IdentityProvider) (resObj *IdentityProvider, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// IdentityRiskEvents returns request builder for IdentityRiskEvent collection
+func (b *GraphServiceRequestBuilder) IdentityRiskEvents() *GraphServiceIdentityRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceIdentityRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityRiskEvents"
+ return bb
+}
+
+// GraphServiceIdentityRiskEventsCollectionRequestBuilder is request builder for IdentityRiskEvent collection
+type GraphServiceIdentityRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for IdentityRiskEvent collection
+func (b *GraphServiceIdentityRiskEventsCollectionRequestBuilder) Request() *GraphServiceIdentityRiskEventsCollectionRequest {
+ return &GraphServiceIdentityRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for IdentityRiskEvent item
+func (b *GraphServiceIdentityRiskEventsCollectionRequestBuilder) ID(id string) *IdentityRiskEventRequestBuilder {
+ bb := &IdentityRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceIdentityRiskEventsCollectionRequest is request for IdentityRiskEvent collection
+type GraphServiceIdentityRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for IdentityRiskEvent collection
+func (r *GraphServiceIdentityRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]IdentityRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []IdentityRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []IdentityRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for IdentityRiskEvent collection, max N pages
+func (r *GraphServiceIdentityRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]IdentityRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for IdentityRiskEvent collection
+func (r *GraphServiceIdentityRiskEventsCollectionRequest) Get(ctx context.Context) ([]IdentityRiskEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for IdentityRiskEvent collection
+func (r *GraphServiceIdentityRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *IdentityRiskEvent) (resObj *IdentityRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ImpossibleTravelRiskEvents returns request builder for ImpossibleTravelRiskEvent collection
+func (b *GraphServiceRequestBuilder) ImpossibleTravelRiskEvents() *GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/impossibleTravelRiskEvents"
+ return bb
+}
+
+// GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder is request builder for ImpossibleTravelRiskEvent collection
+type GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ImpossibleTravelRiskEvent collection
+func (b *GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder) Request() *GraphServiceImpossibleTravelRiskEventsCollectionRequest {
+ return &GraphServiceImpossibleTravelRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ImpossibleTravelRiskEvent item
+func (b *GraphServiceImpossibleTravelRiskEventsCollectionRequestBuilder) ID(id string) *ImpossibleTravelRiskEventRequestBuilder {
+ bb := &ImpossibleTravelRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceImpossibleTravelRiskEventsCollectionRequest is request for ImpossibleTravelRiskEvent collection
+type GraphServiceImpossibleTravelRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ImpossibleTravelRiskEvent collection
+func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImpossibleTravelRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImpossibleTravelRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImpossibleTravelRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ImpossibleTravelRiskEvent collection, max N pages
+func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]ImpossibleTravelRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ImpossibleTravelRiskEvent collection
+func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Get(ctx context.Context) ([]ImpossibleTravelRiskEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ImpossibleTravelRiskEvent collection
+func (r *GraphServiceImpossibleTravelRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *ImpossibleTravelRiskEvent) (resObj *ImpossibleTravelRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Invitations returns request builder for Invitation collection
+func (b *GraphServiceRequestBuilder) Invitations() *GraphServiceInvitationsCollectionRequestBuilder {
+ bb := &GraphServiceInvitationsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/invitations"
+ return bb
+}
+
+// GraphServiceInvitationsCollectionRequestBuilder is request builder for Invitation collection
+type GraphServiceInvitationsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Invitation collection
+func (b *GraphServiceInvitationsCollectionRequestBuilder) Request() *GraphServiceInvitationsCollectionRequest {
+ return &GraphServiceInvitationsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Invitation item
+func (b *GraphServiceInvitationsCollectionRequestBuilder) ID(id string) *InvitationRequestBuilder {
+ bb := &InvitationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceInvitationsCollectionRequest is request for Invitation collection
+type GraphServiceInvitationsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Invitation collection
+func (r *GraphServiceInvitationsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Invitation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Invitation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Invitation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Invitation collection, max N pages
+func (r *GraphServiceInvitationsCollectionRequest) GetN(ctx context.Context, n int) ([]Invitation, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Invitation collection
+func (r *GraphServiceInvitationsCollectionRequest) Get(ctx context.Context) ([]Invitation, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Invitation collection
+func (r *GraphServiceInvitationsCollectionRequest) Add(ctx context.Context, reqObj *Invitation) (resObj *Invitation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// LeakedCredentialsRiskEvents returns request builder for LeakedCredentialsRiskEvent collection
+func (b *GraphServiceRequestBuilder) LeakedCredentialsRiskEvents() *GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/leakedCredentialsRiskEvents"
+ return bb
+}
+
+// GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder is request builder for LeakedCredentialsRiskEvent collection
+type GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for LeakedCredentialsRiskEvent collection
+func (b *GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder) Request() *GraphServiceLeakedCredentialsRiskEventsCollectionRequest {
+ return &GraphServiceLeakedCredentialsRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for LeakedCredentialsRiskEvent item
+func (b *GraphServiceLeakedCredentialsRiskEventsCollectionRequestBuilder) ID(id string) *LeakedCredentialsRiskEventRequestBuilder {
+ bb := &LeakedCredentialsRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceLeakedCredentialsRiskEventsCollectionRequest is request for LeakedCredentialsRiskEvent collection
+type GraphServiceLeakedCredentialsRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for LeakedCredentialsRiskEvent collection
+func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]LeakedCredentialsRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []LeakedCredentialsRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []LeakedCredentialsRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for LeakedCredentialsRiskEvent collection, max N pages
+func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]LeakedCredentialsRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for LeakedCredentialsRiskEvent collection
+func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Get(ctx context.Context) ([]LeakedCredentialsRiskEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for LeakedCredentialsRiskEvent collection
+func (r *GraphServiceLeakedCredentialsRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *LeakedCredentialsRiskEvent) (resObj *LeakedCredentialsRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// MalwareRiskEvents returns request builder for MalwareRiskEvent collection
+func (b *GraphServiceRequestBuilder) MalwareRiskEvents() *GraphServiceMalwareRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceMalwareRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/malwareRiskEvents"
+ return bb
+}
+
+// GraphServiceMalwareRiskEventsCollectionRequestBuilder is request builder for MalwareRiskEvent collection
+type GraphServiceMalwareRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for MalwareRiskEvent collection
+func (b *GraphServiceMalwareRiskEventsCollectionRequestBuilder) Request() *GraphServiceMalwareRiskEventsCollectionRequest {
+ return &GraphServiceMalwareRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for MalwareRiskEvent item
+func (b *GraphServiceMalwareRiskEventsCollectionRequestBuilder) ID(id string) *MalwareRiskEventRequestBuilder {
+ bb := &MalwareRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceMalwareRiskEventsCollectionRequest is request for MalwareRiskEvent collection
+type GraphServiceMalwareRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for MalwareRiskEvent collection
+func (r *GraphServiceMalwareRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MalwareRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MalwareRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MalwareRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for MalwareRiskEvent collection, max N pages
+func (r *GraphServiceMalwareRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]MalwareRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for MalwareRiskEvent collection
+func (r *GraphServiceMalwareRiskEventsCollectionRequest) Get(ctx context.Context) ([]MalwareRiskEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for MalwareRiskEvent collection
+func (r *GraphServiceMalwareRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *MalwareRiskEvent) (resObj *MalwareRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Oauth2PermissionGrants returns request builder for OAuth2PermissionGrant collection
+func (b *GraphServiceRequestBuilder) Oauth2PermissionGrants() *GraphServiceOauth2PermissionGrantsCollectionRequestBuilder {
+ bb := &GraphServiceOauth2PermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/oauth2PermissionGrants"
+ return bb
+}
+
+// GraphServiceOauth2PermissionGrantsCollectionRequestBuilder is request builder for OAuth2PermissionGrant collection
+type GraphServiceOauth2PermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OAuth2PermissionGrant collection
+func (b *GraphServiceOauth2PermissionGrantsCollectionRequestBuilder) Request() *GraphServiceOauth2PermissionGrantsCollectionRequest {
+ return &GraphServiceOauth2PermissionGrantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OAuth2PermissionGrant item
+func (b *GraphServiceOauth2PermissionGrantsCollectionRequestBuilder) ID(id string) *OAuth2PermissionGrantRequestBuilder {
+ bb := &OAuth2PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceOauth2PermissionGrantsCollectionRequest is request for OAuth2PermissionGrant collection
+type GraphServiceOauth2PermissionGrantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OAuth2PermissionGrant collection
+func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OAuth2PermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OAuth2PermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OAuth2PermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OAuth2PermissionGrant collection, max N pages
+func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]OAuth2PermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OAuth2PermissionGrant collection
+func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Get(ctx context.Context) ([]OAuth2PermissionGrant, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OAuth2PermissionGrant collection
+func (r *GraphServiceOauth2PermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *OAuth2PermissionGrant) (resObj *OAuth2PermissionGrant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// OnPremisesPublishingProfiles returns request builder for OnPremisesPublishingProfile collection
+func (b *GraphServiceRequestBuilder) OnPremisesPublishingProfiles() *GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder {
+ bb := &GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/onPremisesPublishingProfiles"
+ return bb
+}
+
+// GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder is request builder for OnPremisesPublishingProfile collection
+type GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for OnPremisesPublishingProfile collection
+func (b *GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder) Request() *GraphServiceOnPremisesPublishingProfilesCollectionRequest {
+ return &GraphServiceOnPremisesPublishingProfilesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for OnPremisesPublishingProfile item
+func (b *GraphServiceOnPremisesPublishingProfilesCollectionRequestBuilder) ID(id string) *OnPremisesPublishingProfileRequestBuilder {
+ bb := &OnPremisesPublishingProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceOnPremisesPublishingProfilesCollectionRequest is request for OnPremisesPublishingProfile collection
+type GraphServiceOnPremisesPublishingProfilesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for OnPremisesPublishingProfile collection
+func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OnPremisesPublishingProfile, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OnPremisesPublishingProfile
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OnPremisesPublishingProfile
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for OnPremisesPublishingProfile collection, max N pages
+func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) GetN(ctx context.Context, n int) ([]OnPremisesPublishingProfile, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for OnPremisesPublishingProfile collection
+func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Get(ctx context.Context) ([]OnPremisesPublishingProfile, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for OnPremisesPublishingProfile collection
+func (r *GraphServiceOnPremisesPublishingProfilesCollectionRequest) Add(ctx context.Context, reqObj *OnPremisesPublishingProfile) (resObj *OnPremisesPublishingProfile, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Organization returns request builder for Organization collection
+func (b *GraphServiceRequestBuilder) Organization() *GraphServiceOrganizationCollectionRequestBuilder {
+ bb := &GraphServiceOrganizationCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/organization"
+ return bb
+}
+
+// GraphServiceOrganizationCollectionRequestBuilder is request builder for Organization collection
+type GraphServiceOrganizationCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Organization collection
+func (b *GraphServiceOrganizationCollectionRequestBuilder) Request() *GraphServiceOrganizationCollectionRequest {
+ return &GraphServiceOrganizationCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Organization item
+func (b *GraphServiceOrganizationCollectionRequestBuilder) ID(id string) *OrganizationRequestBuilder {
+ bb := &OrganizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceOrganizationCollectionRequest is request for Organization collection
+type GraphServiceOrganizationCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Organization collection
+func (r *GraphServiceOrganizationCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Organization, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Organization
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Organization
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Organization collection, max N pages
+func (r *GraphServiceOrganizationCollectionRequest) GetN(ctx context.Context, n int) ([]Organization, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Organization collection
+func (r *GraphServiceOrganizationCollectionRequest) Get(ctx context.Context) ([]Organization, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Organization collection
+func (r *GraphServiceOrganizationCollectionRequest) Add(ctx context.Context, reqObj *Organization) (resObj *Organization, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PayloadResponse returns request builder for PayloadResponse collection
+func (b *GraphServiceRequestBuilder) PayloadResponse() *GraphServicePayloadResponseCollectionRequestBuilder {
+ bb := &GraphServicePayloadResponseCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/payloadResponse"
+ return bb
+}
+
+// GraphServicePayloadResponseCollectionRequestBuilder is request builder for PayloadResponse collection
+type GraphServicePayloadResponseCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PayloadResponse collection
+func (b *GraphServicePayloadResponseCollectionRequestBuilder) Request() *GraphServicePayloadResponseCollectionRequest {
+ return &GraphServicePayloadResponseCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PayloadResponse item
+func (b *GraphServicePayloadResponseCollectionRequestBuilder) ID(id string) *PayloadResponseRequestBuilder {
+ bb := &PayloadResponseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePayloadResponseCollectionRequest is request for PayloadResponse collection
+type GraphServicePayloadResponseCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PayloadResponse collection
+func (r *GraphServicePayloadResponseCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PayloadResponse, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PayloadResponse
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PayloadResponse
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PayloadResponse collection, max N pages
+func (r *GraphServicePayloadResponseCollectionRequest) GetN(ctx context.Context, n int) ([]PayloadResponse, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PayloadResponse collection
+func (r *GraphServicePayloadResponseCollectionRequest) Get(ctx context.Context) ([]PayloadResponse, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PayloadResponse collection
+func (r *GraphServicePayloadResponseCollectionRequest) Add(ctx context.Context, reqObj *PayloadResponse) (resObj *PayloadResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PermissionGrants returns request builder for ResourceSpecificPermissionGrant collection
+func (b *GraphServiceRequestBuilder) PermissionGrants() *GraphServicePermissionGrantsCollectionRequestBuilder {
+ bb := &GraphServicePermissionGrantsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/permissionGrants"
+ return bb
+}
+
+// GraphServicePermissionGrantsCollectionRequestBuilder is request builder for ResourceSpecificPermissionGrant collection
+type GraphServicePermissionGrantsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ResourceSpecificPermissionGrant collection
+func (b *GraphServicePermissionGrantsCollectionRequestBuilder) Request() *GraphServicePermissionGrantsCollectionRequest {
+ return &GraphServicePermissionGrantsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ResourceSpecificPermissionGrant item
+func (b *GraphServicePermissionGrantsCollectionRequestBuilder) ID(id string) *ResourceSpecificPermissionGrantRequestBuilder {
+ bb := &ResourceSpecificPermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePermissionGrantsCollectionRequest is request for ResourceSpecificPermissionGrant collection
+type GraphServicePermissionGrantsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ResourceSpecificPermissionGrant collection
+func (r *GraphServicePermissionGrantsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResourceSpecificPermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ResourceSpecificPermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ResourceSpecificPermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ResourceSpecificPermissionGrant collection, max N pages
+func (r *GraphServicePermissionGrantsCollectionRequest) GetN(ctx context.Context, n int) ([]ResourceSpecificPermissionGrant, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ResourceSpecificPermissionGrant collection
+func (r *GraphServicePermissionGrantsCollectionRequest) Get(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ResourceSpecificPermissionGrant collection
+func (r *GraphServicePermissionGrantsCollectionRequest) Add(ctx context.Context, reqObj *ResourceSpecificPermissionGrant) (resObj *ResourceSpecificPermissionGrant, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Places returns request builder for Place collection
+func (b *GraphServiceRequestBuilder) Places() *GraphServicePlacesCollectionRequestBuilder {
+ bb := &GraphServicePlacesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/places"
+ return bb
+}
+
+// GraphServicePlacesCollectionRequestBuilder is request builder for Place collection
+type GraphServicePlacesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Place collection
+func (b *GraphServicePlacesCollectionRequestBuilder) Request() *GraphServicePlacesCollectionRequest {
+ return &GraphServicePlacesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Place item
+func (b *GraphServicePlacesCollectionRequestBuilder) ID(id string) *PlaceRequestBuilder {
+ bb := &PlaceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePlacesCollectionRequest is request for Place collection
+type GraphServicePlacesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Place collection
+func (r *GraphServicePlacesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Place, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Place
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Place
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Place collection, max N pages
+func (r *GraphServicePlacesCollectionRequest) GetN(ctx context.Context, n int) ([]Place, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Place collection
+func (r *GraphServicePlacesCollectionRequest) Get(ctx context.Context) ([]Place, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Place collection
+func (r *GraphServicePlacesCollectionRequest) Add(ctx context.Context, reqObj *Place) (resObj *Place, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Policies returns request builder for Policy collection
+func (b *GraphServiceRequestBuilder) Policies() *GraphServicePoliciesCollectionRequestBuilder {
+ bb := &GraphServicePoliciesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/policies"
+ return bb
+}
+
+// GraphServicePoliciesCollectionRequestBuilder is request builder for Policy collection
+type GraphServicePoliciesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Policy collection
+func (b *GraphServicePoliciesCollectionRequestBuilder) Request() *GraphServicePoliciesCollectionRequest {
+ return &GraphServicePoliciesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Policy item
+func (b *GraphServicePoliciesCollectionRequestBuilder) ID(id string) *PolicyRequestBuilder {
+ bb := &PolicyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePoliciesCollectionRequest is request for Policy collection
+type GraphServicePoliciesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Policy collection
+func (r *GraphServicePoliciesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Policy, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Policy
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Policy
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Policy collection, max N pages
+func (r *GraphServicePoliciesCollectionRequest) GetN(ctx context.Context, n int) ([]Policy, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Policy collection
+func (r *GraphServicePoliciesCollectionRequest) Get(ctx context.Context) ([]Policy, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Policy collection
+func (r *GraphServicePoliciesCollectionRequest) Add(ctx context.Context, reqObj *Policy) (resObj *Policy, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedAccess returns request builder for PrivilegedAccess collection
+func (b *GraphServiceRequestBuilder) PrivilegedAccess() *GraphServicePrivilegedAccessCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedAccessCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedAccess"
+ return bb
+}
+
+// GraphServicePrivilegedAccessCollectionRequestBuilder is request builder for PrivilegedAccess collection
+type GraphServicePrivilegedAccessCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedAccess collection
+func (b *GraphServicePrivilegedAccessCollectionRequestBuilder) Request() *GraphServicePrivilegedAccessCollectionRequest {
+ return &GraphServicePrivilegedAccessCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedAccess item
+func (b *GraphServicePrivilegedAccessCollectionRequestBuilder) ID(id string) *PrivilegedAccessRequestBuilder {
+ bb := &PrivilegedAccessRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedAccessCollectionRequest is request for PrivilegedAccess collection
+type GraphServicePrivilegedAccessCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedAccess collection
+func (r *GraphServicePrivilegedAccessCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedAccess, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedAccess
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedAccess
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PrivilegedAccess collection, max N pages
+func (r *GraphServicePrivilegedAccessCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedAccess, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PrivilegedAccess collection
+func (r *GraphServicePrivilegedAccessCollectionRequest) Get(ctx context.Context) ([]PrivilegedAccess, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PrivilegedAccess collection
+func (r *GraphServicePrivilegedAccessCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedAccess) (resObj *PrivilegedAccess, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedApproval returns request builder for PrivilegedApproval collection
+func (b *GraphServiceRequestBuilder) PrivilegedApproval() *GraphServicePrivilegedApprovalCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedApprovalCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedApproval"
+ return bb
+}
+
+// GraphServicePrivilegedApprovalCollectionRequestBuilder is request builder for PrivilegedApproval collection
+type GraphServicePrivilegedApprovalCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedApproval collection
+func (b *GraphServicePrivilegedApprovalCollectionRequestBuilder) Request() *GraphServicePrivilegedApprovalCollectionRequest {
+ return &GraphServicePrivilegedApprovalCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedApproval item
+func (b *GraphServicePrivilegedApprovalCollectionRequestBuilder) ID(id string) *PrivilegedApprovalRequestBuilder {
+ bb := &PrivilegedApprovalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedApprovalCollectionRequest is request for PrivilegedApproval collection
+type GraphServicePrivilegedApprovalCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedApproval collection
+func (r *GraphServicePrivilegedApprovalCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedApproval, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedApproval
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedApproval
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PrivilegedApproval collection, max N pages
+func (r *GraphServicePrivilegedApprovalCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedApproval, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PrivilegedApproval collection
+func (r *GraphServicePrivilegedApprovalCollectionRequest) Get(ctx context.Context) ([]PrivilegedApproval, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PrivilegedApproval collection
+func (r *GraphServicePrivilegedApprovalCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedApproval) (resObj *PrivilegedApproval, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedOperationEvents returns request builder for PrivilegedOperationEvent collection
+func (b *GraphServiceRequestBuilder) PrivilegedOperationEvents() *GraphServicePrivilegedOperationEventsCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedOperationEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedOperationEvents"
+ return bb
+}
+
+// GraphServicePrivilegedOperationEventsCollectionRequestBuilder is request builder for PrivilegedOperationEvent collection
+type GraphServicePrivilegedOperationEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedOperationEvent collection
+func (b *GraphServicePrivilegedOperationEventsCollectionRequestBuilder) Request() *GraphServicePrivilegedOperationEventsCollectionRequest {
+ return &GraphServicePrivilegedOperationEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedOperationEvent item
+func (b *GraphServicePrivilegedOperationEventsCollectionRequestBuilder) ID(id string) *PrivilegedOperationEventRequestBuilder {
+ bb := &PrivilegedOperationEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedOperationEventsCollectionRequest is request for PrivilegedOperationEvent collection
+type GraphServicePrivilegedOperationEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedOperationEvent collection
+func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedOperationEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedOperationEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedOperationEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PrivilegedOperationEvent collection, max N pages
+func (r *GraphServicePrivilegedOperationEventsCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedOperationEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PrivilegedOperationEvent collection
+func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Get(ctx context.Context) ([]PrivilegedOperationEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PrivilegedOperationEvent collection
+func (r *GraphServicePrivilegedOperationEventsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedOperationEvent) (resObj *PrivilegedOperationEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedRoleAssignmentRequests returns request builder for PrivilegedRoleAssignmentRequestObject collection
+func (b *GraphServiceRequestBuilder) PrivilegedRoleAssignmentRequests() *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedRoleAssignmentRequests"
+ return bb
+}
+
+// GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder is request builder for PrivilegedRoleAssignmentRequestObject collection
+type GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedRoleAssignmentRequestObject collection
+func (b *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder) Request() *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest {
+ return &GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedRoleAssignmentRequestObject item
+func (b *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequestBuilder) ID(id string) *PrivilegedRoleAssignmentRequestObjectRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestObjectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest is request for PrivilegedRoleAssignmentRequestObject collection
+type GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedRoleAssignmentRequestObject collection
+func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedRoleAssignmentRequestObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedRoleAssignmentRequestObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedRoleAssignmentRequestObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PrivilegedRoleAssignmentRequestObject collection, max N pages
+func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedRoleAssignmentRequestObject, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PrivilegedRoleAssignmentRequestObject collection
+func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignmentRequestObject, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PrivilegedRoleAssignmentRequestObject collection
+func (r *GraphServicePrivilegedRoleAssignmentRequestsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRoleAssignmentRequestObject) (resObj *PrivilegedRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedRoleAssignments returns request builder for PrivilegedRoleAssignment collection
+func (b *GraphServiceRequestBuilder) PrivilegedRoleAssignments() *GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedRoleAssignments"
+ return bb
+}
+
+// GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder is request builder for PrivilegedRoleAssignment collection
+type GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedRoleAssignment collection
+func (b *GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder) Request() *GraphServicePrivilegedRoleAssignmentsCollectionRequest {
+ return &GraphServicePrivilegedRoleAssignmentsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedRoleAssignment item
+func (b *GraphServicePrivilegedRoleAssignmentsCollectionRequestBuilder) ID(id string) *PrivilegedRoleAssignmentRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedRoleAssignmentsCollectionRequest is request for PrivilegedRoleAssignment collection
+type GraphServicePrivilegedRoleAssignmentsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedRoleAssignment collection
+func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedRoleAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedRoleAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedRoleAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PrivilegedRoleAssignment collection, max N pages
+func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedRoleAssignment, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PrivilegedRoleAssignment collection
+func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Get(ctx context.Context) ([]PrivilegedRoleAssignment, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PrivilegedRoleAssignment collection
+func (r *GraphServicePrivilegedRoleAssignmentsCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRoleAssignment) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedRoles returns request builder for PrivilegedRole collection
+func (b *GraphServiceRequestBuilder) PrivilegedRoles() *GraphServicePrivilegedRolesCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedRolesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedRoles"
+ return bb
+}
+
+// GraphServicePrivilegedRolesCollectionRequestBuilder is request builder for PrivilegedRole collection
+type GraphServicePrivilegedRolesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedRole collection
+func (b *GraphServicePrivilegedRolesCollectionRequestBuilder) Request() *GraphServicePrivilegedRolesCollectionRequest {
+ return &GraphServicePrivilegedRolesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedRole item
+func (b *GraphServicePrivilegedRolesCollectionRequestBuilder) ID(id string) *PrivilegedRoleRequestBuilder {
+ bb := &PrivilegedRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedRolesCollectionRequest is request for PrivilegedRole collection
+type GraphServicePrivilegedRolesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedRole collection
+func (r *GraphServicePrivilegedRolesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedRole, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedRole
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedRole
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PrivilegedRole collection, max N pages
+func (r *GraphServicePrivilegedRolesCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedRole, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PrivilegedRole collection
+func (r *GraphServicePrivilegedRolesCollectionRequest) Get(ctx context.Context) ([]PrivilegedRole, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PrivilegedRole collection
+func (r *GraphServicePrivilegedRolesCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedRole) (resObj *PrivilegedRole, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// PrivilegedSignupStatus returns request builder for PrivilegedSignupStatus collection
+func (b *GraphServiceRequestBuilder) PrivilegedSignupStatus() *GraphServicePrivilegedSignupStatusCollectionRequestBuilder {
+ bb := &GraphServicePrivilegedSignupStatusCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/privilegedSignupStatus"
+ return bb
+}
+
+// GraphServicePrivilegedSignupStatusCollectionRequestBuilder is request builder for PrivilegedSignupStatus collection
+type GraphServicePrivilegedSignupStatusCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for PrivilegedSignupStatus collection
+func (b *GraphServicePrivilegedSignupStatusCollectionRequestBuilder) Request() *GraphServicePrivilegedSignupStatusCollectionRequest {
+ return &GraphServicePrivilegedSignupStatusCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for PrivilegedSignupStatus item
+func (b *GraphServicePrivilegedSignupStatusCollectionRequestBuilder) ID(id string) *PrivilegedSignupStatusRequestBuilder {
+ bb := &PrivilegedSignupStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServicePrivilegedSignupStatusCollectionRequest is request for PrivilegedSignupStatus collection
+type GraphServicePrivilegedSignupStatusCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for PrivilegedSignupStatus collection
+func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PrivilegedSignupStatus, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PrivilegedSignupStatus
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PrivilegedSignupStatus
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for PrivilegedSignupStatus collection, max N pages
+func (r *GraphServicePrivilegedSignupStatusCollectionRequest) GetN(ctx context.Context, n int) ([]PrivilegedSignupStatus, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for PrivilegedSignupStatus collection
+func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Get(ctx context.Context) ([]PrivilegedSignupStatus, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for PrivilegedSignupStatus collection
+func (r *GraphServicePrivilegedSignupStatusCollectionRequest) Add(ctx context.Context, reqObj *PrivilegedSignupStatus) (resObj *PrivilegedSignupStatus, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ProgramControlTypes returns request builder for ProgramControlType collection
+func (b *GraphServiceRequestBuilder) ProgramControlTypes() *GraphServiceProgramControlTypesCollectionRequestBuilder {
+ bb := &GraphServiceProgramControlTypesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/programControlTypes"
+ return bb
+}
+
+// GraphServiceProgramControlTypesCollectionRequestBuilder is request builder for ProgramControlType collection
+type GraphServiceProgramControlTypesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProgramControlType collection
+func (b *GraphServiceProgramControlTypesCollectionRequestBuilder) Request() *GraphServiceProgramControlTypesCollectionRequest {
+ return &GraphServiceProgramControlTypesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProgramControlType item
+func (b *GraphServiceProgramControlTypesCollectionRequestBuilder) ID(id string) *ProgramControlTypeRequestBuilder {
+ bb := &ProgramControlTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceProgramControlTypesCollectionRequest is request for ProgramControlType collection
+type GraphServiceProgramControlTypesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProgramControlType collection
+func (r *GraphServiceProgramControlTypesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProgramControlType, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProgramControlType
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProgramControlType
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ProgramControlType collection, max N pages
+func (r *GraphServiceProgramControlTypesCollectionRequest) GetN(ctx context.Context, n int) ([]ProgramControlType, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ProgramControlType collection
+func (r *GraphServiceProgramControlTypesCollectionRequest) Get(ctx context.Context) ([]ProgramControlType, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ProgramControlType collection
+func (r *GraphServiceProgramControlTypesCollectionRequest) Add(ctx context.Context, reqObj *ProgramControlType) (resObj *ProgramControlType, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ProgramControls returns request builder for ProgramControl collection
+func (b *GraphServiceRequestBuilder) ProgramControls() *GraphServiceProgramControlsCollectionRequestBuilder {
+ bb := &GraphServiceProgramControlsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/programControls"
+ return bb
+}
+
+// GraphServiceProgramControlsCollectionRequestBuilder is request builder for ProgramControl collection
+type GraphServiceProgramControlsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ProgramControl collection
+func (b *GraphServiceProgramControlsCollectionRequestBuilder) Request() *GraphServiceProgramControlsCollectionRequest {
+ return &GraphServiceProgramControlsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ProgramControl item
+func (b *GraphServiceProgramControlsCollectionRequestBuilder) ID(id string) *ProgramControlRequestBuilder {
+ bb := &ProgramControlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceProgramControlsCollectionRequest is request for ProgramControl collection
+type GraphServiceProgramControlsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ProgramControl collection
+func (r *GraphServiceProgramControlsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ProgramControl, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ProgramControl
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ProgramControl
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ProgramControl collection, max N pages
+func (r *GraphServiceProgramControlsCollectionRequest) GetN(ctx context.Context, n int) ([]ProgramControl, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ProgramControl collection
+func (r *GraphServiceProgramControlsCollectionRequest) Get(ctx context.Context) ([]ProgramControl, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ProgramControl collection
+func (r *GraphServiceProgramControlsCollectionRequest) Add(ctx context.Context, reqObj *ProgramControl) (resObj *ProgramControl, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Programs returns request builder for Program collection
+func (b *GraphServiceRequestBuilder) Programs() *GraphServiceProgramsCollectionRequestBuilder {
+ bb := &GraphServiceProgramsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/programs"
+ return bb
+}
+
+// GraphServiceProgramsCollectionRequestBuilder is request builder for Program collection
+type GraphServiceProgramsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Program collection
+func (b *GraphServiceProgramsCollectionRequestBuilder) Request() *GraphServiceProgramsCollectionRequest {
+ return &GraphServiceProgramsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Program item
+func (b *GraphServiceProgramsCollectionRequestBuilder) ID(id string) *ProgramRequestBuilder {
+ bb := &ProgramRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceProgramsCollectionRequest is request for Program collection
+type GraphServiceProgramsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Program collection
+func (r *GraphServiceProgramsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Program, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Program
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Program
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Program collection, max N pages
+func (r *GraphServiceProgramsCollectionRequest) GetN(ctx context.Context, n int) ([]Program, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Program collection
+func (r *GraphServiceProgramsCollectionRequest) Get(ctx context.Context) ([]Program, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Program collection
+func (r *GraphServiceProgramsCollectionRequest) Add(ctx context.Context, reqObj *Program) (resObj *Program, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RiskDetections returns request builder for RiskDetection collection
+func (b *GraphServiceRequestBuilder) RiskDetections() *GraphServiceRiskDetectionsCollectionRequestBuilder {
+ bb := &GraphServiceRiskDetectionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/riskDetections"
+ return bb
+}
+
+// GraphServiceRiskDetectionsCollectionRequestBuilder is request builder for RiskDetection collection
+type GraphServiceRiskDetectionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RiskDetection collection
+func (b *GraphServiceRiskDetectionsCollectionRequestBuilder) Request() *GraphServiceRiskDetectionsCollectionRequest {
+ return &GraphServiceRiskDetectionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RiskDetection item
+func (b *GraphServiceRiskDetectionsCollectionRequestBuilder) ID(id string) *RiskDetectionRequestBuilder {
+ bb := &RiskDetectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceRiskDetectionsCollectionRequest is request for RiskDetection collection
+type GraphServiceRiskDetectionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RiskDetection collection
+func (r *GraphServiceRiskDetectionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RiskDetection, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RiskDetection
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RiskDetection
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RiskDetection collection, max N pages
+func (r *GraphServiceRiskDetectionsCollectionRequest) GetN(ctx context.Context, n int) ([]RiskDetection, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RiskDetection collection
+func (r *GraphServiceRiskDetectionsCollectionRequest) Get(ctx context.Context) ([]RiskDetection, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RiskDetection collection
+func (r *GraphServiceRiskDetectionsCollectionRequest) Add(ctx context.Context, reqObj *RiskDetection) (resObj *RiskDetection, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// RiskyUsers returns request builder for RiskyUser collection
+func (b *GraphServiceRequestBuilder) RiskyUsers() *GraphServiceRiskyUsersCollectionRequestBuilder {
+ bb := &GraphServiceRiskyUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/riskyUsers"
+ return bb
+}
+
+// GraphServiceRiskyUsersCollectionRequestBuilder is request builder for RiskyUser collection
+type GraphServiceRiskyUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for RiskyUser collection
+func (b *GraphServiceRiskyUsersCollectionRequestBuilder) Request() *GraphServiceRiskyUsersCollectionRequest {
+ return &GraphServiceRiskyUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for RiskyUser item
+func (b *GraphServiceRiskyUsersCollectionRequestBuilder) ID(id string) *RiskyUserRequestBuilder {
+ bb := &RiskyUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceRiskyUsersCollectionRequest is request for RiskyUser collection
+type GraphServiceRiskyUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for RiskyUser collection
+func (r *GraphServiceRiskyUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RiskyUser, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RiskyUser
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RiskyUser
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for RiskyUser collection, max N pages
+func (r *GraphServiceRiskyUsersCollectionRequest) GetN(ctx context.Context, n int) ([]RiskyUser, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for RiskyUser collection
+func (r *GraphServiceRiskyUsersCollectionRequest) Get(ctx context.Context) ([]RiskyUser, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for RiskyUser collection
+func (r *GraphServiceRiskyUsersCollectionRequest) Add(ctx context.Context, reqObj *RiskyUser) (resObj *RiskyUser, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SchemaExtensions returns request builder for SchemaExtension collection
+func (b *GraphServiceRequestBuilder) SchemaExtensions() *GraphServiceSchemaExtensionsCollectionRequestBuilder {
+ bb := &GraphServiceSchemaExtensionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/schemaExtensions"
+ return bb
+}
+
+// GraphServiceSchemaExtensionsCollectionRequestBuilder is request builder for SchemaExtension collection
+type GraphServiceSchemaExtensionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SchemaExtension collection
+func (b *GraphServiceSchemaExtensionsCollectionRequestBuilder) Request() *GraphServiceSchemaExtensionsCollectionRequest {
+ return &GraphServiceSchemaExtensionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SchemaExtension item
+func (b *GraphServiceSchemaExtensionsCollectionRequestBuilder) ID(id string) *SchemaExtensionRequestBuilder {
+ bb := &SchemaExtensionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSchemaExtensionsCollectionRequest is request for SchemaExtension collection
+type GraphServiceSchemaExtensionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SchemaExtension collection
+func (r *GraphServiceSchemaExtensionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SchemaExtension, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SchemaExtension
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SchemaExtension
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SchemaExtension collection, max N pages
+func (r *GraphServiceSchemaExtensionsCollectionRequest) GetN(ctx context.Context, n int) ([]SchemaExtension, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SchemaExtension collection
+func (r *GraphServiceSchemaExtensionsCollectionRequest) Get(ctx context.Context) ([]SchemaExtension, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SchemaExtension collection
+func (r *GraphServiceSchemaExtensionsCollectionRequest) Add(ctx context.Context, reqObj *SchemaExtension) (resObj *SchemaExtension, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ScopedRoleMemberships returns request builder for ScopedRoleMembership collection
+func (b *GraphServiceRequestBuilder) ScopedRoleMemberships() *GraphServiceScopedRoleMembershipsCollectionRequestBuilder {
+ bb := &GraphServiceScopedRoleMembershipsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/scopedRoleMemberships"
+ return bb
+}
+
+// GraphServiceScopedRoleMembershipsCollectionRequestBuilder is request builder for ScopedRoleMembership collection
+type GraphServiceScopedRoleMembershipsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ScopedRoleMembership collection
+func (b *GraphServiceScopedRoleMembershipsCollectionRequestBuilder) Request() *GraphServiceScopedRoleMembershipsCollectionRequest {
+ return &GraphServiceScopedRoleMembershipsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ScopedRoleMembership item
+func (b *GraphServiceScopedRoleMembershipsCollectionRequestBuilder) ID(id string) *ScopedRoleMembershipRequestBuilder {
+ bb := &ScopedRoleMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceScopedRoleMembershipsCollectionRequest is request for ScopedRoleMembership collection
+type GraphServiceScopedRoleMembershipsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ScopedRoleMembership collection
+func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScopedRoleMembership, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ScopedRoleMembership
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ScopedRoleMembership
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ScopedRoleMembership collection, max N pages
+func (r *GraphServiceScopedRoleMembershipsCollectionRequest) GetN(ctx context.Context, n int) ([]ScopedRoleMembership, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ScopedRoleMembership collection
+func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Get(ctx context.Context) ([]ScopedRoleMembership, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ScopedRoleMembership collection
+func (r *GraphServiceScopedRoleMembershipsCollectionRequest) Add(ctx context.Context, reqObj *ScopedRoleMembership) (resObj *ScopedRoleMembership, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// ServicePrincipals returns request builder for ServicePrincipal collection
+func (b *GraphServiceRequestBuilder) ServicePrincipals() *GraphServiceServicePrincipalsCollectionRequestBuilder {
+ bb := &GraphServiceServicePrincipalsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/servicePrincipals"
+ return bb
+}
+
+// GraphServiceServicePrincipalsCollectionRequestBuilder is request builder for ServicePrincipal collection
+type GraphServiceServicePrincipalsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for ServicePrincipal collection
+func (b *GraphServiceServicePrincipalsCollectionRequestBuilder) Request() *GraphServiceServicePrincipalsCollectionRequest {
+ return &GraphServiceServicePrincipalsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for ServicePrincipal item
+func (b *GraphServiceServicePrincipalsCollectionRequestBuilder) ID(id string) *ServicePrincipalRequestBuilder {
+ bb := &ServicePrincipalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceServicePrincipalsCollectionRequest is request for ServicePrincipal collection
+type GraphServiceServicePrincipalsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for ServicePrincipal collection
+func (r *GraphServiceServicePrincipalsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ServicePrincipal, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ServicePrincipal
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ServicePrincipal
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for ServicePrincipal collection, max N pages
+func (r *GraphServiceServicePrincipalsCollectionRequest) GetN(ctx context.Context, n int) ([]ServicePrincipal, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for ServicePrincipal collection
+func (r *GraphServiceServicePrincipalsCollectionRequest) Get(ctx context.Context) ([]ServicePrincipal, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for ServicePrincipal collection
+func (r *GraphServiceServicePrincipalsCollectionRequest) Add(ctx context.Context, reqObj *ServicePrincipal) (resObj *ServicePrincipal, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Settings returns request builder for DirectorySetting collection
+func (b *GraphServiceRequestBuilder) Settings() *GraphServiceSettingsCollectionRequestBuilder {
+ bb := &GraphServiceSettingsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/settings"
+ return bb
+}
+
+// GraphServiceSettingsCollectionRequestBuilder is request builder for DirectorySetting collection
+type GraphServiceSettingsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DirectorySetting collection
+func (b *GraphServiceSettingsCollectionRequestBuilder) Request() *GraphServiceSettingsCollectionRequest {
+ return &GraphServiceSettingsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DirectorySetting item
+func (b *GraphServiceSettingsCollectionRequestBuilder) ID(id string) *DirectorySettingRequestBuilder {
+ bb := &DirectorySettingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSettingsCollectionRequest is request for DirectorySetting collection
+type GraphServiceSettingsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DirectorySetting collection
+func (r *GraphServiceSettingsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectorySetting, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectorySetting
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectorySetting
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DirectorySetting collection, max N pages
+func (r *GraphServiceSettingsCollectionRequest) GetN(ctx context.Context, n int) ([]DirectorySetting, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DirectorySetting collection
+func (r *GraphServiceSettingsCollectionRequest) Get(ctx context.Context) ([]DirectorySetting, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DirectorySetting collection
+func (r *GraphServiceSettingsCollectionRequest) Add(ctx context.Context, reqObj *DirectorySetting) (resObj *DirectorySetting, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Shares returns request builder for SharedDriveItem collection
+func (b *GraphServiceRequestBuilder) Shares() *GraphServiceSharesCollectionRequestBuilder {
+ bb := &GraphServiceSharesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/shares"
+ return bb
+}
+
+// GraphServiceSharesCollectionRequestBuilder is request builder for SharedDriveItem collection
+type GraphServiceSharesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SharedDriveItem collection
+func (b *GraphServiceSharesCollectionRequestBuilder) Request() *GraphServiceSharesCollectionRequest {
+ return &GraphServiceSharesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SharedDriveItem item
+func (b *GraphServiceSharesCollectionRequestBuilder) ID(id string) *SharedDriveItemRequestBuilder {
+ bb := &SharedDriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSharesCollectionRequest is request for SharedDriveItem collection
+type GraphServiceSharesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SharedDriveItem collection
+func (r *GraphServiceSharesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SharedDriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SharedDriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SharedDriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SharedDriveItem collection, max N pages
+func (r *GraphServiceSharesCollectionRequest) GetN(ctx context.Context, n int) ([]SharedDriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SharedDriveItem collection
+func (r *GraphServiceSharesCollectionRequest) Get(ctx context.Context) ([]SharedDriveItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SharedDriveItem collection
+func (r *GraphServiceSharesCollectionRequest) Add(ctx context.Context, reqObj *SharedDriveItem) (resObj *SharedDriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Sites returns request builder for Site collection
+func (b *GraphServiceRequestBuilder) Sites() *GraphServiceSitesCollectionRequestBuilder {
+ bb := &GraphServiceSitesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/sites"
+ return bb
+}
+
+// GraphServiceSitesCollectionRequestBuilder is request builder for Site collection
+type GraphServiceSitesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Site collection
+func (b *GraphServiceSitesCollectionRequestBuilder) Request() *GraphServiceSitesCollectionRequest {
+ return &GraphServiceSitesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Site item
+func (b *GraphServiceSitesCollectionRequestBuilder) ID(id string) *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSitesCollectionRequest is request for Site collection
+type GraphServiceSitesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Site collection
+func (r *GraphServiceSitesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Site collection, max N pages
+func (r *GraphServiceSitesCollectionRequest) GetN(ctx context.Context, n int) ([]Site, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Site collection
+func (r *GraphServiceSitesCollectionRequest) Get(ctx context.Context) ([]Site, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Site collection
+func (r *GraphServiceSitesCollectionRequest) Add(ctx context.Context, reqObj *Site) (resObj *Site, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SubscribedSKUs returns request builder for SubscribedSKU collection
+func (b *GraphServiceRequestBuilder) SubscribedSKUs() *GraphServiceSubscribedSKUsCollectionRequestBuilder {
+ bb := &GraphServiceSubscribedSKUsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subscribedSkus"
+ return bb
+}
+
+// GraphServiceSubscribedSKUsCollectionRequestBuilder is request builder for SubscribedSKU collection
+type GraphServiceSubscribedSKUsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SubscribedSKU collection
+func (b *GraphServiceSubscribedSKUsCollectionRequestBuilder) Request() *GraphServiceSubscribedSKUsCollectionRequest {
+ return &GraphServiceSubscribedSKUsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SubscribedSKU item
+func (b *GraphServiceSubscribedSKUsCollectionRequestBuilder) ID(id string) *SubscribedSKURequestBuilder {
+ bb := &SubscribedSKURequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSubscribedSKUsCollectionRequest is request for SubscribedSKU collection
+type GraphServiceSubscribedSKUsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SubscribedSKU collection
+func (r *GraphServiceSubscribedSKUsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SubscribedSKU, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SubscribedSKU
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SubscribedSKU
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SubscribedSKU collection, max N pages
+func (r *GraphServiceSubscribedSKUsCollectionRequest) GetN(ctx context.Context, n int) ([]SubscribedSKU, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SubscribedSKU collection
+func (r *GraphServiceSubscribedSKUsCollectionRequest) Get(ctx context.Context) ([]SubscribedSKU, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SubscribedSKU collection
+func (r *GraphServiceSubscribedSKUsCollectionRequest) Add(ctx context.Context, reqObj *SubscribedSKU) (resObj *SubscribedSKU, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Subscriptions returns request builder for Subscription collection
+func (b *GraphServiceRequestBuilder) Subscriptions() *GraphServiceSubscriptionsCollectionRequestBuilder {
+ bb := &GraphServiceSubscriptionsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/subscriptions"
+ return bb
+}
+
+// GraphServiceSubscriptionsCollectionRequestBuilder is request builder for Subscription collection
+type GraphServiceSubscriptionsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Subscription collection
+func (b *GraphServiceSubscriptionsCollectionRequestBuilder) Request() *GraphServiceSubscriptionsCollectionRequest {
+ return &GraphServiceSubscriptionsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Subscription item
+func (b *GraphServiceSubscriptionsCollectionRequestBuilder) ID(id string) *SubscriptionRequestBuilder {
+ bb := &SubscriptionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSubscriptionsCollectionRequest is request for Subscription collection
+type GraphServiceSubscriptionsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Subscription collection
+func (r *GraphServiceSubscriptionsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Subscription, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Subscription
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Subscription
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Subscription collection, max N pages
+func (r *GraphServiceSubscriptionsCollectionRequest) GetN(ctx context.Context, n int) ([]Subscription, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Subscription collection
+func (r *GraphServiceSubscriptionsCollectionRequest) Get(ctx context.Context) ([]Subscription, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Subscription collection
+func (r *GraphServiceSubscriptionsCollectionRequest) Add(ctx context.Context, reqObj *Subscription) (resObj *Subscription, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// SuspiciousIPRiskEvents returns request builder for SuspiciousIPRiskEvent collection
+func (b *GraphServiceRequestBuilder) SuspiciousIPRiskEvents() *GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/suspiciousIpRiskEvents"
+ return bb
+}
+
+// GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder is request builder for SuspiciousIPRiskEvent collection
+type GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for SuspiciousIPRiskEvent collection
+func (b *GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder) Request() *GraphServiceSuspiciousIPRiskEventsCollectionRequest {
+ return &GraphServiceSuspiciousIPRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for SuspiciousIPRiskEvent item
+func (b *GraphServiceSuspiciousIPRiskEventsCollectionRequestBuilder) ID(id string) *SuspiciousIPRiskEventRequestBuilder {
+ bb := &SuspiciousIPRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceSuspiciousIPRiskEventsCollectionRequest is request for SuspiciousIPRiskEvent collection
+type GraphServiceSuspiciousIPRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for SuspiciousIPRiskEvent collection
+func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SuspiciousIPRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SuspiciousIPRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SuspiciousIPRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for SuspiciousIPRiskEvent collection, max N pages
+func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]SuspiciousIPRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for SuspiciousIPRiskEvent collection
+func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Get(ctx context.Context) ([]SuspiciousIPRiskEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for SuspiciousIPRiskEvent collection
+func (r *GraphServiceSuspiciousIPRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *SuspiciousIPRiskEvent) (resObj *SuspiciousIPRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Teams returns request builder for Team collection
+func (b *GraphServiceRequestBuilder) Teams() *GraphServiceTeamsCollectionRequestBuilder {
+ bb := &GraphServiceTeamsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teams"
+ return bb
+}
+
+// GraphServiceTeamsCollectionRequestBuilder is request builder for Team collection
+type GraphServiceTeamsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for Team collection
+func (b *GraphServiceTeamsCollectionRequestBuilder) Request() *GraphServiceTeamsCollectionRequest {
+ return &GraphServiceTeamsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for Team item
+func (b *GraphServiceTeamsCollectionRequestBuilder) ID(id string) *TeamRequestBuilder {
+ bb := &TeamRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceTeamsCollectionRequest is request for Team collection
+type GraphServiceTeamsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for Team collection
+func (r *GraphServiceTeamsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Team, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Team
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Team
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for Team collection, max N pages
+func (r *GraphServiceTeamsCollectionRequest) GetN(ctx context.Context, n int) ([]Team, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for Team collection
+func (r *GraphServiceTeamsCollectionRequest) Get(ctx context.Context) ([]Team, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for Team collection
+func (r *GraphServiceTeamsCollectionRequest) Add(ctx context.Context, reqObj *Team) (resObj *Team, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// TeamsTemplates returns request builder for TeamsTemplate collection
+func (b *GraphServiceRequestBuilder) TeamsTemplates() *GraphServiceTeamsTemplatesCollectionRequestBuilder {
+ bb := &GraphServiceTeamsTemplatesCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamsTemplates"
+ return bb
+}
+
+// GraphServiceTeamsTemplatesCollectionRequestBuilder is request builder for TeamsTemplate collection
+type GraphServiceTeamsTemplatesCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for TeamsTemplate collection
+func (b *GraphServiceTeamsTemplatesCollectionRequestBuilder) Request() *GraphServiceTeamsTemplatesCollectionRequest {
+ return &GraphServiceTeamsTemplatesCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for TeamsTemplate item
+func (b *GraphServiceTeamsTemplatesCollectionRequestBuilder) ID(id string) *TeamsTemplateRequestBuilder {
+ bb := &TeamsTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceTeamsTemplatesCollectionRequest is request for TeamsTemplate collection
+type GraphServiceTeamsTemplatesCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for TeamsTemplate collection
+func (r *GraphServiceTeamsTemplatesCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TeamsTemplate, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TeamsTemplate
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TeamsTemplate
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for TeamsTemplate collection, max N pages
+func (r *GraphServiceTeamsTemplatesCollectionRequest) GetN(ctx context.Context, n int) ([]TeamsTemplate, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for TeamsTemplate collection
+func (r *GraphServiceTeamsTemplatesCollectionRequest) Get(ctx context.Context) ([]TeamsTemplate, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for TeamsTemplate collection
+func (r *GraphServiceTeamsTemplatesCollectionRequest) Add(ctx context.Context, reqObj *TeamsTemplate) (resObj *TeamsTemplate, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// UnfamiliarLocationRiskEvents returns request builder for UnfamiliarLocationRiskEvent collection
+func (b *GraphServiceRequestBuilder) UnfamiliarLocationRiskEvents() *GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder {
+ bb := &GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/unfamiliarLocationRiskEvents"
+ return bb
+}
+
+// GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder is request builder for UnfamiliarLocationRiskEvent collection
+type GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for UnfamiliarLocationRiskEvent collection
+func (b *GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder) Request() *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest {
+ return &GraphServiceUnfamiliarLocationRiskEventsCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for UnfamiliarLocationRiskEvent item
+func (b *GraphServiceUnfamiliarLocationRiskEventsCollectionRequestBuilder) ID(id string) *UnfamiliarLocationRiskEventRequestBuilder {
+ bb := &UnfamiliarLocationRiskEventRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceUnfamiliarLocationRiskEventsCollectionRequest is request for UnfamiliarLocationRiskEvent collection
+type GraphServiceUnfamiliarLocationRiskEventsCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for UnfamiliarLocationRiskEvent collection
+func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]UnfamiliarLocationRiskEvent, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []UnfamiliarLocationRiskEvent
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []UnfamiliarLocationRiskEvent
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for UnfamiliarLocationRiskEvent collection, max N pages
+func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) GetN(ctx context.Context, n int) ([]UnfamiliarLocationRiskEvent, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for UnfamiliarLocationRiskEvent collection
+func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Get(ctx context.Context) ([]UnfamiliarLocationRiskEvent, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for UnfamiliarLocationRiskEvent collection
+func (r *GraphServiceUnfamiliarLocationRiskEventsCollectionRequest) Add(ctx context.Context, reqObj *UnfamiliarLocationRiskEvent) (resObj *UnfamiliarLocationRiskEvent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Users returns request builder for User collection
+func (b *GraphServiceRequestBuilder) Users() *GraphServiceUsersCollectionRequestBuilder {
+ bb := &GraphServiceUsersCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/users"
+ return bb
+}
+
+// GraphServiceUsersCollectionRequestBuilder is request builder for User collection
+type GraphServiceUsersCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for User collection
+func (b *GraphServiceUsersCollectionRequestBuilder) Request() *GraphServiceUsersCollectionRequest {
+ return &GraphServiceUsersCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for User item
+func (b *GraphServiceUsersCollectionRequestBuilder) ID(id string) *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceUsersCollectionRequest is request for User collection
+type GraphServiceUsersCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for User collection
+func (r *GraphServiceUsersCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]User, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []User
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []User
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for User collection, max N pages
+func (r *GraphServiceUsersCollectionRequest) GetN(ctx context.Context, n int) ([]User, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for User collection
+func (r *GraphServiceUsersCollectionRequest) Get(ctx context.Context) ([]User, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for User collection
+func (r *GraphServiceUsersCollectionRequest) Add(ctx context.Context, reqObj *User) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Workbooks returns request builder for DriveItem collection
+func (b *GraphServiceRequestBuilder) Workbooks() *GraphServiceWorkbooksCollectionRequestBuilder {
+ bb := &GraphServiceWorkbooksCollectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/workbooks"
+ return bb
+}
+
+// GraphServiceWorkbooksCollectionRequestBuilder is request builder for DriveItem collection
+type GraphServiceWorkbooksCollectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns request for DriveItem collection
+func (b *GraphServiceWorkbooksCollectionRequestBuilder) Request() *GraphServiceWorkbooksCollectionRequest {
+ return &GraphServiceWorkbooksCollectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ID returns request builder for DriveItem item
+func (b *GraphServiceWorkbooksCollectionRequestBuilder) ID(id string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/" + id
+ return bb
+}
+
+// GraphServiceWorkbooksCollectionRequest is request for DriveItem collection
+type GraphServiceWorkbooksCollectionRequest struct{ BaseRequest }
+
+// Paging perfoms paging operation for DriveItem collection
+func (r *GraphServiceWorkbooksCollectionRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DriveItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DriveItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DriveItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+// GetN performs GET request for DriveItem collection, max N pages
+func (r *GraphServiceWorkbooksCollectionRequest) GetN(ctx context.Context, n int) ([]DriveItem, error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.Paging(ctx, "GET", query, nil, n)
+}
+
+// Get performs GET request for DriveItem collection
+func (r *GraphServiceWorkbooksCollectionRequest) Get(ctx context.Context) ([]DriveItem, error) {
+ return r.GetN(ctx, 0)
+}
+
+// Add performs POST request for DriveItem collection
+func (r *GraphServiceWorkbooksCollectionRequest) Add(ctx context.Context, reqObj *DriveItem) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", reqObj, &resObj)
+ return
+}
+
+// Security is navigation property
+func (b *GraphServiceRequestBuilder) Security() *SecurityRequestBuilder {
+ bb := &SecurityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/Security"
+ return bb
+}
+
+// App is navigation property
+func (b *GraphServiceRequestBuilder) App() *CommsApplicationRequestBuilder {
+ bb := &CommsApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/app"
+ return bb
+}
+
+// AppCatalogs is navigation property
+func (b *GraphServiceRequestBuilder) AppCatalogs() *AppCatalogsRequestBuilder {
+ bb := &AppCatalogsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/appCatalogs"
+ return bb
+}
+
+// AuditLogs is navigation property
+func (b *GraphServiceRequestBuilder) AuditLogs() *AuditLogRootRequestBuilder {
+ bb := &AuditLogRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/auditLogs"
+ return bb
+}
+
+// Communications is navigation property
+func (b *GraphServiceRequestBuilder) Communications() *CloudCommunicationsRequestBuilder {
+ bb := &CloudCommunicationsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/communications"
+ return bb
+}
+
+// ConditionalAccess is navigation property
+func (b *GraphServiceRequestBuilder) ConditionalAccess() *ConditionalAccessRootRequestBuilder {
+ bb := &ConditionalAccessRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/conditionalAccess"
+ return bb
+}
+
+// DataClassification is navigation property
+func (b *GraphServiceRequestBuilder) DataClassification() *DataClassificationServiceRequestBuilder {
+ bb := &DataClassificationServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/dataClassification"
+ return bb
+}
+
+// DeviceAppManagement is navigation property
+func (b *GraphServiceRequestBuilder) DeviceAppManagement() *DeviceAppManagementRequestBuilder {
+ bb := &DeviceAppManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceAppManagement"
+ return bb
+}
+
+// DeviceManagement is navigation property
+func (b *GraphServiceRequestBuilder) DeviceManagement() *DeviceManagementRequestBuilder {
+ bb := &DeviceManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/deviceManagement"
+ return bb
+}
+
+// Directory is navigation property
+func (b *GraphServiceRequestBuilder) Directory() *DirectoryRequestBuilder {
+ bb := &DirectoryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/directory"
+ return bb
+}
+
+// Drive is navigation property
+func (b *GraphServiceRequestBuilder) Drive() *DriveRequestBuilder {
+ bb := &DriveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/drive"
+ return bb
+}
+
+// Education is navigation property
+func (b *GraphServiceRequestBuilder) Education() *EducationRootRequestBuilder {
+ bb := &EducationRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/education"
+ return bb
+}
+
+// EntitlementManagement is navigation property
+func (b *GraphServiceRequestBuilder) EntitlementManagement() *EntitlementManagementRequestBuilder {
+ bb := &EntitlementManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/entitlementManagement"
+ return bb
+}
+
+// External is navigation property
+func (b *GraphServiceRequestBuilder) External() *ExternalRequestBuilder {
+ bb := &ExternalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/external"
+ return bb
+}
+
+// Financials is navigation property
+func (b *GraphServiceRequestBuilder) Financials() *FinancialsRequestBuilder {
+ bb := &FinancialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/financials"
+ return bb
+}
+
+// Identity is navigation property
+func (b *GraphServiceRequestBuilder) Identity() *IdentityContainerRequestBuilder {
+ bb := &IdentityContainerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identity"
+ return bb
+}
+
+// IdentityGovernance is navigation property
+func (b *GraphServiceRequestBuilder) IdentityGovernance() *IdentityGovernanceRequestBuilder {
+ bb := &IdentityGovernanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/identityGovernance"
+ return bb
+}
+
+// InformationProtection is navigation property
+func (b *GraphServiceRequestBuilder) InformationProtection() *InformationProtectionRequestBuilder {
+ bb := &InformationProtectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/informationProtection"
+ return bb
+}
+
+// Me is navigation property
+func (b *GraphServiceRequestBuilder) Me() *UserRequestBuilder {
+ bb := &UserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/me"
+ return bb
+}
+
+// OfficeConfiguration is navigation property
+func (b *GraphServiceRequestBuilder) OfficeConfiguration() *OfficeConfigurationRequestBuilder {
+ bb := &OfficeConfigurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/officeConfiguration"
+ return bb
+}
+
+// Planner is navigation property
+func (b *GraphServiceRequestBuilder) Planner() *PlannerRequestBuilder {
+ bb := &PlannerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/planner"
+ return bb
+}
+
+// Reports is navigation property
+func (b *GraphServiceRequestBuilder) Reports() *ReportRootRequestBuilder {
+ bb := &ReportRootRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/reports"
+ return bb
+}
+
+// RoleManagement is navigation property
+func (b *GraphServiceRequestBuilder) RoleManagement() *RoleManagementRequestBuilder {
+ bb := &RoleManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/roleManagement"
+ return bb
+}
+
+// Search is navigation property
+func (b *GraphServiceRequestBuilder) Search() *SearchRequestBuilder {
+ bb := &SearchRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/search"
+ return bb
+}
+
+// Teamwork is navigation property
+func (b *GraphServiceRequestBuilder) Teamwork() *TeamworkRequestBuilder {
+ bb := &TeamworkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/teamwork"
+ return bb
+}
+
+// TrustFramework is navigation property
+func (b *GraphServiceRequestBuilder) TrustFramework() *TrustFrameworkRequestBuilder {
+ bb := &TrustFrameworkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.baseURL += "/trustFramework"
+ return bb
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelACL.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelACL.go
new file mode 100644
index 00000000..5b8d85d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelACL.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ACL undocumented
+type ACL struct {
+ // Object is the base model of ACL
+ Object
+ // Type undocumented
+ Type *ACLType `json:"type,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+ // AccessType undocumented
+ AccessType *AccessType `json:"accessType,omitempty"`
+ // IdentitySource undocumented
+ IdentitySource *string `json:"identitySource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAPI.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAPI.go
new file mode 100644
index 00000000..6102195e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAPI.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// APIApplication undocumented
+type APIApplication struct {
+ // Object is the base model of APIApplication
+ Object
+ // AcceptMappedClaims undocumented
+ AcceptMappedClaims *bool `json:"acceptMappedClaims,omitempty"`
+ // KnownClientApplications undocumented
+ KnownClientApplications []UUID `json:"knownClientApplications,omitempty"`
+ // PreAuthorizedApplications undocumented
+ PreAuthorizedApplications []PreAuthorizedApplication `json:"preAuthorizedApplications,omitempty"`
+ // RequestedAccessTokenVersion undocumented
+ RequestedAccessTokenVersion *int `json:"requestedAccessTokenVersion,omitempty"`
+ // Oauth2PermissionScopes undocumented
+ Oauth2PermissionScopes []PermissionScope `json:"oauth2PermissionScopes,omitempty"`
+}
+
+// APIServicePrincipal undocumented
+type APIServicePrincipal struct {
+ // Object is the base model of APIServicePrincipal
+ Object
+ // ResourceSpecificApplicationPermissions undocumented
+ ResourceSpecificApplicationPermissions []ResourceSpecificPermission `json:"resourceSpecificApplicationPermissions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAad.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAad.go
new file mode 100644
index 00000000..0ea6c88e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAad.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AadUserConversationMember undocumented
+type AadUserConversationMember struct {
+ // ConversationMember is the base model of AadUserConversationMember
+ ConversationMember
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // User undocumented
+ User *User `json:"user,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccess.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccess.go
new file mode 100644
index 00000000..e6b45726
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccess.go
@@ -0,0 +1,423 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AccessAction undocumented
+type AccessAction struct {
+ // Object is the base model of AccessAction
+ Object
+}
+
+// AccessPackage undocumented
+type AccessPackage struct {
+ // Entity is the base model of AccessPackage
+ Entity
+ // CatalogID undocumented
+ CatalogID *string `json:"catalogId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IsHidden undocumented
+ IsHidden *bool `json:"isHidden,omitempty"`
+ // IsRoleScopesVisible undocumented
+ IsRoleScopesVisible *bool `json:"isRoleScopesVisible,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedBy undocumented
+ ModifiedBy *string `json:"modifiedBy,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // AccessPackageCatalog undocumented
+ AccessPackageCatalog *AccessPackageCatalog `json:"accessPackageCatalog,omitempty"`
+ // AccessPackageResourceRoleScopes undocumented
+ AccessPackageResourceRoleScopes []AccessPackageResourceRoleScope `json:"accessPackageResourceRoleScopes,omitempty"`
+ // AccessPackageAssignmentPolicies undocumented
+ AccessPackageAssignmentPolicies []AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicies,omitempty"`
+}
+
+// AccessPackageAssignment undocumented
+type AccessPackageAssignment struct {
+ // Entity is the base model of AccessPackageAssignment
+ Entity
+ // CatalogID undocumented
+ CatalogID *string `json:"catalogId,omitempty"`
+ // AccessPackageID undocumented
+ AccessPackageID *string `json:"accessPackageId,omitempty"`
+ // AssignmentPolicyID undocumented
+ AssignmentPolicyID *string `json:"assignmentPolicyId,omitempty"`
+ // TargetID undocumented
+ TargetID *string `json:"targetId,omitempty"`
+ // AssignmentStatus undocumented
+ AssignmentStatus *string `json:"assignmentStatus,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // IsExtended undocumented
+ IsExtended *bool `json:"isExtended,omitempty"`
+ // ExpiredDateTime undocumented
+ ExpiredDateTime *time.Time `json:"expiredDateTime,omitempty"`
+ // AccessPackage undocumented
+ AccessPackage *AccessPackage `json:"accessPackage,omitempty"`
+ // AccessPackageAssignmentPolicy undocumented
+ AccessPackageAssignmentPolicy *AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicy,omitempty"`
+ // Target undocumented
+ Target *AccessPackageSubject `json:"target,omitempty"`
+ // AccessPackageAssignmentRequests undocumented
+ AccessPackageAssignmentRequests []AccessPackageAssignmentRequestObject `json:"accessPackageAssignmentRequests,omitempty"`
+ // AccessPackageAssignmentResourceRoles undocumented
+ AccessPackageAssignmentResourceRoles []AccessPackageAssignmentResourceRole `json:"accessPackageAssignmentResourceRoles,omitempty"`
+}
+
+// AccessPackageAssignmentPolicy undocumented
+type AccessPackageAssignmentPolicy struct {
+ // Entity is the base model of AccessPackageAssignmentPolicy
+ Entity
+ // UserType undocumented
+ UserType *string `json:"userType,omitempty"`
+ // AccessPackageID undocumented
+ AccessPackageID *string `json:"accessPackageId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // CanExtend undocumented
+ CanExtend *bool `json:"canExtend,omitempty"`
+ // DurationInDays undocumented
+ DurationInDays *int `json:"durationInDays,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedBy undocumented
+ ModifiedBy *string `json:"modifiedBy,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // AccessPackage undocumented
+ AccessPackage *AccessPackage `json:"accessPackage,omitempty"`
+ // AccessPackageCatalog undocumented
+ AccessPackageCatalog *AccessPackageCatalog `json:"accessPackageCatalog,omitempty"`
+}
+
+// AccessPackageAssignmentRequestObject undocumented
+type AccessPackageAssignmentRequestObject struct {
+ // Entity is the base model of AccessPackageAssignmentRequestObject
+ Entity
+ // RequestType undocumented
+ RequestType *string `json:"requestType,omitempty"`
+ // RequestState undocumented
+ RequestState *string `json:"requestState,omitempty"`
+ // RequestStatus undocumented
+ RequestStatus *string `json:"requestStatus,omitempty"`
+ // IsValidationOnly undocumented
+ IsValidationOnly *bool `json:"isValidationOnly,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CompletedDate undocumented
+ CompletedDate *time.Time `json:"completedDate,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+ // AccessPackage undocumented
+ AccessPackage *AccessPackage `json:"accessPackage,omitempty"`
+ // AccessPackageAssignment undocumented
+ AccessPackageAssignment *AccessPackageAssignment `json:"accessPackageAssignment,omitempty"`
+ // Requestor undocumented
+ Requestor *AccessPackageSubject `json:"requestor,omitempty"`
+}
+
+// AccessPackageAssignmentResourceRole undocumented
+type AccessPackageAssignmentResourceRole struct {
+ // Entity is the base model of AccessPackageAssignmentResourceRole
+ Entity
+ // OriginID undocumented
+ OriginID *string `json:"originId,omitempty"`
+ // OriginSystem undocumented
+ OriginSystem *string `json:"originSystem,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // AccessPackageResourceScope undocumented
+ AccessPackageResourceScope *AccessPackageResourceScope `json:"accessPackageResourceScope,omitempty"`
+ // AccessPackageResourceRole undocumented
+ AccessPackageResourceRole *AccessPackageResourceRole `json:"accessPackageResourceRole,omitempty"`
+ // AccessPackageSubject undocumented
+ AccessPackageSubject *AccessPackageSubject `json:"accessPackageSubject,omitempty"`
+ // AccessPackageAssignments undocumented
+ AccessPackageAssignments []AccessPackageAssignment `json:"accessPackageAssignments,omitempty"`
+}
+
+// AccessPackageCatalog undocumented
+type AccessPackageCatalog struct {
+ // Entity is the base model of AccessPackageCatalog
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // CatalogType undocumented
+ CatalogType *string `json:"catalogType,omitempty"`
+ // CatalogStatus undocumented
+ CatalogStatus *string `json:"catalogStatus,omitempty"`
+ // IsExternallyVisible undocumented
+ IsExternallyVisible *bool `json:"isExternallyVisible,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedBy undocumented
+ ModifiedBy *string `json:"modifiedBy,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // AccessPackageResources undocumented
+ AccessPackageResources []AccessPackageResource `json:"accessPackageResources,omitempty"`
+ // AccessPackageResourceRoles undocumented
+ AccessPackageResourceRoles []AccessPackageResourceRole `json:"accessPackageResourceRoles,omitempty"`
+ // AccessPackageResourceScopes undocumented
+ AccessPackageResourceScopes []AccessPackageResourceScope `json:"accessPackageResourceScopes,omitempty"`
+ // AccessPackages undocumented
+ AccessPackages []AccessPackage `json:"accessPackages,omitempty"`
+}
+
+// AccessPackageResource undocumented
+type AccessPackageResource struct {
+ // Entity is the base model of AccessPackageResource
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // ResourceType undocumented
+ ResourceType *string `json:"resourceType,omitempty"`
+ // OriginID undocumented
+ OriginID *string `json:"originId,omitempty"`
+ // OriginSystem undocumented
+ OriginSystem *string `json:"originSystem,omitempty"`
+ // IsPendingOnboarding undocumented
+ IsPendingOnboarding *bool `json:"isPendingOnboarding,omitempty"`
+ // AddedBy undocumented
+ AddedBy *string `json:"addedBy,omitempty"`
+ // AddedOn undocumented
+ AddedOn *time.Time `json:"addedOn,omitempty"`
+ // AccessPackageResourceScopes undocumented
+ AccessPackageResourceScopes []AccessPackageResourceScope `json:"accessPackageResourceScopes,omitempty"`
+ // AccessPackageResourceRoles undocumented
+ AccessPackageResourceRoles []AccessPackageResourceRole `json:"accessPackageResourceRoles,omitempty"`
+}
+
+// AccessPackageResourceRequestObject undocumented
+type AccessPackageResourceRequestObject struct {
+ // Entity is the base model of AccessPackageResourceRequestObject
+ Entity
+ // CatalogID undocumented
+ CatalogID *string `json:"catalogId,omitempty"`
+ // ExecuteImmediately undocumented
+ ExecuteImmediately *bool `json:"executeImmediately,omitempty"`
+ // IsValidationOnly undocumented
+ IsValidationOnly *bool `json:"isValidationOnly,omitempty"`
+ // RequestType undocumented
+ RequestType *string `json:"requestType,omitempty"`
+ // RequestState undocumented
+ RequestState *string `json:"requestState,omitempty"`
+ // RequestStatus undocumented
+ RequestStatus *string `json:"requestStatus,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // AccessPackageResource undocumented
+ AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"`
+ // Requestor undocumented
+ Requestor *AccessPackageSubject `json:"requestor,omitempty"`
+}
+
+// AccessPackageResourceRole undocumented
+type AccessPackageResourceRole struct {
+ // Entity is the base model of AccessPackageResourceRole
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // OriginID undocumented
+ OriginID *string `json:"originId,omitempty"`
+ // OriginSystem undocumented
+ OriginSystem *string `json:"originSystem,omitempty"`
+ // AccessPackageResource undocumented
+ AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"`
+}
+
+// AccessPackageResourceRoleScope undocumented
+type AccessPackageResourceRoleScope struct {
+ // Entity is the base model of AccessPackageResourceRoleScope
+ Entity
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedBy undocumented
+ ModifiedBy *string `json:"modifiedBy,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // AccessPackageResourceRole undocumented
+ AccessPackageResourceRole *AccessPackageResourceRole `json:"accessPackageResourceRole,omitempty"`
+ // AccessPackageResourceScope undocumented
+ AccessPackageResourceScope *AccessPackageResourceScope `json:"accessPackageResourceScope,omitempty"`
+}
+
+// AccessPackageResourceScope undocumented
+type AccessPackageResourceScope struct {
+ // Entity is the base model of AccessPackageResourceScope
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // OriginID undocumented
+ OriginID *string `json:"originId,omitempty"`
+ // OriginSystem undocumented
+ OriginSystem *string `json:"originSystem,omitempty"`
+ // RoleOriginID undocumented
+ RoleOriginID *string `json:"roleOriginId,omitempty"`
+ // IsRootScope undocumented
+ IsRootScope *bool `json:"isRootScope,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // AccessPackageResource undocumented
+ AccessPackageResource *AccessPackageResource `json:"accessPackageResource,omitempty"`
+}
+
+// AccessPackageSubject undocumented
+type AccessPackageSubject struct {
+ // Entity is the base model of AccessPackageSubject
+ Entity
+ // ObjectID undocumented
+ ObjectID *string `json:"objectId,omitempty"`
+ // AltSecID undocumented
+ AltSecID *string `json:"altSecId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // PrincipalName undocumented
+ PrincipalName *string `json:"principalName,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // OnPremisesSecurityIdentifier undocumented
+ OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
+
+// AccessReview undocumented
+type AccessReview struct {
+ // Entity is the base model of AccessReview
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *UserIdentity `json:"createdBy,omitempty"`
+ // BusinessFlowTemplateID undocumented
+ BusinessFlowTemplateID *string `json:"businessFlowTemplateId,omitempty"`
+ // ReviewerType undocumented
+ ReviewerType *string `json:"reviewerType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Settings undocumented
+ Settings *AccessReviewSettings `json:"settings,omitempty"`
+ // ReviewedEntity undocumented
+ ReviewedEntity *Identity `json:"reviewedEntity,omitempty"`
+ // Reviewers undocumented
+ Reviewers []AccessReviewReviewer `json:"reviewers,omitempty"`
+ // Decisions undocumented
+ Decisions []AccessReviewDecision `json:"decisions,omitempty"`
+ // MyDecisions undocumented
+ MyDecisions []AccessReviewDecision `json:"myDecisions,omitempty"`
+ // Instances undocumented
+ Instances []AccessReview `json:"instances,omitempty"`
+}
+
+// AccessReviewDecision undocumented
+type AccessReviewDecision struct {
+ // Entity is the base model of AccessReviewDecision
+ Entity
+ // AccessReviewID undocumented
+ AccessReviewID *string `json:"accessReviewId,omitempty"`
+ // ReviewedBy undocumented
+ ReviewedBy *UserIdentity `json:"reviewedBy,omitempty"`
+ // ReviewedDateTime undocumented
+ ReviewedDateTime *time.Time `json:"reviewedDateTime,omitempty"`
+ // ReviewResult undocumented
+ ReviewResult *string `json:"reviewResult,omitempty"`
+ // Justification undocumented
+ Justification *string `json:"justification,omitempty"`
+ // AppliedBy undocumented
+ AppliedBy *UserIdentity `json:"appliedBy,omitempty"`
+ // AppliedDateTime undocumented
+ AppliedDateTime *time.Time `json:"appliedDateTime,omitempty"`
+ // ApplyResult undocumented
+ ApplyResult *string `json:"applyResult,omitempty"`
+ // AccessRecommendation undocumented
+ AccessRecommendation *string `json:"accessRecommendation,omitempty"`
+}
+
+// AccessReviewRecurrenceSettings undocumented
+type AccessReviewRecurrenceSettings struct {
+ // Object is the base model of AccessReviewRecurrenceSettings
+ Object
+ // RecurrenceType undocumented
+ RecurrenceType *string `json:"recurrenceType,omitempty"`
+ // RecurrenceEndType undocumented
+ RecurrenceEndType *string `json:"recurrenceEndType,omitempty"`
+ // DurationInDays undocumented
+ DurationInDays *int `json:"durationInDays,omitempty"`
+ // RecurrenceCount undocumented
+ RecurrenceCount *int `json:"recurrenceCount,omitempty"`
+}
+
+// AccessReviewReviewer undocumented
+type AccessReviewReviewer struct {
+ // Entity is the base model of AccessReviewReviewer
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// AccessReviewSettings undocumented
+type AccessReviewSettings struct {
+ // Object is the base model of AccessReviewSettings
+ Object
+ // MailNotificationsEnabled undocumented
+ MailNotificationsEnabled *bool `json:"mailNotificationsEnabled,omitempty"`
+ // RemindersEnabled undocumented
+ RemindersEnabled *bool `json:"remindersEnabled,omitempty"`
+ // JustificationRequiredOnApproval undocumented
+ JustificationRequiredOnApproval *bool `json:"justificationRequiredOnApproval,omitempty"`
+ // RecurrenceSettings undocumented
+ RecurrenceSettings *AccessReviewRecurrenceSettings `json:"recurrenceSettings,omitempty"`
+ // AutoReviewEnabled undocumented
+ AutoReviewEnabled *bool `json:"autoReviewEnabled,omitempty"`
+ // ActivityDurationInDays undocumented
+ ActivityDurationInDays *int `json:"activityDurationInDays,omitempty"`
+ // AutoReviewSettings undocumented
+ AutoReviewSettings *AutoReviewSettings `json:"autoReviewSettings,omitempty"`
+ // AutoApplyReviewResultsEnabled undocumented
+ AutoApplyReviewResultsEnabled *bool `json:"autoApplyReviewResultsEnabled,omitempty"`
+ // AccessRecommendationsEnabled undocumented
+ AccessRecommendationsEnabled *bool `json:"accessRecommendationsEnabled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccount.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccount.go
new file mode 100644
index 00000000..a4fdac03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAccount.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Account undocumented
+type Account struct {
+ // Entity is the base model of Account
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // SubCategory undocumented
+ SubCategory *string `json:"subCategory,omitempty"`
+ // Blocked undocumented
+ Blocked *bool `json:"blocked,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// AccountAlias undocumented
+type AccountAlias struct {
+ // Object is the base model of AccountAlias
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // IDType undocumented
+ IDType *string `json:"idType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelActive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelActive.go
new file mode 100644
index 00000000..d0358053
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelActive.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ActiveDirectoryWindowsAutopilotDeploymentProfile Windows Autopilot Deployment Profile
+type ActiveDirectoryWindowsAutopilotDeploymentProfile struct {
+ // WindowsAutopilotDeploymentProfile is the base model of ActiveDirectoryWindowsAutopilotDeploymentProfile
+ WindowsAutopilotDeploymentProfile
+ // HybridAzureADJoinSkipConnectivityCheck The Autopilot Hybrid Azure AD join flow will continue even if it does not establish domain controller connectivity during OOBE.
+ HybridAzureADJoinSkipConnectivityCheck *bool `json:"hybridAzureADJoinSkipConnectivityCheck,omitempty"`
+ // DomainJoinConfiguration undocumented
+ DomainJoinConfiguration *WindowsDomainJoinConfiguration `json:"domainJoinConfiguration,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelActivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelActivity.go
new file mode 100644
index 00000000..230f4514
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelActivity.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ActivityHistoryItem undocumented
+type ActivityHistoryItem struct {
+ // Entity is the base model of ActivityHistoryItem
+ Entity
+ // Status undocumented
+ Status *Status `json:"status,omitempty"`
+ // ActiveDurationSeconds undocumented
+ ActiveDurationSeconds *int `json:"activeDurationSeconds,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastActiveDateTime undocumented
+ LastActiveDateTime *time.Time `json:"lastActiveDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // StartedDateTime undocumented
+ StartedDateTime *time.Time `json:"startedDateTime,omitempty"`
+ // UserTimezone undocumented
+ UserTimezone *string `json:"userTimezone,omitempty"`
+ // Activity undocumented
+ Activity *UserActivity `json:"activity,omitempty"`
+}
+
+// ActivityStatistics undocumented
+type ActivityStatistics struct {
+ // Entity is the base model of ActivityStatistics
+ Entity
+ // Activity undocumented
+ Activity *AnalyticsActivityType `json:"activity,omitempty"`
+ // StartDate undocumented
+ StartDate *Date `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate *Date `json:"endDate,omitempty"`
+ // TimeZoneUsed undocumented
+ TimeZoneUsed *string `json:"timeZoneUsed,omitempty"`
+ // Duration undocumented
+ Duration *Duration `json:"duration,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdd.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdd.go
new file mode 100644
index 00000000..5143cd0d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdd.go
@@ -0,0 +1,101 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AddContentFooterAction undocumented
+type AddContentFooterAction struct {
+ // InformationProtectionAction is the base model of AddContentFooterAction
+ InformationProtectionAction
+ // UIElementName undocumented
+ UIElementName *string `json:"uiElementName,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // FontName undocumented
+ FontName *string `json:"fontName,omitempty"`
+ // FontSize undocumented
+ FontSize *int `json:"fontSize,omitempty"`
+ // FontColor undocumented
+ FontColor *string `json:"fontColor,omitempty"`
+ // Alignment undocumented
+ Alignment *ContentAlignment `json:"alignment,omitempty"`
+ // Margin undocumented
+ Margin *int `json:"margin,omitempty"`
+}
+
+// AddContentHeaderAction undocumented
+type AddContentHeaderAction struct {
+ // InformationProtectionAction is the base model of AddContentHeaderAction
+ InformationProtectionAction
+ // UIElementName undocumented
+ UIElementName *string `json:"uiElementName,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // FontName undocumented
+ FontName *string `json:"fontName,omitempty"`
+ // FontSize undocumented
+ FontSize *int `json:"fontSize,omitempty"`
+ // FontColor undocumented
+ FontColor *string `json:"fontColor,omitempty"`
+ // Alignment undocumented
+ Alignment *ContentAlignment `json:"alignment,omitempty"`
+ // Margin undocumented
+ Margin *int `json:"margin,omitempty"`
+}
+
+// AddFooter undocumented
+type AddFooter struct {
+ // MarkContent is the base model of AddFooter
+ MarkContent
+ // Margin undocumented
+ Margin *int `json:"margin,omitempty"`
+ // Alignment undocumented
+ Alignment *Alignment `json:"alignment,omitempty"`
+}
+
+// AddHeader undocumented
+type AddHeader struct {
+ // MarkContent is the base model of AddHeader
+ MarkContent
+ // Margin undocumented
+ Margin *int `json:"margin,omitempty"`
+ // Alignment undocumented
+ Alignment *Alignment `json:"alignment,omitempty"`
+}
+
+// AddIn undocumented
+type AddIn struct {
+ // Object is the base model of AddIn
+ Object
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Properties undocumented
+ Properties []KeyValue `json:"properties,omitempty"`
+}
+
+// AddWatermark undocumented
+type AddWatermark struct {
+ // MarkContent is the base model of AddWatermark
+ MarkContent
+ // Orientation undocumented
+ Orientation *PageOrientation `json:"orientation,omitempty"`
+}
+
+// AddWatermarkAction undocumented
+type AddWatermarkAction struct {
+ // InformationProtectionAction is the base model of AddWatermarkAction
+ InformationProtectionAction
+ // UIElementName undocumented
+ UIElementName *string `json:"uiElementName,omitempty"`
+ // Layout undocumented
+ Layout *WatermarkLayout `json:"layout,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // FontName undocumented
+ FontName *string `json:"fontName,omitempty"`
+ // FontSize undocumented
+ FontSize *int `json:"fontSize,omitempty"`
+ // FontColor undocumented
+ FontColor *string `json:"fontColor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdmin.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdmin.go
new file mode 100644
index 00000000..10e968fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdmin.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdminConsent undocumented
+type AdminConsent struct {
+ // Object is the base model of AdminConsent
+ Object
+ // ShareAPNSData The admin consent state of sharing user and device data to Apple.
+ ShareAPNSData *AdminConsentState `json:"shareAPNSData,omitempty"`
+ // ShareUserExperienceAnalyticsData Gets or sets the admin consent for sharing User experience analytics data.
+ ShareUserExperienceAnalyticsData *AdminConsentState `json:"shareUserExperienceAnalyticsData,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdministrative.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdministrative.go
new file mode 100644
index 00000000..8e9d3ec2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdministrative.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AdministrativeUnit undocumented
+type AdministrativeUnit struct {
+ // DirectoryObject is the base model of AdministrativeUnit
+ DirectoryObject
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Visibility undocumented
+ Visibility *string `json:"visibility,omitempty"`
+ // Members undocumented
+ Members []DirectoryObject `json:"members,omitempty"`
+ // ScopedRoleMembers undocumented
+ ScopedRoleMembers []ScopedRoleMembership `json:"scopedRoleMembers,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdvanced.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdvanced.go
new file mode 100644
index 00000000..23e14596
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAdvanced.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AdvancedThreatProtectionOnboardingDeviceSettingState ATP onboarding State for a given device.
+type AdvancedThreatProtectionOnboardingDeviceSettingState struct {
+ // Entity is the base model of AdvancedThreatProtectionOnboardingDeviceSettingState
+ Entity
+ // PlatformType Device platform type
+ PlatformType *DeviceType `json:"platformType,omitempty"`
+ // Setting The setting class name and property name.
+ Setting *string `json:"setting,omitempty"`
+ // SettingName The Setting Name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // DeviceID The Device Id that is being reported
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DeviceName The Device Name that is being reported
+ DeviceName *string `json:"deviceName,omitempty"`
+ // UserID The user Id that is being reported
+ UserID *string `json:"userId,omitempty"`
+ // UserEmail The User email address that is being reported
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName The User PrincipalName that is being reported
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // State The compliance state of the setting
+ State *ComplianceStatus `json:"state,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+}
+
+// AdvancedThreatProtectionOnboardingStateSummary Windows defender advanced threat protection onboarding state summary across the account.
+type AdvancedThreatProtectionOnboardingStateSummary struct {
+ // Entity is the base model of AdvancedThreatProtectionOnboardingStateSummary
+ Entity
+ // UnknownDeviceCount Number of unknown devices
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Number of compliant devices
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of NonCompliant devices
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of error devices
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+ // NotAssignedDeviceCount Number of not assigned devices
+ NotAssignedDeviceCount *int `json:"notAssignedDeviceCount,omitempty"`
+ // AdvancedThreatProtectionOnboardingDeviceSettingStates undocumented
+ AdvancedThreatProtectionOnboardingDeviceSettingStates []AdvancedThreatProtectionOnboardingDeviceSettingState `json:"advancedThreatProtectionOnboardingDeviceSettingStates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAged.go
new file mode 100644
index 00000000..29575d77
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAged.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AgedAccountsPayable undocumented
+type AgedAccountsPayable struct {
+ // Entity is the base model of AgedAccountsPayable
+ Entity
+ // VendorNumber undocumented
+ VendorNumber *string `json:"vendorNumber,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // BalanceDue undocumented
+ BalanceDue *int `json:"balanceDue,omitempty"`
+ // CurrentAmount undocumented
+ CurrentAmount *int `json:"currentAmount,omitempty"`
+ // Period1Amount undocumented
+ Period1Amount *int `json:"period1Amount,omitempty"`
+ // Period2Amount undocumented
+ Period2Amount *int `json:"period2Amount,omitempty"`
+ // Period3Amount undocumented
+ Period3Amount *int `json:"period3Amount,omitempty"`
+ // AgedAsOfDate undocumented
+ AgedAsOfDate *Date `json:"agedAsOfDate,omitempty"`
+ // PeriodLengthFilter undocumented
+ PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"`
+}
+
+// AgedAccountsReceivable undocumented
+type AgedAccountsReceivable struct {
+ // Entity is the base model of AgedAccountsReceivable
+ Entity
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // BalanceDue undocumented
+ BalanceDue *int `json:"balanceDue,omitempty"`
+ // CurrentAmount undocumented
+ CurrentAmount *int `json:"currentAmount,omitempty"`
+ // Period1Amount undocumented
+ Period1Amount *int `json:"period1Amount,omitempty"`
+ // Period2Amount undocumented
+ Period2Amount *int `json:"period2Amount,omitempty"`
+ // Period3Amount undocumented
+ Period3Amount *int `json:"period3Amount,omitempty"`
+ // AgedAsOfDate undocumented
+ AgedAsOfDate *Date `json:"agedAsOfDate,omitempty"`
+ // PeriodLengthFilter undocumented
+ PeriodLengthFilter *string `json:"periodLengthFilter,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAgreement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAgreement.go
new file mode 100644
index 00000000..19b094ab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAgreement.go
@@ -0,0 +1,61 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Agreement undocumented
+type Agreement struct {
+ // Entity is the base model of Agreement
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsViewingBeforeAcceptanceRequired undocumented
+ IsViewingBeforeAcceptanceRequired *bool `json:"isViewingBeforeAcceptanceRequired,omitempty"`
+ // Files undocumented
+ Files []AgreementFile `json:"files,omitempty"`
+}
+
+// AgreementAcceptance undocumented
+type AgreementAcceptance struct {
+ // Entity is the base model of AgreementAcceptance
+ Entity
+ // AgreementID undocumented
+ AgreementID *string `json:"agreementId,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // AgreementFileID undocumented
+ AgreementFileID *string `json:"agreementFileId,omitempty"`
+ // RecordedDateTime undocumented
+ RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserEmail undocumented
+ UserEmail *string `json:"userEmail,omitempty"`
+ // State undocumented
+ State *AgreementAcceptanceState `json:"state,omitempty"`
+}
+
+// AgreementFile undocumented
+type AgreementFile struct {
+ // Entity is the base model of AgreementFile
+ Entity
+ // Language undocumented
+ Language *string `json:"language,omitempty"`
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // FileData undocumented
+ FileData *AgreementFileData `json:"fileData,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+}
+
+// AgreementFileData undocumented
+type AgreementFileData struct {
+ // Object is the base model of AgreementFileData
+ Object
+ // Data undocumented
+ Data *Binary `json:"data,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAir.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAir.go
new file mode 100644
index 00000000..f8f9b2eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAir.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AirPrintDestination undocumented
+type AirPrintDestination struct {
+ // Object is the base model of AirPrintDestination
+ Object
+ // IPAddress The IP Address of the AirPrint destination.
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // ResourcePath undocumented
+ ResourcePath *string `json:"resourcePath,omitempty"`
+ // Port The listening port of the AirPrint destination. If this key is not specified AirPrint will use the default port. Available in iOS 11.0 and later.
+ Port *int `json:"port,omitempty"`
+ // ForceTLS If true AirPrint connections are secured by Transport Layer Security (TLS). Default is false. Available in iOS 11.0 and later.
+ ForceTLS *bool `json:"forceTls,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlbum.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlbum.go
new file mode 100644
index 00000000..fb0f47b3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlbum.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Album undocumented
+type Album struct {
+ // Object is the base model of Album
+ Object
+ // CoverImageItemID undocumented
+ CoverImageItemID *string `json:"coverImageItemId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlert.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlert.go
new file mode 100644
index 00000000..c7ceb9d2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlert.go
@@ -0,0 +1,107 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Alert undocumented
+type Alert struct {
+ // Entity is the base model of Alert
+ Entity
+ // ActivityGroupName undocumented
+ ActivityGroupName *string `json:"activityGroupName,omitempty"`
+ // AssignedTo undocumented
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // ClosedDateTime undocumented
+ ClosedDateTime *time.Time `json:"closedDateTime,omitempty"`
+ // CloudAppStates undocumented
+ CloudAppStates []CloudAppSecurityState `json:"cloudAppStates,omitempty"`
+ // Comments undocumented
+ Comments []string `json:"comments,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DetectionIDs undocumented
+ DetectionIDs []string `json:"detectionIds,omitempty"`
+ // EventDateTime undocumented
+ EventDateTime *time.Time `json:"eventDateTime,omitempty"`
+ // Feedback undocumented
+ Feedback *AlertFeedback `json:"feedback,omitempty"`
+ // FileStates undocumented
+ FileStates []FileSecurityState `json:"fileStates,omitempty"`
+ // HistoryStates undocumented
+ HistoryStates []AlertHistoryState `json:"historyStates,omitempty"`
+ // HostStates undocumented
+ HostStates []HostSecurityState `json:"hostStates,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // MalwareStates undocumented
+ MalwareStates []MalwareState `json:"malwareStates,omitempty"`
+ // NetworkConnections undocumented
+ NetworkConnections []NetworkConnection `json:"networkConnections,omitempty"`
+ // Processes undocumented
+ Processes []Process `json:"processes,omitempty"`
+ // RecommendedActions undocumented
+ RecommendedActions []string `json:"recommendedActions,omitempty"`
+ // RegistryKeyStates undocumented
+ RegistryKeyStates []RegistryKeyState `json:"registryKeyStates,omitempty"`
+ // Severity undocumented
+ Severity *AlertSeverity `json:"severity,omitempty"`
+ // SourceMaterials undocumented
+ SourceMaterials []string `json:"sourceMaterials,omitempty"`
+ // Status undocumented
+ Status *AlertStatus `json:"status,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Triggers undocumented
+ Triggers []AlertTrigger `json:"triggers,omitempty"`
+ // UserStates undocumented
+ UserStates []UserSecurityState `json:"userStates,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+ // VulnerabilityStates undocumented
+ VulnerabilityStates []VulnerabilityState `json:"vulnerabilityStates,omitempty"`
+}
+
+// AlertHistoryState undocumented
+type AlertHistoryState struct {
+ // Object is the base model of AlertHistoryState
+ Object
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AssignedTo undocumented
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // Comments undocumented
+ Comments []string `json:"comments,omitempty"`
+ // Feedback undocumented
+ Feedback *AlertFeedback `json:"feedback,omitempty"`
+ // Status undocumented
+ Status *AlertStatus `json:"status,omitempty"`
+ // UpdatedDateTime undocumented
+ UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"`
+ // User undocumented
+ User *string `json:"user,omitempty"`
+}
+
+// AlertTrigger undocumented
+type AlertTrigger struct {
+ // Object is the base model of AlertTrigger
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAll.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAll.go
new file mode 100644
index 00000000..0252a663
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAll.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllDevicesAssignmentTarget undocumented
+type AllDevicesAssignmentTarget struct {
+ // DeviceAndAppManagementAssignmentTarget is the base model of AllDevicesAssignmentTarget
+ DeviceAndAppManagementAssignmentTarget
+}
+
+// AllLicensedUsersAssignmentTarget undocumented
+type AllLicensedUsersAssignmentTarget struct {
+ // DeviceAndAppManagementAssignmentTarget is the base model of AllLicensedUsersAssignmentTarget
+ DeviceAndAppManagementAssignmentTarget
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAllowed.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAllowed.go
new file mode 100644
index 00000000..aa654424
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAllowed.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AllowedDataLocation undocumented
+type AllowedDataLocation struct {
+ // Entity is the base model of AllowedDataLocation
+ Entity
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // Location undocumented
+ Location *string `json:"location,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // Domain undocumented
+ Domain *string `json:"domain,omitempty"`
+}
+
+// AllowedDataLocationInfo undocumented
+type AllowedDataLocationInfo struct {
+ // Object is the base model of AllowedDataLocationInfo
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlternative.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlternative.go
new file mode 100644
index 00000000..19ce9531
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAlternative.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AlternativeSecurityID undocumented
+type AlternativeSecurityID struct {
+ // Object is the base model of AlternativeSecurityID
+ Object
+ // Type undocumented
+ Type *int `json:"type,omitempty"`
+ // IdentityProvider undocumented
+ IdentityProvider *string `json:"identityProvider,omitempty"`
+ // Key undocumented
+ Key *Binary `json:"key,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAndroid.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAndroid.go
new file mode 100644
index 00000000..65a5086b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAndroid.go
@@ -0,0 +1,1741 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AndroidCertificateProfileBase Android certificate profile base.
+type AndroidCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *AndroidTrustedRootCertificate `json:"rootCertificate,omitempty"`
+}
+
+// AndroidCompliancePolicy This class contains compliance settings for Android.
+type AndroidCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of AndroidCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordRequiredType Type of characters in password
+ PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources.
+ SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"`
+ // SecurityDisableUsbDebugging Disable USB debugging on Android devices.
+ SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted.
+ SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"`
+ // OsMinimumVersion Minimum Android version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Android version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MinAndroidSecurityPatchLevel Minimum Android security patch level.
+ MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"`
+ // StorageRequireEncryption Require encryption on Android devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check.
+ SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"`
+ // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check.
+ SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"`
+ // SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device.
+ SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"`
+ // SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
+ SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"`
+ // SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check.
+ SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"`
+ // ConditionStatementID Condition statement id.
+ ConditionStatementID *string `json:"conditionStatementId,omitempty"`
+ // RestrictedApps Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.
+ RestrictedApps []AppListItem `json:"restrictedApps,omitempty"`
+}
+
+// AndroidCustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the androidCustomConfiguration resource.
+type AndroidCustomConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidCustomConfiguration
+ DeviceConfiguration
+ // OMASettings OMA settings. This collection can contain a maximum of 1000 elements.
+ OMASettings []OMASetting `json:"omaSettings,omitempty"`
+}
+
+// AndroidDeviceComplianceLocalActionBase Local Action Configuration
+type AndroidDeviceComplianceLocalActionBase struct {
+ // Entity is the base model of AndroidDeviceComplianceLocalActionBase
+ Entity
+ // GracePeriodInMinutes Number of minutes to wait till a local action is enforced. Valid values 0 to 2147483647
+ GracePeriodInMinutes *int `json:"gracePeriodInMinutes,omitempty"`
+}
+
+// AndroidDeviceComplianceLocalActionLockDevice Local Action Lock Device Only Configuration
+type AndroidDeviceComplianceLocalActionLockDevice struct {
+ // AndroidDeviceComplianceLocalActionBase is the base model of AndroidDeviceComplianceLocalActionLockDevice
+ AndroidDeviceComplianceLocalActionBase
+}
+
+// AndroidDeviceComplianceLocalActionLockDeviceWithPasscode Local Action Lock Device with Passcode Configuration
+type AndroidDeviceComplianceLocalActionLockDeviceWithPasscode struct {
+ // AndroidDeviceComplianceLocalActionBase is the base model of AndroidDeviceComplianceLocalActionLockDeviceWithPasscode
+ AndroidDeviceComplianceLocalActionBase
+ // Passcode Passcode to reset to Android device. This property is read-only.
+ Passcode *string `json:"passcode,omitempty"`
+ // PasscodeSignInFailureCountBeforeWipe Number of sign in failures before wiping device, the value can be 4-11. Valid values 4 to 11
+ PasscodeSignInFailureCountBeforeWipe *int `json:"passcodeSignInFailureCountBeforeWipe,omitempty"`
+}
+
+// AndroidDeviceOwnerCertificateProfileBase Android Device Owner certificate profile base.
+type AndroidDeviceOwnerCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidDeviceOwnerCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *AndroidDeviceOwnerTrustedRootCertificate `json:"rootCertificate,omitempty"`
+}
+
+// AndroidDeviceOwnerCompliancePolicy This topic provides descriptions of the declared methods, properties and relationships exposed by the AndroidDeviceOwnerCompliancePolicy resource.
+type AndroidDeviceOwnerCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of AndroidDeviceOwnerCompliancePolicy
+ DeviceCompliancePolicy
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check.
+ SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"`
+ // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check.
+ SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"`
+ // OsMinimumVersion Minimum Android version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Android version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MinAndroidSecurityPatchLevel Minimum Android security patch level.
+ MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"`
+ // PasswordRequired Require a password to unlock device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumLetterCharacters Indicates the minimum number of letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumLetterCharacters *int `json:"passwordMinimumLetterCharacters,omitempty"`
+ // PasswordMinimumLowerCaseCharacters Indicates the minimum number of lower case characters required for device password. Valid values 1 to 16
+ PasswordMinimumLowerCaseCharacters *int `json:"passwordMinimumLowerCaseCharacters,omitempty"`
+ // PasswordMinimumNonLetterCharacters Indicates the minimum number of non-letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumNonLetterCharacters *int `json:"passwordMinimumNonLetterCharacters,omitempty"`
+ // PasswordMinimumNumericCharacters Indicates the minimum number of numeric characters required for device password. Valid values 1 to 16
+ PasswordMinimumNumericCharacters *int `json:"passwordMinimumNumericCharacters,omitempty"`
+ // PasswordMinimumSymbolCharacters Indicates the minimum number of symbol characters required for device password. Valid values 1 to 16
+ PasswordMinimumSymbolCharacters *int `json:"passwordMinimumSymbolCharacters,omitempty"`
+ // PasswordMinimumUpperCaseCharacters Indicates the minimum number of upper case letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumUpperCaseCharacters *int `json:"passwordMinimumUpperCaseCharacters,omitempty"`
+ // PasswordRequiredType Type of characters in password
+ PasswordRequiredType *AndroidDeviceOwnerRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordPreviousPasswordCountToBlock Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordCountToBlock *int `json:"passwordPreviousPasswordCountToBlock,omitempty"`
+ // StorageRequireEncryption Require encryption on Android devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+}
+
+// AndroidDeviceOwnerEnrollmentProfile Enrollment Profile used to enroll COSU devices using Google's Cloud Management.
+type AndroidDeviceOwnerEnrollmentProfile struct {
+ // Entity is the base model of AndroidDeviceOwnerEnrollmentProfile
+ Entity
+ // AccountID Tenant GUID the enrollment profile belongs to.
+ AccountID *string `json:"accountId,omitempty"`
+ // DisplayName Display name for the enrollment profile.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description for the enrollment profile.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime Date time the enrollment profile was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Date time the enrollment profile was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // TokenValue Value of the most recently created token for this enrollment profile.
+ TokenValue *string `json:"tokenValue,omitempty"`
+ // TokenCreationDateTime Date time the most recently created token was created.
+ TokenCreationDateTime *time.Time `json:"tokenCreationDateTime,omitempty"`
+ // TokenExpirationDateTime Date time the most recently created token will expire.
+ TokenExpirationDateTime *time.Time `json:"tokenExpirationDateTime,omitempty"`
+ // EnrolledDeviceCount Total number of Android devices that have enrolled using this enrollment profile.
+ EnrolledDeviceCount *int `json:"enrolledDeviceCount,omitempty"`
+ // QrCodeContent String used to generate a QR code for the token.
+ QrCodeContent *string `json:"qrCodeContent,omitempty"`
+ // QrCodeImage String used to generate a QR code for the token.
+ QrCodeImage *MimeContent `json:"qrCodeImage,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
+
+// AndroidDeviceOwnerEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android Device Owner device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type AndroidDeviceOwnerEnterpriseWiFiConfiguration struct {
+ // AndroidDeviceOwnerWiFiConfiguration is the base model of AndroidDeviceOwnerEnterpriseWiFiConfiguration
+ AndroidDeviceOwnerWiFiConfiguration
+ // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *AndroidEapType `json:"eapType,omitempty"`
+ // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *AndroidDeviceOwnerTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *AndroidDeviceOwnerCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
+
+// AndroidDeviceOwnerGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the androidDeviceOwnerGeneralDeviceConfiguration resource.
+type AndroidDeviceOwnerGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidDeviceOwnerGeneralDeviceConfiguration
+ DeviceConfiguration
+ // AccountsBlockModification Indicates whether or not adding or removing accounts is disabled.
+ AccountsBlockModification *bool `json:"accountsBlockModification,omitempty"`
+ // AppsAllowInstallFromUnknownSources Indicates whether or not the user is allowed to enable to unknown sources setting.
+ AppsAllowInstallFromUnknownSources *bool `json:"appsAllowInstallFromUnknownSources,omitempty"`
+ // AppsAutoUpdatePolicy Indicates the value of the app auto update policy.
+ AppsAutoUpdatePolicy *AndroidDeviceOwnerAppAutoUpdatePolicyType `json:"appsAutoUpdatePolicy,omitempty"`
+ // AppsDefaultPermissionPolicy Indicates the permission policy for requests for runtime permissions if one is not defined for the app specifically.
+ AppsDefaultPermissionPolicy *AndroidDeviceOwnerDefaultAppPermissionPolicyType `json:"appsDefaultPermissionPolicy,omitempty"`
+ // AppsRecommendSkippingFirstUseHints Whether or not to recommend all apps skip any first-time-use hints they may have added.
+ AppsRecommendSkippingFirstUseHints *bool `json:"appsRecommendSkippingFirstUseHints,omitempty"`
+ // BluetoothBlockConfiguration Indicates whether or not to block a user from configuring bluetooth.
+ BluetoothBlockConfiguration *bool `json:"bluetoothBlockConfiguration,omitempty"`
+ // BluetoothBlockContactSharing Indicates whether or not to block a user from sharing contacts via bluetooth.
+ BluetoothBlockContactSharing *bool `json:"bluetoothBlockContactSharing,omitempty"`
+ // CameraBlocked Indicates whether or not to disable the use of the camera.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // CellularBlockWiFiTethering Indicates whether or not to block Wi-Fi tethering.
+ CellularBlockWiFiTethering *bool `json:"cellularBlockWiFiTethering,omitempty"`
+ // DataRoamingBlocked Indicates whether or not to block a user from data roaming.
+ DataRoamingBlocked *bool `json:"dataRoamingBlocked,omitempty"`
+ // DateTimeConfigurationBlocked Indicates whether or not to block the user from manually changing the date or time on the device
+ DateTimeConfigurationBlocked *bool `json:"dateTimeConfigurationBlocked,omitempty"`
+ // FactoryResetDeviceAdministratorEmails List of Google account emails that will be required to authenticate after a device is factory reset before it can be set up.
+ FactoryResetDeviceAdministratorEmails []string `json:"factoryResetDeviceAdministratorEmails,omitempty"`
+ // FactoryResetBlocked Indicates whether or not the factory reset option in settings is disabled.
+ FactoryResetBlocked *bool `json:"factoryResetBlocked,omitempty"`
+ // GlobalProxy Proxy is set up directly with host, port and excluded hosts.
+ GlobalProxy *AndroidDeviceOwnerGlobalProxy `json:"globalProxy,omitempty"`
+ // GoogleAccountsBlocked Indicates whether or not google accounts will be blocked.
+ GoogleAccountsBlocked *bool `json:"googleAccountsBlocked,omitempty"`
+ // KioskModeScreenSaverConfigurationEnabled Whether or not to enable screen saver mode or not in Kiosk Mode.
+ KioskModeScreenSaverConfigurationEnabled *bool `json:"kioskModeScreenSaverConfigurationEnabled,omitempty"`
+ // KioskModeScreenSaverImageURL URL for an image that will be the device's screen saver in Kiosk Mode.
+ KioskModeScreenSaverImageURL *string `json:"kioskModeScreenSaverImageUrl,omitempty"`
+ // KioskModeScreenSaverDisplayTimeInSeconds The number of seconds that the device will display the screen saver for in Kiosk Mode. Valid values 0 to 9999999
+ KioskModeScreenSaverDisplayTimeInSeconds *int `json:"kioskModeScreenSaverDisplayTimeInSeconds,omitempty"`
+ // KioskModeScreenSaverStartDelayInSeconds The number of seconds the device needs to be inactive for before the screen saver is shown in Kiosk Mode. Valid values 1 to 9999999
+ KioskModeScreenSaverStartDelayInSeconds *int `json:"kioskModeScreenSaverStartDelayInSeconds,omitempty"`
+ // KioskModeScreenSaverDetectMediaDisabled Whether or not the device screen should show the screen saver if audio/video is playing in Kiosk Mode.
+ KioskModeScreenSaverDetectMediaDisabled *bool `json:"kioskModeScreenSaverDetectMediaDisabled,omitempty"`
+ // KioskModeApps A list of managed apps that will be shown when the device is in Kiosk Mode. This collection can contain a maximum of 500 elements.
+ KioskModeApps []AppListItem `json:"kioskModeApps,omitempty"`
+ // KioskModeWallpaperURL URL to a publicly accessible image to use for the wallpaper when the device is in Kiosk Mode.
+ KioskModeWallpaperURL *string `json:"kioskModeWallpaperUrl,omitempty"`
+ // KioskModeExitCode Exit code to allow a user to escape from Kiosk Mode when the device is in Kiosk Mode.
+ KioskModeExitCode *string `json:"kioskModeExitCode,omitempty"`
+ // KioskModeVirtualHomeButtonEnabled Whether or not to display a virtual home button when the device is in Kiosk Mode.
+ KioskModeVirtualHomeButtonEnabled *bool `json:"kioskModeVirtualHomeButtonEnabled,omitempty"`
+ // KioskModeVirtualHomeButtonType Indicates whether the virtual home button is a swipe up home button or a floating home button.
+ KioskModeVirtualHomeButtonType *AndroidDeviceOwnerVirtualHomeButtonType `json:"kioskModeVirtualHomeButtonType,omitempty"`
+ // KioskModeBluetoothConfigurationEnabled Whether or not to allow a user to configure Bluetooth settings in Kiosk Mode.
+ KioskModeBluetoothConfigurationEnabled *bool `json:"kioskModeBluetoothConfigurationEnabled,omitempty"`
+ // KioskModeWiFiConfigurationEnabled Whether or not to allow a user to configure Wi-Fi settings in Kiosk Mode.
+ KioskModeWiFiConfigurationEnabled *bool `json:"kioskModeWiFiConfigurationEnabled,omitempty"`
+ // KioskModeFlashlightConfigurationEnabled Whether or not to allow a user to use the flashlight in Kiosk Mode.
+ KioskModeFlashlightConfigurationEnabled *bool `json:"kioskModeFlashlightConfigurationEnabled,omitempty"`
+ // KioskModeMediaVolumeConfigurationEnabled Whether or not to allow a user to change the media volume in Kiosk Mode.
+ KioskModeMediaVolumeConfigurationEnabled *bool `json:"kioskModeMediaVolumeConfigurationEnabled,omitempty"`
+ // MicrophoneForceMute Indicates whether or not to block unmuting the microphone on the device.
+ MicrophoneForceMute *bool `json:"microphoneForceMute,omitempty"`
+ // NetworkEscapeHatchAllowed Indicates whether or not the device will allow connecting to a temporary network connection at boot time.
+ NetworkEscapeHatchAllowed *bool `json:"networkEscapeHatchAllowed,omitempty"`
+ // NfcBlockOutgoingBeam Indicates whether or not to block NFC outgoing beam.
+ NfcBlockOutgoingBeam *bool `json:"nfcBlockOutgoingBeam,omitempty"`
+ // PasswordBlockKeyguard Indicates whether or not the keyguard is disabled.
+ PasswordBlockKeyguard *bool `json:"passwordBlockKeyguard,omitempty"`
+ // PasswordBlockKeyguardFeatures List of device keyguard features to block. This collection can contain a maximum of 7 elements.
+ PasswordBlockKeyguardFeatures []AndroidKeyguardFeature `json:"passwordBlockKeyguardFeatures,omitempty"`
+ // PasswordExpirationDays Indicates the amount of time in seconds that a password can be set for before it expires and a new password will be required. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Indicates the minimum length of the password required on the device. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumLetterCharacters Indicates the minimum number of letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumLetterCharacters *int `json:"passwordMinimumLetterCharacters,omitempty"`
+ // PasswordMinimumLowerCaseCharacters Indicates the minimum number of lower case characters required for device password. Valid values 1 to 16
+ PasswordMinimumLowerCaseCharacters *int `json:"passwordMinimumLowerCaseCharacters,omitempty"`
+ // PasswordMinimumNonLetterCharacters Indicates the minimum number of non-letter characters required for device password. Valid values 1 to 16
+ PasswordMinimumNonLetterCharacters *int `json:"passwordMinimumNonLetterCharacters,omitempty"`
+ // PasswordMinimumNumericCharacters Indicates the minimum number of numeric characters required for device password. Valid values 1 to 16
+ PasswordMinimumNumericCharacters *int `json:"passwordMinimumNumericCharacters,omitempty"`
+ // PasswordMinimumSymbolCharacters Indicates the minimum number of symbol characters required for device password. Valid values 1 to 16
+ PasswordMinimumSymbolCharacters *int `json:"passwordMinimumSymbolCharacters,omitempty"`
+ // PasswordMinimumUpperCaseCharacters Indicates the minimum number of upper caseletter characters required for device password. Valid values 1 to 16
+ PasswordMinimumUpperCaseCharacters *int `json:"passwordMinimumUpperCaseCharacters,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Milliseconds of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordCountToBlock Indicates the length of password history, where the user will not be able to enter a new password that is the same as any password in the history. Valid values 0 to 24
+ PasswordPreviousPasswordCountToBlock *int `json:"passwordPreviousPasswordCountToBlock,omitempty"`
+ // PasswordRequiredType Indicates the minimum password quality required on the device.
+ PasswordRequiredType *AndroidDeviceOwnerRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Indicates the number of times a user can enter an incorrect password before the device is wiped. Valid values 4 to 11
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PlayStoreMode Indicates the Play Store mode of the device.
+ PlayStoreMode *AndroidDeviceOwnerPlayStoreMode `json:"playStoreMode,omitempty"`
+ // SafeBootBlocked Indicates whether or not rebooting the device into safe boot is disabled.
+ SafeBootBlocked *bool `json:"safeBootBlocked,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to disable the capability to take screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // SecurityAllowDebuggingFeatures Indicates whether or not to block the user from enabling debugging features on the device.
+ SecurityAllowDebuggingFeatures *bool `json:"securityAllowDebuggingFeatures,omitempty"`
+ // SecurityRequireVerifyApps Indicates whether or not verify apps is required.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // StatusBarBlocked Indicates whether or the status bar is disabled, including notifications, quick settings and other screen overlays.
+ StatusBarBlocked *bool `json:"statusBarBlocked,omitempty"`
+ // StayOnModes List of modes in which the device's display will stay powered-on. This collection can contain a maximum of 4 elements.
+ StayOnModes []AndroidDeviceOwnerBatteryPluggedMode `json:"stayOnModes,omitempty"`
+ // StorageAllowUsb Indicates whether or not to allow USB mass storage.
+ StorageAllowUsb *bool `json:"storageAllowUsb,omitempty"`
+ // StorageBlockExternalMedia Indicates whether or not to block external media.
+ StorageBlockExternalMedia *bool `json:"storageBlockExternalMedia,omitempty"`
+ // StorageBlockUsbFileTransfer Indicates whether or not to block USB file transfer.
+ StorageBlockUsbFileTransfer *bool `json:"storageBlockUsbFileTransfer,omitempty"`
+ // SystemUpdateWindowStartMinutesAfterMidnight Indicates the number of minutes after midnight that the system update window starts. Valid values 0 to 1440
+ SystemUpdateWindowStartMinutesAfterMidnight *int `json:"systemUpdateWindowStartMinutesAfterMidnight,omitempty"`
+ // SystemUpdateWindowEndMinutesAfterMidnight Indicates the number of minutes after midnight that the system update window ends. Valid values 0 to 1440
+ SystemUpdateWindowEndMinutesAfterMidnight *int `json:"systemUpdateWindowEndMinutesAfterMidnight,omitempty"`
+ // SystemUpdateInstallType The type of system update configuration.
+ SystemUpdateInstallType *AndroidDeviceOwnerSystemUpdateInstallType `json:"systemUpdateInstallType,omitempty"`
+ // SystemWindowsBlocked Whether or not to block Android system prompt windows, like toasts, phone activities, and system alerts.
+ SystemWindowsBlocked *bool `json:"systemWindowsBlocked,omitempty"`
+ // UsersBlockAdd Indicates whether or not adding users and profiles is disabled.
+ UsersBlockAdd *bool `json:"usersBlockAdd,omitempty"`
+ // UsersBlockRemove Indicates whether or not to disable removing other users from the device.
+ UsersBlockRemove *bool `json:"usersBlockRemove,omitempty"`
+ // VolumeBlockAdjustment Indicates whether or not adjusting the master volume is disabled.
+ VolumeBlockAdjustment *bool `json:"volumeBlockAdjustment,omitempty"`
+ // VPNAlwaysOnPackageIdentifier Android app package name for app that will handle an always-on VPN connection.
+ VPNAlwaysOnPackageIdentifier *string `json:"vpnAlwaysOnPackageIdentifier,omitempty"`
+ // VPNAlwaysOnLockdownMode If an always on VPN package name is specified, whether or not to lock network traffic when that VPN is disconnected.
+ VPNAlwaysOnLockdownMode *bool `json:"vpnAlwaysOnLockdownMode,omitempty"`
+ // WiFiBlockEditConfigurations Indicates whether or not to block the user from editing the wifi connection settings.
+ WiFiBlockEditConfigurations *bool `json:"wifiBlockEditConfigurations,omitempty"`
+ // WiFiBlockEditPolicyDefinedConfigurations Indicates whether or not to block the user from editing just the networks defined by the policy.
+ WiFiBlockEditPolicyDefinedConfigurations *bool `json:"wifiBlockEditPolicyDefinedConfigurations,omitempty"`
+}
+
+// AndroidDeviceOwnerGlobalProxy undocumented
+type AndroidDeviceOwnerGlobalProxy struct {
+ // Object is the base model of AndroidDeviceOwnerGlobalProxy
+ Object
+}
+
+// AndroidDeviceOwnerGlobalProxyAutoConfig undocumented
+type AndroidDeviceOwnerGlobalProxyAutoConfig struct {
+ // AndroidDeviceOwnerGlobalProxy is the base model of AndroidDeviceOwnerGlobalProxyAutoConfig
+ AndroidDeviceOwnerGlobalProxy
+ // ProxyAutoConfigURL The proxy auto-config URL
+ ProxyAutoConfigURL *string `json:"proxyAutoConfigURL,omitempty"`
+}
+
+// AndroidDeviceOwnerGlobalProxyDirect undocumented
+type AndroidDeviceOwnerGlobalProxyDirect struct {
+ // AndroidDeviceOwnerGlobalProxy is the base model of AndroidDeviceOwnerGlobalProxyDirect
+ AndroidDeviceOwnerGlobalProxy
+ // Host The host name
+ Host *string `json:"host,omitempty"`
+ // Port The port
+ Port *int `json:"port,omitempty"`
+ // ExcludedHosts The excluded hosts
+ ExcludedHosts []string `json:"excludedHosts,omitempty"`
+}
+
+// AndroidDeviceOwnerScepCertificateProfile Android Device Owner SCEP certificate profile
+type AndroidDeviceOwnerScepCertificateProfile struct {
+ // AndroidDeviceOwnerCertificateProfileBase is the base model of AndroidDeviceOwnerScepCertificateProfile
+ AndroidDeviceOwnerCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s)
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// AndroidDeviceOwnerTrustedRootCertificate Android Device Owner Trusted Root Certificate configuration profile
+type AndroidDeviceOwnerTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of AndroidDeviceOwnerTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
+
+// AndroidDeviceOwnerVPNConfiguration By providing the configurations in this profile you can instruct the Android Fully Managed device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type AndroidDeviceOwnerVPNConfiguration struct {
+ // VPNConfiguration is the base model of AndroidDeviceOwnerVPNConfiguration
+ VPNConfiguration
+ // ConnectionType Connection type.
+ ConnectionType *AndroidVPNConnectionType `json:"connectionType,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidDeviceOwnerCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
+
+// AndroidDeviceOwnerWiFiConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type AndroidDeviceOwnerWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidDeviceOwnerWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *AndroidDeviceOwnerWiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+ // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network.
+ PreSharedKey *string `json:"preSharedKey,omitempty"`
+ // PreSharedKeyIsSet This is the pre-shared key for WPA Personal Wi-Fi network.
+ PreSharedKeyIsSet *bool `json:"preSharedKeyIsSet,omitempty"`
+}
+
+// AndroidEasEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client on KNOX devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidEasEmailProfileConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidEasEmailProfileConfiguration
+ DeviceConfiguration
+ // AccountName Exchange ActiveSync account name, displayed to users as name of EAS (this) profile.
+ AccountName *string `json:"accountName,omitempty"`
+ // AuthenticationMethod Authentication method for Exchange ActiveSync.
+ AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // SyncCalendar Toggles syncing the calendar. If set to false calendar is turned off on the device.
+ SyncCalendar *bool `json:"syncCalendar,omitempty"`
+ // SyncContacts Toggles syncing contacts. If set to false contacts are turned off on the device.
+ SyncContacts *bool `json:"syncContacts,omitempty"`
+ // SyncTasks Toggles syncing tasks. If set to false tasks are turned off on the device.
+ SyncTasks *bool `json:"syncTasks,omitempty"`
+ // SyncNotes Toggles syncing notes. If set to false notes are turned off on the device.
+ SyncNotes *bool `json:"syncNotes,omitempty"`
+ // DurationOfEmailToSync Duration of time email should be synced to.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // EmailSyncSchedule Email sync schedule.
+ EmailSyncSchedule *EmailSyncSchedule `json:"emailSyncSchedule,omitempty"`
+ // HostName Exchange location (URL) that the native mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSmime Indicates whether or not to use S/MIME certificate.
+ RequireSmime *bool `json:"requireSmime,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+ // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device.
+ UsernameSource *AndroidUsernameSource `json:"usernameSource,omitempty"`
+ // UserDomainNameSource UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device.
+ UserDomainNameSource *DomainNameSource `json:"userDomainNameSource,omitempty"`
+ // CustomDomainName Custom domain name value used while generating an email profile before installing on the device.
+ CustomDomainName *string `json:"customDomainName,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidCertificateProfileBase `json:"identityCertificate,omitempty"`
+ // SmimeSigningCertificate undocumented
+ SmimeSigningCertificate *AndroidCertificateProfileBase `json:"smimeSigningCertificate,omitempty"`
+}
+
+// AndroidEnrollmentCompanyCode undocumented
+type AndroidEnrollmentCompanyCode struct {
+ // Object is the base model of AndroidEnrollmentCompanyCode
+ Object
+ // EnrollmentToken Enrollment Token used by the User to enroll their device.
+ EnrollmentToken *string `json:"enrollmentToken,omitempty"`
+ // QrCodeContent String used to generate a QR code for the token.
+ QrCodeContent *string `json:"qrCodeContent,omitempty"`
+ // QrCodeImage Generated QR code for the token.
+ QrCodeImage *MimeContent `json:"qrCodeImage,omitempty"`
+}
+
+// AndroidEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type AndroidEnterpriseWiFiConfiguration struct {
+ // AndroidWiFiConfiguration is the base model of AndroidEnterpriseWiFiConfiguration
+ AndroidWiFiConfiguration
+ // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *AndroidEapType `json:"eapType,omitempty"`
+ // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // UsernameFormatString Username format string used to build the username to connect to wifi
+ UsernameFormatString *string `json:"usernameFormatString,omitempty"`
+ // PasswordFormatString Password format string used to build the password to connect to wifi
+ PasswordFormatString *string `json:"passwordFormatString,omitempty"`
+ // PreSharedKey PreSharedKey used to build the password to connect to wifi
+ PreSharedKey *string `json:"preSharedKey,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *AndroidTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *AndroidCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
+
+// AndroidForWorkApp Contains properties and inherited properties for Android for Work (AFW) Apps.
+type AndroidForWorkApp struct {
+ // MobileApp is the base model of AndroidForWorkApp
+ MobileApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // AppIdentifier The Identity Name.
+ AppIdentifier *string `json:"appIdentifier,omitempty"`
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of VPP licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // AppStoreURL The Play for Work Store app URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+}
+
+// AndroidForWorkAppConfigurationSchema Schema describing an Android for Work application's custom configurations.
+type AndroidForWorkAppConfigurationSchema struct {
+ // Entity is the base model of AndroidForWorkAppConfigurationSchema
+ Entity
+ // ExampleJSON UTF8 encoded byte array containing example JSON string conforming to this schema that demonstrates how to set the configuration for this app
+ ExampleJSON *Binary `json:"exampleJson,omitempty"`
+ // SchemaItems Collection of items each representing a named configuration option in the schema
+ SchemaItems []AndroidForWorkAppConfigurationSchemaItem `json:"schemaItems,omitempty"`
+}
+
+// AndroidForWorkAppConfigurationSchemaItem undocumented
+type AndroidForWorkAppConfigurationSchemaItem struct {
+ // Object is the base model of AndroidForWorkAppConfigurationSchemaItem
+ Object
+ // SchemaItemKey Unique key the application uses to identify the item
+ SchemaItemKey *string `json:"schemaItemKey,omitempty"`
+ // DisplayName Human readable name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of what the item controls within the application
+ Description *string `json:"description,omitempty"`
+ // DefaultBoolValue Default value for boolean type items, if specified by the app developer
+ DefaultBoolValue *bool `json:"defaultBoolValue,omitempty"`
+ // DefaultIntValue Default value for integer type items, if specified by the app developer
+ DefaultIntValue *int `json:"defaultIntValue,omitempty"`
+ // DefaultStringValue Default value for string type items, if specified by the app developer
+ DefaultStringValue *string `json:"defaultStringValue,omitempty"`
+ // DefaultStringArrayValue Default value for string array type items, if specified by the app developer
+ DefaultStringArrayValue []string `json:"defaultStringArrayValue,omitempty"`
+ // DataType The type of value this item describes
+ DataType *AndroidForWorkAppConfigurationSchemaItemDataType `json:"dataType,omitempty"`
+ // Selections List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only)
+ Selections []KeyValuePair `json:"selections,omitempty"`
+}
+
+// AndroidForWorkCertificateProfileBase Android For Work certificate profile base.
+type AndroidForWorkCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidForWorkCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *AndroidForWorkTrustedRootCertificate `json:"rootCertificate,omitempty"`
+}
+
+// AndroidForWorkCompliancePolicy This class contains compliance settings for Android for Work.
+type AndroidForWorkCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of AndroidForWorkCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordRequiredType Type of characters in password
+ PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources.
+ SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"`
+ // SecurityDisableUsbDebugging Disable USB debugging on Android devices.
+ SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted.
+ SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"`
+ // OsMinimumVersion Minimum Android version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Android version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MinAndroidSecurityPatchLevel Minimum Android security patch level.
+ MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"`
+ // StorageRequireEncryption Require encryption on Android devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check.
+ SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"`
+ // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check.
+ SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"`
+ // SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device.
+ SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"`
+ // SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
+ SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"`
+ // SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check.
+ SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"`
+}
+
+// AndroidForWorkCustomConfiguration Android For Work custom configuration
+type AndroidForWorkCustomConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidForWorkCustomConfiguration
+ DeviceConfiguration
+ // OMASettings OMA settings. This collection can contain a maximum of 500 elements.
+ OMASettings []OMASetting `json:"omaSettings,omitempty"`
+}
+
+// AndroidForWorkEasEmailProfileBase Base for Android For Work EAS Email profiles
+type AndroidForWorkEasEmailProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidForWorkEasEmailProfileBase
+ DeviceConfiguration
+ // AuthenticationMethod Authentication method for Exchange ActiveSync.
+ AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // DurationOfEmailToSync Duration of time email should be synced to.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // HostName Exchange location (URL) that the mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+ // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device.
+ UsernameSource *AndroidUsernameSource `json:"usernameSource,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidForWorkCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
+
+// AndroidForWorkEnrollmentProfile Enrollment Profile used to enroll COSU devices using Google's Cloud Management.
+type AndroidForWorkEnrollmentProfile struct {
+ // Entity is the base model of AndroidForWorkEnrollmentProfile
+ Entity
+ // AccountID Tenant GUID the enrollment profile belongs to.
+ AccountID *string `json:"accountId,omitempty"`
+ // DisplayName Display name for the enrollment profile.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description for the enrollment profile.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime Date time the enrollment profile was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Date time the enrollment profile was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // TokenValue Value of the most recently created token for this enrollment profile.
+ TokenValue *string `json:"tokenValue,omitempty"`
+ // TokenExpirationDateTime Date time the most recently created token will expire.
+ TokenExpirationDateTime *time.Time `json:"tokenExpirationDateTime,omitempty"`
+ // EnrolledDeviceCount Total number of Android devices that have enrolled using this enrollment profile.
+ EnrolledDeviceCount *int `json:"enrolledDeviceCount,omitempty"`
+ // QrCodeContent String used to generate a QR code for the token.
+ QrCodeContent *string `json:"qrCodeContent,omitempty"`
+ // QrCodeImage String used to generate a QR code for the token.
+ QrCodeImage *MimeContent `json:"qrCodeImage,omitempty"`
+}
+
+// AndroidForWorkEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android for Work device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type AndroidForWorkEnterpriseWiFiConfiguration struct {
+ // AndroidForWorkWiFiConfiguration is the base model of AndroidForWorkEnterpriseWiFiConfiguration
+ AndroidForWorkWiFiConfiguration
+ // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *AndroidEapType `json:"eapType,omitempty"`
+ // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *AndroidForWorkTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *AndroidForWorkCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
+
+// AndroidForWorkGeneralDeviceConfiguration Android For Work general device configuration.
+type AndroidForWorkGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidForWorkGeneralDeviceConfiguration
+ DeviceConfiguration
+ // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"`
+ // PasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents.
+ PasswordBlockTrustAgents *bool `json:"passwordBlockTrustAgents,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PasswordRequiredType Type of password that is required.
+ PasswordRequiredType *AndroidForWorkRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // WorkProfileDataSharingType Type of data sharing that is allowed.
+ WorkProfileDataSharingType *AndroidForWorkCrossProfileDataSharingType `json:"workProfileDataSharingType,omitempty"`
+ // WorkProfileBlockNotificationsWhileDeviceLocked Indicates whether or not to block notifications while device locked.
+ WorkProfileBlockNotificationsWhileDeviceLocked *bool `json:"workProfileBlockNotificationsWhileDeviceLocked,omitempty"`
+ // WorkProfileBlockAddingAccounts Block users from adding/removing accounts in work profile.
+ WorkProfileBlockAddingAccounts *bool `json:"workProfileBlockAddingAccounts,omitempty"`
+ // WorkProfileBluetoothEnableContactSharing Allow bluetooth devices to access enterprise contacts.
+ WorkProfileBluetoothEnableContactSharing *bool `json:"workProfileBluetoothEnableContactSharing,omitempty"`
+ // WorkProfileBlockScreenCapture Block screen capture in work profile.
+ WorkProfileBlockScreenCapture *bool `json:"workProfileBlockScreenCapture,omitempty"`
+ // WorkProfileBlockCrossProfileCallerID Block display work profile caller ID in personal profile.
+ WorkProfileBlockCrossProfileCallerID *bool `json:"workProfileBlockCrossProfileCallerId,omitempty"`
+ // WorkProfileBlockCamera Block work profile camera.
+ WorkProfileBlockCamera *bool `json:"workProfileBlockCamera,omitempty"`
+ // WorkProfileBlockCrossProfileContactsSearch Block work profile contacts availability in personal profile.
+ WorkProfileBlockCrossProfileContactsSearch *bool `json:"workProfileBlockCrossProfileContactsSearch,omitempty"`
+ // WorkProfileBlockCrossProfileCopyPaste Boolean that indicates if the setting disallow cross profile copy/paste is enabled.
+ WorkProfileBlockCrossProfileCopyPaste *bool `json:"workProfileBlockCrossProfileCopyPaste,omitempty"`
+ // WorkProfileDefaultAppPermissionPolicy Type of password that is required.
+ WorkProfileDefaultAppPermissionPolicy *AndroidForWorkDefaultAppPermissionPolicyType `json:"workProfileDefaultAppPermissionPolicy,omitempty"`
+ // WorkProfilePasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock for work profile.
+ WorkProfilePasswordBlockFingerprintUnlock *bool `json:"workProfilePasswordBlockFingerprintUnlock,omitempty"`
+ // WorkProfilePasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents for work profile.
+ WorkProfilePasswordBlockTrustAgents *bool `json:"workProfilePasswordBlockTrustAgents,omitempty"`
+ // WorkProfilePasswordExpirationDays Number of days before the work profile password expires. Valid values 1 to 365
+ WorkProfilePasswordExpirationDays *int `json:"workProfilePasswordExpirationDays,omitempty"`
+ // WorkProfilePasswordMinimumLength Minimum length of work profile password. Valid values 4 to 16
+ WorkProfilePasswordMinimumLength *int `json:"workProfilePasswordMinimumLength,omitempty"`
+ // WorkProfilePasswordMinNumericCharacters Minimum # of numeric characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinNumericCharacters *int `json:"workProfilePasswordMinNumericCharacters,omitempty"`
+ // WorkProfilePasswordMinNonLetterCharacters Minimum # of non-letter characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinNonLetterCharacters *int `json:"workProfilePasswordMinNonLetterCharacters,omitempty"`
+ // WorkProfilePasswordMinLetterCharacters Minimum # of letter characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinLetterCharacters *int `json:"workProfilePasswordMinLetterCharacters,omitempty"`
+ // WorkProfilePasswordMinLowerCaseCharacters Minimum # of lower-case characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinLowerCaseCharacters *int `json:"workProfilePasswordMinLowerCaseCharacters,omitempty"`
+ // WorkProfilePasswordMinUpperCaseCharacters Minimum # of upper-case characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinUpperCaseCharacters *int `json:"workProfilePasswordMinUpperCaseCharacters,omitempty"`
+ // WorkProfilePasswordMinSymbolCharacters Minimum # of symbols required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinSymbolCharacters *int `json:"workProfilePasswordMinSymbolCharacters,omitempty"`
+ // WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"workProfilePasswordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // WorkProfilePasswordPreviousPasswordBlockCount Number of previous work profile passwords to block. Valid values 0 to 24
+ WorkProfilePasswordPreviousPasswordBlockCount *int `json:"workProfilePasswordPreviousPasswordBlockCount,omitempty"`
+ // WorkProfilePasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 1 to 16
+ WorkProfilePasswordSignInFailureCountBeforeFactoryReset *int `json:"workProfilePasswordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // WorkProfilePasswordRequiredType Type of work profile password that is required.
+ WorkProfilePasswordRequiredType *AndroidForWorkRequiredPasswordType `json:"workProfilePasswordRequiredType,omitempty"`
+ // WorkProfileRequirePassword Password is required or not for work profile
+ WorkProfileRequirePassword *bool `json:"workProfileRequirePassword,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // VPNAlwaysOnPackageIdentifier Enable lockdown mode for always-on VPN.
+ VPNAlwaysOnPackageIdentifier *string `json:"vpnAlwaysOnPackageIdentifier,omitempty"`
+ // VPNEnableAlwaysOnLockdownMode Enable lockdown mode for always-on VPN.
+ VPNEnableAlwaysOnLockdownMode *bool `json:"vpnEnableAlwaysOnLockdownMode,omitempty"`
+ // WorkProfileAllowWidgets Allow widgets from work profile apps.
+ WorkProfileAllowWidgets *bool `json:"workProfileAllowWidgets,omitempty"`
+ // WorkProfileBlockPersonalAppInstallsFromUnknownSources Prevent app installations from unknown sources in the personal profile.
+ WorkProfileBlockPersonalAppInstallsFromUnknownSources *bool `json:"workProfileBlockPersonalAppInstallsFromUnknownSources,omitempty"`
+}
+
+// AndroidForWorkGmailEasConfiguration By providing configurations in this profile you can instruct the Gmail email client on Android For Work devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidForWorkGmailEasConfiguration struct {
+ // AndroidForWorkEasEmailProfileBase is the base model of AndroidForWorkGmailEasConfiguration
+ AndroidForWorkEasEmailProfileBase
+}
+
+// AndroidForWorkImportedPFXCertificateProfile Android For Work PFX Import certificate profile
+type AndroidForWorkImportedPFXCertificateProfile struct {
+ // AndroidCertificateProfileBase is the base model of AndroidForWorkImportedPFXCertificateProfile
+ AndroidCertificateProfileBase
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// AndroidForWorkMobileAppConfiguration Contains properties, inherited properties and actions for AFW mobile app configurations.
+type AndroidForWorkMobileAppConfiguration struct {
+ // ManagedDeviceMobileAppConfiguration is the base model of AndroidForWorkMobileAppConfiguration
+ ManagedDeviceMobileAppConfiguration
+ // PackageID Android For Work app configuration package id.
+ PackageID *string `json:"packageId,omitempty"`
+ // PayloadJSON Android For Work app configuration JSON payload.
+ PayloadJSON *string `json:"payloadJson,omitempty"`
+ // PermissionActions List of Android app permissions and corresponding permission actions.
+ PermissionActions []AndroidPermissionAction `json:"permissionActions,omitempty"`
+}
+
+// AndroidForWorkNineWorkEasConfiguration By providing configurations in this profile you can instruct the Nine Work email client on Android For Work devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidForWorkNineWorkEasConfiguration struct {
+ // AndroidForWorkEasEmailProfileBase is the base model of AndroidForWorkNineWorkEasConfiguration
+ AndroidForWorkEasEmailProfileBase
+ // SyncCalendar Toggles syncing the calendar. If set to false the calendar is turned off on the device.
+ SyncCalendar *bool `json:"syncCalendar,omitempty"`
+ // SyncContacts Toggles syncing contacts. If set to false contacts are turned off on the device.
+ SyncContacts *bool `json:"syncContacts,omitempty"`
+ // SyncTasks Toggles syncing tasks. If set to false tasks are turned off on the device.
+ SyncTasks *bool `json:"syncTasks,omitempty"`
+}
+
+// AndroidForWorkPkcsCertificateProfile Android For Work PKCS certificate profile
+type AndroidForWorkPkcsCertificateProfile struct {
+ // AndroidForWorkCertificateProfileBase is the base model of AndroidForWorkPkcsCertificateProfile
+ AndroidForWorkCertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// AndroidForWorkScepCertificateProfile Android For Work SCEP certificate profile
+type AndroidForWorkScepCertificateProfile struct {
+ // AndroidForWorkCertificateProfileBase is the base model of AndroidForWorkScepCertificateProfile
+ AndroidForWorkCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s)
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// AndroidForWorkSettings Settings for Android For Work.
+type AndroidForWorkSettings struct {
+ // Entity is the base model of AndroidForWorkSettings
+ Entity
+ // BindStatus Bind status of the tenant with the Google EMM API
+ BindStatus *AndroidForWorkBindStatus `json:"bindStatus,omitempty"`
+ // LastAppSyncDateTime Last completion time for app sync
+ LastAppSyncDateTime *time.Time `json:"lastAppSyncDateTime,omitempty"`
+ // LastAppSyncStatus Last application sync result
+ LastAppSyncStatus *AndroidForWorkSyncStatus `json:"lastAppSyncStatus,omitempty"`
+ // OwnerUserPrincipalName Owner UPN that created the enterprise
+ OwnerUserPrincipalName *string `json:"ownerUserPrincipalName,omitempty"`
+ // OwnerOrganizationName Organization name used when onboarding Android for Work
+ OwnerOrganizationName *string `json:"ownerOrganizationName,omitempty"`
+ // LastModifiedDateTime Last modification time for Android for Work settings
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // EnrollmentTarget Indicates which users can enroll devices in Android for Work device management
+ EnrollmentTarget *AndroidForWorkEnrollmentTarget `json:"enrollmentTarget,omitempty"`
+ // TargetGroupIDs Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'
+ TargetGroupIDs []string `json:"targetGroupIds,omitempty"`
+ // DeviceOwnerManagementEnabled Indicates if this account is flighting for Android Device Owner Management with CloudDPC.
+ DeviceOwnerManagementEnabled *bool `json:"deviceOwnerManagementEnabled,omitempty"`
+}
+
+// AndroidForWorkTrustedRootCertificate Android For Work Trusted Root Certificate configuration profile
+type AndroidForWorkTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of AndroidForWorkTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
+
+// AndroidForWorkVPNConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type AndroidForWorkVPNConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidForWorkVPNConfiguration
+ DeviceConfiguration
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *AndroidForWorkVPNConnectionType `json:"connectionType,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
+ Servers []VPNServer `json:"servers,omitempty"`
+ // Fingerprint Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.
+ Fingerprint *string `json:"fingerprint,omitempty"`
+ // CustomData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomData []KeyValue `json:"customData,omitempty"`
+ // CustomKeyValueData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"`
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidForWorkCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
+
+// AndroidForWorkWiFiConfiguration By providing the configurations in this profile you can instruct the Android for Work device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type AndroidForWorkWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidForWorkWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *AndroidWiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+}
+
+// AndroidGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the androidGeneralDeviceConfiguration resource.
+type AndroidGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidGeneralDeviceConfiguration
+ DeviceConfiguration
+ // AppsBlockClipboardSharing Indicates whether or not to block clipboard sharing to copy and paste between applications.
+ AppsBlockClipboardSharing *bool `json:"appsBlockClipboardSharing,omitempty"`
+ // AppsBlockCopyPaste Indicates whether or not to block copy and paste within applications.
+ AppsBlockCopyPaste *bool `json:"appsBlockCopyPaste,omitempty"`
+ // AppsBlockYouTube Indicates whether or not to block the YouTube app.
+ AppsBlockYouTube *bool `json:"appsBlockYouTube,omitempty"`
+ // BluetoothBlocked Indicates whether or not to block Bluetooth.
+ BluetoothBlocked *bool `json:"bluetoothBlocked,omitempty"`
+ // CameraBlocked Indicates whether or not to block the use of the camera.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // CellularBlockDataRoaming Indicates whether or not to block data roaming.
+ CellularBlockDataRoaming *bool `json:"cellularBlockDataRoaming,omitempty"`
+ // CellularBlockMessaging Indicates whether or not to block SMS/MMS messaging.
+ CellularBlockMessaging *bool `json:"cellularBlockMessaging,omitempty"`
+ // CellularBlockVoiceRoaming Indicates whether or not to block voice roaming.
+ CellularBlockVoiceRoaming *bool `json:"cellularBlockVoiceRoaming,omitempty"`
+ // CellularBlockWiFiTethering Indicates whether or not to block syncing Wi-Fi tethering.
+ CellularBlockWiFiTethering *bool `json:"cellularBlockWiFiTethering,omitempty"`
+ // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.
+ CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"`
+ // CompliantAppListType Type of list that is in the CompliantAppsList.
+ CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"`
+ // DiagnosticDataBlockSubmission Indicates whether or not to block diagnostic data submission.
+ DiagnosticDataBlockSubmission *bool `json:"diagnosticDataBlockSubmission,omitempty"`
+ // LocationServicesBlocked Indicates whether or not to block location services.
+ LocationServicesBlocked *bool `json:"locationServicesBlocked,omitempty"`
+ // GoogleAccountBlockAutoSync Indicates whether or not to block Google account auto sync.
+ GoogleAccountBlockAutoSync *bool `json:"googleAccountBlockAutoSync,omitempty"`
+ // GooglePlayStoreBlocked Indicates whether or not to block the Google Play store.
+ GooglePlayStoreBlocked *bool `json:"googlePlayStoreBlocked,omitempty"`
+ // KioskModeBlockSleepButton Indicates whether or not to block the screen sleep button while in Kiosk Mode.
+ KioskModeBlockSleepButton *bool `json:"kioskModeBlockSleepButton,omitempty"`
+ // KioskModeBlockVolumeButtons Indicates whether or not to block the volume buttons while in Kiosk Mode.
+ KioskModeBlockVolumeButtons *bool `json:"kioskModeBlockVolumeButtons,omitempty"`
+ // DateAndTimeBlockChanges Indicates whether or not to block changing date and time while in KNOX Mode.
+ DateAndTimeBlockChanges *bool `json:"dateAndTimeBlockChanges,omitempty"`
+ // KioskModeApps A list of apps that will be allowed to run when the device is in Kiosk Mode. This collection can contain a maximum of 500 elements.
+ KioskModeApps []AppListItem `json:"kioskModeApps,omitempty"`
+ // NfcBlocked Indicates whether or not to block Near-Field Communication.
+ NfcBlocked *bool `json:"nfcBlocked,omitempty"`
+ // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"`
+ // PasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents.
+ PasswordBlockTrustAgents *bool `json:"passwordBlockTrustAgents,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PasswordRequiredType Type of password that is required.
+ PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordRequired Indicates whether or not to require a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PowerOffBlocked Indicates whether or not to block powering off the device.
+ PowerOffBlocked *bool `json:"powerOffBlocked,omitempty"`
+ // FactoryResetBlocked Indicates whether or not to block user performing a factory reset.
+ FactoryResetBlocked *bool `json:"factoryResetBlocked,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to block screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // DeviceSharingAllowed Indicates whether or not to allow device sharing mode.
+ DeviceSharingAllowed *bool `json:"deviceSharingAllowed,omitempty"`
+ // StorageBlockGoogleBackup Indicates whether or not to block Google Backup.
+ StorageBlockGoogleBackup *bool `json:"storageBlockGoogleBackup,omitempty"`
+ // StorageBlockRemovableStorage Indicates whether or not to block removable storage usage.
+ StorageBlockRemovableStorage *bool `json:"storageBlockRemovableStorage,omitempty"`
+ // StorageRequireDeviceEncryption Indicates whether or not to require device encryption.
+ StorageRequireDeviceEncryption *bool `json:"storageRequireDeviceEncryption,omitempty"`
+ // StorageRequireRemovableStorageEncryption Indicates whether or not to require removable storage encryption.
+ StorageRequireRemovableStorageEncryption *bool `json:"storageRequireRemovableStorageEncryption,omitempty"`
+ // VoiceAssistantBlocked Indicates whether or not to block the use of the Voice Assistant.
+ VoiceAssistantBlocked *bool `json:"voiceAssistantBlocked,omitempty"`
+ // VoiceDialingBlocked Indicates whether or not to block voice dialing.
+ VoiceDialingBlocked *bool `json:"voiceDialingBlocked,omitempty"`
+ // WebBrowserBlockPopups Indicates whether or not to block popups within the web browser.
+ WebBrowserBlockPopups *bool `json:"webBrowserBlockPopups,omitempty"`
+ // WebBrowserBlockAutofill Indicates whether or not to block the web browser's auto fill feature.
+ WebBrowserBlockAutofill *bool `json:"webBrowserBlockAutofill,omitempty"`
+ // WebBrowserBlockJavaScript Indicates whether or not to block JavaScript within the web browser.
+ WebBrowserBlockJavaScript *bool `json:"webBrowserBlockJavaScript,omitempty"`
+ // WebBrowserBlocked Indicates whether or not to block the web browser.
+ WebBrowserBlocked *bool `json:"webBrowserBlocked,omitempty"`
+ // WebBrowserCookieSettings Cookie settings within the web browser.
+ WebBrowserCookieSettings *WebBrowserCookieSettings `json:"webBrowserCookieSettings,omitempty"`
+ // WiFiBlocked Indicates whether or not to block syncing Wi-Fi.
+ WiFiBlocked *bool `json:"wiFiBlocked,omitempty"`
+ // AppsInstallAllowList List of apps which can be installed on the KNOX device. This collection can contain a maximum of 500 elements.
+ AppsInstallAllowList []AppListItem `json:"appsInstallAllowList,omitempty"`
+ // AppsLaunchBlockList List of apps which are blocked from being launched on the KNOX device. This collection can contain a maximum of 500 elements.
+ AppsLaunchBlockList []AppListItem `json:"appsLaunchBlockList,omitempty"`
+ // AppsHideList List of apps to be hidden on the KNOX device. This collection can contain a maximum of 500 elements.
+ AppsHideList []AppListItem `json:"appsHideList,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+}
+
+// AndroidImportedPFXCertificateProfile Android PFX Import certificate profile
+type AndroidImportedPFXCertificateProfile struct {
+ // AndroidCertificateProfileBase is the base model of AndroidImportedPFXCertificateProfile
+ AndroidCertificateProfileBase
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// AndroidLobApp Contains properties and inherited properties for Android Line Of Business apps.
+type AndroidLobApp struct {
+ // MobileLobApp is the base model of AndroidLobApp
+ MobileLobApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // IdentityName The Identity Name.
+ IdentityName *string `json:"identityName,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // VersionName The version name of Android Line of Business (LoB) app.
+ VersionName *string `json:"versionName,omitempty"`
+ // VersionCode The version code of Android Line of Business (LoB) app.
+ VersionCode *string `json:"versionCode,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
+
+// AndroidManagedAppProtection Policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an Android device
+type AndroidManagedAppProtection struct {
+ // TargetedManagedAppProtection is the base model of AndroidManagedAppProtection
+ TargetedManagedAppProtection
+ // ScreenCaptureBlocked Indicates whether a managed user can take screen captures of managed apps
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // DisableAppEncryptionIfDeviceEncryptionIsEnabled When this setting is enabled, app level encryption is disabled if device level encryption is enabled
+ DisableAppEncryptionIfDeviceEncryptionIsEnabled *bool `json:"disableAppEncryptionIfDeviceEncryptionIsEnabled,omitempty"`
+ // EncryptAppData Indicates whether application data for managed apps should be encrypted
+ EncryptAppData *bool `json:"encryptAppData,omitempty"`
+ // DeployedAppCount Count of apps to which the current policy is deployed.
+ DeployedAppCount *int `json:"deployedAppCount,omitempty"`
+ // MinimumRequiredPatchVersion Define the oldest required Android security patch level a user can have to gain secure access to the app.
+ MinimumRequiredPatchVersion *string `json:"minimumRequiredPatchVersion,omitempty"`
+ // MinimumWarningPatchVersion Define the oldest recommended Android security patch level a user can have for secure access to the app.
+ MinimumWarningPatchVersion *string `json:"minimumWarningPatchVersion,omitempty"`
+ // ExemptedAppPackages App packages in this list will be exempt from the policy and will be able to receive data from managed apps.
+ ExemptedAppPackages []KeyValuePair `json:"exemptedAppPackages,omitempty"`
+ // MinimumWipePatchVersion Android security patch level less than or equal to the specified value will wipe the managed app and the associated company data.
+ MinimumWipePatchVersion *string `json:"minimumWipePatchVersion,omitempty"`
+ // AllowedAndroidDeviceManufacturers Semicolon seperated list of device manufacturers allowed, as a string, for the managed app to work.
+ AllowedAndroidDeviceManufacturers *string `json:"allowedAndroidDeviceManufacturers,omitempty"`
+ // AppActionIfAndroidDeviceManufacturerNotAllowed Defines a managed app behavior, either block or wipe, if the specified device manufacturer is not allowed.
+ AppActionIfAndroidDeviceManufacturerNotAllowed *ManagedAppRemediationAction `json:"appActionIfAndroidDeviceManufacturerNotAllowed,omitempty"`
+ // RequiredAndroidSafetyNetDeviceAttestationType Defines the Android SafetyNet Device Attestation requirement for a managed app to work.
+ RequiredAndroidSafetyNetDeviceAttestationType *AndroidManagedAppSafetyNetDeviceAttestationType `json:"requiredAndroidSafetyNetDeviceAttestationType,omitempty"`
+ // AppActionIfAndroidSafetyNetDeviceAttestationFailed Defines a managed app behavior, either warn or block, if the specified Android SafetyNet Attestation requirment fails.
+ AppActionIfAndroidSafetyNetDeviceAttestationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetDeviceAttestationFailed,omitempty"`
+ // RequiredAndroidSafetyNetAppsVerificationType Defines the Android SafetyNet Apps Verification requirement for a managed app to work.
+ RequiredAndroidSafetyNetAppsVerificationType *AndroidManagedAppSafetyNetAppsVerificationType `json:"requiredAndroidSafetyNetAppsVerificationType,omitempty"`
+ // AppActionIfAndroidSafetyNetAppsVerificationFailed Defines a managed app behavior, either warn or block, if the specified Android App Verification requirment fails.
+ AppActionIfAndroidSafetyNetAppsVerificationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetAppsVerificationFailed,omitempty"`
+ // CustomBrowserPackageID Unique identifier of a custom browser to open weblink on Android.
+ CustomBrowserPackageID *string `json:"customBrowserPackageId,omitempty"`
+ // CustomBrowserDisplayName Friendly name of the preferred custom browser to open weblink on Android.
+ CustomBrowserDisplayName *string `json:"customBrowserDisplayName,omitempty"`
+ // MinimumRequiredCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or app access will be blocked
+ MinimumRequiredCompanyPortalVersion *string `json:"minimumRequiredCompanyPortalVersion,omitempty"`
+ // MinimumWarningCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the user will receive a warning
+ MinimumWarningCompanyPortalVersion *string `json:"minimumWarningCompanyPortalVersion,omitempty"`
+ // MinimumWipeCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the company data on the app will be wiped
+ MinimumWipeCompanyPortalVersion *string `json:"minimumWipeCompanyPortalVersion,omitempty"`
+ // KeyboardsRestricted Indicates if keyboard restriction is enabled. If enabled list of approved keyboards must be provided as well.
+ KeyboardsRestricted *bool `json:"keyboardsRestricted,omitempty"`
+ // ApprovedKeyboards If Keyboard Restriction is enabled, only keyboards in this approved list will be allowed. A key should be Android package id for a keyboard and value should be a friendly name
+ ApprovedKeyboards []KeyValuePair `json:"approvedKeyboards,omitempty"`
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+ // DeploymentSummary undocumented
+ DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"`
+}
+
+// AndroidManagedAppRegistration Represents the synchronization details of an android app, with management capabilities, for a specific user.
+type AndroidManagedAppRegistration struct {
+ // ManagedAppRegistration is the base model of AndroidManagedAppRegistration
+ ManagedAppRegistration
+ // PatchVersion The patch version for the current android app registration
+ PatchVersion *string `json:"patchVersion,omitempty"`
+}
+
+// AndroidManagedStoreAccountEnterpriseSettings Enterprise settings for an Android managed store account.
+type AndroidManagedStoreAccountEnterpriseSettings struct {
+ // Entity is the base model of AndroidManagedStoreAccountEnterpriseSettings
+ Entity
+ // BindStatus Bind status of the tenant with the Google EMM API
+ BindStatus *AndroidManagedStoreAccountBindStatus `json:"bindStatus,omitempty"`
+ // LastAppSyncDateTime Last completion time for app sync
+ LastAppSyncDateTime *time.Time `json:"lastAppSyncDateTime,omitempty"`
+ // LastAppSyncStatus Last application sync result
+ LastAppSyncStatus *AndroidManagedStoreAccountAppSyncStatus `json:"lastAppSyncStatus,omitempty"`
+ // OwnerUserPrincipalName Owner UPN that created the enterprise
+ OwnerUserPrincipalName *string `json:"ownerUserPrincipalName,omitempty"`
+ // OwnerOrganizationName Organization name used when onboarding Android Enterprise
+ OwnerOrganizationName *string `json:"ownerOrganizationName,omitempty"`
+ // LastModifiedDateTime Last modification time for Android enterprise settings
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // EnrollmentTarget Indicates which users can enroll devices in Android Enterprise device management
+ EnrollmentTarget *AndroidManagedStoreAccountEnrollmentTarget `json:"enrollmentTarget,omitempty"`
+ // TargetGroupIDs Specifies which AAD groups can enroll devices in Android for Work device management if enrollmentTarget is set to 'Targeted'
+ TargetGroupIDs []string `json:"targetGroupIds,omitempty"`
+ // DeviceOwnerManagementEnabled Indicates if this account is flighting for Android Device Owner Management with CloudDPC.
+ DeviceOwnerManagementEnabled *bool `json:"deviceOwnerManagementEnabled,omitempty"`
+ // CompanyCodes Company codes for AndroidManagedStoreAccountEnterpriseSettings
+ CompanyCodes []AndroidEnrollmentCompanyCode `json:"companyCodes,omitempty"`
+ // AndroidDeviceOwnerFullyManagedEnrollmentEnabled Company codes for AndroidManagedStoreAccountEnterpriseSettings
+ AndroidDeviceOwnerFullyManagedEnrollmentEnabled *bool `json:"androidDeviceOwnerFullyManagedEnrollmentEnabled,omitempty"`
+}
+
+// AndroidManagedStoreApp Contains properties and inherited properties for Android Managed Store Apps.
+type AndroidManagedStoreApp struct {
+ // MobileApp is the base model of AndroidManagedStoreApp
+ MobileApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // AppIdentifier The Identity Name.
+ AppIdentifier *string `json:"appIdentifier,omitempty"`
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of VPP licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // AppStoreURL The Play for Work Store app URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // IsPrivate Indicates whether the app is only available to a given enterprise's users.
+ IsPrivate *bool `json:"isPrivate,omitempty"`
+ // IsSystemApp Indicates whether the app is a preinstalled system app.
+ IsSystemApp *bool `json:"isSystemApp,omitempty"`
+ // SupportsOemConfig Whether this app supports OEMConfig policy.
+ SupportsOemConfig *bool `json:"supportsOemConfig,omitempty"`
+}
+
+// AndroidManagedStoreAppConfiguration Contains properties, inherited properties and actions for Android Enterprise mobile app configurations.
+type AndroidManagedStoreAppConfiguration struct {
+ // ManagedDeviceMobileAppConfiguration is the base model of AndroidManagedStoreAppConfiguration
+ ManagedDeviceMobileAppConfiguration
+ // PackageID Android Enterprise app configuration package id.
+ PackageID *string `json:"packageId,omitempty"`
+ // PayloadJSON Android Enterprise app configuration JSON payload.
+ PayloadJSON *string `json:"payloadJson,omitempty"`
+ // PermissionActions List of Android app permissions and corresponding permission actions.
+ PermissionActions []AndroidPermissionAction `json:"permissionActions,omitempty"`
+ // AppSupportsOemConfig Whether or not this AppConfig is an OEMConfig policy.
+ AppSupportsOemConfig *bool `json:"appSupportsOemConfig,omitempty"`
+}
+
+// AndroidManagedStoreAppConfigurationSchema Schema describing an Android application's custom configurations.
+type AndroidManagedStoreAppConfigurationSchema struct {
+ // Entity is the base model of AndroidManagedStoreAppConfigurationSchema
+ Entity
+ // ExampleJSON UTF8 encoded byte array containing example JSON string conforming to this schema that demonstrates how to set the configuration for this app
+ ExampleJSON *Binary `json:"exampleJson,omitempty"`
+ // SchemaItems Collection of items each representing a named configuration option in the schema. It only contains the root-level configuration.
+ SchemaItems []AndroidManagedStoreAppConfigurationSchemaItem `json:"schemaItems,omitempty"`
+ // NestedSchemaItems Collection of items each representing a named configuration option in the schema. It contains a flat list of all configuration.
+ NestedSchemaItems []AndroidManagedStoreAppConfigurationSchemaItem `json:"nestedSchemaItems,omitempty"`
+}
+
+// AndroidManagedStoreAppConfigurationSchemaItem undocumented
+type AndroidManagedStoreAppConfigurationSchemaItem struct {
+ // Object is the base model of AndroidManagedStoreAppConfigurationSchemaItem
+ Object
+ // Index Unique index the application uses to maintain nested schema items
+ Index *int `json:"index,omitempty"`
+ // ParentIndex Index of parent schema item to track nested schema items
+ ParentIndex *int `json:"parentIndex,omitempty"`
+ // SchemaItemKey Unique key the application uses to identify the item
+ SchemaItemKey *string `json:"schemaItemKey,omitempty"`
+ // DisplayName Human readable name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of what the item controls within the application
+ Description *string `json:"description,omitempty"`
+ // DefaultBoolValue Default value for boolean type items, if specified by the app developer
+ DefaultBoolValue *bool `json:"defaultBoolValue,omitempty"`
+ // DefaultIntValue Default value for integer type items, if specified by the app developer
+ DefaultIntValue *int `json:"defaultIntValue,omitempty"`
+ // DefaultStringValue Default value for string type items, if specified by the app developer
+ DefaultStringValue *string `json:"defaultStringValue,omitempty"`
+ // DefaultStringArrayValue Default value for string array type items, if specified by the app developer
+ DefaultStringArrayValue []string `json:"defaultStringArrayValue,omitempty"`
+ // DataType The type of value this item describes
+ DataType *AndroidManagedStoreAppConfigurationSchemaItemDataType `json:"dataType,omitempty"`
+ // Selections List of human readable name/value pairs for the valid values that can be set for this item (Choice and Multiselect items only)
+ Selections []KeyValuePair `json:"selections,omitempty"`
+}
+
+// AndroidManagedStoreWebApp Contains properties and inherited properties for web apps configured to be distributed via the managed Android app store.
+type AndroidManagedStoreWebApp struct {
+ // AndroidManagedStoreApp is the base model of AndroidManagedStoreWebApp
+ AndroidManagedStoreApp
+}
+
+// AndroidMinimumOperatingSystem undocumented
+type AndroidMinimumOperatingSystem struct {
+ // Object is the base model of AndroidMinimumOperatingSystem
+ Object
+ // V4_0 Version 4.0 or later.
+ V4_0 *bool `json:"v4_0,omitempty"`
+ // V4_0_3 Version 4.0.3 or later.
+ V4_0_3 *bool `json:"v4_0_3,omitempty"`
+ // V4_1 Version 4.1 or later.
+ V4_1 *bool `json:"v4_1,omitempty"`
+ // V4_2 Version 4.2 or later.
+ V4_2 *bool `json:"v4_2,omitempty"`
+ // V4_3 Version 4.3 or later.
+ V4_3 *bool `json:"v4_3,omitempty"`
+ // V4_4 Version 4.4 or later.
+ V4_4 *bool `json:"v4_4,omitempty"`
+ // V5_0 Version 5.0 or later.
+ V5_0 *bool `json:"v5_0,omitempty"`
+ // V5_1 Version 5.1 or later.
+ V5_1 *bool `json:"v5_1,omitempty"`
+ // V6_0 Version 6.0 or later.
+ V6_0 *bool `json:"v6_0,omitempty"`
+ // V7_0 Version 7.0 or later.
+ V7_0 *bool `json:"v7_0,omitempty"`
+ // V7_1 Version 7.1 or later.
+ V7_1 *bool `json:"v7_1,omitempty"`
+ // V8_0 Version 8.0 or later.
+ V8_0 *bool `json:"v8_0,omitempty"`
+ // V8_1 Version 8.1 or later.
+ V8_1 *bool `json:"v8_1,omitempty"`
+ // V9_0 Version 9.0 or later.
+ V9_0 *bool `json:"v9_0,omitempty"`
+}
+
+// AndroidMobileAppIdentifier undocumented
+type AndroidMobileAppIdentifier struct {
+ // MobileAppIdentifier is the base model of AndroidMobileAppIdentifier
+ MobileAppIdentifier
+ // PackageID The identifier for an app, as specified in the play store.
+ PackageID *string `json:"packageId,omitempty"`
+}
+
+// AndroidOMACpConfiguration By providing a configuration in this profile you can configure Android devices that support OMA-CP.
+type AndroidOMACpConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidOMACpConfiguration
+ DeviceConfiguration
+ // ConfigurationXML Configuration XML that will be applied to the device. When it is read, it only provides a placeholder string since the original data is encrypted and stored.
+ ConfigurationXML *Binary `json:"configurationXml,omitempty"`
+}
+
+// AndroidPermissionAction undocumented
+type AndroidPermissionAction struct {
+ // Object is the base model of AndroidPermissionAction
+ Object
+ // Permission Android permission string, defined in the official Android documentation. Example 'android.permission.READ_CONTACTS'.
+ Permission *string `json:"permission,omitempty"`
+ // Action Type of Android permission action.
+ Action *AndroidPermissionActionType `json:"action,omitempty"`
+}
+
+// AndroidPkcsCertificateProfile Android PKCS certificate profile
+type AndroidPkcsCertificateProfile struct {
+ // AndroidCertificateProfileBase is the base model of AndroidPkcsCertificateProfile
+ AndroidCertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// AndroidScepCertificateProfile Android SCEP certificate profile
+type AndroidScepCertificateProfile struct {
+ // AndroidCertificateProfileBase is the base model of AndroidScepCertificateProfile
+ AndroidCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s)
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// AndroidStoreApp Contains properties and inherited properties for Android store apps.
+type AndroidStoreApp struct {
+ // MobileApp is the base model of AndroidStoreApp
+ MobileApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // AppIdentifier The Identity Name.
+ AppIdentifier *string `json:"appIdentifier,omitempty"`
+ // AppStoreURL The Android app store URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+}
+
+// AndroidTrustedRootCertificate Android Trusted Root Certificate configuration profile
+type AndroidTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of AndroidTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
+
+// AndroidVPNConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type AndroidVPNConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidVPNConfiguration
+ DeviceConfiguration
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *AndroidVPNConnectionType `json:"connectionType,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
+ Servers []VPNServer `json:"servers,omitempty"`
+ // Fingerprint Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.
+ Fingerprint *string `json:"fingerprint,omitempty"`
+ // CustomData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomData []KeyValue `json:"customData,omitempty"`
+ // CustomKeyValueData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"`
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
+
+// AndroidWiFiConfiguration By providing the configurations in this profile you can instruct the Android device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type AndroidWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *AndroidWiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+}
+
+// AndroidWorkProfileCertificateProfileBase Android Work Profile certificate profile base.
+type AndroidWorkProfileCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *AndroidWorkProfileTrustedRootCertificate `json:"rootCertificate,omitempty"`
+}
+
+// AndroidWorkProfileCompliancePolicy This class contains compliance settings for Android Work Profile.
+type AndroidWorkProfileCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of AndroidWorkProfileCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordRequiredType Type of characters in password
+ PasswordRequiredType *AndroidRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign-in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // SecurityPreventInstallAppsFromUnknownSources Require that devices disallow installation of apps from unknown sources.
+ SecurityPreventInstallAppsFromUnknownSources *bool `json:"securityPreventInstallAppsFromUnknownSources,omitempty"`
+ // SecurityDisableUsbDebugging Disable USB debugging on Android devices.
+ SecurityDisableUsbDebugging *bool `json:"securityDisableUsbDebugging,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted.
+ SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"`
+ // OsMinimumVersion Minimum Android version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Android version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MinAndroidSecurityPatchLevel Minimum Android security patch level.
+ MinAndroidSecurityPatchLevel *string `json:"minAndroidSecurityPatchLevel,omitempty"`
+ // StorageRequireEncryption Require encryption on Android devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // SecurityRequireSafetyNetAttestationBasicIntegrity Require the device to pass the SafetyNet basic integrity check.
+ SecurityRequireSafetyNetAttestationBasicIntegrity *bool `json:"securityRequireSafetyNetAttestationBasicIntegrity,omitempty"`
+ // SecurityRequireSafetyNetAttestationCertifiedDevice Require the device to pass the SafetyNet certified device check.
+ SecurityRequireSafetyNetAttestationCertifiedDevice *bool `json:"securityRequireSafetyNetAttestationCertifiedDevice,omitempty"`
+ // SecurityRequireGooglePlayServices Require Google Play Services to be installed and enabled on the device.
+ SecurityRequireGooglePlayServices *bool `json:"securityRequireGooglePlayServices,omitempty"`
+ // SecurityRequireUpToDateSecurityProviders Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
+ SecurityRequireUpToDateSecurityProviders *bool `json:"securityRequireUpToDateSecurityProviders,omitempty"`
+ // SecurityRequireCompanyPortalAppIntegrity Require the device to pass the Company Portal client app runtime integrity check.
+ SecurityRequireCompanyPortalAppIntegrity *bool `json:"securityRequireCompanyPortalAppIntegrity,omitempty"`
+}
+
+// AndroidWorkProfileCustomConfiguration Android Work Profile custom configuration
+type AndroidWorkProfileCustomConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileCustomConfiguration
+ DeviceConfiguration
+ // OMASettings OMA settings. This collection can contain a maximum of 500 elements.
+ OMASettings []OMASetting `json:"omaSettings,omitempty"`
+}
+
+// AndroidWorkProfileEasEmailProfileBase Base for Android Work Profile EAS Email profiles
+type AndroidWorkProfileEasEmailProfileBase struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileEasEmailProfileBase
+ DeviceConfiguration
+ // AuthenticationMethod Authentication method for Exchange ActiveSync.
+ AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // DurationOfEmailToSync Duration of time email should be synced to.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // HostName Exchange location (URL) that the mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+ // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device.
+ UsernameSource *AndroidUsernameSource `json:"usernameSource,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidWorkProfileCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
+
+// AndroidWorkProfileEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type AndroidWorkProfileEnterpriseWiFiConfiguration struct {
+ // AndroidWorkProfileWiFiConfiguration is the base model of AndroidWorkProfileEnterpriseWiFiConfiguration
+ AndroidWorkProfileWiFiConfiguration
+ // EapType Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *AndroidEapType `json:"eapType,omitempty"`
+ // AuthenticationMethod Indicates the Authentication Method the client (device) needs to use when the EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // InnerAuthenticationProtocolForPeap Non-EAP Method for Authentication (Inner Identity) when EAP Type is PEAP and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForPeap *NonEapAuthenticationMethodForPeap `json:"innerAuthenticationProtocolForPeap,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS or PEAP. The String provided here is used to mask the username of individual users when they attempt to connect to Wi-Fi network.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *AndroidWorkProfileTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *AndroidWorkProfileCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
+
+// AndroidWorkProfileGeneralDeviceConfiguration Android Work Profile general device configuration.
+type AndroidWorkProfileGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileGeneralDeviceConfiguration
+ DeviceConfiguration
+ // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"`
+ // PasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents.
+ PasswordBlockTrustAgents *bool `json:"passwordBlockTrustAgents,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 365
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset. Valid values 1 to 16
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PasswordRequiredType Type of password that is required.
+ PasswordRequiredType *AndroidWorkProfileRequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // WorkProfileDataSharingType Type of data sharing that is allowed.
+ WorkProfileDataSharingType *AndroidWorkProfileCrossProfileDataSharingType `json:"workProfileDataSharingType,omitempty"`
+ // WorkProfileBlockNotificationsWhileDeviceLocked Indicates whether or not to block notifications while device locked.
+ WorkProfileBlockNotificationsWhileDeviceLocked *bool `json:"workProfileBlockNotificationsWhileDeviceLocked,omitempty"`
+ // WorkProfileBlockAddingAccounts Block users from adding/removing accounts in work profile.
+ WorkProfileBlockAddingAccounts *bool `json:"workProfileBlockAddingAccounts,omitempty"`
+ // WorkProfileBluetoothEnableContactSharing Allow bluetooth devices to access enterprise contacts.
+ WorkProfileBluetoothEnableContactSharing *bool `json:"workProfileBluetoothEnableContactSharing,omitempty"`
+ // WorkProfileBlockScreenCapture Block screen capture in work profile.
+ WorkProfileBlockScreenCapture *bool `json:"workProfileBlockScreenCapture,omitempty"`
+ // WorkProfileBlockCrossProfileCallerID Block display work profile caller ID in personal profile.
+ WorkProfileBlockCrossProfileCallerID *bool `json:"workProfileBlockCrossProfileCallerId,omitempty"`
+ // WorkProfileBlockCamera Block work profile camera.
+ WorkProfileBlockCamera *bool `json:"workProfileBlockCamera,omitempty"`
+ // WorkProfileBlockCrossProfileContactsSearch Block work profile contacts availability in personal profile.
+ WorkProfileBlockCrossProfileContactsSearch *bool `json:"workProfileBlockCrossProfileContactsSearch,omitempty"`
+ // WorkProfileBlockCrossProfileCopyPaste Boolean that indicates if the setting disallow cross profile copy/paste is enabled.
+ WorkProfileBlockCrossProfileCopyPaste *bool `json:"workProfileBlockCrossProfileCopyPaste,omitempty"`
+ // WorkProfileDefaultAppPermissionPolicy Type of password that is required.
+ WorkProfileDefaultAppPermissionPolicy *AndroidWorkProfileDefaultAppPermissionPolicyType `json:"workProfileDefaultAppPermissionPolicy,omitempty"`
+ // WorkProfilePasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock for work profile.
+ WorkProfilePasswordBlockFingerprintUnlock *bool `json:"workProfilePasswordBlockFingerprintUnlock,omitempty"`
+ // WorkProfilePasswordBlockTrustAgents Indicates whether or not to block Smart Lock and other trust agents for work profile.
+ WorkProfilePasswordBlockTrustAgents *bool `json:"workProfilePasswordBlockTrustAgents,omitempty"`
+ // WorkProfilePasswordExpirationDays Number of days before the work profile password expires. Valid values 1 to 365
+ WorkProfilePasswordExpirationDays *int `json:"workProfilePasswordExpirationDays,omitempty"`
+ // WorkProfilePasswordMinimumLength Minimum length of work profile password. Valid values 4 to 16
+ WorkProfilePasswordMinimumLength *int `json:"workProfilePasswordMinimumLength,omitempty"`
+ // WorkProfilePasswordMinNumericCharacters Minimum # of numeric characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinNumericCharacters *int `json:"workProfilePasswordMinNumericCharacters,omitempty"`
+ // WorkProfilePasswordMinNonLetterCharacters Minimum # of non-letter characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinNonLetterCharacters *int `json:"workProfilePasswordMinNonLetterCharacters,omitempty"`
+ // WorkProfilePasswordMinLetterCharacters Minimum # of letter characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinLetterCharacters *int `json:"workProfilePasswordMinLetterCharacters,omitempty"`
+ // WorkProfilePasswordMinLowerCaseCharacters Minimum # of lower-case characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinLowerCaseCharacters *int `json:"workProfilePasswordMinLowerCaseCharacters,omitempty"`
+ // WorkProfilePasswordMinUpperCaseCharacters Minimum # of upper-case characters required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinUpperCaseCharacters *int `json:"workProfilePasswordMinUpperCaseCharacters,omitempty"`
+ // WorkProfilePasswordMinSymbolCharacters Minimum # of symbols required in work profile password. Valid values 1 to 10
+ WorkProfilePasswordMinSymbolCharacters *int `json:"workProfilePasswordMinSymbolCharacters,omitempty"`
+ // WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ WorkProfilePasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"workProfilePasswordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // WorkProfilePasswordPreviousPasswordBlockCount Number of previous work profile passwords to block. Valid values 0 to 24
+ WorkProfilePasswordPreviousPasswordBlockCount *int `json:"workProfilePasswordPreviousPasswordBlockCount,omitempty"`
+ // WorkProfilePasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 1 to 16
+ WorkProfilePasswordSignInFailureCountBeforeFactoryReset *int `json:"workProfilePasswordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // WorkProfilePasswordRequiredType Type of work profile password that is required.
+ WorkProfilePasswordRequiredType *AndroidWorkProfileRequiredPasswordType `json:"workProfilePasswordRequiredType,omitempty"`
+ // WorkProfileRequirePassword Password is required or not for work profile
+ WorkProfileRequirePassword *bool `json:"workProfileRequirePassword,omitempty"`
+ // SecurityRequireVerifyApps Require the Android Verify apps feature is turned on.
+ SecurityRequireVerifyApps *bool `json:"securityRequireVerifyApps,omitempty"`
+ // VPNAlwaysOnPackageIdentifier Enable lockdown mode for always-on VPN.
+ VPNAlwaysOnPackageIdentifier *string `json:"vpnAlwaysOnPackageIdentifier,omitempty"`
+ // VPNEnableAlwaysOnLockdownMode Enable lockdown mode for always-on VPN.
+ VPNEnableAlwaysOnLockdownMode *bool `json:"vpnEnableAlwaysOnLockdownMode,omitempty"`
+ // WorkProfileAllowWidgets Allow widgets from work profile apps.
+ WorkProfileAllowWidgets *bool `json:"workProfileAllowWidgets,omitempty"`
+ // WorkProfileBlockPersonalAppInstallsFromUnknownSources Prevent app installations from unknown sources in the personal profile.
+ WorkProfileBlockPersonalAppInstallsFromUnknownSources *bool `json:"workProfileBlockPersonalAppInstallsFromUnknownSources,omitempty"`
+}
+
+// AndroidWorkProfileGmailEasConfiguration By providing configurations in this profile you can instruct the Gmail email client on Android Work Profile devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidWorkProfileGmailEasConfiguration struct {
+ // AndroidWorkProfileEasEmailProfileBase is the base model of AndroidWorkProfileGmailEasConfiguration
+ AndroidWorkProfileEasEmailProfileBase
+}
+
+// AndroidWorkProfileNineWorkEasConfiguration By providing configurations in this profile you can instruct the Nine Work email client on Android Work Profile devices to communicate with an Exchange server and get email, contacts, calendar, tasks, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type AndroidWorkProfileNineWorkEasConfiguration struct {
+ // AndroidWorkProfileEasEmailProfileBase is the base model of AndroidWorkProfileNineWorkEasConfiguration
+ AndroidWorkProfileEasEmailProfileBase
+ // SyncCalendar Toggles syncing the calendar. If set to false the calendar is turned off on the device.
+ SyncCalendar *bool `json:"syncCalendar,omitempty"`
+ // SyncContacts Toggles syncing contacts. If set to false contacts are turned off on the device.
+ SyncContacts *bool `json:"syncContacts,omitempty"`
+ // SyncTasks Toggles syncing tasks. If set to false tasks are turned off on the device.
+ SyncTasks *bool `json:"syncTasks,omitempty"`
+}
+
+// AndroidWorkProfilePkcsCertificateProfile Android Work Profile PKCS certificate profile
+type AndroidWorkProfilePkcsCertificateProfile struct {
+ // AndroidWorkProfileCertificateProfileBase is the base model of AndroidWorkProfilePkcsCertificateProfile
+ AndroidWorkProfileCertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// AndroidWorkProfileScepCertificateProfile Android Work Profile SCEP certificate profile
+type AndroidWorkProfileScepCertificateProfile struct {
+ // AndroidWorkProfileCertificateProfileBase is the base model of AndroidWorkProfileScepCertificateProfile
+ AndroidWorkProfileCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s)
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// AndroidWorkProfileTrustedRootCertificate Android Work Profile Trusted Root Certificate configuration profile
+type AndroidWorkProfileTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
+
+// AndroidWorkProfileVPNConfiguration By providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type AndroidWorkProfileVPNConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileVPNConfiguration
+ DeviceConfiguration
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *AndroidWorkProfileVPNConnectionType `json:"connectionType,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
+ Servers []VPNServer `json:"servers,omitempty"`
+ // Fingerprint Fingerprint is a string that will be used to verify the VPN server can be trusted, which is only applicable when connection type is Check Point Capsule VPN.
+ Fingerprint *string `json:"fingerprint,omitempty"`
+ // CustomData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomData []KeyValue `json:"customData,omitempty"`
+ // CustomKeyValueData Custom data when connection type is set to Citrix. This collection can contain a maximum of 25 elements.
+ CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"`
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *AndroidWorkProfileCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
+
+// AndroidWorkProfileWiFiConfiguration By providing the configurations in this profile you can instruct the Android Work Profile device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type AndroidWorkProfileWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of AndroidWorkProfileWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *AndroidWiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAnonymous.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAnonymous.go
new file mode 100644
index 00000000..f79ef65d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAnonymous.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AnonymousIPRiskEvent undocumented
+type AnonymousIPRiskEvent struct {
+ // LocatedRiskEvent is the base model of AnonymousIPRiskEvent
+ LocatedRiskEvent
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelApp.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApp.go
new file mode 100644
index 00000000..affb4575
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApp.go
@@ -0,0 +1,183 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AppCatalogs undocumented
+type AppCatalogs struct {
+ // Entity is the base model of AppCatalogs
+ Entity
+ // TeamsApps undocumented
+ TeamsApps []TeamsApp `json:"teamsApps,omitempty"`
+}
+
+// AppConfigurationSettingItem undocumented
+type AppConfigurationSettingItem struct {
+ // Object is the base model of AppConfigurationSettingItem
+ Object
+ // AppConfigKey app configuration key.
+ AppConfigKey *string `json:"appConfigKey,omitempty"`
+ // AppConfigKeyType app configuration key type.
+ AppConfigKeyType *MDMAppConfigKeyType `json:"appConfigKeyType,omitempty"`
+ // AppConfigKeyValue app configuration key value.
+ AppConfigKeyValue *string `json:"appConfigKeyValue,omitempty"`
+}
+
+// AppHostedMediaConfig undocumented
+type AppHostedMediaConfig struct {
+ // MediaConfig is the base model of AppHostedMediaConfig
+ MediaConfig
+ // Blob undocumented
+ Blob *string `json:"blob,omitempty"`
+}
+
+// AppIdentity undocumented
+type AppIdentity struct {
+ // Object is the base model of AppIdentity
+ Object
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ServicePrincipalID undocumented
+ ServicePrincipalID *string `json:"servicePrincipalId,omitempty"`
+ // ServicePrincipalName undocumented
+ ServicePrincipalName *string `json:"servicePrincipalName,omitempty"`
+}
+
+// AppListItem undocumented
+type AppListItem struct {
+ // Object is the base model of AppListItem
+ Object
+ // Name The application name
+ Name *string `json:"name,omitempty"`
+ // Publisher The publisher of the application
+ Publisher *string `json:"publisher,omitempty"`
+ // AppStoreURL The Store URL of the application
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // AppID The application or bundle identifier of the application
+ AppID *string `json:"appId,omitempty"`
+}
+
+// AppLogCollectionDownloadDetails undocumented
+type AppLogCollectionDownloadDetails struct {
+ // Object is the base model of AppLogCollectionDownloadDetails
+ Object
+ // DownloadURL Download SAS Url for completed AppLogUploadRequest
+ DownloadURL *string `json:"downloadUrl,omitempty"`
+ // DecryptionKey DecryptionKey as string
+ DecryptionKey *string `json:"decryptionKey,omitempty"`
+ // AppLogDecryptionAlgorithm DecryptionAlgorithm for Content
+ AppLogDecryptionAlgorithm *AppLogDecryptionAlgorithm `json:"appLogDecryptionAlgorithm,omitempty"`
+}
+
+// AppLogCollectionRequestObject AppLogCollectionRequest Entity.
+type AppLogCollectionRequestObject struct {
+ // Entity is the base model of AppLogCollectionRequestObject
+ Entity
+ // Status Log upload status
+ Status *AppLogUploadState `json:"status,omitempty"`
+ // ErrorMessage Error message if any during the upload process
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+ // CustomLogFolders List of log folders.
+ CustomLogFolders []string `json:"customLogFolders,omitempty"`
+ // CompletedDateTime Time at which the upload log request reached a terminal state
+ CompletedDateTime *time.Time `json:"completedDateTime,omitempty"`
+}
+
+// AppRole undocumented
+type AppRole struct {
+ // Object is the base model of AppRole
+ Object
+ // AllowedMemberTypes undocumented
+ AllowedMemberTypes []string `json:"allowedMemberTypes,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // Origin undocumented
+ Origin *string `json:"origin,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
+
+// AppRoleAssignment undocumented
+type AppRoleAssignment struct {
+ // Entity is the base model of AppRoleAssignment
+ Entity
+ // AppRoleID undocumented
+ AppRoleID *UUID `json:"appRoleId,omitempty"`
+ // CreationTimestamp undocumented
+ CreationTimestamp *time.Time `json:"creationTimestamp,omitempty"`
+ // PrincipalDisplayName undocumented
+ PrincipalDisplayName *string `json:"principalDisplayName,omitempty"`
+ // PrincipalID undocumented
+ PrincipalID *UUID `json:"principalId,omitempty"`
+ // PrincipalType undocumented
+ PrincipalType *string `json:"principalType,omitempty"`
+ // ResourceDisplayName undocumented
+ ResourceDisplayName *string `json:"resourceDisplayName,omitempty"`
+ // ResourceID undocumented
+ ResourceID *UUID `json:"resourceId,omitempty"`
+}
+
+// AppVulnerabilityManagedDevice An app vulnerability managed device.
+type AppVulnerabilityManagedDevice struct {
+ // Entity is the base model of AppVulnerabilityManagedDevice
+ Entity
+ // ManagedDeviceID The Intune managed device ID.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DisplayName The device name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastSyncDateTime The created date.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+}
+
+// AppVulnerabilityMobileApp An app vulnerability mobile app.
+type AppVulnerabilityMobileApp struct {
+ // Entity is the base model of AppVulnerabilityMobileApp
+ Entity
+ // MobileAppID The Intune mobile app ID.
+ MobileAppID *string `json:"mobileAppId,omitempty"`
+ // DisplayName The device name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedDateTime The created date.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The last modified date.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // MobileAppType The app type.
+ MobileAppType *string `json:"mobileAppType,omitempty"`
+ // Version The app version.
+ Version *string `json:"version,omitempty"`
+}
+
+// AppVulnerabilityTask An app vulnerability task.
+type AppVulnerabilityTask struct {
+ // DeviceAppManagementTask is the base model of AppVulnerabilityTask
+ DeviceAppManagementTask
+ // AppName The app name.
+ AppName *string `json:"appName,omitempty"`
+ // AppPublisher The app publisher.
+ AppPublisher *string `json:"appPublisher,omitempty"`
+ // AppVersion The app version.
+ AppVersion *string `json:"appVersion,omitempty"`
+ // MitigationType The mitigation type.
+ MitigationType *AppVulnerabilityTaskMitigationType `json:"mitigationType,omitempty"`
+ // Insights Information about the mitigation.
+ Insights *string `json:"insights,omitempty"`
+ // ManagedDeviceCount The number of vulnerable devices.
+ ManagedDeviceCount *int `json:"managedDeviceCount,omitempty"`
+ // MobileAppCount The number of vulnerable mobile apps.
+ MobileAppCount *int `json:"mobileAppCount,omitempty"`
+ // Remediation The remediation steps.
+ Remediation *string `json:"remediation,omitempty"`
+ // ManagedDevices undocumented
+ ManagedDevices []AppVulnerabilityManagedDevice `json:"managedDevices,omitempty"`
+ // MobileApps undocumented
+ MobileApps []AppVulnerabilityMobileApp `json:"mobileApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelApple.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApple.go
new file mode 100644
index 00000000..cfec8a7c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApple.go
@@ -0,0 +1,121 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AppleDeviceFeaturesConfigurationBase Apple device features configuration profile.
+type AppleDeviceFeaturesConfigurationBase struct {
+ // DeviceConfiguration is the base model of AppleDeviceFeaturesConfigurationBase
+ DeviceConfiguration
+ // AirPrintDestinations An array of AirPrint printers that should always be shown. This collection can contain a maximum of 500 elements.
+ AirPrintDestinations []AirPrintDestination `json:"airPrintDestinations,omitempty"`
+}
+
+// AppleEnrollmentProfileAssignment An assignment of an Apple profile.
+type AppleEnrollmentProfileAssignment struct {
+ // Entity is the base model of AppleEnrollmentProfileAssignment
+ Entity
+ // Target The assignment target for the Apple user initiated deployment profile.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// AppleOwnerTypeEnrollmentType undocumented
+type AppleOwnerTypeEnrollmentType struct {
+ // Object is the base model of AppleOwnerTypeEnrollmentType
+ Object
+ // OwnerType The owner type.
+ OwnerType *ManagedDeviceOwnerType `json:"ownerType,omitempty"`
+ // EnrollmentType The enrollment type.
+ EnrollmentType *AppleUserInitiatedEnrollmentType `json:"enrollmentType,omitempty"`
+}
+
+// ApplePushNotificationCertificate Apple push notification certificate.
+type ApplePushNotificationCertificate struct {
+ // Entity is the base model of ApplePushNotificationCertificate
+ Entity
+ // AppleIdentifier Apple Id of the account used to create the MDM push certificate.
+ AppleIdentifier *string `json:"appleIdentifier,omitempty"`
+ // TopicIdentifier Topic Id.
+ TopicIdentifier *string `json:"topicIdentifier,omitempty"`
+ // LastModifiedDateTime Last modified date and time for Apple push notification certificate.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // ExpirationDateTime The expiration date and time for Apple push notification certificate.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // CertificateUploadStatus The certificate upload status.
+ CertificateUploadStatus *string `json:"certificateUploadStatus,omitempty"`
+ // CertificateUploadFailureReason The reason the certificate upload failed.
+ CertificateUploadFailureReason *string `json:"certificateUploadFailureReason,omitempty"`
+ // Certificate undocumented
+ Certificate *string `json:"certificate,omitempty"`
+}
+
+// AppleUserInitiatedEnrollmentProfile The enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device.
+type AppleUserInitiatedEnrollmentProfile struct {
+ // Entity is the base model of AppleUserInitiatedEnrollmentProfile
+ Entity
+ // DefaultEnrollmentType The default profile enrollment type.
+ DefaultEnrollmentType *AppleUserInitiatedEnrollmentType `json:"defaultEnrollmentType,omitempty"`
+ // AvailableEnrollmentTypeOptions List of available enrollment type options
+ AvailableEnrollmentTypeOptions []AppleOwnerTypeEnrollmentType `json:"availableEnrollmentTypeOptions,omitempty"`
+ // DisplayName Name of the profile
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the profile
+ Description *string `json:"description,omitempty"`
+ // Priority Priority, 0 is highest
+ Priority *int `json:"priority,omitempty"`
+ // Platform The platform of the Device.
+ Platform *DevicePlatformType `json:"platform,omitempty"`
+ // CreatedDateTime Profile creation time
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Profile last modified time
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Assignments undocumented
+ Assignments []AppleEnrollmentProfileAssignment `json:"assignments,omitempty"`
+}
+
+// AppleVPNConfiguration Apple VPN configuration profile.
+type AppleVPNConfiguration struct {
+ // DeviceConfiguration is the base model of AppleVPNConfiguration
+ DeviceConfiguration
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *AppleVPNConnectionType `json:"connectionType,omitempty"`
+ // LoginGroupOrDomain Login group or domain when connection type is set to Dell SonicWALL Mobile Connection.
+ LoginGroupOrDomain *string `json:"loginGroupOrDomain,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Server VPN Server on the network. Make sure end users can access this network location.
+ Server *VPNServer `json:"server,omitempty"`
+ // Identifier Identifier provided by VPN vendor when connection type is set to Custom VPN. For example: Cisco AnyConnect uses an identifier of the form com.cisco.anyconnect.applevpn.plugin
+ Identifier *string `json:"identifier,omitempty"`
+ // CustomData Custom data when connection type is set to Custom VPN. Use this field to enable functionality not supported by Intune, but available in your VPN solution. Contact your VPN vendor to learn how to add these key/value pairs. This collection can contain a maximum of 25 elements.
+ CustomData []KeyValue `json:"customData,omitempty"`
+ // CustomKeyValueData Custom data when connection type is set to Custom VPN. Use this field to enable functionality not supported by Intune, but available in your VPN solution. Contact your VPN vendor to learn how to add these key/value pairs. This collection can contain a maximum of 25 elements.
+ CustomKeyValueData []KeyValuePair `json:"customKeyValueData,omitempty"`
+ // EnableSplitTunneling Send all network traffic through VPN.
+ EnableSplitTunneling *bool `json:"enableSplitTunneling,omitempty"`
+ // AuthenticationMethod Authentication method for this VPN connection.
+ AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // EnablePerApp Setting this to true creates Per-App VPN payload which can later be associated with Apps that can trigger this VPN conneciton on the end user's iOS device.
+ EnablePerApp *bool `json:"enablePerApp,omitempty"`
+ // SafariDomains Safari domains when this VPN per App setting is enabled. In addition to the apps associated with this VPN, Safari domains specified here will also be able to trigger this VPN connection.
+ SafariDomains []string `json:"safariDomains,omitempty"`
+ // OnDemandRules On-Demand Rules. This collection can contain a maximum of 500 elements.
+ OnDemandRules []VPNOnDemandRule `json:"onDemandRules,omitempty"`
+ // ProxyServer Proxy Server.
+ ProxyServer *VPNProxyServer `json:"proxyServer,omitempty"`
+ // OptInToDeviceIDSharing Opt-In to sharing the device's Id to third-party vpn clients for use during network access control validation.
+ OptInToDeviceIDSharing *bool `json:"optInToDeviceIdSharing,omitempty"`
+}
+
+// AppleVPPTokenTroubleshootingEvent Event representing an Apple Vpp Token Troubleshooting Event.
+type AppleVPPTokenTroubleshootingEvent struct {
+ // DeviceManagementTroubleshootingEvent is the base model of AppleVPPTokenTroubleshootingEvent
+ DeviceManagementTroubleshootingEvent
+ // TokenID Apple Volume Purchase Program Token Identifier.
+ TokenID *string `json:"tokenId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplication.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplication.go
new file mode 100644
index 00000000..5e90bcbc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplication.go
@@ -0,0 +1,133 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Application undocumented
+type Application struct {
+ // DirectoryObject is the base model of Application
+ DirectoryObject
+ // API undocumented
+ API *APIApplication `json:"api,omitempty"`
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AppRoles undocumented
+ AppRoles []AppRole `json:"appRoles,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // IsFallbackPublicClient undocumented
+ IsFallbackPublicClient *bool `json:"isFallbackPublicClient,omitempty"`
+ // IdentifierUris undocumented
+ IdentifierUris []string `json:"identifierUris,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GroupMembershipClaims undocumented
+ GroupMembershipClaims *string `json:"groupMembershipClaims,omitempty"`
+ // Info undocumented
+ Info *InformationalURL `json:"info,omitempty"`
+ // IsDeviceOnlyAuthSupported undocumented
+ IsDeviceOnlyAuthSupported *bool `json:"isDeviceOnlyAuthSupported,omitempty"`
+ // KeyCredentials undocumented
+ KeyCredentials []KeyCredential `json:"keyCredentials,omitempty"`
+ // Logo undocumented
+ Logo *Stream `json:"logo,omitempty"`
+ // OptionalClaims undocumented
+ OptionalClaims *OptionalClaims `json:"optionalClaims,omitempty"`
+ // ParentalControlSettings undocumented
+ ParentalControlSettings *ParentalControlSettings `json:"parentalControlSettings,omitempty"`
+ // PasswordCredentials undocumented
+ PasswordCredentials []PasswordCredential `json:"passwordCredentials,omitempty"`
+ // PublicClient undocumented
+ PublicClient *PublicClientApplication `json:"publicClient,omitempty"`
+ // PublisherDomain undocumented
+ PublisherDomain *string `json:"publisherDomain,omitempty"`
+ // RequiredResourceAccess undocumented
+ RequiredResourceAccess []RequiredResourceAccess `json:"requiredResourceAccess,omitempty"`
+ // SignInAudience undocumented
+ SignInAudience *string `json:"signInAudience,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // TokenEncryptionKeyID undocumented
+ TokenEncryptionKeyID *UUID `json:"tokenEncryptionKeyId,omitempty"`
+ // Web undocumented
+ Web *WebApplication `json:"web,omitempty"`
+ // ExtensionProperties undocumented
+ ExtensionProperties []ExtensionProperty `json:"extensionProperties,omitempty"`
+ // CreatedOnBehalfOf undocumented
+ CreatedOnBehalfOf *DirectoryObject `json:"createdOnBehalfOf,omitempty"`
+ // Owners undocumented
+ Owners []DirectoryObject `json:"owners,omitempty"`
+ // Policies undocumented
+ Policies []DirectoryObject `json:"policies,omitempty"`
+ // Synchronization undocumented
+ Synchronization *Synchronization `json:"synchronization,omitempty"`
+}
+
+// ApplicationEnforcedRestrictionsSessionControl undocumented
+type ApplicationEnforcedRestrictionsSessionControl struct {
+ // ConditionalAccessSessionControl is the base model of ApplicationEnforcedRestrictionsSessionControl
+ ConditionalAccessSessionControl
+}
+
+// ApplicationServicePrincipal undocumented
+type ApplicationServicePrincipal struct {
+ // Object is the base model of ApplicationServicePrincipal
+ Object
+ // Application undocumented
+ Application *Application `json:"application,omitempty"`
+ // ServicePrincipal undocumented
+ ServicePrincipal *ServicePrincipal `json:"servicePrincipal,omitempty"`
+}
+
+// ApplicationSignInDetailedSummary undocumented
+type ApplicationSignInDetailedSummary struct {
+ // Entity is the base model of ApplicationSignInDetailedSummary
+ Entity
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // Status undocumented
+ Status *SignInStatus `json:"status,omitempty"`
+ // SignInCount undocumented
+ SignInCount *int `json:"signInCount,omitempty"`
+ // AggregatedEventDateTime undocumented
+ AggregatedEventDateTime *time.Time `json:"aggregatedEventDateTime,omitempty"`
+}
+
+// ApplicationSignInSummary undocumented
+type ApplicationSignInSummary struct {
+ // Entity is the base model of ApplicationSignInSummary
+ Entity
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // SuccessfulSignInCount undocumented
+ SuccessfulSignInCount *int `json:"successfulSignInCount,omitempty"`
+ // FailedSignInCount undocumented
+ FailedSignInCount *int `json:"failedSignInCount,omitempty"`
+ // SuccessPercentage undocumented
+ SuccessPercentage *float64 `json:"successPercentage,omitempty"`
+}
+
+// ApplicationTemplate undocumented
+type ApplicationTemplate struct {
+ // Entity is the base model of ApplicationTemplate
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // HomePageURL undocumented
+ HomePageURL *string `json:"homePageUrl,omitempty"`
+ // SupportedSingleSignOnModes undocumented
+ SupportedSingleSignOnModes []string `json:"supportedSingleSignOnModes,omitempty"`
+ // SupportedProvisioningTypes undocumented
+ SupportedProvisioningTypes []string `json:"supportedProvisioningTypes,omitempty"`
+ // LogoURL undocumented
+ LogoURL *string `json:"logoUrl,omitempty"`
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // Publisher undocumented
+ Publisher *string `json:"publisher,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplied.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplied.go
new file mode 100644
index 00000000..130f3072
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApplied.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AppliedConditionalAccessPolicy undocumented
+type AppliedConditionalAccessPolicy struct {
+ // Object is the base model of AppliedConditionalAccessPolicy
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // EnforcedGrantControls undocumented
+ EnforcedGrantControls []string `json:"enforcedGrantControls,omitempty"`
+ // EnforcedSessionControls undocumented
+ EnforcedSessionControls []string `json:"enforcedSessionControls,omitempty"`
+ // ConditionsSatisfied undocumented
+ ConditionsSatisfied *ConditionalAccessConditions `json:"conditionsSatisfied,omitempty"`
+ // ConditionsNotSatisfied undocumented
+ ConditionsNotSatisfied *ConditionalAccessConditions `json:"conditionsNotSatisfied,omitempty"`
+ // Result undocumented
+ Result *AppliedConditionalAccessPolicyResult `json:"result,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelApply.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApply.go
new file mode 100644
index 00000000..8db1902a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApply.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApplyLabelAction undocumented
+type ApplyLabelAction struct {
+ // InformationProtectionAction is the base model of ApplyLabelAction
+ InformationProtectionAction
+ // Label undocumented
+ Label *LabelDetails `json:"label,omitempty"`
+ // ResponsibleSensitiveTypeIDs undocumented
+ ResponsibleSensitiveTypeIDs []UUID `json:"responsibleSensitiveTypeIds,omitempty"`
+ // Actions undocumented
+ Actions []InformationProtectionAction `json:"actions,omitempty"`
+ // ActionSource undocumented
+ ActionSource *ActionSource `json:"actionSource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelApproval.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApproval.go
new file mode 100644
index 00000000..190198d2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelApproval.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ApprovalWorkflowProvider undocumented
+type ApprovalWorkflowProvider struct {
+ // Entity is the base model of ApprovalWorkflowProvider
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // BusinessFlows undocumented
+ BusinessFlows []BusinessFlow `json:"businessFlows,omitempty"`
+ // PolicyTemplates undocumented
+ PolicyTemplates []GovernancePolicyTemplate `json:"policyTemplates,omitempty"`
+ // Requests undocumented
+ Requests []RequestObject `json:"requests,omitempty"`
+ // RequestsAwaitingMyDecision undocumented
+ RequestsAwaitingMyDecision []RequestObject `json:"requestsAwaitingMyDecision,omitempty"`
+ // BusinessFlowsWithRequestsAwaitingMyDecision undocumented
+ BusinessFlowsWithRequestsAwaitingMyDecision []BusinessFlow `json:"businessFlowsWithRequestsAwaitingMyDecision,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAssigned.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAssigned.go
new file mode 100644
index 00000000..1fc02328
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAssigned.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AssignedLabel undocumented
+type AssignedLabel struct {
+ // Object is the base model of AssignedLabel
+ Object
+ // LabelID undocumented
+ LabelID *string `json:"labelId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// AssignedLicense undocumented
+type AssignedLicense struct {
+ // Object is the base model of AssignedLicense
+ Object
+ // DisabledPlans undocumented
+ DisabledPlans []UUID `json:"disabledPlans,omitempty"`
+ // SKUID undocumented
+ SKUID *UUID `json:"skuId,omitempty"`
+}
+
+// AssignedPlan undocumented
+type AssignedPlan struct {
+ // Object is the base model of AssignedPlan
+ Object
+ // AssignedDateTime undocumented
+ AssignedDateTime *time.Time `json:"assignedDateTime,omitempty"`
+ // CapabilityStatus undocumented
+ CapabilityStatus *string `json:"capabilityStatus,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+ // ServicePlanID undocumented
+ ServicePlanID *UUID `json:"servicePlanId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttachment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttachment.go
new file mode 100644
index 00000000..b1d19356
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttachment.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Attachment undocumented
+type Attachment struct {
+ // Entity is the base model of Attachment
+ Entity
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // IsInline undocumented
+ IsInline *bool `json:"isInline,omitempty"`
+}
+
+// AttachmentItem undocumented
+type AttachmentItem struct {
+ // Object is the base model of AttachmentItem
+ Object
+ // AttachmentType undocumented
+ AttachmentType *AttachmentType `json:"attachmentType,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+ // IsInline undocumented
+ IsInline *bool `json:"isInline,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttendee.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttendee.go
new file mode 100644
index 00000000..2d09290a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttendee.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Attendee undocumented
+type Attendee struct {
+ // AttendeeBase is the base model of Attendee
+ AttendeeBase
+ // Status undocumented
+ Status *ResponseStatus `json:"status,omitempty"`
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"proposedNewTime,omitempty"`
+}
+
+// AttendeeAvailability undocumented
+type AttendeeAvailability struct {
+ // Object is the base model of AttendeeAvailability
+ Object
+ // Attendee undocumented
+ Attendee *AttendeeBase `json:"attendee,omitempty"`
+ // Availability undocumented
+ Availability *FreeBusyStatus `json:"availability,omitempty"`
+}
+
+// AttendeeBase undocumented
+type AttendeeBase struct {
+ // Recipient is the base model of AttendeeBase
+ Recipient
+ // Type undocumented
+ Type *AttendeeType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttribute.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttribute.go
new file mode 100644
index 00000000..6bc9aa27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAttribute.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AttributeDefinition undocumented
+type AttributeDefinition struct {
+ // Object is the base model of AttributeDefinition
+ Object
+ // Anchor undocumented
+ Anchor *bool `json:"anchor,omitempty"`
+ // APIExpressions undocumented
+ APIExpressions []StringKeyStringValuePair `json:"apiExpressions,omitempty"`
+ // CaseExact undocumented
+ CaseExact *bool `json:"caseExact,omitempty"`
+ // DefaultValue undocumented
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // Metadata undocumented
+ Metadata []MetadataEntry `json:"metadata,omitempty"`
+ // Multivalued undocumented
+ Multivalued *bool `json:"multivalued,omitempty"`
+ // Mutability undocumented
+ Mutability *Mutability `json:"mutability,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Required undocumented
+ Required *bool `json:"required,omitempty"`
+ // ReferencedObjects undocumented
+ ReferencedObjects []ReferencedObject `json:"referencedObjects,omitempty"`
+ // Type undocumented
+ Type *AttributeType `json:"type,omitempty"`
+}
+
+// AttributeMapping undocumented
+type AttributeMapping struct {
+ // Object is the base model of AttributeMapping
+ Object
+ // DefaultValue undocumented
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // ExportMissingReferences undocumented
+ ExportMissingReferences *bool `json:"exportMissingReferences,omitempty"`
+ // FlowBehavior undocumented
+ FlowBehavior *AttributeFlowBehavior `json:"flowBehavior,omitempty"`
+ // FlowType undocumented
+ FlowType *AttributeFlowType `json:"flowType,omitempty"`
+ // MatchingPriority undocumented
+ MatchingPriority *int `json:"matchingPriority,omitempty"`
+ // Source undocumented
+ Source *AttributeMappingSource `json:"source,omitempty"`
+ // TargetAttributeName undocumented
+ TargetAttributeName *string `json:"targetAttributeName,omitempty"`
+}
+
+// AttributeMappingFunctionSchema undocumented
+type AttributeMappingFunctionSchema struct {
+ // Entity is the base model of AttributeMappingFunctionSchema
+ Entity
+ // Parameters undocumented
+ Parameters []AttributeMappingParameterSchema `json:"parameters,omitempty"`
+}
+
+// AttributeMappingParameterSchema undocumented
+type AttributeMappingParameterSchema struct {
+ // Object is the base model of AttributeMappingParameterSchema
+ Object
+ // AllowMultipleOccurrences undocumented
+ AllowMultipleOccurrences *bool `json:"allowMultipleOccurrences,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Required undocumented
+ Required *bool `json:"required,omitempty"`
+ // Type undocumented
+ Type *AttributeType `json:"type,omitempty"`
+}
+
+// AttributeMappingSource undocumented
+type AttributeMappingSource struct {
+ // Object is the base model of AttributeMappingSource
+ Object
+ // Expression undocumented
+ Expression *string `json:"expression,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Parameters undocumented
+ Parameters []StringKeyAttributeMappingSourceValuePair `json:"parameters,omitempty"`
+ // Type undocumented
+ Type *AttributeMappingSourceType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudio.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudio.go
new file mode 100644
index 00000000..d77d9e85
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudio.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Audio undocumented
+type Audio struct {
+ // Object is the base model of Audio
+ Object
+ // Album undocumented
+ Album *string `json:"album,omitempty"`
+ // AlbumArtist undocumented
+ AlbumArtist *string `json:"albumArtist,omitempty"`
+ // Artist undocumented
+ Artist *string `json:"artist,omitempty"`
+ // Bitrate undocumented
+ Bitrate *int `json:"bitrate,omitempty"`
+ // Composers undocumented
+ Composers *string `json:"composers,omitempty"`
+ // Copyright undocumented
+ Copyright *string `json:"copyright,omitempty"`
+ // Disc undocumented
+ Disc *int `json:"disc,omitempty"`
+ // DiscCount undocumented
+ DiscCount *int `json:"discCount,omitempty"`
+ // Duration undocumented
+ Duration *int `json:"duration,omitempty"`
+ // Genre undocumented
+ Genre *string `json:"genre,omitempty"`
+ // HasDrm undocumented
+ HasDrm *bool `json:"hasDrm,omitempty"`
+ // IsVariableBitrate undocumented
+ IsVariableBitrate *bool `json:"isVariableBitrate,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Track undocumented
+ Track *int `json:"track,omitempty"`
+ // TrackCount undocumented
+ TrackCount *int `json:"trackCount,omitempty"`
+ // Year undocumented
+ Year *int `json:"year,omitempty"`
+}
+
+// AudioConferencing undocumented
+type AudioConferencing struct {
+ // Object is the base model of AudioConferencing
+ Object
+ // ConferenceID undocumented
+ ConferenceID *string `json:"conferenceId,omitempty"`
+ // TollNumber undocumented
+ TollNumber *string `json:"tollNumber,omitempty"`
+ // TollFreeNumber undocumented
+ TollFreeNumber *string `json:"tollFreeNumber,omitempty"`
+ // DialinURL undocumented
+ DialinURL *string `json:"dialinUrl,omitempty"`
+}
+
+// AudioRoutingGroup undocumented
+type AudioRoutingGroup struct {
+ // Entity is the base model of AudioRoutingGroup
+ Entity
+ // RoutingMode undocumented
+ RoutingMode *RoutingMode `json:"routingMode,omitempty"`
+ // Sources undocumented
+ Sources []string `json:"sources,omitempty"`
+ // Receivers undocumented
+ Receivers []string `json:"receivers,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudit.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudit.go
new file mode 100644
index 00000000..e65ab1d6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAudit.go
@@ -0,0 +1,109 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AuditActivityInitiator undocumented
+type AuditActivityInitiator struct {
+ // Object is the base model of AuditActivityInitiator
+ Object
+ // User undocumented
+ User *UserIdentity `json:"user,omitempty"`
+ // App undocumented
+ App *AppIdentity `json:"app,omitempty"`
+}
+
+// AuditActor undocumented
+type AuditActor struct {
+ // Object is the base model of AuditActor
+ Object
+ // Type Actor Type.
+ Type *string `json:"type,omitempty"`
+ // UserPermissions List of user permissions when the audit was performed.
+ UserPermissions []string `json:"userPermissions,omitempty"`
+ // ApplicationID AAD Application Id.
+ ApplicationID *string `json:"applicationId,omitempty"`
+ // ApplicationDisplayName Name of the Application.
+ ApplicationDisplayName *string `json:"applicationDisplayName,omitempty"`
+ // UserPrincipalName User Principal Name (UPN).
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // ServicePrincipalName Service Principal Name (SPN).
+ ServicePrincipalName *string `json:"servicePrincipalName,omitempty"`
+ // IPAddress IPAddress.
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // UserID User Id.
+ UserID *string `json:"userId,omitempty"`
+ // UserRoleScopeTags List of user scope tags when the audit was performed.
+ UserRoleScopeTags []RoleScopeTagInfo `json:"userRoleScopeTags,omitempty"`
+}
+
+// AuditEvent A class containing the properties for Audit Event.
+type AuditEvent struct {
+ // Entity is the base model of AuditEvent
+ Entity
+ // DisplayName Event display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // ComponentName Component name.
+ ComponentName *string `json:"componentName,omitempty"`
+ // Actor AAD user and application that are associated with the audit event.
+ Actor *AuditActor `json:"actor,omitempty"`
+ // Activity Friendly name of the activity.
+ Activity *string `json:"activity,omitempty"`
+ // ActivityDateTime The date time in UTC when the activity was performed.
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // ActivityType The type of activity that was being performed.
+ ActivityType *string `json:"activityType,omitempty"`
+ // ActivityOperationType The HTTP operation type of the activity.
+ ActivityOperationType *string `json:"activityOperationType,omitempty"`
+ // ActivityResult The result of the activity.
+ ActivityResult *string `json:"activityResult,omitempty"`
+ // CorrelationID The client request Id that is used to correlate activity within the system.
+ CorrelationID *UUID `json:"correlationId,omitempty"`
+ // Resources Resources being modified.
+ Resources []AuditResource `json:"resources,omitempty"`
+ // Category Audit category.
+ Category *string `json:"category,omitempty"`
+}
+
+// AuditLogRoot undocumented
+type AuditLogRoot struct {
+ // Entity is the base model of AuditLogRoot
+ Entity
+ // SignIns undocumented
+ SignIns []SignIn `json:"signIns,omitempty"`
+ // DirectoryAudits undocumented
+ DirectoryAudits []DirectoryAudit `json:"directoryAudits,omitempty"`
+ // RestrictedSignIns undocumented
+ RestrictedSignIns []RestrictedSignIn `json:"restrictedSignIns,omitempty"`
+ // DirectoryProvisioning undocumented
+ DirectoryProvisioning []ProvisioningObjectSummary `json:"directoryProvisioning,omitempty"`
+ // Provisioning undocumented
+ Provisioning []ProvisioningObjectSummary `json:"provisioning,omitempty"`
+}
+
+// AuditProperty undocumented
+type AuditProperty struct {
+ // Object is the base model of AuditProperty
+ Object
+ // DisplayName Display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // OldValue Old value.
+ OldValue *string `json:"oldValue,omitempty"`
+ // NewValue New value.
+ NewValue *string `json:"newValue,omitempty"`
+}
+
+// AuditResource undocumented
+type AuditResource struct {
+ // Object is the base model of AuditResource
+ Object
+ // DisplayName Display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // ModifiedProperties List of modified properties.
+ ModifiedProperties []AuditProperty `json:"modifiedProperties,omitempty"`
+ // Type Audit resource's type.
+ Type *string `json:"type,omitempty"`
+ // ResourceID Audit resource's Id.
+ ResourceID *string `json:"resourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuthentication.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuthentication.go
new file mode 100644
index 00000000..1f0041de
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuthentication.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AuthenticationDetail undocumented
+type AuthenticationDetail struct {
+ // Object is the base model of AuthenticationDetail
+ Object
+ // AuthenticationStepDateTime undocumented
+ AuthenticationStepDateTime *time.Time `json:"authenticationStepDateTime,omitempty"`
+ // AuthenticationMethod undocumented
+ AuthenticationMethod *string `json:"authenticationMethod,omitempty"`
+ // AuthenticationMethodDetail undocumented
+ AuthenticationMethodDetail *string `json:"authenticationMethodDetail,omitempty"`
+ // Succeeded undocumented
+ Succeeded *bool `json:"succeeded,omitempty"`
+ // AuthenticationStepResultDetail undocumented
+ AuthenticationStepResultDetail *string `json:"authenticationStepResultDetail,omitempty"`
+ // AuthenticationStepRequirement undocumented
+ AuthenticationStepRequirement *string `json:"authenticationStepRequirement,omitempty"`
+}
+
+// AuthenticationRequirementPolicy undocumented
+type AuthenticationRequirementPolicy struct {
+ // Object is the base model of AuthenticationRequirementPolicy
+ Object
+ // RequirementProvider undocumented
+ RequirementProvider *RequirementProvider `json:"requirementProvider,omitempty"`
+ // Detail undocumented
+ Detail *string `json:"detail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuto.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuto.go
new file mode 100644
index 00000000..7cd007fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAuto.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutoLabeling undocumented
+type AutoLabeling struct {
+ // Object is the base model of AutoLabeling
+ Object
+ // SensitiveTypeIDs undocumented
+ SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
+
+// AutoReviewSettings undocumented
+type AutoReviewSettings struct {
+ // Object is the base model of AutoReviewSettings
+ Object
+ // NotReviewedResult undocumented
+ NotReviewedResult *string `json:"notReviewedResult,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAutomatic.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAutomatic.go
new file mode 100644
index 00000000..89cf4ea1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAutomatic.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AutomaticRepliesMailTips undocumented
+type AutomaticRepliesMailTips struct {
+ // Object is the base model of AutomaticRepliesMailTips
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // MessageLanguage undocumented
+ MessageLanguage *LocaleInfo `json:"messageLanguage,omitempty"`
+ // ScheduledStartTime undocumented
+ ScheduledStartTime *DateTimeTimeZone `json:"scheduledStartTime,omitempty"`
+ // ScheduledEndTime undocumented
+ ScheduledEndTime *DateTimeTimeZone `json:"scheduledEndTime,omitempty"`
+}
+
+// AutomaticRepliesSetting undocumented
+type AutomaticRepliesSetting struct {
+ // Object is the base model of AutomaticRepliesSetting
+ Object
+ // Status undocumented
+ Status *AutomaticRepliesStatus `json:"status,omitempty"`
+ // ExternalAudience undocumented
+ ExternalAudience *ExternalAudienceScope `json:"externalAudience,omitempty"`
+ // ScheduledStartDateTime undocumented
+ ScheduledStartDateTime *DateTimeTimeZone `json:"scheduledStartDateTime,omitempty"`
+ // ScheduledEndDateTime undocumented
+ ScheduledEndDateTime *DateTimeTimeZone `json:"scheduledEndDateTime,omitempty"`
+ // InternalReplyMessage undocumented
+ InternalReplyMessage *string `json:"internalReplyMessage,omitempty"`
+ // ExternalReplyMessage undocumented
+ ExternalReplyMessage *string `json:"externalReplyMessage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAverage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAverage.go
new file mode 100644
index 00000000..d3a11f1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAverage.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// AverageComparativeScore undocumented
+type AverageComparativeScore struct {
+ // Object is the base model of AverageComparativeScore
+ Object
+ // AverageScore undocumented
+ AverageScore *float64 `json:"averageScore,omitempty"`
+ // Basis undocumented
+ Basis *string `json:"basis,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelAzure.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAzure.go
new file mode 100644
index 00000000..7bdcfaf5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelAzure.go
@@ -0,0 +1,53 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// AzureADFeatureUsage undocumented
+type AzureADFeatureUsage struct {
+ // Entity is the base model of AzureADFeatureUsage
+ Entity
+ // SnapshotDateTime undocumented
+ SnapshotDateTime *time.Time `json:"snapshotDateTime,omitempty"`
+ // FeatureName undocumented
+ FeatureName *string `json:"featureName,omitempty"`
+ // Usage undocumented
+ Usage *int `json:"usage,omitempty"`
+}
+
+// AzureADLicenseUsage undocumented
+type AzureADLicenseUsage struct {
+ // Entity is the base model of AzureADLicenseUsage
+ Entity
+ // SnapshotDateTime undocumented
+ SnapshotDateTime *time.Time `json:"snapshotDateTime,omitempty"`
+ // LicenseInfoDetails undocumented
+ LicenseInfoDetails []LicenseInfoDetail `json:"licenseInfoDetails,omitempty"`
+}
+
+// AzureADUserFeatureUsage undocumented
+type AzureADUserFeatureUsage struct {
+ // Entity is the base model of AzureADUserFeatureUsage
+ Entity
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LicenseRecommended undocumented
+ LicenseRecommended *AzureADLicenseType `json:"licenseRecommended,omitempty"`
+ // LicenseAssigned undocumented
+ LicenseAssigned *AzureADLicenseType `json:"licenseAssigned,omitempty"`
+ // FeatureUsageDetails undocumented
+ FeatureUsageDetails []FeatureUsageDetail `json:"featureUsageDetails,omitempty"`
+}
+
+// AzureADWindowsAutopilotDeploymentProfile Windows Autopilot Deployment Profile
+type AzureADWindowsAutopilotDeploymentProfile struct {
+ // WindowsAutopilotDeploymentProfile is the base model of AzureADWindowsAutopilotDeploymentProfile
+ WindowsAutopilotDeploymentProfile
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBase.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBase.go
new file mode 100644
index 00000000..81464b5d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBase.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// BaseItem undocumented
+type BaseItem struct {
+ // Entity is the base model of BaseItem
+ Entity
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // ETag undocumented
+ ETag *string `json:"eTag,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ParentReference undocumented
+ ParentReference *ItemReference `json:"parentReference,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // CreatedByUser undocumented
+ CreatedByUser *User `json:"createdByUser,omitempty"`
+ // LastModifiedByUser undocumented
+ LastModifiedByUser *User `json:"lastModifiedByUser,omitempty"`
+}
+
+// BaseItemVersion undocumented
+type BaseItemVersion struct {
+ // Entity is the base model of BaseItemVersion
+ Entity
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Publication undocumented
+ Publication *PublicationFacet `json:"publication,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBinary.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBinary.go
new file mode 100644
index 00000000..114efb61
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBinary.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BinaryManagementConditionExpression undocumented
+type BinaryManagementConditionExpression struct {
+ // ManagementConditionExpressionModel is the base model of BinaryManagementConditionExpression
+ ManagementConditionExpressionModel
+ // Operator The operator used in the evaluation of the binary operation.
+ Operator *BinaryManagementConditionExpressionOperatorType `json:"operator,omitempty"`
+ // FirstOperand The first operand of the binary operation.
+ FirstOperand *ManagementConditionExpressionModel `json:"firstOperand,omitempty"`
+ // SecondOperand The second operand of the binary operation.
+ SecondOperand *ManagementConditionExpressionModel `json:"secondOperand,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBit.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBit.go
new file mode 100644
index 00000000..1388d0a7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBit.go
@@ -0,0 +1,77 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BitLockerFixedDrivePolicy undocumented
+type BitLockerFixedDrivePolicy struct {
+ // Object is the base model of BitLockerFixedDrivePolicy
+ Object
+ // EncryptionMethod Select the encryption method for fixed drives.
+ EncryptionMethod *BitLockerEncryptionMethod `json:"encryptionMethod,omitempty"`
+ // RequireEncryptionForWriteAccess This policy setting determines whether BitLocker protection is required for fixed data drives to be writable on a computer.
+ RequireEncryptionForWriteAccess *bool `json:"requireEncryptionForWriteAccess,omitempty"`
+ // RecoveryOptions This policy setting allows you to control how BitLocker-protected fixed data drives are recovered in the absence of the required credentials. This policy setting is applied when you turn on BitLocker.
+ RecoveryOptions *BitLockerRecoveryOptions `json:"recoveryOptions,omitempty"`
+}
+
+// BitLockerRecoveryOptions undocumented
+type BitLockerRecoveryOptions struct {
+ // Object is the base model of BitLockerRecoveryOptions
+ Object
+ // BlockDataRecoveryAgent Indicates whether to block certificate-based data recovery agent.
+ BlockDataRecoveryAgent *bool `json:"blockDataRecoveryAgent,omitempty"`
+ // RecoveryPasswordUsage Indicates whether users are allowed or required to generate a 48-digit recovery password for fixed or system disk.
+ RecoveryPasswordUsage *ConfigurationUsage `json:"recoveryPasswordUsage,omitempty"`
+ // RecoveryKeyUsage Indicates whether users are allowed or required to generate a 256-bit recovery key for fixed or system disk.
+ RecoveryKeyUsage *ConfigurationUsage `json:"recoveryKeyUsage,omitempty"`
+ // HideRecoveryOptions Indicates whether or not to allow showing recovery options in BitLocker Setup Wizard for fixed or system disk.
+ HideRecoveryOptions *bool `json:"hideRecoveryOptions,omitempty"`
+ // EnableRecoveryInformationSaveToStore Indicates whether or not to allow BitLocker recovery information to store in AD DS.
+ EnableRecoveryInformationSaveToStore *bool `json:"enableRecoveryInformationSaveToStore,omitempty"`
+ // RecoveryInformationToStore Configure what pieces of BitLocker recovery information are stored to AD DS.
+ RecoveryInformationToStore *BitLockerRecoveryInformationType `json:"recoveryInformationToStore,omitempty"`
+ // EnableBitLockerAfterRecoveryInformationToStore Indicates whether or not to enable BitLocker until recovery information is stored in AD DS.
+ EnableBitLockerAfterRecoveryInformationToStore *bool `json:"enableBitLockerAfterRecoveryInformationToStore,omitempty"`
+}
+
+// BitLockerRemovableDrivePolicy undocumented
+type BitLockerRemovableDrivePolicy struct {
+ // Object is the base model of BitLockerRemovableDrivePolicy
+ Object
+ // EncryptionMethod Select the encryption method for removable drives.
+ EncryptionMethod *BitLockerEncryptionMethod `json:"encryptionMethod,omitempty"`
+ // RequireEncryptionForWriteAccess Indicates whether to block write access to devices configured in another organization. If requireEncryptionForWriteAccess is false, this value does not affect.
+ RequireEncryptionForWriteAccess *bool `json:"requireEncryptionForWriteAccess,omitempty"`
+ // BlockCrossOrganizationWriteAccess This policy setting determines whether BitLocker protection is required for removable data drives to be writable on a computer.
+ BlockCrossOrganizationWriteAccess *bool `json:"blockCrossOrganizationWriteAccess,omitempty"`
+}
+
+// BitLockerSystemDrivePolicy undocumented
+type BitLockerSystemDrivePolicy struct {
+ // Object is the base model of BitLockerSystemDrivePolicy
+ Object
+ // EncryptionMethod Select the encryption method for operating system drives.
+ EncryptionMethod *BitLockerEncryptionMethod `json:"encryptionMethod,omitempty"`
+ // StartupAuthenticationRequired Require additional authentication at startup.
+ StartupAuthenticationRequired *bool `json:"startupAuthenticationRequired,omitempty"`
+ // StartupAuthenticationBlockWithoutTpmChip Indicates whether to allow BitLocker without a compatible TPM (requires a password or a startup key on a USB flash drive).
+ StartupAuthenticationBlockWithoutTpmChip *bool `json:"startupAuthenticationBlockWithoutTpmChip,omitempty"`
+ // StartupAuthenticationTpmUsage Indicates if TPM startup is allowed/required/disallowed.
+ StartupAuthenticationTpmUsage *ConfigurationUsage `json:"startupAuthenticationTpmUsage,omitempty"`
+ // StartupAuthenticationTpmPinUsage Indicates if TPM startup pin is allowed/required/disallowed.
+ StartupAuthenticationTpmPinUsage *ConfigurationUsage `json:"startupAuthenticationTpmPinUsage,omitempty"`
+ // StartupAuthenticationTpmKeyUsage Indicates if TPM startup key is allowed/required/disallowed.
+ StartupAuthenticationTpmKeyUsage *ConfigurationUsage `json:"startupAuthenticationTpmKeyUsage,omitempty"`
+ // StartupAuthenticationTpmPinAndKeyUsage Indicates if TPM startup pin key and key are allowed/required/disallowed.
+ StartupAuthenticationTpmPinAndKeyUsage *ConfigurationUsage `json:"startupAuthenticationTpmPinAndKeyUsage,omitempty"`
+ // MinimumPinLength Indicates the minimum length of startup pin. Valid values 4 to 20
+ MinimumPinLength *int `json:"minimumPinLength,omitempty"`
+ // RecoveryOptions Allows to recover BitLocker encrypted operating system drives in the absence of the required startup key information. This policy setting is applied when you turn on BitLocker.
+ RecoveryOptions *BitLockerRecoveryOptions `json:"recoveryOptions,omitempty"`
+ // PrebootRecoveryEnableMessageAndURL Enable pre-boot recovery message and Url. If requireStartupAuthentication is false, this value does not affect.
+ PrebootRecoveryEnableMessageAndURL *bool `json:"prebootRecoveryEnableMessageAndUrl,omitempty"`
+ // PrebootRecoveryMessage Defines a custom recovery message.
+ PrebootRecoveryMessage *string `json:"prebootRecoveryMessage,omitempty"`
+ // PrebootRecoveryURL Defines a custom recovery URL.
+ PrebootRecoveryURL *string `json:"prebootRecoveryUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBlock.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBlock.go
new file mode 100644
index 00000000..63265cfa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBlock.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BlockAccessAction undocumented
+type BlockAccessAction struct {
+ // DlpActionInfo is the base model of BlockAccessAction
+ DlpActionInfo
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBooking.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBooking.go
new file mode 100644
index 00000000..20c6d777
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBooking.go
@@ -0,0 +1,221 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BookingAppointment Represents a booked appointment of a service by a customer in a business.
+type BookingAppointment struct {
+ // Entity is the base model of BookingAppointment
+ Entity
+ // SelfServiceAppointmentID undocumented
+ SelfServiceAppointmentID *string `json:"selfServiceAppointmentId,omitempty"`
+ // CustomerID The id of the booking customer associated with this appointment.
+ CustomerID *string `json:"customerId,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // CustomerEmailAddress undocumented
+ CustomerEmailAddress *string `json:"customerEmailAddress,omitempty"`
+ // CustomerPhone undocumented
+ CustomerPhone *string `json:"customerPhone,omitempty"`
+ // CustomerLocation undocumented
+ CustomerLocation *Location `json:"customerLocation,omitempty"`
+ // CustomerNotes Notes from the customer associated with this appointment.
+ CustomerNotes *string `json:"customerNotes,omitempty"`
+ // ServiceID The id of the booking service associated with this appointment.
+ ServiceID *string `json:"serviceId,omitempty"`
+ // ServiceName The name of the booking service associated with this appointment.
+ ServiceName *string `json:"serviceName,omitempty"`
+ // Start undocumented
+ Start *DateTimeTimeZone `json:"start,omitempty"`
+ // End undocumented
+ End *DateTimeTimeZone `json:"end,omitempty"`
+ // Duration undocumented
+ Duration *Duration `json:"duration,omitempty"`
+ // PreBuffer undocumented
+ PreBuffer *Duration `json:"preBuffer,omitempty"`
+ // PostBuffer undocumented
+ PostBuffer *Duration `json:"postBuffer,omitempty"`
+ // ServiceLocation undocumented
+ ServiceLocation *Location `json:"serviceLocation,omitempty"`
+ // PriceType undocumented
+ PriceType *BookingPriceType `json:"priceType,omitempty"`
+ // Price undocumented
+ Price *float64 `json:"price,omitempty"`
+ // ServiceNotes undocumented
+ ServiceNotes *string `json:"serviceNotes,omitempty"`
+ // Reminders undocumented
+ Reminders []BookingReminder `json:"reminders,omitempty"`
+ // OptOutOfCustomerEmail undocumented
+ OptOutOfCustomerEmail *bool `json:"optOutOfCustomerEmail,omitempty"`
+ // StaffMemberIDs undocumented
+ StaffMemberIDs []string `json:"staffMemberIds,omitempty"`
+ // InvoiceAmount undocumented
+ InvoiceAmount *float64 `json:"invoiceAmount,omitempty"`
+ // InvoiceDate undocumented
+ InvoiceDate *DateTimeTimeZone `json:"invoiceDate,omitempty"`
+ // InvoiceID undocumented
+ InvoiceID *string `json:"invoiceId,omitempty"`
+ // InvoiceStatus undocumented
+ InvoiceStatus *BookingInvoiceStatus `json:"invoiceStatus,omitempty"`
+ // InvoiceURL undocumented
+ InvoiceURL *string `json:"invoiceUrl,omitempty"`
+}
+
+// BookingBusiness Represents a Microsot Bookings Business.
+type BookingBusiness struct {
+ // BookingNamedEntity is the base model of BookingBusiness
+ BookingNamedEntity
+ // BusinessType undocumented
+ BusinessType *string `json:"businessType,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // Phone undocumented
+ Phone *string `json:"phone,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // WebSiteURL The URL of the business web site.
+ WebSiteURL *string `json:"webSiteUrl,omitempty"`
+ // DefaultCurrencyIso undocumented
+ DefaultCurrencyIso *string `json:"defaultCurrencyIso,omitempty"`
+ // BusinessHours undocumented
+ BusinessHours []BookingWorkHours `json:"businessHours,omitempty"`
+ // SchedulingPolicy undocumented
+ SchedulingPolicy *BookingSchedulingPolicy `json:"schedulingPolicy,omitempty"`
+ // IsPublished undocumented
+ IsPublished *bool `json:"isPublished,omitempty"`
+ // PublicURL undocumented
+ PublicURL *string `json:"publicUrl,omitempty"`
+ // Appointments undocumented
+ Appointments []BookingAppointment `json:"appointments,omitempty"`
+ // CalendarView undocumented
+ CalendarView []BookingAppointment `json:"calendarView,omitempty"`
+ // Customers undocumented
+ Customers []BookingCustomer `json:"customers,omitempty"`
+ // Services undocumented
+ Services []BookingService `json:"services,omitempty"`
+ // StaffMembers undocumented
+ StaffMembers []BookingStaffMember `json:"staffMembers,omitempty"`
+}
+
+// BookingCurrency undocumented
+type BookingCurrency struct {
+ // Entity is the base model of BookingCurrency
+ Entity
+ // Symbol undocumented
+ Symbol *string `json:"symbol,omitempty"`
+}
+
+// BookingCustomer Represents a customer of the business.
+type BookingCustomer struct {
+ // BookingPerson is the base model of BookingCustomer
+ BookingPerson
+}
+
+// BookingNamedEntity Booking entities that provide a display name.
+type BookingNamedEntity struct {
+ // Entity is the base model of BookingNamedEntity
+ Entity
+ // DisplayName Display name of this entity.
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// BookingPerson Represents a booking customer or staff member.
+type BookingPerson struct {
+ // BookingNamedEntity is the base model of BookingPerson
+ BookingNamedEntity
+ // EmailAddress The e-mail address of this person.
+ EmailAddress *string `json:"emailAddress,omitempty"`
+}
+
+// BookingReminder undocumented
+type BookingReminder struct {
+ // Object is the base model of BookingReminder
+ Object
+ // Offset How much time before an appointment the reminder should be sent.
+ Offset *Duration `json:"offset,omitempty"`
+ // Recipients Who should receive the reminder.
+ Recipients *BookingReminderRecipients `json:"recipients,omitempty"`
+ // Message Message to send.
+ Message *string `json:"message,omitempty"`
+}
+
+// BookingSchedulingPolicy undocumented
+type BookingSchedulingPolicy struct {
+ // Object is the base model of BookingSchedulingPolicy
+ Object
+ // TimeSlotInterval Duration of each time slot.
+ TimeSlotInterval *Duration `json:"timeSlotInterval,omitempty"`
+ // MinimumLeadTime Minimum lead time for bookings and cancellations.
+ MinimumLeadTime *Duration `json:"minimumLeadTime,omitempty"`
+ // MaximumAdvance Maximum number of days in advance that a booking can be made.
+ MaximumAdvance *Duration `json:"maximumAdvance,omitempty"`
+ // SendConfirmationsToOwner Notify the business via email when a booking is created or changed.
+ SendConfirmationsToOwner *bool `json:"sendConfirmationsToOwner,omitempty"`
+ // AllowStaffSelection Allow customers to choose a specific person for the booking.
+ AllowStaffSelection *bool `json:"allowStaffSelection,omitempty"`
+}
+
+// BookingService Represents a particular service offered by a booking business.
+type BookingService struct {
+ // BookingNamedEntity is the base model of BookingService
+ BookingNamedEntity
+ // DefaultDuration undocumented
+ DefaultDuration *Duration `json:"defaultDuration,omitempty"`
+ // DefaultLocation undocumented
+ DefaultLocation *Location `json:"defaultLocation,omitempty"`
+ // DefaultPrice undocumented
+ DefaultPrice *float64 `json:"defaultPrice,omitempty"`
+ // DefaultPriceType undocumented
+ DefaultPriceType *BookingPriceType `json:"defaultPriceType,omitempty"`
+ // DefaultReminders The default reminders set in an appointment of this service.
+ DefaultReminders []BookingReminder `json:"defaultReminders,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IsHiddenFromCustomers undocumented
+ IsHiddenFromCustomers *bool `json:"isHiddenFromCustomers,omitempty"`
+ // Notes undocumented
+ Notes *string `json:"notes,omitempty"`
+ // PreBuffer undocumented
+ PreBuffer *Duration `json:"preBuffer,omitempty"`
+ // PostBuffer undocumented
+ PostBuffer *Duration `json:"postBuffer,omitempty"`
+ // SchedulingPolicy undocumented
+ SchedulingPolicy *BookingSchedulingPolicy `json:"schedulingPolicy,omitempty"`
+ // StaffMemberIDs undocumented
+ StaffMemberIDs []string `json:"staffMemberIds,omitempty"`
+}
+
+// BookingStaffMember Represents a staff member who provides services in a business.
+type BookingStaffMember struct {
+ // BookingPerson is the base model of BookingStaffMember
+ BookingPerson
+ // AvailabilityIsAffectedByPersonalCalendar undocumented
+ AvailabilityIsAffectedByPersonalCalendar *bool `json:"availabilityIsAffectedByPersonalCalendar,omitempty"`
+ // ColorIndex undocumented
+ ColorIndex *int `json:"colorIndex,omitempty"`
+ // Role undocumented
+ Role *BookingStaffRole `json:"role,omitempty"`
+ // UseBusinessHours undocumented
+ UseBusinessHours *bool `json:"useBusinessHours,omitempty"`
+ // WorkingHours undocumented
+ WorkingHours []BookingWorkHours `json:"workingHours,omitempty"`
+}
+
+// BookingWorkHours undocumented
+type BookingWorkHours struct {
+ // Object is the base model of BookingWorkHours
+ Object
+ // Day The day of the week represented by this instance.
+ Day *DayOfWeek `json:"day,omitempty"`
+ // TimeSlots A list of start/end times during a day.
+ TimeSlots []BookingWorkTimeSlot `json:"timeSlots,omitempty"`
+}
+
+// BookingWorkTimeSlot undocumented
+type BookingWorkTimeSlot struct {
+ // Object is the base model of BookingWorkTimeSlot
+ Object
+ // Start undocumented
+ Start *TimeOfDay `json:"start,omitempty"`
+ // End undocumented
+ End *TimeOfDay `json:"end,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBoolean.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBoolean.go
new file mode 100644
index 00000000..0491e7b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBoolean.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BooleanColumn undocumented
+type BooleanColumn struct {
+ // Object is the base model of BooleanColumn
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBulk.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBulk.go
new file mode 100644
index 00000000..6fd6c05a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBulk.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BulkManagedDeviceActionResult undocumented
+type BulkManagedDeviceActionResult struct {
+ // Object is the base model of BulkManagedDeviceActionResult
+ Object
+ // SuccessfulDeviceIDs Successful devices
+ SuccessfulDeviceIDs []string `json:"successfulDeviceIds,omitempty"`
+ // FailedDeviceIDs Failed devices
+ FailedDeviceIDs []string `json:"failedDeviceIds,omitempty"`
+ // NotFoundDeviceIDs Not found devices
+ NotFoundDeviceIDs []string `json:"notFoundDeviceIds,omitempty"`
+ // NotSupportedDeviceIDs Not supported devices
+ NotSupportedDeviceIDs []string `json:"notSupportedDeviceIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBundle.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBundle.go
new file mode 100644
index 00000000..beb2281e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBundle.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Bundle undocumented
+type Bundle struct {
+ // Object is the base model of Bundle
+ Object
+ // ChildCount undocumented
+ ChildCount *int `json:"childCount,omitempty"`
+ // Album undocumented
+ Album *Album `json:"album,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelBusiness.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBusiness.go
new file mode 100644
index 00000000..7e0dddf0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelBusiness.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// BusinessFlow undocumented
+type BusinessFlow struct {
+ // Entity is the base model of BusinessFlow
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DeDuplicationID undocumented
+ DeDuplicationID *string `json:"deDuplicationId,omitempty"`
+ // SchemaID undocumented
+ SchemaID *string `json:"schemaId,omitempty"`
+ // CustomData undocumented
+ CustomData *string `json:"customData,omitempty"`
+ // RecordVersion undocumented
+ RecordVersion *string `json:"recordVersion,omitempty"`
+ // Policy undocumented
+ Policy *GovernancePolicy `json:"policy,omitempty"`
+ // PolicyTemplateID undocumented
+ PolicyTemplateID *string `json:"policyTemplateId,omitempty"`
+ // Settings undocumented
+ Settings *BusinessFlowSettings `json:"settings,omitempty"`
+}
+
+// BusinessFlowSettings undocumented
+type BusinessFlowSettings struct {
+ // AccessReviewSettings is the base model of BusinessFlowSettings
+ AccessReviewSettings
+ // DurationInDays undocumented
+ DurationInDays *int `json:"durationInDays,omitempty"`
+}
+
+// BusinessFlowTemplate undocumented
+type BusinessFlowTemplate struct {
+ // Entity is the base model of BusinessFlowTemplate
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalculated.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalculated.go
new file mode 100644
index 00000000..2447df41
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalculated.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CalculatedColumn undocumented
+type CalculatedColumn struct {
+ // Object is the base model of CalculatedColumn
+ Object
+ // Format undocumented
+ Format *string `json:"format,omitempty"`
+ // Formula undocumented
+ Formula *string `json:"formula,omitempty"`
+ // OutputType undocumented
+ OutputType *string `json:"outputType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalendar.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalendar.go
new file mode 100644
index 00000000..672036fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCalendar.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Calendar undocumented
+type Calendar struct {
+ // Entity is the base model of Calendar
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Color undocumented
+ Color *CalendarColor `json:"color,omitempty"`
+ // HexColor undocumented
+ HexColor *string `json:"hexColor,omitempty"`
+ // IsDefaultCalendar undocumented
+ IsDefaultCalendar *bool `json:"isDefaultCalendar,omitempty"`
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // CanShare undocumented
+ CanShare *bool `json:"canShare,omitempty"`
+ // CanViewPrivateItems undocumented
+ CanViewPrivateItems *bool `json:"canViewPrivateItems,omitempty"`
+ // IsShared undocumented
+ IsShared *bool `json:"isShared,omitempty"`
+ // IsSharedWithMe undocumented
+ IsSharedWithMe *bool `json:"isSharedWithMe,omitempty"`
+ // CanEdit undocumented
+ CanEdit *bool `json:"canEdit,omitempty"`
+ // Owner undocumented
+ Owner *EmailAddress `json:"owner,omitempty"`
+ // AllowedOnlineMeetingProviders undocumented
+ AllowedOnlineMeetingProviders []OnlineMeetingProviderType `json:"allowedOnlineMeetingProviders,omitempty"`
+ // DefaultOnlineMeetingProvider undocumented
+ DefaultOnlineMeetingProvider *OnlineMeetingProviderType `json:"defaultOnlineMeetingProvider,omitempty"`
+ // IsTallyingResponses undocumented
+ IsTallyingResponses *bool `json:"isTallyingResponses,omitempty"`
+ // IsRemovable undocumented
+ IsRemovable *bool `json:"isRemovable,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // CalendarPermissions undocumented
+ CalendarPermissions []CalendarPermission `json:"calendarPermissions,omitempty"`
+ // Events undocumented
+ Events []Event `json:"events,omitempty"`
+ // CalendarView undocumented
+ CalendarView []Event `json:"calendarView,omitempty"`
+}
+
+// CalendarGroup undocumented
+type CalendarGroup struct {
+ // Entity is the base model of CalendarGroup
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ClassID undocumented
+ ClassID *UUID `json:"classId,omitempty"`
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // Calendars undocumented
+ Calendars []Calendar `json:"calendars,omitempty"`
+}
+
+// CalendarPermission undocumented
+type CalendarPermission struct {
+ // Entity is the base model of CalendarPermission
+ Entity
+ // EmailAddress undocumented
+ EmailAddress *EmailAddress `json:"emailAddress,omitempty"`
+ // IsRemovable undocumented
+ IsRemovable *bool `json:"isRemovable,omitempty"`
+ // IsInsideOrganization undocumented
+ IsInsideOrganization *bool `json:"isInsideOrganization,omitempty"`
+ // Role undocumented
+ Role *CalendarRoleType `json:"role,omitempty"`
+ // AllowedRoles undocumented
+ AllowedRoles []CalendarRoleType `json:"allowedRoles,omitempty"`
+}
+
+// CalendarSharingMessage undocumented
+type CalendarSharingMessage struct {
+ // Message is the base model of CalendarSharingMessage
+ Message
+ // CanAccept undocumented
+ CanAccept *bool `json:"canAccept,omitempty"`
+ // SuggestedCalendarName undocumented
+ SuggestedCalendarName *string `json:"suggestedCalendarName,omitempty"`
+ // SharingMessageAction undocumented
+ SharingMessageAction *CalendarSharingMessageAction `json:"sharingMessageAction,omitempty"`
+ // SharingMessageActions undocumented
+ SharingMessageActions []CalendarSharingMessageAction `json:"sharingMessageActions,omitempty"`
+}
+
+// CalendarSharingMessageAction undocumented
+type CalendarSharingMessageAction struct {
+ // Object is the base model of CalendarSharingMessageAction
+ Object
+ // Importance undocumented
+ Importance *CalendarSharingActionImportance `json:"importance,omitempty"`
+ // ActionType undocumented
+ ActionType *CalendarSharingActionType `json:"actionType,omitempty"`
+ // Action undocumented
+ Action *CalendarSharingAction `json:"action,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCall.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCall.go
new file mode 100644
index 00000000..0430d408
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCall.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Call undocumented
+type Call struct {
+ // Entity is the base model of Call
+ Entity
+ // State undocumented
+ State *CallState `json:"state,omitempty"`
+ // MediaState undocumented
+ MediaState *CallMediaState `json:"mediaState,omitempty"`
+ // ResultInfo undocumented
+ ResultInfo *ResultInfo `json:"resultInfo,omitempty"`
+ // TerminationReason undocumented
+ TerminationReason *string `json:"terminationReason,omitempty"`
+ // Direction undocumented
+ Direction *CallDirection `json:"direction,omitempty"`
+ // RingingTimeoutInSeconds undocumented
+ RingingTimeoutInSeconds *int `json:"ringingTimeoutInSeconds,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // CallbackURI undocumented
+ CallbackURI *string `json:"callbackUri,omitempty"`
+ // CallRoutes undocumented
+ CallRoutes []CallRoute `json:"callRoutes,omitempty"`
+ // Source undocumented
+ Source *ParticipantInfo `json:"source,omitempty"`
+ // Targets undocumented
+ Targets []InvitationParticipantInfo `json:"targets,omitempty"`
+ // AnsweredBy undocumented
+ AnsweredBy *ParticipantInfo `json:"answeredBy,omitempty"`
+ // RequestedModalities undocumented
+ RequestedModalities []Modality `json:"requestedModalities,omitempty"`
+ // ActiveModalities undocumented
+ ActiveModalities []Modality `json:"activeModalities,omitempty"`
+ // MediaConfig undocumented
+ MediaConfig *MediaConfig `json:"mediaConfig,omitempty"`
+ // ChatInfo undocumented
+ ChatInfo *ChatInfo `json:"chatInfo,omitempty"`
+ // CallOptions undocumented
+ CallOptions *CallOptions `json:"callOptions,omitempty"`
+ // MeetingInfo undocumented
+ MeetingInfo *MeetingInfo `json:"meetingInfo,omitempty"`
+ // MeetingCapability undocumented
+ MeetingCapability *MeetingCapability `json:"meetingCapability,omitempty"`
+ // RoutingPolicies undocumented
+ RoutingPolicies []RoutingPolicy `json:"routingPolicies,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // MyParticipantID undocumented
+ MyParticipantID *string `json:"myParticipantId,omitempty"`
+ // ToneInfo undocumented
+ ToneInfo *ToneInfo `json:"toneInfo,omitempty"`
+ // IncomingContext undocumented
+ IncomingContext *IncomingContext `json:"incomingContext,omitempty"`
+ // Participants undocumented
+ Participants []Participant `json:"participants,omitempty"`
+ // AudioRoutingGroups undocumented
+ AudioRoutingGroups []AudioRoutingGroup `json:"audioRoutingGroups,omitempty"`
+ // Operations undocumented
+ Operations []CommsOperation `json:"operations,omitempty"`
+}
+
+// CallActivityStatistics undocumented
+type CallActivityStatistics struct {
+ // ActivityStatistics is the base model of CallActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *Duration `json:"afterHours,omitempty"`
+}
+
+// CallMediaState undocumented
+type CallMediaState struct {
+ // Object is the base model of CallMediaState
+ Object
+ // Audio undocumented
+ Audio *MediaState `json:"audio,omitempty"`
+}
+
+// CallOptions undocumented
+type CallOptions struct {
+ // Object is the base model of CallOptions
+ Object
+}
+
+// CallRoute undocumented
+type CallRoute struct {
+ // Object is the base model of CallRoute
+ Object
+ // RoutingType undocumented
+ RoutingType *RoutingType `json:"routingType,omitempty"`
+ // Original undocumented
+ Original *IdentitySet `json:"original,omitempty"`
+ // Final undocumented
+ Final *IdentitySet `json:"final,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCancel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCancel.go
new file mode 100644
index 00000000..a61dc475
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCancel.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CancelMediaProcessingOperation undocumented
+type CancelMediaProcessingOperation struct {
+ // CommsOperation is the base model of CancelMediaProcessingOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCart.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCart.go
new file mode 100644
index 00000000..a719a6a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCart.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CartToClassAssociation CartToClassAssociation for associating device carts with classrooms.
+type CartToClassAssociation struct {
+ // Entity is the base model of CartToClassAssociation
+ Entity
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Version Version of the CartToClassAssociation.
+ Version *int `json:"version,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Admin provided description of the CartToClassAssociation.
+ Description *string `json:"description,omitempty"`
+ // DeviceCartIDs Identifiers of device carts to be associated with classes.
+ DeviceCartIDs []string `json:"deviceCartIds,omitempty"`
+ // ClassroomIDs Identifiers of classrooms to be associated with device carts.
+ ClassroomIDs []string `json:"classroomIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertificate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertificate.go
new file mode 100644
index 00000000..29697ce2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertificate.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CertificateAuthority undocumented
+type CertificateAuthority struct {
+ // Object is the base model of CertificateAuthority
+ Object
+ // IsRootAuthority undocumented
+ IsRootAuthority *bool `json:"isRootAuthority,omitempty"`
+ // CertificateRevocationListURL undocumented
+ CertificateRevocationListURL *string `json:"certificateRevocationListUrl,omitempty"`
+ // DeltaCertificateRevocationListURL undocumented
+ DeltaCertificateRevocationListURL *string `json:"deltaCertificateRevocationListUrl,omitempty"`
+ // Certificate undocumented
+ Certificate *Binary `json:"certificate,omitempty"`
+ // Issuer undocumented
+ Issuer *string `json:"issuer,omitempty"`
+ // IssuerSki undocumented
+ IssuerSki *string `json:"issuerSki,omitempty"`
+}
+
+// CertificateBasedAuthConfiguration undocumented
+type CertificateBasedAuthConfiguration struct {
+ // Entity is the base model of CertificateBasedAuthConfiguration
+ Entity
+ // CertificateAuthorities undocumented
+ CertificateAuthorities []CertificateAuthority `json:"certificateAuthorities,omitempty"`
+}
+
+// CertificateConnectorSetting undocumented
+type CertificateConnectorSetting struct {
+ // Object is the base model of CertificateConnectorSetting
+ Object
+ // Status Certificate connector status
+ Status *int `json:"status,omitempty"`
+ // CertExpiryTime Certificate expire time
+ CertExpiryTime *time.Time `json:"certExpiryTime,omitempty"`
+ // EnrollmentError Certificate connector enrollment error
+ EnrollmentError *string `json:"enrollmentError,omitempty"`
+ // LastConnectorConnectionTime Last time certificate connector connected
+ LastConnectorConnectionTime *time.Time `json:"lastConnectorConnectionTime,omitempty"`
+ // ConnectorVersion Version of certificate connector
+ ConnectorVersion *string `json:"connectorVersion,omitempty"`
+ // LastUploadVersion Version of last uploaded certificate connector
+ LastUploadVersion *int `json:"lastUploadVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertification.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertification.go
new file mode 100644
index 00000000..35d8e177
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCertification.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CertificationControl undocumented
+type CertificationControl struct {
+ // Object is the base model of CertificationControl
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelChange.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChange.go
new file mode 100644
index 00000000..15532f2b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChange.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ChangeTrackedEntity undocumented
+type ChangeTrackedEntity struct {
+ // Entity is the base model of ChangeTrackedEntity
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelChannel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChannel.go
new file mode 100644
index 00000000..033e5907
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChannel.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Channel undocumented
+type Channel struct {
+ // Entity is the base model of Channel
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IsFavoriteByDefault undocumented
+ IsFavoriteByDefault *bool `json:"isFavoriteByDefault,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // MembershipType undocumented
+ MembershipType *ChannelMembershipType `json:"membershipType,omitempty"`
+ // Messages undocumented
+ Messages []ChatMessage `json:"messages,omitempty"`
+ // Tabs undocumented
+ Tabs []TeamsTab `json:"tabs,omitempty"`
+ // Members undocumented
+ Members []ConversationMember `json:"members,omitempty"`
+ // FilesFolder undocumented
+ FilesFolder *DriveItem `json:"filesFolder,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelChat.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChat.go
new file mode 100644
index 00000000..77da3278
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChat.go
@@ -0,0 +1,169 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Chat undocumented
+type Chat struct {
+ // Entity is the base model of Chat
+ Entity
+ // Topic undocumented
+ Topic *string `json:"topic,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // Members undocumented
+ Members []ConversationMember `json:"members,omitempty"`
+ // Messages undocumented
+ Messages []ChatMessage `json:"messages,omitempty"`
+ // InstalledApps undocumented
+ InstalledApps []TeamsAppInstallation `json:"installedApps,omitempty"`
+}
+
+// ChatActivityStatistics undocumented
+type ChatActivityStatistics struct {
+ // ActivityStatistics is the base model of ChatActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *Duration `json:"afterHours,omitempty"`
+}
+
+// ChatInfo undocumented
+type ChatInfo struct {
+ // Object is the base model of ChatInfo
+ Object
+ // ThreadID undocumented
+ ThreadID *string `json:"threadId,omitempty"`
+ // MessageID undocumented
+ MessageID *string `json:"messageId,omitempty"`
+ // ReplyChainMessageID undocumented
+ ReplyChainMessageID *string `json:"replyChainMessageId,omitempty"`
+}
+
+// ChatMembersNotificationAudience undocumented
+type ChatMembersNotificationAudience struct {
+ // Object is the base model of ChatMembersNotificationAudience
+ Object
+}
+
+// ChatMessage undocumented
+type ChatMessage struct {
+ // Entity is the base model of ChatMessage
+ Entity
+ // ReplyToID undocumented
+ ReplyToID *string `json:"replyToId,omitempty"`
+ // From undocumented
+ From *IdentitySet `json:"from,omitempty"`
+ // Etag undocumented
+ Etag *string `json:"etag,omitempty"`
+ // MessageType undocumented
+ MessageType *ChatMessageType `json:"messageType,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DeletedDateTime undocumented
+ DeletedDateTime *time.Time `json:"deletedDateTime,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // Summary undocumented
+ Summary *string `json:"summary,omitempty"`
+ // Attachments undocumented
+ Attachments []ChatMessageAttachment `json:"attachments,omitempty"`
+ // Mentions undocumented
+ Mentions []ChatMessageMention `json:"mentions,omitempty"`
+ // Importance undocumented
+ Importance *ChatMessageImportance `json:"importance,omitempty"`
+ // PolicyViolation undocumented
+ PolicyViolation *ChatMessagePolicyViolation `json:"policyViolation,omitempty"`
+ // Reactions undocumented
+ Reactions []ChatMessageReaction `json:"reactions,omitempty"`
+ // Locale undocumented
+ Locale *string `json:"locale,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // Replies undocumented
+ Replies []ChatMessage `json:"replies,omitempty"`
+ // HostedContents undocumented
+ HostedContents []ChatMessageHostedContent `json:"hostedContents,omitempty"`
+}
+
+// ChatMessageAttachment undocumented
+type ChatMessageAttachment struct {
+ // Object is the base model of ChatMessageAttachment
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ThumbnailURL undocumented
+ ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
+}
+
+// ChatMessageHostedContent undocumented
+type ChatMessageHostedContent struct {
+ // Entity is the base model of ChatMessageHostedContent
+ Entity
+}
+
+// ChatMessageMention undocumented
+type ChatMessageMention struct {
+ // Object is the base model of ChatMessageMention
+ Object
+ // ID undocumented
+ ID *int `json:"id,omitempty"`
+ // MentionText undocumented
+ MentionText *string `json:"mentionText,omitempty"`
+ // Mentioned undocumented
+ Mentioned *IdentitySet `json:"mentioned,omitempty"`
+}
+
+// ChatMessagePolicyViolation undocumented
+type ChatMessagePolicyViolation struct {
+ // Object is the base model of ChatMessagePolicyViolation
+ Object
+ // DlpAction undocumented
+ DlpAction *ChatMessagePolicyViolationDlpActionTypes `json:"dlpAction,omitempty"`
+ // JustificationText undocumented
+ JustificationText *string `json:"justificationText,omitempty"`
+ // PolicyTip undocumented
+ PolicyTip *ChatMessagePolicyViolationPolicyTip `json:"policyTip,omitempty"`
+ // UserAction undocumented
+ UserAction *ChatMessagePolicyViolationUserActionTypes `json:"userAction,omitempty"`
+ // VerdictDetails undocumented
+ VerdictDetails *ChatMessagePolicyViolationVerdictDetailsTypes `json:"verdictDetails,omitempty"`
+}
+
+// ChatMessagePolicyViolationPolicyTip undocumented
+type ChatMessagePolicyViolationPolicyTip struct {
+ // Object is the base model of ChatMessagePolicyViolationPolicyTip
+ Object
+ // GeneralText undocumented
+ GeneralText *string `json:"generalText,omitempty"`
+ // ComplianceURL undocumented
+ ComplianceURL *string `json:"complianceUrl,omitempty"`
+ // MatchedConditionDescriptions undocumented
+ MatchedConditionDescriptions []string `json:"matchedConditionDescriptions,omitempty"`
+}
+
+// ChatMessageReaction undocumented
+type ChatMessageReaction struct {
+ // Object is the base model of ChatMessageReaction
+ Object
+ // ReactionType undocumented
+ ReactionType *string `json:"reactionType,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // User undocumented
+ User *IdentitySet `json:"user,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelChoice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChoice.go
new file mode 100644
index 00000000..58bbc919
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelChoice.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ChoiceColumn undocumented
+type ChoiceColumn struct {
+ // Object is the base model of ChoiceColumn
+ Object
+ // AllowTextEntry undocumented
+ AllowTextEntry *bool `json:"allowTextEntry,omitempty"`
+ // Choices undocumented
+ Choices []string `json:"choices,omitempty"`
+ // DisplayAs undocumented
+ DisplayAs *string `json:"displayAs,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCircular.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCircular.go
new file mode 100644
index 00000000..85fa9195
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCircular.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CircularGeofenceManagementCondition Contains the information to define a circular geo-fence management condition, an area of interest, to monitor.
+type CircularGeofenceManagementCondition struct {
+ // LocationManagementCondition is the base model of CircularGeofenceManagementCondition
+ LocationManagementCondition
+ // Latitude Latitude in degrees, between -90 and +90 inclusive.
+ Latitude *float64 `json:"latitude,omitempty"`
+ // Longitude Longitude in degrees, between -180 and +180 inclusive.
+ Longitude *float64 `json:"longitude,omitempty"`
+ // RadiusInMeters Radius in meters.
+ RadiusInMeters *float64 `json:"radiusInMeters,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassifcation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassifcation.go
new file mode 100644
index 00000000..cb76c084
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassifcation.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ClassifcationErrorBase undocumented
+type ClassifcationErrorBase struct {
+ // Object is the base model of ClassifcationErrorBase
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // InnerError undocumented
+ InnerError *ClassificationInnerError `json:"innerError,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassification.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassification.go
new file mode 100644
index 00000000..e437a5b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelClassification.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ClassificationError undocumented
+type ClassificationError struct {
+ // ClassifcationErrorBase is the base model of ClassificationError
+ ClassifcationErrorBase
+ // Details undocumented
+ Details []ClassifcationErrorBase `json:"details,omitempty"`
+}
+
+// ClassificationInnerError undocumented
+type ClassificationInnerError struct {
+ // Object is the base model of ClassificationInnerError
+ Object
+ // ErrorDateTime undocumented
+ ErrorDateTime *time.Time `json:"errorDateTime,omitempty"`
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // ClientRequestID undocumented
+ ClientRequestID *string `json:"clientRequestId,omitempty"`
+ // ActivityID undocumented
+ ActivityID *string `json:"activityId,omitempty"`
+}
+
+// ClassificationJobResponse undocumented
+type ClassificationJobResponse struct {
+ // JobResponseBase is the base model of ClassificationJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *DetectedSensitiveContentWrapper `json:"result,omitempty"`
+}
+
+// ClassificationResult undocumented
+type ClassificationResult struct {
+ // Object is the base model of ClassificationResult
+ Object
+ // SensitiveTypeID undocumented
+ SensitiveTypeID *UUID `json:"sensitiveTypeId,omitempty"`
+ // Count undocumented
+ Count *int `json:"count,omitempty"`
+ // ConfidenceLevel undocumented
+ ConfidenceLevel *int `json:"confidenceLevel,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCloud.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCloud.go
new file mode 100644
index 00000000..ab33298b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCloud.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CloudAppSecurityProfile undocumented
+type CloudAppSecurityProfile struct {
+ // Entity is the base model of CloudAppSecurityProfile
+ Entity
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DeploymentPackageURL undocumented
+ DeploymentPackageURL *string `json:"deploymentPackageUrl,omitempty"`
+ // DestinationServiceName undocumented
+ DestinationServiceName *string `json:"destinationServiceName,omitempty"`
+ // IsSigned undocumented
+ IsSigned *bool `json:"isSigned,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Manifest undocumented
+ Manifest *string `json:"manifest,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // PermissionsRequired undocumented
+ PermissionsRequired *ApplicationPermissionsRequired `json:"permissionsRequired,omitempty"`
+ // Platform undocumented
+ Platform *string `json:"platform,omitempty"`
+ // PolicyName undocumented
+ PolicyName *string `json:"policyName,omitempty"`
+ // Publisher undocumented
+ Publisher *string `json:"publisher,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
+
+// CloudAppSecuritySessionControl undocumented
+type CloudAppSecuritySessionControl struct {
+ // ConditionalAccessSessionControl is the base model of CloudAppSecuritySessionControl
+ ConditionalAccessSessionControl
+ // CloudAppSecurityType undocumented
+ CloudAppSecurityType *CloudAppSecuritySessionControlType `json:"cloudAppSecurityType,omitempty"`
+}
+
+// CloudAppSecurityState undocumented
+type CloudAppSecurityState struct {
+ // Object is the base model of CloudAppSecurityState
+ Object
+ // DestinationServiceIP undocumented
+ DestinationServiceIP *string `json:"destinationServiceIp,omitempty"`
+ // DestinationServiceName undocumented
+ DestinationServiceName *string `json:"destinationServiceName,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+}
+
+// CloudCommunications undocumented
+type CloudCommunications struct {
+ // Entity is the base model of CloudCommunications
+ Entity
+ // Calls undocumented
+ Calls []Call `json:"calls,omitempty"`
+ // OnlineMeetings undocumented
+ OnlineMeetings []OnlineMeeting `json:"onlineMeetings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelColumn.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelColumn.go
new file mode 100644
index 00000000..34c73677
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelColumn.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ColumnDefinition undocumented
+type ColumnDefinition struct {
+ // Entity is the base model of ColumnDefinition
+ Entity
+ // Boolean undocumented
+ Boolean *BooleanColumn `json:"boolean,omitempty"`
+ // Calculated undocumented
+ Calculated *CalculatedColumn `json:"calculated,omitempty"`
+ // Choice undocumented
+ Choice *ChoiceColumn `json:"choice,omitempty"`
+ // ColumnGroup undocumented
+ ColumnGroup *string `json:"columnGroup,omitempty"`
+ // Currency undocumented
+ Currency *CurrencyColumn `json:"currency,omitempty"`
+ // DateTime undocumented
+ DateTime *DateTimeColumn `json:"dateTime,omitempty"`
+ // DefaultValue undocumented
+ DefaultValue *DefaultColumnValue `json:"defaultValue,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // EnforceUniqueValues undocumented
+ EnforceUniqueValues *bool `json:"enforceUniqueValues,omitempty"`
+ // Geolocation undocumented
+ Geolocation *GeolocationColumn `json:"geolocation,omitempty"`
+ // Hidden undocumented
+ Hidden *bool `json:"hidden,omitempty"`
+ // Indexed undocumented
+ Indexed *bool `json:"indexed,omitempty"`
+ // Lookup undocumented
+ Lookup *LookupColumn `json:"lookup,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Number undocumented
+ Number *NumberColumn `json:"number,omitempty"`
+ // PersonOrGroup undocumented
+ PersonOrGroup *PersonOrGroupColumn `json:"personOrGroup,omitempty"`
+ // ReadOnly undocumented
+ ReadOnly *bool `json:"readOnly,omitempty"`
+ // Required undocumented
+ Required *bool `json:"required,omitempty"`
+ // Text undocumented
+ Text *TextColumn `json:"text,omitempty"`
+}
+
+// ColumnLink undocumented
+type ColumnLink struct {
+ // Entity is the base model of ColumnLink
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCommand.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCommand.go
new file mode 100644
index 00000000..a4d6e887
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCommand.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Command undocumented
+type Command struct {
+ // Entity is the base model of Command
+ Entity
+ // Status undocumented
+ Status *string `json:"Status,omitempty"`
+ // Type undocumented
+ Type *string `json:"Type,omitempty"`
+ // AppServiceName undocumented
+ AppServiceName *string `json:"AppServiceName,omitempty"`
+ // PackageFamilyName undocumented
+ PackageFamilyName *string `json:"PackageFamilyName,omitempty"`
+ // Error undocumented
+ Error *string `json:"Error,omitempty"`
+ // Payload undocumented
+ Payload *PayloadRequestObject `json:"Payload,omitempty"`
+ // PermissionTicket undocumented
+ PermissionTicket *string `json:"PermissionTicket,omitempty"`
+ // PostBackURI undocumented
+ PostBackURI *string `json:"PostBackUri,omitempty"`
+ // Responsepayload undocumented
+ Responsepayload *PayloadResponse `json:"responsepayload,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelComment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComment.go
new file mode 100644
index 00000000..2b7daaef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComment.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CommentAction undocumented
+type CommentAction struct {
+ // Object is the base model of CommentAction
+ Object
+ // IsReply undocumented
+ IsReply *bool `json:"isReply,omitempty"`
+ // ParentAuthor undocumented
+ ParentAuthor *IdentitySet `json:"parentAuthor,omitempty"`
+ // Participants undocumented
+ Participants []IdentitySet `json:"participants,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelComms.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComms.go
new file mode 100644
index 00000000..74334b77
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComms.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CommsApplication undocumented
+type CommsApplication struct {
+ // Entity is the base model of CommsApplication
+ Entity
+ // Calls undocumented
+ Calls []Call `json:"calls,omitempty"`
+ // OnlineMeetings undocumented
+ OnlineMeetings []OnlineMeeting `json:"onlineMeetings,omitempty"`
+}
+
+// CommsNotification undocumented
+type CommsNotification struct {
+ // Object is the base model of CommsNotification
+ Object
+ // ChangeType undocumented
+ ChangeType *ChangeType `json:"changeType,omitempty"`
+ // ResourceURL undocumented
+ ResourceURL *string `json:"resourceUrl,omitempty"`
+}
+
+// CommsNotifications undocumented
+type CommsNotifications struct {
+ // Object is the base model of CommsNotifications
+ Object
+ // Value undocumented
+ Value []CommsNotification `json:"value,omitempty"`
+}
+
+// CommsOperation undocumented
+type CommsOperation struct {
+ // Entity is the base model of CommsOperation
+ Entity
+ // Status undocumented
+ Status *OperationStatus `json:"status,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+ // ResultInfo undocumented
+ ResultInfo *ResultInfo `json:"resultInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompany.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompany.go
new file mode 100644
index 00000000..7d792dd8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompany.go
@@ -0,0 +1,149 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Company undocumented
+type Company struct {
+ // Entity is the base model of Company
+ Entity
+ // SystemVersion undocumented
+ SystemVersion *string `json:"systemVersion,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // BusinessProfileID undocumented
+ BusinessProfileID *string `json:"businessProfileId,omitempty"`
+ // Items undocumented
+ Items []Item `json:"items,omitempty"`
+ // Customers undocumented
+ Customers []Customer `json:"customers,omitempty"`
+ // Vendors undocumented
+ Vendors []Vendor `json:"vendors,omitempty"`
+ // CompanyInformation undocumented
+ CompanyInformation []CompanyInformation `json:"companyInformation,omitempty"`
+ // SalesInvoices undocumented
+ SalesInvoices []SalesInvoice `json:"salesInvoices,omitempty"`
+ // SalesInvoiceLines undocumented
+ SalesInvoiceLines []SalesInvoiceLine `json:"salesInvoiceLines,omitempty"`
+ // CustomerPaymentJournals undocumented
+ CustomerPaymentJournals []CustomerPaymentJournal `json:"customerPaymentJournals,omitempty"`
+ // CustomerPayments undocumented
+ CustomerPayments []CustomerPayment `json:"customerPayments,omitempty"`
+ // Accounts undocumented
+ Accounts []Account `json:"accounts,omitempty"`
+ // TaxGroups undocumented
+ TaxGroups []TaxGroup `json:"taxGroups,omitempty"`
+ // Journals undocumented
+ Journals []Journal `json:"journals,omitempty"`
+ // JournalLines undocumented
+ JournalLines []JournalLine `json:"journalLines,omitempty"`
+ // Employees undocumented
+ Employees []Employee `json:"employees,omitempty"`
+ // GeneralLedgerEntries undocumented
+ GeneralLedgerEntries []GeneralLedgerEntry `json:"generalLedgerEntries,omitempty"`
+ // Currencies undocumented
+ Currencies []Currency `json:"currencies,omitempty"`
+ // PaymentMethods undocumented
+ PaymentMethods []PaymentMethod `json:"paymentMethods,omitempty"`
+ // Dimensions undocumented
+ Dimensions []Dimension `json:"dimensions,omitempty"`
+ // DimensionValues undocumented
+ DimensionValues []DimensionValue `json:"dimensionValues,omitempty"`
+ // PaymentTerms undocumented
+ PaymentTerms []PaymentTerm `json:"paymentTerms,omitempty"`
+ // ShipmentMethods undocumented
+ ShipmentMethods []ShipmentMethod `json:"shipmentMethods,omitempty"`
+ // ItemCategories undocumented
+ ItemCategories []ItemCategory `json:"itemCategories,omitempty"`
+ // CountriesRegions undocumented
+ CountriesRegions []CountryRegion `json:"countriesRegions,omitempty"`
+ // SalesOrders undocumented
+ SalesOrders []SalesOrder `json:"salesOrders,omitempty"`
+ // SalesOrderLines undocumented
+ SalesOrderLines []SalesOrderLine `json:"salesOrderLines,omitempty"`
+ // UnitsOfMeasure undocumented
+ UnitsOfMeasure []UnitOfMeasure `json:"unitsOfMeasure,omitempty"`
+ // AgedAccountsReceivable undocumented
+ AgedAccountsReceivable []AgedAccountsReceivable `json:"agedAccountsReceivable,omitempty"`
+ // AgedAccountsPayable undocumented
+ AgedAccountsPayable []AgedAccountsPayable `json:"agedAccountsPayable,omitempty"`
+ // TaxAreas undocumented
+ TaxAreas []TaxArea `json:"taxAreas,omitempty"`
+ // SalesQuotes undocumented
+ SalesQuotes []SalesQuote `json:"salesQuotes,omitempty"`
+ // SalesQuoteLines undocumented
+ SalesQuoteLines []SalesQuoteLine `json:"salesQuoteLines,omitempty"`
+ // SalesCreditMemos undocumented
+ SalesCreditMemos []SalesCreditMemo `json:"salesCreditMemos,omitempty"`
+ // SalesCreditMemoLines undocumented
+ SalesCreditMemoLines []SalesCreditMemoLine `json:"salesCreditMemoLines,omitempty"`
+ // PurchaseInvoices undocumented
+ PurchaseInvoices []PurchaseInvoice `json:"purchaseInvoices,omitempty"`
+ // PurchaseInvoiceLines undocumented
+ PurchaseInvoiceLines []PurchaseInvoiceLine `json:"purchaseInvoiceLines,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+}
+
+// CompanyDetail undocumented
+type CompanyDetail struct {
+ // Object is the base model of CompanyDetail
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Pronunciation undocumented
+ Pronunciation *string `json:"pronunciation,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
+
+// CompanyInformation undocumented
+type CompanyInformation struct {
+ // Entity is the base model of CompanyInformation
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Address undocumented
+ Address *PostalAddressType `json:"address,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // FaxNumber undocumented
+ FaxNumber *string `json:"faxNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // Website undocumented
+ Website *string `json:"website,omitempty"`
+ // TaxRegistrationNumber undocumented
+ TaxRegistrationNumber *string `json:"taxRegistrationNumber,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // CurrentFiscalYearStartDate undocumented
+ CurrentFiscalYearStartDate *Date `json:"currentFiscalYearStartDate,omitempty"`
+ // Industry undocumented
+ Industry *string `json:"industry,omitempty"`
+ // Picture undocumented
+ Picture *Stream `json:"picture,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// CompanyPortalBlockedAction undocumented
+type CompanyPortalBlockedAction struct {
+ // Object is the base model of CompanyPortalBlockedAction
+ Object
+ // Platform Device OS/Platform
+ Platform *DevicePlatformType `json:"platform,omitempty"`
+ // OwnerType Device ownership type
+ OwnerType *OwnerType `json:"ownerType,omitempty"`
+ // Action Device Action
+ Action *CompanyPortalAction `json:"action,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelComplex.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComplex.go
new file mode 100644
index 00000000..032ff849
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelComplex.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ComplexExtensionValue undocumented
+type ComplexExtensionValue struct {
+ // Object is the base model of ComplexExtensionValue
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompliance.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompliance.go
new file mode 100644
index 00000000..ca88c6f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCompliance.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ComplianceInformation undocumented
+type ComplianceInformation struct {
+ // Object is the base model of ComplianceInformation
+ Object
+ // CertificationControls undocumented
+ CertificationControls []CertificationControl `json:"certificationControls,omitempty"`
+ // CertificationName undocumented
+ CertificationName *string `json:"certificationName,omitempty"`
+}
+
+// ComplianceManagementPartner Compliance management partner for all platforms
+type ComplianceManagementPartner struct {
+ // Entity is the base model of ComplianceManagementPartner
+ Entity
+ // LastHeartbeatDateTime Timestamp of last heartbeat after admin onboarded to the compliance management partner
+ LastHeartbeatDateTime *time.Time `json:"lastHeartbeatDateTime,omitempty"`
+ // PartnerState Partner state of this tenant
+ PartnerState *DeviceManagementPartnerTenantState `json:"partnerState,omitempty"`
+ // DisplayName Partner display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // MacOsOnboarded Partner onboarded for Mac devices.
+ MacOsOnboarded *bool `json:"macOsOnboarded,omitempty"`
+ // WindowsOnboarded Partner onboarded for Windows devices.
+ WindowsOnboarded *bool `json:"windowsOnboarded,omitempty"`
+ // AndroidOnboarded Partner onboarded for Android devices.
+ AndroidOnboarded *bool `json:"androidOnboarded,omitempty"`
+ // IOSOnboarded Partner onboarded for ios devices.
+ IOSOnboarded *bool `json:"iosOnboarded,omitempty"`
+ // MacOsEnrollmentAssignments User groups which enroll Mac devices through partner.
+ MacOsEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"macOsEnrollmentAssignments,omitempty"`
+ // WindowsEnrollmentAssignments User groups which enroll Windows devices through partner.
+ WindowsEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"windowsEnrollmentAssignments,omitempty"`
+ // AndroidEnrollmentAssignments User groups which enroll Android devices through partner.
+ AndroidEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"androidEnrollmentAssignments,omitempty"`
+ // IOSEnrollmentAssignments User groups which enroll ios devices through partner.
+ IOSEnrollmentAssignments []ComplianceManagementPartnerAssignment `json:"iosEnrollmentAssignments,omitempty"`
+}
+
+// ComplianceManagementPartnerAssignment undocumented
+type ComplianceManagementPartnerAssignment struct {
+ // Object is the base model of ComplianceManagementPartnerAssignment
+ Object
+ // Target Group assignment target.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelConditional.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConditional.go
new file mode 100644
index 00000000..13a53737
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConditional.go
@@ -0,0 +1,153 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ConditionalAccessApplications undocumented
+type ConditionalAccessApplications struct {
+ // Object is the base model of ConditionalAccessApplications
+ Object
+ // IncludeApplications undocumented
+ IncludeApplications []string `json:"includeApplications,omitempty"`
+ // ExcludeApplications undocumented
+ ExcludeApplications []string `json:"excludeApplications,omitempty"`
+ // IncludeUserActions undocumented
+ IncludeUserActions []string `json:"includeUserActions,omitempty"`
+}
+
+// ConditionalAccessConditionSet undocumented
+type ConditionalAccessConditionSet struct {
+ // Object is the base model of ConditionalAccessConditionSet
+ Object
+ // Applications undocumented
+ Applications *ConditionalAccessApplications `json:"applications,omitempty"`
+ // Users undocumented
+ Users *ConditionalAccessUsers `json:"users,omitempty"`
+ // SignInRiskLevels undocumented
+ SignInRiskLevels []RiskLevel `json:"signInRiskLevels,omitempty"`
+ // Platforms undocumented
+ Platforms *ConditionalAccessPlatforms `json:"platforms,omitempty"`
+ // Locations undocumented
+ Locations *ConditionalAccessLocations `json:"locations,omitempty"`
+ // ClientAppTypes undocumented
+ ClientAppTypes []ConditionalAccessClientApp `json:"clientAppTypes,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates *ConditionalAccessDeviceStates `json:"deviceStates,omitempty"`
+}
+
+// ConditionalAccessDeviceStates undocumented
+type ConditionalAccessDeviceStates struct {
+ // Object is the base model of ConditionalAccessDeviceStates
+ Object
+ // IncludeStates undocumented
+ IncludeStates []string `json:"includeStates,omitempty"`
+ // ExcludeStates undocumented
+ ExcludeStates []string `json:"excludeStates,omitempty"`
+}
+
+// ConditionalAccessGrantControls undocumented
+type ConditionalAccessGrantControls struct {
+ // Object is the base model of ConditionalAccessGrantControls
+ Object
+ // Operator undocumented
+ Operator *string `json:"operator,omitempty"`
+ // BuiltInControls undocumented
+ BuiltInControls []ConditionalAccessGrantControl `json:"builtInControls,omitempty"`
+ // CustomAuthenticationFactors undocumented
+ CustomAuthenticationFactors []string `json:"customAuthenticationFactors,omitempty"`
+ // TermsOfUse undocumented
+ TermsOfUse []string `json:"termsOfUse,omitempty"`
+}
+
+// ConditionalAccessLocations undocumented
+type ConditionalAccessLocations struct {
+ // Object is the base model of ConditionalAccessLocations
+ Object
+ // IncludeLocations undocumented
+ IncludeLocations []string `json:"includeLocations,omitempty"`
+ // ExcludeLocations undocumented
+ ExcludeLocations []string `json:"excludeLocations,omitempty"`
+}
+
+// ConditionalAccessPlatforms undocumented
+type ConditionalAccessPlatforms struct {
+ // Object is the base model of ConditionalAccessPlatforms
+ Object
+ // IncludePlatforms undocumented
+ IncludePlatforms []ConditionalAccessDevicePlatform `json:"includePlatforms,omitempty"`
+ // ExcludePlatforms undocumented
+ ExcludePlatforms []ConditionalAccessDevicePlatform `json:"excludePlatforms,omitempty"`
+}
+
+// ConditionalAccessPolicy undocumented
+type ConditionalAccessPolicy struct {
+ // Entity is the base model of ConditionalAccessPolicy
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // State undocumented
+ State *ConditionalAccessPolicyState `json:"state,omitempty"`
+ // Conditions undocumented
+ Conditions *ConditionalAccessConditionSet `json:"conditions,omitempty"`
+ // GrantControls undocumented
+ GrantControls *ConditionalAccessGrantControls `json:"grantControls,omitempty"`
+ // SessionControls undocumented
+ SessionControls *ConditionalAccessSessionControls `json:"sessionControls,omitempty"`
+}
+
+// ConditionalAccessRoot undocumented
+type ConditionalAccessRoot struct {
+ // Entity is the base model of ConditionalAccessRoot
+ Entity
+ // Policies undocumented
+ Policies []ConditionalAccessPolicy `json:"policies,omitempty"`
+ // NamedLocations undocumented
+ NamedLocations []NamedLocation `json:"namedLocations,omitempty"`
+}
+
+// ConditionalAccessSessionControl undocumented
+type ConditionalAccessSessionControl struct {
+ // Object is the base model of ConditionalAccessSessionControl
+ Object
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+}
+
+// ConditionalAccessSessionControls undocumented
+type ConditionalAccessSessionControls struct {
+ // Object is the base model of ConditionalAccessSessionControls
+ Object
+ // ApplicationEnforcedRestrictions undocumented
+ ApplicationEnforcedRestrictions *ApplicationEnforcedRestrictionsSessionControl `json:"applicationEnforcedRestrictions,omitempty"`
+ // CloudAppSecurity undocumented
+ CloudAppSecurity *CloudAppSecuritySessionControl `json:"cloudAppSecurity,omitempty"`
+ // SignInFrequency undocumented
+ SignInFrequency *SignInFrequencySessionControl `json:"signInFrequency,omitempty"`
+ // PersistentBrowser undocumented
+ PersistentBrowser *PersistentBrowserSessionControl `json:"persistentBrowser,omitempty"`
+}
+
+// ConditionalAccessUsers undocumented
+type ConditionalAccessUsers struct {
+ // Object is the base model of ConditionalAccessUsers
+ Object
+ // IncludeUsers undocumented
+ IncludeUsers []string `json:"includeUsers,omitempty"`
+ // ExcludeUsers undocumented
+ ExcludeUsers []string `json:"excludeUsers,omitempty"`
+ // IncludeGroups undocumented
+ IncludeGroups []string `json:"includeGroups,omitempty"`
+ // ExcludeGroups undocumented
+ ExcludeGroups []string `json:"excludeGroups,omitempty"`
+ // IncludeRoles undocumented
+ IncludeRoles []string `json:"includeRoles,omitempty"`
+ // ExcludeRoles undocumented
+ ExcludeRoles []string `json:"excludeRoles,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelConfiguration.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConfiguration.go
new file mode 100644
index 00000000..39d59b05
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConfiguration.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Configuration undocumented
+type Configuration struct {
+ // Object is the base model of Configuration
+ Object
+ // AuthorizedApps undocumented
+ AuthorizedApps []string `json:"authorizedApps,omitempty"`
+}
+
+// ConfigurationManagerAction undocumented
+type ConfigurationManagerAction struct {
+ // Object is the base model of ConfigurationManagerAction
+ Object
+ // Action The action type to trigger on Configuration Manager client
+ Action *ConfigurationManagerActionType `json:"action,omitempty"`
+}
+
+// ConfigurationManagerClientEnabledFeatures undocumented
+type ConfigurationManagerClientEnabledFeatures struct {
+ // Object is the base model of ConfigurationManagerClientEnabledFeatures
+ Object
+ // Inventory Whether inventory is managed by Intune
+ Inventory *bool `json:"inventory,omitempty"`
+ // ModernApps Whether modern application is managed by Intune
+ ModernApps *bool `json:"modernApps,omitempty"`
+ // ResourceAccess Whether resource access is managed by Intune
+ ResourceAccess *bool `json:"resourceAccess,omitempty"`
+ // DeviceConfiguration Whether device configuration is managed by Intune
+ DeviceConfiguration *bool `json:"deviceConfiguration,omitempty"`
+ // CompliancePolicy Whether compliance policy is managed by Intune
+ CompliancePolicy *bool `json:"compliancePolicy,omitempty"`
+ // WindowsUpdateForBusiness Whether Windows Update for Business is managed by Intune
+ WindowsUpdateForBusiness *bool `json:"windowsUpdateForBusiness,omitempty"`
+ // EndpointProtection Whether Endpoint Protection is managed by Intune
+ EndpointProtection *bool `json:"endpointProtection,omitempty"`
+ // OfficeApps Whether Office application is managed by Intune
+ OfficeApps *bool `json:"officeApps,omitempty"`
+}
+
+// ConfigurationManagerClientHealthState undocumented
+type ConfigurationManagerClientHealthState struct {
+ // Object is the base model of ConfigurationManagerClientHealthState
+ Object
+ // State Current configuration manager client state.
+ State *ConfigurationManagerClientState `json:"state,omitempty"`
+ // ErrorCode Error code for failed state.
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // LastSyncDateTime Datetime fo last sync with configuration manager management point.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+}
+
+// ConfigurationManagerClientInformation undocumented
+type ConfigurationManagerClientInformation struct {
+ // Object is the base model of ConfigurationManagerClientInformation
+ Object
+ // ClientIdentifier Configuration Manager Client Id from SCCM
+ ClientIdentifier *string `json:"clientIdentifier,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelConnection.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConnection.go
new file mode 100644
index 00000000..a8d5e3b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConnection.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConnectionOperation undocumented
+type ConnectionOperation struct {
+ // Entity is the base model of ConnectionOperation
+ Entity
+ // Status undocumented
+ Status *ConnectionOperationStatus `json:"status,omitempty"`
+ // Error undocumented
+ Error *ErrorDetail `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelContact.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContact.go
new file mode 100644
index 00000000..72bdbcf9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContact.go
@@ -0,0 +1,105 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Contact undocumented
+type Contact struct {
+ // OutlookItem is the base model of Contact
+ OutlookItem
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // Birthday undocumented
+ Birthday *time.Time `json:"birthday,omitempty"`
+ // FileAs undocumented
+ FileAs *string `json:"fileAs,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // Initials undocumented
+ Initials *string `json:"initials,omitempty"`
+ // MiddleName undocumented
+ MiddleName *string `json:"middleName,omitempty"`
+ // NickName undocumented
+ NickName *string `json:"nickName,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // YomiGivenName undocumented
+ YomiGivenName *string `json:"yomiGivenName,omitempty"`
+ // YomiSurname undocumented
+ YomiSurname *string `json:"yomiSurname,omitempty"`
+ // YomiCompanyName undocumented
+ YomiCompanyName *string `json:"yomiCompanyName,omitempty"`
+ // Generation undocumented
+ Generation *string `json:"generation,omitempty"`
+ // EmailAddresses undocumented
+ EmailAddresses []TypedEmailAddress `json:"emailAddresses,omitempty"`
+ // Websites undocumented
+ Websites []Website `json:"websites,omitempty"`
+ // ImAddresses undocumented
+ ImAddresses []string `json:"imAddresses,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // CompanyName undocumented
+ CompanyName *string `json:"companyName,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // Profession undocumented
+ Profession *string `json:"profession,omitempty"`
+ // AssistantName undocumented
+ AssistantName *string `json:"assistantName,omitempty"`
+ // Manager undocumented
+ Manager *string `json:"manager,omitempty"`
+ // Phones undocumented
+ Phones []Phone `json:"phones,omitempty"`
+ // PostalAddresses undocumented
+ PostalAddresses []PhysicalAddress `json:"postalAddresses,omitempty"`
+ // SpouseName undocumented
+ SpouseName *string `json:"spouseName,omitempty"`
+ // PersonalNotes undocumented
+ PersonalNotes *string `json:"personalNotes,omitempty"`
+ // Children undocumented
+ Children []string `json:"children,omitempty"`
+ // WeddingAnniversary undocumented
+ WeddingAnniversary *Date `json:"weddingAnniversary,omitempty"`
+ // Gender undocumented
+ Gender *string `json:"gender,omitempty"`
+ // IsFavorite undocumented
+ IsFavorite *bool `json:"isFavorite,omitempty"`
+ // Flag undocumented
+ Flag *FollowupFlag `json:"flag,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Photo undocumented
+ Photo *ProfilePhoto `json:"photo,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+}
+
+// ContactFolder undocumented
+type ContactFolder struct {
+ // Entity is the base model of ContactFolder
+ Entity
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // WellKnownName undocumented
+ WellKnownName *string `json:"wellKnownName,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Contacts undocumented
+ Contacts []Contact `json:"contacts,omitempty"`
+ // ChildFolders undocumented
+ ChildFolders []ContactFolder `json:"childFolders,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelContent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContent.go
new file mode 100644
index 00000000..50b13c25
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContent.go
@@ -0,0 +1,99 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ContentClassification undocumented
+type ContentClassification struct {
+ // Object is the base model of ContentClassification
+ Object
+ // SensitiveTypeID undocumented
+ SensitiveTypeID *string `json:"sensitiveTypeId,omitempty"`
+ // UniqueCount undocumented
+ UniqueCount *int `json:"uniqueCount,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+ // Matches undocumented
+ Matches []MatchLocation `json:"matches,omitempty"`
+}
+
+// ContentInfo undocumented
+type ContentInfo struct {
+ // Object is the base model of ContentInfo
+ Object
+ // Format undocumented
+ Format *ContentFormat `json:"format,omitempty"`
+ // State undocumented
+ State *ContentState `json:"state,omitempty"`
+ // Identifier undocumented
+ Identifier *string `json:"identifier,omitempty"`
+ // Metadata undocumented
+ Metadata []KeyValuePair `json:"metadata,omitempty"`
+}
+
+// ContentMetadata undocumented
+type ContentMetadata struct {
+ // Object is the base model of ContentMetadata
+ Object
+}
+
+// ContentProperties undocumented
+type ContentProperties struct {
+ // Object is the base model of ContentProperties
+ Object
+ // Extensions undocumented
+ Extensions []string `json:"extensions,omitempty"`
+ // Metadata undocumented
+ Metadata *ContentMetadata `json:"metadata,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
+}
+
+// ContentType undocumented
+type ContentType struct {
+ // Entity is the base model of ContentType
+ Entity
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Group undocumented
+ Group *string `json:"group,omitempty"`
+ // Hidden undocumented
+ Hidden *bool `json:"hidden,omitempty"`
+ // InheritedFrom undocumented
+ InheritedFrom *ItemReference `json:"inheritedFrom,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Order undocumented
+ Order *ContentTypeOrder `json:"order,omitempty"`
+ // ParentID undocumented
+ ParentID *string `json:"parentId,omitempty"`
+ // ReadOnly undocumented
+ ReadOnly *bool `json:"readOnly,omitempty"`
+ // Sealed undocumented
+ Sealed *bool `json:"sealed,omitempty"`
+ // ColumnLinks undocumented
+ ColumnLinks []ColumnLink `json:"columnLinks,omitempty"`
+}
+
+// ContentTypeInfo undocumented
+type ContentTypeInfo struct {
+ // Object is the base model of ContentTypeInfo
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// ContentTypeOrder undocumented
+type ContentTypeOrder struct {
+ // Object is the base model of ContentTypeOrder
+ Object
+ // Default undocumented
+ Default *bool `json:"default,omitempty"`
+ // Position undocumented
+ Position *int `json:"position,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelContract.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContract.go
new file mode 100644
index 00000000..3e9ab95c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelContract.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Contract undocumented
+type Contract struct {
+ // DirectoryObject is the base model of Contract
+ DirectoryObject
+ // ContractType undocumented
+ ContractType *string `json:"contractType,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // DefaultDomainName undocumented
+ DefaultDomainName *string `json:"defaultDomainName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelControl.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelControl.go
new file mode 100644
index 00000000..5153f2eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelControl.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ControlScore undocumented
+type ControlScore struct {
+ // Object is the base model of ControlScore
+ Object
+ // ControlCategory undocumented
+ ControlCategory *string `json:"controlCategory,omitempty"`
+ // ControlName undocumented
+ ControlName *string `json:"controlName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Score undocumented
+ Score *float64 `json:"score,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelConversation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConversation.go
new file mode 100644
index 00000000..866aba53
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConversation.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Conversation undocumented
+type Conversation struct {
+ // Entity is the base model of Conversation
+ Entity
+ // Topic undocumented
+ Topic *string `json:"topic,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // LastDeliveredDateTime undocumented
+ LastDeliveredDateTime *time.Time `json:"lastDeliveredDateTime,omitempty"`
+ // UniqueSenders undocumented
+ UniqueSenders []string `json:"uniqueSenders,omitempty"`
+ // Preview undocumented
+ Preview *string `json:"preview,omitempty"`
+ // Threads undocumented
+ Threads []ConversationThread `json:"threads,omitempty"`
+}
+
+// ConversationMember undocumented
+type ConversationMember struct {
+ // Entity is the base model of ConversationMember
+ Entity
+ // Roles undocumented
+ Roles []string `json:"roles,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// ConversationMemberRoles undocumented
+type ConversationMemberRoles struct {
+ // Object is the base model of ConversationMemberRoles
+ Object
+}
+
+// ConversationThread undocumented
+type ConversationThread struct {
+ // Entity is the base model of ConversationThread
+ Entity
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"toRecipients,omitempty"`
+ // Topic undocumented
+ Topic *string `json:"topic,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // LastDeliveredDateTime undocumented
+ LastDeliveredDateTime *time.Time `json:"lastDeliveredDateTime,omitempty"`
+ // UniqueSenders undocumented
+ UniqueSenders []string `json:"uniqueSenders,omitempty"`
+ // CcRecipients undocumented
+ CcRecipients []Recipient `json:"ccRecipients,omitempty"`
+ // Preview undocumented
+ Preview *string `json:"preview,omitempty"`
+ // IsLocked undocumented
+ IsLocked *bool `json:"isLocked,omitempty"`
+ // Posts undocumented
+ Posts []Post `json:"posts,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelConvert.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConvert.go
new file mode 100644
index 00000000..ff076bbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelConvert.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ConvertIDResult undocumented
+type ConvertIDResult struct {
+ // Object is the base model of ConvertIDResult
+ Object
+ // SourceID undocumented
+ SourceID *string `json:"sourceId,omitempty"`
+ // TargetID undocumented
+ TargetID *string `json:"targetId,omitempty"`
+ // ErrorDetails undocumented
+ ErrorDetails *GenericError `json:"errorDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCopy.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCopy.go
new file mode 100644
index 00000000..368e21f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCopy.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CopyNotebookModel undocumented
+type CopyNotebookModel struct {
+ // Object is the base model of CopyNotebookModel
+ Object
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // UserRole undocumented
+ UserRole *OnenoteUserRole `json:"userRole,omitempty"`
+ // IsShared undocumented
+ IsShared *bool `json:"isShared,omitempty"`
+ // SectionsURL undocumented
+ SectionsURL *string `json:"sectionsUrl,omitempty"`
+ // SectionGroupsURL undocumented
+ SectionGroupsURL *string `json:"sectionGroupsUrl,omitempty"`
+ // Links undocumented
+ Links *NotebookLinks `json:"links,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // CreatedByIdentity undocumented
+ CreatedByIdentity *IdentitySet `json:"createdByIdentity,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
+ // LastModifiedByIdentity undocumented
+ LastModifiedByIdentity *IdentitySet `json:"lastModifiedByIdentity,omitempty"`
+ // LastModifiedTime undocumented
+ LastModifiedTime *time.Time `json:"lastModifiedTime,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Self undocumented
+ Self *string `json:"self,omitempty"`
+ // CreatedTime undocumented
+ CreatedTime *time.Time `json:"createdTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCountry.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCountry.go
new file mode 100644
index 00000000..bffb694b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCountry.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// CountryNamedLocation undocumented
+type CountryNamedLocation struct {
+ // NamedLocation is the base model of CountryNamedLocation
+ NamedLocation
+ // CountriesAndRegions undocumented
+ CountriesAndRegions []string `json:"countriesAndRegions,omitempty"`
+ // IncludeUnknownCountriesAndRegions undocumented
+ IncludeUnknownCountriesAndRegions *bool `json:"includeUnknownCountriesAndRegions,omitempty"`
+}
+
+// CountryRegion undocumented
+type CountryRegion struct {
+ // Entity is the base model of CountryRegion
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // AddressFormat undocumented
+ AddressFormat *string `json:"addressFormat,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCreate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCreate.go
new file mode 100644
index 00000000..8d598713
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCreate.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CreateAction undocumented
+type CreateAction struct {
+ // Object is the base model of CreateAction
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCredential.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCredential.go
new file mode 100644
index 00000000..7bb1fc0a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCredential.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Credential undocumented
+type Credential struct {
+ // Object is the base model of Credential
+ Object
+ // FieldID undocumented
+ FieldID *string `json:"fieldId,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
+
+// CredentialSingleSignOnExtension undocumented
+type CredentialSingleSignOnExtension struct {
+ // SingleSignOnExtension is the base model of CredentialSingleSignOnExtension
+ SingleSignOnExtension
+ // ExtensionIdentifier Gets or sets the bundle ID of the app extension that performs SSO for the specified URLs.
+ ExtensionIdentifier *string `json:"extensionIdentifier,omitempty"`
+ // TeamIdentifier Gets or sets the team ID of the app extension that performs SSO for the specified URLs.
+ TeamIdentifier *string `json:"teamIdentifier,omitempty"`
+ // Domains Gets or sets a list of hosts or domain names for which the app extension performs SSO.
+ Domains []string `json:"domains,omitempty"`
+ // Realm Gets or sets the case-sensitive realm name for this profile.
+ Realm *string `json:"realm,omitempty"`
+ // Configurations Gets or sets a list of typed key-value pairs used to configure Credential-type profiles. This collection can contain a maximum of 500 elements.
+ Configurations []KeyTypedValuePair `json:"configurations,omitempty"`
+}
+
+// CredentialUsageSummary undocumented
+type CredentialUsageSummary struct {
+ // Entity is the base model of CredentialUsageSummary
+ Entity
+ // Feature undocumented
+ Feature *FeatureType `json:"feature,omitempty"`
+ // SuccessfulActivityCount undocumented
+ SuccessfulActivityCount *int `json:"successfulActivityCount,omitempty"`
+ // FailureActivityCount undocumented
+ FailureActivityCount *int `json:"failureActivityCount,omitempty"`
+ // AuthMethod undocumented
+ AuthMethod *UsageAuthMethod `json:"authMethod,omitempty"`
+}
+
+// CredentialUserRegistrationCount undocumented
+type CredentialUserRegistrationCount struct {
+ // Entity is the base model of CredentialUserRegistrationCount
+ Entity
+ // TotalUserCount undocumented
+ TotalUserCount *int `json:"totalUserCount,omitempty"`
+ // UserRegistrationCounts undocumented
+ UserRegistrationCounts []UserRegistrationCount `json:"userRegistrationCounts,omitempty"`
+}
+
+// CredentialUserRegistrationDetails undocumented
+type CredentialUserRegistrationDetails struct {
+ // Entity is the base model of CredentialUserRegistrationDetails
+ Entity
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // AuthMethods undocumented
+ AuthMethods []RegistrationAuthMethod `json:"authMethods,omitempty"`
+ // IsRegistered undocumented
+ IsRegistered *bool `json:"isRegistered,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // IsCapable undocumented
+ IsCapable *bool `json:"isCapable,omitempty"`
+ // IsMFARegistered undocumented
+ IsMFARegistered *bool `json:"isMfaRegistered,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrency.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrency.go
new file mode 100644
index 00000000..3157e8e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrency.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Currency undocumented
+type Currency struct {
+ // Entity is the base model of Currency
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Symbol undocumented
+ Symbol *string `json:"symbol,omitempty"`
+ // AmountDecimalPlaces undocumented
+ AmountDecimalPlaces *string `json:"amountDecimalPlaces,omitempty"`
+ // AmountRoundingPrecision undocumented
+ AmountRoundingPrecision *int `json:"amountRoundingPrecision,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// CurrencyColumn undocumented
+type CurrencyColumn struct {
+ // Object is the base model of CurrencyColumn
+ Object
+ // Locale undocumented
+ Locale *string `json:"locale,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrent.go
new file mode 100644
index 00000000..03afed08
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCurrent.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CurrentLabel undocumented
+type CurrentLabel struct {
+ // Object is the base model of CurrentLabel
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // ApplicationMode undocumented
+ ApplicationMode *ApplicationMode `json:"applicationMode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustom.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustom.go
new file mode 100644
index 00000000..33d0fa72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustom.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// CustomAction undocumented
+type CustomAction struct {
+ // InformationProtectionAction is the base model of CustomAction
+ InformationProtectionAction
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Properties undocumented
+ Properties []KeyValuePair `json:"properties,omitempty"`
+}
+
+// CustomSubjectAlternativeName undocumented
+type CustomSubjectAlternativeName struct {
+ // Object is the base model of CustomSubjectAlternativeName
+ Object
+ // SanType Custom SAN Type.
+ SanType *SubjectAlternativeNameType `json:"sanType,omitempty"`
+ // Name Custom SAN Name
+ Name *string `json:"name,omitempty"`
+}
+
+// CustomTimeZone undocumented
+type CustomTimeZone struct {
+ // TimeZoneBase is the base model of CustomTimeZone
+ TimeZoneBase
+ // Bias undocumented
+ Bias *int `json:"bias,omitempty"`
+ // StandardOffset undocumented
+ StandardOffset *StandardTimeZoneOffset `json:"standardOffset,omitempty"`
+ // DaylightOffset undocumented
+ DaylightOffset *DaylightTimeZoneOffset `json:"daylightOffset,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustomer.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustomer.go
new file mode 100644
index 00000000..b9e435fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelCustomer.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Customer undocumented
+type Customer struct {
+ // Entity is the base model of Customer
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Address undocumented
+ Address *PostalAddressType `json:"address,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // Website undocumented
+ Website *string `json:"website,omitempty"`
+ // TaxLiable undocumented
+ TaxLiable *bool `json:"taxLiable,omitempty"`
+ // TaxAreaID undocumented
+ TaxAreaID *UUID `json:"taxAreaId,omitempty"`
+ // TaxAreaDisplayName undocumented
+ TaxAreaDisplayName *string `json:"taxAreaDisplayName,omitempty"`
+ // TaxRegistrationNumber undocumented
+ TaxRegistrationNumber *string `json:"taxRegistrationNumber,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // ShipmentMethodID undocumented
+ ShipmentMethodID *UUID `json:"shipmentMethodId,omitempty"`
+ // PaymentMethodID undocumented
+ PaymentMethodID *UUID `json:"paymentMethodId,omitempty"`
+ // Blocked undocumented
+ Blocked *string `json:"blocked,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+ // ShipmentMethod undocumented
+ ShipmentMethod *ShipmentMethod `json:"shipmentMethod,omitempty"`
+ // PaymentMethod undocumented
+ PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"`
+}
+
+// CustomerPayment undocumented
+type CustomerPayment struct {
+ // Entity is the base model of CustomerPayment
+ Entity
+ // JournalDisplayName undocumented
+ JournalDisplayName *string `json:"journalDisplayName,omitempty"`
+ // LineNumber undocumented
+ LineNumber *int `json:"lineNumber,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // ContactID undocumented
+ ContactID *string `json:"contactId,omitempty"`
+ // PostingDate undocumented
+ PostingDate *Date `json:"postingDate,omitempty"`
+ // DocumentNumber undocumented
+ DocumentNumber *string `json:"documentNumber,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // Amount undocumented
+ Amount *int `json:"amount,omitempty"`
+ // AppliesToInvoiceID undocumented
+ AppliesToInvoiceID *UUID `json:"appliesToInvoiceId,omitempty"`
+ // AppliesToInvoiceNumber undocumented
+ AppliesToInvoiceNumber *string `json:"appliesToInvoiceNumber,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+}
+
+// CustomerPaymentJournal undocumented
+type CustomerPaymentJournal struct {
+ // Entity is the base model of CustomerPaymentJournal
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // BalancingAccountID undocumented
+ BalancingAccountID *UUID `json:"balancingAccountId,omitempty"`
+ // BalancingAccountNumber undocumented
+ BalancingAccountNumber *string `json:"balancingAccountNumber,omitempty"`
+ // CustomerPayments undocumented
+ CustomerPayments []CustomerPayment `json:"customerPayments,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDaily.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDaily.go
new file mode 100644
index 00000000..22d5c90b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDaily.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DailySchedule undocumented
+type DailySchedule struct {
+ // RunSchedule is the base model of DailySchedule
+ RunSchedule
+ // Interval Interval in number of days
+ Interval *int `json:"interval,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelData.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelData.go
new file mode 100644
index 00000000..bd1f5ca4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelData.go
@@ -0,0 +1,93 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DataClassificationService undocumented
+type DataClassificationService struct {
+ // Entity is the base model of DataClassificationService
+ Entity
+ // ExactMatchDataStores undocumented
+ ExactMatchDataStores []ExactMatchDataStore `json:"exactMatchDataStores,omitempty"`
+ // SensitiveTypes undocumented
+ SensitiveTypes []SensitiveType `json:"sensitiveTypes,omitempty"`
+ // Jobs undocumented
+ Jobs []JobResponseBase `json:"jobs,omitempty"`
+ // ClassifyFileJobs undocumented
+ ClassifyFileJobs []JobResponseBase `json:"classifyFileJobs,omitempty"`
+ // ClassifyTextJobs undocumented
+ ClassifyTextJobs []JobResponseBase `json:"classifyTextJobs,omitempty"`
+ // EvaluateLabelJobs undocumented
+ EvaluateLabelJobs []JobResponseBase `json:"evaluateLabelJobs,omitempty"`
+ // EvaluateDlpPoliciesJobs undocumented
+ EvaluateDlpPoliciesJobs []JobResponseBase `json:"evaluateDlpPoliciesJobs,omitempty"`
+ // LabelsAndPoliciesEvaluationJobs undocumented
+ LabelsAndPoliciesEvaluationJobs []JobResponseBase `json:"labelsAndPoliciesEvaluationJobs,omitempty"`
+ // ClassifyText undocumented
+ ClassifyText []TextClassificationRequestObject `json:"classifyText,omitempty"`
+ // ClassifyFile undocumented
+ ClassifyFile []FileClassificationRequestObject `json:"classifyFile,omitempty"`
+ // SensitivityLabels undocumented
+ SensitivityLabels []SensitivityLabel `json:"sensitivityLabels,omitempty"`
+ // ExactMatchUploadAgents undocumented
+ ExactMatchUploadAgents []ExactMatchUploadAgent `json:"exactMatchUploadAgents,omitempty"`
+}
+
+// DataLossPreventionPolicy undocumented
+type DataLossPreventionPolicy struct {
+ // Entity is the base model of DataLossPreventionPolicy
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+}
+
+// DataPolicyOperation undocumented
+type DataPolicyOperation struct {
+ // Entity is the base model of DataPolicyOperation
+ Entity
+ // CompletedDateTime undocumented
+ CompletedDateTime *time.Time `json:"completedDateTime,omitempty"`
+ // Status undocumented
+ Status *DataPolicyOperationStatus `json:"status,omitempty"`
+ // StorageLocation undocumented
+ StorageLocation *string `json:"storageLocation,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // SubmittedDateTime undocumented
+ SubmittedDateTime *time.Time `json:"submittedDateTime,omitempty"`
+ // Progress undocumented
+ Progress *float64 `json:"progress,omitempty"`
+}
+
+// DataSharingConsent Data sharing consent information.
+type DataSharingConsent struct {
+ // Entity is the base model of DataSharingConsent
+ Entity
+ // ServiceDisplayName The display name of the service work flow
+ ServiceDisplayName *string `json:"serviceDisplayName,omitempty"`
+ // TermsURL The TermsUrl for the data sharing consent
+ TermsURL *string `json:"termsUrl,omitempty"`
+ // Granted The granted state for the data sharing consent
+ Granted *bool `json:"granted,omitempty"`
+ // GrantDateTime The time consent was granted for this account
+ GrantDateTime *time.Time `json:"grantDateTime,omitempty"`
+ // GrantedByUpn The Upn of the user that granted consent for this account
+ GrantedByUpn *string `json:"grantedByUpn,omitempty"`
+ // GrantedByUserID The UserId of the user that granted consent for this account
+ GrantedByUserID *string `json:"grantedByUserId,omitempty"`
+}
+
+// DataStoreField undocumented
+type DataStoreField struct {
+ // Object is the base model of DataStoreField
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Unique undocumented
+ Unique *bool `json:"unique,omitempty"`
+ // Searchable undocumented
+ Searchable *bool `json:"searchable,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDate.go
new file mode 100644
index 00000000..5845f4fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDate.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DateTimeColumn undocumented
+type DateTimeColumn struct {
+ // Object is the base model of DateTimeColumn
+ Object
+ // DisplayAs undocumented
+ DisplayAs *string `json:"displayAs,omitempty"`
+ // Format undocumented
+ Format *string `json:"format,omitempty"`
+}
+
+// DateTimeTimeZone undocumented
+type DateTimeTimeZone struct {
+ // Object is the base model of DateTimeTimeZone
+ Object
+ // DateTime undocumented
+ DateTime *string `json:"dateTime,omitempty"`
+ // TimeZone undocumented
+ TimeZone *string `json:"timeZone,omitempty"`
+}
+
+// DateTimeTimeZoneType undocumented
+type DateTimeTimeZoneType struct {
+ // Object is the base model of DateTimeTimeZoneType
+ Object
+ // DateTime undocumented
+ DateTime *string `json:"dateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDaylight.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDaylight.go
new file mode 100644
index 00000000..48cc72c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDaylight.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DaylightTimeZoneOffset undocumented
+type DaylightTimeZoneOffset struct {
+ // StandardTimeZoneOffset is the base model of DaylightTimeZoneOffset
+ StandardTimeZoneOffset
+ // DaylightBias undocumented
+ DaylightBias *int `json:"daylightBias,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefault.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefault.go
new file mode 100644
index 00000000..686ddfe1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefault.go
@@ -0,0 +1,93 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefaultColumnValue undocumented
+type DefaultColumnValue struct {
+ // Object is the base model of DefaultColumnValue
+ Object
+ // Formula undocumented
+ Formula *string `json:"formula,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
+
+// DefaultDeviceCompliancePolicy Default device compliance policy rules that are enforced account wide.
+type DefaultDeviceCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of DefaultDeviceCompliancePolicy
+ DeviceCompliancePolicy
+}
+
+// DefaultManagedAppProtection Policy used to configure detailed management settings for a specified set of apps for all users not targeted by a TargetedManagedAppProtection Policy
+type DefaultManagedAppProtection struct {
+ // ManagedAppProtection is the base model of DefaultManagedAppProtection
+ ManagedAppProtection
+ // AppDataEncryptionType Type of encryption which should be used for data in a managed app. (iOS Only)
+ AppDataEncryptionType *ManagedAppDataEncryptionType `json:"appDataEncryptionType,omitempty"`
+ // ScreenCaptureBlocked Indicates whether screen capture is blocked. (Android only)
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // EncryptAppData Indicates whether managed-app data should be encrypted. (Android only)
+ EncryptAppData *bool `json:"encryptAppData,omitempty"`
+ // DisableAppEncryptionIfDeviceEncryptionIsEnabled When this setting is enabled, app level encryption is disabled if device level encryption is enabled. (Android only)
+ DisableAppEncryptionIfDeviceEncryptionIsEnabled *bool `json:"disableAppEncryptionIfDeviceEncryptionIsEnabled,omitempty"`
+ // MinimumRequiredSdkVersion Versions less than the specified version will block the managed app from accessing company data. (iOS Only)
+ MinimumRequiredSdkVersion *string `json:"minimumRequiredSdkVersion,omitempty"`
+ // CustomSettings A set of string key and string value pairs to be sent to the affected users, unalterned by this service
+ CustomSettings []KeyValuePair `json:"customSettings,omitempty"`
+ // DeployedAppCount Count of apps to which the current policy is deployed.
+ DeployedAppCount *int `json:"deployedAppCount,omitempty"`
+ // MinimumRequiredPatchVersion Define the oldest required Android security patch level a user can have to gain secure access to the app. (Android only)
+ MinimumRequiredPatchVersion *string `json:"minimumRequiredPatchVersion,omitempty"`
+ // MinimumWarningPatchVersion Define the oldest recommended Android security patch level a user can have for secure access to the app. (Android only)
+ MinimumWarningPatchVersion *string `json:"minimumWarningPatchVersion,omitempty"`
+ // ExemptedAppProtocols iOS Apps in this list will be exempt from the policy and will be able to receive data from managed apps. (iOS Only)
+ ExemptedAppProtocols []KeyValuePair `json:"exemptedAppProtocols,omitempty"`
+ // ExemptedAppPackages Android App packages in this list will be exempt from the policy and will be able to receive data from managed apps. (Android only)
+ ExemptedAppPackages []KeyValuePair `json:"exemptedAppPackages,omitempty"`
+ // FaceIDBlocked Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True. (iOS Only)
+ FaceIDBlocked *bool `json:"faceIdBlocked,omitempty"`
+ // MinimumWipeSdkVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumWipeSdkVersion *string `json:"minimumWipeSdkVersion,omitempty"`
+ // MinimumWipePatchVersion Android security patch level less than or equal to the specified value will wipe the managed app and the associated company data. (Android only)
+ MinimumWipePatchVersion *string `json:"minimumWipePatchVersion,omitempty"`
+ // AllowedIOSDeviceModels Semicolon seperated list of device models allowed, as a string, for the managed app to work. (iOS Only)
+ AllowedIOSDeviceModels *string `json:"allowedIosDeviceModels,omitempty"`
+ // AppActionIfIOSDeviceModelNotAllowed Defines a managed app behavior, either block or wipe, if the specified device model is not allowed. (iOS Only)
+ AppActionIfIOSDeviceModelNotAllowed *ManagedAppRemediationAction `json:"appActionIfIosDeviceModelNotAllowed,omitempty"`
+ // AllowedAndroidDeviceManufacturers Semicolon seperated list of device manufacturers allowed, as a string, for the managed app to work. (Android only)
+ AllowedAndroidDeviceManufacturers *string `json:"allowedAndroidDeviceManufacturers,omitempty"`
+ // AppActionIfAndroidDeviceManufacturerNotAllowed Defines a managed app behavior, either block or wipe, if the specified device manufacturer is not allowed. (Android only)
+ AppActionIfAndroidDeviceManufacturerNotAllowed *ManagedAppRemediationAction `json:"appActionIfAndroidDeviceManufacturerNotAllowed,omitempty"`
+ // ThirdPartyKeyboardsBlocked Defines if third party keyboards are allowed while accessing a managed app. (iOS Only)
+ ThirdPartyKeyboardsBlocked *bool `json:"thirdPartyKeyboardsBlocked,omitempty"`
+ // FilterOpenInToOnlyManagedApps Defines if open-in operation is supported from the managed app to the filesharing locations selected. This setting only applies when AllowedOutboundDataTransferDestinations is set to ManagedApps and DisableProtectionOfManagedOutboundOpenInData is set to False. (iOS Only)
+ FilterOpenInToOnlyManagedApps *bool `json:"filterOpenInToOnlyManagedApps,omitempty"`
+ // DisableProtectionOfManagedOutboundOpenInData Disable protection of data transferred to other apps through IOS OpenIn option. This setting is only allowed to be True when AllowedOutboundDataTransferDestinations is set to ManagedApps. (iOS Only)
+ DisableProtectionOfManagedOutboundOpenInData *bool `json:"disableProtectionOfManagedOutboundOpenInData,omitempty"`
+ // ProtectInboundDataFromUnknownSources Protect incoming data from unknown source. This setting is only allowed to be True when AllowedInboundDataTransferSources is set to AllApps. (iOS Only)
+ ProtectInboundDataFromUnknownSources *bool `json:"protectInboundDataFromUnknownSources,omitempty"`
+ // RequiredAndroidSafetyNetDeviceAttestationType Defines the Android SafetyNet Device Attestation requirement for a managed app to work.
+ RequiredAndroidSafetyNetDeviceAttestationType *AndroidManagedAppSafetyNetDeviceAttestationType `json:"requiredAndroidSafetyNetDeviceAttestationType,omitempty"`
+ // AppActionIfAndroidSafetyNetDeviceAttestationFailed Defines a managed app behavior, either warn or block, if the specified Android SafetyNet Attestation requirment fails.
+ AppActionIfAndroidSafetyNetDeviceAttestationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetDeviceAttestationFailed,omitempty"`
+ // RequiredAndroidSafetyNetAppsVerificationType Defines the Android SafetyNet Apps Verification requirement for a managed app to work.
+ RequiredAndroidSafetyNetAppsVerificationType *AndroidManagedAppSafetyNetAppsVerificationType `json:"requiredAndroidSafetyNetAppsVerificationType,omitempty"`
+ // AppActionIfAndroidSafetyNetAppsVerificationFailed Defines a managed app behavior, either warn or block, if the specified Android App Verification requirment fails.
+ AppActionIfAndroidSafetyNetAppsVerificationFailed *ManagedAppRemediationAction `json:"appActionIfAndroidSafetyNetAppsVerificationFailed,omitempty"`
+ // CustomBrowserProtocol A custom browser protocol to open weblink on iOS. (iOS only)
+ CustomBrowserProtocol *string `json:"customBrowserProtocol,omitempty"`
+ // CustomBrowserPackageID Unique identifier of a custom browser to open weblink on Android. (Android only)
+ CustomBrowserPackageID *string `json:"customBrowserPackageId,omitempty"`
+ // CustomBrowserDisplayName Friendly name of the preferred custom browser to open weblink on Android. (Android only)
+ CustomBrowserDisplayName *string `json:"customBrowserDisplayName,omitempty"`
+ // MinimumRequiredCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or app access will be blocked
+ MinimumRequiredCompanyPortalVersion *string `json:"minimumRequiredCompanyPortalVersion,omitempty"`
+ // MinimumWarningCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the user will receive a warning
+ MinimumWarningCompanyPortalVersion *string `json:"minimumWarningCompanyPortalVersion,omitempty"`
+ // MinimumWipeCompanyPortalVersion Minimum version of the Company portal that must be installed on the device or the company data on the app will be wiped
+ MinimumWipeCompanyPortalVersion *string `json:"minimumWipeCompanyPortalVersion,omitempty"`
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+ // DeploymentSummary undocumented
+ DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefender.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefender.go
new file mode 100644
index 00000000..92a09305
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDefender.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DefenderDetectedMalwareActions undocumented
+type DefenderDetectedMalwareActions struct {
+ // Object is the base model of DefenderDetectedMalwareActions
+ Object
+ // LowSeverity Indicates a Defender action to take for low severity Malware threat detected.
+ LowSeverity *DefenderThreatAction `json:"lowSeverity,omitempty"`
+ // ModerateSeverity Indicates a Defender action to take for moderate severity Malware threat detected.
+ ModerateSeverity *DefenderThreatAction `json:"moderateSeverity,omitempty"`
+ // HighSeverity Indicates a Defender action to take for high severity Malware threat detected.
+ HighSeverity *DefenderThreatAction `json:"highSeverity,omitempty"`
+ // SevereSeverity Indicates a Defender action to take for severe severity Malware threat detected.
+ SevereSeverity *DefenderThreatAction `json:"severeSeverity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelegated.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelegated.go
new file mode 100644
index 00000000..6409dc8e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelegated.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DelegatedPermissionClassification undocumented
+type DelegatedPermissionClassification struct {
+ // Entity is the base model of DelegatedPermissionClassification
+ Entity
+ // PermissionID undocumented
+ PermissionID *string `json:"permissionId,omitempty"`
+ // PermissionName undocumented
+ PermissionName *string `json:"permissionName,omitempty"`
+ // Classification undocumented
+ Classification *PermissionClassificationType `json:"classification,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelete.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelete.go
new file mode 100644
index 00000000..d93fd856
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelete.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeleteAction undocumented
+type DeleteAction struct {
+ // Object is the base model of DeleteAction
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ObjectType undocumented
+ ObjectType *string `json:"objectType,omitempty"`
+}
+
+// DeleteUserFromSharedAppleDeviceActionResult undocumented
+type DeleteUserFromSharedAppleDeviceActionResult struct {
+ // DeviceActionResult is the base model of DeleteUserFromSharedAppleDeviceActionResult
+ DeviceActionResult
+ // UserPrincipalName User principal name of the user to be deleted
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDeleted.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDeleted.go
new file mode 100644
index 00000000..6e58e673
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDeleted.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Deleted undocumented
+type Deleted struct {
+ // Object is the base model of Deleted
+ Object
+ // State undocumented
+ State *string `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelivery.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelivery.go
new file mode 100644
index 00000000..aabdf0c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDelivery.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DeliveryOptimizationBandwidth undocumented
+type DeliveryOptimizationBandwidth struct {
+ // Object is the base model of DeliveryOptimizationBandwidth
+ Object
+}
+
+// DeliveryOptimizationBandwidthAbsolute undocumented
+type DeliveryOptimizationBandwidthAbsolute struct {
+ // DeliveryOptimizationBandwidth is the base model of DeliveryOptimizationBandwidthAbsolute
+ DeliveryOptimizationBandwidth
+ // MaximumDownloadBandwidthInKilobytesPerSecond Specifies the maximum download bandwidth in KiloBytes/second that the device can use across all concurrent download activities using Delivery Optimization. Valid values 0 to 4294967295
+ MaximumDownloadBandwidthInKilobytesPerSecond *int `json:"maximumDownloadBandwidthInKilobytesPerSecond,omitempty"`
+ // MaximumUploadBandwidthInKilobytesPerSecond Specifies the maximum upload bandwidth in KiloBytes/second that a device will use across all concurrent upload activity using Delivery Optimization (0-4000000). Valid values 0 to 4000000
+ MaximumUploadBandwidthInKilobytesPerSecond *int `json:"maximumUploadBandwidthInKilobytesPerSecond,omitempty"`
+}
+
+// DeliveryOptimizationBandwidthBusinessHoursLimit undocumented
+type DeliveryOptimizationBandwidthBusinessHoursLimit struct {
+ // Object is the base model of DeliveryOptimizationBandwidthBusinessHoursLimit
+ Object
+ // BandwidthBeginBusinessHours Specifies the beginning of business hours using a 24-hour clock (0-23). Valid values 0 to 23
+ BandwidthBeginBusinessHours *int `json:"bandwidthBeginBusinessHours,omitempty"`
+ // BandwidthEndBusinessHours Specifies the end of business hours using a 24-hour clock (0-23). Valid values 0 to 23
+ BandwidthEndBusinessHours *int `json:"bandwidthEndBusinessHours,omitempty"`
+ // BandwidthPercentageDuringBusinessHours Specifies the percentage of bandwidth to limit during business hours (0-100). Valid values 0 to 100
+ BandwidthPercentageDuringBusinessHours *int `json:"bandwidthPercentageDuringBusinessHours,omitempty"`
+ // BandwidthPercentageOutsideBusinessHours Specifies the percentage of bandwidth to limit outsidse business hours (0-100). Valid values 0 to 100
+ BandwidthPercentageOutsideBusinessHours *int `json:"bandwidthPercentageOutsideBusinessHours,omitempty"`
+}
+
+// DeliveryOptimizationBandwidthHoursWithPercentage undocumented
+type DeliveryOptimizationBandwidthHoursWithPercentage struct {
+ // DeliveryOptimizationBandwidth is the base model of DeliveryOptimizationBandwidthHoursWithPercentage
+ DeliveryOptimizationBandwidth
+ // BandwidthBackgroundPercentageHours Background download percentage hours.
+ BandwidthBackgroundPercentageHours *DeliveryOptimizationBandwidthBusinessHoursLimit `json:"bandwidthBackgroundPercentageHours,omitempty"`
+ // BandwidthForegroundPercentageHours Foreground download percentage hours.
+ BandwidthForegroundPercentageHours *DeliveryOptimizationBandwidthBusinessHoursLimit `json:"bandwidthForegroundPercentageHours,omitempty"`
+}
+
+// DeliveryOptimizationBandwidthPercentage undocumented
+type DeliveryOptimizationBandwidthPercentage struct {
+ // DeliveryOptimizationBandwidth is the base model of DeliveryOptimizationBandwidthPercentage
+ DeliveryOptimizationBandwidth
+ // MaximumBackgroundBandwidthPercentage Specifies the maximum background download bandwidth that Delivery Optimization uses across all concurrent download activities as a percentage of available download bandwidth (0-100). Valid values 0 to 100
+ MaximumBackgroundBandwidthPercentage *int `json:"maximumBackgroundBandwidthPercentage,omitempty"`
+ // MaximumForegroundBandwidthPercentage Specifies the maximum foreground download bandwidth that Delivery Optimization uses across all concurrent download activities as a percentage of available download bandwidth (0-100). Valid values 0 to 100
+ MaximumForegroundBandwidthPercentage *int `json:"maximumForegroundBandwidthPercentage,omitempty"`
+}
+
+// DeliveryOptimizationGroupIDCustom undocumented
+type DeliveryOptimizationGroupIDCustom struct {
+ // DeliveryOptimizationGroupIDSource is the base model of DeliveryOptimizationGroupIDCustom
+ DeliveryOptimizationGroupIDSource
+ // GroupIDCustom Specifies an arbitrary group ID that the device belongs to
+ GroupIDCustom *string `json:"groupIdCustom,omitempty"`
+}
+
+// DeliveryOptimizationGroupIDSource undocumented
+type DeliveryOptimizationGroupIDSource struct {
+ // Object is the base model of DeliveryOptimizationGroupIDSource
+ Object
+}
+
+// DeliveryOptimizationGroupIDSourceOptions undocumented
+type DeliveryOptimizationGroupIDSourceOptions struct {
+ // DeliveryOptimizationGroupIDSource is the base model of DeliveryOptimizationGroupIDSourceOptions
+ DeliveryOptimizationGroupIDSource
+ // GroupIDSourceOption Set this policy to restrict peer selection to a specific source.
+ GroupIDSourceOption *DeliveryOptimizationGroupIDOptionsType `json:"groupIdSourceOption,omitempty"`
+}
+
+// DeliveryOptimizationMaxCacheSize undocumented
+type DeliveryOptimizationMaxCacheSize struct {
+ // Object is the base model of DeliveryOptimizationMaxCacheSize
+ Object
+}
+
+// DeliveryOptimizationMaxCacheSizeAbsolute undocumented
+type DeliveryOptimizationMaxCacheSizeAbsolute struct {
+ // DeliveryOptimizationMaxCacheSize is the base model of DeliveryOptimizationMaxCacheSizeAbsolute
+ DeliveryOptimizationMaxCacheSize
+ // MaximumCacheSizeInGigabytes Specifies the maximum size in GB of Delivery Optimization cache. Valid values 0 to 4294967295
+ MaximumCacheSizeInGigabytes *int `json:"maximumCacheSizeInGigabytes,omitempty"`
+}
+
+// DeliveryOptimizationMaxCacheSizePercentage undocumented
+type DeliveryOptimizationMaxCacheSizePercentage struct {
+ // DeliveryOptimizationMaxCacheSize is the base model of DeliveryOptimizationMaxCacheSizePercentage
+ DeliveryOptimizationMaxCacheSize
+ // MaximumCacheSizePercentage Specifies the maximum cache size that Delivery Optimization can utilize, as a percentage of disk size (1-100). Valid values 1 to 100
+ MaximumCacheSizePercentage *int `json:"maximumCacheSizePercentage,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDep.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDep.go
new file mode 100644
index 00000000..1e884831
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDep.go
@@ -0,0 +1,205 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// DepEnrollmentBaseProfile The DepEnrollmentBaseProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP.
+type DepEnrollmentBaseProfile struct {
+ // EnrollmentProfile is the base model of DepEnrollmentBaseProfile
+ EnrollmentProfile
+ // IsDefault Indicates if this is the default profile
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // SupervisedModeEnabled Supervised mode, True to enable, false otherwise. See https://docs.microsoft.com/en-us/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information.
+ SupervisedModeEnabled *bool `json:"supervisedModeEnabled,omitempty"`
+ // SupportDepartment Support department information
+ SupportDepartment *string `json:"supportDepartment,omitempty"`
+ // PassCodeDisabled Indicates if Passcode setup pane is disabled
+ PassCodeDisabled *bool `json:"passCodeDisabled,omitempty"`
+ // IsMandatory Indicates if the profile is mandatory
+ IsMandatory *bool `json:"isMandatory,omitempty"`
+ // LocationDisabled Indicates if Location service setup pane is disabled
+ LocationDisabled *bool `json:"locationDisabled,omitempty"`
+ // SupportPhoneNumber Support phone number
+ SupportPhoneNumber *string `json:"supportPhoneNumber,omitempty"`
+ // ProfileRemovalDisabled Indicates if the profile removal option is disabled
+ ProfileRemovalDisabled *bool `json:"profileRemovalDisabled,omitempty"`
+ // RestoreBlocked Indicates if Restore setup pane is blocked
+ RestoreBlocked *bool `json:"restoreBlocked,omitempty"`
+ // AppleIDDisabled Indicates if Apple id setup pane is disabled
+ AppleIDDisabled *bool `json:"appleIdDisabled,omitempty"`
+ // TermsAndConditionsDisabled Indicates if 'Terms and Conditions' setup pane is disabled
+ TermsAndConditionsDisabled *bool `json:"termsAndConditionsDisabled,omitempty"`
+ // TouchIDDisabled Indicates if touch id setup pane is disabled
+ TouchIDDisabled *bool `json:"touchIdDisabled,omitempty"`
+ // ApplePayDisabled Indicates if Apple pay setup pane is disabled
+ ApplePayDisabled *bool `json:"applePayDisabled,omitempty"`
+ // ZoomDisabled Indicates if zoom setup pane is disabled
+ ZoomDisabled *bool `json:"zoomDisabled,omitempty"`
+ // SiriDisabled Indicates if siri setup pane is disabled
+ SiriDisabled *bool `json:"siriDisabled,omitempty"`
+ // DiagnosticsDisabled Indicates if diagnostics setup pane is disabled
+ DiagnosticsDisabled *bool `json:"diagnosticsDisabled,omitempty"`
+ // DisplayToneSetupDisabled Indicates if displaytone setup screen is disabled
+ DisplayToneSetupDisabled *bool `json:"displayToneSetupDisabled,omitempty"`
+ // PrivacyPaneDisabled Indicates if privacy screen is disabled
+ PrivacyPaneDisabled *bool `json:"privacyPaneDisabled,omitempty"`
+ // ScreenTimeScreenDisabled Indicates if screen timeout setup is disabled
+ ScreenTimeScreenDisabled *bool `json:"screenTimeScreenDisabled,omitempty"`
+ // DeviceNameTemplate Sets a literal or name pattern.
+ DeviceNameTemplate *string `json:"deviceNameTemplate,omitempty"`
+ // ConfigurationWebURL URL for setup assistant login
+ ConfigurationWebURL *bool `json:"configurationWebUrl,omitempty"`
+}
+
+// DepEnrollmentProfile The depEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP.
+type DepEnrollmentProfile struct {
+ // EnrollmentProfile is the base model of DepEnrollmentProfile
+ EnrollmentProfile
+ // IsDefault Indicates if this is the default profile
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // SupervisedModeEnabled Supervised mode, True to enable, false otherwise. See https://docs.microsoft.com/en-us/intune/deploy-use/enroll-devices-in-microsoft-intune for additional information.
+ SupervisedModeEnabled *bool `json:"supervisedModeEnabled,omitempty"`
+ // SupportDepartment Support department information
+ SupportDepartment *string `json:"supportDepartment,omitempty"`
+ // PassCodeDisabled Indicates if Passcode setup pane is disabled
+ PassCodeDisabled *bool `json:"passCodeDisabled,omitempty"`
+ // IsMandatory Indicates if the profile is mandatory
+ IsMandatory *bool `json:"isMandatory,omitempty"`
+ // LocationDisabled Indicates if Location service setup pane is disabled
+ LocationDisabled *bool `json:"locationDisabled,omitempty"`
+ // SupportPhoneNumber Support phone number
+ SupportPhoneNumber *string `json:"supportPhoneNumber,omitempty"`
+ // ITunesPairingMode Indicates the iTunes pairing mode
+ ITunesPairingMode *ITunesPairingMode `json:"iTunesPairingMode,omitempty"`
+ // ProfileRemovalDisabled Indicates if the profile removal option is disabled
+ ProfileRemovalDisabled *bool `json:"profileRemovalDisabled,omitempty"`
+ // ManagementCertificates Management certificates for Apple Configurator
+ ManagementCertificates []ManagementCertificateWithThumbprint `json:"managementCertificates,omitempty"`
+ // RestoreBlocked Indicates if Restore setup pane is blocked
+ RestoreBlocked *bool `json:"restoreBlocked,omitempty"`
+ // RestoreFromAndroidDisabled Indicates if Restore from Android is disabled
+ RestoreFromAndroidDisabled *bool `json:"restoreFromAndroidDisabled,omitempty"`
+ // AppleIDDisabled Indicates if Apple id setup pane is disabled
+ AppleIDDisabled *bool `json:"appleIdDisabled,omitempty"`
+ // TermsAndConditionsDisabled Indicates if 'Terms and Conditions' setup pane is disabled
+ TermsAndConditionsDisabled *bool `json:"termsAndConditionsDisabled,omitempty"`
+ // TouchIDDisabled Indicates if touch id setup pane is disabled
+ TouchIDDisabled *bool `json:"touchIdDisabled,omitempty"`
+ // ApplePayDisabled Indicates if Apple pay setup pane is disabled
+ ApplePayDisabled *bool `json:"applePayDisabled,omitempty"`
+ // ZoomDisabled Indicates if zoom setup pane is disabled
+ ZoomDisabled *bool `json:"zoomDisabled,omitempty"`
+ // SiriDisabled Indicates if siri setup pane is disabled
+ SiriDisabled *bool `json:"siriDisabled,omitempty"`
+ // DiagnosticsDisabled Indicates if diagnostics setup pane is disabled
+ DiagnosticsDisabled *bool `json:"diagnosticsDisabled,omitempty"`
+ // MacOSRegistrationDisabled Indicates if Mac OS registration is disabled
+ MacOSRegistrationDisabled *bool `json:"macOSRegistrationDisabled,omitempty"`
+ // MacOSFileVaultDisabled Indicates if Mac OS file vault is disabled
+ MacOSFileVaultDisabled *bool `json:"macOSFileVaultDisabled,omitempty"`
+ // AwaitDeviceConfiguredConfirmation Indicates if the device will need to wait for configured confirmation
+ AwaitDeviceConfiguredConfirmation *bool `json:"awaitDeviceConfiguredConfirmation,omitempty"`
+ // SharedIPadMaximumUserCount This specifies the maximum number of users that can use a shared iPad. Only applicable in shared iPad mode.
+ SharedIPadMaximumUserCount *int `json:"sharedIPadMaximumUserCount,omitempty"`
+ // EnableSharedIPad This indicates whether the device is to be enrolled in a mode which enables multi user scenarios. Only applicable in shared iPads.
+ EnableSharedIPad *bool `json:"enableSharedIPad,omitempty"`
+}
+
+// DepIOSEnrollmentProfile The DepIOSEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile specific to iOS configuration. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP.
+type DepIOSEnrollmentProfile struct {
+ // DepEnrollmentBaseProfile is the base model of DepIOSEnrollmentProfile
+ DepEnrollmentBaseProfile
+ // ITunesPairingMode Indicates the iTunes pairing mode
+ ITunesPairingMode *ITunesPairingMode `json:"iTunesPairingMode,omitempty"`
+ // ManagementCertificates Management certificates for Apple Configurator
+ ManagementCertificates []ManagementCertificateWithThumbprint `json:"managementCertificates,omitempty"`
+ // RestoreFromAndroidDisabled Indicates if Restore from Android is disabled
+ RestoreFromAndroidDisabled *bool `json:"restoreFromAndroidDisabled,omitempty"`
+ // AwaitDeviceConfiguredConfirmation Indicates if the device will need to wait for configured confirmation
+ AwaitDeviceConfiguredConfirmation *bool `json:"awaitDeviceConfiguredConfirmation,omitempty"`
+ // SharedIPadMaximumUserCount This specifies the maximum number of users that can use a shared iPad. Only applicable in shared iPad mode.
+ SharedIPadMaximumUserCount *int `json:"sharedIPadMaximumUserCount,omitempty"`
+ // EnableSharedIPad This indicates whether the device is to be enrolled in a mode which enables multi user scenarios. Only applicable in shared iPads.
+ EnableSharedIPad *bool `json:"enableSharedIPad,omitempty"`
+ // CompanyPortalVPPTokenID If set, indicates which Vpp token should be used to deploy the Company Portal w/ device licensing. 'enableAuthenticationViaCompanyPortal' must be set in order for this property to be set.
+ CompanyPortalVPPTokenID *string `json:"companyPortalVppTokenId,omitempty"`
+ // EnableSingleAppEnrollmentMode Tells the device to enable single app mode and apply app-lock during enrollment. Default is false. 'enableAuthenticationViaCompanyPortal' and 'companyPortalVppTokenId' must be set for this property to be set.
+ EnableSingleAppEnrollmentMode *bool `json:"enableSingleAppEnrollmentMode,omitempty"`
+ // HomeButtonScreenDisabled Indicates if home button sensitivity screen is disabled
+ HomeButtonScreenDisabled *bool `json:"homeButtonScreenDisabled,omitempty"`
+ // IMessageAndFaceTimeScreenDisabled Indicates if iMessage and FaceTime screen is disabled
+ IMessageAndFaceTimeScreenDisabled *bool `json:"iMessageAndFaceTimeScreenDisabled,omitempty"`
+ // OnBoardingScreenDisabled Indicates if onboarding setup screen is disabled
+ OnBoardingScreenDisabled *bool `json:"onBoardingScreenDisabled,omitempty"`
+ // SimSetupScreenDisabled Indicates if the SIMSetup screen is disabled
+ SimSetupScreenDisabled *bool `json:"simSetupScreenDisabled,omitempty"`
+ // SoftwareUpdateScreenDisabled Indicates if the mandatory sofware update screen is disabled
+ SoftwareUpdateScreenDisabled *bool `json:"softwareUpdateScreenDisabled,omitempty"`
+ // WatchMigrationScreenDisabled Indicates if the watch migration screen is disabled
+ WatchMigrationScreenDisabled *bool `json:"watchMigrationScreenDisabled,omitempty"`
+ // AppearanceScreenDisabled Indicates if Apperance screen is disabled
+ AppearanceScreenDisabled *bool `json:"appearanceScreenDisabled,omitempty"`
+ // ExpressLanguageScreenDisabled Indicates if Express Language screen is disabled
+ ExpressLanguageScreenDisabled *bool `json:"expressLanguageScreenDisabled,omitempty"`
+ // PreferredLanguageScreenDisabled Indicates if Preferred language screen is disabled
+ PreferredLanguageScreenDisabled *bool `json:"preferredLanguageScreenDisabled,omitempty"`
+ // DeviceToDeviceMigrationDisabled Indicates if Device To Device Migration is disabled
+ DeviceToDeviceMigrationDisabled *bool `json:"deviceToDeviceMigrationDisabled,omitempty"`
+ // WelcomeScreenDisabled Indicates if Weclome screen is disabled
+ WelcomeScreenDisabled *bool `json:"welcomeScreenDisabled,omitempty"`
+}
+
+// DepMacOSEnrollmentProfile The DepMacOSEnrollmentProfile resource represents an Apple Device Enrollment Program (DEP) enrollment profile specific to macOS configuration. This type of profile must be assigned to Apple DEP serial numbers before the corresponding devices can enroll via DEP.
+type DepMacOSEnrollmentProfile struct {
+ // DepEnrollmentBaseProfile is the base model of DepMacOSEnrollmentProfile
+ DepEnrollmentBaseProfile
+ // RegistrationDisabled Indicates if registration is disabled
+ RegistrationDisabled *bool `json:"registrationDisabled,omitempty"`
+ // FileVaultDisabled Indicates if file vault is disabled
+ FileVaultDisabled *bool `json:"fileVaultDisabled,omitempty"`
+ // ICloudDiagnosticsDisabled Indicates if iCloud Analytics screen is disabled
+ ICloudDiagnosticsDisabled *bool `json:"iCloudDiagnosticsDisabled,omitempty"`
+ // ICloudStorageDisabled Indicates if iCloud Documents and Desktop screen is disabled
+ ICloudStorageDisabled *bool `json:"iCloudStorageDisabled,omitempty"`
+ // ChooseYourLockScreenDisabled Indicates if iCloud Documents and Desktop screen is disabled
+ ChooseYourLockScreenDisabled *bool `json:"chooseYourLockScreenDisabled,omitempty"`
+}
+
+// DepOnboardingSetting The depOnboardingSetting represents an instance of the Apple DEP service being onboarded to Intune. The onboarded service instance manages an Apple Token used to synchronize data between Apple and Intune.
+type DepOnboardingSetting struct {
+ // Entity is the base model of DepOnboardingSetting
+ Entity
+ // AppleIdentifier The Apple ID used to obtain the current token.
+ AppleIdentifier *string `json:"appleIdentifier,omitempty"`
+ // TokenExpirationDateTime When the token will expire.
+ TokenExpirationDateTime *time.Time `json:"tokenExpirationDateTime,omitempty"`
+ // LastModifiedDateTime When the service was onboarded.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastSuccessfulSyncDateTime When the service last syned with Intune
+ LastSuccessfulSyncDateTime *time.Time `json:"lastSuccessfulSyncDateTime,omitempty"`
+ // LastSyncTriggeredDateTime When Intune last requested a sync.
+ LastSyncTriggeredDateTime *time.Time `json:"lastSyncTriggeredDateTime,omitempty"`
+ // ShareTokenWithSchoolDataSyncService Whether or not the Dep token sharing is enabled with the School Data Sync service.
+ ShareTokenWithSchoolDataSyncService *bool `json:"shareTokenWithSchoolDataSyncService,omitempty"`
+ // LastSyncErrorCode Error code reported by Apple during last dep sync.
+ LastSyncErrorCode *int `json:"lastSyncErrorCode,omitempty"`
+ // TokenType Gets or sets the Dep Token Type.
+ TokenType *DepTokenType `json:"tokenType,omitempty"`
+ // TokenName Friendly Name for Dep Token
+ TokenName *string `json:"tokenName,omitempty"`
+ // SyncedDeviceCount Gets synced device count
+ SyncedDeviceCount *int `json:"syncedDeviceCount,omitempty"`
+ // DataSharingConsentGranted Consent granted for data sharing with Apple Dep Service
+ DataSharingConsentGranted *bool `json:"dataSharingConsentGranted,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // DefaultIOSEnrollmentProfile undocumented
+ DefaultIOSEnrollmentProfile *DepIOSEnrollmentProfile `json:"defaultIosEnrollmentProfile,omitempty"`
+ // DefaultMacOsEnrollmentProfile undocumented
+ DefaultMacOsEnrollmentProfile *DepMacOSEnrollmentProfile `json:"defaultMacOsEnrollmentProfile,omitempty"`
+ // EnrollmentProfiles undocumented
+ EnrollmentProfiles []EnrollmentProfile `json:"enrollmentProfiles,omitempty"`
+ // ImportedAppleDeviceIdentities undocumented
+ ImportedAppleDeviceIdentities []ImportedAppleDeviceIdentity `json:"importedAppleDeviceIdentities,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetails.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetails.go
new file mode 100644
index 00000000..b8dea67f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetails.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DetailsInfo undocumented
+type DetailsInfo struct {
+ // Object is the base model of DetailsInfo
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetected.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetected.go
new file mode 100644
index 00000000..c0e77e5d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDetected.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DetectedApp A managed or unmanaged app that is installed on a managed device. Unmanaged apps will only appear for devices marked as corporate owned.
+type DetectedApp struct {
+ // Entity is the base model of DetectedApp
+ Entity
+ // DisplayName Name of the discovered application. Read-only
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the discovered application. Read-only
+ Version *string `json:"version,omitempty"`
+ // SizeInByte Discovered application size in bytes. Read-only
+ SizeInByte *int `json:"sizeInByte,omitempty"`
+ // DeviceCount The number of devices that have installed this application
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // ManagedDevices undocumented
+ ManagedDevices []ManagedDevice `json:"managedDevices,omitempty"`
+}
+
+// DetectedSensitiveContent undocumented
+type DetectedSensitiveContent struct {
+ // Object is the base model of DetectedSensitiveContent
+ Object
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // UniqueCount undocumented
+ UniqueCount *int `json:"uniqueCount,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+ // RecommendedConfidence undocumented
+ RecommendedConfidence *int `json:"recommendedConfidence,omitempty"`
+ // Matches undocumented
+ Matches []SensitiveContentLocation `json:"matches,omitempty"`
+}
+
+// DetectedSensitiveContentWrapper undocumented
+type DetectedSensitiveContentWrapper struct {
+ // Object is the base model of DetectedSensitiveContentWrapper
+ Object
+ // Classification undocumented
+ Classification []DetectedSensitiveContent `json:"classification,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDevice.go
new file mode 100644
index 00000000..7c892460
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDevice.go
@@ -0,0 +1,2323 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Device undocumented
+type Device struct {
+ // DirectoryObject is the base model of Device
+ DirectoryObject
+ // AccountEnabled undocumented
+ AccountEnabled *bool `json:"accountEnabled,omitempty"`
+ // AlternativeSecurityIDs undocumented
+ AlternativeSecurityIDs []AlternativeSecurityID `json:"alternativeSecurityIds,omitempty"`
+ // ApproximateLastSignInDateTime undocumented
+ ApproximateLastSignInDateTime *time.Time `json:"approximateLastSignInDateTime,omitempty"`
+ // ComplianceExpirationDateTime undocumented
+ ComplianceExpirationDateTime *time.Time `json:"complianceExpirationDateTime,omitempty"`
+ // DeviceID undocumented
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DeviceMetadata undocumented
+ DeviceMetadata *string `json:"deviceMetadata,omitempty"`
+ // DeviceVersion undocumented
+ DeviceVersion *int `json:"deviceVersion,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsCompliant undocumented
+ IsCompliant *bool `json:"isCompliant,omitempty"`
+ // IsManaged undocumented
+ IsManaged *bool `json:"isManaged,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // OperatingSystem undocumented
+ OperatingSystem *string `json:"operatingSystem,omitempty"`
+ // OperatingSystemVersion undocumented
+ OperatingSystemVersion *string `json:"operatingSystemVersion,omitempty"`
+ // PhysicalIDs undocumented
+ PhysicalIDs []string `json:"physicalIds,omitempty"`
+ // ProfileType undocumented
+ ProfileType *string `json:"profileType,omitempty"`
+ // SystemLabels undocumented
+ SystemLabels []string `json:"systemLabels,omitempty"`
+ // TrustType undocumented
+ TrustType *string `json:"trustType,omitempty"`
+ // Name undocumented
+ Name *string `json:"Name,omitempty"`
+ // Manufacturer undocumented
+ Manufacturer *string `json:"Manufacturer,omitempty"`
+ // Model undocumented
+ Model *string `json:"Model,omitempty"`
+ // Kind undocumented
+ Kind *string `json:"Kind,omitempty"`
+ // Status undocumented
+ Status *string `json:"Status,omitempty"`
+ // Platform undocumented
+ Platform *string `json:"Platform,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // RegisteredOwners undocumented
+ RegisteredOwners []DirectoryObject `json:"registeredOwners,omitempty"`
+ // RegisteredUsers undocumented
+ RegisteredUsers []DirectoryObject `json:"registeredUsers,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // Commands undocumented
+ Commands []Command `json:"commands,omitempty"`
+}
+
+// DeviceActionResult undocumented
+type DeviceActionResult struct {
+ // Object is the base model of DeviceActionResult
+ Object
+ // ActionName Action name
+ ActionName *string `json:"actionName,omitempty"`
+ // ActionState State of the action
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // StartDateTime Time the action was initiated
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime Time the action state was last updated
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+}
+
+// DeviceAndAppManagementAssignedRoleDetails undocumented
+type DeviceAndAppManagementAssignedRoleDetails struct {
+ // Object is the base model of DeviceAndAppManagementAssignedRoleDetails
+ Object
+ // RoleDefinitionIDs Role Definition IDs for the specifc Role Definitions assigned to a user.
+ RoleDefinitionIDs []string `json:"roleDefinitionIds,omitempty"`
+ // RoleAssignmentIDs Role Assignment IDs for the specifc Role Assignments assigned to a user.
+ RoleAssignmentIDs []string `json:"roleAssignmentIds,omitempty"`
+}
+
+// DeviceAndAppManagementAssignmentTarget undocumented
+type DeviceAndAppManagementAssignmentTarget struct {
+ // Object is the base model of DeviceAndAppManagementAssignmentTarget
+ Object
+}
+
+// DeviceAndAppManagementData undocumented
+type DeviceAndAppManagementData struct {
+ // Object is the base model of DeviceAndAppManagementData
+ Object
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+}
+
+// DeviceAndAppManagementRoleAssignment The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles.
+type DeviceAndAppManagementRoleAssignment struct {
+ // RoleAssignment is the base model of DeviceAndAppManagementRoleAssignment
+ RoleAssignment
+ // Members The list of ids of role member security groups. These are IDs from Azure Active Directory.
+ Members []string `json:"members,omitempty"`
+ // RoleScopeTags undocumented
+ RoleScopeTags []RoleScopeTag `json:"roleScopeTags,omitempty"`
+}
+
+// DeviceAndAppManagementRoleDefinition The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role.
+type DeviceAndAppManagementRoleDefinition struct {
+ // RoleDefinition is the base model of DeviceAndAppManagementRoleDefinition
+ RoleDefinition
+}
+
+// DeviceAppManagement Singleton entity that acts as a container for all device and app management functionality.
+type DeviceAppManagement struct {
+ // Entity is the base model of DeviceAppManagement
+ Entity
+ // MicrosoftStoreForBusinessLastSuccessfulSyncDateTime The last time the apps from the Microsoft Store for Business were synced successfully for the account.
+ MicrosoftStoreForBusinessLastSuccessfulSyncDateTime *time.Time `json:"microsoftStoreForBusinessLastSuccessfulSyncDateTime,omitempty"`
+ // IsEnabledForMicrosoftStoreForBusiness Whether the account is enabled for syncing applications from the Microsoft Store for Business.
+ IsEnabledForMicrosoftStoreForBusiness *bool `json:"isEnabledForMicrosoftStoreForBusiness,omitempty"`
+ // MicrosoftStoreForBusinessLanguage The locale information used to sync applications from the Microsoft Store for Business. Cultures that are specific to a country/region. The names of these cultures follow RFC 4646 (Windows Vista and later). The format is <languagecode2>-<country/regioncode2>, where <languagecode2> is a lowercase two-letter code derived from ISO 639-1 and <country/regioncode2> is an uppercase two-letter code derived from ISO 3166. For example, en-US for English (United States) is a specific culture.
+ MicrosoftStoreForBusinessLanguage *string `json:"microsoftStoreForBusinessLanguage,omitempty"`
+ // MicrosoftStoreForBusinessLastCompletedApplicationSyncTime The last time an application sync from the Microsoft Store for Business was completed.
+ MicrosoftStoreForBusinessLastCompletedApplicationSyncTime *time.Time `json:"microsoftStoreForBusinessLastCompletedApplicationSyncTime,omitempty"`
+ // MicrosoftStoreForBusinessPortalSelection The end user portal information is used to sync applications from the Microsoft Store for Business to Intune Company Portal. There are three options to pick from ['Company portal only', 'Company portal and private store', 'Private store only']
+ MicrosoftStoreForBusinessPortalSelection *MicrosoftStoreForBusinessPortalSelectionOptions `json:"microsoftStoreForBusinessPortalSelection,omitempty"`
+ // ManagedEBooks undocumented
+ ManagedEBooks []ManagedEBook `json:"managedEBooks,omitempty"`
+ // MobileApps undocumented
+ MobileApps []MobileApp `json:"mobileApps,omitempty"`
+ // MobileAppCategories undocumented
+ MobileAppCategories []MobileAppCategory `json:"mobileAppCategories,omitempty"`
+ // EnterpriseCodeSigningCertificates undocumented
+ EnterpriseCodeSigningCertificates []EnterpriseCodeSigningCertificate `json:"enterpriseCodeSigningCertificates,omitempty"`
+ // IOSLobAppProvisioningConfigurations undocumented
+ IOSLobAppProvisioningConfigurations []IOSLobAppProvisioningConfiguration `json:"iosLobAppProvisioningConfigurations,omitempty"`
+ // SymantecCodeSigningCertificate undocumented
+ SymantecCodeSigningCertificate *SymantecCodeSigningCertificate `json:"symantecCodeSigningCertificate,omitempty"`
+ // MobileAppConfigurations undocumented
+ MobileAppConfigurations []ManagedDeviceMobileAppConfiguration `json:"mobileAppConfigurations,omitempty"`
+ // ManagedEBookCategories undocumented
+ ManagedEBookCategories []ManagedEBookCategory `json:"managedEBookCategories,omitempty"`
+ // PolicySets undocumented
+ PolicySets []PolicySet `json:"policySets,omitempty"`
+ // SideLoadingKeys undocumented
+ SideLoadingKeys []SideLoadingKey `json:"sideLoadingKeys,omitempty"`
+ // VPPTokens undocumented
+ VPPTokens []VPPToken `json:"vppTokens,omitempty"`
+ // WindowsManagementApp undocumented
+ WindowsManagementApp *WindowsManagementApp `json:"windowsManagementApp,omitempty"`
+ // ManagedAppPolicies undocumented
+ ManagedAppPolicies []ManagedAppPolicy `json:"managedAppPolicies,omitempty"`
+ // IOSManagedAppProtections undocumented
+ IOSManagedAppProtections []IOSManagedAppProtection `json:"iosManagedAppProtections,omitempty"`
+ // AndroidManagedAppProtections undocumented
+ AndroidManagedAppProtections []AndroidManagedAppProtection `json:"androidManagedAppProtections,omitempty"`
+ // DefaultManagedAppProtections undocumented
+ DefaultManagedAppProtections []DefaultManagedAppProtection `json:"defaultManagedAppProtections,omitempty"`
+ // TargetedManagedAppConfigurations undocumented
+ TargetedManagedAppConfigurations []TargetedManagedAppConfiguration `json:"targetedManagedAppConfigurations,omitempty"`
+ // MDMWindowsInformationProtectionPolicies undocumented
+ MDMWindowsInformationProtectionPolicies []MDMWindowsInformationProtectionPolicy `json:"mdmWindowsInformationProtectionPolicies,omitempty"`
+ // WindowsInformationProtectionPolicies undocumented
+ WindowsInformationProtectionPolicies []WindowsInformationProtectionPolicy `json:"windowsInformationProtectionPolicies,omitempty"`
+ // ManagedAppRegistrations undocumented
+ ManagedAppRegistrations []ManagedAppRegistration `json:"managedAppRegistrations,omitempty"`
+ // ManagedAppStatuses undocumented
+ ManagedAppStatuses []ManagedAppStatus `json:"managedAppStatuses,omitempty"`
+ // WindowsInformationProtectionDeviceRegistrations undocumented
+ WindowsInformationProtectionDeviceRegistrations []WindowsInformationProtectionDeviceRegistration `json:"windowsInformationProtectionDeviceRegistrations,omitempty"`
+ // WindowsInformationProtectionWipeActions undocumented
+ WindowsInformationProtectionWipeActions []WindowsInformationProtectionWipeAction `json:"windowsInformationProtectionWipeActions,omitempty"`
+ // DeviceAppManagementTasks undocumented
+ DeviceAppManagementTasks []DeviceAppManagementTask `json:"deviceAppManagementTasks,omitempty"`
+ // WdacSupplementalPolicies undocumented
+ WdacSupplementalPolicies []WindowsDefenderApplicationControlSupplementalPolicy `json:"wdacSupplementalPolicies,omitempty"`
+}
+
+// DeviceAppManagementTask A device app management task.
+type DeviceAppManagementTask struct {
+ // Entity is the base model of DeviceAppManagementTask
+ Entity
+ // DisplayName The name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime The created date.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DueDateTime The due date.
+ DueDateTime *time.Time `json:"dueDateTime,omitempty"`
+ // Category The category.
+ Category *DeviceAppManagementTaskCategory `json:"category,omitempty"`
+ // Priority The priority.
+ Priority *DeviceAppManagementTaskPriority `json:"priority,omitempty"`
+ // Creator The email address of the creator.
+ Creator *string `json:"creator,omitempty"`
+ // CreatorNotes Notes from the creator.
+ CreatorNotes *string `json:"creatorNotes,omitempty"`
+ // AssignedTo The name or email of the admin this task is assigned to.
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // Status The status.
+ Status *DeviceAppManagementTaskStatus `json:"status,omitempty"`
+}
+
+// DeviceCategory Device categories provides a way to organize your devices. Using device categories, company administrators can define their own categories that make sense to their company. These categories can then be applied to a device in the Intune Azure console or selected by a user during device enrollment. You can filter reports and create dynamic Azure Active Directory device groups based on device categories.
+type DeviceCategory struct {
+ // Entity is the base model of DeviceCategory
+ Entity
+ // DisplayName Display name for the device category.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Optional description for the device category.
+ Description *string `json:"description,omitempty"`
+ // RoleScopeTagIDs Optional role scope tags for the device category.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
+
+// DeviceComplianceActionItem Scheduled Action Configuration
+type DeviceComplianceActionItem struct {
+ // Entity is the base model of DeviceComplianceActionItem
+ Entity
+ // GracePeriodHours Number of hours to wait till the action will be enforced. Valid values 0 to 8760
+ GracePeriodHours *int `json:"gracePeriodHours,omitempty"`
+ // ActionType What action to take
+ ActionType *DeviceComplianceActionType `json:"actionType,omitempty"`
+ // NotificationTemplateID What notification Message template to use
+ NotificationTemplateID *string `json:"notificationTemplateId,omitempty"`
+ // NotificationMessageCCList A list of group IDs to speicify who to CC this notification message to.
+ NotificationMessageCCList []string `json:"notificationMessageCCList,omitempty"`
+}
+
+// DeviceComplianceDeviceOverview undocumented
+type DeviceComplianceDeviceOverview struct {
+ // Entity is the base model of DeviceComplianceDeviceOverview
+ Entity
+ // PendingCount Number of pending devices
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy
+ NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"`
+ // SuccessCount Number of succeeded devices
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed devices
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
+
+// DeviceComplianceDeviceStatus undocumented
+type DeviceComplianceDeviceStatus struct {
+ // Entity is the base model of DeviceComplianceDeviceStatus
+ Entity
+ // DeviceDisplayName Device name of the DevicePolicyStatus.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // Platform Platform of the device that is being reported
+ Platform *int `json:"platform,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// DeviceCompliancePolicy This is the base class for Compliance policy. Compliance policies are platform specific and individual per-platform compliance policies inherit from here.
+type DeviceCompliancePolicy struct {
+ // Entity is the base model of DeviceCompliancePolicy
+ Entity
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+ // ScheduledActionsForRule undocumented
+ ScheduledActionsForRule []DeviceComplianceScheduledActionForRule `json:"scheduledActionsForRule,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []DeviceComplianceDeviceStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []DeviceComplianceUserStatus `json:"userStatuses,omitempty"`
+ // DeviceStatusOverview undocumented
+ DeviceStatusOverview *DeviceComplianceDeviceOverview `json:"deviceStatusOverview,omitempty"`
+ // UserStatusOverview undocumented
+ UserStatusOverview *DeviceComplianceUserOverview `json:"userStatusOverview,omitempty"`
+ // DeviceSettingStateSummaries undocumented
+ DeviceSettingStateSummaries []SettingStateDeviceSummary `json:"deviceSettingStateSummaries,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceCompliancePolicyAssignment `json:"assignments,omitempty"`
+}
+
+// DeviceCompliancePolicyAssignment Device compliance policy assignment.
+type DeviceCompliancePolicyAssignment struct {
+ // Entity is the base model of DeviceCompliancePolicyAssignment
+ Entity
+ // Target Target for the compliance policy assignment.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source The assignment source for the device compliance policy, direct or parcel/policySet.
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID The identifier of the source of the assignment.
+ SourceID *string `json:"sourceId,omitempty"`
+}
+
+// DeviceCompliancePolicyDeviceStateSummary undocumented
+type DeviceCompliancePolicyDeviceStateSummary struct {
+ // Entity is the base model of DeviceCompliancePolicyDeviceStateSummary
+ Entity
+ // InGracePeriodCount Number of devices that are in grace period
+ InGracePeriodCount *int `json:"inGracePeriodCount,omitempty"`
+ // ConfigManagerCount Number of devices that have compliance managed by System Center Configuration Manager
+ ConfigManagerCount *int `json:"configManagerCount,omitempty"`
+ // UnknownDeviceCount Number of unknown devices
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Number of compliant devices
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of NonCompliant devices
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of error devices
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+}
+
+// DeviceCompliancePolicyGroupAssignment Device compliance policy group assignment.
+type DeviceCompliancePolicyGroupAssignment struct {
+ // Entity is the base model of DeviceCompliancePolicyGroupAssignment
+ Entity
+ // TargetGroupID The Id of the AAD group we are targeting the device compliance policy to.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+ // ExcludeGroup Indicates if this group is should be excluded. Defaults that the group should be included
+ ExcludeGroup *bool `json:"excludeGroup,omitempty"`
+ // DeviceCompliancePolicy undocumented
+ DeviceCompliancePolicy *DeviceCompliancePolicy `json:"deviceCompliancePolicy,omitempty"`
+}
+
+// DeviceCompliancePolicyPolicySetItem A class containing the properties used for device compliance policy PolicySetItem.
+type DeviceCompliancePolicyPolicySetItem struct {
+ // PolicySetItem is the base model of DeviceCompliancePolicyPolicySetItem
+ PolicySetItem
+}
+
+// DeviceCompliancePolicySettingState undocumented
+type DeviceCompliancePolicySettingState struct {
+ // Object is the base model of DeviceCompliancePolicySettingState
+ Object
+ // Setting The setting that is being reported
+ Setting *string `json:"setting,omitempty"`
+ // SettingName Localized/user friendly setting name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // InstanceDisplayName Name of setting instance that is being reported.
+ InstanceDisplayName *string `json:"instanceDisplayName,omitempty"`
+ // State The compliance state of the setting
+ State *ComplianceStatus `json:"state,omitempty"`
+ // ErrorCode Error code for the setting
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // ErrorDescription Error description
+ ErrorDescription *string `json:"errorDescription,omitempty"`
+ // UserID UserId
+ UserID *string `json:"userId,omitempty"`
+ // UserName UserName
+ UserName *string `json:"userName,omitempty"`
+ // UserEmail UserEmail
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // Sources Contributing policies
+ Sources []SettingSource `json:"sources,omitempty"`
+ // CurrentValue Current value of setting on device
+ CurrentValue *string `json:"currentValue,omitempty"`
+}
+
+// DeviceCompliancePolicySettingStateSummary Device Compilance Policy Setting State summary across the account.
+type DeviceCompliancePolicySettingStateSummary struct {
+ // Entity is the base model of DeviceCompliancePolicySettingStateSummary
+ Entity
+ // Setting The setting class name and property name.
+ Setting *string `json:"setting,omitempty"`
+ // SettingName Name of the setting.
+ SettingName *string `json:"settingName,omitempty"`
+ // PlatformType Setting platform
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // UnknownDeviceCount Number of unknown devices
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Number of compliant devices
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of NonCompliant devices
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of error devices
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+ // DeviceComplianceSettingStates undocumented
+ DeviceComplianceSettingStates []DeviceComplianceSettingState `json:"deviceComplianceSettingStates,omitempty"`
+}
+
+// DeviceCompliancePolicyState Device Compliance Policy State for a given device.
+type DeviceCompliancePolicyState struct {
+ // Entity is the base model of DeviceCompliancePolicyState
+ Entity
+ // SettingStates undocumented
+ SettingStates []DeviceCompliancePolicySettingState `json:"settingStates,omitempty"`
+ // DisplayName The name of the policy for this policyBase
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version The version of the policy
+ Version *int `json:"version,omitempty"`
+ // PlatformType Platform type that the policy applies to
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // State The compliance state of the policy
+ State *ComplianceStatus `json:"state,omitempty"`
+ // SettingCount Count of how many setting a policy holds
+ SettingCount *int `json:"settingCount,omitempty"`
+ // UserID User unique identifier, must be Guid
+ UserID *string `json:"userId,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// DeviceComplianceScheduledActionForRule Scheduled Action for Rule
+type DeviceComplianceScheduledActionForRule struct {
+ // Entity is the base model of DeviceComplianceScheduledActionForRule
+ Entity
+ // RuleName Name of the rule which this scheduled action applies to.
+ RuleName *string `json:"ruleName,omitempty"`
+ // ScheduledActionConfigurations undocumented
+ ScheduledActionConfigurations []DeviceComplianceActionItem `json:"scheduledActionConfigurations,omitempty"`
+}
+
+// DeviceComplianceSettingState Device compliance setting State for a given device.
+type DeviceComplianceSettingState struct {
+ // Entity is the base model of DeviceComplianceSettingState
+ Entity
+ // PlatformType Device platform type
+ PlatformType *DeviceType `json:"platformType,omitempty"`
+ // Setting The setting class name and property name.
+ Setting *string `json:"setting,omitempty"`
+ // SettingName The Setting Name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // DeviceID The Device Id that is being reported
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DeviceName The Device Name that is being reported
+ DeviceName *string `json:"deviceName,omitempty"`
+ // UserID The user Id that is being reported
+ UserID *string `json:"userId,omitempty"`
+ // UserEmail The User email address that is being reported
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName The User PrincipalName that is being reported
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // State The compliance state of the setting
+ State *ComplianceStatus `json:"state,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+}
+
+// DeviceComplianceUserOverview undocumented
+type DeviceComplianceUserOverview struct {
+ // Entity is the base model of DeviceComplianceUserOverview
+ Entity
+ // PendingCount Number of pending Users
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable users
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // SuccessCount Number of succeeded Users
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error Users
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed Users
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of users in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
+
+// DeviceComplianceUserStatus undocumented
+type DeviceComplianceUserStatus struct {
+ // Entity is the base model of DeviceComplianceUserStatus
+ Entity
+ // UserDisplayName User name of the DevicePolicyStatus.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // DevicesCount Devices count for that user.
+ DevicesCount *int `json:"devicesCount,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// DeviceConfiguration Device Configuration.
+type DeviceConfiguration struct {
+ // Entity is the base model of DeviceConfiguration
+ Entity
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // SupportsScopeTags Indicates whether or not the underlying Device Configuration supports the assignment of scope tags. Assigning to the ScopeTags property is not allowed when this value is false and entities will not be visible to scoped users. This occurs for Legacy policies created in Silverlight and can be resolved by deleting and recreating the policy in the Azure Portal. This property is read-only.
+ SupportsScopeTags *bool `json:"supportsScopeTags,omitempty"`
+ // DeviceManagementApplicabilityRuleOsEdition The OS edition applicability for this Policy.
+ DeviceManagementApplicabilityRuleOsEdition *DeviceManagementApplicabilityRuleOsEdition `json:"deviceManagementApplicabilityRuleOsEdition,omitempty"`
+ // DeviceManagementApplicabilityRuleOsVersion The OS version applicability rule for this Policy.
+ DeviceManagementApplicabilityRuleOsVersion *DeviceManagementApplicabilityRuleOsVersion `json:"deviceManagementApplicabilityRuleOsVersion,omitempty"`
+ // DeviceManagementApplicabilityRuleDeviceMode The device mode applicability rule for this Policy.
+ DeviceManagementApplicabilityRuleDeviceMode *DeviceManagementApplicabilityRuleDeviceMode `json:"deviceManagementApplicabilityRuleDeviceMode,omitempty"`
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+ // GroupAssignments undocumented
+ GroupAssignments []DeviceConfigurationGroupAssignment `json:"groupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceConfigurationAssignment `json:"assignments,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []DeviceConfigurationDeviceStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []DeviceConfigurationUserStatus `json:"userStatuses,omitempty"`
+ // DeviceStatusOverview undocumented
+ DeviceStatusOverview *DeviceConfigurationDeviceOverview `json:"deviceStatusOverview,omitempty"`
+ // UserStatusOverview undocumented
+ UserStatusOverview *DeviceConfigurationUserOverview `json:"userStatusOverview,omitempty"`
+ // DeviceSettingStateSummaries undocumented
+ DeviceSettingStateSummaries []SettingStateDeviceSummary `json:"deviceSettingStateSummaries,omitempty"`
+}
+
+// DeviceConfigurationAssignment The device configuration assignment entity assigns an AAD group to a specific device configuration.
+type DeviceConfigurationAssignment struct {
+ // Entity is the base model of DeviceConfigurationAssignment
+ Entity
+ // Target The assignment target for the device configuration.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source The assignment source for the device configuration, direct or parcel/policySet. This property is read-only.
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID The identifier of the source of the assignment. This property is read-only.
+ SourceID *string `json:"sourceId,omitempty"`
+}
+
+// DeviceConfigurationConflictSummary Conflict summary for a set of device configuration policies.
+type DeviceConfigurationConflictSummary struct {
+ // Entity is the base model of DeviceConfigurationConflictSummary
+ Entity
+ // ConflictingDeviceConfigurations The set of policies in conflict with the given setting
+ ConflictingDeviceConfigurations []SettingSource `json:"conflictingDeviceConfigurations,omitempty"`
+ // ContributingSettings The set of settings in conflict with the given policies
+ ContributingSettings []string `json:"contributingSettings,omitempty"`
+ // DeviceCheckinsImpacted The count of checkins impacted by the conflicting policies and settings
+ DeviceCheckinsImpacted *int `json:"deviceCheckinsImpacted,omitempty"`
+}
+
+// DeviceConfigurationDeviceOverview undocumented
+type DeviceConfigurationDeviceOverview struct {
+ // Entity is the base model of DeviceConfigurationDeviceOverview
+ Entity
+ // PendingCount Number of pending devices
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy
+ NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"`
+ // SuccessCount Number of succeeded devices
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed devices
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
+
+// DeviceConfigurationDeviceStateSummary undocumented
+type DeviceConfigurationDeviceStateSummary struct {
+ // Entity is the base model of DeviceConfigurationDeviceStateSummary
+ Entity
+ // UnknownDeviceCount Number of unknown devices
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Number of compliant devices
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of NonCompliant devices
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of error devices
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+}
+
+// DeviceConfigurationDeviceStatus undocumented
+type DeviceConfigurationDeviceStatus struct {
+ // Entity is the base model of DeviceConfigurationDeviceStatus
+ Entity
+ // DeviceDisplayName Device name of the DevicePolicyStatus.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // Platform Platform of the device that is being reported
+ Platform *int `json:"platform,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// DeviceConfigurationGroupAssignment Device configuration group assignment.
+type DeviceConfigurationGroupAssignment struct {
+ // Entity is the base model of DeviceConfigurationGroupAssignment
+ Entity
+ // TargetGroupID The Id of the AAD group we are targeting the device configuration to.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+ // ExcludeGroup Indicates if this group is should be excluded. Defaults that the group should be included
+ ExcludeGroup *bool `json:"excludeGroup,omitempty"`
+ // DeviceConfiguration undocumented
+ DeviceConfiguration *DeviceConfiguration `json:"deviceConfiguration,omitempty"`
+}
+
+// DeviceConfigurationPolicySetItem A class containing the properties used for device configuration PolicySetItem.
+type DeviceConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of DeviceConfigurationPolicySetItem
+ PolicySetItem
+}
+
+// DeviceConfigurationSettingState undocumented
+type DeviceConfigurationSettingState struct {
+ // Object is the base model of DeviceConfigurationSettingState
+ Object
+ // Setting The setting that is being reported
+ Setting *string `json:"setting,omitempty"`
+ // SettingName Localized/user friendly setting name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // InstanceDisplayName Name of setting instance that is being reported.
+ InstanceDisplayName *string `json:"instanceDisplayName,omitempty"`
+ // State The compliance state of the setting
+ State *ComplianceStatus `json:"state,omitempty"`
+ // ErrorCode Error code for the setting
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // ErrorDescription Error description
+ ErrorDescription *string `json:"errorDescription,omitempty"`
+ // UserID UserId
+ UserID *string `json:"userId,omitempty"`
+ // UserName UserName
+ UserName *string `json:"userName,omitempty"`
+ // UserEmail UserEmail
+ UserEmail *string `json:"userEmail,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // Sources Contributing policies
+ Sources []SettingSource `json:"sources,omitempty"`
+ // CurrentValue Current value of setting on device
+ CurrentValue *string `json:"currentValue,omitempty"`
+}
+
+// DeviceConfigurationState Device Configuration State for a given device.
+type DeviceConfigurationState struct {
+ // Entity is the base model of DeviceConfigurationState
+ Entity
+ // SettingStates undocumented
+ SettingStates []DeviceConfigurationSettingState `json:"settingStates,omitempty"`
+ // DisplayName The name of the policy for this policyBase
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version The version of the policy
+ Version *int `json:"version,omitempty"`
+ // PlatformType Platform type that the policy applies to
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // State The compliance state of the policy
+ State *ComplianceStatus `json:"state,omitempty"`
+ // SettingCount Count of how many setting a policy holds
+ SettingCount *int `json:"settingCount,omitempty"`
+ // UserID User unique identifier, must be Guid
+ UserID *string `json:"userId,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// DeviceConfigurationTargetedUserAndDevice undocumented
+type DeviceConfigurationTargetedUserAndDevice struct {
+ // Object is the base model of DeviceConfigurationTargetedUserAndDevice
+ Object
+ // DeviceID The id of the device in the checkin.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DeviceName The name of the device in the checkin.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // UserID The id of the user in the checkin.
+ UserID *string `json:"userId,omitempty"`
+ // UserDisplayName The display name of the user in the checkin
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName The UPN of the user in the checkin.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastCheckinDateTime Last checkin time for this user/device pair.
+ LastCheckinDateTime *time.Time `json:"lastCheckinDateTime,omitempty"`
+}
+
+// DeviceConfigurationUserOverview undocumented
+type DeviceConfigurationUserOverview struct {
+ // Entity is the base model of DeviceConfigurationUserOverview
+ Entity
+ // PendingCount Number of pending Users
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable users
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // SuccessCount Number of succeeded Users
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error Users
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed Users
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of users in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
+
+// DeviceConfigurationUserStateSummary undocumented
+type DeviceConfigurationUserStateSummary struct {
+ // Entity is the base model of DeviceConfigurationUserStateSummary
+ Entity
+ // UnknownUserCount Number of unknown users
+ UnknownUserCount *int `json:"unknownUserCount,omitempty"`
+ // NotApplicableUserCount Number of not applicable users
+ NotApplicableUserCount *int `json:"notApplicableUserCount,omitempty"`
+ // CompliantUserCount Number of compliant users
+ CompliantUserCount *int `json:"compliantUserCount,omitempty"`
+ // RemediatedUserCount Number of remediated users
+ RemediatedUserCount *int `json:"remediatedUserCount,omitempty"`
+ // NonCompliantUserCount Number of NonCompliant users
+ NonCompliantUserCount *int `json:"nonCompliantUserCount,omitempty"`
+ // ErrorUserCount Number of error users
+ ErrorUserCount *int `json:"errorUserCount,omitempty"`
+ // ConflictUserCount Number of conflict users
+ ConflictUserCount *int `json:"conflictUserCount,omitempty"`
+}
+
+// DeviceConfigurationUserStatus undocumented
+type DeviceConfigurationUserStatus struct {
+ // Entity is the base model of DeviceConfigurationUserStatus
+ Entity
+ // UserDisplayName User name of the DevicePolicyStatus.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // DevicesCount Devices count for that user.
+ DevicesCount *int `json:"devicesCount,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// DeviceDetail undocumented
+type DeviceDetail struct {
+ // Object is the base model of DeviceDetail
+ Object
+ // DeviceID undocumented
+ DeviceID *string `json:"deviceId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // OperatingSystem undocumented
+ OperatingSystem *string `json:"operatingSystem,omitempty"`
+ // Browser undocumented
+ Browser *string `json:"browser,omitempty"`
+ // BrowserID undocumented
+ BrowserID *string `json:"browserId,omitempty"`
+ // IsCompliant undocumented
+ IsCompliant *bool `json:"isCompliant,omitempty"`
+ // IsManaged undocumented
+ IsManaged *bool `json:"isManaged,omitempty"`
+ // TrustType undocumented
+ TrustType *string `json:"trustType,omitempty"`
+}
+
+// DeviceEnrollmentConfiguration The Base Class of Device Enrollment Configuration
+type DeviceEnrollmentConfiguration struct {
+ // Entity is the base model of DeviceEnrollmentConfiguration
+ Entity
+ // DisplayName The display name of the device enrollment configuration
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of the device enrollment configuration
+ Description *string `json:"description,omitempty"`
+ // Priority Priority is used when a user exists in multiple groups that are assigned enrollment configuration. Users are subject only to the configuration with the lowest priority value.
+ Priority *int `json:"priority,omitempty"`
+ // CreatedDateTime Created date time in UTC of the device enrollment configuration
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Last modified date time in UTC of the device enrollment configuration
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Version The version of the device enrollment configuration
+ Version *int `json:"version,omitempty"`
+ // Assignments undocumented
+ Assignments []EnrollmentConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+// DeviceEnrollmentLimitConfiguration Device Enrollment Configuration that restricts the number of devices a user can enroll
+type DeviceEnrollmentLimitConfiguration struct {
+ // DeviceEnrollmentConfiguration is the base model of DeviceEnrollmentLimitConfiguration
+ DeviceEnrollmentConfiguration
+ // Limit The maximum number of devices that a user can enroll
+ Limit *int `json:"limit,omitempty"`
+}
+
+// DeviceEnrollmentPlatformRestriction undocumented
+type DeviceEnrollmentPlatformRestriction struct {
+ // Object is the base model of DeviceEnrollmentPlatformRestriction
+ Object
+ // PlatformBlocked Block the platform from enrolling
+ PlatformBlocked *bool `json:"platformBlocked,omitempty"`
+ // PersonalDeviceEnrollmentBlocked Block personally owned devices from enrolling
+ PersonalDeviceEnrollmentBlocked *bool `json:"personalDeviceEnrollmentBlocked,omitempty"`
+ // OsMinimumVersion Min OS version supported
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Max OS version supported
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+}
+
+// DeviceEnrollmentPlatformRestrictionsConfiguration Device Enrollment Configuration that restricts the types of devices a user can enroll
+type DeviceEnrollmentPlatformRestrictionsConfiguration struct {
+ // DeviceEnrollmentConfiguration is the base model of DeviceEnrollmentPlatformRestrictionsConfiguration
+ DeviceEnrollmentConfiguration
+ // IOSRestriction Ios restrictions based on platform, platform operating system version, and device ownership
+ IOSRestriction *DeviceEnrollmentPlatformRestriction `json:"iosRestriction,omitempty"`
+ // WindowsRestriction Windows restrictions based on platform, platform operating system version, and device ownership
+ WindowsRestriction *DeviceEnrollmentPlatformRestriction `json:"windowsRestriction,omitempty"`
+ // WindowsMobileRestriction Windows mobile restrictions based on platform, platform operating system version, and device ownership
+ WindowsMobileRestriction *DeviceEnrollmentPlatformRestriction `json:"windowsMobileRestriction,omitempty"`
+ // AndroidRestriction Android restrictions based on platform, platform operating system version, and device ownership
+ AndroidRestriction *DeviceEnrollmentPlatformRestriction `json:"androidRestriction,omitempty"`
+ // AndroidForWorkRestriction Android for work restrictions based on platform, platform operating system version, and device ownership
+ AndroidForWorkRestriction *DeviceEnrollmentPlatformRestriction `json:"androidForWorkRestriction,omitempty"`
+ // MacRestriction Mac restrictions based on platform, platform operating system version, and device ownership
+ MacRestriction *DeviceEnrollmentPlatformRestriction `json:"macRestriction,omitempty"`
+ // MacOSRestriction Mac restrictions based on platform, platform operating system version, and device ownership
+ MacOSRestriction *DeviceEnrollmentPlatformRestriction `json:"macOSRestriction,omitempty"`
+}
+
+// DeviceEnrollmentWindowsHelloForBusinessConfiguration Windows Hello for Business settings lets users access their devices using a gesture, such as biometric authentication, or a PIN. Configure settings for enrolled Windows 10, Windows 10 Mobile and later.
+type DeviceEnrollmentWindowsHelloForBusinessConfiguration struct {
+ // DeviceEnrollmentConfiguration is the base model of DeviceEnrollmentWindowsHelloForBusinessConfiguration
+ DeviceEnrollmentConfiguration
+ // PinMinimumLength Controls the minimum number of characters required for the Windows Hello for Business PIN. This value must be between 4 and 127, inclusive, and less than or equal to the value set for the maximum PIN.
+ PinMinimumLength *int `json:"pinMinimumLength,omitempty"`
+ // PinMaximumLength Controls the maximum number of characters allowed for the Windows Hello for Business PIN. This value must be between 4 and 127, inclusive. This value must be greater than or equal to the value set for the minimum PIN.
+ PinMaximumLength *int `json:"pinMaximumLength,omitempty"`
+ // PinUppercaseCharactersUsage Controls the ability to use uppercase letters in the Windows Hello for Business PIN. Allowed permits the use of uppercase letter(s), whereas Required ensures they are present. If set to Not Allowed, uppercase letters will not be permitted.
+ PinUppercaseCharactersUsage *WindowsHelloForBusinessPinUsage `json:"pinUppercaseCharactersUsage,omitempty"`
+ // PinLowercaseCharactersUsage Controls the ability to use lowercase letters in the Windows Hello for Business PIN. Allowed permits the use of lowercase letter(s), whereas Required ensures they are present. If set to Not Allowed, lowercase letters will not be permitted.
+ PinLowercaseCharactersUsage *WindowsHelloForBusinessPinUsage `json:"pinLowercaseCharactersUsage,omitempty"`
+ // PinSpecialCharactersUsage Controls the ability to use special characters in the Windows Hello for Business PIN. Allowed permits the use of special character(s), whereas Required ensures they are present. If set to Not Allowed, special character(s) will not be permitted.
+ PinSpecialCharactersUsage *WindowsHelloForBusinessPinUsage `json:"pinSpecialCharactersUsage,omitempty"`
+ // State Controls whether to allow the device to be configured for Windows Hello for Business. If set to disabled, the user cannot provision Windows Hello for Business except on Azure Active Directory joined mobile phones if otherwise required. If set to Not Configured, Intune will not override client defaults.
+ State *Enablement `json:"state,omitempty"`
+ // SecurityDeviceRequired Controls whether to require a Trusted Platform Module (TPM) for provisioning Windows Hello for Business. A TPM provides an additional security benefit in that data stored on it cannot be used on other devices. If set to False, all devices can provision Windows Hello for Business even if there is not a usable TPM.
+ SecurityDeviceRequired *bool `json:"securityDeviceRequired,omitempty"`
+ // UnlockWithBiometricsEnabled Controls the use of biometric gestures, such as face and fingerprint, as an alternative to the Windows Hello for Business PIN. If set to False, biometric gestures are not allowed. Users must still configure a PIN as a backup in case of failures.
+ UnlockWithBiometricsEnabled *bool `json:"unlockWithBiometricsEnabled,omitempty"`
+ // RemotePassportEnabled Controls the use of Remote Windows Hello for Business. Remote Windows Hello for Business provides the ability for a portable, registered device to be usable as a companion for desktop authentication. The desktop must be Azure AD joined and the companion device must have a Windows Hello for Business PIN.
+ RemotePassportEnabled *bool `json:"remotePassportEnabled,omitempty"`
+ // PinPreviousBlockCount Controls the ability to prevent users from using past PINs. This must be set between 0 and 50, inclusive, and the current PIN of the user is included in that count. If set to 0, previous PINs are not stored. PIN history is not preserved through a PIN reset.
+ PinPreviousBlockCount *int `json:"pinPreviousBlockCount,omitempty"`
+ // PinExpirationInDays Controls the period of time (in days) that a PIN can be used before the system requires the user to change it. This must be set between 0 and 730, inclusive. If set to 0, the user's PIN will never expire
+ PinExpirationInDays *int `json:"pinExpirationInDays,omitempty"`
+ // EnhancedBiometricsState Controls the ability to use the anti-spoofing features for facial recognition on devices which support it. If set to disabled, anti-spoofing features are not allowed. If set to Not Configured, the user can choose whether they want to use anti-spoofing.
+ EnhancedBiometricsState *Enablement `json:"enhancedBiometricsState,omitempty"`
+ // SecurityKeyForSignIn Security key for Sign In provides the capacity for remotely turning ON/OFF Windows Hello Sercurity Keyl Not configured will honor configurations done on the clinet.
+ SecurityKeyForSignIn *Enablement `json:"securityKeyForSignIn,omitempty"`
+}
+
+// DeviceExchangeAccessStateSummary undocumented
+type DeviceExchangeAccessStateSummary struct {
+ // Object is the base model of DeviceExchangeAccessStateSummary
+ Object
+ // AllowedDeviceCount Total count of devices with Exchange Access State: Allowed.
+ AllowedDeviceCount *int `json:"allowedDeviceCount,omitempty"`
+ // BlockedDeviceCount Total count of devices with Exchange Access State: Blocked.
+ BlockedDeviceCount *int `json:"blockedDeviceCount,omitempty"`
+ // QuarantinedDeviceCount Total count of devices with Exchange Access State: Quarantined.
+ QuarantinedDeviceCount *int `json:"quarantinedDeviceCount,omitempty"`
+ // UnknownDeviceCount Total count of devices with Exchange Access State: Unknown.
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // UnavailableDeviceCount Total count of devices for which no Exchange Access State could be found.
+ UnavailableDeviceCount *int `json:"unavailableDeviceCount,omitempty"`
+}
+
+// DeviceGeoLocation undocumented
+type DeviceGeoLocation struct {
+ // Object is the base model of DeviceGeoLocation
+ Object
+ // LastCollectedDateTimeUtc Time at which location was recorded, relative to UTC
+ LastCollectedDateTimeUtc *time.Time `json:"lastCollectedDateTimeUtc,omitempty"`
+ // LastCollectedDateTime Time at which location was recorded, relative to UTC
+ LastCollectedDateTime *time.Time `json:"lastCollectedDateTime,omitempty"`
+ // Longitude Longitude coordinate of the device's location
+ Longitude *float64 `json:"longitude,omitempty"`
+ // Latitude Latitude coordinate of the device's location
+ Latitude *float64 `json:"latitude,omitempty"`
+ // Altitude Altitude, given in meters above sea level
+ Altitude *float64 `json:"altitude,omitempty"`
+ // HorizontalAccuracy Accuracy of longitude and latitude in meters
+ HorizontalAccuracy *float64 `json:"horizontalAccuracy,omitempty"`
+ // VerticalAccuracy Accuracy of altitude in meters
+ VerticalAccuracy *float64 `json:"verticalAccuracy,omitempty"`
+ // Heading Heading in degrees from true north
+ Heading *float64 `json:"heading,omitempty"`
+ // Speed Speed the device is traveling in meters per second
+ Speed *float64 `json:"speed,omitempty"`
+}
+
+// DeviceHealthAttestationState undocumented
+type DeviceHealthAttestationState struct {
+ // Object is the base model of DeviceHealthAttestationState
+ Object
+ // LastUpdateDateTime The Timestamp of the last update.
+ LastUpdateDateTime *string `json:"lastUpdateDateTime,omitempty"`
+ // ContentNamespaceURL The DHA report version. (Namespace version)
+ ContentNamespaceURL *string `json:"contentNamespaceUrl,omitempty"`
+ // DeviceHealthAttestationStatus The DHA report version. (Namespace version)
+ DeviceHealthAttestationStatus *string `json:"deviceHealthAttestationStatus,omitempty"`
+ // ContentVersion The HealthAttestation state schema version
+ ContentVersion *string `json:"contentVersion,omitempty"`
+ // IssuedDateTime The DateTime when device was evaluated or issued to MDM
+ IssuedDateTime *time.Time `json:"issuedDateTime,omitempty"`
+ // AttestationIdentityKey TWhen an Attestation Identity Key (AIK) is present on a device, it indicates that the device has an endorsement key (EK) certificate.
+ AttestationIdentityKey *string `json:"attestationIdentityKey,omitempty"`
+ // ResetCount The number of times a PC device has hibernated or resumed
+ ResetCount *int `json:"resetCount,omitempty"`
+ // RestartCount The number of times a PC device has rebooted
+ RestartCount *int `json:"restartCount,omitempty"`
+ // DataExcutionPolicy DEP Policy defines a set of hardware and software technologies that perform additional checks on memory
+ DataExcutionPolicy *string `json:"dataExcutionPolicy,omitempty"`
+ // BitLockerStatus On or Off of BitLocker Drive Encryption
+ BitLockerStatus *string `json:"bitLockerStatus,omitempty"`
+ // BootManagerVersion The version of the Boot Manager
+ BootManagerVersion *string `json:"bootManagerVersion,omitempty"`
+ // CodeIntegrityCheckVersion The version of the Boot Manager
+ CodeIntegrityCheckVersion *string `json:"codeIntegrityCheckVersion,omitempty"`
+ // SecureBoot When Secure Boot is enabled, the core components must have the correct cryptographic signatures
+ SecureBoot *string `json:"secureBoot,omitempty"`
+ // BootDebugging When bootDebugging is enabled, the device is used in development and testing
+ BootDebugging *string `json:"bootDebugging,omitempty"`
+ // OperatingSystemKernelDebugging When operatingSystemKernelDebugging is enabled, the device is used in development and testing
+ OperatingSystemKernelDebugging *string `json:"operatingSystemKernelDebugging,omitempty"`
+ // CodeIntegrity When code integrity is enabled, code execution is restricted to integrity verified code
+ CodeIntegrity *string `json:"codeIntegrity,omitempty"`
+ // TestSigning When test signing is allowed, the device does not enforce signature validation during boot
+ TestSigning *string `json:"testSigning,omitempty"`
+ // SafeMode Safe mode is a troubleshooting option for Windows that starts your computer in a limited state
+ SafeMode *string `json:"safeMode,omitempty"`
+ // WindowsPE Operating system running with limited services that is used to prepare a computer for Windows
+ WindowsPE *string `json:"windowsPE,omitempty"`
+ // EarlyLaunchAntiMalwareDriverProtection ELAM provides protection for the computers in your network when they start up
+ EarlyLaunchAntiMalwareDriverProtection *string `json:"earlyLaunchAntiMalwareDriverProtection,omitempty"`
+ // VirtualSecureMode VSM is a container that protects high value assets from a compromised kernel
+ VirtualSecureMode *string `json:"virtualSecureMode,omitempty"`
+ // PcrHashAlgorithm Informational attribute that identifies the HASH algorithm that was used by TPM
+ PcrHashAlgorithm *string `json:"pcrHashAlgorithm,omitempty"`
+ // BootAppSecurityVersion The security version number of the Boot Application
+ BootAppSecurityVersion *string `json:"bootAppSecurityVersion,omitempty"`
+ // BootManagerSecurityVersion The security version number of the Boot Application
+ BootManagerSecurityVersion *string `json:"bootManagerSecurityVersion,omitempty"`
+ // TpmVersion The security version number of the Boot Application
+ TpmVersion *string `json:"tpmVersion,omitempty"`
+ // Pcr0 The measurement that is captured in PCR[0]
+ Pcr0 *string `json:"pcr0,omitempty"`
+ // SecureBootConfigurationPolicyFingerPrint Fingerprint of the Custom Secure Boot Configuration Policy
+ SecureBootConfigurationPolicyFingerPrint *string `json:"secureBootConfigurationPolicyFingerPrint,omitempty"`
+ // CodeIntegrityPolicy The Code Integrity policy that is controlling the security of the boot environment
+ CodeIntegrityPolicy *string `json:"codeIntegrityPolicy,omitempty"`
+ // BootRevisionListInfo The Boot Revision List that was loaded during initial boot on the attested device
+ BootRevisionListInfo *string `json:"bootRevisionListInfo,omitempty"`
+ // OperatingSystemRevListInfo The Operating System Revision List that was loaded during initial boot on the attested device
+ OperatingSystemRevListInfo *string `json:"operatingSystemRevListInfo,omitempty"`
+ // HealthStatusMismatchInfo This attribute appears if DHA-Service detects an integrity issue
+ HealthStatusMismatchInfo *string `json:"healthStatusMismatchInfo,omitempty"`
+ // HealthAttestationSupportedStatus This attribute indicates if DHA is supported for the device
+ HealthAttestationSupportedStatus *string `json:"healthAttestationSupportedStatus,omitempty"`
+}
+
+// DeviceHealthScript Intune will provide customer the ability to run their Powershell Health scripts (remediation + detection) on the enrolled windows 10 Azure Active Directory joined devices.
+type DeviceHealthScript struct {
+ // Entity is the base model of DeviceHealthScript
+ Entity
+ // Publisher Name of the device health script publisher
+ Publisher *string `json:"publisher,omitempty"`
+ // Version Version of the device health script
+ Version *string `json:"version,omitempty"`
+ // DisplayName Name of the device health script
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the device health script
+ Description *string `json:"description,omitempty"`
+ // DetectionScriptContent The entire content of the detection powershell script
+ DetectionScriptContent *Binary `json:"detectionScriptContent,omitempty"`
+ // RemediationScriptContent The entire content of the remediation powershell script
+ RemediationScriptContent *Binary `json:"remediationScriptContent,omitempty"`
+ // CreatedDateTime The timestamp of when the device health script was created. This property is read-only.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The timestamp of when the device health script was modified. This property is read-only.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RunAsAccount Indicates the type of execution context
+ RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"`
+ // EnforceSignatureCheck Indicate whether the script signature needs be checked
+ EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"`
+ // RunAs32Bit Indicate whether PowerShell script(s) should run as 32-bit
+ RunAs32Bit *bool `json:"runAs32Bit,omitempty"`
+ // RoleScopeTagIDs List of Scope Tag IDs for the device health script
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceHealthScriptAssignment `json:"assignments,omitempty"`
+ // RunSummary undocumented
+ RunSummary *DeviceHealthScriptRunSummary `json:"runSummary,omitempty"`
+ // DeviceRunStates undocumented
+ DeviceRunStates []DeviceHealthScriptDeviceState `json:"deviceRunStates,omitempty"`
+}
+
+// DeviceHealthScriptAssignment Contains properties used to assign a device management script to a group.
+type DeviceHealthScriptAssignment struct {
+ // Entity is the base model of DeviceHealthScriptAssignment
+ Entity
+ // Target The Azure Active Directory group we are targeting the script to
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // RunRemediationScript Determine whether we want to run detection script only or run both detection script and remediation script
+ RunRemediationScript *bool `json:"runRemediationScript,omitempty"`
+ // RunSchedule Script run schedule for the target group
+ RunSchedule *RunSchedule `json:"runSchedule,omitempty"`
+}
+
+// DeviceHealthScriptDeviceState Contains properties for device run state of the device health script.
+type DeviceHealthScriptDeviceState struct {
+ // Entity is the base model of DeviceHealthScriptDeviceState
+ Entity
+ // DetectionState Detection state from the lastest device health script execution
+ DetectionState *RunState `json:"detectionState,omitempty"`
+ // LastStateUpdateDateTime The last timestamp of when the device health script executed
+ LastStateUpdateDateTime *time.Time `json:"lastStateUpdateDateTime,omitempty"`
+ // ExpectedStateUpdateDateTime The next timestamp of when the device health script is expected to execute
+ ExpectedStateUpdateDateTime *time.Time `json:"expectedStateUpdateDateTime,omitempty"`
+ // LastSyncDateTime The last time that Intune Managment Extension synced with Intune
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // PreRemediationDetectionScriptOutput Output of the detection script before remediation
+ PreRemediationDetectionScriptOutput *string `json:"preRemediationDetectionScriptOutput,omitempty"`
+ // PreRemediationDetectionScriptError Error from the detection script before remediation
+ PreRemediationDetectionScriptError *string `json:"preRemediationDetectionScriptError,omitempty"`
+ // RemediationScriptError Error output of the remediation script
+ RemediationScriptError *string `json:"remediationScriptError,omitempty"`
+ // PostRemediationDetectionScriptOutput Detection script output after remediation
+ PostRemediationDetectionScriptOutput *string `json:"postRemediationDetectionScriptOutput,omitempty"`
+ // PostRemediationDetectionScriptError Error from the detection script after remediation
+ PostRemediationDetectionScriptError *string `json:"postRemediationDetectionScriptError,omitempty"`
+ // RemediationState Remediation state from the lastest device health script execution
+ RemediationState *RemediationState `json:"remediationState,omitempty"`
+ // ManagedDevice undocumented
+ ManagedDevice *ManagedDevice `json:"managedDevice,omitempty"`
+}
+
+// DeviceHealthScriptRunSummary Contains properties for the run summary of a device management script.
+type DeviceHealthScriptRunSummary struct {
+ // Entity is the base model of DeviceHealthScriptRunSummary
+ Entity
+ // NoIssueDetectedDeviceCount Number of devices for which the detection script did not find an issue and the device is healthy
+ NoIssueDetectedDeviceCount *int `json:"noIssueDetectedDeviceCount,omitempty"`
+ // IssueDetectedDeviceCount Number of devices for which the detection script found an issue
+ IssueDetectedDeviceCount *int `json:"issueDetectedDeviceCount,omitempty"`
+ // DetectionScriptErrorDeviceCount Number of devices on which the detection script execution encountered an error and did not complete
+ DetectionScriptErrorDeviceCount *int `json:"detectionScriptErrorDeviceCount,omitempty"`
+ // DetectionScriptPendingDeviceCount Number of devices which have not yet run the latest version of the device health script
+ DetectionScriptPendingDeviceCount *int `json:"detectionScriptPendingDeviceCount,omitempty"`
+ // IssueRemediatedDeviceCount Number of devices for which the remediation script was able to resolve the detected issue
+ IssueRemediatedDeviceCount *int `json:"issueRemediatedDeviceCount,omitempty"`
+ // RemediationSkippedDeviceCount Number of devices for which remediation was skipped
+ RemediationSkippedDeviceCount *int `json:"remediationSkippedDeviceCount,omitempty"`
+ // IssueReoccurredDeviceCount Number of devices for which the remediation script executed successfully but failed to resolve the detected issue
+ IssueReoccurredDeviceCount *int `json:"issueReoccurredDeviceCount,omitempty"`
+ // RemediationScriptErrorDeviceCount Number of devices for which the remediation script execution encountered an error and did not complete
+ RemediationScriptErrorDeviceCount *int `json:"remediationScriptErrorDeviceCount,omitempty"`
+ // LastScriptRunDateTime Last run time for the script across all devices
+ LastScriptRunDateTime *time.Time `json:"lastScriptRunDateTime,omitempty"`
+}
+
+// DeviceInstallState Contains properties for the installation state for a device.
+type DeviceInstallState struct {
+ // Entity is the base model of DeviceInstallState
+ Entity
+ // DeviceName Device name.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceID Device Id.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // LastSyncDateTime Last sync date and time.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // InstallState The install state of the eBook.
+ InstallState *InstallState `json:"installState,omitempty"`
+ // ErrorCode The error code for install failures.
+ ErrorCode *string `json:"errorCode,omitempty"`
+ // OsVersion OS Version.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // OsDescription OS Description.
+ OsDescription *string `json:"osDescription,omitempty"`
+ // UserName Device User Name.
+ UserName *string `json:"userName,omitempty"`
+}
+
+// DeviceKey undocumented
+type DeviceKey struct {
+ // Object is the base model of DeviceKey
+ Object
+ // KeyType undocumented
+ KeyType *string `json:"keyType,omitempty"`
+ // KeyMaterial undocumented
+ KeyMaterial *Binary `json:"keyMaterial,omitempty"`
+ // DeviceID undocumented
+ DeviceID *UUID `json:"deviceId,omitempty"`
+}
+
+// DeviceManagement Singleton that acts as container for a collection of UserPFXCertificate entities.
+type DeviceManagement struct {
+ // Entity is the base model of DeviceManagement
+ Entity
+ // Settings Account level settings.
+ Settings *DeviceManagementSettings `json:"settings,omitempty"`
+ // MaximumDepTokens Maximum number of dep tokens allowed per-tenant.
+ MaximumDepTokens *int `json:"maximumDepTokens,omitempty"`
+ // IntuneAccountID Intune Account Id for given tenant
+ IntuneAccountID *UUID `json:"intuneAccountId,omitempty"`
+ // LastReportAggregationDateTime The last modified time of reporting for this account. This property is read-only.
+ LastReportAggregationDateTime *time.Time `json:"lastReportAggregationDateTime,omitempty"`
+ // DeviceComplianceReportSummarizationDateTime The last requested time of device compliance reporting for this account. This property is read-only.
+ DeviceComplianceReportSummarizationDateTime *time.Time `json:"deviceComplianceReportSummarizationDateTime,omitempty"`
+ // LegacyPcManangementEnabled The property to enable Non-MDM managed legacy PC management for this account. This property is read-only.
+ LegacyPcManangementEnabled *bool `json:"legacyPcManangementEnabled,omitempty"`
+ // IntuneBrand intuneBrand contains data which is used in customizing the appearance of the Company Portal applications as well as the end user web portal.
+ IntuneBrand *IntuneBrand `json:"intuneBrand,omitempty"`
+ // SubscriptionState Tenant mobile device management subscription state.
+ SubscriptionState *DeviceManagementSubscriptionState `json:"subscriptionState,omitempty"`
+ // Subscriptions Tenant's Subscription.
+ Subscriptions *DeviceManagementSubscriptions `json:"subscriptions,omitempty"`
+ // ManagedDeviceCleanupSettings Device cleanup rule
+ ManagedDeviceCleanupSettings *ManagedDeviceCleanupSettings `json:"managedDeviceCleanupSettings,omitempty"`
+ // AdminConsent Admin consent information.
+ AdminConsent *AdminConsent `json:"adminConsent,omitempty"`
+ // DeviceProtectionOverview Device protection overview.
+ DeviceProtectionOverview *DeviceProtectionOverview `json:"deviceProtectionOverview,omitempty"`
+ // WindowsMalwareOverview Malware overview for windows devices.
+ WindowsMalwareOverview *WindowsMalwareOverview `json:"windowsMalwareOverview,omitempty"`
+ // AccountMoveCompletionDateTime The date & time when tenant data moved between scaleunits.
+ AccountMoveCompletionDateTime *time.Time `json:"accountMoveCompletionDateTime,omitempty"`
+ // GroupPolicyObjectFiles A list of Group Policy Object files uploaded.
+ GroupPolicyObjectFiles []GroupPolicyObjectFile `json:"groupPolicyObjectFiles,omitempty"`
+ // AuditEvents undocumented
+ AuditEvents []AuditEvent `json:"auditEvents,omitempty"`
+ // AndroidForWorkSettings undocumented
+ AndroidForWorkSettings *AndroidForWorkSettings `json:"androidForWorkSettings,omitempty"`
+ // AndroidForWorkAppConfigurationSchemas undocumented
+ AndroidForWorkAppConfigurationSchemas []AndroidForWorkAppConfigurationSchema `json:"androidForWorkAppConfigurationSchemas,omitempty"`
+ // AndroidForWorkEnrollmentProfiles undocumented
+ AndroidForWorkEnrollmentProfiles []AndroidForWorkEnrollmentProfile `json:"androidForWorkEnrollmentProfiles,omitempty"`
+ // AndroidManagedStoreAccountEnterpriseSettings undocumented
+ AndroidManagedStoreAccountEnterpriseSettings *AndroidManagedStoreAccountEnterpriseSettings `json:"androidManagedStoreAccountEnterpriseSettings,omitempty"`
+ // AndroidManagedStoreAppConfigurationSchemas undocumented
+ AndroidManagedStoreAppConfigurationSchemas []AndroidManagedStoreAppConfigurationSchema `json:"androidManagedStoreAppConfigurationSchemas,omitempty"`
+ // AndroidDeviceOwnerEnrollmentProfiles undocumented
+ AndroidDeviceOwnerEnrollmentProfiles []AndroidDeviceOwnerEnrollmentProfile `json:"androidDeviceOwnerEnrollmentProfiles,omitempty"`
+ // TermsAndConditions undocumented
+ TermsAndConditions []TermsAndConditions `json:"termsAndConditions,omitempty"`
+ // DeviceConfigurations undocumented
+ DeviceConfigurations []DeviceConfiguration `json:"deviceConfigurations,omitempty"`
+ // DeviceCompliancePolicies undocumented
+ DeviceCompliancePolicies []DeviceCompliancePolicy `json:"deviceCompliancePolicies,omitempty"`
+ // SoftwareUpdateStatusSummary undocumented
+ SoftwareUpdateStatusSummary *SoftwareUpdateStatusSummary `json:"softwareUpdateStatusSummary,omitempty"`
+ // DeviceCompliancePolicyDeviceStateSummary undocumented
+ DeviceCompliancePolicyDeviceStateSummary *DeviceCompliancePolicyDeviceStateSummary `json:"deviceCompliancePolicyDeviceStateSummary,omitempty"`
+ // DeviceCompliancePolicySettingStateSummaries undocumented
+ DeviceCompliancePolicySettingStateSummaries []DeviceCompliancePolicySettingStateSummary `json:"deviceCompliancePolicySettingStateSummaries,omitempty"`
+ // AdvancedThreatProtectionOnboardingStateSummary undocumented
+ AdvancedThreatProtectionOnboardingStateSummary *AdvancedThreatProtectionOnboardingStateSummary `json:"advancedThreatProtectionOnboardingStateSummary,omitempty"`
+ // DeviceConfigurationDeviceStateSummaries undocumented
+ DeviceConfigurationDeviceStateSummaries *DeviceConfigurationDeviceStateSummary `json:"deviceConfigurationDeviceStateSummaries,omitempty"`
+ // DeviceConfigurationUserStateSummaries undocumented
+ DeviceConfigurationUserStateSummaries *DeviceConfigurationUserStateSummary `json:"deviceConfigurationUserStateSummaries,omitempty"`
+ // CartToClassAssociations undocumented
+ CartToClassAssociations []CartToClassAssociation `json:"cartToClassAssociations,omitempty"`
+ // IOSUpdateStatuses undocumented
+ IOSUpdateStatuses []IOSUpdateDeviceStatus `json:"iosUpdateStatuses,omitempty"`
+ // NDESConnectors undocumented
+ NDESConnectors []NDESConnector `json:"ndesConnectors,omitempty"`
+ // DeviceConfigurationRestrictedAppsViolations undocumented
+ DeviceConfigurationRestrictedAppsViolations []RestrictedAppsViolation `json:"deviceConfigurationRestrictedAppsViolations,omitempty"`
+ // ManagedDeviceEncryptionStates undocumented
+ ManagedDeviceEncryptionStates []ManagedDeviceEncryptionState `json:"managedDeviceEncryptionStates,omitempty"`
+ // DeviceConfigurationConflictSummary undocumented
+ DeviceConfigurationConflictSummary []DeviceConfigurationConflictSummary `json:"deviceConfigurationConflictSummary,omitempty"`
+ // DeviceConfigurationsAllManagedDeviceCertificateStates undocumented
+ DeviceConfigurationsAllManagedDeviceCertificateStates []ManagedAllDeviceCertificateState `json:"deviceConfigurationsAllManagedDeviceCertificateStates,omitempty"`
+ // DeviceCategories undocumented
+ DeviceCategories []DeviceCategory `json:"deviceCategories,omitempty"`
+ // ExchangeConnectors undocumented
+ ExchangeConnectors []DeviceManagementExchangeConnector `json:"exchangeConnectors,omitempty"`
+ // DeviceEnrollmentConfigurations undocumented
+ DeviceEnrollmentConfigurations []DeviceEnrollmentConfiguration `json:"deviceEnrollmentConfigurations,omitempty"`
+ // ExchangeOnPremisesPolicy undocumented
+ ExchangeOnPremisesPolicy *DeviceManagementExchangeOnPremisesPolicy `json:"exchangeOnPremisesPolicy,omitempty"`
+ // ExchangeOnPremisesPolicies undocumented
+ ExchangeOnPremisesPolicies []DeviceManagementExchangeOnPremisesPolicy `json:"exchangeOnPremisesPolicies,omitempty"`
+ // ConditionalAccessSettings undocumented
+ ConditionalAccessSettings *OnPremisesConditionalAccessSettings `json:"conditionalAccessSettings,omitempty"`
+ // MobileThreatDefenseConnectors undocumented
+ MobileThreatDefenseConnectors []MobileThreatDefenseConnector `json:"mobileThreatDefenseConnectors,omitempty"`
+ // DeviceManagementPartners undocumented
+ DeviceManagementPartners []DeviceManagementPartner `json:"deviceManagementPartners,omitempty"`
+ // ComplianceManagementPartners undocumented
+ ComplianceManagementPartners []ComplianceManagementPartner `json:"complianceManagementPartners,omitempty"`
+ // Intents undocumented
+ Intents []DeviceManagementIntent `json:"intents,omitempty"`
+ // SettingDefinitions undocumented
+ SettingDefinitions []DeviceManagementSettingDefinition `json:"settingDefinitions,omitempty"`
+ // Templates undocumented
+ Templates []DeviceManagementTemplate `json:"templates,omitempty"`
+ // Categories undocumented
+ Categories []DeviceManagementSettingCategory `json:"categories,omitempty"`
+ // RemoteActionAudits undocumented
+ RemoteActionAudits []RemoteActionAudit `json:"remoteActionAudits,omitempty"`
+ // ApplePushNotificationCertificate undocumented
+ ApplePushNotificationCertificate *ApplePushNotificationCertificate `json:"applePushNotificationCertificate,omitempty"`
+ // DeviceManagementScripts undocumented
+ DeviceManagementScripts []DeviceManagementScript `json:"deviceManagementScripts,omitempty"`
+ // DeviceHealthScripts undocumented
+ DeviceHealthScripts []DeviceHealthScript `json:"deviceHealthScripts,omitempty"`
+ // ManagedDeviceOverview undocumented
+ ManagedDeviceOverview *ManagedDeviceOverview `json:"managedDeviceOverview,omitempty"`
+ // DetectedApps undocumented
+ DetectedApps []DetectedApp `json:"detectedApps,omitempty"`
+ // ManagedDevices undocumented
+ ManagedDevices []ManagedDevice `json:"managedDevices,omitempty"`
+ // WindowsMalwareInformation undocumented
+ WindowsMalwareInformation []WindowsMalwareInformation `json:"windowsMalwareInformation,omitempty"`
+ // DataSharingConsents undocumented
+ DataSharingConsents []DataSharingConsent `json:"dataSharingConsents,omitempty"`
+ // MobileAppTroubleshootingEvents undocumented
+ MobileAppTroubleshootingEvents []MobileAppTroubleshootingEvent `json:"mobileAppTroubleshootingEvents,omitempty"`
+ // UserExperienceAnalyticsOverview undocumented
+ UserExperienceAnalyticsOverview *UserExperienceAnalyticsOverview `json:"userExperienceAnalyticsOverview,omitempty"`
+ // UserExperienceAnalyticsBaselines undocumented
+ UserExperienceAnalyticsBaselines []UserExperienceAnalyticsBaseline `json:"userExperienceAnalyticsBaselines,omitempty"`
+ // UserExperienceAnalyticsCategories undocumented
+ UserExperienceAnalyticsCategories []UserExperienceAnalyticsCategory `json:"userExperienceAnalyticsCategories,omitempty"`
+ // UserExperienceAnalyticsDevicePerformance undocumented
+ UserExperienceAnalyticsDevicePerformance []UserExperienceAnalyticsDevicePerformance `json:"userExperienceAnalyticsDevicePerformance,omitempty"`
+ // UserExperienceAnalyticsRegressionSummary undocumented
+ UserExperienceAnalyticsRegressionSummary *UserExperienceAnalyticsRegressionSummary `json:"userExperienceAnalyticsRegressionSummary,omitempty"`
+ // UserExperienceAnalyticsDeviceStartupHistory undocumented
+ UserExperienceAnalyticsDeviceStartupHistory []UserExperienceAnalyticsDeviceStartupHistory `json:"userExperienceAnalyticsDeviceStartupHistory,omitempty"`
+ // DerivedCredentials undocumented
+ DerivedCredentials []DeviceManagementDerivedCredentialSettings `json:"derivedCredentials,omitempty"`
+ // WindowsAutopilotSettings undocumented
+ WindowsAutopilotSettings *WindowsAutopilotSettings `json:"windowsAutopilotSettings,omitempty"`
+ // WindowsAutopilotDeviceIdentities undocumented
+ WindowsAutopilotDeviceIdentities []WindowsAutopilotDeviceIdentity `json:"windowsAutopilotDeviceIdentities,omitempty"`
+ // WindowsAutopilotDeploymentProfiles undocumented
+ WindowsAutopilotDeploymentProfiles []WindowsAutopilotDeploymentProfile `json:"windowsAutopilotDeploymentProfiles,omitempty"`
+ // ImportedDeviceIdentities undocumented
+ ImportedDeviceIdentities []ImportedDeviceIdentity `json:"importedDeviceIdentities,omitempty"`
+ // DepOnboardingSettings undocumented
+ DepOnboardingSettings []DepOnboardingSetting `json:"depOnboardingSettings,omitempty"`
+ // ImportedWindowsAutopilotDeviceIdentities undocumented
+ ImportedWindowsAutopilotDeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"importedWindowsAutopilotDeviceIdentities,omitempty"`
+ // AppleUserInitiatedEnrollmentProfiles undocumented
+ AppleUserInitiatedEnrollmentProfiles []AppleUserInitiatedEnrollmentProfile `json:"appleUserInitiatedEnrollmentProfiles,omitempty"`
+ // ManagementConditions undocumented
+ ManagementConditions []ManagementCondition `json:"managementConditions,omitempty"`
+ // ManagementConditionStatements undocumented
+ ManagementConditionStatements []ManagementConditionStatement `json:"managementConditionStatements,omitempty"`
+ // GroupPolicyMigrationReports undocumented
+ GroupPolicyMigrationReports []GroupPolicyMigrationReport `json:"groupPolicyMigrationReports,omitempty"`
+ // GroupPolicyConfigurations undocumented
+ GroupPolicyConfigurations []GroupPolicyConfiguration `json:"groupPolicyConfigurations,omitempty"`
+ // GroupPolicyDefinitions undocumented
+ GroupPolicyDefinitions []GroupPolicyDefinition `json:"groupPolicyDefinitions,omitempty"`
+ // GroupPolicyDefinitionFiles undocumented
+ GroupPolicyDefinitionFiles []GroupPolicyDefinitionFile `json:"groupPolicyDefinitionFiles,omitempty"`
+ // NotificationMessageTemplates undocumented
+ NotificationMessageTemplates []NotificationMessageTemplate `json:"notificationMessageTemplates,omitempty"`
+ // DomainJoinConnectors undocumented
+ DomainJoinConnectors []DeviceManagementDomainJoinConnector `json:"domainJoinConnectors,omitempty"`
+ // RoleDefinitions undocumented
+ RoleDefinitions []RoleDefinition `json:"roleDefinitions,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []DeviceAndAppManagementRoleAssignment `json:"roleAssignments,omitempty"`
+ // RoleScopeTags undocumented
+ RoleScopeTags []RoleScopeTag `json:"roleScopeTags,omitempty"`
+ // ResourceOperations undocumented
+ ResourceOperations []ResourceOperation `json:"resourceOperations,omitempty"`
+ // RemoteAssistancePartners undocumented
+ RemoteAssistancePartners []RemoteAssistancePartner `json:"remoteAssistancePartners,omitempty"`
+ // Reports undocumented
+ Reports *DeviceManagementReports `json:"reports,omitempty"`
+ // TelecomExpenseManagementPartners undocumented
+ TelecomExpenseManagementPartners []TelecomExpenseManagementPartner `json:"telecomExpenseManagementPartners,omitempty"`
+ // EmbeddedSIMActivationCodePools undocumented
+ EmbeddedSIMActivationCodePools []EmbeddedSIMActivationCodePool `json:"embeddedSIMActivationCodePools,omitempty"`
+ // TroubleshootingEvents undocumented
+ TroubleshootingEvents []DeviceManagementTroubleshootingEvent `json:"troubleshootingEvents,omitempty"`
+ // AutopilotEvents undocumented
+ AutopilotEvents []DeviceManagementAutopilotEvent `json:"autopilotEvents,omitempty"`
+ // WindowsFeatureUpdateProfiles undocumented
+ WindowsFeatureUpdateProfiles []WindowsFeatureUpdateProfile `json:"windowsFeatureUpdateProfiles,omitempty"`
+ // WindowsInformationProtectionAppLearningSummaries undocumented
+ WindowsInformationProtectionAppLearningSummaries []WindowsInformationProtectionAppLearningSummary `json:"windowsInformationProtectionAppLearningSummaries,omitempty"`
+ // WindowsInformationProtectionNetworkLearningSummaries undocumented
+ WindowsInformationProtectionNetworkLearningSummaries []WindowsInformationProtectionNetworkLearningSummary `json:"windowsInformationProtectionNetworkLearningSummaries,omitempty"`
+ // IntuneBrandingProfiles undocumented
+ IntuneBrandingProfiles []IntuneBrandingProfile `json:"intuneBrandingProfiles,omitempty"`
+ // UserPfxCertificates undocumented
+ UserPfxCertificates []UserPFXCertificate `json:"userPfxCertificates,omitempty"`
+}
+
+// DeviceManagementAbstractComplexSettingDefinition Entity representing the defintion for an abstract complex setting
+type DeviceManagementAbstractComplexSettingDefinition struct {
+ // DeviceManagementSettingDefinition is the base model of DeviceManagementAbstractComplexSettingDefinition
+ DeviceManagementSettingDefinition
+ // Implementations List of definition IDs for all possible implementations of this abstract complex setting
+ Implementations []string `json:"implementations,omitempty"`
+}
+
+// DeviceManagementAbstractComplexSettingInstance A setting instance representing a complex value for an abstract setting
+type DeviceManagementAbstractComplexSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementAbstractComplexSettingInstance
+ DeviceManagementSettingInstance
+ // ImplementationID The definition ID for the chosen implementation of this complex setting
+ ImplementationID *string `json:"implementationId,omitempty"`
+ // Value undocumented
+ Value []DeviceManagementSettingInstance `json:"value,omitempty"`
+}
+
+// DeviceManagementApplicabilityRuleDeviceMode undocumented
+type DeviceManagementApplicabilityRuleDeviceMode struct {
+ // Object is the base model of DeviceManagementApplicabilityRuleDeviceMode
+ Object
+ // DeviceMode Applicability rule for device mode.
+ DeviceMode *Windows10DeviceModeType `json:"deviceMode,omitempty"`
+ // Name Name for object.
+ Name *string `json:"name,omitempty"`
+ // RuleType Applicability Rule type.
+ RuleType *DeviceManagementApplicabilityRuleType `json:"ruleType,omitempty"`
+}
+
+// DeviceManagementApplicabilityRuleOsEdition undocumented
+type DeviceManagementApplicabilityRuleOsEdition struct {
+ // Object is the base model of DeviceManagementApplicabilityRuleOsEdition
+ Object
+ // OsEditionTypes Applicability rule OS edition type.
+ OsEditionTypes []Windows10EditionType `json:"osEditionTypes,omitempty"`
+ // Name Name for object.
+ Name *string `json:"name,omitempty"`
+ // RuleType Applicability Rule type.
+ RuleType *DeviceManagementApplicabilityRuleType `json:"ruleType,omitempty"`
+}
+
+// DeviceManagementApplicabilityRuleOsVersion undocumented
+type DeviceManagementApplicabilityRuleOsVersion struct {
+ // Object is the base model of DeviceManagementApplicabilityRuleOsVersion
+ Object
+ // MinOSVersion Min OS version for Applicability Rule.
+ MinOSVersion *string `json:"minOSVersion,omitempty"`
+ // MaxOSVersion Max OS version for Applicability Rule.
+ MaxOSVersion *string `json:"maxOSVersion,omitempty"`
+ // Name Name for object.
+ Name *string `json:"name,omitempty"`
+ // RuleType Applicability Rule type.
+ RuleType *DeviceManagementApplicabilityRuleType `json:"ruleType,omitempty"`
+}
+
+// DeviceManagementAutopilotEvent Represents an Autopilot flow event.
+type DeviceManagementAutopilotEvent struct {
+ // Entity is the base model of DeviceManagementAutopilotEvent
+ Entity
+ // EventDateTime Time when the event occurred .
+ EventDateTime *time.Time `json:"eventDateTime,omitempty"`
+ // DeviceRegisteredDateTime Device registration date.
+ DeviceRegisteredDateTime *time.Time `json:"deviceRegisteredDateTime,omitempty"`
+ // EnrollmentStartDateTime Device enrollment start date.
+ EnrollmentStartDateTime *time.Time `json:"enrollmentStartDateTime,omitempty"`
+ // EnrollmentType Enrollment type.
+ EnrollmentType *WindowsAutopilotEnrollmentType `json:"enrollmentType,omitempty"`
+ // DeviceSerialNumber Device serial number.
+ DeviceSerialNumber *string `json:"deviceSerialNumber,omitempty"`
+ // ManagedDeviceName Managed device name.
+ ManagedDeviceName *string `json:"managedDeviceName,omitempty"`
+ // UserPrincipalName User principal name used to enroll the device.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // WindowsAutopilotDeploymentProfileDisplayName Autopilot profile name.
+ WindowsAutopilotDeploymentProfileDisplayName *string `json:"windowsAutopilotDeploymentProfileDisplayName,omitempty"`
+ // EnrollmentState Enrollment state like Enrolled, Failed.
+ EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"`
+ // Windows10EnrollmentCompletionPageConfigurationDisplayName Enrollment Status Page profile name
+ Windows10EnrollmentCompletionPageConfigurationDisplayName *string `json:"windows10EnrollmentCompletionPageConfigurationDisplayName,omitempty"`
+ // DeploymentState Deployment state like Success, Failure, InProgress, SuccessWithTimeout.
+ DeploymentState *WindowsAutopilotDeploymentState `json:"deploymentState,omitempty"`
+ // OsVersion Device operating system version.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // DeploymentDuration Autopilot deployment duration including enrollment.
+ DeploymentDuration *Duration `json:"deploymentDuration,omitempty"`
+ // DeploymentTotalDuration Total deployment duration from enrollment to Desktop screen.
+ DeploymentTotalDuration *Duration `json:"deploymentTotalDuration,omitempty"`
+ // DevicePreparationDuration Time spent in device enrollment.
+ DevicePreparationDuration *Duration `json:"devicePreparationDuration,omitempty"`
+ // DeviceSetupDuration Time spent in device ESP.
+ DeviceSetupDuration *Duration `json:"deviceSetupDuration,omitempty"`
+ // AccountSetupDuration Time spent in user ESP.
+ AccountSetupDuration *Duration `json:"accountSetupDuration,omitempty"`
+ // DeploymentStartDateTime Deployment start time.
+ DeploymentStartDateTime *time.Time `json:"deploymentStartDateTime,omitempty"`
+ // DeploymentEndDateTime Deployment end time.
+ DeploymentEndDateTime *time.Time `json:"deploymentEndDateTime,omitempty"`
+ // TargetedAppCount Count of applications targeted.
+ TargetedAppCount *int `json:"targetedAppCount,omitempty"`
+ // TargetedPolicyCount Count of policies targeted.
+ TargetedPolicyCount *int `json:"targetedPolicyCount,omitempty"`
+ // EnrollmentFailureDetails Enrollment failure details.
+ EnrollmentFailureDetails *string `json:"enrollmentFailureDetails,omitempty"`
+}
+
+// DeviceManagementBooleanSettingInstance A setting instance representing a boolean value
+type DeviceManagementBooleanSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementBooleanSettingInstance
+ DeviceManagementSettingInstance
+ // Value The boolean value
+ Value *bool `json:"value,omitempty"`
+}
+
+// DeviceManagementCachedReportConfiguration Entity representing the configuration of a cached report
+type DeviceManagementCachedReportConfiguration struct {
+ // Entity is the base model of DeviceManagementCachedReportConfiguration
+ Entity
+ // ReportName Name of the report
+ ReportName *string `json:"reportName,omitempty"`
+ // Filter Filters applied on report creation.
+ Filter *string `json:"filter,omitempty"`
+ // Select Columns selected from the report
+ Select []string `json:"select,omitempty"`
+ // OrderBy Ordering of columns in the report
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Status Status of the cached report
+ Status *DeviceManagementReportStatus `json:"status,omitempty"`
+ // LastRefreshDateTime Time that the cached report was last refreshed
+ LastRefreshDateTime *time.Time `json:"lastRefreshDateTime,omitempty"`
+ // ExpirationDateTime Time that the cached report expires
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+}
+
+// DeviceManagementCollectionSettingDefinition Entity representing the defintion for a collection setting
+type DeviceManagementCollectionSettingDefinition struct {
+ // DeviceManagementSettingDefinition is the base model of DeviceManagementCollectionSettingDefinition
+ DeviceManagementSettingDefinition
+ // ElementDefinitionID The Setting Definition ID that describes what each element of the collection looks like
+ ElementDefinitionID *string `json:"elementDefinitionId,omitempty"`
+}
+
+// DeviceManagementCollectionSettingInstance A setting instance representing a collection of values
+type DeviceManagementCollectionSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementCollectionSettingInstance
+ DeviceManagementSettingInstance
+ // Value undocumented
+ Value []DeviceManagementSettingInstance `json:"value,omitempty"`
+}
+
+// DeviceManagementComplexSettingDefinition Entity representing the defintion for a complex setting
+type DeviceManagementComplexSettingDefinition struct {
+ // DeviceManagementSettingDefinition is the base model of DeviceManagementComplexSettingDefinition
+ DeviceManagementSettingDefinition
+ // PropertyDefinitionIDs The definitions of each property of the complex setting
+ PropertyDefinitionIDs []string `json:"propertyDefinitionIds,omitempty"`
+}
+
+// DeviceManagementComplexSettingInstance A setting instance representing a complex value
+type DeviceManagementComplexSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementComplexSettingInstance
+ DeviceManagementSettingInstance
+ // Value undocumented
+ Value []DeviceManagementSettingInstance `json:"value,omitempty"`
+}
+
+// DeviceManagementConstraint undocumented
+type DeviceManagementConstraint struct {
+ // Object is the base model of DeviceManagementConstraint
+ Object
+}
+
+// DeviceManagementDerivedCredentialSettings Entity that describes tenant level settings for derived credentials
+type DeviceManagementDerivedCredentialSettings struct {
+ // Entity is the base model of DeviceManagementDerivedCredentialSettings
+ Entity
+ // HelpURL The URL that will be accessible to end users as they retrieve a derived credential using the Company Portal.
+ HelpURL *string `json:"helpUrl,omitempty"`
+ // DisplayName The display name for the profile.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Issuer The derived credential provider to use.
+ Issuer *DeviceManagementDerivedCredentialIssuer `json:"issuer,omitempty"`
+ // NotificationType The methods used to inform the end user to open Company Portal to deliver Wi-Fi, VPN, or email profiles that use certificates to the device.
+ NotificationType *DeviceManagementDerivedCredentialNotificationType `json:"notificationType,omitempty"`
+}
+
+// DeviceManagementDomainJoinConnector A Domain Join Connector is a connector that is responsible to allocate (and delete) machine account blobs
+type DeviceManagementDomainJoinConnector struct {
+ // Entity is the base model of DeviceManagementDomainJoinConnector
+ Entity
+ // DisplayName The connector display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastConnectionDateTime Last time connector contacted Intune.
+ LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"`
+ // State The connector state.
+ State *DeviceManagementDomainJoinConnectorState `json:"state,omitempty"`
+ // Version The version of the connector.
+ Version *string `json:"version,omitempty"`
+}
+
+// DeviceManagementEnumConstraint undocumented
+type DeviceManagementEnumConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementEnumConstraint
+ DeviceManagementConstraint
+ // Values List of valid values for this string
+ Values []DeviceManagementEnumValue `json:"values,omitempty"`
+}
+
+// DeviceManagementEnumValue undocumented
+type DeviceManagementEnumValue struct {
+ // Object is the base model of DeviceManagementEnumValue
+ Object
+ // Value The raw enum value text
+ Value *string `json:"value,omitempty"`
+ // DisplayName Display name for this enum value
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// DeviceManagementExchangeAccessRule undocumented
+type DeviceManagementExchangeAccessRule struct {
+ // Object is the base model of DeviceManagementExchangeAccessRule
+ Object
+ // DeviceClass Device Class which will be impacted by this rule.
+ DeviceClass *DeviceManagementExchangeDeviceClass `json:"deviceClass,omitempty"`
+ // AccessLevel Access Level for Exchange granted by this rule.
+ AccessLevel *DeviceManagementExchangeAccessLevel `json:"accessLevel,omitempty"`
+}
+
+// DeviceManagementExchangeConnector Entity which represents a connection to an Exchange environment.
+type DeviceManagementExchangeConnector struct {
+ // Entity is the base model of DeviceManagementExchangeConnector
+ Entity
+ // LastSyncDateTime Last sync time for the Exchange Connector
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // Status Exchange Connector Status
+ Status *DeviceManagementExchangeConnectorStatus `json:"status,omitempty"`
+ // PrimarySMTPAddress Email address used to configure the Service To Service Exchange Connector.
+ PrimarySMTPAddress *string `json:"primarySmtpAddress,omitempty"`
+ // ServerName The name of the Exchange server.
+ ServerName *string `json:"serverName,omitempty"`
+ // ConnectorServerName The name of the server hosting the Exchange Connector.
+ ConnectorServerName *string `json:"connectorServerName,omitempty"`
+ // ExchangeConnectorType The type of Exchange Connector Configured.
+ ExchangeConnectorType *DeviceManagementExchangeConnectorType `json:"exchangeConnectorType,omitempty"`
+ // Version The version of the ExchangeConnectorAgent
+ Version *string `json:"version,omitempty"`
+ // ExchangeAlias An alias assigned to the Exchange server
+ ExchangeAlias *string `json:"exchangeAlias,omitempty"`
+ // ExchangeOrganization Exchange Organization to the Exchange server
+ ExchangeOrganization *string `json:"exchangeOrganization,omitempty"`
+}
+
+// DeviceManagementExchangeDeviceClass undocumented
+type DeviceManagementExchangeDeviceClass struct {
+ // Object is the base model of DeviceManagementExchangeDeviceClass
+ Object
+ // Name Name of the device class which will be impacted by this rule.
+ Name *string `json:"name,omitempty"`
+ // Type Type of device which is impacted by this rule e.g. Model, Family
+ Type *DeviceManagementExchangeAccessRuleType `json:"type,omitempty"`
+}
+
+// DeviceManagementExchangeOnPremisesPolicy Singleton entity which represents the Exchange OnPremises policy configured for a tenant.
+type DeviceManagementExchangeOnPremisesPolicy struct {
+ // Entity is the base model of DeviceManagementExchangeOnPremisesPolicy
+ Entity
+ // NotificationContent Notification text that will be sent to users quarantined by this policy. This is UTF8 encoded byte array HTML.
+ NotificationContent *Binary `json:"notificationContent,omitempty"`
+ // DefaultAccessLevel Default access state in Exchange. This rule applies globally to the entire Exchange organization
+ DefaultAccessLevel *DeviceManagementExchangeAccessLevel `json:"defaultAccessLevel,omitempty"`
+ // AccessRules The list of device access rules in Exchange. The access rules apply globally to the entire Exchange organization
+ AccessRules []DeviceManagementExchangeAccessRule `json:"accessRules,omitempty"`
+ // KnownDeviceClasses The list of device classes known to Exchange
+ KnownDeviceClasses []DeviceManagementExchangeDeviceClass `json:"knownDeviceClasses,omitempty"`
+ // ConditionalAccessSettings undocumented
+ ConditionalAccessSettings *OnPremisesConditionalAccessSettings `json:"conditionalAccessSettings,omitempty"`
+}
+
+// DeviceManagementExportJob Entity representing a job to export a report
+type DeviceManagementExportJob struct {
+ // Entity is the base model of DeviceManagementExportJob
+ Entity
+ // ReportName Name of the report
+ ReportName *string `json:"reportName,omitempty"`
+ // Filter Filters applied on the report
+ Filter *string `json:"filter,omitempty"`
+ // Select Columns selected from the report
+ Select []string `json:"select,omitempty"`
+ // Format Format of the exported report
+ Format *DeviceManagementReportFileFormat `json:"format,omitempty"`
+ // SnapshotID A snapshot is an identifiable subset of the dataset represented by the ReportName. A sessionId or CachedReportConfiguration id can be used here. If a sessionId is specified, Filter, Select, and OrderBy are applied to the data represented by the sessionId. Filter, Select, and OrderBy cannot be specified together with a CachedReportConfiguration id.
+ SnapshotID *string `json:"snapshotId,omitempty"`
+ // Status Status of the export job
+ Status *DeviceManagementReportStatus `json:"status,omitempty"`
+ // URL Temporary location of the exported report
+ URL *string `json:"url,omitempty"`
+ // RequestDateTime Time that the exported report was requested
+ RequestDateTime *time.Time `json:"requestDateTime,omitempty"`
+ // ExpirationDateTime Time that the exported report expires
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+}
+
+// DeviceManagementIntegerSettingInstance A setting instance representing an integer value
+type DeviceManagementIntegerSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementIntegerSettingInstance
+ DeviceManagementSettingInstance
+ // Value The integer value
+ Value *int `json:"value,omitempty"`
+}
+
+// DeviceManagementIntent Entity that represents an intent to apply settings to a device
+type DeviceManagementIntent struct {
+ // Entity is the base model of DeviceManagementIntent
+ Entity
+ // DisplayName The user given display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The user given description
+ Description *string `json:"description,omitempty"`
+ // IsAssigned Signifies whether or not the intent is assigned to users
+ IsAssigned *bool `json:"isAssigned,omitempty"`
+ // LastModifiedDateTime When the intent was last modified
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // TemplateID The ID of the template this intent was created from (if any)
+ TemplateID *string `json:"templateId,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // Settings undocumented
+ Settings []DeviceManagementSettingInstance `json:"settings,omitempty"`
+ // Categories undocumented
+ Categories []DeviceManagementIntentSettingCategory `json:"categories,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceManagementIntentAssignment `json:"assignments,omitempty"`
+ // DeviceSettingStateSummaries undocumented
+ DeviceSettingStateSummaries []DeviceManagementIntentDeviceSettingStateSummary `json:"deviceSettingStateSummaries,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []DeviceManagementIntentDeviceState `json:"deviceStates,omitempty"`
+ // UserStates undocumented
+ UserStates []DeviceManagementIntentUserState `json:"userStates,omitempty"`
+ // DeviceStateSummary undocumented
+ DeviceStateSummary *DeviceManagementIntentDeviceStateSummary `json:"deviceStateSummary,omitempty"`
+ // UserStateSummary undocumented
+ UserStateSummary *DeviceManagementIntentUserStateSummary `json:"userStateSummary,omitempty"`
+}
+
+// DeviceManagementIntentAssignment Intent assignment entity
+type DeviceManagementIntentAssignment struct {
+ // Entity is the base model of DeviceManagementIntentAssignment
+ Entity
+ // Target The assignment target
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// DeviceManagementIntentDeviceSettingStateSummary Entity that represents device setting state summary for an intent
+type DeviceManagementIntentDeviceSettingStateSummary struct {
+ // Entity is the base model of DeviceManagementIntentDeviceSettingStateSummary
+ Entity
+ // SettingName Name of a setting
+ SettingName *string `json:"settingName,omitempty"`
+ // CompliantCount Number of compliant devices
+ CompliantCount *int `json:"compliantCount,omitempty"`
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // NonCompliantCount Number of non compliant devices
+ NonCompliantCount *int `json:"nonCompliantCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // RemediatedCount Number of remediated devices
+ RemediatedCount *int `json:"remediatedCount,omitempty"`
+}
+
+// DeviceManagementIntentDeviceState Entity that represents device state for an intent
+type DeviceManagementIntentDeviceState struct {
+ // Entity is the base model of DeviceManagementIntentDeviceState
+ Entity
+ // UserPrincipalName The user principal name that is being reported on a device
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserName The user name that is being reported on a device
+ UserName *string `json:"userName,omitempty"`
+ // DeviceDisplayName Device name that is being reported
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // LastReportedDateTime Last modified date time of an intent report
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // State Device state for an intent
+ State *ComplianceStatus `json:"state,omitempty"`
+ // DeviceID Device id that is being reported
+ DeviceID *string `json:"deviceId,omitempty"`
+}
+
+// DeviceManagementIntentDeviceStateSummary Entity that represents device state summary for an intent
+type DeviceManagementIntentDeviceStateSummary struct {
+ // Entity is the base model of DeviceManagementIntentDeviceStateSummary
+ Entity
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed devices
+ FailedCount *int `json:"failedCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy
+ NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"`
+ // SuccessCount Number of succeeded devices
+ SuccessCount *int `json:"successCount,omitempty"`
+}
+
+// DeviceManagementIntentSettingCategory Entity representing an intent setting category
+type DeviceManagementIntentSettingCategory struct {
+ // DeviceManagementSettingCategory is the base model of DeviceManagementIntentSettingCategory
+ DeviceManagementSettingCategory
+ // Settings undocumented
+ Settings []DeviceManagementSettingInstance `json:"settings,omitempty"`
+}
+
+// DeviceManagementIntentUserState Entity that represents user state for an intent
+type DeviceManagementIntentUserState struct {
+ // Entity is the base model of DeviceManagementIntentUserState
+ Entity
+ // UserPrincipalName The user principal name that is being reported on a device
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserName The user name that is being reported on a device
+ UserName *string `json:"userName,omitempty"`
+ // DeviceCount Count of Devices that belongs to a user for an intent
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // LastReportedDateTime Last modified date time of an intent report
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // State User state for an intent
+ State *ComplianceStatus `json:"state,omitempty"`
+}
+
+// DeviceManagementIntentUserStateSummary Entity that represents user state summary for an intent
+type DeviceManagementIntentUserStateSummary struct {
+ // Entity is the base model of DeviceManagementIntentUserStateSummary
+ Entity
+ // ConflictCount Number of users in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // ErrorCount Number of error users
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed users
+ FailedCount *int `json:"failedCount,omitempty"`
+ // NotApplicableCount Number of not applicable users
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // SuccessCount Number of succeeded users
+ SuccessCount *int `json:"successCount,omitempty"`
+}
+
+// DeviceManagementPartner Entity which represents a connection to device management partner.
+type DeviceManagementPartner struct {
+ // Entity is the base model of DeviceManagementPartner
+ Entity
+ // LastHeartbeatDateTime Timestamp of last heartbeat after admin enabled option Connect to Device management Partner
+ LastHeartbeatDateTime *time.Time `json:"lastHeartbeatDateTime,omitempty"`
+ // PartnerState Partner state of this tenant
+ PartnerState *DeviceManagementPartnerTenantState `json:"partnerState,omitempty"`
+ // PartnerAppType Partner App type
+ PartnerAppType *DeviceManagementPartnerAppType `json:"partnerAppType,omitempty"`
+ // SingleTenantAppID Partner Single tenant App id
+ SingleTenantAppID *string `json:"singleTenantAppId,omitempty"`
+ // DisplayName Partner display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsConfigured Whether device management partner is configured or not
+ IsConfigured *bool `json:"isConfigured,omitempty"`
+ // WhenPartnerDevicesWillBeRemoved DateTime in UTC when PartnerDevices will be removed. This will become obselete soon.
+ WhenPartnerDevicesWillBeRemoved *time.Time `json:"whenPartnerDevicesWillBeRemoved,omitempty"`
+ // WhenPartnerDevicesWillBeMarkedAsNonCompliant DateTime in UTC when PartnerDevices will be marked as NonCompliant. This will become obselete soon.
+ WhenPartnerDevicesWillBeMarkedAsNonCompliant *time.Time `json:"whenPartnerDevicesWillBeMarkedAsNonCompliant,omitempty"`
+ // WhenPartnerDevicesWillBeRemovedDateTime DateTime in UTC when PartnerDevices will be removed
+ WhenPartnerDevicesWillBeRemovedDateTime *time.Time `json:"whenPartnerDevicesWillBeRemovedDateTime,omitempty"`
+ // WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime DateTime in UTC when PartnerDevices will be marked as NonCompliant
+ WhenPartnerDevicesWillBeMarkedAsNonCompliantDateTime *time.Time `json:"whenPartnerDevicesWillBeMarkedAsNonCompliantDateTime,omitempty"`
+ // GroupsRequiringPartnerEnrollment User groups that specifies whether enrollment is through partner.
+ GroupsRequiringPartnerEnrollment []DeviceManagementPartnerAssignment `json:"groupsRequiringPartnerEnrollment,omitempty"`
+}
+
+// DeviceManagementPartnerAssignment undocumented
+type DeviceManagementPartnerAssignment struct {
+ // Object is the base model of DeviceManagementPartnerAssignment
+ Object
+ // Target User groups targeting for devices to be enrolled through partner.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// DeviceManagementReportSchedule Entity representing a schedule for which reports are delivered
+type DeviceManagementReportSchedule struct {
+ // Entity is the base model of DeviceManagementReportSchedule
+ Entity
+ // ReportScheduleName Name of the schedule
+ ReportScheduleName *string `json:"reportScheduleName,omitempty"`
+ // Subject Subject of the scheduled reports that are delivered
+ Subject *string `json:"subject,omitempty"`
+ // Emails Emails to which the scheduled reports are delivered
+ Emails []string `json:"emails,omitempty"`
+ // Recurrence Frequency of scheduled report delivery
+ Recurrence *DeviceManagementScheduledReportRecurrence `json:"recurrence,omitempty"`
+ // StartDateTime Time that the delivery of the scheduled reports starts
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime Time that the delivery of the scheduled reports ends
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // UserID The Id of the User who created the report
+ UserID *string `json:"userId,omitempty"`
+ // ReportName Name of the report
+ ReportName *string `json:"reportName,omitempty"`
+ // Filter Filters applied on the report
+ Filter *string `json:"filter,omitempty"`
+ // Select Columns selected from the report
+ Select []string `json:"select,omitempty"`
+ // OrderBy Ordering of columns in the report
+ OrderBy []string `json:"orderBy,omitempty"`
+ // Format Format of the scheduled report
+ Format *DeviceManagementReportFileFormat `json:"format,omitempty"`
+}
+
+// DeviceManagementReports Singleton entity that acts as a container for all reports functionality.
+type DeviceManagementReports struct {
+ // Entity is the base model of DeviceManagementReports
+ Entity
+ // CachedReportConfigurations undocumented
+ CachedReportConfigurations []DeviceManagementCachedReportConfiguration `json:"cachedReportConfigurations,omitempty"`
+ // ExportJobs undocumented
+ ExportJobs []DeviceManagementExportJob `json:"exportJobs,omitempty"`
+ // ReportSchedules undocumented
+ ReportSchedules []DeviceManagementReportSchedule `json:"reportSchedules,omitempty"`
+}
+
+// DeviceManagementScript Intune will provide customer the ability to run their Powershell scripts on the enrolled windows 10 Azure Active Directory joined devices. The script can be run once or periodically.
+type DeviceManagementScript struct {
+ // Entity is the base model of DeviceManagementScript
+ Entity
+ // DisplayName Name of the device management script.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Optional description for the device management script.
+ Description *string `json:"description,omitempty"`
+ // ScriptContent The script content.
+ ScriptContent *Binary `json:"scriptContent,omitempty"`
+ // CreatedDateTime The date and time the device management script was created. This property is read-only.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date and time the device management script was last modified. This property is read-only.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RunAsAccount Indicates the type of execution context.
+ RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"`
+ // EnforceSignatureCheck Indicate whether the script signature needs be checked.
+ EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"`
+ // FileName Script file name.
+ FileName *string `json:"fileName,omitempty"`
+ // RoleScopeTagIDs List of Scope Tag IDs for this PowerShellScript instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // RunAs32Bit A value indicating whether the PowerShell script should run as 32-bit
+ RunAs32Bit *bool `json:"runAs32Bit,omitempty"`
+ // GroupAssignments undocumented
+ GroupAssignments []DeviceManagementScriptGroupAssignment `json:"groupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []DeviceManagementScriptAssignment `json:"assignments,omitempty"`
+ // RunSummary undocumented
+ RunSummary *DeviceManagementScriptRunSummary `json:"runSummary,omitempty"`
+ // DeviceRunStates undocumented
+ DeviceRunStates []DeviceManagementScriptDeviceState `json:"deviceRunStates,omitempty"`
+ // UserRunStates undocumented
+ UserRunStates []DeviceManagementScriptUserState `json:"userRunStates,omitempty"`
+}
+
+// DeviceManagementScriptAssignment Contains properties used to assign a device management script to a group.
+type DeviceManagementScriptAssignment struct {
+ // Entity is the base model of DeviceManagementScriptAssignment
+ Entity
+ // Target The Id of the Azure Active Directory group we are targeting the script to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// DeviceManagementScriptDeviceState Contains properties for device run state of the device management script.
+type DeviceManagementScriptDeviceState struct {
+ // Entity is the base model of DeviceManagementScriptDeviceState
+ Entity
+ // RunState State of latest run of the device management script.
+ RunState *RunState `json:"runState,omitempty"`
+ // ResultMessage Details of execution output.
+ ResultMessage *string `json:"resultMessage,omitempty"`
+ // LastStateUpdateDateTime Latest time the device management script executes.
+ LastStateUpdateDateTime *time.Time `json:"lastStateUpdateDateTime,omitempty"`
+ // ErrorCode Error code corresponding to erroneous execution of the device management script.
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // ErrorDescription Error description corresponding to erroneous execution of the device management script.
+ ErrorDescription *string `json:"errorDescription,omitempty"`
+ // ManagedDevice undocumented
+ ManagedDevice *ManagedDevice `json:"managedDevice,omitempty"`
+}
+
+// DeviceManagementScriptGroupAssignment Contains properties used to assign a device management script to a group.
+type DeviceManagementScriptGroupAssignment struct {
+ // Entity is the base model of DeviceManagementScriptGroupAssignment
+ Entity
+ // TargetGroupID The Id of the Azure Active Directory group we are targeting the script to.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+}
+
+// DeviceManagementScriptPolicySetItem A class containing the properties used for device management script PolicySetItem.
+type DeviceManagementScriptPolicySetItem struct {
+ // PolicySetItem is the base model of DeviceManagementScriptPolicySetItem
+ PolicySetItem
+}
+
+// DeviceManagementScriptRunSummary Contains properties for the run summary of a device management script.
+type DeviceManagementScriptRunSummary struct {
+ // Entity is the base model of DeviceManagementScriptRunSummary
+ Entity
+ // SuccessDeviceCount Success device count.
+ SuccessDeviceCount *int `json:"successDeviceCount,omitempty"`
+ // ErrorDeviceCount Error device count.
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // SuccessUserCount Success user count.
+ SuccessUserCount *int `json:"successUserCount,omitempty"`
+ // ErrorUserCount Error user count.
+ ErrorUserCount *int `json:"errorUserCount,omitempty"`
+}
+
+// DeviceManagementScriptUserState Contains properties for user run state of the device management script.
+type DeviceManagementScriptUserState struct {
+ // Entity is the base model of DeviceManagementScriptUserState
+ Entity
+ // SuccessDeviceCount Success device count for specific user.
+ SuccessDeviceCount *int `json:"successDeviceCount,omitempty"`
+ // ErrorDeviceCount Error device count for specific user.
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // UserPrincipalName User principle name of specific user.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceRunStates undocumented
+ DeviceRunStates []DeviceManagementScriptDeviceState `json:"deviceRunStates,omitempty"`
+}
+
+// DeviceManagementSettingBooleanConstraint undocumented
+type DeviceManagementSettingBooleanConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingBooleanConstraint
+ DeviceManagementConstraint
+ // Value The boolean value to compare against
+ Value *bool `json:"value,omitempty"`
+}
+
+// DeviceManagementSettingCategory Entity representing a setting category
+type DeviceManagementSettingCategory struct {
+ // Entity is the base model of DeviceManagementSettingCategory
+ Entity
+ // DisplayName The category name
+ DisplayName *string `json:"displayName,omitempty"`
+ // SettingDefinitions undocumented
+ SettingDefinitions []DeviceManagementSettingDefinition `json:"settingDefinitions,omitempty"`
+}
+
+// DeviceManagementSettingComparison undocumented
+type DeviceManagementSettingComparison struct {
+ // Object is the base model of DeviceManagementSettingComparison
+ Object
+ // ID The setting ID
+ ID *string `json:"id,omitempty"`
+ // DisplayName The setting's display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // DefinitionID The ID of the setting definition for this instance
+ DefinitionID *string `json:"definitionId,omitempty"`
+ // CurrentValueJSON JSON representation of current intent (or) template setting's value
+ CurrentValueJSON *string `json:"currentValueJson,omitempty"`
+ // NewValueJSON JSON representation of new template setting's value
+ NewValueJSON *string `json:"newValueJson,omitempty"`
+ // ComparisonResult Setting comparison result
+ ComparisonResult *DeviceManagementComparisonResult `json:"comparisonResult,omitempty"`
+}
+
+// DeviceManagementSettingDefinition Entity representing the defintion for a given setting
+type DeviceManagementSettingDefinition struct {
+ // Entity is the base model of DeviceManagementSettingDefinition
+ Entity
+ // ValueType The data type of the value
+ ValueType *DeviceManangementIntentValueType `json:"valueType,omitempty"`
+ // DisplayName The setting's display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsTopLevel If the setting is top level, it can be configured without the need to be wrapped in a collection or complex setting
+ IsTopLevel *bool `json:"isTopLevel,omitempty"`
+ // Description The setting's description
+ Description *string `json:"description,omitempty"`
+ // DocumentationURL Url to setting documentation
+ DocumentationURL *string `json:"documentationUrl,omitempty"`
+ // Keywords Keywords associated with the setting
+ Keywords []string `json:"keywords,omitempty"`
+ // Constraints Collection of constraints for the setting value
+ Constraints []DeviceManagementConstraint `json:"constraints,omitempty"`
+ // Dependencies Collection of dependencies on other settings
+ Dependencies []DeviceManagementSettingDependency `json:"dependencies,omitempty"`
+}
+
+// DeviceManagementSettingDependency undocumented
+type DeviceManagementSettingDependency struct {
+ // Object is the base model of DeviceManagementSettingDependency
+ Object
+ // DefinitionID The setting definition ID of the setting depended on
+ DefinitionID *string `json:"definitionId,omitempty"`
+ // Constraints Collection of constraints for the dependency setting value
+ Constraints []DeviceManagementConstraint `json:"constraints,omitempty"`
+}
+
+// DeviceManagementSettingInstance Base type for a setting instance
+type DeviceManagementSettingInstance struct {
+ // Entity is the base model of DeviceManagementSettingInstance
+ Entity
+ // DefinitionID The ID of the setting definition for this instance
+ DefinitionID *string `json:"definitionId,omitempty"`
+ // ValueJSON JSON representation of the value
+ ValueJSON *string `json:"valueJson,omitempty"`
+}
+
+// DeviceManagementSettingIntegerConstraint undocumented
+type DeviceManagementSettingIntegerConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingIntegerConstraint
+ DeviceManagementConstraint
+ // MinimumValue The minimum permitted value
+ MinimumValue *int `json:"minimumValue,omitempty"`
+ // MaximumValue The maximum permitted value
+ MaximumValue *int `json:"maximumValue,omitempty"`
+}
+
+// DeviceManagementSettingRegexConstraint undocumented
+type DeviceManagementSettingRegexConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingRegexConstraint
+ DeviceManagementConstraint
+ // Regex The RegEx pattern to match against
+ Regex *string `json:"regex,omitempty"`
+}
+
+// DeviceManagementSettingStringLengthConstraint undocumented
+type DeviceManagementSettingStringLengthConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingStringLengthConstraint
+ DeviceManagementConstraint
+ // MinimumLength The minimum permitted string length
+ MinimumLength *int `json:"minimumLength,omitempty"`
+ // MaximumLength The maximum permitted string length
+ MaximumLength *int `json:"maximumLength,omitempty"`
+}
+
+// DeviceManagementSettingXMLConstraint undocumented
+type DeviceManagementSettingXMLConstraint struct {
+ // DeviceManagementConstraint is the base model of DeviceManagementSettingXMLConstraint
+ DeviceManagementConstraint
+}
+
+// DeviceManagementSettings undocumented
+type DeviceManagementSettings struct {
+ // Object is the base model of DeviceManagementSettings
+ Object
+ // DeviceComplianceCheckinThresholdDays The number of days a device is allowed to go without checking in to remain compliant.
+ DeviceComplianceCheckinThresholdDays *int `json:"deviceComplianceCheckinThresholdDays,omitempty"`
+ // IsScheduledActionEnabled Is feature enabled or not for scheduled action for rule.
+ IsScheduledActionEnabled *bool `json:"isScheduledActionEnabled,omitempty"`
+ // SecureByDefault Device should be noncompliant when there is no compliance policy targeted when this is true
+ SecureByDefault *bool `json:"secureByDefault,omitempty"`
+ // EnhancedJailBreak Is feature enabled or not for enhanced jailbreak detection.
+ EnhancedJailBreak *bool `json:"enhancedJailBreak,omitempty"`
+ // DeviceInactivityBeforeRetirementInDay When the device does not check in for specified number of days, the company data might be removed and the device will not be under management. Valid values 30 to 270
+ DeviceInactivityBeforeRetirementInDay *int `json:"deviceInactivityBeforeRetirementInDay,omitempty"`
+ // DerivedCredentialProvider The Derived Credential Provider to use for this account.
+ DerivedCredentialProvider *DerivedCredentialProviderType `json:"derivedCredentialProvider,omitempty"`
+ // DerivedCredentialURL The Derived Credential Provider self-service URI.
+ DerivedCredentialURL *string `json:"derivedCredentialUrl,omitempty"`
+ // AndroidDeviceAdministratorEnrollmentEnabled The property to determine if Android device administrator enrollment is enabled for this account.
+ AndroidDeviceAdministratorEnrollmentEnabled *bool `json:"androidDeviceAdministratorEnrollmentEnabled,omitempty"`
+}
+
+// DeviceManagementStringSettingInstance A setting instance representing a string value
+type DeviceManagementStringSettingInstance struct {
+ // DeviceManagementSettingInstance is the base model of DeviceManagementStringSettingInstance
+ DeviceManagementSettingInstance
+ // Value The string value
+ Value *string `json:"value,omitempty"`
+}
+
+// DeviceManagementTemplate Entity that represents a defined collection of device settings
+type DeviceManagementTemplate struct {
+ // Entity is the base model of DeviceManagementTemplate
+ Entity
+ // DisplayName The template's display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The template's description
+ Description *string `json:"description,omitempty"`
+ // VersionInfo The template's version information
+ VersionInfo *string `json:"versionInfo,omitempty"`
+ // IsDeprecated The template is deprecated or not. Intents cannot be created from a deprecated template.
+ IsDeprecated *bool `json:"isDeprecated,omitempty"`
+ // IntentCount Number of Intents created from this template.
+ IntentCount *int `json:"intentCount,omitempty"`
+ // TemplateType The template's type.
+ TemplateType *DeviceManagementTemplateType `json:"templateType,omitempty"`
+ // PlatformType The template's platform.
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // PublishedDateTime When the template was published
+ PublishedDateTime *time.Time `json:"publishedDateTime,omitempty"`
+ // Settings undocumented
+ Settings []DeviceManagementSettingInstance `json:"settings,omitempty"`
+ // Categories undocumented
+ Categories []DeviceManagementTemplateSettingCategory `json:"categories,omitempty"`
+ // MigratableTo undocumented
+ MigratableTo []DeviceManagementTemplate `json:"migratableTo,omitempty"`
+}
+
+// DeviceManagementTemplateSettingCategory Entity representing a template setting category
+type DeviceManagementTemplateSettingCategory struct {
+ // DeviceManagementSettingCategory is the base model of DeviceManagementTemplateSettingCategory
+ DeviceManagementSettingCategory
+ // RecommendedSettings undocumented
+ RecommendedSettings []DeviceManagementSettingInstance `json:"recommendedSettings,omitempty"`
+}
+
+// DeviceManagementTroubleshootingErrorDetails undocumented
+type DeviceManagementTroubleshootingErrorDetails struct {
+ // Object is the base model of DeviceManagementTroubleshootingErrorDetails
+ Object
+ // Context undocumented
+ Context *string `json:"context,omitempty"`
+ // Failure undocumented
+ Failure *string `json:"failure,omitempty"`
+ // FailureDetails The detailed description of what went wrong.
+ FailureDetails *string `json:"failureDetails,omitempty"`
+ // Remediation The detailed description of how to remediate this issue.
+ Remediation *string `json:"remediation,omitempty"`
+ // Resources Links to helpful documentation about this failure.
+ Resources []DeviceManagementTroubleshootingErrorResource `json:"resources,omitempty"`
+}
+
+// DeviceManagementTroubleshootingErrorResource undocumented
+type DeviceManagementTroubleshootingErrorResource struct {
+ // Object is the base model of DeviceManagementTroubleshootingErrorResource
+ Object
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // Link The link to the web resource. Can contain any of the following formatters: {{UPN}}, {{DeviceGUID}}, {{UserGUID}}
+ Link *string `json:"link,omitempty"`
+}
+
+// DeviceManagementTroubleshootingEvent Event representing an general failure.
+type DeviceManagementTroubleshootingEvent struct {
+ // Entity is the base model of DeviceManagementTroubleshootingEvent
+ Entity
+ // EventDateTime Time when the event occurred .
+ EventDateTime *time.Time `json:"eventDateTime,omitempty"`
+ // CorrelationID Id used for tracing the failure in the service.
+ CorrelationID *string `json:"correlationId,omitempty"`
+ // TroubleshootingErrorDetails Object containing detailed information about the error and its remediation.
+ TroubleshootingErrorDetails *DeviceManagementTroubleshootingErrorDetails `json:"troubleshootingErrorDetails,omitempty"`
+ // EventName Event Name corresponding to the Troubleshooting Event. It is an Optional field
+ EventName *string `json:"eventName,omitempty"`
+ // AdditionalInformation A set of string key and string value pairs which provides additional information on the Troubleshooting event
+ AdditionalInformation []KeyValuePair `json:"additionalInformation,omitempty"`
+}
+
+// DeviceManagementUserRightsLocalUserOrGroup undocumented
+type DeviceManagementUserRightsLocalUserOrGroup struct {
+ // Object is the base model of DeviceManagementUserRightsLocalUserOrGroup
+ Object
+ // Name The name of this local user or group.
+ Name *string `json:"name,omitempty"`
+ // Description Admin’s description of this local user or group.
+ Description *string `json:"description,omitempty"`
+ // SecurityIdentifier The security identifier of this local user or group (e.g. *S-1-5-32-544).
+ SecurityIdentifier *string `json:"securityIdentifier,omitempty"`
+}
+
+// DeviceManagementUserRightsSetting undocumented
+type DeviceManagementUserRightsSetting struct {
+ // Object is the base model of DeviceManagementUserRightsSetting
+ Object
+ // State Representing the current state of this user rights setting
+ State *StateManagementSetting `json:"state,omitempty"`
+ // LocalUsersOrGroups Representing a collection of local users or groups which will be set on device if the state of this setting is Allowed. This collection can contain a maximum of 500 elements.
+ LocalUsersOrGroups []DeviceManagementUserRightsLocalUserOrGroup `json:"localUsersOrGroups,omitempty"`
+}
+
+// DeviceOperatingSystemSummary undocumented
+type DeviceOperatingSystemSummary struct {
+ // Object is the base model of DeviceOperatingSystemSummary
+ Object
+ // AndroidCount Number of android device count.
+ AndroidCount *int `json:"androidCount,omitempty"`
+ // IOSCount Number of iOS device count.
+ IOSCount *int `json:"iosCount,omitempty"`
+ // MacOSCount Number of Mac OS X device count.
+ MacOSCount *int `json:"macOSCount,omitempty"`
+ // WindowsMobileCount Number of Windows mobile device count.
+ WindowsMobileCount *int `json:"windowsMobileCount,omitempty"`
+ // WindowsCount Number of Windows device count.
+ WindowsCount *int `json:"windowsCount,omitempty"`
+ // UnknownCount Number of unknown device count.
+ UnknownCount *int `json:"unknownCount,omitempty"`
+ // AndroidDedicatedCount Number of dedicated Android devices.
+ AndroidDedicatedCount *int `json:"androidDedicatedCount,omitempty"`
+ // AndroidDeviceAdminCount Number of device admin Android devices.
+ AndroidDeviceAdminCount *int `json:"androidDeviceAdminCount,omitempty"`
+ // AndroidFullyManagedCount Number of fully managed Android devices.
+ AndroidFullyManagedCount *int `json:"androidFullyManagedCount,omitempty"`
+ // AndroidWorkProfileCount Number of work profile Android devices.
+ AndroidWorkProfileCount *int `json:"androidWorkProfileCount,omitempty"`
+}
+
+// DeviceProtectionOverview undocumented
+type DeviceProtectionOverview struct {
+ // Object is the base model of DeviceProtectionOverview
+ Object
+ // TotalReportedDeviceCount Total device count.
+ TotalReportedDeviceCount *int `json:"totalReportedDeviceCount,omitempty"`
+ // InactiveThreatAgentDeviceCount Device with inactive threat agent count
+ InactiveThreatAgentDeviceCount *int `json:"inactiveThreatAgentDeviceCount,omitempty"`
+ // UnknownStateThreatAgentDeviceCount Device with threat agent state as unknown count.
+ UnknownStateThreatAgentDeviceCount *int `json:"unknownStateThreatAgentDeviceCount,omitempty"`
+ // PendingSignatureUpdateDeviceCount Device with old signature count.
+ PendingSignatureUpdateDeviceCount *int `json:"pendingSignatureUpdateDeviceCount,omitempty"`
+ // CleanDeviceCount Clean device count.
+ CleanDeviceCount *int `json:"cleanDeviceCount,omitempty"`
+ // PendingFullScanDeviceCount Pending full scan device count.
+ PendingFullScanDeviceCount *int `json:"pendingFullScanDeviceCount,omitempty"`
+ // PendingRestartDeviceCount Pending restart device count.
+ PendingRestartDeviceCount *int `json:"pendingRestartDeviceCount,omitempty"`
+ // PendingManualStepsDeviceCount Pending manual steps device count.
+ PendingManualStepsDeviceCount *int `json:"pendingManualStepsDeviceCount,omitempty"`
+ // PendingOfflineScanDeviceCount Pending offline scan device count.
+ PendingOfflineScanDeviceCount *int `json:"pendingOfflineScanDeviceCount,omitempty"`
+ // CriticalFailuresDeviceCount Critical failures device count.
+ CriticalFailuresDeviceCount *int `json:"criticalFailuresDeviceCount,omitempty"`
+}
+
+// DeviceRestrictionAction undocumented
+type DeviceRestrictionAction struct {
+ // DlpActionInfo is the base model of DeviceRestrictionAction
+ DlpActionInfo
+ // RestrictionAction undocumented
+ RestrictionAction *RestrictionAction `json:"restrictionAction,omitempty"`
+ // Triggers undocumented
+ Triggers []RestrictionTrigger `json:"triggers,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
+
+// DeviceSetupConfiguration This is the base class for Setup Configuration. Setup configurations are platform specific and individual per-platform setup configurations inherit from here.
+type DeviceSetupConfiguration struct {
+ // Entity is the base model of DeviceSetupConfiguration
+ Entity
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDiagnostic.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDiagnostic.go
new file mode 100644
index 00000000..a557c396
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDiagnostic.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Diagnostic undocumented
+type Diagnostic struct {
+ // Object is the base model of Diagnostic
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDimension.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDimension.go
new file mode 100644
index 00000000..ce8156ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDimension.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Dimension undocumented
+type Dimension struct {
+ // Entity is the base model of Dimension
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DimensionValues undocumented
+ DimensionValues []DimensionValue `json:"dimensionValues,omitempty"`
+}
+
+// DimensionValue undocumented
+type DimensionValue struct {
+ // Entity is the base model of DimensionValue
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDirectory.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDirectory.go
new file mode 100644
index 00000000..a60db606
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDirectory.go
@@ -0,0 +1,133 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Directory undocumented
+type Directory struct {
+ // Entity is the base model of Directory
+ Entity
+ // DeletedItems undocumented
+ DeletedItems []DirectoryObject `json:"deletedItems,omitempty"`
+ // FeatureRolloutPolicies undocumented
+ FeatureRolloutPolicies []FeatureRolloutPolicy `json:"featureRolloutPolicies,omitempty"`
+}
+
+// DirectoryAudit undocumented
+type DirectoryAudit struct {
+ // Entity is the base model of DirectoryAudit
+ Entity
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // CorrelationID undocumented
+ CorrelationID *string `json:"correlationId,omitempty"`
+ // Result undocumented
+ Result *OperationResult `json:"result,omitempty"`
+ // ResultReason undocumented
+ ResultReason *string `json:"resultReason,omitempty"`
+ // ActivityDisplayName undocumented
+ ActivityDisplayName *string `json:"activityDisplayName,omitempty"`
+ // ActivityDateTime undocumented
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // LoggedByService undocumented
+ LoggedByService *string `json:"loggedByService,omitempty"`
+ // OperationType undocumented
+ OperationType *string `json:"operationType,omitempty"`
+ // InitiatedBy undocumented
+ InitiatedBy *AuditActivityInitiator `json:"initiatedBy,omitempty"`
+ // TargetResources undocumented
+ TargetResources []TargetResource `json:"targetResources,omitempty"`
+ // AdditionalDetails undocumented
+ AdditionalDetails []KeyValue `json:"additionalDetails,omitempty"`
+}
+
+// DirectoryDefinition undocumented
+type DirectoryDefinition struct {
+ // Entity is the base model of DirectoryDefinition
+ Entity
+ // DiscoveryDateTime undocumented
+ DiscoveryDateTime *time.Time `json:"discoveryDateTime,omitempty"`
+ // Discoverabilities undocumented
+ Discoverabilities *DirectoryDefinitionDiscoverabilities `json:"discoverabilities,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Objects undocumented
+ Objects []ObjectDefinition `json:"objects,omitempty"`
+ // ReadOnly undocumented
+ ReadOnly *bool `json:"readOnly,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+}
+
+// DirectoryObject Represents an Azure Active Directory object. The directoryObject type is the base type for many other directory entity types.
+type DirectoryObject struct {
+ // Entity is the base model of DirectoryObject
+ Entity
+ // DeletedDateTime undocumented
+ DeletedDateTime *time.Time `json:"deletedDateTime,omitempty"`
+}
+
+// DirectoryObjectPartnerReference undocumented
+type DirectoryObjectPartnerReference struct {
+ // DirectoryObject is the base model of DirectoryObjectPartnerReference
+ DirectoryObject
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ExternalPartnerTenantID undocumented
+ ExternalPartnerTenantID *UUID `json:"externalPartnerTenantId,omitempty"`
+ // ObjectType undocumented
+ ObjectType *string `json:"objectType,omitempty"`
+}
+
+// DirectoryRole undocumented
+type DirectoryRole struct {
+ // DirectoryObject is the base model of DirectoryRole
+ DirectoryObject
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // RoleTemplateID undocumented
+ RoleTemplateID *string `json:"roleTemplateId,omitempty"`
+ // Members undocumented
+ Members []DirectoryObject `json:"members,omitempty"`
+ // ScopedMembers undocumented
+ ScopedMembers []ScopedRoleMembership `json:"scopedMembers,omitempty"`
+}
+
+// DirectoryRoleTemplate undocumented
+type DirectoryRoleTemplate struct {
+ // DirectoryObject is the base model of DirectoryRoleTemplate
+ DirectoryObject
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// DirectorySetting undocumented
+type DirectorySetting struct {
+ // Entity is the base model of DirectorySetting
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // Values undocumented
+ Values []SettingValue `json:"values,omitempty"`
+}
+
+// DirectorySettingTemplate undocumented
+type DirectorySettingTemplate struct {
+ // DirectoryObject is the base model of DirectorySettingTemplate
+ DirectoryObject
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Values undocumented
+ Values []SettingTemplateValue `json:"values,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDiscovered.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDiscovered.go
new file mode 100644
index 00000000..04068845
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDiscovered.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DiscoveredSensitiveType undocumented
+type DiscoveredSensitiveType struct {
+ // Object is the base model of DiscoveredSensitiveType
+ Object
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // Count undocumented
+ Count *int `json:"count,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDlp.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDlp.go
new file mode 100644
index 00000000..3c068e36
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDlp.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DlpActionInfo undocumented
+type DlpActionInfo struct {
+ // Object is the base model of DlpActionInfo
+ Object
+ // Action undocumented
+ Action *DlpAction `json:"action,omitempty"`
+}
+
+// DlpEvaluatePoliciesJobResponse undocumented
+type DlpEvaluatePoliciesJobResponse struct {
+ // JobResponseBase is the base model of DlpEvaluatePoliciesJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *DlpPoliciesJobResult `json:"result,omitempty"`
+}
+
+// DlpEvaluatePoliciesRequestObject undocumented
+type DlpEvaluatePoliciesRequestObject struct {
+ // Object is the base model of DlpEvaluatePoliciesRequestObject
+ Object
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // EvaluationInput undocumented
+ EvaluationInput *DlpEvaluationInput `json:"evaluationInput,omitempty"`
+ // NotificationInfo undocumented
+ NotificationInfo *DlpNotification `json:"notificationInfo,omitempty"`
+}
+
+// DlpEvaluationInput undocumented
+type DlpEvaluationInput struct {
+ // Object is the base model of DlpEvaluationInput
+ Object
+ // DiscoveredSensitiveTypes undocumented
+ DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"`
+ // CurrentLabel undocumented
+ CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"`
+ // AccessScope undocumented
+ AccessScope *AccessScope `json:"accessScope,omitempty"`
+}
+
+// DlpEvaluationWindowsDevicesInput undocumented
+type DlpEvaluationWindowsDevicesInput struct {
+ // DlpEvaluationInput is the base model of DlpEvaluationWindowsDevicesInput
+ DlpEvaluationInput
+ // ContentProperties undocumented
+ ContentProperties *ContentProperties `json:"contentProperties,omitempty"`
+ // SharedBy undocumented
+ SharedBy *string `json:"sharedBy,omitempty"`
+}
+
+// DlpNotification undocumented
+type DlpNotification struct {
+ // Object is the base model of DlpNotification
+ Object
+ // Author undocumented
+ Author *string `json:"author,omitempty"`
+}
+
+// DlpPoliciesJobResult undocumented
+type DlpPoliciesJobResult struct {
+ // Object is the base model of DlpPoliciesJobResult
+ Object
+ // MatchingRules undocumented
+ MatchingRules []MatchingDlpRule `json:"matchingRules,omitempty"`
+}
+
+// DlpWindowsDevicesNotification undocumented
+type DlpWindowsDevicesNotification struct {
+ // DlpNotification is the base model of DlpWindowsDevicesNotification
+ DlpNotification
+ // LastModfiedBy undocumented
+ LastModfiedBy *string `json:"lastModfiedBy,omitempty"`
+ // ContentName undocumented
+ ContentName *string `json:"contentName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDocument.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDocument.go
new file mode 100644
index 00000000..9b886b88
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDocument.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Document undocumented
+type Document struct {
+ // Entity is the base model of Document
+ Entity
+ // Comments undocumented
+ Comments []DocumentComment `json:"comments,omitempty"`
+}
+
+// DocumentComment undocumented
+type DocumentComment struct {
+ // Entity is the base model of DocumentComment
+ Entity
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // Replies undocumented
+ Replies []DocumentCommentReply `json:"replies,omitempty"`
+}
+
+// DocumentCommentReply undocumented
+type DocumentCommentReply struct {
+ // Entity is the base model of DocumentCommentReply
+ Entity
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDomain.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDomain.go
new file mode 100644
index 00000000..a88b7ad2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDomain.go
@@ -0,0 +1,167 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Domain undocumented
+type Domain struct {
+ // Entity is the base model of Domain
+ Entity
+ // AuthenticationType undocumented
+ AuthenticationType *string `json:"authenticationType,omitempty"`
+ // AvailabilityStatus undocumented
+ AvailabilityStatus *string `json:"availabilityStatus,omitempty"`
+ // IsAdminManaged undocumented
+ IsAdminManaged *bool `json:"isAdminManaged,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // IsInitial undocumented
+ IsInitial *bool `json:"isInitial,omitempty"`
+ // IsRoot undocumented
+ IsRoot *bool `json:"isRoot,omitempty"`
+ // IsVerified undocumented
+ IsVerified *bool `json:"isVerified,omitempty"`
+ // PasswordNotificationWindowInDays undocumented
+ PasswordNotificationWindowInDays *int `json:"passwordNotificationWindowInDays,omitempty"`
+ // PasswordValidityPeriodInDays undocumented
+ PasswordValidityPeriodInDays *int `json:"passwordValidityPeriodInDays,omitempty"`
+ // SupportedServices undocumented
+ SupportedServices []string `json:"supportedServices,omitempty"`
+ // State undocumented
+ State *DomainState `json:"state,omitempty"`
+ // ServiceConfigurationRecords undocumented
+ ServiceConfigurationRecords []DomainDNSRecord `json:"serviceConfigurationRecords,omitempty"`
+ // VerificationDNSRecords undocumented
+ VerificationDNSRecords []DomainDNSRecord `json:"verificationDnsRecords,omitempty"`
+ // DomainNameReferences undocumented
+ DomainNameReferences []DirectoryObject `json:"domainNameReferences,omitempty"`
+}
+
+// DomainDNSCnameRecord undocumented
+type DomainDNSCnameRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSCnameRecord
+ DomainDNSRecord
+ // CanonicalName undocumented
+ CanonicalName *string `json:"canonicalName,omitempty"`
+}
+
+// DomainDNSMxRecord undocumented
+type DomainDNSMxRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSMxRecord
+ DomainDNSRecord
+ // MailExchange undocumented
+ MailExchange *string `json:"mailExchange,omitempty"`
+ // Preference undocumented
+ Preference *int `json:"preference,omitempty"`
+}
+
+// DomainDNSRecord undocumented
+type DomainDNSRecord struct {
+ // Entity is the base model of DomainDNSRecord
+ Entity
+ // IsOptional undocumented
+ IsOptional *bool `json:"isOptional,omitempty"`
+ // Label undocumented
+ Label *string `json:"label,omitempty"`
+ // RecordType undocumented
+ RecordType *string `json:"recordType,omitempty"`
+ // SupportedService undocumented
+ SupportedService *string `json:"supportedService,omitempty"`
+ // TTL undocumented
+ TTL *int `json:"ttl,omitempty"`
+}
+
+// DomainDNSSrvRecord undocumented
+type DomainDNSSrvRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSSrvRecord
+ DomainDNSRecord
+ // NameTarget undocumented
+ NameTarget *string `json:"nameTarget,omitempty"`
+ // Port undocumented
+ Port *int `json:"port,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // Protocol undocumented
+ Protocol *string `json:"protocol,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+ // Weight undocumented
+ Weight *int `json:"weight,omitempty"`
+}
+
+// DomainDNSTxtRecord undocumented
+type DomainDNSTxtRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSTxtRecord
+ DomainDNSRecord
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+}
+
+// DomainDNSUnavailableRecord undocumented
+type DomainDNSUnavailableRecord struct {
+ // DomainDNSRecord is the base model of DomainDNSUnavailableRecord
+ DomainDNSRecord
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+}
+
+// DomainRegistrant undocumented
+type DomainRegistrant struct {
+ // Object is the base model of DomainRegistrant
+ Object
+ // CountryOrRegionCode undocumented
+ CountryOrRegionCode *string `json:"countryOrRegionCode,omitempty"`
+ // Organization undocumented
+ Organization *string `json:"organization,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
+
+// DomainSecurityProfile undocumented
+type DomainSecurityProfile struct {
+ // Entity is the base model of DomainSecurityProfile
+ Entity
+ // ActivityGroupNames undocumented
+ ActivityGroupNames []string `json:"activityGroupNames,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CountHits undocumented
+ CountHits *int `json:"countHits,omitempty"`
+ // CountInOrg undocumented
+ CountInOrg *int `json:"countInOrg,omitempty"`
+ // DomainCategories undocumented
+ DomainCategories []ReputationCategory `json:"domainCategories,omitempty"`
+ // DomainRegisteredDateTime undocumented
+ DomainRegisteredDateTime *time.Time `json:"domainRegisteredDateTime,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Registrant undocumented
+ Registrant *DomainRegistrant `json:"registrant,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
+
+// DomainState undocumented
+type DomainState struct {
+ // Object is the base model of DomainState
+ Object
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Operation undocumented
+ Operation *string `json:"operation,omitempty"`
+ // LastActionDateTime undocumented
+ LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDowngrade.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDowngrade.go
new file mode 100644
index 00000000..a93ff832
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDowngrade.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// DowngradeJustification undocumented
+type DowngradeJustification struct {
+ // Object is the base model of DowngradeJustification
+ Object
+ // JustificationMessage undocumented
+ JustificationMessage *string `json:"justificationMessage,omitempty"`
+ // IsDowngradeJustified undocumented
+ IsDowngradeJustified *bool `json:"isDowngradeJustified,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelDrive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDrive.go
new file mode 100644
index 00000000..835477cc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelDrive.go
@@ -0,0 +1,141 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Drive undocumented
+type Drive struct {
+ // BaseItem is the base model of Drive
+ BaseItem
+ // DriveType undocumented
+ DriveType *string `json:"driveType,omitempty"`
+ // Owner undocumented
+ Owner *IdentitySet `json:"owner,omitempty"`
+ // Quota undocumented
+ Quota *Quota `json:"quota,omitempty"`
+ // SharePointIDs undocumented
+ SharePointIDs *SharepointIDs `json:"sharePointIds,omitempty"`
+ // System undocumented
+ System *SystemFacet `json:"system,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivityOLD `json:"activities,omitempty"`
+ // Bundles undocumented
+ Bundles []DriveItem `json:"bundles,omitempty"`
+ // Following undocumented
+ Following []DriveItem `json:"following,omitempty"`
+ // Items undocumented
+ Items []DriveItem `json:"items,omitempty"`
+ // List undocumented
+ List *List `json:"list,omitempty"`
+ // Root undocumented
+ Root *DriveItem `json:"root,omitempty"`
+ // Special undocumented
+ Special []DriveItem `json:"special,omitempty"`
+}
+
+// DriveItem undocumented
+type DriveItem struct {
+ // BaseItem is the base model of DriveItem
+ BaseItem
+ // Audio undocumented
+ Audio *Audio `json:"audio,omitempty"`
+ // Bundle undocumented
+ Bundle *Bundle `json:"bundle,omitempty"`
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // CTag undocumented
+ CTag *string `json:"cTag,omitempty"`
+ // Deleted undocumented
+ Deleted *Deleted `json:"deleted,omitempty"`
+ // File undocumented
+ File *File `json:"file,omitempty"`
+ // FileSystemInfo undocumented
+ FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
+ // Folder undocumented
+ Folder *Folder `json:"folder,omitempty"`
+ // Image undocumented
+ Image *Image `json:"image,omitempty"`
+ // Location undocumented
+ Location *GeoCoordinates `json:"location,omitempty"`
+ // Package undocumented
+ Package *Package `json:"package,omitempty"`
+ // PendingOperations undocumented
+ PendingOperations *PendingOperations `json:"pendingOperations,omitempty"`
+ // Photo undocumented
+ Photo *Photo `json:"photo,omitempty"`
+ // Publication undocumented
+ Publication *PublicationFacet `json:"publication,omitempty"`
+ // RemoteItem undocumented
+ RemoteItem *RemoteItem `json:"remoteItem,omitempty"`
+ // Root undocumented
+ Root *Root `json:"root,omitempty"`
+ // SearchResult undocumented
+ SearchResult *SearchResult `json:"searchResult,omitempty"`
+ // Shared undocumented
+ Shared *Shared `json:"shared,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // SpecialFolder undocumented
+ SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"`
+ // Video undocumented
+ Video *Video `json:"video,omitempty"`
+ // WebDavURL undocumented
+ WebDavURL *string `json:"webDavUrl,omitempty"`
+ // Workbook undocumented
+ Workbook *Workbook `json:"workbook,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivityOLD `json:"activities,omitempty"`
+ // Analytics undocumented
+ Analytics *ItemAnalytics `json:"analytics,omitempty"`
+ // Children undocumented
+ Children []DriveItem `json:"children,omitempty"`
+ // ListItem undocumented
+ ListItem *ListItem `json:"listItem,omitempty"`
+ // Permissions undocumented
+ Permissions []Permission `json:"permissions,omitempty"`
+ // Subscriptions undocumented
+ Subscriptions []Subscription `json:"subscriptions,omitempty"`
+ // Thumbnails undocumented
+ Thumbnails []ThumbnailSet `json:"thumbnails,omitempty"`
+ // Versions undocumented
+ Versions []DriveItemVersion `json:"versions,omitempty"`
+ // Document undocumented
+ Document *Document `json:"document,omitempty"`
+}
+
+// DriveItemUploadableProperties undocumented
+type DriveItemUploadableProperties struct {
+ // Object is the base model of DriveItemUploadableProperties
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // FileSystemInfo undocumented
+ FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // FileSize undocumented
+ FileSize *int `json:"fileSize,omitempty"`
+}
+
+// DriveItemVersion undocumented
+type DriveItemVersion struct {
+ // BaseItemVersion is the base model of DriveItemVersion
+ BaseItemVersion
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+}
+
+// DriveRecipient undocumented
+type DriveRecipient struct {
+ // Object is the base model of DriveRecipient
+ Object
+ // Alias undocumented
+ Alias *string `json:"alias,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // ObjectID undocumented
+ ObjectID *string `json:"objectId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelE.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelE.go
new file mode 100644
index 00000000..b3f66595
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelE.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EBookInstallSummary Contains properties for the installation summary of a book for a device.
+type EBookInstallSummary struct {
+ // Entity is the base model of EBookInstallSummary
+ Entity
+ // InstalledDeviceCount Number of Devices that have successfully installed this book.
+ InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"`
+ // FailedDeviceCount Number of Devices that have failed to install this book.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+ // NotInstalledDeviceCount Number of Devices that does not have this book installed.
+ NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"`
+ // InstalledUserCount Number of Users whose devices have all succeeded to install this book.
+ InstalledUserCount *int `json:"installedUserCount,omitempty"`
+ // FailedUserCount Number of Users that have 1 or more device that failed to install this book.
+ FailedUserCount *int `json:"failedUserCount,omitempty"`
+ // NotInstalledUserCount Number of Users that did not install this book.
+ NotInstalledUserCount *int `json:"notInstalledUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEas.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEas.go
new file mode 100644
index 00000000..5631823f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEas.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EasEmailProfileConfigurationBase Apple device features configuration profile.
+type EasEmailProfileConfigurationBase struct {
+ // DeviceConfiguration is the base model of EasEmailProfileConfigurationBase
+ DeviceConfiguration
+ // UsernameSource Username attribute that is picked from AAD and injected into this profile before installing on the device.
+ UsernameSource *UserEmailSource `json:"usernameSource,omitempty"`
+ // UsernameAADSource Name of the AAD field, that will be used to retrieve UserName for email profile.
+ UsernameAADSource *UsernameSource `json:"usernameAADSource,omitempty"`
+ // UserDomainNameSource UserDomainname attribute that is picked from AAD and injected into this profile before installing on the device.
+ UserDomainNameSource *DomainNameSource `json:"userDomainNameSource,omitempty"`
+ // CustomDomainName Custom domain name value used while generating an email profile before installing on the device.
+ CustomDomainName *string `json:"customDomainName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdge.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdge.go
new file mode 100644
index 00000000..46eb2e98
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdge.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EdgeHomeButtonConfiguration undocumented
+type EdgeHomeButtonConfiguration struct {
+ // Object is the base model of EdgeHomeButtonConfiguration
+ Object
+}
+
+// EdgeHomeButtonHidden undocumented
+type EdgeHomeButtonHidden struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonHidden
+ EdgeHomeButtonConfiguration
+}
+
+// EdgeHomeButtonLoadsStartPage undocumented
+type EdgeHomeButtonLoadsStartPage struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonLoadsStartPage
+ EdgeHomeButtonConfiguration
+}
+
+// EdgeHomeButtonOpensCustomURL undocumented
+type EdgeHomeButtonOpensCustomURL struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonOpensCustomURL
+ EdgeHomeButtonConfiguration
+ // HomeButtonCustomURL The specific URL to load.
+ HomeButtonCustomURL *string `json:"homeButtonCustomURL,omitempty"`
+}
+
+// EdgeHomeButtonOpensNewTab undocumented
+type EdgeHomeButtonOpensNewTab struct {
+ // EdgeHomeButtonConfiguration is the base model of EdgeHomeButtonOpensNewTab
+ EdgeHomeButtonConfiguration
+}
+
+// EdgeSearchEngine undocumented
+type EdgeSearchEngine struct {
+ // EdgeSearchEngineBase is the base model of EdgeSearchEngine
+ EdgeSearchEngineBase
+ // EdgeSearchEngineType Allows IT admins to set a predefined default search engine for MDM-Controlled devices.
+ EdgeSearchEngineType *EdgeSearchEngineType `json:"edgeSearchEngineType,omitempty"`
+}
+
+// EdgeSearchEngineBase undocumented
+type EdgeSearchEngineBase struct {
+ // Object is the base model of EdgeSearchEngineBase
+ Object
+}
+
+// EdgeSearchEngineCustom undocumented
+type EdgeSearchEngineCustom struct {
+ // EdgeSearchEngineBase is the base model of EdgeSearchEngineCustom
+ EdgeSearchEngineBase
+ // EdgeSearchEngineOpenSearchXMLURL Points to a https link containing the OpenSearch xml file that contains, at minimum, the short name and the URL to the search Engine.
+ EdgeSearchEngineOpenSearchXMLURL *string `json:"edgeSearchEngineOpenSearchXmlUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdit.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdit.go
new file mode 100644
index 00000000..e9a7203e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdit.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EditAction undocumented
+type EditAction struct {
+ // Object is the base model of EditAction
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdition.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdition.go
new file mode 100644
index 00000000..11c89adb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEdition.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EditionUpgradeConfiguration Windows 10 Edition Upgrade configuration.
+type EditionUpgradeConfiguration struct {
+ // DeviceConfiguration is the base model of EditionUpgradeConfiguration
+ DeviceConfiguration
+ // LicenseType Edition Upgrade License Type.
+ LicenseType *EditionUpgradeLicenseType `json:"licenseType,omitempty"`
+ // TargetEdition Edition Upgrade Target Edition.
+ TargetEdition *Windows10EditionType `json:"targetEdition,omitempty"`
+ // License Edition Upgrade License File Content.
+ License *string `json:"license,omitempty"`
+ // ProductKey Edition Upgrade Product Key.
+ ProductKey *string `json:"productKey,omitempty"`
+ // WindowsSMode S mode configuration.
+ WindowsSMode *WindowsSModeConfiguration `json:"windowsSMode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducation.go
new file mode 100644
index 00000000..6a89ecd7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducation.go
@@ -0,0 +1,849 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EducationAssignment undocumented
+type EducationAssignment struct {
+ // Entity is the base model of EducationAssignment
+ Entity
+ // ClassID undocumented
+ ClassID *string `json:"classId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Instructions undocumented
+ Instructions *EducationItemBody `json:"instructions,omitempty"`
+ // CloseDateTime undocumented
+ CloseDateTime *time.Time `json:"closeDateTime,omitempty"`
+ // DueDateTime undocumented
+ DueDateTime *time.Time `json:"dueDateTime,omitempty"`
+ // AssignDateTime undocumented
+ AssignDateTime *time.Time `json:"assignDateTime,omitempty"`
+ // AssignedDateTime undocumented
+ AssignedDateTime *time.Time `json:"assignedDateTime,omitempty"`
+ // Grading undocumented
+ Grading *EducationAssignmentGradeType `json:"grading,omitempty"`
+ // AssignTo undocumented
+ AssignTo *EducationAssignmentRecipient `json:"assignTo,omitempty"`
+ // AllowLateSubmissions undocumented
+ AllowLateSubmissions *bool `json:"allowLateSubmissions,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // AllowStudentsToAddResourcesToSubmission undocumented
+ AllowStudentsToAddResourcesToSubmission *bool `json:"allowStudentsToAddResourcesToSubmission,omitempty"`
+ // Status undocumented
+ Status *EducationAssignmentStatus `json:"status,omitempty"`
+ // Resources undocumented
+ Resources []EducationAssignmentResource `json:"resources,omitempty"`
+ // Submissions undocumented
+ Submissions []EducationSubmission `json:"submissions,omitempty"`
+ // Categories undocumented
+ Categories []EducationCategory `json:"categories,omitempty"`
+ // Rubric undocumented
+ Rubric *EducationRubric `json:"rubric,omitempty"`
+}
+
+// EducationAssignmentClassRecipient undocumented
+type EducationAssignmentClassRecipient struct {
+ // EducationAssignmentRecipient is the base model of EducationAssignmentClassRecipient
+ EducationAssignmentRecipient
+}
+
+// EducationAssignmentGrade undocumented
+type EducationAssignmentGrade struct {
+ // Object is the base model of EducationAssignmentGrade
+ Object
+ // GradedBy undocumented
+ GradedBy *IdentitySet `json:"gradedBy,omitempty"`
+ // GradedDateTime undocumented
+ GradedDateTime *time.Time `json:"gradedDateTime,omitempty"`
+}
+
+// EducationAssignmentGradeType undocumented
+type EducationAssignmentGradeType struct {
+ // Object is the base model of EducationAssignmentGradeType
+ Object
+}
+
+// EducationAssignmentGroupRecipient undocumented
+type EducationAssignmentGroupRecipient struct {
+ // EducationAssignmentRecipient is the base model of EducationAssignmentGroupRecipient
+ EducationAssignmentRecipient
+}
+
+// EducationAssignmentIndividualRecipient undocumented
+type EducationAssignmentIndividualRecipient struct {
+ // EducationAssignmentRecipient is the base model of EducationAssignmentIndividualRecipient
+ EducationAssignmentRecipient
+ // Recipients undocumented
+ Recipients []string `json:"recipients,omitempty"`
+}
+
+// EducationAssignmentPointsGrade undocumented
+type EducationAssignmentPointsGrade struct {
+ // EducationAssignmentGrade is the base model of EducationAssignmentPointsGrade
+ EducationAssignmentGrade
+ // Points undocumented
+ Points *float64 `json:"points,omitempty"`
+}
+
+// EducationAssignmentPointsGradeType undocumented
+type EducationAssignmentPointsGradeType struct {
+ // EducationAssignmentGradeType is the base model of EducationAssignmentPointsGradeType
+ EducationAssignmentGradeType
+ // MaxPoints undocumented
+ MaxPoints *float64 `json:"maxPoints,omitempty"`
+}
+
+// EducationAssignmentRecipient undocumented
+type EducationAssignmentRecipient struct {
+ // Object is the base model of EducationAssignmentRecipient
+ Object
+}
+
+// EducationAssignmentResource undocumented
+type EducationAssignmentResource struct {
+ // Entity is the base model of EducationAssignmentResource
+ Entity
+ // DistributeForStudentWork undocumented
+ DistributeForStudentWork *bool `json:"distributeForStudentWork,omitempty"`
+ // Resource undocumented
+ Resource *EducationResource `json:"resource,omitempty"`
+}
+
+// EducationCategory undocumented
+type EducationCategory struct {
+ // Entity is the base model of EducationCategory
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// EducationClass undocumented
+type EducationClass struct {
+ // Entity is the base model of EducationClass
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // ClassCode undocumented
+ ClassCode *string `json:"classCode,omitempty"`
+ // ExternalName undocumented
+ ExternalName *string `json:"externalName,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // ExternalSource undocumented
+ ExternalSource *EducationExternalSource `json:"externalSource,omitempty"`
+ // Grade undocumented
+ Grade *string `json:"grade,omitempty"`
+ // Term undocumented
+ Term *EducationTerm `json:"term,omitempty"`
+ // Course undocumented
+ Course *EducationCourse `json:"course,omitempty"`
+ // Assignments undocumented
+ Assignments []EducationAssignment `json:"assignments,omitempty"`
+ // AssignmentCategories undocumented
+ AssignmentCategories []EducationCategory `json:"assignmentCategories,omitempty"`
+ // Members undocumented
+ Members []EducationUser `json:"members,omitempty"`
+ // Teachers undocumented
+ Teachers []EducationUser `json:"teachers,omitempty"`
+ // Schools undocumented
+ Schools []EducationSchool `json:"schools,omitempty"`
+ // Group undocumented
+ Group *Group `json:"group,omitempty"`
+}
+
+// EducationCourse undocumented
+type EducationCourse struct {
+ // Object is the base model of EducationCourse
+ Object
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // CourseNumber undocumented
+ CourseNumber *string `json:"courseNumber,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
+
+// EducationCsvDataProvider undocumented
+type EducationCsvDataProvider struct {
+ // EducationSynchronizationDataProvider is the base model of EducationCsvDataProvider
+ EducationSynchronizationDataProvider
+ // Customizations undocumented
+ Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"`
+}
+
+// EducationExcelResource undocumented
+type EducationExcelResource struct {
+ // EducationResource is the base model of EducationExcelResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
+
+// EducationFeedback undocumented
+type EducationFeedback struct {
+ // Object is the base model of EducationFeedback
+ Object
+ // Text undocumented
+ Text *EducationItemBody `json:"text,omitempty"`
+ // FeedbackDateTime undocumented
+ FeedbackDateTime *time.Time `json:"feedbackDateTime,omitempty"`
+ // FeedbackBy undocumented
+ FeedbackBy *IdentitySet `json:"feedbackBy,omitempty"`
+}
+
+// EducationFeedbackOutcome undocumented
+type EducationFeedbackOutcome struct {
+ // EducationOutcome is the base model of EducationFeedbackOutcome
+ EducationOutcome
+ // Feedback undocumented
+ Feedback *EducationFeedback `json:"feedback,omitempty"`
+ // PublishedFeedback undocumented
+ PublishedFeedback *EducationFeedback `json:"publishedFeedback,omitempty"`
+}
+
+// EducationFileResource undocumented
+type EducationFileResource struct {
+ // EducationResource is the base model of EducationFileResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
+
+// EducationFileSynchronizationVerificationMessage undocumented
+type EducationFileSynchronizationVerificationMessage struct {
+ // Object is the base model of EducationFileSynchronizationVerificationMessage
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+}
+
+// EducationFormResource undocumented
+type EducationFormResource struct {
+ // EducationResource is the base model of EducationFormResource
+ EducationResource
+ // OriginalFormID undocumented
+ OriginalFormID *string `json:"originalFormId,omitempty"`
+ // FormID undocumented
+ FormID *string `json:"formId,omitempty"`
+ // IsGroupForm undocumented
+ IsGroupForm *bool `json:"isGroupForm,omitempty"`
+ // ViewURL undocumented
+ ViewURL *string `json:"viewUrl,omitempty"`
+ // EditURL undocumented
+ EditURL *string `json:"editUrl,omitempty"`
+}
+
+// EducationIdentityCreationConfiguration undocumented
+type EducationIdentityCreationConfiguration struct {
+ // EducationIdentitySynchronizationConfiguration is the base model of EducationIdentityCreationConfiguration
+ EducationIdentitySynchronizationConfiguration
+ // UserDomains undocumented
+ UserDomains []EducationIdentityDomain `json:"userDomains,omitempty"`
+}
+
+// EducationIdentityDomain undocumented
+type EducationIdentityDomain struct {
+ // Object is the base model of EducationIdentityDomain
+ Object
+ // AppliesTo undocumented
+ AppliesTo *EducationUserRole `json:"appliesTo,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// EducationIdentityMatchingConfiguration undocumented
+type EducationIdentityMatchingConfiguration struct {
+ // EducationIdentitySynchronizationConfiguration is the base model of EducationIdentityMatchingConfiguration
+ EducationIdentitySynchronizationConfiguration
+ // MatchingOptions undocumented
+ MatchingOptions []EducationIdentityMatchingOptions `json:"matchingOptions,omitempty"`
+}
+
+// EducationIdentityMatchingOptions undocumented
+type EducationIdentityMatchingOptions struct {
+ // Object is the base model of EducationIdentityMatchingOptions
+ Object
+ // AppliesTo undocumented
+ AppliesTo *EducationUserRole `json:"appliesTo,omitempty"`
+ // SourcePropertyName undocumented
+ SourcePropertyName *string `json:"sourcePropertyName,omitempty"`
+ // TargetPropertyName undocumented
+ TargetPropertyName *string `json:"targetPropertyName,omitempty"`
+ // TargetDomain undocumented
+ TargetDomain *string `json:"targetDomain,omitempty"`
+}
+
+// EducationIdentitySynchronizationConfiguration undocumented
+type EducationIdentitySynchronizationConfiguration struct {
+ // Object is the base model of EducationIdentitySynchronizationConfiguration
+ Object
+}
+
+// EducationItemBody undocumented
+type EducationItemBody struct {
+ // Object is the base model of EducationItemBody
+ Object
+ // ContentType undocumented
+ ContentType *BodyType `json:"contentType,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+}
+
+// EducationLinkResource undocumented
+type EducationLinkResource struct {
+ // EducationResource is the base model of EducationLinkResource
+ EducationResource
+ // Link undocumented
+ Link *string `json:"link,omitempty"`
+}
+
+// EducationMakeCodeResource undocumented
+type EducationMakeCodeResource struct {
+ // EducationResource is the base model of EducationMakeCodeResource
+ EducationResource
+ // HostWebURL undocumented
+ HostWebURL *string `json:"hostWebUrl,omitempty"`
+ // ProjectID undocumented
+ ProjectID *string `json:"projectId,omitempty"`
+}
+
+// EducationOnPremisesInfo undocumented
+type EducationOnPremisesInfo struct {
+ // Object is the base model of EducationOnPremisesInfo
+ Object
+ // ImmutableID undocumented
+ ImmutableID *string `json:"immutableId,omitempty"`
+}
+
+// EducationOneNoteResource undocumented
+type EducationOneNoteResource struct {
+ // EducationResource is the base model of EducationOneNoteResource
+ EducationResource
+ // SectionName undocumented
+ SectionName *string `json:"sectionName,omitempty"`
+ // PageURL undocumented
+ PageURL *string `json:"pageUrl,omitempty"`
+}
+
+// EducationOneRosterAPIDataProvider undocumented
+type EducationOneRosterAPIDataProvider struct {
+ // EducationSynchronizationDataProvider is the base model of EducationOneRosterAPIDataProvider
+ EducationSynchronizationDataProvider
+ // ConnectionURL undocumented
+ ConnectionURL *string `json:"connectionUrl,omitempty"`
+ // ConnectionSettings undocumented
+ ConnectionSettings *EducationSynchronizationConnectionSettings `json:"connectionSettings,omitempty"`
+ // SchoolsIDs undocumented
+ SchoolsIDs []string `json:"schoolsIds,omitempty"`
+ // TermIDs undocumented
+ TermIDs []string `json:"termIds,omitempty"`
+ // ProviderName undocumented
+ ProviderName *string `json:"providerName,omitempty"`
+ // Customizations undocumented
+ Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"`
+}
+
+// EducationOrganization undocumented
+type EducationOrganization struct {
+ // Entity is the base model of EducationOrganization
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // ExternalSource undocumented
+ ExternalSource *EducationExternalSource `json:"externalSource,omitempty"`
+}
+
+// EducationOutcome undocumented
+type EducationOutcome struct {
+ // Entity is the base model of EducationOutcome
+ Entity
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// EducationPointsOutcome undocumented
+type EducationPointsOutcome struct {
+ // EducationOutcome is the base model of EducationPointsOutcome
+ EducationOutcome
+ // Points undocumented
+ Points *EducationAssignmentPointsGrade `json:"points,omitempty"`
+ // PublishedPoints undocumented
+ PublishedPoints *EducationAssignmentPointsGrade `json:"publishedPoints,omitempty"`
+}
+
+// EducationPowerPointResource undocumented
+type EducationPowerPointResource struct {
+ // EducationResource is the base model of EducationPowerPointResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
+
+// EducationPowerSchoolDataProvider undocumented
+type EducationPowerSchoolDataProvider struct {
+ // EducationSynchronizationDataProvider is the base model of EducationPowerSchoolDataProvider
+ EducationSynchronizationDataProvider
+ // ConnectionURL undocumented
+ ConnectionURL *string `json:"connectionUrl,omitempty"`
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ClientSecret undocumented
+ ClientSecret *string `json:"clientSecret,omitempty"`
+ // SchoolsIDs undocumented
+ SchoolsIDs []string `json:"schoolsIds,omitempty"`
+ // SchoolYear undocumented
+ SchoolYear *string `json:"schoolYear,omitempty"`
+ // AllowTeachersInMultipleSchools undocumented
+ AllowTeachersInMultipleSchools *bool `json:"allowTeachersInMultipleSchools,omitempty"`
+ // Customizations undocumented
+ Customizations *EducationSynchronizationCustomizations `json:"customizations,omitempty"`
+}
+
+// EducationResource undocumented
+type EducationResource struct {
+ // Object is the base model of EducationResource
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+}
+
+// EducationRoot undocumented
+type EducationRoot struct {
+ // Entity is the base model of EducationRoot
+ Entity
+ // SynchronizationProfiles undocumented
+ SynchronizationProfiles []EducationSynchronizationProfile `json:"synchronizationProfiles,omitempty"`
+ // Classes undocumented
+ Classes []EducationClass `json:"classes,omitempty"`
+ // Schools undocumented
+ Schools []EducationSchool `json:"schools,omitempty"`
+ // Users undocumented
+ Users []EducationUser `json:"users,omitempty"`
+ // Me undocumented
+ Me *EducationUser `json:"me,omitempty"`
+}
+
+// EducationRubric undocumented
+type EducationRubric struct {
+ // Entity is the base model of EducationRubric
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *EducationItemBody `json:"description,omitempty"`
+ // Qualities undocumented
+ Qualities []RubricQuality `json:"qualities,omitempty"`
+ // Levels undocumented
+ Levels []RubricLevel `json:"levels,omitempty"`
+ // Grading undocumented
+ Grading *EducationAssignmentGradeType `json:"grading,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+}
+
+// EducationRubricOutcome undocumented
+type EducationRubricOutcome struct {
+ // EducationOutcome is the base model of EducationRubricOutcome
+ EducationOutcome
+ // RubricQualityFeedback undocumented
+ RubricQualityFeedback []RubricQualityFeedbackModel `json:"rubricQualityFeedback,omitempty"`
+ // RubricQualitySelectedLevels undocumented
+ RubricQualitySelectedLevels []RubricQualitySelectedColumnModel `json:"rubricQualitySelectedLevels,omitempty"`
+ // PublishedRubricQualityFeedback undocumented
+ PublishedRubricQualityFeedback []RubricQualityFeedbackModel `json:"publishedRubricQualityFeedback,omitempty"`
+ // PublishedRubricQualitySelectedLevels undocumented
+ PublishedRubricQualitySelectedLevels []RubricQualitySelectedColumnModel `json:"publishedRubricQualitySelectedLevels,omitempty"`
+}
+
+// EducationSchool undocumented
+type EducationSchool struct {
+ // EducationOrganization is the base model of EducationSchool
+ EducationOrganization
+ // PrincipalEmail undocumented
+ PrincipalEmail *string `json:"principalEmail,omitempty"`
+ // PrincipalName undocumented
+ PrincipalName *string `json:"principalName,omitempty"`
+ // ExternalPrincipalID undocumented
+ ExternalPrincipalID *string `json:"externalPrincipalId,omitempty"`
+ // LowestGrade undocumented
+ LowestGrade *string `json:"lowestGrade,omitempty"`
+ // HighestGrade undocumented
+ HighestGrade *string `json:"highestGrade,omitempty"`
+ // SchoolNumber undocumented
+ SchoolNumber *string `json:"schoolNumber,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // Phone undocumented
+ Phone *string `json:"phone,omitempty"`
+ // Fax undocumented
+ Fax *string `json:"fax,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // Classes undocumented
+ Classes []EducationClass `json:"classes,omitempty"`
+ // Users undocumented
+ Users []EducationUser `json:"users,omitempty"`
+ // AdministrativeUnit undocumented
+ AdministrativeUnit *AdministrativeUnit `json:"administrativeUnit,omitempty"`
+}
+
+// EducationStudent undocumented
+type EducationStudent struct {
+ // Object is the base model of EducationStudent
+ Object
+ // GraduationYear undocumented
+ GraduationYear *string `json:"graduationYear,omitempty"`
+ // Grade undocumented
+ Grade *string `json:"grade,omitempty"`
+ // BirthDate undocumented
+ BirthDate *Date `json:"birthDate,omitempty"`
+ // Gender undocumented
+ Gender *EducationGender `json:"gender,omitempty"`
+ // StudentNumber undocumented
+ StudentNumber *string `json:"studentNumber,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
+
+// EducationSubmission undocumented
+type EducationSubmission struct {
+ // Entity is the base model of EducationSubmission
+ Entity
+ // Recipient undocumented
+ Recipient *EducationSubmissionRecipient `json:"recipient,omitempty"`
+ // Status undocumented
+ Status *EducationSubmissionStatus `json:"status,omitempty"`
+ // SubmittedBy undocumented
+ SubmittedBy *IdentitySet `json:"submittedBy,omitempty"`
+ // SubmittedDateTime undocumented
+ SubmittedDateTime *time.Time `json:"submittedDateTime,omitempty"`
+ // UnsubmittedBy undocumented
+ UnsubmittedBy *IdentitySet `json:"unsubmittedBy,omitempty"`
+ // UnsubmittedDateTime undocumented
+ UnsubmittedDateTime *time.Time `json:"unsubmittedDateTime,omitempty"`
+ // ReleasedBy undocumented
+ ReleasedBy *IdentitySet `json:"releasedBy,omitempty"`
+ // ReleasedDateTime undocumented
+ ReleasedDateTime *time.Time `json:"releasedDateTime,omitempty"`
+ // ReturnedBy undocumented
+ ReturnedBy *IdentitySet `json:"returnedBy,omitempty"`
+ // ReturnedDateTime undocumented
+ ReturnedDateTime *time.Time `json:"returnedDateTime,omitempty"`
+ // ResourcesFolderURL undocumented
+ ResourcesFolderURL *string `json:"resourcesFolderUrl,omitempty"`
+ // Resources undocumented
+ Resources []EducationSubmissionResource `json:"resources,omitempty"`
+ // SubmittedResources undocumented
+ SubmittedResources []EducationSubmissionResource `json:"submittedResources,omitempty"`
+ // Outcomes undocumented
+ Outcomes []EducationOutcome `json:"outcomes,omitempty"`
+}
+
+// EducationSubmissionIndividualRecipient undocumented
+type EducationSubmissionIndividualRecipient struct {
+ // EducationSubmissionRecipient is the base model of EducationSubmissionIndividualRecipient
+ EducationSubmissionRecipient
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+}
+
+// EducationSubmissionRecipient undocumented
+type EducationSubmissionRecipient struct {
+ // Object is the base model of EducationSubmissionRecipient
+ Object
+}
+
+// EducationSubmissionResource undocumented
+type EducationSubmissionResource struct {
+ // Entity is the base model of EducationSubmissionResource
+ Entity
+ // Resource undocumented
+ Resource *EducationResource `json:"resource,omitempty"`
+ // AssignmentResourceURL undocumented
+ AssignmentResourceURL *string `json:"assignmentResourceUrl,omitempty"`
+}
+
+// EducationSynchronizationConnectionSettings undocumented
+type EducationSynchronizationConnectionSettings struct {
+ // Object is the base model of EducationSynchronizationConnectionSettings
+ Object
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ClientSecret undocumented
+ ClientSecret *string `json:"clientSecret,omitempty"`
+}
+
+// EducationSynchronizationCustomization undocumented
+type EducationSynchronizationCustomization struct {
+ // Object is the base model of EducationSynchronizationCustomization
+ Object
+ // OptionalPropertiesToSync undocumented
+ OptionalPropertiesToSync []string `json:"optionalPropertiesToSync,omitempty"`
+ // SynchronizationStartDate undocumented
+ SynchronizationStartDate *time.Time `json:"synchronizationStartDate,omitempty"`
+ // IsSyncDeferred undocumented
+ IsSyncDeferred *bool `json:"isSyncDeferred,omitempty"`
+ // AllowDisplayNameUpdate undocumented
+ AllowDisplayNameUpdate *bool `json:"allowDisplayNameUpdate,omitempty"`
+}
+
+// EducationSynchronizationCustomizations undocumented
+type EducationSynchronizationCustomizations struct {
+ // EducationSynchronizationCustomizationsBase is the base model of EducationSynchronizationCustomizations
+ EducationSynchronizationCustomizationsBase
+ // School undocumented
+ School *EducationSynchronizationCustomization `json:"school,omitempty"`
+ // Section undocumented
+ Section *EducationSynchronizationCustomization `json:"section,omitempty"`
+ // Student undocumented
+ Student *EducationSynchronizationCustomization `json:"student,omitempty"`
+ // Teacher undocumented
+ Teacher *EducationSynchronizationCustomization `json:"teacher,omitempty"`
+ // StudentEnrollment undocumented
+ StudentEnrollment *EducationSynchronizationCustomization `json:"studentEnrollment,omitempty"`
+ // TeacherRoster undocumented
+ TeacherRoster *EducationSynchronizationCustomization `json:"teacherRoster,omitempty"`
+}
+
+// EducationSynchronizationCustomizationsBase undocumented
+type EducationSynchronizationCustomizationsBase struct {
+ // Object is the base model of EducationSynchronizationCustomizationsBase
+ Object
+}
+
+// EducationSynchronizationDataProvider undocumented
+type EducationSynchronizationDataProvider struct {
+ // Object is the base model of EducationSynchronizationDataProvider
+ Object
+}
+
+// EducationSynchronizationError undocumented
+type EducationSynchronizationError struct {
+ // Entity is the base model of EducationSynchronizationError
+ Entity
+ // EntryType undocumented
+ EntryType *string `json:"entryType,omitempty"`
+ // ErrorCode undocumented
+ ErrorCode *string `json:"errorCode,omitempty"`
+ // ErrorMessage undocumented
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+ // JoiningValue undocumented
+ JoiningValue *string `json:"joiningValue,omitempty"`
+ // RecordedDateTime undocumented
+ RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"`
+ // ReportableIdentifier undocumented
+ ReportableIdentifier *string `json:"reportableIdentifier,omitempty"`
+}
+
+// EducationSynchronizationLicenseAssignment undocumented
+type EducationSynchronizationLicenseAssignment struct {
+ // Object is the base model of EducationSynchronizationLicenseAssignment
+ Object
+ // AppliesTo undocumented
+ AppliesTo *EducationUserRole `json:"appliesTo,omitempty"`
+ // SKUIDs undocumented
+ SKUIDs []string `json:"skuIds,omitempty"`
+}
+
+// EducationSynchronizationOAuth1ConnectionSettings undocumented
+type EducationSynchronizationOAuth1ConnectionSettings struct {
+ // EducationSynchronizationConnectionSettings is the base model of EducationSynchronizationOAuth1ConnectionSettings
+ EducationSynchronizationConnectionSettings
+}
+
+// EducationSynchronizationOAuth2ClientCredentialsConnectionSettings undocumented
+type EducationSynchronizationOAuth2ClientCredentialsConnectionSettings struct {
+ // EducationSynchronizationConnectionSettings is the base model of EducationSynchronizationOAuth2ClientCredentialsConnectionSettings
+ EducationSynchronizationConnectionSettings
+ // TokenURL undocumented
+ TokenURL *string `json:"tokenUrl,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+}
+
+// EducationSynchronizationProfile undocumented
+type EducationSynchronizationProfile struct {
+ // Entity is the base model of EducationSynchronizationProfile
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // DataProvider undocumented
+ DataProvider *EducationSynchronizationDataProvider `json:"dataProvider,omitempty"`
+ // IdentitySynchronizationConfiguration undocumented
+ IdentitySynchronizationConfiguration *EducationIdentitySynchronizationConfiguration `json:"identitySynchronizationConfiguration,omitempty"`
+ // LicensesToAssign undocumented
+ LicensesToAssign []EducationSynchronizationLicenseAssignment `json:"licensesToAssign,omitempty"`
+ // State undocumented
+ State *EducationSynchronizationProfileState `json:"state,omitempty"`
+ // HandleSpecialCharacterConstraint undocumented
+ HandleSpecialCharacterConstraint *bool `json:"handleSpecialCharacterConstraint,omitempty"`
+ // Errors undocumented
+ Errors []EducationSynchronizationError `json:"errors,omitempty"`
+ // ProfileStatus undocumented
+ ProfileStatus *EducationSynchronizationProfileStatus `json:"profileStatus,omitempty"`
+}
+
+// EducationSynchronizationProfileStatus undocumented
+type EducationSynchronizationProfileStatus struct {
+ // Entity is the base model of EducationSynchronizationProfileStatus
+ Entity
+ // Status undocumented
+ Status *EducationSynchronizationStatus `json:"status,omitempty"`
+ // LastSynchronizationDateTime undocumented
+ LastSynchronizationDateTime *time.Time `json:"lastSynchronizationDateTime,omitempty"`
+}
+
+// EducationTeacher undocumented
+type EducationTeacher struct {
+ // Object is the base model of EducationTeacher
+ Object
+ // TeacherNumber undocumented
+ TeacherNumber *string `json:"teacherNumber,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+}
+
+// EducationTerm undocumented
+type EducationTerm struct {
+ // Object is the base model of EducationTerm
+ Object
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // StartDate undocumented
+ StartDate *Date `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate *Date `json:"endDate,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// EducationUser undocumented
+type EducationUser struct {
+ // Entity is the base model of EducationUser
+ Entity
+ // RelatedContacts undocumented
+ RelatedContacts []RelatedContact `json:"relatedContacts,omitempty"`
+ // PrimaryRole undocumented
+ PrimaryRole *EducationUserRole `json:"primaryRole,omitempty"`
+ // MiddleName undocumented
+ MiddleName *string `json:"middleName,omitempty"`
+ // ExternalSource undocumented
+ ExternalSource *EducationExternalSource `json:"externalSource,omitempty"`
+ // ResidenceAddress undocumented
+ ResidenceAddress *PhysicalAddress `json:"residenceAddress,omitempty"`
+ // MailingAddress undocumented
+ MailingAddress *PhysicalAddress `json:"mailingAddress,omitempty"`
+ // Student undocumented
+ Student *EducationStudent `json:"student,omitempty"`
+ // Teacher undocumented
+ Teacher *EducationTeacher `json:"teacher,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // AccountEnabled undocumented
+ AccountEnabled *bool `json:"accountEnabled,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []AssignedLicense `json:"assignedLicenses,omitempty"`
+ // AssignedPlans undocumented
+ AssignedPlans []AssignedPlan `json:"assignedPlans,omitempty"`
+ // BusinessPhones undocumented
+ BusinessPhones []string `json:"businessPhones,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // Mail undocumented
+ Mail *string `json:"mail,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // MobilePhone undocumented
+ MobilePhone *string `json:"mobilePhone,omitempty"`
+ // PasswordPolicies undocumented
+ PasswordPolicies *string `json:"passwordPolicies,omitempty"`
+ // PasswordProfile undocumented
+ PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // PreferredLanguage undocumented
+ PreferredLanguage *string `json:"preferredLanguage,omitempty"`
+ // ProvisionedPlans undocumented
+ ProvisionedPlans []ProvisionedPlan `json:"provisionedPlans,omitempty"`
+ // RefreshTokensValidFromDateTime undocumented
+ RefreshTokensValidFromDateTime *time.Time `json:"refreshTokensValidFromDateTime,omitempty"`
+ // ShowInAddressList undocumented
+ ShowInAddressList *bool `json:"showInAddressList,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // UsageLocation undocumented
+ UsageLocation *string `json:"usageLocation,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserType undocumented
+ UserType *string `json:"userType,omitempty"`
+ // OnPremisesInfo undocumented
+ OnPremisesInfo *EducationOnPremisesInfo `json:"onPremisesInfo,omitempty"`
+ // Assignments undocumented
+ Assignments []EducationAssignment `json:"assignments,omitempty"`
+ // Rubrics undocumented
+ Rubrics []EducationRubric `json:"rubrics,omitempty"`
+ // Classes undocumented
+ Classes []EducationClass `json:"classes,omitempty"`
+ // TaughtClasses undocumented
+ TaughtClasses []EducationClass `json:"taughtClasses,omitempty"`
+ // Schools undocumented
+ Schools []EducationSchool `json:"schools,omitempty"`
+ // User undocumented
+ User *User `json:"user,omitempty"`
+}
+
+// EducationWordResource undocumented
+type EducationWordResource struct {
+ // EducationResource is the base model of EducationWordResource
+ EducationResource
+ // FileURL undocumented
+ FileURL *string `json:"fileUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducational.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducational.go
new file mode 100644
index 00000000..3d06bd9f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEducational.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EducationalActivity undocumented
+type EducationalActivity struct {
+ // ItemFacet is the base model of EducationalActivity
+ ItemFacet
+ // CompletionMonthYear undocumented
+ CompletionMonthYear *Date `json:"completionMonthYear,omitempty"`
+ // EndMonthYear undocumented
+ EndMonthYear *Date `json:"endMonthYear,omitempty"`
+ // Institution undocumented
+ Institution *InstitutionData `json:"institution,omitempty"`
+ // Program undocumented
+ Program *EducationalActivityDetail `json:"program,omitempty"`
+ // StartMonthYear undocumented
+ StartMonthYear *Date `json:"startMonthYear,omitempty"`
+}
+
+// EducationalActivityDetail undocumented
+type EducationalActivityDetail struct {
+ // Object is the base model of EducationalActivityDetail
+ Object
+ // Abbreviation undocumented
+ Abbreviation *string `json:"abbreviation,omitempty"`
+ // Activities undocumented
+ Activities *string `json:"activities,omitempty"`
+ // Awards undocumented
+ Awards *string `json:"awards,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // FieldsOfStudy undocumented
+ FieldsOfStudy *string `json:"fieldsOfStudy,omitempty"`
+ // Grade undocumented
+ Grade *string `json:"grade,omitempty"`
+ // Notes undocumented
+ Notes *string `json:"notes,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmail.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmail.go
new file mode 100644
index 00000000..e577b945
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmail.go
@@ -0,0 +1,199 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EmailActivityStatistics undocumented
+type EmailActivityStatistics struct {
+ // ActivityStatistics is the base model of EmailActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *Duration `json:"afterHours,omitempty"`
+ // ReadEmail undocumented
+ ReadEmail *Duration `json:"readEmail,omitempty"`
+ // SentEmail undocumented
+ SentEmail *Duration `json:"sentEmail,omitempty"`
+}
+
+// EmailActivitySummary undocumented
+type EmailActivitySummary struct {
+ // Entity is the base model of EmailActivitySummary
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Send undocumented
+ Send *int `json:"send,omitempty"`
+ // Receive undocumented
+ Receive *int `json:"receive,omitempty"`
+ // Read undocumented
+ Read *int `json:"read,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// EmailActivityUserDetail undocumented
+type EmailActivityUserDetail struct {
+ // Entity is the base model of EmailActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *Date `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // SendCount undocumented
+ SendCount *int `json:"sendCount,omitempty"`
+ // ReceiveCount undocumented
+ ReceiveCount *int `json:"receiveCount,omitempty"`
+ // ReadCount undocumented
+ ReadCount *int `json:"readCount,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// EmailAddress undocumented
+type EmailAddress struct {
+ // Object is the base model of EmailAddress
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+}
+
+// EmailAppUsageAppsUserCounts undocumented
+type EmailAppUsageAppsUserCounts struct {
+ // Entity is the base model of EmailAppUsageAppsUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // MailForMac undocumented
+ MailForMac *int `json:"mailForMac,omitempty"`
+ // OutlookForMac undocumented
+ OutlookForMac *int `json:"outlookForMac,omitempty"`
+ // OutlookForWindows undocumented
+ OutlookForWindows *int `json:"outlookForWindows,omitempty"`
+ // OutlookForMobile undocumented
+ OutlookForMobile *int `json:"outlookForMobile,omitempty"`
+ // OtherForMobile undocumented
+ OtherForMobile *int `json:"otherForMobile,omitempty"`
+ // OutlookForWeb undocumented
+ OutlookForWeb *int `json:"outlookForWeb,omitempty"`
+ // Pop3App undocumented
+ Pop3App *int `json:"pop3App,omitempty"`
+ // Imap4App undocumented
+ Imap4App *int `json:"imap4App,omitempty"`
+ // SMTPApp undocumented
+ SMTPApp *int `json:"smtpApp,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// EmailAppUsageUserCounts undocumented
+type EmailAppUsageUserCounts struct {
+ // Entity is the base model of EmailAppUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // MailForMac undocumented
+ MailForMac *int `json:"mailForMac,omitempty"`
+ // OutlookForMac undocumented
+ OutlookForMac *int `json:"outlookForMac,omitempty"`
+ // OutlookForWindows undocumented
+ OutlookForWindows *int `json:"outlookForWindows,omitempty"`
+ // OutlookForMobile undocumented
+ OutlookForMobile *int `json:"outlookForMobile,omitempty"`
+ // OtherForMobile undocumented
+ OtherForMobile *int `json:"otherForMobile,omitempty"`
+ // OutlookForWeb undocumented
+ OutlookForWeb *int `json:"outlookForWeb,omitempty"`
+ // Pop3App undocumented
+ Pop3App *int `json:"pop3App,omitempty"`
+ // Imap4App undocumented
+ Imap4App *int `json:"imap4App,omitempty"`
+ // SMTPApp undocumented
+ SMTPApp *int `json:"smtpApp,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// EmailAppUsageUserDetail undocumented
+type EmailAppUsageUserDetail struct {
+ // Entity is the base model of EmailAppUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *Date `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // MailForMac undocumented
+ MailForMac []string `json:"mailForMac,omitempty"`
+ // OutlookForMac undocumented
+ OutlookForMac []string `json:"outlookForMac,omitempty"`
+ // OutlookForWindows undocumented
+ OutlookForWindows []string `json:"outlookForWindows,omitempty"`
+ // OutlookForMobile undocumented
+ OutlookForMobile []string `json:"outlookForMobile,omitempty"`
+ // OtherForMobile undocumented
+ OtherForMobile []string `json:"otherForMobile,omitempty"`
+ // OutlookForWeb undocumented
+ OutlookForWeb []string `json:"outlookForWeb,omitempty"`
+ // Pop3App undocumented
+ Pop3App []string `json:"pop3App,omitempty"`
+ // Imap4App undocumented
+ Imap4App []string `json:"imap4App,omitempty"`
+ // SMTPApp undocumented
+ SMTPApp []string `json:"smtpApp,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// EmailAppUsageVersionsUserCounts undocumented
+type EmailAppUsageVersionsUserCounts struct {
+ // Entity is the base model of EmailAppUsageVersionsUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Outlook2016 undocumented
+ Outlook2016 *int `json:"outlook2016,omitempty"`
+ // Outlook2013 undocumented
+ Outlook2013 *int `json:"outlook2013,omitempty"`
+ // Outlook2010 undocumented
+ Outlook2010 *int `json:"outlook2010,omitempty"`
+ // Outlook2007 undocumented
+ Outlook2007 *int `json:"outlook2007,omitempty"`
+ // Undetermined undocumented
+ Undetermined *int `json:"undetermined,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// EmailFileAssessmentRequestObject undocumented
+type EmailFileAssessmentRequestObject struct {
+ // ThreatAssessmentRequestObject is the base model of EmailFileAssessmentRequestObject
+ ThreatAssessmentRequestObject
+ // RecipientEmail undocumented
+ RecipientEmail *string `json:"recipientEmail,omitempty"`
+ // DestinationRoutingReason undocumented
+ DestinationRoutingReason *MailDestinationRoutingReason `json:"destinationRoutingReason,omitempty"`
+ // ContentData undocumented
+ ContentData *string `json:"contentData,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmbedded.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmbedded.go
new file mode 100644
index 00000000..8eff9613
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmbedded.go
@@ -0,0 +1,67 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EmbeddedSIMActivationCode undocumented
+type EmbeddedSIMActivationCode struct {
+ // Object is the base model of EmbeddedSIMActivationCode
+ Object
+ // IntegratedCircuitCardIdentifier The Integrated Circuit Card Identifier (ICCID) for this embedded SIM activation code as provided by the mobile operator.
+ IntegratedCircuitCardIdentifier *string `json:"integratedCircuitCardIdentifier,omitempty"`
+ // MatchingIdentifier The MatchingIdentifier (MatchingID) as specified in the GSMA Association SGP.22 RSP Technical Specification section 4.1.
+ MatchingIdentifier *string `json:"matchingIdentifier,omitempty"`
+ // SmdpPlusServerAddress The fully qualified domain name of the SM-DP+ server as specified in the GSM Association SPG .22 RSP Technical Specification.
+ SmdpPlusServerAddress *string `json:"smdpPlusServerAddress,omitempty"`
+}
+
+// EmbeddedSIMActivationCodePool A pool represents a group of embedded SIM activation codes.
+type EmbeddedSIMActivationCodePool struct {
+ // Entity is the base model of EmbeddedSIMActivationCodePool
+ Entity
+ // DisplayName The admin defined name of the embedded SIM activation code pool.
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedDateTime The time the embedded SIM activation code pool was created. Generated service side.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime The time the embedded SIM activation code pool was last modified. Updated service side.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // ActivationCodes The activation codes which belong to this pool. This navigation property is used to post activation codes to Intune but cannot be used to read activation codes from Intune.
+ ActivationCodes []EmbeddedSIMActivationCode `json:"activationCodes,omitempty"`
+ // ActivationCodeCount The total count of activation codes which belong to this pool.
+ ActivationCodeCount *int `json:"activationCodeCount,omitempty"`
+ // Assignments undocumented
+ Assignments []EmbeddedSIMActivationCodePoolAssignment `json:"assignments,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []EmbeddedSIMDeviceState `json:"deviceStates,omitempty"`
+}
+
+// EmbeddedSIMActivationCodePoolAssignment The embedded SIM activation code pool assignment entity assigns a specific embeddedSIMActivationCodePool to an AAD device group.
+type EmbeddedSIMActivationCodePoolAssignment struct {
+ // Entity is the base model of EmbeddedSIMActivationCodePoolAssignment
+ Entity
+ // Target The type of groups targeted by the embedded SIM activation code pool.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// EmbeddedSIMDeviceState Describes the embedded SIM activation code deployment state in relation to a device.
+type EmbeddedSIMDeviceState struct {
+ // Entity is the base model of EmbeddedSIMDeviceState
+ Entity
+ // CreatedDateTime The time the embedded SIM device status was created. Generated service side.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime The time the embedded SIM device status was last modified. Updated service side.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // LastSyncDateTime The time the embedded SIM device last checked in. Updated service side.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // UniversalIntegratedCircuitCardIdentifier The Universal Integrated Circuit Card Identifier (UICCID) identifying the hardware onto which a profile is to be deployed.
+ UniversalIntegratedCircuitCardIdentifier *string `json:"universalIntegratedCircuitCardIdentifier,omitempty"`
+ // DeviceName Device name to which the subscription was provisioned e.g. DESKTOP-JOE
+ DeviceName *string `json:"deviceName,omitempty"`
+ // UserName Username which the subscription was provisioned to e.g. joe@contoso.com
+ UserName *string `json:"userName,omitempty"`
+ // State The state of the profile operation applied to the device.
+ State *EmbeddedSIMDeviceStateValue `json:"state,omitempty"`
+ // StateDetails String description of the provisioning state.
+ StateDetails *string `json:"stateDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmployee.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmployee.go
new file mode 100644
index 00000000..fe3d7924
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEmployee.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Employee undocumented
+type Employee struct {
+ // Entity is the base model of Employee
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // MiddleName undocumented
+ MiddleName *string `json:"middleName,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // Address undocumented
+ Address *PostalAddressType `json:"address,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // MobilePhone undocumented
+ MobilePhone *string `json:"mobilePhone,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // PersonalEmail undocumented
+ PersonalEmail *string `json:"personalEmail,omitempty"`
+ // EmploymentDate undocumented
+ EmploymentDate *Date `json:"employmentDate,omitempty"`
+ // TerminationDate undocumented
+ TerminationDate *Date `json:"terminationDate,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // BirthDate undocumented
+ BirthDate *Date `json:"birthDate,omitempty"`
+ // StatisticsGroupCode undocumented
+ StatisticsGroupCode *string `json:"statisticsGroupCode,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncrypt.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncrypt.go
new file mode 100644
index 00000000..95f50751
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncrypt.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptContent undocumented
+type EncryptContent struct {
+ // LabelActionBase is the base model of EncryptContent
+ LabelActionBase
+ // EncryptWith undocumented
+ EncryptWith *EncryptWith `json:"encryptWith,omitempty"`
+}
+
+// EncryptWithTemplate undocumented
+type EncryptWithTemplate struct {
+ // EncryptContent is the base model of EncryptWithTemplate
+ EncryptContent
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // AvailableForEncryption undocumented
+ AvailableForEncryption *bool `json:"availableForEncryption,omitempty"`
+}
+
+// EncryptWithUserDefinedRights undocumented
+type EncryptWithUserDefinedRights struct {
+ // EncryptContent is the base model of EncryptWithUserDefinedRights
+ EncryptContent
+ // DecryptionRightsManagementTemplateID undocumented
+ DecryptionRightsManagementTemplateID *string `json:"decryptionRightsManagementTemplateId,omitempty"`
+ // AllowMailForwarding undocumented
+ AllowMailForwarding *bool `json:"allowMailForwarding,omitempty"`
+ // AllowAdHocPermissions undocumented
+ AllowAdHocPermissions *bool `json:"allowAdHocPermissions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncryption.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncryption.go
new file mode 100644
index 00000000..64c7282a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEncryption.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EncryptionReportPolicyDetails undocumented
+type EncryptionReportPolicyDetails struct {
+ // Object is the base model of EncryptionReportPolicyDetails
+ Object
+ // PolicyID Policy Id for Encryption Report
+ PolicyID *string `json:"policyId,omitempty"`
+ // PolicyName Policy Name for Encryption Report
+ PolicyName *string `json:"policyName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEndpoint.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEndpoint.go
new file mode 100644
index 00000000..91b91c20
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEndpoint.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Endpoint undocumented
+type Endpoint struct {
+ // DirectoryObject is the base model of Endpoint
+ DirectoryObject
+ // Capability undocumented
+ Capability *string `json:"capability,omitempty"`
+ // ProviderID undocumented
+ ProviderID *string `json:"providerId,omitempty"`
+ // ProviderName undocumented
+ ProviderName *string `json:"providerName,omitempty"`
+ // URI undocumented
+ URI *string `json:"uri,omitempty"`
+ // ProviderResourceID undocumented
+ ProviderResourceID *string `json:"providerResourceId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnrollment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnrollment.go
new file mode 100644
index 00000000..af7008bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnrollment.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EnrollmentConfigurationAssignment Enrollment Configuration Assignment
+type EnrollmentConfigurationAssignment struct {
+ // Entity is the base model of EnrollmentConfigurationAssignment
+ Entity
+ // Target Represents an assignment to managed devices in the tenant
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source Type of resource used for deployment to a group, direct or policySet
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID Identifier for resource used for deployment to a group
+ SourceID *string `json:"sourceId,omitempty"`
+}
+
+// EnrollmentProfile The enrollmentProfile resource represents a collection of configurations which must be provided pre-enrollment to enable enrolling certain devices whose identities have been pre-staged. Pre-staged device identities are assigned to this type of profile to apply the profile's configurations at enrollment of the corresponding device.
+type EnrollmentProfile struct {
+ // Entity is the base model of EnrollmentProfile
+ Entity
+ // DisplayName Name of the profile
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the profile
+ Description *string `json:"description,omitempty"`
+ // RequiresUserAuthentication Indicates if the profile requires user authentication
+ RequiresUserAuthentication *bool `json:"requiresUserAuthentication,omitempty"`
+ // ConfigurationEndpointURL Configuration endpoint url to use for Enrollment
+ ConfigurationEndpointURL *string `json:"configurationEndpointUrl,omitempty"`
+ // EnableAuthenticationViaCompanyPortal Indicates to authenticate with Apple Setup Assistant instead of Company Portal.
+ EnableAuthenticationViaCompanyPortal *bool `json:"enableAuthenticationViaCompanyPortal,omitempty"`
+ // RequireCompanyPortalOnSetupAssistantEnrolledDevices Indicates that Company Portal is required on setup assistant enrolled devices
+ RequireCompanyPortalOnSetupAssistantEnrolledDevices *bool `json:"requireCompanyPortalOnSetupAssistantEnrolledDevices,omitempty"`
+}
+
+// EnrollmentRestrictionsConfigurationPolicySetItem A class containing the properties used for enrollment restriction PolicySetItem.
+type EnrollmentRestrictionsConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of EnrollmentRestrictionsConfigurationPolicySetItem
+ PolicySetItem
+ // Priority Priority of the EnrollmentRestrictionsConfigurationPolicySetItem.
+ Priority *int `json:"priority,omitempty"`
+ // Limit Limit of the EnrollmentRestrictionsConfigurationPolicySetItem.
+ Limit *int `json:"limit,omitempty"`
+}
+
+// EnrollmentTroubleshootingEvent Event representing an enrollment failure.
+type EnrollmentTroubleshootingEvent struct {
+ // DeviceManagementTroubleshootingEvent is the base model of EnrollmentTroubleshootingEvent
+ DeviceManagementTroubleshootingEvent
+ // ManagedDeviceIdentifier Device identifier created or collected by Intune.
+ ManagedDeviceIdentifier *string `json:"managedDeviceIdentifier,omitempty"`
+ // OperatingSystem Operating System.
+ OperatingSystem *string `json:"operatingSystem,omitempty"`
+ // OsVersion OS Version.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // UserID Identifier for the user that tried to enroll the device.
+ UserID *string `json:"userId,omitempty"`
+ // DeviceID Azure AD device identifier.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // EnrollmentType Type of the enrollment.
+ EnrollmentType *DeviceEnrollmentType `json:"enrollmentType,omitempty"`
+ // FailureCategory Highlevel failure category.
+ FailureCategory *DeviceEnrollmentFailureReason `json:"failureCategory,omitempty"`
+ // FailureReason Detailed failure reason.
+ FailureReason *string `json:"failureReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnterprise.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnterprise.go
new file mode 100644
index 00000000..e4c7f6a6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEnterprise.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// EnterpriseCodeSigningCertificate undocumented
+type EnterpriseCodeSigningCertificate struct {
+ // Entity is the base model of EnterpriseCodeSigningCertificate
+ Entity
+ // Content The Windows Enterprise Code-Signing Certificate in the raw data format.
+ Content *Binary `json:"content,omitempty"`
+ // Status The Certificate Status Provisioned or not Provisioned.
+ Status *CertificateStatus `json:"status,omitempty"`
+ // SubjectName The Subject Name for the cert.
+ SubjectName *string `json:"subjectName,omitempty"`
+ // Subject The Subject Value for the cert.
+ Subject *string `json:"subject,omitempty"`
+ // IssuerName The Issuer Name for the cert.
+ IssuerName *string `json:"issuerName,omitempty"`
+ // Issuer The Issuer value for the cert.
+ Issuer *string `json:"issuer,omitempty"`
+ // ExpirationDateTime The Cert Expiration Date.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // UploadDateTime The date time of CodeSigning Cert when it is uploaded.
+ UploadDateTime *time.Time `json:"uploadDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntitlement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntitlement.go
new file mode 100644
index 00000000..066ca91d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntitlement.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EntitlementManagement undocumented
+type EntitlementManagement struct {
+ // Entity is the base model of EntitlementManagement
+ Entity
+ // AccessPackageCatalogs undocumented
+ AccessPackageCatalogs []AccessPackageCatalog `json:"accessPackageCatalogs,omitempty"`
+ // AccessPackageResources undocumented
+ AccessPackageResources []AccessPackageResource `json:"accessPackageResources,omitempty"`
+ // AccessPackageResourceRequests undocumented
+ AccessPackageResourceRequests []AccessPackageResourceRequestObject `json:"accessPackageResourceRequests,omitempty"`
+ // AccessPackageResourceRoleScopes undocumented
+ AccessPackageResourceRoleScopes []AccessPackageResourceRoleScope `json:"accessPackageResourceRoleScopes,omitempty"`
+ // AccessPackages undocumented
+ AccessPackages []AccessPackage `json:"accessPackages,omitempty"`
+ // AccessPackageAssignmentPolicies undocumented
+ AccessPackageAssignmentPolicies []AccessPackageAssignmentPolicy `json:"accessPackageAssignmentPolicies,omitempty"`
+ // AccessPackageAssignments undocumented
+ AccessPackageAssignments []AccessPackageAssignment `json:"accessPackageAssignments,omitempty"`
+ // AccessPackageAssignmentRequests undocumented
+ AccessPackageAssignmentRequests []AccessPackageAssignmentRequestObject `json:"accessPackageAssignmentRequests,omitempty"`
+ // AccessPackageAssignmentResourceRoles undocumented
+ AccessPackageAssignmentResourceRoles []AccessPackageAssignmentResourceRole `json:"accessPackageAssignmentResourceRoles,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntity.go
new file mode 100644
index 00000000..97d76f19
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEntity.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Entity undocumented
+type Entity struct {
+ // Object is the base model of Entity
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+}
+
+// EntitySetNames undocumented
+type EntitySetNames struct {
+ // Object is the base model of EntitySetNames
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelError.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelError.go
new file mode 100644
index 00000000..bcf9968e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelError.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ErrorDetail undocumented
+type ErrorDetail struct {
+ // Object is the base model of ErrorDetail
+ Object
+ // ErrorCode undocumented
+ ErrorCode *string `json:"errorCode,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Details undocumented
+ Details []InnerErrorDetail `json:"details,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvaluate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvaluate.go
new file mode 100644
index 00000000..70cfbac6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvaluate.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// EvaluateDynamicMembershipResult undocumented
+type EvaluateDynamicMembershipResult struct {
+ // Object is the base model of EvaluateDynamicMembershipResult
+ Object
+ // MembershipRule undocumented
+ MembershipRule *string `json:"membershipRule,omitempty"`
+ // MembershipRuleEvaluationResult undocumented
+ MembershipRuleEvaluationResult *bool `json:"membershipRuleEvaluationResult,omitempty"`
+ // MembershipRuleEvaluationDetails undocumented
+ MembershipRuleEvaluationDetails *ExpressionEvaluationDetails `json:"membershipRuleEvaluationDetails,omitempty"`
+}
+
+// EvaluateLabelJobResponse undocumented
+type EvaluateLabelJobResponse struct {
+ // JobResponseBase is the base model of EvaluateLabelJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *EvaluateLabelJobResultGroup `json:"result,omitempty"`
+}
+
+// EvaluateLabelJobResult undocumented
+type EvaluateLabelJobResult struct {
+ // Object is the base model of EvaluateLabelJobResult
+ Object
+ // SensitivityLabel undocumented
+ SensitivityLabel *MatchingLabel `json:"sensitivityLabel,omitempty"`
+ // ResponsibleSensitiveTypes undocumented
+ ResponsibleSensitiveTypes []ResponsibleSensitiveType `json:"responsibleSensitiveTypes,omitempty"`
+ // ResponsiblePolicy undocumented
+ ResponsiblePolicy *ResponsiblePolicy `json:"responsiblePolicy,omitempty"`
+}
+
+// EvaluateLabelJobResultGroup undocumented
+type EvaluateLabelJobResultGroup struct {
+ // Object is the base model of EvaluateLabelJobResultGroup
+ Object
+ // Automatic undocumented
+ Automatic *EvaluateLabelJobResult `json:"automatic,omitempty"`
+ // Recommended undocumented
+ Recommended *EvaluateLabelJobResult `json:"recommended,omitempty"`
+}
+
+// EvaluateLabelsAndPoliciesJobResponse undocumented
+type EvaluateLabelsAndPoliciesJobResponse struct {
+ // JobResponseBase is the base model of EvaluateLabelsAndPoliciesJobResponse
+ JobResponseBase
+ // Result undocumented
+ Result *EvaluateLabelsAndPoliciesResult `json:"result,omitempty"`
+}
+
+// EvaluateLabelsAndPoliciesResult undocumented
+type EvaluateLabelsAndPoliciesResult struct {
+ // Object is the base model of EvaluateLabelsAndPoliciesResult
+ Object
+ // SensitivityLabelsResult undocumented
+ SensitivityLabelsResult *EvaluateLabelJobResultGroup `json:"sensitivityLabelsResult,omitempty"`
+ // DataLossPreventionPoliciesResult undocumented
+ DataLossPreventionPoliciesResult *DlpPoliciesJobResult `json:"dataLossPreventionPoliciesResult,omitempty"`
+ // ClassificationResult undocumented
+ ClassificationResult *DetectedSensitiveContentWrapper `json:"classificationResult,omitempty"`
+}
+
+// EvaluateSensitivityLabelsRequestObject undocumented
+type EvaluateSensitivityLabelsRequestObject struct {
+ // Object is the base model of EvaluateSensitivityLabelsRequestObject
+ Object
+ // DiscoveredSensitiveTypes undocumented
+ DiscoveredSensitiveTypes []DiscoveredSensitiveType `json:"discoveredSensitiveTypes,omitempty"`
+ // CurrentLabel undocumented
+ CurrentLabel *CurrentLabel `json:"currentLabel,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvent.go
new file mode 100644
index 00000000..2077f580
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelEvent.go
@@ -0,0 +1,141 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Event undocumented
+type Event struct {
+ // OutlookItem is the base model of Event
+ OutlookItem
+ // OriginalStartTimeZone undocumented
+ OriginalStartTimeZone *string `json:"originalStartTimeZone,omitempty"`
+ // OriginalEndTimeZone undocumented
+ OriginalEndTimeZone *string `json:"originalEndTimeZone,omitempty"`
+ // ResponseStatus undocumented
+ ResponseStatus *ResponseStatus `json:"responseStatus,omitempty"`
+ // UID undocumented
+ UID *string `json:"uid,omitempty"`
+ // ReminderMinutesBeforeStart undocumented
+ ReminderMinutesBeforeStart *int `json:"reminderMinutesBeforeStart,omitempty"`
+ // IsReminderOn undocumented
+ IsReminderOn *bool `json:"isReminderOn,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // BodyPreview undocumented
+ BodyPreview *string `json:"bodyPreview,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *Sensitivity `json:"sensitivity,omitempty"`
+ // Start undocumented
+ Start *DateTimeTimeZone `json:"start,omitempty"`
+ // OriginalStart undocumented
+ OriginalStart *time.Time `json:"originalStart,omitempty"`
+ // End undocumented
+ End *DateTimeTimeZone `json:"end,omitempty"`
+ // Location undocumented
+ Location *Location `json:"location,omitempty"`
+ // Locations undocumented
+ Locations []Location `json:"locations,omitempty"`
+ // IsAllDay undocumented
+ IsAllDay *bool `json:"isAllDay,omitempty"`
+ // IsCancelled undocumented
+ IsCancelled *bool `json:"isCancelled,omitempty"`
+ // IsOrganizer undocumented
+ IsOrganizer *bool `json:"isOrganizer,omitempty"`
+ // Recurrence undocumented
+ Recurrence *PatternedRecurrence `json:"recurrence,omitempty"`
+ // ResponseRequested undocumented
+ ResponseRequested *bool `json:"responseRequested,omitempty"`
+ // SeriesMasterID undocumented
+ SeriesMasterID *string `json:"seriesMasterId,omitempty"`
+ // ShowAs undocumented
+ ShowAs *FreeBusyStatus `json:"showAs,omitempty"`
+ // Type undocumented
+ Type *EventType `json:"type,omitempty"`
+ // Attendees undocumented
+ Attendees []Attendee `json:"attendees,omitempty"`
+ // Organizer undocumented
+ Organizer *Recipient `json:"organizer,omitempty"`
+ // WebLink undocumented
+ WebLink *string `json:"webLink,omitempty"`
+ // OnlineMeetingURL undocumented
+ OnlineMeetingURL *string `json:"onlineMeetingUrl,omitempty"`
+ // IsOnlineMeeting undocumented
+ IsOnlineMeeting *bool `json:"isOnlineMeeting,omitempty"`
+ // OnlineMeetingProvider undocumented
+ OnlineMeetingProvider *OnlineMeetingProviderType `json:"onlineMeetingProvider,omitempty"`
+ // OnlineMeeting undocumented
+ OnlineMeeting *OnlineMeetingInfo `json:"onlineMeeting,omitempty"`
+ // AllowNewTimeProposals undocumented
+ AllowNewTimeProposals *bool `json:"allowNewTimeProposals,omitempty"`
+ // Attachments undocumented
+ Attachments []Attachment `json:"attachments,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Calendar undocumented
+ Calendar *Calendar `json:"calendar,omitempty"`
+ // Instances undocumented
+ Instances []Event `json:"instances,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+}
+
+// EventMessage undocumented
+type EventMessage struct {
+ // Message is the base model of EventMessage
+ Message
+ // MeetingMessageType undocumented
+ MeetingMessageType *MeetingMessageType `json:"meetingMessageType,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *DateTimeTimeZone `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *DateTimeTimeZone `json:"endDateTime,omitempty"`
+ // Location undocumented
+ Location *Location `json:"location,omitempty"`
+ // Type undocumented
+ Type *EventType `json:"type,omitempty"`
+ // Recurrence undocumented
+ Recurrence *PatternedRecurrence `json:"recurrence,omitempty"`
+ // IsOutOfDate undocumented
+ IsOutOfDate *bool `json:"isOutOfDate,omitempty"`
+ // IsAllDay undocumented
+ IsAllDay *bool `json:"isAllDay,omitempty"`
+ // IsDelegated undocumented
+ IsDelegated *bool `json:"isDelegated,omitempty"`
+ // Event undocumented
+ Event *Event `json:"event,omitempty"`
+}
+
+// EventMessageRequestObject undocumented
+type EventMessageRequestObject struct {
+ // EventMessage is the base model of EventMessageRequestObject
+ EventMessage
+ // PreviousLocation undocumented
+ PreviousLocation *Location `json:"previousLocation,omitempty"`
+ // PreviousStartDateTime undocumented
+ PreviousStartDateTime *DateTimeTimeZone `json:"previousStartDateTime,omitempty"`
+ // PreviousEndDateTime undocumented
+ PreviousEndDateTime *DateTimeTimeZone `json:"previousEndDateTime,omitempty"`
+ // ResponseRequested undocumented
+ ResponseRequested *bool `json:"responseRequested,omitempty"`
+ // AllowNewTimeProposals undocumented
+ AllowNewTimeProposals *bool `json:"allowNewTimeProposals,omitempty"`
+}
+
+// EventMessageResponse undocumented
+type EventMessageResponse struct {
+ // EventMessage is the base model of EventMessageResponse
+ EventMessage
+ // ProposedNewTime undocumented
+ ProposedNewTime *TimeSlot `json:"proposedNewTime,omitempty"`
+ // ResponseType undocumented
+ ResponseType *ResponseType `json:"responseType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExact.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExact.go
new file mode 100644
index 00000000..fc353ceb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExact.go
@@ -0,0 +1,115 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ExactMatchClassificationRequestObject undocumented
+type ExactMatchClassificationRequestObject struct {
+ // Object is the base model of ExactMatchClassificationRequestObject
+ Object
+ // SensitiveTypeIDs undocumented
+ SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // TimeoutInMs undocumented
+ TimeoutInMs *int `json:"timeoutInMs,omitempty"`
+ // ContentClassifications undocumented
+ ContentClassifications []ContentClassification `json:"contentClassifications,omitempty"`
+}
+
+// ExactMatchClassificationResult undocumented
+type ExactMatchClassificationResult struct {
+ // Object is the base model of ExactMatchClassificationResult
+ Object
+ // Classification undocumented
+ Classification []DetectedSensitiveContent `json:"classification,omitempty"`
+ // Errors undocumented
+ Errors []ClassificationError `json:"errors,omitempty"`
+}
+
+// ExactMatchDataStore undocumented
+type ExactMatchDataStore struct {
+ // Entity is the base model of ExactMatchDataStore
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DataLastUpdatedDateTime undocumented
+ DataLastUpdatedDateTime *time.Time `json:"dataLastUpdatedDateTime,omitempty"`
+ // Sessions undocumented
+ Sessions []ExactMatchSession `json:"sessions,omitempty"`
+}
+
+// ExactMatchJobBase undocumented
+type ExactMatchJobBase struct {
+ // Entity is the base model of ExactMatchJobBase
+ Entity
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // CompletionDateTime undocumented
+ CompletionDateTime *time.Time `json:"completionDateTime,omitempty"`
+ // Error undocumented
+ Error *ClassificationError `json:"error,omitempty"`
+}
+
+// ExactMatchLookupJob undocumented
+type ExactMatchLookupJob struct {
+ // ExactMatchJobBase is the base model of ExactMatchLookupJob
+ ExactMatchJobBase
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // MatchingRows undocumented
+ MatchingRows []LookupResultRow `json:"matchingRows,omitempty"`
+}
+
+// ExactMatchSession undocumented
+type ExactMatchSession struct {
+ // ExactMatchJobBase is the base model of ExactMatchSession
+ ExactMatchJobBase
+ // DatastoreID undocumented
+ DatastoreID *string `json:"datastoreId,omitempty"`
+ // UploadAgentID undocumented
+ UploadAgentID *string `json:"uploadAgentId,omitempty"`
+ // Fields undocumented
+ Fields []string `json:"fields,omitempty"`
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // Checksum undocumented
+ Checksum *string `json:"checksum,omitempty"`
+ // DataUploadURI undocumented
+ DataUploadURI *string `json:"dataUploadURI,omitempty"`
+ // RemainingBlockCount undocumented
+ RemainingBlockCount *int `json:"remainingBlockCount,omitempty"`
+ // TotalBlockCount undocumented
+ TotalBlockCount *int `json:"totalBlockCount,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // UploadCompletionDateTime undocumented
+ UploadCompletionDateTime *time.Time `json:"uploadCompletionDateTime,omitempty"`
+ // ProcessingCompletionDateTime undocumented
+ ProcessingCompletionDateTime *time.Time `json:"processingCompletionDateTime,omitempty"`
+ // RowsPerBlock undocumented
+ RowsPerBlock *int `json:"rowsPerBlock,omitempty"`
+ // TotalJobCount undocumented
+ TotalJobCount *int `json:"totalJobCount,omitempty"`
+ // RemainingJobCount undocumented
+ RemainingJobCount *int `json:"remainingJobCount,omitempty"`
+ // UploadAgent undocumented
+ UploadAgent *ExactMatchUploadAgent `json:"uploadAgent,omitempty"`
+}
+
+// ExactMatchUploadAgent undocumented
+type ExactMatchUploadAgent struct {
+ // Entity is the base model of ExactMatchUploadAgent
+ Entity
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExcluded.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExcluded.go
new file mode 100644
index 00000000..2d4158b4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExcluded.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExcludedApps undocumented
+type ExcludedApps struct {
+ // Object is the base model of ExcludedApps
+ Object
+ // Access The value for if MS Office Access should be excluded or not.
+ Access *bool `json:"access,omitempty"`
+ // Excel The value for if MS Office Excel should be excluded or not.
+ Excel *bool `json:"excel,omitempty"`
+ // Groove The value for if MS Office OneDrive for Business - Groove should be excluded or not.
+ Groove *bool `json:"groove,omitempty"`
+ // InfoPath The value for if MS Office InfoPath should be excluded or not.
+ InfoPath *bool `json:"infoPath,omitempty"`
+ // Lync The value for if MS Office Skype for Business - Lync should be excluded or not.
+ Lync *bool `json:"lync,omitempty"`
+ // OneDrive The value for if MS Office OneDrive should be excluded or not.
+ OneDrive *bool `json:"oneDrive,omitempty"`
+ // OneNote The value for if MS Office OneNote should be excluded or not.
+ OneNote *bool `json:"oneNote,omitempty"`
+ // Outlook The value for if MS Office Outlook should be excluded or not.
+ Outlook *bool `json:"outlook,omitempty"`
+ // PowerPoint The value for if MS Office PowerPoint should be excluded or not.
+ PowerPoint *bool `json:"powerPoint,omitempty"`
+ // Publisher The value for if MS Office Publisher should be excluded or not.
+ Publisher *bool `json:"publisher,omitempty"`
+ // SharePointDesigner The value for if MS Office SharePointDesigner should be excluded or not.
+ SharePointDesigner *bool `json:"sharePointDesigner,omitempty"`
+ // Teams The value for if MS Office Teams should be excluded or not.
+ Teams *bool `json:"teams,omitempty"`
+ // Visio The value for if MS Office Visio should be excluded or not.
+ Visio *bool `json:"visio,omitempty"`
+ // Word The value for if MS Office Word should be excluded or not.
+ Word *bool `json:"word,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExclusion.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExclusion.go
new file mode 100644
index 00000000..4df756fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExclusion.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExclusionGroupAssignmentTarget undocumented
+type ExclusionGroupAssignmentTarget struct {
+ // GroupAssignmentTarget is the base model of ExclusionGroupAssignmentTarget
+ GroupAssignmentTarget
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExpression.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExpression.go
new file mode 100644
index 00000000..c5582be5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExpression.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExpressionEvaluationDetails undocumented
+type ExpressionEvaluationDetails struct {
+ // Object is the base model of ExpressionEvaluationDetails
+ Object
+ // ExpressionResult undocumented
+ ExpressionResult *bool `json:"expressionResult,omitempty"`
+ // Expression undocumented
+ Expression *string `json:"expression,omitempty"`
+ // ExpressionEvaluationDetails undocumented
+ ExpressionEvaluationDetails []ExpressionEvaluationDetails `json:"expressionEvaluationDetails,omitempty"`
+ // PropertyToEvaluate undocumented
+ PropertyToEvaluate *PropertyToEvaluate `json:"propertyToEvaluate,omitempty"`
+}
+
+// ExpressionInputObject undocumented
+type ExpressionInputObject struct {
+ // Object is the base model of ExpressionInputObject
+ Object
+ // Definition undocumented
+ Definition *ObjectDefinition `json:"definition,omitempty"`
+ // Properties undocumented
+ Properties []StringKeyObjectValuePair `json:"properties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtended.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtended.go
new file mode 100644
index 00000000..390f5497
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtended.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ExtendedKeyUsage undocumented
+type ExtendedKeyUsage struct {
+ // Object is the base model of ExtendedKeyUsage
+ Object
+ // Name Extended Key Usage Name
+ Name *string `json:"name,omitempty"`
+ // ObjectIdentifier Extended Key Usage Object Identifier
+ ObjectIdentifier *string `json:"objectIdentifier,omitempty"`
+}
+
+// ExtendedPlacePropertiesModel undocumented
+type ExtendedPlacePropertiesModel struct {
+ // Object is the base model of ExtendedPlacePropertiesModel
+ Object
+ // PriceRange undocumented
+ PriceRange *string `json:"priceRange,omitempty"`
+ // MenuURL undocumented
+ MenuURL *string `json:"menuUrl,omitempty"`
+ // BusinessURL undocumented
+ BusinessURL *string `json:"businessUrl,omitempty"`
+ // FormattedAddress undocumented
+ FormattedAddress *string `json:"formattedAddress,omitempty"`
+ // OpeningHoursSpecifications undocumented
+ OpeningHoursSpecifications []OpeningHoursSpecification `json:"openingHoursSpecifications,omitempty"`
+ // TimeZone undocumented
+ TimeZone *string `json:"timeZone,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtension.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtension.go
new file mode 100644
index 00000000..ce26c608
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExtension.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Extension undocumented
+type Extension struct {
+ // Entity is the base model of Extension
+ Entity
+}
+
+// ExtensionProperty undocumented
+type ExtensionProperty struct {
+ // DirectoryObject is the base model of ExtensionProperty
+ DirectoryObject
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DataType undocumented
+ DataType *string `json:"dataType,omitempty"`
+ // IsSyncedFromOnPremises undocumented
+ IsSyncedFromOnPremises *bool `json:"isSyncedFromOnPremises,omitempty"`
+ // TargetObjects undocumented
+ TargetObjects []string `json:"targetObjects,omitempty"`
+}
+
+// ExtensionSchemaProperty undocumented
+type ExtensionSchemaProperty struct {
+ // Object is the base model of ExtensionSchemaProperty
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelExternal.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExternal.go
new file mode 100644
index 00000000..a0957a76
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelExternal.go
@@ -0,0 +1,75 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// External undocumented
+type External struct {
+ // Entity is the base model of External
+ Entity
+ // Connections undocumented
+ Connections []ExternalConnection `json:"connections,omitempty"`
+}
+
+// ExternalConnection undocumented
+type ExternalConnection struct {
+ // Entity is the base model of ExternalConnection
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Configuration undocumented
+ Configuration *Configuration `json:"configuration,omitempty"`
+ // Schema undocumented
+ Schema *Schema `json:"schema,omitempty"`
+ // Items undocumented
+ Items []ExternalItem `json:"items,omitempty"`
+ // Operations undocumented
+ Operations []ConnectionOperation `json:"operations,omitempty"`
+}
+
+// ExternalFile undocumented
+type ExternalFile struct {
+ // ExternalItem is the base model of ExternalFile
+ ExternalItem
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *string `json:"createdBy,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *string `json:"lastModifiedBy,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Extension undocumented
+ Extension *string `json:"extension,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+}
+
+// ExternalItem undocumented
+type ExternalItem struct {
+ // Entity is the base model of ExternalItem
+ Entity
+ // Properties undocumented
+ Properties *Properties `json:"properties,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // ACL undocumented
+ ACL []ACL `json:"acl,omitempty"`
+}
+
+// ExternalLink undocumented
+type ExternalLink struct {
+ // Object is the base model of ExternalLink
+ Object
+ // Href undocumented
+ Href *string `json:"href,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFeature.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFeature.go
new file mode 100644
index 00000000..1caa4526
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFeature.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// FeatureRolloutPolicy undocumented
+type FeatureRolloutPolicy struct {
+ // Entity is the base model of FeatureRolloutPolicy
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Feature undocumented
+ Feature *StagedFeatureName `json:"feature,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // IsAppliedToOrganization undocumented
+ IsAppliedToOrganization *bool `json:"isAppliedToOrganization,omitempty"`
+ // AppliesTo undocumented
+ AppliesTo []DirectoryObject `json:"appliesTo,omitempty"`
+}
+
+// FeatureUsageDetail undocumented
+type FeatureUsageDetail struct {
+ // Object is the base model of FeatureUsageDetail
+ Object
+ // FeatureName undocumented
+ FeatureName *string `json:"featureName,omitempty"`
+ // LicenseRequired undocumented
+ LicenseRequired *AzureADLicenseType `json:"licenseRequired,omitempty"`
+ // LicenseAssigned undocumented
+ LicenseAssigned *AzureADLicenseType `json:"licenseAssigned,omitempty"`
+ // LastUsedDateTime undocumented
+ LastUsedDateTime *time.Time `json:"lastUsedDateTime,omitempty"`
+ // LastConfiguredDateTime undocumented
+ LastConfiguredDateTime *time.Time `json:"lastConfiguredDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelField.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelField.go
new file mode 100644
index 00000000..23d4cfd1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelField.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FieldValueSet undocumented
+type FieldValueSet struct {
+ // Entity is the base model of FieldValueSet
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFile.go
new file mode 100644
index 00000000..6bba529a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFile.go
@@ -0,0 +1,143 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// File undocumented
+type File struct {
+ // Object is the base model of File
+ Object
+ // Hashes undocumented
+ Hashes *Hashes `json:"hashes,omitempty"`
+ // MimeType undocumented
+ MimeType *string `json:"mimeType,omitempty"`
+ // ProcessingMetadata undocumented
+ ProcessingMetadata *bool `json:"processingMetadata,omitempty"`
+}
+
+// FileAssessmentRequestObject undocumented
+type FileAssessmentRequestObject struct {
+ // ThreatAssessmentRequestObject is the base model of FileAssessmentRequestObject
+ ThreatAssessmentRequestObject
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // ContentData undocumented
+ ContentData *string `json:"contentData,omitempty"`
+}
+
+// FileAttachment undocumented
+type FileAttachment struct {
+ // Attachment is the base model of FileAttachment
+ Attachment
+ // ContentID undocumented
+ ContentID *string `json:"contentId,omitempty"`
+ // ContentLocation undocumented
+ ContentLocation *string `json:"contentLocation,omitempty"`
+ // ContentBytes undocumented
+ ContentBytes *Binary `json:"contentBytes,omitempty"`
+}
+
+// FileClassificationRequestObject undocumented
+type FileClassificationRequestObject struct {
+ // Entity is the base model of FileClassificationRequestObject
+ Entity
+ // File undocumented
+ File *Stream `json:"file,omitempty"`
+ // SensitiveTypeIDs undocumented
+ SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"`
+}
+
+// FileEncryptionInfo undocumented
+type FileEncryptionInfo struct {
+ // Object is the base model of FileEncryptionInfo
+ Object
+ // EncryptionKey The key used to encrypt the file content.
+ EncryptionKey *Binary `json:"encryptionKey,omitempty"`
+ // InitializationVector The initialization vector used for the encryption algorithm.
+ InitializationVector *Binary `json:"initializationVector,omitempty"`
+ // Mac The hash of the encrypted file content + IV (content hash).
+ Mac *Binary `json:"mac,omitempty"`
+ // MacKey The key used to get mac.
+ MacKey *Binary `json:"macKey,omitempty"`
+ // ProfileIdentifier The the profile identifier.
+ ProfileIdentifier *string `json:"profileIdentifier,omitempty"`
+ // FileDigest The file digest prior to encryption.
+ FileDigest *Binary `json:"fileDigest,omitempty"`
+ // FileDigestAlgorithm The file digest algorithm.
+ FileDigestAlgorithm *string `json:"fileDigestAlgorithm,omitempty"`
+}
+
+// FileHash undocumented
+type FileHash struct {
+ // Object is the base model of FileHash
+ Object
+ // HashType undocumented
+ HashType *FileHashType `json:"hashType,omitempty"`
+ // HashValue undocumented
+ HashValue *string `json:"hashValue,omitempty"`
+}
+
+// FileSecurityProfile undocumented
+type FileSecurityProfile struct {
+ // Entity is the base model of FileSecurityProfile
+ Entity
+ // ActivityGroupNames undocumented
+ ActivityGroupNames []string `json:"activityGroupNames,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CertificateThumbprint undocumented
+ CertificateThumbprint *string `json:"certificateThumbprint,omitempty"`
+ // Extensions undocumented
+ Extensions []string `json:"extensions,omitempty"`
+ // FileType undocumented
+ FileType *string `json:"fileType,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // Hashes undocumented
+ Hashes []FileHash `json:"hashes,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // MalwareStates undocumented
+ MalwareStates []MalwareState `json:"malwareStates,omitempty"`
+ // Names undocumented
+ Names []string `json:"names,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+ // VulnerabilityStates undocumented
+ VulnerabilityStates []VulnerabilityState `json:"vulnerabilityStates,omitempty"`
+}
+
+// FileSecurityState undocumented
+type FileSecurityState struct {
+ // Object is the base model of FileSecurityState
+ Object
+ // FileHash undocumented
+ FileHash *FileHash `json:"fileHash,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Path undocumented
+ Path *string `json:"path,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+}
+
+// FileSystemInfo undocumented
+type FileSystemInfo struct {
+ // Object is the base model of FileSystemInfo
+ Object
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastAccessedDateTime undocumented
+ LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFilter.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFilter.go
new file mode 100644
index 00000000..98333c3a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFilter.go
@@ -0,0 +1,57 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Filter undocumented
+type Filter struct {
+ // Object is the base model of Filter
+ Object
+ // Groups undocumented
+ Groups []FilterGroup `json:"groups,omitempty"`
+ // InputFilterGroups undocumented
+ InputFilterGroups []FilterGroup `json:"inputFilterGroups,omitempty"`
+ // CategoryFilterGroups undocumented
+ CategoryFilterGroups []FilterGroup `json:"categoryFilterGroups,omitempty"`
+}
+
+// FilterClause undocumented
+type FilterClause struct {
+ // Object is the base model of FilterClause
+ Object
+ // OperatorName undocumented
+ OperatorName *string `json:"operatorName,omitempty"`
+ // SourceOperandName undocumented
+ SourceOperandName *string `json:"sourceOperandName,omitempty"`
+ // TargetOperand undocumented
+ TargetOperand *FilterOperand `json:"targetOperand,omitempty"`
+}
+
+// FilterGroup undocumented
+type FilterGroup struct {
+ // Object is the base model of FilterGroup
+ Object
+ // Clauses undocumented
+ Clauses []FilterClause `json:"clauses,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// FilterOperand undocumented
+type FilterOperand struct {
+ // Object is the base model of FilterOperand
+ Object
+ // Values undocumented
+ Values []string `json:"values,omitempty"`
+}
+
+// FilterOperatorSchema undocumented
+type FilterOperatorSchema struct {
+ // Entity is the base model of FilterOperatorSchema
+ Entity
+ // Arity undocumented
+ Arity *ScopeOperatorType `json:"arity,omitempty"`
+ // MultivaluedComparisonType undocumented
+ MultivaluedComparisonType *ScopeOperatorMultiValuedComparisonType `json:"multivaluedComparisonType,omitempty"`
+ // SupportedAttributeTypes undocumented
+ SupportedAttributeTypes []AttributeType `json:"supportedAttributeTypes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFinancials.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFinancials.go
new file mode 100644
index 00000000..fcae9cab
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFinancials.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Financials undocumented
+type Financials struct {
+ // Entity is the base model of Financials
+ Entity
+ // Companies undocumented
+ Companies []Company `json:"companies,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFlex.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFlex.go
new file mode 100644
index 00000000..d5cd338b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFlex.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FlexSchemaContainer undocumented
+type FlexSchemaContainer struct {
+ // Object is the base model of FlexSchemaContainer
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFocus.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFocus.go
new file mode 100644
index 00000000..3d9ebf27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFocus.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FocusActivityStatistics undocumented
+type FocusActivityStatistics struct {
+ // ActivityStatistics is the base model of FocusActivityStatistics
+ ActivityStatistics
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFolder.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFolder.go
new file mode 100644
index 00000000..87dfbd94
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFolder.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Folder undocumented
+type Folder struct {
+ // Object is the base model of Folder
+ Object
+ // ChildCount undocumented
+ ChildCount *int `json:"childCount,omitempty"`
+ // View undocumented
+ View *FolderView `json:"view,omitempty"`
+}
+
+// FolderView undocumented
+type FolderView struct {
+ // Object is the base model of FolderView
+ Object
+ // SortBy undocumented
+ SortBy *string `json:"sortBy,omitempty"`
+ // SortOrder undocumented
+ SortOrder *string `json:"sortOrder,omitempty"`
+ // ViewType undocumented
+ ViewType *string `json:"viewType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFollowup.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFollowup.go
new file mode 100644
index 00000000..933e0fc7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFollowup.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FollowupFlag undocumented
+type FollowupFlag struct {
+ // Object is the base model of FollowupFlag
+ Object
+ // CompletedDateTime undocumented
+ CompletedDateTime *DateTimeTimeZone `json:"completedDateTime,omitempty"`
+ // DueDateTime undocumented
+ DueDateTime *DateTimeTimeZone `json:"dueDateTime,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *DateTimeTimeZone `json:"startDateTime,omitempty"`
+ // FlagStatus undocumented
+ FlagStatus *FollowupFlagStatus `json:"flagStatus,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelFree.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFree.go
new file mode 100644
index 00000000..d8a2e464
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelFree.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// FreeBusyError undocumented
+type FreeBusyError struct {
+ // Object is the base model of FreeBusyError
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // ResponseCode undocumented
+ ResponseCode *string `json:"responseCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneral.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneral.go
new file mode 100644
index 00000000..33938019
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneral.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GeneralLedgerEntry undocumented
+type GeneralLedgerEntry struct {
+ // Entity is the base model of GeneralLedgerEntry
+ Entity
+ // PostingDate undocumented
+ PostingDate *Date `json:"postingDate,omitempty"`
+ // DocumentNumber undocumented
+ DocumentNumber *string `json:"documentNumber,omitempty"`
+ // DocumentType undocumented
+ DocumentType *string `json:"documentType,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // AccountNumber undocumented
+ AccountNumber *string `json:"accountNumber,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DebitAmount undocumented
+ DebitAmount *int `json:"debitAmount,omitempty"`
+ // CreditAmount undocumented
+ CreditAmount *int `json:"creditAmount,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneric.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneric.go
new file mode 100644
index 00000000..8ecf7672
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeneric.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GenericError undocumented
+type GenericError struct {
+ // Object is the base model of GenericError
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeo.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeo.go
new file mode 100644
index 00000000..a5ff16b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeo.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GeoCoordinates undocumented
+type GeoCoordinates struct {
+ // Object is the base model of GeoCoordinates
+ Object
+ // Altitude undocumented
+ Altitude *float64 `json:"altitude,omitempty"`
+ // Latitude undocumented
+ Latitude *float64 `json:"latitude,omitempty"`
+ // Longitude undocumented
+ Longitude *float64 `json:"longitude,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeolocation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeolocation.go
new file mode 100644
index 00000000..c1da5fec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGeolocation.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// GeolocationColumn undocumented
+type GeolocationColumn struct {
+ // Object is the base model of GeolocationColumn
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelGovernance.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGovernance.go
new file mode 100644
index 00000000..5e3adeb5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGovernance.go
@@ -0,0 +1,261 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// GovernanceCriteria undocumented
+type GovernanceCriteria struct {
+ // Object is the base model of GovernanceCriteria
+ Object
+}
+
+// GovernanceNotificationPolicy undocumented
+type GovernanceNotificationPolicy struct {
+ // Object is the base model of GovernanceNotificationPolicy
+ Object
+ // NotificationTemplates undocumented
+ NotificationTemplates []GovernanceNotificationTemplate `json:"notificationTemplates,omitempty"`
+ // EnabledTemplateTypes undocumented
+ EnabledTemplateTypes []string `json:"enabledTemplateTypes,omitempty"`
+}
+
+// GovernanceNotificationTemplate undocumented
+type GovernanceNotificationTemplate struct {
+ // Object is the base model of GovernanceNotificationTemplate
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Source undocumented
+ Source *string `json:"source,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+ // Culture undocumented
+ Culture *string `json:"culture,omitempty"`
+}
+
+// GovernancePermission undocumented
+type GovernancePermission struct {
+ // Object is the base model of GovernancePermission
+ Object
+ // AccessLevel undocumented
+ AccessLevel *string `json:"accessLevel,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+ // IsEligible undocumented
+ IsEligible *bool `json:"isEligible,omitempty"`
+}
+
+// GovernancePolicy undocumented
+type GovernancePolicy struct {
+ // Object is the base model of GovernancePolicy
+ Object
+ // DecisionMakerCriteria undocumented
+ DecisionMakerCriteria []GovernanceCriteria `json:"decisionMakerCriteria,omitempty"`
+ // NotificationPolicy undocumented
+ NotificationPolicy *GovernanceNotificationPolicy `json:"notificationPolicy,omitempty"`
+}
+
+// GovernancePolicyTemplate undocumented
+type GovernancePolicyTemplate struct {
+ // Entity is the base model of GovernancePolicyTemplate
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Policy undocumented
+ Policy *GovernancePolicy `json:"policy,omitempty"`
+ // Settings undocumented
+ Settings *BusinessFlowSettings `json:"settings,omitempty"`
+}
+
+// GovernanceResource undocumented
+type GovernanceResource struct {
+ // Entity is the base model of GovernanceResource
+ Entity
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // RegisteredDateTime undocumented
+ RegisteredDateTime *time.Time `json:"registeredDateTime,omitempty"`
+ // RegisteredRoot undocumented
+ RegisteredRoot *string `json:"registeredRoot,omitempty"`
+ // Parent undocumented
+ Parent *GovernanceResource `json:"parent,omitempty"`
+ // RoleDefinitions undocumented
+ RoleDefinitions []GovernanceRoleDefinition `json:"roleDefinitions,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []GovernanceRoleAssignment `json:"roleAssignments,omitempty"`
+ // RoleAssignmentRequests undocumented
+ RoleAssignmentRequests []GovernanceRoleAssignmentRequestObject `json:"roleAssignmentRequests,omitempty"`
+ // RoleSettings undocumented
+ RoleSettings []GovernanceRoleSetting `json:"roleSettings,omitempty"`
+}
+
+// GovernanceRoleAssignment undocumented
+type GovernanceRoleAssignment struct {
+ // Entity is the base model of GovernanceRoleAssignment
+ Entity
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // RoleDefinitionID undocumented
+ RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
+ // SubjectID undocumented
+ SubjectID *string `json:"subjectId,omitempty"`
+ // LinkedEligibleRoleAssignmentID undocumented
+ LinkedEligibleRoleAssignmentID *string `json:"linkedEligibleRoleAssignmentId,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // MemberType undocumented
+ MemberType *string `json:"memberType,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Resource undocumented
+ Resource *GovernanceResource `json:"resource,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *GovernanceRoleDefinition `json:"roleDefinition,omitempty"`
+ // Subject undocumented
+ Subject *GovernanceSubject `json:"subject,omitempty"`
+ // LinkedEligibleRoleAssignment undocumented
+ LinkedEligibleRoleAssignment *GovernanceRoleAssignment `json:"linkedEligibleRoleAssignment,omitempty"`
+}
+
+// GovernanceRoleAssignmentRequestObject undocumented
+type GovernanceRoleAssignmentRequestObject struct {
+ // Entity is the base model of GovernanceRoleAssignmentRequestObject
+ Entity
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // RoleDefinitionID undocumented
+ RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
+ // SubjectID undocumented
+ SubjectID *string `json:"subjectId,omitempty"`
+ // LinkedEligibleRoleAssignmentID undocumented
+ LinkedEligibleRoleAssignmentID *string `json:"linkedEligibleRoleAssignmentId,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // RequestedDateTime undocumented
+ RequestedDateTime *time.Time `json:"requestedDateTime,omitempty"`
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // Status undocumented
+ Status *GovernanceRoleAssignmentRequestStatus `json:"status,omitempty"`
+ // Schedule undocumented
+ Schedule *GovernanceSchedule `json:"schedule,omitempty"`
+ // Resource undocumented
+ Resource *GovernanceResource `json:"resource,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *GovernanceRoleDefinition `json:"roleDefinition,omitempty"`
+ // Subject undocumented
+ Subject *GovernanceSubject `json:"subject,omitempty"`
+}
+
+// GovernanceRoleAssignmentRequestStatus undocumented
+type GovernanceRoleAssignmentRequestStatus struct {
+ // Object is the base model of GovernanceRoleAssignmentRequestStatus
+ Object
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // SubStatus undocumented
+ SubStatus *string `json:"subStatus,omitempty"`
+ // StatusDetails undocumented
+ StatusDetails []KeyValue `json:"statusDetails,omitempty"`
+}
+
+// GovernanceRoleDefinition undocumented
+type GovernanceRoleDefinition struct {
+ // Entity is the base model of GovernanceRoleDefinition
+ Entity
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Resource undocumented
+ Resource *GovernanceResource `json:"resource,omitempty"`
+ // RoleSetting undocumented
+ RoleSetting *GovernanceRoleSetting `json:"roleSetting,omitempty"`
+}
+
+// GovernanceRoleSetting undocumented
+type GovernanceRoleSetting struct {
+ // Entity is the base model of GovernanceRoleSetting
+ Entity
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // RoleDefinitionID undocumented
+ RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // LastUpdatedBy undocumented
+ LastUpdatedBy *string `json:"lastUpdatedBy,omitempty"`
+ // AdminEligibleSettings undocumented
+ AdminEligibleSettings []GovernanceRuleSetting `json:"adminEligibleSettings,omitempty"`
+ // AdminMemberSettings undocumented
+ AdminMemberSettings []GovernanceRuleSetting `json:"adminMemberSettings,omitempty"`
+ // UserEligibleSettings undocumented
+ UserEligibleSettings []GovernanceRuleSetting `json:"userEligibleSettings,omitempty"`
+ // UserMemberSettings undocumented
+ UserMemberSettings []GovernanceRuleSetting `json:"userMemberSettings,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *GovernanceRoleDefinition `json:"roleDefinition,omitempty"`
+ // Resource undocumented
+ Resource *GovernanceResource `json:"resource,omitempty"`
+}
+
+// GovernanceRuleSetting undocumented
+type GovernanceRuleSetting struct {
+ // Object is the base model of GovernanceRuleSetting
+ Object
+ // RuleIdentifier undocumented
+ RuleIdentifier *string `json:"ruleIdentifier,omitempty"`
+ // Setting undocumented
+ Setting *string `json:"setting,omitempty"`
+}
+
+// GovernanceSchedule undocumented
+type GovernanceSchedule struct {
+ // Object is the base model of GovernanceSchedule
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Duration undocumented
+ Duration *Duration `json:"duration,omitempty"`
+}
+
+// GovernanceSubject undocumented
+type GovernanceSubject struct {
+ // Entity is the base model of GovernanceSubject
+ Entity
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // PrincipalName undocumented
+ PrincipalName *string `json:"principalName,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelGroup.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGroup.go
new file mode 100644
index 00000000..67de3a9d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelGroup.go
@@ -0,0 +1,555 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Group undocumented
+type Group struct {
+ // DirectoryObject is the base model of Group
+ DirectoryObject
+ // AssignedLabels undocumented
+ AssignedLabels []AssignedLabel `json:"assignedLabels,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []AssignedLicense `json:"assignedLicenses,omitempty"`
+ // Classification undocumented
+ Classification *string `json:"classification,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GroupTypes undocumented
+ GroupTypes []string `json:"groupTypes,omitempty"`
+ // HasMembersWithLicenseErrors undocumented
+ HasMembersWithLicenseErrors *bool `json:"hasMembersWithLicenseErrors,omitempty"`
+ // IsAssignableToRole undocumented
+ IsAssignableToRole *bool `json:"isAssignableToRole,omitempty"`
+ // LicenseProcessingState undocumented
+ LicenseProcessingState *LicenseProcessingState `json:"licenseProcessingState,omitempty"`
+ // Mail undocumented
+ Mail *string `json:"mail,omitempty"`
+ // MailEnabled undocumented
+ MailEnabled *bool `json:"mailEnabled,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // MDMAppID undocumented
+ MDMAppID *string `json:"mdmAppId,omitempty"`
+ // MembershipRule undocumented
+ MembershipRule *string `json:"membershipRule,omitempty"`
+ // MembershipRuleProcessingState undocumented
+ MembershipRuleProcessingState *string `json:"membershipRuleProcessingState,omitempty"`
+ // OnPremisesDomainName undocumented
+ OnPremisesDomainName *string `json:"onPremisesDomainName,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesNetBiosName undocumented
+ OnPremisesNetBiosName *string `json:"onPremisesNetBiosName,omitempty"`
+ // OnPremisesProvisioningErrors undocumented
+ OnPremisesProvisioningErrors []OnPremisesProvisioningError `json:"onPremisesProvisioningErrors,omitempty"`
+ // OnPremisesSamAccountName undocumented
+ OnPremisesSamAccountName *string `json:"onPremisesSamAccountName,omitempty"`
+ // OnPremisesSecurityIdentifier undocumented
+ OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // PreferredDataLocation undocumented
+ PreferredDataLocation *string `json:"preferredDataLocation,omitempty"`
+ // PreferredLanguage undocumented
+ PreferredLanguage *string `json:"preferredLanguage,omitempty"`
+ // ProxyAddresses undocumented
+ ProxyAddresses []string `json:"proxyAddresses,omitempty"`
+ // RenewedDateTime undocumented
+ RenewedDateTime *time.Time `json:"renewedDateTime,omitempty"`
+ // ResourceBehaviorOptions undocumented
+ ResourceBehaviorOptions []string `json:"resourceBehaviorOptions,omitempty"`
+ // ResourceProvisioningOptions undocumented
+ ResourceProvisioningOptions []string `json:"resourceProvisioningOptions,omitempty"`
+ // SecurityEnabled undocumented
+ SecurityEnabled *bool `json:"securityEnabled,omitempty"`
+ // SecurityIdentifier undocumented
+ SecurityIdentifier *string `json:"securityIdentifier,omitempty"`
+ // Theme undocumented
+ Theme *string `json:"theme,omitempty"`
+ // Visibility undocumented
+ Visibility *string `json:"visibility,omitempty"`
+ // AccessType undocumented
+ AccessType *GroupAccessType `json:"accessType,omitempty"`
+ // AllowExternalSenders undocumented
+ AllowExternalSenders *bool `json:"allowExternalSenders,omitempty"`
+ // AutoSubscribeNewMembers undocumented
+ AutoSubscribeNewMembers *bool `json:"autoSubscribeNewMembers,omitempty"`
+ // IsFavorite undocumented
+ IsFavorite *bool `json:"isFavorite,omitempty"`
+ // IsSubscribedByMail undocumented
+ IsSubscribedByMail *bool `json:"isSubscribedByMail,omitempty"`
+ // UnseenCount undocumented
+ UnseenCount *int `json:"unseenCount,omitempty"`
+ // UnseenConversationsCount undocumented
+ UnseenConversationsCount *int `json:"unseenConversationsCount,omitempty"`
+ // UnseenMessagesCount undocumented
+ UnseenMessagesCount *int `json:"unseenMessagesCount,omitempty"`
+ // HideFromOutlookClients undocumented
+ HideFromOutlookClients *bool `json:"hideFromOutlookClients,omitempty"`
+ // HideFromAddressLists undocumented
+ HideFromAddressLists *bool `json:"hideFromAddressLists,omitempty"`
+ // IsArchived undocumented
+ IsArchived *bool `json:"isArchived,omitempty"`
+ // AppRoleAssignments undocumented
+ AppRoleAssignments []AppRoleAssignment `json:"appRoleAssignments,omitempty"`
+ // Members undocumented
+ Members []DirectoryObject `json:"members,omitempty"`
+ // MembersWithLicenseErrors undocumented
+ MembersWithLicenseErrors []DirectoryObject `json:"membersWithLicenseErrors,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // TransitiveMembers undocumented
+ TransitiveMembers []DirectoryObject `json:"transitiveMembers,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+ // CreatedOnBehalfOf undocumented
+ CreatedOnBehalfOf *DirectoryObject `json:"createdOnBehalfOf,omitempty"`
+ // Owners undocumented
+ Owners []DirectoryObject `json:"owners,omitempty"`
+ // Settings undocumented
+ Settings []DirectorySetting `json:"settings,omitempty"`
+ // Endpoints undocumented
+ Endpoints []Endpoint `json:"endpoints,omitempty"`
+ // PermissionGrants undocumented
+ PermissionGrants []ResourceSpecificPermissionGrant `json:"permissionGrants,omitempty"`
+ // Conversations undocumented
+ Conversations []Conversation `json:"conversations,omitempty"`
+ // Photos undocumented
+ Photos []ProfilePhoto `json:"photos,omitempty"`
+ // AcceptedSenders undocumented
+ AcceptedSenders []DirectoryObject `json:"acceptedSenders,omitempty"`
+ // RejectedSenders undocumented
+ RejectedSenders []DirectoryObject `json:"rejectedSenders,omitempty"`
+ // Threads undocumented
+ Threads []ConversationThread `json:"threads,omitempty"`
+ // Calendar undocumented
+ Calendar *Calendar `json:"calendar,omitempty"`
+ // CalendarView undocumented
+ CalendarView []Event `json:"calendarView,omitempty"`
+ // Events undocumented
+ Events []Event `json:"events,omitempty"`
+ // Photo undocumented
+ Photo *ProfilePhoto `json:"photo,omitempty"`
+ // Drive undocumented
+ Drive *Drive `json:"drive,omitempty"`
+ // Drives undocumented
+ Drives []Drive `json:"drives,omitempty"`
+ // Sites undocumented
+ Sites []Site `json:"sites,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // GroupLifecyclePolicies undocumented
+ GroupLifecyclePolicies []GroupLifecyclePolicy `json:"groupLifecyclePolicies,omitempty"`
+ // Planner undocumented
+ Planner *PlannerGroup `json:"planner,omitempty"`
+ // Onenote undocumented
+ Onenote *Onenote `json:"onenote,omitempty"`
+ // Team undocumented
+ Team *Team `json:"team,omitempty"`
+}
+
+// GroupAssignmentTarget undocumented
+type GroupAssignmentTarget struct {
+ // DeviceAndAppManagementAssignmentTarget is the base model of GroupAssignmentTarget
+ DeviceAndAppManagementAssignmentTarget
+ // GroupID The group Id that is the target of the assignment.
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+// GroupLifecyclePolicy undocumented
+type GroupLifecyclePolicy struct {
+ // Entity is the base model of GroupLifecyclePolicy
+ Entity
+ // GroupLifetimeInDays undocumented
+ GroupLifetimeInDays *int `json:"groupLifetimeInDays,omitempty"`
+ // ManagedGroupTypes undocumented
+ ManagedGroupTypes *string `json:"managedGroupTypes,omitempty"`
+ // AlternateNotificationEmails undocumented
+ AlternateNotificationEmails *string `json:"alternateNotificationEmails,omitempty"`
+}
+
+// GroupMembershipGovernanceCriteria undocumented
+type GroupMembershipGovernanceCriteria struct {
+ // GovernanceCriteria is the base model of GroupMembershipGovernanceCriteria
+ GovernanceCriteria
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+// GroupPolicyConfiguration The group policy configuration entity contains the configured values for one or more group policy definitions.
+type GroupPolicyConfiguration struct {
+ // Entity is the base model of GroupPolicyConfiguration
+ Entity
+ // CreatedDateTime The date and time the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DisplayName User provided name for the resource object.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description User provided description for the resource object.
+ Description *string `json:"description,omitempty"`
+ // RoleScopeTagIDs The list of scope tags for the configuration.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DefinitionValues undocumented
+ DefinitionValues []GroupPolicyDefinitionValue `json:"definitionValues,omitempty"`
+ // Assignments undocumented
+ Assignments []GroupPolicyConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+// GroupPolicyConfigurationAssignment The group policy configuration assignment entity assigns one or more AAD groups to a specific group policy configuration.
+type GroupPolicyConfigurationAssignment struct {
+ // Entity is the base model of GroupPolicyConfigurationAssignment
+ Entity
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Target The type of groups targeted the group policy configuration.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// GroupPolicyDefinition The entity describes all of the information about a single group policy.
+type GroupPolicyDefinition struct {
+ // Entity is the base model of GroupPolicyDefinition
+ Entity
+ // ClassType Identifies the type of groups the policy can be applied to.
+ ClassType *GroupPolicyDefinitionClassType `json:"classType,omitempty"`
+ // DisplayName The localized policy name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // ExplainText The localized explanation or help text associated with the policy. The default value is empty.
+ ExplainText *string `json:"explainText,omitempty"`
+ // CategoryPath The localized full category path for the policy.
+ CategoryPath *string `json:"categoryPath,omitempty"`
+ // SupportedOn Localized string used to specify what operating system or application version is affected by the policy.
+ SupportedOn *string `json:"supportedOn,omitempty"`
+ // PolicyType Specifies the type of group policy.
+ PolicyType *GroupPolicyType `json:"policyType,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DefinitionFile undocumented
+ DefinitionFile *GroupPolicyDefinitionFile `json:"definitionFile,omitempty"`
+ // Presentations undocumented
+ Presentations []GroupPolicyPresentation `json:"presentations,omitempty"`
+}
+
+// GroupPolicyDefinitionFile The entity represents an ADMX (Administrative Template) XML file. The ADMX file contains a collection of group policy definitions and their locations by category path. The group policy definition file also contains the languages supported as determined by the language dependent ADML (Administrative Template) language files.
+type GroupPolicyDefinitionFile struct {
+ // Entity is the base model of GroupPolicyDefinitionFile
+ Entity
+ // DisplayName The localized friendly name of the ADMX file.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The localized description of the policy settings in the ADMX file. The default value is empty.
+ Description *string `json:"description,omitempty"`
+ // LanguageCodes The supported language codes for the ADMX file.
+ LanguageCodes []string `json:"languageCodes,omitempty"`
+ // TargetPrefix Specifies the logical name that refers to the namespace within the ADMX file.
+ TargetPrefix *string `json:"targetPrefix,omitempty"`
+ // TargetNamespace Specifies the URI used to identify the namespace within the ADMX file.
+ TargetNamespace *string `json:"targetNamespace,omitempty"`
+ // PolicyType Specifies the type of group policy.
+ PolicyType *GroupPolicyType `json:"policyType,omitempty"`
+ // Revision The revision version associated with the file.
+ Revision *string `json:"revision,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Definitions undocumented
+ Definitions []GroupPolicyDefinition `json:"definitions,omitempty"`
+}
+
+// GroupPolicyDefinitionValue The definition value entity stores the value for a single group policy definition.
+type GroupPolicyDefinitionValue struct {
+ // Entity is the base model of GroupPolicyDefinitionValue
+ Entity
+ // CreatedDateTime The date and time the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Enabled Enables or disables the associated group policy definition.
+ Enabled *bool `json:"enabled,omitempty"`
+ // ConfigurationType Specifies how the value should be configured. This can be either as a Policy or as a Preference.
+ ConfigurationType *GroupPolicyConfigurationType `json:"configurationType,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PresentationValues undocumented
+ PresentationValues []GroupPolicyPresentationValue `json:"presentationValues,omitempty"`
+ // Definition undocumented
+ Definition *GroupPolicyDefinition `json:"definition,omitempty"`
+}
+
+// GroupPolicyMigrationReport The Group Policy migration report.
+type GroupPolicyMigrationReport struct {
+ // Entity is the base model of GroupPolicyMigrationReport
+ Entity
+ // GroupPolicyObjectID The Group Policy Object GUID from GPO Xml content
+ GroupPolicyObjectID *UUID `json:"groupPolicyObjectId,omitempty"`
+ // DisplayName The name of Group Policy Object from the GPO Xml Content
+ DisplayName *string `json:"displayName,omitempty"`
+ // OuDistinguishedName The distinguished name of the OU.
+ OuDistinguishedName *string `json:"ouDistinguishedName,omitempty"`
+ // CreatedDateTime The date and time at which the GroupPolicyMigrationReport was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date and time at which the GroupPolicyMigrationReport was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // GroupPolicyCreatedDateTime The date and time at which the GroupPolicyMigrationReport was created.
+ GroupPolicyCreatedDateTime *time.Time `json:"groupPolicyCreatedDateTime,omitempty"`
+ // GroupPolicyLastModifiedDateTime The date and time at which the GroupPolicyMigrationReport was last modified.
+ GroupPolicyLastModifiedDateTime *time.Time `json:"groupPolicyLastModifiedDateTime,omitempty"`
+ // MigrationReadiness The Intune coverage for the associated Group Policy Object file.
+ MigrationReadiness *GroupPolicyMigrationReadiness `json:"migrationReadiness,omitempty"`
+ // TargetedInActiveDirectory The Targeted in AD property from GPO Xml Content
+ TargetedInActiveDirectory *bool `json:"targetedInActiveDirectory,omitempty"`
+ // TotalSettingsCount The total number of Group Policy Settings from GPO file.
+ TotalSettingsCount *int `json:"totalSettingsCount,omitempty"`
+ // SupportedSettingsCount The number of Group Policy Settings supported by Intune.
+ SupportedSettingsCount *int `json:"supportedSettingsCount,omitempty"`
+ // SupportedSettingsPercent The Percentage of Group Policy Settings supported by Intune.
+ SupportedSettingsPercent *int `json:"supportedSettingsPercent,omitempty"`
+ // GroupPolicySettingMappings undocumented
+ GroupPolicySettingMappings []GroupPolicySettingMapping `json:"groupPolicySettingMappings,omitempty"`
+}
+
+// GroupPolicyObjectFile undocumented
+type GroupPolicyObjectFile struct {
+ // Object is the base model of GroupPolicyObjectFile
+ Object
+ // OuDistinguishedName The distinguished name of the OU.
+ OuDistinguishedName *string `json:"ouDistinguishedName,omitempty"`
+ // Content The Group Policy Object file content.
+ Content *string `json:"content,omitempty"`
+}
+
+// GroupPolicyPresentation The base entity for the display presentation of any of the additional options in a group policy definition.
+type GroupPolicyPresentation struct {
+ // Entity is the base model of GroupPolicyPresentation
+ Entity
+ // Label Localized text label for any presentation entity. The default value is empty.
+ Label *string `json:"label,omitempty"`
+ // LastModifiedDateTime The date and time the entity was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Definition undocumented
+ Definition *GroupPolicyDefinition `json:"definition,omitempty"`
+}
+
+// GroupPolicyPresentationCheckBox Represents an ADMX checkBox element and an ADMX boolean element.
+type GroupPolicyPresentationCheckBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationCheckBox
+ GroupPolicyPresentation
+ // DefaultChecked Default value for the check box. The default value is false.
+ DefaultChecked *bool `json:"defaultChecked,omitempty"`
+}
+
+// GroupPolicyPresentationComboBox Represents an ADMX comboBox element and an ADMX text element.
+type GroupPolicyPresentationComboBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationComboBox
+ GroupPolicyPresentation
+ // DefaultValue Localized default string displayed in the combo box. The default value is empty.
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // Suggestions Localized strings listed in the drop-down list of the combo box. The default value is empty.
+ Suggestions []string `json:"suggestions,omitempty"`
+ // Required Specifies whether a value must be specified for the parameter. The default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MaxLength An unsigned integer that specifies the maximum number of text characters for the parameter. The default value is 1023.
+ MaxLength *int `json:"maxLength,omitempty"`
+}
+
+// GroupPolicyPresentationDecimalTextBox Represents an ADMX decimalTextBox element and an ADMX decimal element.
+type GroupPolicyPresentationDecimalTextBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationDecimalTextBox
+ GroupPolicyPresentation
+ // DefaultValue An unsigned integer that specifies the initial value for the decimal text box. The default value is 1.
+ DefaultValue *int `json:"defaultValue,omitempty"`
+ // Spin If true, create a spin control; otherwise, create a text box for numeric entry. The default value is true.
+ Spin *bool `json:"spin,omitempty"`
+ // SpinStep An unsigned integer that specifies the increment of change for the spin control. The default value is 1.
+ SpinStep *int `json:"spinStep,omitempty"`
+ // Required Requirement to enter a value in the parameter box. The default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MinValue An unsigned integer that specifies the minimum allowed value. The default value is 0.
+ MinValue *int `json:"minValue,omitempty"`
+ // MaxValue An unsigned integer that specifies the maximum allowed value. The default value is 9999.
+ MaxValue *int `json:"maxValue,omitempty"`
+}
+
+// GroupPolicyPresentationDropdownList Represents an ADMX dropdownList element and an ADMX enum element.
+type GroupPolicyPresentationDropdownList struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationDropdownList
+ GroupPolicyPresentation
+ // DefaultItem Localized string value identifying the default choice of the list of items.
+ DefaultItem *GroupPolicyPresentationDropdownListItem `json:"defaultItem,omitempty"`
+ // Items Represents a set of localized display names and their associated values.
+ Items []GroupPolicyPresentationDropdownListItem `json:"items,omitempty"`
+ // Required Requirement to enter a value in the parameter box. The default value is false.
+ Required *bool `json:"required,omitempty"`
+}
+
+// GroupPolicyPresentationDropdownListItem undocumented
+type GroupPolicyPresentationDropdownListItem struct {
+ // Object is the base model of GroupPolicyPresentationDropdownListItem
+ Object
+ // DisplayName Localized display name for the drop-down list item.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Value Associated value for the drop-down list item
+ Value *string `json:"value,omitempty"`
+}
+
+// GroupPolicyPresentationListBox Represents an ADMX listBox element and an ADMX list element.
+type GroupPolicyPresentationListBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationListBox
+ GroupPolicyPresentation
+ // ExplicitValue If this option is specified true the user must specify the registry subkey value and the registry subkey name. The list box shows two columns, one for the name and one for the data. The default value is false.
+ ExplicitValue *bool `json:"explicitValue,omitempty"`
+ // ValuePrefix undocumented
+ ValuePrefix *string `json:"valuePrefix,omitempty"`
+}
+
+// GroupPolicyPresentationLongDecimalTextBox Represents an ADMX longDecimalTextBox element and an ADMX longDecimal element.
+type GroupPolicyPresentationLongDecimalTextBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationLongDecimalTextBox
+ GroupPolicyPresentation
+ // DefaultValue An unsigned integer that specifies the initial value for the decimal text box. The default value is 1.
+ DefaultValue *int `json:"defaultValue,omitempty"`
+ // Spin If true, create a spin control; otherwise, create a text box for numeric entry. The default value is true.
+ Spin *bool `json:"spin,omitempty"`
+ // SpinStep An unsigned integer that specifies the increment of change for the spin control. The default value is 1.
+ SpinStep *int `json:"spinStep,omitempty"`
+ // Required Requirement to enter a value in the parameter box. The default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MinValue An unsigned long that specifies the minimum allowed value. The default value is 0.
+ MinValue *int `json:"minValue,omitempty"`
+ // MaxValue An unsigned long that specifies the maximum allowed value. The default value is 9999.
+ MaxValue *int `json:"maxValue,omitempty"`
+}
+
+// GroupPolicyPresentationMultiTextBox Represents an ADMX multiTextBox element and an ADMX multiText element.
+type GroupPolicyPresentationMultiTextBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationMultiTextBox
+ GroupPolicyPresentation
+ // Required Requirement to enter a value in the text box. Default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MaxLength An unsigned integer that specifies the maximum number of text characters. Default value is 1023.
+ MaxLength *int `json:"maxLength,omitempty"`
+ // MaxStrings An unsigned integer that specifies the maximum number of strings. Default value is 0.
+ MaxStrings *int `json:"maxStrings,omitempty"`
+}
+
+// GroupPolicyPresentationText Represents an ADMX text element.
+type GroupPolicyPresentationText struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationText
+ GroupPolicyPresentation
+}
+
+// GroupPolicyPresentationTextBox Represents an ADMX textBox element and an ADMX text element.
+type GroupPolicyPresentationTextBox struct {
+ // GroupPolicyPresentation is the base model of GroupPolicyPresentationTextBox
+ GroupPolicyPresentation
+ // DefaultValue Localized default string displayed in the text box. The default value is empty.
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // Required Requirement to enter a value in the text box. Default value is false.
+ Required *bool `json:"required,omitempty"`
+ // MaxLength An unsigned integer that specifies the maximum number of text characters. Default value is 1023.
+ MaxLength *int `json:"maxLength,omitempty"`
+}
+
+// GroupPolicyPresentationValue The base presentation value entity that stores the value for a single group policy presentation.
+type GroupPolicyPresentationValue struct {
+ // Entity is the base model of GroupPolicyPresentationValue
+ Entity
+ // LastModifiedDateTime The date and time the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // CreatedDateTime The date and time the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DefinitionValue undocumented
+ DefinitionValue *GroupPolicyDefinitionValue `json:"definitionValue,omitempty"`
+ // Presentation undocumented
+ Presentation *GroupPolicyPresentation `json:"presentation,omitempty"`
+}
+
+// GroupPolicyPresentationValueBoolean The entity represents a Boolean value of a checkbox presentation on a policy definition.
+type GroupPolicyPresentationValueBoolean struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueBoolean
+ GroupPolicyPresentationValue
+ // Value An boolean value for the associated presentation.
+ Value *bool `json:"value,omitempty"`
+}
+
+// GroupPolicyPresentationValueDecimal The entity represents an unsigned integer value of a decimal text box presentation on a policy definition.
+type GroupPolicyPresentationValueDecimal struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueDecimal
+ GroupPolicyPresentationValue
+ // Value An unsigned integer value for the associated presentation.
+ Value *int `json:"value,omitempty"`
+}
+
+// GroupPolicyPresentationValueList The entity represents a collection of name/value pairs of a list box presentation on a policy definition.
+type GroupPolicyPresentationValueList struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueList
+ GroupPolicyPresentationValue
+ // Values A list of pairs for the associated presentation.
+ Values []KeyValuePair `json:"values,omitempty"`
+}
+
+// GroupPolicyPresentationValueLongDecimal The entity represents an unsigned long value of a long decimal text box presentation on a policy definition.
+type GroupPolicyPresentationValueLongDecimal struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueLongDecimal
+ GroupPolicyPresentationValue
+ // Value An unsigned long value for the associated presentation.
+ Value *int `json:"value,omitempty"`
+}
+
+// GroupPolicyPresentationValueMultiText The entity represents a string value of a multi-line text box presentation on a policy definition.
+type GroupPolicyPresentationValueMultiText struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueMultiText
+ GroupPolicyPresentationValue
+ // Values A collection of non-empty strings for the associated presentation.
+ Values []string `json:"values,omitempty"`
+}
+
+// GroupPolicyPresentationValueText The entity represents a string value for a drop-down list, combo box, or text box presentation on a policy definition.
+type GroupPolicyPresentationValueText struct {
+ // GroupPolicyPresentationValue is the base model of GroupPolicyPresentationValueText
+ GroupPolicyPresentationValue
+ // Value A string value for the associated presentation.
+ Value *string `json:"value,omitempty"`
+}
+
+// GroupPolicySettingMapping The Group Policy setting to MDM/Intune mapping.
+type GroupPolicySettingMapping struct {
+ // Entity is the base model of GroupPolicySettingMapping
+ Entity
+ // ParentID Parent Id of the group policy setting.
+ ParentID *string `json:"parentId,omitempty"`
+ // ChildIDList List of Child Ids of the group policy setting.
+ ChildIDList []string `json:"childIdList,omitempty"`
+ // SettingName The name of this group policy setting.
+ SettingName *string `json:"settingName,omitempty"`
+ // SettingValue The value of this group policy setting.
+ SettingValue *string `json:"settingValue,omitempty"`
+ // SettingValueType The value type of this group policy setting.
+ SettingValueType *string `json:"settingValueType,omitempty"`
+ // SettingDisplayName The display name of this group policy setting.
+ SettingDisplayName *string `json:"settingDisplayName,omitempty"`
+ // SettingDisplayValue The display value of this group policy setting.
+ SettingDisplayValue *string `json:"settingDisplayValue,omitempty"`
+ // SettingDisplayValueType The display value type of this group policy setting.
+ SettingDisplayValueType *string `json:"settingDisplayValueType,omitempty"`
+ // SettingValueDisplayUnits The display units of this group policy setting value
+ SettingValueDisplayUnits *string `json:"settingValueDisplayUnits,omitempty"`
+ // SettingCategory The category the group policy setting is in.
+ SettingCategory *string `json:"settingCategory,omitempty"`
+ // MDMCspName The CSP name this group policy setting maps to.
+ MDMCspName *string `json:"mdmCspName,omitempty"`
+ // MDMSettingURI The MDM CSP URI this group policy setting maps to.
+ MDMSettingURI *string `json:"mdmSettingUri,omitempty"`
+ // MDMMinimumOSVersion The minimum OS version this mdm setting supports.
+ MDMMinimumOSVersion *int `json:"mdmMinimumOSVersion,omitempty"`
+ // SettingType The setting type (security or admx) of the Group Policy.
+ SettingType *GroupPolicySettingType `json:"settingType,omitempty"`
+ // IsMDMSupported Indicates if the setting is supported by Intune or not
+ IsMDMSupported *bool `json:"isMdmSupported,omitempty"`
+ // SettingScope The scope of the setting
+ SettingScope *GroupPolicySettingScope `json:"settingScope,omitempty"`
+ // IntuneSettingURIList The list of Intune Setting URIs this group policy setting maps to
+ IntuneSettingURIList []string `json:"intuneSettingUriList,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelHardware.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHardware.go
new file mode 100644
index 00000000..96db6e6a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHardware.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HardwareInformation undocumented
+type HardwareInformation struct {
+ // Object is the base model of HardwareInformation
+ Object
+ // SerialNumber Serial number.
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // TotalStorageSpace Total storage space of the device.
+ TotalStorageSpace *int `json:"totalStorageSpace,omitempty"`
+ // FreeStorageSpace Free storage space of the device.
+ FreeStorageSpace *int `json:"freeStorageSpace,omitempty"`
+ // Imei IMEI
+ Imei *string `json:"imei,omitempty"`
+ // Meid MEID
+ Meid *string `json:"meid,omitempty"`
+ // Manufacturer Manufacturer of the device
+ Manufacturer *string `json:"manufacturer,omitempty"`
+ // Model Model of the device
+ Model *string `json:"model,omitempty"`
+ // PhoneNumber Phone number of the device
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // SubscriberCarrier Subscriber carrier of the device
+ SubscriberCarrier *string `json:"subscriberCarrier,omitempty"`
+ // CellularTechnology Cellular technology of the device
+ CellularTechnology *string `json:"cellularTechnology,omitempty"`
+ // WiFiMac WiFi MAC address of the device
+ WiFiMac *string `json:"wifiMac,omitempty"`
+ // OperatingSystemLanguage Operating system language of the device
+ OperatingSystemLanguage *string `json:"operatingSystemLanguage,omitempty"`
+ // IsSupervised Supervised mode of the device
+ IsSupervised *bool `json:"isSupervised,omitempty"`
+ // IsEncrypted Encryption status of the device
+ IsEncrypted *bool `json:"isEncrypted,omitempty"`
+ // IsSharedDevice Shared iPad
+ IsSharedDevice *bool `json:"isSharedDevice,omitempty"`
+ // SharedDeviceCachedUsers All users on the shared Apple device
+ SharedDeviceCachedUsers []SharedAppleDeviceUser `json:"sharedDeviceCachedUsers,omitempty"`
+ // TpmSpecificationVersion String that specifies the specification version.
+ TpmSpecificationVersion *string `json:"tpmSpecificationVersion,omitempty"`
+ // OperatingSystemEdition String that specifies the OS edition.
+ OperatingSystemEdition *string `json:"operatingSystemEdition,omitempty"`
+ // DeviceFullQualifiedDomainName Returns the fully qualified domain name of the device (if any). If the device is not domain-joined, it returns an empty string.
+ DeviceFullQualifiedDomainName *string `json:"deviceFullQualifiedDomainName,omitempty"`
+ // DeviceGuardVirtualizationBasedSecurityHardwareRequirementState Virtualization-based security hardware requirement status.
+ DeviceGuardVirtualizationBasedSecurityHardwareRequirementState *DeviceGuardVirtualizationBasedSecurityHardwareRequirementState `json:"deviceGuardVirtualizationBasedSecurityHardwareRequirementState,omitempty"`
+ // DeviceGuardVirtualizationBasedSecurityState Virtualization-based security status.
+ DeviceGuardVirtualizationBasedSecurityState *DeviceGuardVirtualizationBasedSecurityState `json:"deviceGuardVirtualizationBasedSecurityState,omitempty"`
+ // DeviceGuardLocalSystemAuthorityCredentialGuardState Local System Authority (LSA) credential guard status.
+ DeviceGuardLocalSystemAuthorityCredentialGuardState *DeviceGuardLocalSystemAuthorityCredentialGuardState `json:"deviceGuardLocalSystemAuthorityCredentialGuardState,omitempty"`
+ // OsBuildNumber Operating System Build Number on Android device
+ OsBuildNumber *string `json:"osBuildNumber,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelHas.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHas.go
new file mode 100644
index 00000000..0c3c2d5d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHas.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HasPayloadLinkResultItem undocumented
+type HasPayloadLinkResultItem struct {
+ // Object is the base model of HasPayloadLinkResultItem
+ Object
+ // PayloadID Key of the Payload, In the format of Guid.
+ PayloadID *string `json:"payloadId,omitempty"`
+ // HasLink Indicate whether a payload has any link or not.
+ HasLink *bool `json:"hasLink,omitempty"`
+ // Error Exception information indicates if check for this item was successful or not.Empty string for no error.
+ Error *string `json:"error,omitempty"`
+ // Sources The reason where the link comes from.
+ Sources []DeviceAndAppManagementAssignmentSource `json:"sources,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelHashes.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHashes.go
new file mode 100644
index 00000000..dfc90cc9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHashes.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Hashes undocumented
+type Hashes struct {
+ // Object is the base model of Hashes
+ Object
+ // Crc32Hash undocumented
+ Crc32Hash *string `json:"crc32Hash,omitempty"`
+ // QuickXorHash undocumented
+ QuickXorHash *string `json:"quickXorHash,omitempty"`
+ // Sha1Hash undocumented
+ Sha1Hash *string `json:"sha1Hash,omitempty"`
+ // Sha256Hash undocumented
+ Sha256Hash *string `json:"sha256Hash,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelHost.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHost.go
new file mode 100644
index 00000000..74c5e610
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHost.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// HostSecurityProfile undocumented
+type HostSecurityProfile struct {
+ // Entity is the base model of HostSecurityProfile
+ Entity
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // Fqdn undocumented
+ Fqdn *string `json:"fqdn,omitempty"`
+ // IsAzureAdJoined undocumented
+ IsAzureAdJoined *bool `json:"isAzureAdJoined,omitempty"`
+ // IsAzureAdRegistered undocumented
+ IsAzureAdRegistered *bool `json:"isAzureAdRegistered,omitempty"`
+ // IsHybridAzureDomainJoined undocumented
+ IsHybridAzureDomainJoined *bool `json:"isHybridAzureDomainJoined,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // LogonUsers undocumented
+ LogonUsers []LogonUser `json:"logonUsers,omitempty"`
+ // NetBiosName undocumented
+ NetBiosName *string `json:"netBiosName,omitempty"`
+ // NetworkInterfaces undocumented
+ NetworkInterfaces []NetworkInterface `json:"networkInterfaces,omitempty"`
+ // Os undocumented
+ Os *string `json:"os,omitempty"`
+ // OsVersion undocumented
+ OsVersion *string `json:"osVersion,omitempty"`
+ // ParentHost undocumented
+ ParentHost *string `json:"parentHost,omitempty"`
+ // RelatedHostIDs undocumented
+ RelatedHostIDs []string `json:"relatedHostIds,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
+
+// HostSecurityState undocumented
+type HostSecurityState struct {
+ // Object is the base model of HostSecurityState
+ Object
+ // Fqdn undocumented
+ Fqdn *string `json:"fqdn,omitempty"`
+ // IsAzureAdJoined undocumented
+ IsAzureAdJoined *bool `json:"isAzureAdJoined,omitempty"`
+ // IsAzureAdRegistered undocumented
+ IsAzureAdRegistered *bool `json:"isAzureAdRegistered,omitempty"`
+ // IsHybridAzureDomainJoined undocumented
+ IsHybridAzureDomainJoined *bool `json:"isHybridAzureDomainJoined,omitempty"`
+ // NetBiosName undocumented
+ NetBiosName *string `json:"netBiosName,omitempty"`
+ // Os undocumented
+ Os *string `json:"os,omitempty"`
+ // PrivateIPAddress undocumented
+ PrivateIPAddress *string `json:"privateIpAddress,omitempty"`
+ // PublicIPAddress undocumented
+ PublicIPAddress *string `json:"publicIpAddress,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelHourly.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHourly.go
new file mode 100644
index 00000000..2326c168
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHourly.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// HourlySchedule undocumented
+type HourlySchedule struct {
+ // RunSchedule is the base model of HourlySchedule
+ RunSchedule
+ // Interval Interval in number of hours
+ Interval *int `json:"interval,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelHybrid.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHybrid.go
new file mode 100644
index 00000000..3ee7280c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelHybrid.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// HybridAgentUpdaterConfiguration undocumented
+type HybridAgentUpdaterConfiguration struct {
+ // Object is the base model of HybridAgentUpdaterConfiguration
+ Object
+ // DeferUpdateDateTime undocumented
+ DeferUpdateDateTime *time.Time `json:"deferUpdateDateTime,omitempty"`
+ // UpdateWindow undocumented
+ UpdateWindow *UpdateWindow `json:"updateWindow,omitempty"`
+ // AllowUpdateConfigurationOverride undocumented
+ AllowUpdateConfigurationOverride *bool `json:"allowUpdateConfigurationOverride,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIOS.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIOS.go
new file mode 100644
index 00000000..6f2f59c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIOS.go
@@ -0,0 +1,1227 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IOSBookmark undocumented
+type IOSBookmark struct {
+ // Object is the base model of IOSBookmark
+ Object
+ // URL URL allowed to access
+ URL *string `json:"url,omitempty"`
+ // BookmarkFolder The folder into which the bookmark should be added in Safari
+ BookmarkFolder *string `json:"bookmarkFolder,omitempty"`
+ // DisplayName The display name of the bookmark
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// IOSCertificateProfile Device Configuration.
+type IOSCertificateProfile struct {
+ // DeviceConfiguration is the base model of IOSCertificateProfile
+ DeviceConfiguration
+}
+
+// IOSCertificateProfileBase iOS certificate profile base.
+type IOSCertificateProfileBase struct {
+ // IOSCertificateProfile is the base model of IOSCertificateProfileBase
+ IOSCertificateProfile
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *AppleSubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+}
+
+// IOSCompliancePolicy This class contains compliance settings for IOS.
+type IOSCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of IOSCompliancePolicy
+ DeviceCompliancePolicy
+ // PasscodeBlockSimple Indicates whether or not to block simple passcodes.
+ PasscodeBlockSimple *bool `json:"passcodeBlockSimple,omitempty"`
+ // PasscodeExpirationDays Number of days before the passcode expires. Valid values 1 to 65535
+ PasscodeExpirationDays *int `json:"passcodeExpirationDays,omitempty"`
+ // PasscodeMinimumLength Minimum length of passcode. Valid values 4 to 14
+ PasscodeMinimumLength *int `json:"passcodeMinimumLength,omitempty"`
+ // PasscodeMinutesOfInactivityBeforeLock Minutes of inactivity before a passcode is required.
+ PasscodeMinutesOfInactivityBeforeLock *int `json:"passcodeMinutesOfInactivityBeforeLock,omitempty"`
+ // PasscodeMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasscodeMinutesOfInactivityBeforeScreenTimeout *int `json:"passcodeMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasscodePreviousPasscodeBlockCount Number of previous passcodes to block. Valid values 1 to 24
+ PasscodePreviousPasscodeBlockCount *int `json:"passcodePreviousPasscodeBlockCount,omitempty"`
+ // PasscodeMinimumCharacterSetCount The number of character sets required in the password.
+ PasscodeMinimumCharacterSetCount *int `json:"passcodeMinimumCharacterSetCount,omitempty"`
+ // PasscodeRequiredType The required passcode type.
+ PasscodeRequiredType *RequiredPasswordType `json:"passcodeRequiredType,omitempty"`
+ // PasscodeRequired Indicates whether or not to require a passcode.
+ PasscodeRequired *bool `json:"passcodeRequired,omitempty"`
+ // OsMinimumVersion Minimum IOS version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum IOS version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // OsMinimumBuildVersion Minimum IOS build version.
+ OsMinimumBuildVersion *string `json:"osMinimumBuildVersion,omitempty"`
+ // OsMaximumBuildVersion Maximum IOS build version.
+ OsMaximumBuildVersion *string `json:"osMaximumBuildVersion,omitempty"`
+ // SecurityBlockJailbrokenDevices Devices must not be jailbroken or rooted.
+ SecurityBlockJailbrokenDevices *bool `json:"securityBlockJailbrokenDevices,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection .
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // ManagedEmailProfileRequired Indicates whether or not to require a managed email profile.
+ ManagedEmailProfileRequired *bool `json:"managedEmailProfileRequired,omitempty"`
+ // RestrictedApps Require the device to not have the specified apps installed. This collection can contain a maximum of 100 elements.
+ RestrictedApps []AppListItem `json:"restrictedApps,omitempty"`
+}
+
+// IOSCustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the iosCustomConfiguration resource.
+type IOSCustomConfiguration struct {
+ // DeviceConfiguration is the base model of IOSCustomConfiguration
+ DeviceConfiguration
+ // PayloadName Name that is displayed to the user.
+ PayloadName *string `json:"payloadName,omitempty"`
+ // PayloadFileName Payload file name (*.mobileconfig | *.xml).
+ PayloadFileName *string `json:"payloadFileName,omitempty"`
+ // Payload Payload. (UTF8 encoded byte array)
+ Payload *Binary `json:"payload,omitempty"`
+}
+
+// IOSDerivedCredentialAuthenticationConfiguration iOS Derived Credential profile.
+type IOSDerivedCredentialAuthenticationConfiguration struct {
+ // DeviceConfiguration is the base model of IOSDerivedCredentialAuthenticationConfiguration
+ DeviceConfiguration
+ // DerivedCredentialSettings undocumented
+ DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"`
+}
+
+// IOSDeviceFeaturesConfiguration iOS Device Features Configuration Profile.
+type IOSDeviceFeaturesConfiguration struct {
+ // AppleDeviceFeaturesConfigurationBase is the base model of IOSDeviceFeaturesConfiguration
+ AppleDeviceFeaturesConfigurationBase
+ // AssetTagTemplate Asset tag information for the device, displayed on the login window and lock screen.
+ AssetTagTemplate *string `json:"assetTagTemplate,omitempty"`
+ // ContentFilterSettings Gets or sets iOS Web Content Filter settings, supervised mode only
+ ContentFilterSettings *IOSWebContentFilterBase `json:"contentFilterSettings,omitempty"`
+ // LockScreenFootnote A footnote displayed on the login window and lock screen. Available in iOS 9.3.1 and later.
+ LockScreenFootnote *string `json:"lockScreenFootnote,omitempty"`
+ // HomeScreenDockIcons A list of app and folders to appear on the Home Screen Dock. This collection can contain a maximum of 500 elements.
+ HomeScreenDockIcons []IOSHomeScreenItem `json:"homeScreenDockIcons,omitempty"`
+ // HomeScreenPages A list of pages on the Home Screen. This collection can contain a maximum of 500 elements.
+ HomeScreenPages []IOSHomeScreenPage `json:"homeScreenPages,omitempty"`
+ // NotificationSettings Notification settings for each bundle id. Applicable to devices in supervised mode only (iOS 9.3 and later). This collection can contain a maximum of 500 elements.
+ NotificationSettings []IOSNotificationSettings `json:"notificationSettings,omitempty"`
+ // SingleSignOnSettings The Kerberos login settings that enable apps on receiving devices to authenticate smoothly.
+ SingleSignOnSettings *IOSSingleSignOnSettings `json:"singleSignOnSettings,omitempty"`
+ // WallpaperDisplayLocation A wallpaper display location specifier.
+ WallpaperDisplayLocation *IOSWallpaperDisplayLocation `json:"wallpaperDisplayLocation,omitempty"`
+ // WallpaperImage A wallpaper image must be in either PNG or JPEG format. It requires a supervised device with iOS 8 or later version.
+ WallpaperImage *MimeContent `json:"wallpaperImage,omitempty"`
+ // SingleSignOnExtension Gets or sets a single sign-on extension profile.
+ SingleSignOnExtension *SingleSignOnExtension `json:"singleSignOnExtension,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *IOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+ // SingleSignOnExtensionPkinitCertificate undocumented
+ SingleSignOnExtensionPkinitCertificate *IOSCertificateProfileBase `json:"singleSignOnExtensionPkinitCertificate,omitempty"`
+}
+
+// IOSDeviceType undocumented
+type IOSDeviceType struct {
+ // Object is the base model of IOSDeviceType
+ Object
+ // IPad Whether the app should run on iPads.
+ IPad *bool `json:"iPad,omitempty"`
+ // IPhoneAndIPod Whether the app should run on iPhones and iPods.
+ IPhoneAndIPod *bool `json:"iPhoneAndIPod,omitempty"`
+}
+
+// IOSEasEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client on iOS devices to communicate with an Exchange server and get email, contacts, calendar, reminders, and notes. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type IOSEasEmailProfileConfiguration struct {
+ // EasEmailProfileConfigurationBase is the base model of IOSEasEmailProfileConfiguration
+ EasEmailProfileConfigurationBase
+ // AccountName Account name.
+ AccountName *string `json:"accountName,omitempty"`
+ // AuthenticationMethod Authentication method for this Email profile.
+ AuthenticationMethod *EasAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // BlockMovingMessagesToOtherEmailAccounts Indicates whether or not to block moving messages to other email accounts.
+ BlockMovingMessagesToOtherEmailAccounts *bool `json:"blockMovingMessagesToOtherEmailAccounts,omitempty"`
+ // BlockSendingEmailFromThirdPartyApps Indicates whether or not to block sending email from third party apps.
+ BlockSendingEmailFromThirdPartyApps *bool `json:"blockSendingEmailFromThirdPartyApps,omitempty"`
+ // BlockSyncingRecentlyUsedEmailAddresses Indicates whether or not to block syncing recently used email addresses, for instance - when composing new email.
+ BlockSyncingRecentlyUsedEmailAddresses *bool `json:"blockSyncingRecentlyUsedEmailAddresses,omitempty"`
+ // DurationOfEmailToSync Duration of time email should be synced back to.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // EasServices Exchange data to sync.
+ EasServices *EasServices `json:"easServices,omitempty"`
+ // EasServicesUserOverrideEnabled Allow users to change sync settings.
+ EasServicesUserOverrideEnabled *bool `json:"easServicesUserOverrideEnabled,omitempty"`
+ // HostName Exchange location that (URL) that the native mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSmime Indicates whether or not to use S/MIME certificate.
+ RequireSmime *bool `json:"requireSmime,omitempty"`
+ // SmimeEnablePerMessageSwitch Indicates whether or not to allow unencrypted emails.
+ SmimeEnablePerMessageSwitch *bool `json:"smimeEnablePerMessageSwitch,omitempty"`
+ // SmimeEncryptByDefaultEnabled If set to true S/MIME encryption is enabled by default.
+ SmimeEncryptByDefaultEnabled *bool `json:"smimeEncryptByDefaultEnabled,omitempty"`
+ // SmimeSigningEnabled If set to true S/MIME signing is enabled for this account
+ SmimeSigningEnabled *bool `json:"smimeSigningEnabled,omitempty"`
+ // SmimeSigningUserOverrideEnabled If set to true, the user can toggle S/MIME signing on or off.
+ SmimeSigningUserOverrideEnabled *bool `json:"smimeSigningUserOverrideEnabled,omitempty"`
+ // SmimeEncryptByDefaultUserOverrideEnabled If set to true, the user can toggle the encryption by default setting.
+ SmimeEncryptByDefaultUserOverrideEnabled *bool `json:"smimeEncryptByDefaultUserOverrideEnabled,omitempty"`
+ // SmimeSigningCertificateUserOverrideEnabled If set to true, the user can select the signing identity.
+ SmimeSigningCertificateUserOverrideEnabled *bool `json:"smimeSigningCertificateUserOverrideEnabled,omitempty"`
+ // SmimeEncryptionCertificateUserOverrideEnabled If set to true the user can select the S/MIME encryption identity.
+ SmimeEncryptionCertificateUserOverrideEnabled *bool `json:"smimeEncryptionCertificateUserOverrideEnabled,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+ // UseOAuth Specifies whether the connection should use OAuth for authentication.
+ UseOAuth *bool `json:"useOAuth,omitempty"`
+ // SigningCertificateType Signing Certificate type for this Email profile.
+ SigningCertificateType *EmailCertificateType `json:"signingCertificateType,omitempty"`
+ // EncryptionCertificateType Encryption Certificate type for this Email profile.
+ EncryptionCertificateType *EmailCertificateType `json:"encryptionCertificateType,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *IOSCertificateProfileBase `json:"identityCertificate,omitempty"`
+ // SmimeSigningCertificate undocumented
+ SmimeSigningCertificate *IOSCertificateProfile `json:"smimeSigningCertificate,omitempty"`
+ // SmimeEncryptionCertificate undocumented
+ SmimeEncryptionCertificate *IOSCertificateProfile `json:"smimeEncryptionCertificate,omitempty"`
+ // DerivedCredentialSettings undocumented
+ DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"`
+}
+
+// IOSEduCertificateSettings undocumented
+type IOSEduCertificateSettings struct {
+ // Object is the base model of IOSEduCertificateSettings
+ Object
+ // TrustedRootCertificate Trusted Root Certificate.
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+ // CertificationAuthority PKCS Certification Authority.
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name.
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name.
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+}
+
+// IOSEduDeviceConfiguration iOS Education device configuration
+type IOSEduDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of IOSEduDeviceConfiguration
+ DeviceConfiguration
+ // TeacherCertificateSettings The Trusted Root and PFX certificates for Teacher
+ TeacherCertificateSettings *IOSEduCertificateSettings `json:"teacherCertificateSettings,omitempty"`
+ // StudentCertificateSettings The Trusted Root and PFX certificates for Student
+ StudentCertificateSettings *IOSEduCertificateSettings `json:"studentCertificateSettings,omitempty"`
+ // DeviceCertificateSettings The Trusted Root and PFX certificates for Device
+ DeviceCertificateSettings *IOSEduCertificateSettings `json:"deviceCertificateSettings,omitempty"`
+}
+
+// IOSEducationDeviceConfiguration iOS Education configuration profile
+type IOSEducationDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of IOSEducationDeviceConfiguration
+ DeviceConfiguration
+}
+
+// IOSEnterpriseWiFiConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type IOSEnterpriseWiFiConfiguration struct {
+ // IOSWiFiConfiguration is the base model of IOSEnterpriseWiFiConfiguration
+ IOSWiFiConfiguration
+ // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *EapType `json:"eapType,omitempty"`
+ // EapFastConfiguration EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type.
+ EapFastConfiguration *EapFastConfiguration `json:"eapFastConfiguration,omitempty"`
+ // TrustedServerCertificateNames Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users' devices when they connect to this Wi-Fi network.
+ TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"`
+ // AuthenticationMethod Authentication Method when EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP - TTLS, EAP - FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this Wi-Fi connection using their real username is displayed as 'anonymous'.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // UsernameFormatString Username format string used to build the username to connect to wifi
+ UsernameFormatString *string `json:"usernameFormatString,omitempty"`
+ // PasswordFormatString Password format string used to build the password to connect to wifi
+ PasswordFormatString *string `json:"passwordFormatString,omitempty"`
+ // RootCertificatesForServerValidation undocumented
+ RootCertificatesForServerValidation []IOSTrustedRootCertificate `json:"rootCertificatesForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *IOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+ // DerivedCredentialSettings undocumented
+ DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"`
+}
+
+// IOSGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the iosGeneralDeviceConfiguration resource.
+type IOSGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of IOSGeneralDeviceConfiguration
+ DeviceConfiguration
+ // AccountBlockModification Indicates whether or not to allow account modification when the device is in supervised mode.
+ AccountBlockModification *bool `json:"accountBlockModification,omitempty"`
+ // ActivationLockAllowWhenSupervised Indicates whether or not to allow activation lock when the device is in the supervised mode.
+ ActivationLockAllowWhenSupervised *bool `json:"activationLockAllowWhenSupervised,omitempty"`
+ // AirDropBlocked Indicates whether or not to allow AirDrop when the device is in supervised mode.
+ AirDropBlocked *bool `json:"airDropBlocked,omitempty"`
+ // AirDropForceUnmanagedDropTarget Indicates whether or not to cause AirDrop to be considered an unmanaged drop target (iOS 9.0 and later).
+ AirDropForceUnmanagedDropTarget *bool `json:"airDropForceUnmanagedDropTarget,omitempty"`
+ // AirPlayForcePairingPasswordForOutgoingRequests Indicates whether or not to enforce all devices receiving AirPlay requests from this device to use a pairing password.
+ AirPlayForcePairingPasswordForOutgoingRequests *bool `json:"airPlayForcePairingPasswordForOutgoingRequests,omitempty"`
+ // AppleWatchBlockPairing Indicates whether or not to allow Apple Watch pairing when the device is in supervised mode (iOS 9.0 and later).
+ AppleWatchBlockPairing *bool `json:"appleWatchBlockPairing,omitempty"`
+ // AppleWatchForceWristDetection Indicates whether or not to force a paired Apple Watch to use Wrist Detection (iOS 8.2 and later).
+ AppleWatchForceWristDetection *bool `json:"appleWatchForceWristDetection,omitempty"`
+ // AppleNewsBlocked Indicates whether or not to block the user from using News when the device is in supervised mode (iOS 9.0 and later).
+ AppleNewsBlocked *bool `json:"appleNewsBlocked,omitempty"`
+ // AppsSingleAppModeList Gets or sets the list of iOS apps allowed to autonomously enter Single App Mode. Supervised only. iOS 7.0 and later. This collection can contain a maximum of 500 elements.
+ AppsSingleAppModeList []AppListItem `json:"appsSingleAppModeList,omitempty"`
+ // AppsVisibilityList List of apps in the visibility list (either visible/launchable apps list or hidden/unlaunchable apps list, controlled by AppsVisibilityListType) (iOS 9.3 and later). This collection can contain a maximum of 10000 elements.
+ AppsVisibilityList []AppListItem `json:"appsVisibilityList,omitempty"`
+ // AppsVisibilityListType Type of list that is in the AppsVisibilityList.
+ AppsVisibilityListType *AppListType `json:"appsVisibilityListType,omitempty"`
+ // AppStoreBlockAutomaticDownloads Indicates whether or not to block the automatic downloading of apps purchased on other devices when the device is in supervised mode (iOS 9.0 and later).
+ AppStoreBlockAutomaticDownloads *bool `json:"appStoreBlockAutomaticDownloads,omitempty"`
+ // AppStoreBlocked Indicates whether or not to block the user from using the App Store. Requires a supervised device for iOS 13 and later.
+ AppStoreBlocked *bool `json:"appStoreBlocked,omitempty"`
+ // AppStoreBlockInAppPurchases Indicates whether or not to block the user from making in app purchases.
+ AppStoreBlockInAppPurchases *bool `json:"appStoreBlockInAppPurchases,omitempty"`
+ // AppStoreBlockUIAppInstallation Indicates whether or not to block the App Store app, not restricting installation through Host apps. Applies to supervised mode only (iOS 9.0 and later).
+ AppStoreBlockUIAppInstallation *bool `json:"appStoreBlockUIAppInstallation,omitempty"`
+ // AppStoreRequirePassword Indicates whether or not to require a password when using the app store.
+ AppStoreRequirePassword *bool `json:"appStoreRequirePassword,omitempty"`
+ // AutoFillForceAuthentication Indicates whether or not to force user authentication before autofilling passwords and credit card information in Safari and other apps on supervised devices.
+ AutoFillForceAuthentication *bool `json:"autoFillForceAuthentication,omitempty"`
+ // BluetoothBlockModification Indicates whether or not to allow modification of Bluetooth settings when the device is in supervised mode (iOS 10.0 and later).
+ BluetoothBlockModification *bool `json:"bluetoothBlockModification,omitempty"`
+ // CameraBlocked Indicates whether or not to block the user from accessing the camera of the device. Requires a supervised device for iOS 13 and later.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // CellularBlockDataRoaming Indicates whether or not to block data roaming.
+ CellularBlockDataRoaming *bool `json:"cellularBlockDataRoaming,omitempty"`
+ // CellularBlockGlobalBackgroundFetchWhileRoaming Indicates whether or not to block global background fetch while roaming.
+ CellularBlockGlobalBackgroundFetchWhileRoaming *bool `json:"cellularBlockGlobalBackgroundFetchWhileRoaming,omitempty"`
+ // CellularBlockPerAppDataModification Indicates whether or not to allow changes to cellular app data usage settings when the device is in supervised mode.
+ CellularBlockPerAppDataModification *bool `json:"cellularBlockPerAppDataModification,omitempty"`
+ // CellularBlockPersonalHotspot Indicates whether or not to block Personal Hotspot.
+ CellularBlockPersonalHotspot *bool `json:"cellularBlockPersonalHotspot,omitempty"`
+ // CellularBlockPlanModification Indicates whether or not to allow users to change the settings of the cellular plan on a supervised device.
+ CellularBlockPlanModification *bool `json:"cellularBlockPlanModification,omitempty"`
+ // CellularBlockVoiceRoaming Indicates whether or not to block voice roaming.
+ CellularBlockVoiceRoaming *bool `json:"cellularBlockVoiceRoaming,omitempty"`
+ // CertificatesBlockUntrustedTLSCertificates Indicates whether or not to block untrusted TLS certificates.
+ CertificatesBlockUntrustedTLSCertificates *bool `json:"certificatesBlockUntrustedTlsCertificates,omitempty"`
+ // ClassroomAppBlockRemoteScreenObservation Indicates whether or not to allow remote screen observation by Classroom app when the device is in supervised mode (iOS 9.3 and later).
+ ClassroomAppBlockRemoteScreenObservation *bool `json:"classroomAppBlockRemoteScreenObservation,omitempty"`
+ // ClassroomAppForceUnpromptedScreenObservation Indicates whether or not to automatically give permission to the teacher of a managed course on the Classroom app to view a student's screen without prompting when the device is in supervised mode.
+ ClassroomAppForceUnpromptedScreenObservation *bool `json:"classroomAppForceUnpromptedScreenObservation,omitempty"`
+ // ClassroomForceAutomaticallyJoinClasses Indicates whether or not to automatically give permission to the teacher's requests, without prompting the student, when the device is in supervised mode.
+ ClassroomForceAutomaticallyJoinClasses *bool `json:"classroomForceAutomaticallyJoinClasses,omitempty"`
+ // ClassroomForceUnpromptedAppAndDeviceLock Indicates whether or not to allow the teacher to lock apps or the device without prompting the student. Supervised only.
+ ClassroomForceUnpromptedAppAndDeviceLock *bool `json:"classroomForceUnpromptedAppAndDeviceLock,omitempty"`
+ // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.
+ CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"`
+ // CompliantAppListType List that is in the AppComplianceList.
+ CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"`
+ // ConfigurationProfileBlockChanges Indicates whether or not to block the user from installing configuration profiles and certificates interactively when the device is in supervised mode.
+ ConfigurationProfileBlockChanges *bool `json:"configurationProfileBlockChanges,omitempty"`
+ // DefinitionLookupBlocked Indicates whether or not to block definition lookup when the device is in supervised mode (iOS 8.1.3 and later ).
+ DefinitionLookupBlocked *bool `json:"definitionLookupBlocked,omitempty"`
+ // DeviceBlockEnableRestrictions Indicates whether or not to allow the user to enables restrictions in the device settings when the device is in supervised mode.
+ DeviceBlockEnableRestrictions *bool `json:"deviceBlockEnableRestrictions,omitempty"`
+ // DeviceBlockEraseContentAndSettings Indicates whether or not to allow the use of the 'Erase all content and settings' option on the device when the device is in supervised mode.
+ DeviceBlockEraseContentAndSettings *bool `json:"deviceBlockEraseContentAndSettings,omitempty"`
+ // DeviceBlockNameModification Indicates whether or not to allow device name modification when the device is in supervised mode (iOS 9.0 and later).
+ DeviceBlockNameModification *bool `json:"deviceBlockNameModification,omitempty"`
+ // DiagnosticDataBlockSubmission Indicates whether or not to block diagnostic data submission.
+ DiagnosticDataBlockSubmission *bool `json:"diagnosticDataBlockSubmission,omitempty"`
+ // DiagnosticDataBlockSubmissionModification Indicates whether or not to allow diagnostics submission settings modification when the device is in supervised mode (iOS 9.3.2 and later).
+ DiagnosticDataBlockSubmissionModification *bool `json:"diagnosticDataBlockSubmissionModification,omitempty"`
+ // DocumentsBlockManagedDocumentsInUnmanagedApps Indicates whether or not to block the user from viewing managed documents in unmanaged apps.
+ DocumentsBlockManagedDocumentsInUnmanagedApps *bool `json:"documentsBlockManagedDocumentsInUnmanagedApps,omitempty"`
+ // DocumentsBlockUnmanagedDocumentsInManagedApps Indicates whether or not to block the user from viewing unmanaged documents in managed apps.
+ DocumentsBlockUnmanagedDocumentsInManagedApps *bool `json:"documentsBlockUnmanagedDocumentsInManagedApps,omitempty"`
+ // EmailInDomainSuffixes An email address lacking a suffix that matches any of these strings will be considered out-of-domain.
+ EmailInDomainSuffixes []string `json:"emailInDomainSuffixes,omitempty"`
+ // EnterpriseAppBlockTrust Indicates whether or not to block the user from trusting an enterprise app.
+ EnterpriseAppBlockTrust *bool `json:"enterpriseAppBlockTrust,omitempty"`
+ // EnterpriseAppBlockTrustModification Indicates whether or not to block the user from modifying the enterprise app trust settings.
+ EnterpriseAppBlockTrustModification *bool `json:"enterpriseAppBlockTrustModification,omitempty"`
+ // EsimBlockModification Indicates whether or not to allow the addition or removal of cellular plans on the eSIM of a supervised device.
+ EsimBlockModification *bool `json:"esimBlockModification,omitempty"`
+ // FaceTimeBlocked Indicates whether or not to block the user from using FaceTime. Requires a supervised device for iOS 13 and later.
+ FaceTimeBlocked *bool `json:"faceTimeBlocked,omitempty"`
+ // FindMyFriendsBlocked Indicates whether or not to block changes to Find My Friends when the device is in supervised mode.
+ FindMyFriendsBlocked *bool `json:"findMyFriendsBlocked,omitempty"`
+ // GamingBlockGameCenterFriends Indicates whether or not to block the user from having friends in Game Center. Requires a supervised device for iOS 13 and later.
+ GamingBlockGameCenterFriends *bool `json:"gamingBlockGameCenterFriends,omitempty"`
+ // GamingBlockMultiplayer Indicates whether or not to block the user from using multiplayer gaming. Requires a supervised device for iOS 13 and later.
+ GamingBlockMultiplayer *bool `json:"gamingBlockMultiplayer,omitempty"`
+ // GameCenterBlocked Indicates whether or not to block the user from using Game Center when the device is in supervised mode.
+ GameCenterBlocked *bool `json:"gameCenterBlocked,omitempty"`
+ // HostPairingBlocked indicates whether or not to allow host pairing to control the devices an iOS device can pair with when the iOS device is in supervised mode.
+ HostPairingBlocked *bool `json:"hostPairingBlocked,omitempty"`
+ // IBooksStoreBlocked Indicates whether or not to block the user from using the iBooks Store when the device is in supervised mode.
+ IBooksStoreBlocked *bool `json:"iBooksStoreBlocked,omitempty"`
+ // IBooksStoreBlockErotica Indicates whether or not to block the user from downloading media from the iBookstore that has been tagged as erotica.
+ IBooksStoreBlockErotica *bool `json:"iBooksStoreBlockErotica,omitempty"`
+ // ICloudBlockActivityContinuation Indicates whether or not to block the user from continuing work they started on iOS device to another iOS or macOS device.
+ ICloudBlockActivityContinuation *bool `json:"iCloudBlockActivityContinuation,omitempty"`
+ // ICloudBlockBackup Indicates whether or not to block iCloud backup. Requires a supervised device for iOS 13 and later.
+ ICloudBlockBackup *bool `json:"iCloudBlockBackup,omitempty"`
+ // ICloudBlockDocumentSync Indicates whether or not to block iCloud document sync. Requires a supervised device for iOS 13 and later.
+ ICloudBlockDocumentSync *bool `json:"iCloudBlockDocumentSync,omitempty"`
+ // ICloudBlockManagedAppsSync Indicates whether or not to block Managed Apps Cloud Sync.
+ ICloudBlockManagedAppsSync *bool `json:"iCloudBlockManagedAppsSync,omitempty"`
+ // ICloudBlockPhotoLibrary Indicates whether or not to block iCloud Photo Library.
+ ICloudBlockPhotoLibrary *bool `json:"iCloudBlockPhotoLibrary,omitempty"`
+ // ICloudBlockPhotoStreamSync Indicates whether or not to block iCloud Photo Stream Sync.
+ ICloudBlockPhotoStreamSync *bool `json:"iCloudBlockPhotoStreamSync,omitempty"`
+ // ICloudBlockSharedPhotoStream Indicates whether or not to block Shared Photo Stream.
+ ICloudBlockSharedPhotoStream *bool `json:"iCloudBlockSharedPhotoStream,omitempty"`
+ // ICloudRequireEncryptedBackup Indicates whether or not to require backups to iCloud be encrypted.
+ ICloudRequireEncryptedBackup *bool `json:"iCloudRequireEncryptedBackup,omitempty"`
+ // ITunesBlockExplicitContent Indicates whether or not to block the user from accessing explicit content in iTunes and the App Store. Requires a supervised device for iOS 13 and later.
+ ITunesBlockExplicitContent *bool `json:"iTunesBlockExplicitContent,omitempty"`
+ // ITunesBlockMusicService Indicates whether or not to block Music service and revert Music app to classic mode when the device is in supervised mode (iOS 9.3 and later and macOS 10.12 and later).
+ ITunesBlockMusicService *bool `json:"iTunesBlockMusicService,omitempty"`
+ // ITunesBlockRadio Indicates whether or not to block the user from using iTunes Radio when the device is in supervised mode (iOS 9.3 and later).
+ ITunesBlockRadio *bool `json:"iTunesBlockRadio,omitempty"`
+ // KeyboardBlockAutoCorrect Indicates whether or not to block keyboard auto-correction when the device is in supervised mode (iOS 8.1.3 and later).
+ KeyboardBlockAutoCorrect *bool `json:"keyboardBlockAutoCorrect,omitempty"`
+ // KeyboardBlockDictation Indicates whether or not to block the user from using dictation input when the device is in supervised mode.
+ KeyboardBlockDictation *bool `json:"keyboardBlockDictation,omitempty"`
+ // KeyboardBlockPredictive Indicates whether or not to block predictive keyboards when device is in supervised mode (iOS 8.1.3 and later).
+ KeyboardBlockPredictive *bool `json:"keyboardBlockPredictive,omitempty"`
+ // KeyboardBlockShortcuts Indicates whether or not to block keyboard shortcuts when the device is in supervised mode (iOS 9.0 and later).
+ KeyboardBlockShortcuts *bool `json:"keyboardBlockShortcuts,omitempty"`
+ // KeyboardBlockSpellCheck Indicates whether or not to block keyboard spell-checking when the device is in supervised mode (iOS 8.1.3 and later).
+ KeyboardBlockSpellCheck *bool `json:"keyboardBlockSpellCheck,omitempty"`
+ // KioskModeAllowAssistiveSpeak Indicates whether or not to allow assistive speak while in kiosk mode.
+ KioskModeAllowAssistiveSpeak *bool `json:"kioskModeAllowAssistiveSpeak,omitempty"`
+ // KioskModeAllowAssistiveTouchSettings Indicates whether or not to allow access to the Assistive Touch Settings while in kiosk mode.
+ KioskModeAllowAssistiveTouchSettings *bool `json:"kioskModeAllowAssistiveTouchSettings,omitempty"`
+ // KioskModeAllowAutoLock Indicates whether or not to allow device auto lock while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockAutoLock instead.
+ KioskModeAllowAutoLock *bool `json:"kioskModeAllowAutoLock,omitempty"`
+ // KioskModeBlockAutoLock Indicates whether or not to block device auto lock while in kiosk mode.
+ KioskModeBlockAutoLock *bool `json:"kioskModeBlockAutoLock,omitempty"`
+ // KioskModeAllowColorInversionSettings Indicates whether or not to allow access to the Color Inversion Settings while in kiosk mode.
+ KioskModeAllowColorInversionSettings *bool `json:"kioskModeAllowColorInversionSettings,omitempty"`
+ // KioskModeAllowRingerSwitch Indicates whether or not to allow use of the ringer switch while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockRingerSwitch instead.
+ KioskModeAllowRingerSwitch *bool `json:"kioskModeAllowRingerSwitch,omitempty"`
+ // KioskModeBlockRingerSwitch Indicates whether or not to block use of the ringer switch while in kiosk mode.
+ KioskModeBlockRingerSwitch *bool `json:"kioskModeBlockRingerSwitch,omitempty"`
+ // KioskModeAllowScreenRotation Indicates whether or not to allow screen rotation while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockScreenRotation instead.
+ KioskModeAllowScreenRotation *bool `json:"kioskModeAllowScreenRotation,omitempty"`
+ // KioskModeBlockScreenRotation Indicates whether or not to block screen rotation while in kiosk mode.
+ KioskModeBlockScreenRotation *bool `json:"kioskModeBlockScreenRotation,omitempty"`
+ // KioskModeAllowSleepButton Indicates whether or not to allow use of the sleep button while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockSleepButton instead.
+ KioskModeAllowSleepButton *bool `json:"kioskModeAllowSleepButton,omitempty"`
+ // KioskModeBlockSleepButton Indicates whether or not to block use of the sleep button while in kiosk mode.
+ KioskModeBlockSleepButton *bool `json:"kioskModeBlockSleepButton,omitempty"`
+ // KioskModeAllowTouchscreen Indicates whether or not to allow use of the touchscreen while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockTouchscreen instead.
+ KioskModeAllowTouchscreen *bool `json:"kioskModeAllowTouchscreen,omitempty"`
+ // KioskModeBlockTouchscreen Indicates whether or not to block use of the touchscreen while in kiosk mode.
+ KioskModeBlockTouchscreen *bool `json:"kioskModeBlockTouchscreen,omitempty"`
+ // KioskModeEnableVoiceControl Indicates whether or not to enable voice control in kiosk mode.
+ KioskModeEnableVoiceControl *bool `json:"kioskModeEnableVoiceControl,omitempty"`
+ // KioskModeAllowVoiceControlModification Indicates whether or not to allow the user to toggle voice control in kiosk mode.
+ KioskModeAllowVoiceControlModification *bool `json:"kioskModeAllowVoiceControlModification,omitempty"`
+ // KioskModeAllowVoiceOverSettings Indicates whether or not to allow access to the voice over settings while in kiosk mode.
+ KioskModeAllowVoiceOverSettings *bool `json:"kioskModeAllowVoiceOverSettings,omitempty"`
+ // KioskModeAllowVolumeButtons Indicates whether or not to allow use of the volume buttons while in kiosk mode. This property's functionality is redundant with the OS default and is deprecated. Use KioskModeBlockVolumeButtons instead.
+ KioskModeAllowVolumeButtons *bool `json:"kioskModeAllowVolumeButtons,omitempty"`
+ // KioskModeBlockVolumeButtons Indicates whether or not to block the volume buttons while in Kiosk Mode.
+ KioskModeBlockVolumeButtons *bool `json:"kioskModeBlockVolumeButtons,omitempty"`
+ // KioskModeAllowZoomSettings Indicates whether or not to allow access to the zoom settings while in kiosk mode.
+ KioskModeAllowZoomSettings *bool `json:"kioskModeAllowZoomSettings,omitempty"`
+ // KioskModeAppStoreURL URL in the app store to the app to use for kiosk mode. Use if KioskModeManagedAppId is not known.
+ KioskModeAppStoreURL *string `json:"kioskModeAppStoreUrl,omitempty"`
+ // KioskModeBuiltInAppID ID for built-in apps to use for kiosk mode. Used when KioskModeManagedAppId and KioskModeAppStoreUrl are not set.
+ KioskModeBuiltInAppID *string `json:"kioskModeBuiltInAppId,omitempty"`
+ // KioskModeRequireAssistiveTouch Indicates whether or not to require assistive touch while in kiosk mode.
+ KioskModeRequireAssistiveTouch *bool `json:"kioskModeRequireAssistiveTouch,omitempty"`
+ // KioskModeRequireColorInversion Indicates whether or not to require color inversion while in kiosk mode.
+ KioskModeRequireColorInversion *bool `json:"kioskModeRequireColorInversion,omitempty"`
+ // KioskModeRequireMonoAudio Indicates whether or not to require mono audio while in kiosk mode.
+ KioskModeRequireMonoAudio *bool `json:"kioskModeRequireMonoAudio,omitempty"`
+ // KioskModeRequireVoiceOver Indicates whether or not to require voice over while in kiosk mode.
+ KioskModeRequireVoiceOver *bool `json:"kioskModeRequireVoiceOver,omitempty"`
+ // KioskModeRequireZoom Indicates whether or not to require zoom while in kiosk mode.
+ KioskModeRequireZoom *bool `json:"kioskModeRequireZoom,omitempty"`
+ // KioskModeManagedAppID Managed app id of the app to use for kiosk mode. If KioskModeManagedAppId is specified then KioskModeAppStoreUrl will be ignored.
+ KioskModeManagedAppID *string `json:"kioskModeManagedAppId,omitempty"`
+ // LockScreenBlockControlCenter Indicates whether or not to block the user from using control center on the lock screen.
+ LockScreenBlockControlCenter *bool `json:"lockScreenBlockControlCenter,omitempty"`
+ // LockScreenBlockNotificationView Indicates whether or not to block the user from using the notification view on the lock screen.
+ LockScreenBlockNotificationView *bool `json:"lockScreenBlockNotificationView,omitempty"`
+ // LockScreenBlockPassbook Indicates whether or not to block the user from using passbook when the device is locked.
+ LockScreenBlockPassbook *bool `json:"lockScreenBlockPassbook,omitempty"`
+ // LockScreenBlockTodayView Indicates whether or not to block the user from using the Today View on the lock screen.
+ LockScreenBlockTodayView *bool `json:"lockScreenBlockTodayView,omitempty"`
+ // MediaContentRatingAustralia Media content rating settings for Australia
+ MediaContentRatingAustralia *MediaContentRatingAustralia `json:"mediaContentRatingAustralia,omitempty"`
+ // MediaContentRatingCanada Media content rating settings for Canada
+ MediaContentRatingCanada *MediaContentRatingCanada `json:"mediaContentRatingCanada,omitempty"`
+ // MediaContentRatingFrance Media content rating settings for France
+ MediaContentRatingFrance *MediaContentRatingFrance `json:"mediaContentRatingFrance,omitempty"`
+ // MediaContentRatingGermany Media content rating settings for Germany
+ MediaContentRatingGermany *MediaContentRatingGermany `json:"mediaContentRatingGermany,omitempty"`
+ // MediaContentRatingIreland Media content rating settings for Ireland
+ MediaContentRatingIreland *MediaContentRatingIreland `json:"mediaContentRatingIreland,omitempty"`
+ // MediaContentRatingJapan Media content rating settings for Japan
+ MediaContentRatingJapan *MediaContentRatingJapan `json:"mediaContentRatingJapan,omitempty"`
+ // MediaContentRatingNewZealand Media content rating settings for New Zealand
+ MediaContentRatingNewZealand *MediaContentRatingNewZealand `json:"mediaContentRatingNewZealand,omitempty"`
+ // MediaContentRatingUnitedKingdom Media content rating settings for United Kingdom
+ MediaContentRatingUnitedKingdom *MediaContentRatingUnitedKingdom `json:"mediaContentRatingUnitedKingdom,omitempty"`
+ // MediaContentRatingUnitedStates Media content rating settings for United States
+ MediaContentRatingUnitedStates *MediaContentRatingUnitedStates `json:"mediaContentRatingUnitedStates,omitempty"`
+ // NetworkUsageRules List of managed apps and the network rules that applies to them. This collection can contain a maximum of 1000 elements.
+ NetworkUsageRules []IOSNetworkUsageRule `json:"networkUsageRules,omitempty"`
+ // MediaContentRatingApps Media content rating settings for Apps
+ MediaContentRatingApps *RatingAppsType `json:"mediaContentRatingApps,omitempty"`
+ // MessagesBlocked Indicates whether or not to block the user from using the Messages app on the supervised device.
+ MessagesBlocked *bool `json:"messagesBlocked,omitempty"`
+ // NotificationsBlockSettingsModification Indicates whether or not to allow notifications settings modification (iOS 9.3 and later).
+ NotificationsBlockSettingsModification *bool `json:"notificationsBlockSettingsModification,omitempty"`
+ // PasscodeBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasscodeBlockFingerprintUnlock *bool `json:"passcodeBlockFingerprintUnlock,omitempty"`
+ // PasscodeBlockFingerprintModification Block modification of registered Touch ID fingerprints when in supervised mode.
+ PasscodeBlockFingerprintModification *bool `json:"passcodeBlockFingerprintModification,omitempty"`
+ // PasscodeBlockModification Indicates whether or not to allow passcode modification on the supervised device (iOS 9.0 and later).
+ PasscodeBlockModification *bool `json:"passcodeBlockModification,omitempty"`
+ // PasscodeBlockSimple Indicates whether or not to block simple passcodes.
+ PasscodeBlockSimple *bool `json:"passcodeBlockSimple,omitempty"`
+ // PasscodeExpirationDays Number of days before the passcode expires. Valid values 1 to 65535
+ PasscodeExpirationDays *int `json:"passcodeExpirationDays,omitempty"`
+ // PasscodeMinimumLength Minimum length of passcode. Valid values 4 to 14
+ PasscodeMinimumLength *int `json:"passcodeMinimumLength,omitempty"`
+ // PasscodeMinutesOfInactivityBeforeLock Minutes of inactivity before a passcode is required.
+ PasscodeMinutesOfInactivityBeforeLock *int `json:"passcodeMinutesOfInactivityBeforeLock,omitempty"`
+ // PasscodeMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before the screen times out.
+ PasscodeMinutesOfInactivityBeforeScreenTimeout *int `json:"passcodeMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasscodeMinimumCharacterSetCount Number of character sets a passcode must contain. Valid values 0 to 4
+ PasscodeMinimumCharacterSetCount *int `json:"passcodeMinimumCharacterSetCount,omitempty"`
+ // PasscodePreviousPasscodeBlockCount Number of previous passcodes to block. Valid values 1 to 24
+ PasscodePreviousPasscodeBlockCount *int `json:"passcodePreviousPasscodeBlockCount,omitempty"`
+ // PasscodeSignInFailureCountBeforeWipe Number of sign in failures allowed before wiping the device. Valid values 4 to 11
+ PasscodeSignInFailureCountBeforeWipe *int `json:"passcodeSignInFailureCountBeforeWipe,omitempty"`
+ // PasscodeRequiredType Type of passcode that is required.
+ PasscodeRequiredType *RequiredPasswordType `json:"passcodeRequiredType,omitempty"`
+ // PasscodeRequired Indicates whether or not to require a passcode.
+ PasscodeRequired *bool `json:"passcodeRequired,omitempty"`
+ // PodcastsBlocked Indicates whether or not to block the user from using podcasts on the supervised device (iOS 8.0 and later).
+ PodcastsBlocked *bool `json:"podcastsBlocked,omitempty"`
+ // ProximityBlockSetupToNewDevice Indicates whether or not to enable the prompt to setup nearby devices with a supervised device.
+ ProximityBlockSetupToNewDevice *bool `json:"proximityBlockSetupToNewDevice,omitempty"`
+ // SafariBlockAutofill Indicates whether or not to block the user from using Auto fill in Safari. Requires a supervised device for iOS 13 and later.
+ SafariBlockAutofill *bool `json:"safariBlockAutofill,omitempty"`
+ // SafariBlockJavaScript Indicates whether or not to block JavaScript in Safari.
+ SafariBlockJavaScript *bool `json:"safariBlockJavaScript,omitempty"`
+ // SafariBlockPopups Indicates whether or not to block popups in Safari.
+ SafariBlockPopups *bool `json:"safariBlockPopups,omitempty"`
+ // SafariBlocked Indicates whether or not to block the user from using Safari. Requires a supervised device for iOS 13 and later.
+ SafariBlocked *bool `json:"safariBlocked,omitempty"`
+ // SafariCookieSettings Cookie settings for Safari.
+ SafariCookieSettings *WebBrowserCookieSettings `json:"safariCookieSettings,omitempty"`
+ // SafariManagedDomains URLs matching the patterns listed here will be considered managed.
+ SafariManagedDomains []string `json:"safariManagedDomains,omitempty"`
+ // SafariPasswordAutoFillDomains Users can save passwords in Safari only from URLs matching the patterns listed here. Applies to devices in supervised mode (iOS 9.3 and later).
+ SafariPasswordAutoFillDomains []string `json:"safariPasswordAutoFillDomains,omitempty"`
+ // SafariRequireFraudWarning Indicates whether or not to require fraud warning in Safari.
+ SafariRequireFraudWarning *bool `json:"safariRequireFraudWarning,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to block the user from taking Screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // SiriBlocked Indicates whether or not to block the user from using Siri.
+ SiriBlocked *bool `json:"siriBlocked,omitempty"`
+ // SiriBlockedWhenLocked Indicates whether or not to block the user from using Siri when locked.
+ SiriBlockedWhenLocked *bool `json:"siriBlockedWhenLocked,omitempty"`
+ // SiriBlockUserGeneratedContent Indicates whether or not to block Siri from querying user-generated content when used on a supervised device.
+ SiriBlockUserGeneratedContent *bool `json:"siriBlockUserGeneratedContent,omitempty"`
+ // SiriRequireProfanityFilter Indicates whether or not to prevent Siri from dictating, or speaking profane language on supervised device.
+ SiriRequireProfanityFilter *bool `json:"siriRequireProfanityFilter,omitempty"`
+ // SoftwareUpdatesEnforcedDelayInDays Sets how many days a software update will be delyed for a supervised device. Valid values 0 to 90
+ SoftwareUpdatesEnforcedDelayInDays *int `json:"softwareUpdatesEnforcedDelayInDays,omitempty"`
+ // SoftwareUpdatesForceDelayed Indicates whether or not to delay user visibility of software updates when the device is in supervised mode.
+ SoftwareUpdatesForceDelayed *bool `json:"softwareUpdatesForceDelayed,omitempty"`
+ // SpotlightBlockInternetResults Indicates whether or not to block Spotlight search from returning internet results on supervised device.
+ SpotlightBlockInternetResults *bool `json:"spotlightBlockInternetResults,omitempty"`
+ // VoiceDialingBlocked Indicates whether or not to block voice dialing.
+ VoiceDialingBlocked *bool `json:"voiceDialingBlocked,omitempty"`
+ // WallpaperBlockModification Indicates whether or not to allow wallpaper modification on supervised device (iOS 9.0 and later) .
+ WallpaperBlockModification *bool `json:"wallpaperBlockModification,omitempty"`
+ // WiFiConnectOnlyToConfiguredNetworks Indicates whether or not to force the device to use only Wi-Fi networks from configuration profiles when the device is in supervised mode.
+ WiFiConnectOnlyToConfiguredNetworks *bool `json:"wiFiConnectOnlyToConfiguredNetworks,omitempty"`
+ // ClassroomForceRequestPermissionToLeaveClasses Indicates whether a student enrolled in an unmanaged course via Classroom will request permission from the teacher when attempting to leave the course (iOS 11.3 and later).
+ ClassroomForceRequestPermissionToLeaveClasses *bool `json:"classroomForceRequestPermissionToLeaveClasses,omitempty"`
+ // KeychainBlockCloudSync Indicates whether or not iCloud keychain synchronization is blocked. Requires a supervised device for iOS 13 and later.
+ KeychainBlockCloudSync *bool `json:"keychainBlockCloudSync,omitempty"`
+ // PkiBlockOTAUpdates Indicates whether or not over-the-air PKI updates are blocked. Setting this restriction to false does not disable CRL and OCSP checks (iOS 7.0 and later).
+ PkiBlockOTAUpdates *bool `json:"pkiBlockOTAUpdates,omitempty"`
+ // PrivacyForceLimitAdTracking Indicates if ad tracking is limited.(iOS 7.0 and later).
+ PrivacyForceLimitAdTracking *bool `json:"privacyForceLimitAdTracking,omitempty"`
+ // EnterpriseBookBlockBackup Indicates whether or not Enterprise book back up is blocked.
+ EnterpriseBookBlockBackup *bool `json:"enterpriseBookBlockBackup,omitempty"`
+ // EnterpriseBookBlockMetadataSync Indicates whether or not Enterprise book notes and highlights sync is blocked.
+ EnterpriseBookBlockMetadataSync *bool `json:"enterpriseBookBlockMetadataSync,omitempty"`
+ // AirPrintBlocked Indicates whether or not AirPrint is blocked (iOS 11.0 and later).
+ AirPrintBlocked *bool `json:"airPrintBlocked,omitempty"`
+ // AirPrintBlockCredentialsStorage Indicates whether or not keychain storage of username and password for Airprint is blocked (iOS 11.0 and later).
+ AirPrintBlockCredentialsStorage *bool `json:"airPrintBlockCredentialsStorage,omitempty"`
+ // AirPrintForceTrustedTLS Indicates if trusted certificates are required for TLS printing communication (iOS 11.0 and later).
+ AirPrintForceTrustedTLS *bool `json:"airPrintForceTrustedTLS,omitempty"`
+ // AirPrintBlockiBeaconDiscovery Indicates whether or not iBeacon discovery of AirPrint printers is blocked. This prevents spurious AirPrint Bluetooth beacons from phishing for network traffic (iOS 11.0 and later).
+ AirPrintBlockiBeaconDiscovery *bool `json:"airPrintBlockiBeaconDiscovery,omitempty"`
+ // FilesNetworkDriveAccessBlocked Indicates if devices can access files or other resources on a network server using the Server Message Block (SMB) protocol. Available for devices running iOS and iPadOS, versions 13.0 and later.
+ FilesNetworkDriveAccessBlocked *bool `json:"filesNetworkDriveAccessBlocked,omitempty"`
+ // FilesUsbDriveAccessBlocked Indicates if sevices with access can connect to and open files on a USB drive. Available for devices running iOS and iPadOS, versions 13.0 and later.
+ FilesUsbDriveAccessBlocked *bool `json:"filesUsbDriveAccessBlocked,omitempty"`
+ // WiFiPowerOnForced Indicates whether or not Wi-Fi remains on, even when device is in airplane mode. Available for devices running iOS and iPadOS, versions 13.0 and later.
+ WiFiPowerOnForced *bool `json:"wifiPowerOnForced,omitempty"`
+ // BlockSystemAppRemoval Indicates whether or not the removal of system apps from the device is blocked on a supervised device (iOS 11.0 and later).
+ BlockSystemAppRemoval *bool `json:"blockSystemAppRemoval,omitempty"`
+ // VPNBlockCreation Indicates whether or not the creation of VPN configurations is blocked (iOS 11.0 and later).
+ VPNBlockCreation *bool `json:"vpnBlockCreation,omitempty"`
+ // AppRemovalBlocked Indicates if the removal of apps is allowed.
+ AppRemovalBlocked *bool `json:"appRemovalBlocked,omitempty"`
+ // UsbRestrictedModeBlocked Indicates if connecting to USB accessories while the device is locked is allowed (iOS 11.4.1 and later).
+ UsbRestrictedModeBlocked *bool `json:"usbRestrictedModeBlocked,omitempty"`
+ // PasswordBlockAutoFill Indicates if the AutoFill passwords feature is allowed (iOS 12.0 and later).
+ PasswordBlockAutoFill *bool `json:"passwordBlockAutoFill,omitempty"`
+ // PasswordBlockProximityRequests Indicates whether or not to block requesting passwords from nearby devices (iOS 12.0 and later).
+ PasswordBlockProximityRequests *bool `json:"passwordBlockProximityRequests,omitempty"`
+ // PasswordBlockAirDropSharing Indicates whether or not to block sharing passwords with the AirDrop passwords feature iOS 12.0 and later).
+ PasswordBlockAirDropSharing *bool `json:"passwordBlockAirDropSharing,omitempty"`
+ // DateAndTimeForceSetAutomatically Indicates whether or not the Date and Time "Set Automatically" feature is enabled and cannot be turned off by the user (iOS 12.0 and later).
+ DateAndTimeForceSetAutomatically *bool `json:"dateAndTimeForceSetAutomatically,omitempty"`
+ // ContactsAllowManagedToUnmanagedWrite Indicates whether or not managed apps can write contacts to unmanaged contacts accounts (iOS 12.0 and later).
+ ContactsAllowManagedToUnmanagedWrite *bool `json:"contactsAllowManagedToUnmanagedWrite,omitempty"`
+ // ContactsAllowUnmanagedToManagedRead Indicates whether or not unmanaged apps can read from managed contacts accounts (iOS 12.0 or later).
+ ContactsAllowUnmanagedToManagedRead *bool `json:"contactsAllowUnmanagedToManagedRead,omitempty"`
+ // CellularBlockPersonalHotspotModification Indicates whether or not to block the user from modifying the personal hotspot setting (iOS 12.2 or later).
+ CellularBlockPersonalHotspotModification *bool `json:"cellularBlockPersonalHotspotModification,omitempty"`
+ // ContinuousPathKeyboardBlocked Indicates whether or not to block the continuous path keyboard when the device is supervised (iOS 13 or later).
+ ContinuousPathKeyboardBlocked *bool `json:"continuousPathKeyboardBlocked,omitempty"`
+ // FindMyDeviceInFindMyAppBlocked Indicates whether or not to block Find My Device when the device is supervised (iOS 13 or later).
+ FindMyDeviceInFindMyAppBlocked *bool `json:"findMyDeviceInFindMyAppBlocked,omitempty"`
+ // FindMyFriendsInFindMyAppBlocked Indicates whether or not to block Find My Friends when the device is supervised (iOS 13 or later).
+ FindMyFriendsInFindMyAppBlocked *bool `json:"findMyFriendsInFindMyAppBlocked,omitempty"`
+ // ITunesBlocked Indicates whether or not to block the iTunes app. Requires a supervised device for iOS 13 and later.
+ ITunesBlocked *bool `json:"iTunesBlocked,omitempty"`
+}
+
+// IOSHomeScreenApp undocumented
+type IOSHomeScreenApp struct {
+ // IOSHomeScreenItem is the base model of IOSHomeScreenApp
+ IOSHomeScreenItem
+ // BundleID BundleID of app
+ BundleID *string `json:"bundleID,omitempty"`
+}
+
+// IOSHomeScreenFolder undocumented
+type IOSHomeScreenFolder struct {
+ // IOSHomeScreenItem is the base model of IOSHomeScreenFolder
+ IOSHomeScreenItem
+ // Pages Pages of Home Screen Layout Icons which must be Application Type. This collection can contain a maximum of 500 elements.
+ Pages []IOSHomeScreenFolderPage `json:"pages,omitempty"`
+}
+
+// IOSHomeScreenFolderPage undocumented
+type IOSHomeScreenFolderPage struct {
+ // Object is the base model of IOSHomeScreenFolderPage
+ Object
+ // DisplayName Name of the folder page
+ DisplayName *string `json:"displayName,omitempty"`
+ // Apps A list of apps to appear on a page within a folder. This collection can contain a maximum of 500 elements.
+ Apps []IOSHomeScreenApp `json:"apps,omitempty"`
+}
+
+// IOSHomeScreenItem undocumented
+type IOSHomeScreenItem struct {
+ // Object is the base model of IOSHomeScreenItem
+ Object
+ // DisplayName Name of the app
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// IOSHomeScreenPage undocumented
+type IOSHomeScreenPage struct {
+ // Object is the base model of IOSHomeScreenPage
+ Object
+ // DisplayName Name of the page
+ DisplayName *string `json:"displayName,omitempty"`
+ // Icons A list of apps and folders to appear on a page. This collection can contain a maximum of 500 elements.
+ Icons []IOSHomeScreenItem `json:"icons,omitempty"`
+}
+
+// IOSImportedPFXCertificateProfile iOS PFX Import certificate profile
+type IOSImportedPFXCertificateProfile struct {
+ // IOSCertificateProfile is the base model of IOSImportedPFXCertificateProfile
+ IOSCertificateProfile
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// IOSKerberosSingleSignOnExtension undocumented
+type IOSKerberosSingleSignOnExtension struct {
+ // KerberosSingleSignOnExtension is the base model of IOSKerberosSingleSignOnExtension
+ KerberosSingleSignOnExtension
+}
+
+// IOSLobApp Contains properties and inherited properties for iOS Line Of Business apps.
+type IOSLobApp struct {
+ // MobileLobApp is the base model of IOSLobApp
+ MobileLobApp
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // ApplicableDeviceType The iOS architecture for which this app can run on.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // ExpirationDateTime The expiration time.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // VersionNumber The version number of iOS Line of Business (LoB) app.
+ VersionNumber *string `json:"versionNumber,omitempty"`
+ // BuildNumber The build number of iOS Line of Business (LoB) app.
+ BuildNumber *string `json:"buildNumber,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
+
+// IOSLobAppAssignmentSettings undocumented
+type IOSLobAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of IOSLobAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // VPNConfigurationID The VPN Configuration Id to apply for this app.
+ VPNConfigurationID *string `json:"vpnConfigurationId,omitempty"`
+ // UninstallOnDeviceRemoval Whether or not to uninstall the app when device is removed from Intune.
+ UninstallOnDeviceRemoval *bool `json:"uninstallOnDeviceRemoval,omitempty"`
+}
+
+// IOSLobAppProvisioningConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the iOS Lob App Provisioning Configuration resource.
+type IOSLobAppProvisioningConfiguration struct {
+ // Entity is the base model of IOSLobAppProvisioningConfiguration
+ Entity
+ // ExpirationDateTime Optional profile expiration date and time.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // PayloadFileName Payload file name (*.mobileprovision | *.xml).
+ PayloadFileName *string `json:"payloadFileName,omitempty"`
+ // Payload Payload. (UTF8 encoded byte array)
+ Payload *Binary `json:"payload,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this iOS LOB app provisioning configuration entity.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+ // GroupAssignments undocumented
+ GroupAssignments []MobileAppProvisioningConfigGroupAssignment `json:"groupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []IOSLobAppProvisioningConfigurationAssignment `json:"assignments,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []ManagedDeviceMobileAppConfigurationDeviceStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []ManagedDeviceMobileAppConfigurationUserStatus `json:"userStatuses,omitempty"`
+}
+
+// IOSLobAppProvisioningConfigurationAssignment A class containing the properties used for Group Assignment of an iOS LOB App Provisioning and Configuration.
+type IOSLobAppProvisioningConfigurationAssignment struct {
+ // Entity is the base model of IOSLobAppProvisioningConfigurationAssignment
+ Entity
+ // Target The target group assignment defined by the admin.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// IOSLobAppProvisioningConfigurationPolicySetItem A class containing the properties used for iOS lob app provisioning configuration PolicySetItem.
+type IOSLobAppProvisioningConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of IOSLobAppProvisioningConfigurationPolicySetItem
+ PolicySetItem
+}
+
+// IOSManagedAppProtection Policy used to configure detailed management settings targeted to specific security groups and for a specified set of apps on an iOS device
+type IOSManagedAppProtection struct {
+ // TargetedManagedAppProtection is the base model of IOSManagedAppProtection
+ TargetedManagedAppProtection
+ // AppDataEncryptionType Type of encryption which should be used for data in a managed app.
+ AppDataEncryptionType *ManagedAppDataEncryptionType `json:"appDataEncryptionType,omitempty"`
+ // MinimumRequiredSdkVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumRequiredSdkVersion *string `json:"minimumRequiredSdkVersion,omitempty"`
+ // DeployedAppCount Count of apps to which the current policy is deployed.
+ DeployedAppCount *int `json:"deployedAppCount,omitempty"`
+ // FaceIDBlocked Indicates whether use of the FaceID is allowed in place of a pin if PinRequired is set to True.
+ FaceIDBlocked *bool `json:"faceIdBlocked,omitempty"`
+ // ExemptedAppProtocols Apps in this list will be exempt from the policy and will be able to receive data from managed apps.
+ ExemptedAppProtocols []KeyValuePair `json:"exemptedAppProtocols,omitempty"`
+ // MinimumWipeSdkVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumWipeSdkVersion *string `json:"minimumWipeSdkVersion,omitempty"`
+ // AllowedIOSDeviceModels Semicolon seperated list of device models allowed, as a string, for the managed app to work.
+ AllowedIOSDeviceModels *string `json:"allowedIosDeviceModels,omitempty"`
+ // AppActionIfIOSDeviceModelNotAllowed Defines a managed app behavior, either block or wipe, if the specified device model is not allowed.
+ AppActionIfIOSDeviceModelNotAllowed *ManagedAppRemediationAction `json:"appActionIfIosDeviceModelNotAllowed,omitempty"`
+ // ThirdPartyKeyboardsBlocked Defines if third party keyboards are allowed while accessing a managed app
+ ThirdPartyKeyboardsBlocked *bool `json:"thirdPartyKeyboardsBlocked,omitempty"`
+ // FilterOpenInToOnlyManagedApps Defines if open-in operation is supported from the managed app to the filesharing locations selected. This setting only applies when AllowedOutboundDataTransferDestinations is set to ManagedApps and DisableProtectionOfManagedOutboundOpenInData is set to False.
+ FilterOpenInToOnlyManagedApps *bool `json:"filterOpenInToOnlyManagedApps,omitempty"`
+ // DisableProtectionOfManagedOutboundOpenInData Disable protection of data transferred to other apps through IOS OpenIn option. This setting is only allowed to be True when AllowedOutboundDataTransferDestinations is set to ManagedApps.
+ DisableProtectionOfManagedOutboundOpenInData *bool `json:"disableProtectionOfManagedOutboundOpenInData,omitempty"`
+ // ProtectInboundDataFromUnknownSources Protect incoming data from unknown source. This setting is only allowed to be True when AllowedInboundDataTransferSources is set to AllApps.
+ ProtectInboundDataFromUnknownSources *bool `json:"protectInboundDataFromUnknownSources,omitempty"`
+ // CustomBrowserProtocol A custom browser protocol to open weblink on iOS.
+ CustomBrowserProtocol *string `json:"customBrowserProtocol,omitempty"`
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+ // DeploymentSummary undocumented
+ DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"`
+}
+
+// IOSManagedAppRegistration Represents the synchronization details of an ios app, with management capabilities, for a specific user.
+type IOSManagedAppRegistration struct {
+ // ManagedAppRegistration is the base model of IOSManagedAppRegistration
+ ManagedAppRegistration
+}
+
+// IOSMinimumOperatingSystem undocumented
+type IOSMinimumOperatingSystem struct {
+ // Object is the base model of IOSMinimumOperatingSystem
+ Object
+ // V8_0 Version 8.0 or later.
+ V8_0 *bool `json:"v8_0,omitempty"`
+ // V9_0 Version 9.0 or later.
+ V9_0 *bool `json:"v9_0,omitempty"`
+ // V10_0 Version 10.0 or later.
+ V10_0 *bool `json:"v10_0,omitempty"`
+ // V11_0 Version 11.0 or later.
+ V11_0 *bool `json:"v11_0,omitempty"`
+ // V12_0 Version 12.0 or later.
+ V12_0 *bool `json:"v12_0,omitempty"`
+ // V13_0 Version 13.0 or later.
+ V13_0 *bool `json:"v13_0,omitempty"`
+}
+
+// IOSMobileAppConfiguration Contains properties, inherited properties and actions for iOS mobile app configurations.
+type IOSMobileAppConfiguration struct {
+ // ManagedDeviceMobileAppConfiguration is the base model of IOSMobileAppConfiguration
+ ManagedDeviceMobileAppConfiguration
+ // EncodedSettingXML mdm app configuration Base64 binary.
+ EncodedSettingXML *Binary `json:"encodedSettingXml,omitempty"`
+ // Settings app configuration setting items.
+ Settings []AppConfigurationSettingItem `json:"settings,omitempty"`
+}
+
+// IOSMobileAppIdentifier undocumented
+type IOSMobileAppIdentifier struct {
+ // MobileAppIdentifier is the base model of IOSMobileAppIdentifier
+ MobileAppIdentifier
+ // BundleID The identifier for an app, as specified in the app store.
+ BundleID *string `json:"bundleId,omitempty"`
+}
+
+// IOSNetworkUsageRule undocumented
+type IOSNetworkUsageRule struct {
+ // Object is the base model of IOSNetworkUsageRule
+ Object
+ // ManagedApps Information about the managed apps that this rule is going to apply to. This collection can contain a maximum of 500 elements.
+ ManagedApps []AppListItem `json:"managedApps,omitempty"`
+ // CellularDataBlockWhenRoaming If set to true, corresponding managed apps will not be allowed to use cellular data when roaming.
+ CellularDataBlockWhenRoaming *bool `json:"cellularDataBlockWhenRoaming,omitempty"`
+ // CellularDataBlocked If set to true, corresponding managed apps will not be allowed to use cellular data at any time.
+ CellularDataBlocked *bool `json:"cellularDataBlocked,omitempty"`
+}
+
+// IOSNotificationSettings undocumented
+type IOSNotificationSettings struct {
+ // Object is the base model of IOSNotificationSettings
+ Object
+ // BundleID Bundle id of app to which to apply these notification settings.
+ BundleID *string `json:"bundleID,omitempty"`
+ // AppName Application name to be associated with the bundleID.
+ AppName *string `json:"appName,omitempty"`
+ // Publisher Publisher to be associated with the bundleID.
+ Publisher *string `json:"publisher,omitempty"`
+ // Enabled Indicates whether notifications are allowed for this app.
+ Enabled *bool `json:"enabled,omitempty"`
+ // ShowInNotificationCenter Indicates whether notifications can be shown in notification center.
+ ShowInNotificationCenter *bool `json:"showInNotificationCenter,omitempty"`
+ // ShowOnLockScreen Indicates whether notifications can be shown on the lock screen.
+ ShowOnLockScreen *bool `json:"showOnLockScreen,omitempty"`
+ // AlertType Indicates the type of alert for notifications for this app.
+ AlertType *IOSNotificationAlertType `json:"alertType,omitempty"`
+ // BadgesEnabled Indicates whether badges are allowed for this app.
+ BadgesEnabled *bool `json:"badgesEnabled,omitempty"`
+ // SoundsEnabled Indicates whether sounds are allowed for this app.
+ SoundsEnabled *bool `json:"soundsEnabled,omitempty"`
+}
+
+// IOSPkcsCertificateProfile iOS PKCS certificate profile.
+type IOSPkcsCertificateProfile struct {
+ // IOSCertificateProfileBase is the base model of IOSPkcsCertificateProfile
+ IOSCertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority.
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name.
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name.
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// IOSScepCertificateProfile iOS SCEP certificate profile.
+type IOSScepCertificateProfile struct {
+ // IOSCertificateProfileBase is the base model of IOSScepCertificateProfile
+ IOSCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s).
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage.
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size.
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *IOSTrustedRootCertificate `json:"rootCertificate,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// IOSSingleSignOnSettings undocumented
+type IOSSingleSignOnSettings struct {
+ // Object is the base model of IOSSingleSignOnSettings
+ Object
+ // AllowedAppsList List of app identifiers that are allowed to use this login. If this field is omitted, the login applies to all applications on the device. This collection can contain a maximum of 500 elements.
+ AllowedAppsList []AppListItem `json:"allowedAppsList,omitempty"`
+ // AllowedUrls List of HTTP URLs that must be matched in order to use this login. With iOS 9.0 or later, a wildcard characters may be used.
+ AllowedUrls []string `json:"allowedUrls,omitempty"`
+ // DisplayName The display name of login settings shown on the receiving device.
+ DisplayName *string `json:"displayName,omitempty"`
+ // KerberosPrincipalName A Kerberos principal name. If not provided, the user is prompted for one during profile installation.
+ KerberosPrincipalName *string `json:"kerberosPrincipalName,omitempty"`
+ // KerberosRealm A Kerberos realm name. Case sensitive.
+ KerberosRealm *string `json:"kerberosRealm,omitempty"`
+}
+
+// IOSStoreApp Contains properties and inherited properties for iOS store apps.
+type IOSStoreApp struct {
+ // MobileApp is the base model of IOSStoreApp
+ MobileApp
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // AppStoreURL The Apple App Store URL
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // ApplicableDeviceType The iOS architecture for which this app can run on.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+}
+
+// IOSStoreAppAssignmentSettings undocumented
+type IOSStoreAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of IOSStoreAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // VPNConfigurationID The VPN Configuration Id to apply for this app.
+ VPNConfigurationID *string `json:"vpnConfigurationId,omitempty"`
+ // UninstallOnDeviceRemoval Whether or not to uninstall the app when device is removed from Intune.
+ UninstallOnDeviceRemoval *bool `json:"uninstallOnDeviceRemoval,omitempty"`
+}
+
+// IOSTrustedRootCertificate iOS Trusted Root Certificate configuration profile.
+type IOSTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of IOSTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate.
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
+
+// IOSUpdateConfiguration IOS Update Configuration, allows you to configure time window within week to install iOS updates
+type IOSUpdateConfiguration struct {
+ // DeviceConfiguration is the base model of IOSUpdateConfiguration
+ DeviceConfiguration
+ // IsEnabled Is setting enabled in UI
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // ActiveHoursStart Active Hours Start (active hours mean the time window when updates install should not happen)
+ ActiveHoursStart *TimeOfDay `json:"activeHoursStart,omitempty"`
+ // ActiveHoursEnd Active Hours End (active hours mean the time window when updates install should not happen)
+ ActiveHoursEnd *TimeOfDay `json:"activeHoursEnd,omitempty"`
+ // ScheduledInstallDays Days in week for which active hours are configured. This collection can contain a maximum of 7 elements.
+ ScheduledInstallDays []DayOfWeek `json:"scheduledInstallDays,omitempty"`
+ // UtcTimeOffsetInMinutes UTC Time Offset indicated in minutes
+ UtcTimeOffsetInMinutes *int `json:"utcTimeOffsetInMinutes,omitempty"`
+ // EnforcedSoftwareUpdateDelayInDays Days before software updates are visible to iOS devices ranging from 0 to 90 inclusive
+ EnforcedSoftwareUpdateDelayInDays *int `json:"enforcedSoftwareUpdateDelayInDays,omitempty"`
+}
+
+// IOSUpdateDeviceStatus undocumented
+type IOSUpdateDeviceStatus struct {
+ // Entity is the base model of IOSUpdateDeviceStatus
+ Entity
+ // InstallStatus The installation status of the policy report.
+ InstallStatus *IOSUpdatesInstallStatus `json:"installStatus,omitempty"`
+ // OsVersion The device version that is being reported.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // DeviceID The device id that is being reported.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // UserID The User id that is being reported.
+ UserID *string `json:"userId,omitempty"`
+ // DeviceDisplayName Device name of the DevicePolicyStatus.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // Platform Platform of the device that is being reported
+ Platform *int `json:"platform,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// IOSVPNConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type IOSVPNConfiguration struct {
+ // AppleVPNConfiguration is the base model of IOSVPNConfiguration
+ AppleVPNConfiguration
+ // ProviderType Provider type for per-app VPN.
+ ProviderType *VPNProviderType `json:"providerType,omitempty"`
+ // UserDomain Zscaler only. Enter a static domain to pre-populate the login field with in the Zscaler app. If this is left empty, the user's Azure Active Directory domain will be used instead.
+ UserDomain *string `json:"userDomain,omitempty"`
+ // StrictEnforcement Zscaler only. Blocks network traffic until the user signs into Zscaler app. "True" means traffic is blocked.
+ StrictEnforcement *bool `json:"strictEnforcement,omitempty"`
+ // CloudName Zscaler only. Zscaler cloud which the user is assigned to.
+ CloudName *string `json:"cloudName,omitempty"`
+ // ExcludeList Zscaler only. List of network addresses which are not sent through the Zscaler cloud.
+ ExcludeList []string `json:"excludeList,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *IOSCertificateProfileBase `json:"identityCertificate,omitempty"`
+ // DerivedCredentialSettings undocumented
+ DerivedCredentialSettings *DeviceManagementDerivedCredentialSettings `json:"derivedCredentialSettings,omitempty"`
+}
+
+// IOSVPNSecurityAssociationParameters undocumented
+type IOSVPNSecurityAssociationParameters struct {
+ // Object is the base model of IOSVPNSecurityAssociationParameters
+ Object
+ // SecurityEncryptionAlgorithm Encryption algorithm
+ SecurityEncryptionAlgorithm *VPNEncryptionAlgorithmType `json:"securityEncryptionAlgorithm,omitempty"`
+ // SecurityIntegrityAlgorithm Integrity algorithm
+ SecurityIntegrityAlgorithm *VPNIntegrityAlgorithmType `json:"securityIntegrityAlgorithm,omitempty"`
+ // SecurityDiffieHellmanGroup Diffie-Hellman Group
+ SecurityDiffieHellmanGroup *int `json:"securityDiffieHellmanGroup,omitempty"`
+ // LifetimeInMinutes Lifetime (minutes)
+ LifetimeInMinutes *int `json:"lifetimeInMinutes,omitempty"`
+}
+
+// IOSVPPApp Contains properties and inherited properties for iOS Volume-Purchased Program (VPP) Apps.
+type IOSVPPApp struct {
+ // MobileApp is the base model of IOSVPPApp
+ MobileApp
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of VPP licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // ReleaseDateTime The VPP application release date and time.
+ ReleaseDateTime *time.Time `json:"releaseDateTime,omitempty"`
+ // AppStoreURL The store URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // LicensingType The supported License Type.
+ LicensingType *VPPLicensingType `json:"licensingType,omitempty"`
+ // ApplicableDeviceType The applicable iOS Device Type.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // VPPTokenOrganizationName The organization associated with the Apple Volume Purchase Program Token
+ VPPTokenOrganizationName *string `json:"vppTokenOrganizationName,omitempty"`
+ // VPPTokenAccountType The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`.
+ VPPTokenAccountType *VPPTokenAccountType `json:"vppTokenAccountType,omitempty"`
+ // VPPTokenAppleID The Apple Id associated with the given Apple Volume Purchase Program Token.
+ VPPTokenAppleID *string `json:"vppTokenAppleId,omitempty"`
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // VPPTokenID Identifier of the VPP token associated with this app.
+ VPPTokenID *string `json:"vppTokenId,omitempty"`
+ // RevokeLicenseActionResults Results of revoke license actions on this app.
+ RevokeLicenseActionResults []IOSVPPAppRevokeLicensesActionResult `json:"revokeLicenseActionResults,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []IOSVPPAppAssignedLicense `json:"assignedLicenses,omitempty"`
+}
+
+// IOSVPPAppAssignedDeviceLicense iOS Volume Purchase Program device license assignment. This class does not support Create, Delete, or Update.
+type IOSVPPAppAssignedDeviceLicense struct {
+ // IOSVPPAppAssignedLicense is the base model of IOSVPPAppAssignedDeviceLicense
+ IOSVPPAppAssignedLicense
+ // ManagedDeviceID The managed device ID.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DeviceName The device name.
+ DeviceName *string `json:"deviceName,omitempty"`
+}
+
+// IOSVPPAppAssignedLicense iOS Volume Purchase Program license assignment. This class does not support Create, Delete, or Update.
+type IOSVPPAppAssignedLicense struct {
+ // Entity is the base model of IOSVPPAppAssignedLicense
+ Entity
+ // UserEmailAddress The user email address.
+ UserEmailAddress *string `json:"userEmailAddress,omitempty"`
+ // UserID The user ID.
+ UserID *string `json:"userId,omitempty"`
+ // UserName The user name.
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName The user principal name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// IOSVPPAppAssignedUserLicense iOS Volume Purchase Program user license assignment. This class does not support Create, Delete, or Update.
+type IOSVPPAppAssignedUserLicense struct {
+ // IOSVPPAppAssignedLicense is the base model of IOSVPPAppAssignedUserLicense
+ IOSVPPAppAssignedLicense
+}
+
+// IOSVPPAppAssignmentSettings undocumented
+type IOSVPPAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of IOSVPPAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // UseDeviceLicensing Whether or not to use device licensing.
+ UseDeviceLicensing *bool `json:"useDeviceLicensing,omitempty"`
+ // VPNConfigurationID The VPN Configuration Id to apply for this app.
+ VPNConfigurationID *string `json:"vpnConfigurationId,omitempty"`
+ // UninstallOnDeviceRemoval Whether or not to uninstall the app when device is removed from Intune.
+ UninstallOnDeviceRemoval *bool `json:"uninstallOnDeviceRemoval,omitempty"`
+}
+
+// IOSVPPAppRevokeLicensesActionResult undocumented
+type IOSVPPAppRevokeLicensesActionResult struct {
+ // Object is the base model of IOSVPPAppRevokeLicensesActionResult
+ Object
+ // UserID UserId associated with the action.
+ UserID *string `json:"userId,omitempty"`
+ // ManagedDeviceID DeviceId associated with the action.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // TotalLicensesCount A count of the number of licenses for which revoke was attempted.
+ TotalLicensesCount *int `json:"totalLicensesCount,omitempty"`
+ // FailedLicensesCount A count of the number of licenses for which revoke failed.
+ FailedLicensesCount *int `json:"failedLicensesCount,omitempty"`
+ // ActionFailureReason The reason for the revoke licenses action failure.
+ ActionFailureReason *VPPTokenActionFailureReason `json:"actionFailureReason,omitempty"`
+ // ActionName Action name
+ ActionName *string `json:"actionName,omitempty"`
+ // ActionState State of the action
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // StartDateTime Time the action was initiated
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime Time the action state was last updated
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+}
+
+// IOSVPPEBook A class containing the properties for iOS Vpp eBook.
+type IOSVPPEBook struct {
+ // ManagedEBook is the base model of IOSVPPEBook
+ ManagedEBook
+ // VPPTokenID The Vpp token ID.
+ VPPTokenID *UUID `json:"vppTokenId,omitempty"`
+ // AppleID The Apple ID associated with Vpp token.
+ AppleID *string `json:"appleId,omitempty"`
+ // VPPOrganizationName The Vpp token's organization name.
+ VPPOrganizationName *string `json:"vppOrganizationName,omitempty"`
+ // Genres Genres.
+ Genres []string `json:"genres,omitempty"`
+ // Language Language.
+ Language *string `json:"language,omitempty"`
+ // Seller Seller.
+ Seller *string `json:"seller,omitempty"`
+ // TotalLicenseCount Total license count.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // UsedLicenseCount Used license count.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
+
+// IOSVPPEBookAssignment Contains properties used to assign an iOS VPP EBook to a group.
+type IOSVPPEBookAssignment struct {
+ // ManagedEBookAssignment is the base model of IOSVPPEBookAssignment
+ ManagedEBookAssignment
+}
+
+// IOSWebContentFilterAutoFilter undocumented
+type IOSWebContentFilterAutoFilter struct {
+ // IOSWebContentFilterBase is the base model of IOSWebContentFilterAutoFilter
+ IOSWebContentFilterBase
+ // AllowedUrls Additional URLs allowed for access
+ AllowedUrls []string `json:"allowedUrls,omitempty"`
+ // BlockedUrls Additional URLs blocked for access
+ BlockedUrls []string `json:"blockedUrls,omitempty"`
+}
+
+// IOSWebContentFilterBase undocumented
+type IOSWebContentFilterBase struct {
+ // Object is the base model of IOSWebContentFilterBase
+ Object
+}
+
+// IOSWebContentFilterSpecificWebsitesAccess undocumented
+type IOSWebContentFilterSpecificWebsitesAccess struct {
+ // IOSWebContentFilterBase is the base model of IOSWebContentFilterSpecificWebsitesAccess
+ IOSWebContentFilterBase
+ // SpecificWebsitesOnly URL bookmarks which will be installed into built-in browser and user is only allowed to access websites through bookmarks. This collection can contain a maximum of 500 elements.
+ SpecificWebsitesOnly []IOSBookmark `json:"specificWebsitesOnly,omitempty"`
+ // WebsiteList URL bookmarks which will be installed into built-in browser and user is only allowed to access websites through bookmarks. This collection can contain a maximum of 500 elements.
+ WebsiteList []IOSBookmark `json:"websiteList,omitempty"`
+}
+
+// IOSWiFiConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user. This profile provides limited and simpler security types than Enterprise Wi-Fi profile.
+type IOSWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of IOSWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden Connect when the network is not broadcasting its name (SSID). When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *WiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+ // ProxySettings Proxy Type for this Wi-Fi connection
+ ProxySettings *WiFiProxySetting `json:"proxySettings,omitempty"`
+ // ProxyManualAddress IP Address or DNS hostname of the proxy server when manual configuration is selected.
+ ProxyManualAddress *string `json:"proxyManualAddress,omitempty"`
+ // ProxyManualPort Port of the proxy server when manual configuration is selected.
+ ProxyManualPort *int `json:"proxyManualPort,omitempty"`
+ // ProxyAutomaticConfigurationURL URL of the proxy server automatic configuration script when automatic configuration is selected. This URL is typically the location of PAC (Proxy Auto Configuration) file.
+ ProxyAutomaticConfigurationURL *string `json:"proxyAutomaticConfigurationUrl,omitempty"`
+ // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network.
+ PreSharedKey *string `json:"preSharedKey,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIP.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIP.go
new file mode 100644
index 00000000..5e60d382
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIP.go
@@ -0,0 +1,83 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IPCategory undocumented
+type IPCategory struct {
+ // Object is the base model of IPCategory
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
+
+// IPNamedLocation undocumented
+type IPNamedLocation struct {
+ // NamedLocation is the base model of IPNamedLocation
+ NamedLocation
+ // IPRanges undocumented
+ IPRanges []IPRange `json:"ipRanges,omitempty"`
+ // IsTrusted undocumented
+ IsTrusted *bool `json:"isTrusted,omitempty"`
+}
+
+// IPRange undocumented
+type IPRange struct {
+ // Object is the base model of IPRange
+ Object
+}
+
+// IPReferenceData undocumented
+type IPReferenceData struct {
+ // Object is the base model of IPReferenceData
+ Object
+ // Asn undocumented
+ Asn *int `json:"asn,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // CountryOrRegionCode undocumented
+ CountryOrRegionCode *string `json:"countryOrRegionCode,omitempty"`
+ // Organization undocumented
+ Organization *string `json:"organization,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
+
+// IPSecurityProfile undocumented
+type IPSecurityProfile struct {
+ // Entity is the base model of IPSecurityProfile
+ Entity
+ // ActivityGroupNames undocumented
+ ActivityGroupNames []string `json:"activityGroupNames,omitempty"`
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CountHits undocumented
+ CountHits *int `json:"countHits,omitempty"`
+ // CountHosts undocumented
+ CountHosts *int `json:"countHosts,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // IPCategories undocumented
+ IPCategories []IPCategory `json:"ipCategories,omitempty"`
+ // IPReferenceData undocumented
+ IPReferenceData []IPReferenceData `json:"ipReferenceData,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv4.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv4.go
new file mode 100644
index 00000000..a2a15215
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv4.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPv4CidrRange undocumented
+type IPv4CidrRange struct {
+ // IPRange is the base model of IPv4CidrRange
+ IPRange
+ // CIDRAddress undocumented
+ CIDRAddress *string `json:"cidrAddress,omitempty"`
+}
+
+// IPv4Range undocumented
+type IPv4Range struct {
+ // IPRange is the base model of IPv4Range
+ IPRange
+ // LowerAddress Lower address.
+ LowerAddress *string `json:"lowerAddress,omitempty"`
+ // UpperAddress Upper address.
+ UpperAddress *string `json:"upperAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv6.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv6.go
new file mode 100644
index 00000000..6a9131cb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIPv6.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IPv6CidrRange undocumented
+type IPv6CidrRange struct {
+ // IPRange is the base model of IPv6CidrRange
+ IPRange
+ // CIDRAddress undocumented
+ CIDRAddress *string `json:"cidrAddress,omitempty"`
+}
+
+// IPv6Range undocumented
+type IPv6Range struct {
+ // IPRange is the base model of IPv6Range
+ IPRange
+ // LowerAddress Lower address.
+ LowerAddress *string `json:"lowerAddress,omitempty"`
+ // UpperAddress Upper address.
+ UpperAddress *string `json:"upperAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIdentity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIdentity.go
new file mode 100644
index 00000000..d989199e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIdentity.go
@@ -0,0 +1,103 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Identity undocumented
+type Identity struct {
+ // Object is the base model of Identity
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// IdentityContainer undocumented
+type IdentityContainer struct {
+ // Entity is the base model of IdentityContainer
+ Entity
+ // UserFlows undocumented
+ UserFlows []IdentityUserFlow `json:"userFlows,omitempty"`
+}
+
+// IdentityGovernance undocumented
+type IdentityGovernance struct {
+ // Entity is the base model of IdentityGovernance
+ Entity
+ // EntitlementManagement undocumented
+ EntitlementManagement *EntitlementManagement `json:"entitlementManagement,omitempty"`
+}
+
+// IdentityProvider undocumented
+type IdentityProvider struct {
+ // Entity is the base model of IdentityProvider
+ Entity
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ClientSecret undocumented
+ ClientSecret *string `json:"clientSecret,omitempty"`
+}
+
+// IdentityRiskEvent undocumented
+type IdentityRiskEvent struct {
+ // Entity is the base model of IdentityRiskEvent
+ Entity
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // RiskEventDateTime undocumented
+ RiskEventDateTime *time.Time `json:"riskEventDateTime,omitempty"`
+ // RiskEventType undocumented
+ RiskEventType *string `json:"riskEventType,omitempty"`
+ // RiskLevel undocumented
+ RiskLevel *RiskLevel `json:"riskLevel,omitempty"`
+ // RiskEventStatus undocumented
+ RiskEventStatus *RiskEventStatus `json:"riskEventStatus,omitempty"`
+ // ClosedDateTime undocumented
+ ClosedDateTime *time.Time `json:"closedDateTime,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // ImpactedUser undocumented
+ ImpactedUser *User `json:"impactedUser,omitempty"`
+}
+
+// IdentitySet undocumented
+type IdentitySet struct {
+ // Object is the base model of IdentitySet
+ Object
+ // Application undocumented
+ Application *Identity `json:"application,omitempty"`
+ // Device undocumented
+ Device *Identity `json:"device,omitempty"`
+ // User undocumented
+ User *Identity `json:"user,omitempty"`
+}
+
+// IdentityUserFlow undocumented
+type IdentityUserFlow struct {
+ // Entity is the base model of IdentityUserFlow
+ Entity
+ // UserFlowType undocumented
+ UserFlowType *UserFlowType `json:"userFlowType,omitempty"`
+ // UserFlowTypeVersion undocumented
+ UserFlowTypeVersion *float64 `json:"userFlowTypeVersion,omitempty"`
+}
+
+// IdentityUserRisk undocumented
+type IdentityUserRisk struct {
+ // Object is the base model of IdentityUserRisk
+ Object
+ // Level undocumented
+ Level *UserRiskLevel `json:"level,omitempty"`
+ // LastChangedDateTime undocumented
+ LastChangedDateTime *time.Time `json:"lastChangedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelImage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImage.go
new file mode 100644
index 00000000..7653b2c8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImage.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Image undocumented
+type Image struct {
+ // Object is the base model of Image
+ Object
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+}
+
+// ImageInfo undocumented
+type ImageInfo struct {
+ // Object is the base model of ImageInfo
+ Object
+ // IconURL undocumented
+ IconURL *string `json:"iconUrl,omitempty"`
+ // AlternativeText undocumented
+ AlternativeText *string `json:"alternativeText,omitempty"`
+ // AlternateText undocumented
+ AlternateText *string `json:"alternateText,omitempty"`
+ // AddImageQuery undocumented
+ AddImageQuery *bool `json:"addImageQuery,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelImplicit.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImplicit.go
new file mode 100644
index 00000000..414c08e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImplicit.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ImplicitGrantSettings undocumented
+type ImplicitGrantSettings struct {
+ // Object is the base model of ImplicitGrantSettings
+ Object
+ // EnableIDTokenIssuance undocumented
+ EnableIDTokenIssuance *bool `json:"enableIdTokenIssuance,omitempty"`
+ // EnableAccessTokenIssuance undocumented
+ EnableAccessTokenIssuance *bool `json:"enableAccessTokenIssuance,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelImported.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImported.go
new file mode 100644
index 00000000..d4ff89f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImported.go
@@ -0,0 +1,119 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ImportedAppleDeviceIdentity The importedAppleDeviceIdentity resource represents the imported device identity of an Apple device .
+type ImportedAppleDeviceIdentity struct {
+ // Entity is the base model of ImportedAppleDeviceIdentity
+ Entity
+ // SerialNumber Device serial number
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // RequestedEnrollmentProfileID Enrollment profile Id admin intends to apply to the device during next enrollment
+ RequestedEnrollmentProfileID *string `json:"requestedEnrollmentProfileId,omitempty"`
+ // RequestedEnrollmentProfileAssignmentDateTime The time enrollment profile was assigned to the device
+ RequestedEnrollmentProfileAssignmentDateTime *time.Time `json:"requestedEnrollmentProfileAssignmentDateTime,omitempty"`
+ // IsSupervised Indicates if the Apple device is supervised. More information is at: https://support.apple.com/en-us/HT202837
+ IsSupervised *bool `json:"isSupervised,omitempty"`
+ // DiscoverySource Apple device discovery source.
+ DiscoverySource *DiscoverySource `json:"discoverySource,omitempty"`
+ // IsDeleted Indicates if the device is deleted from Apple Business Manager
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // CreatedDateTime Created Date Time of the device
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastContactedDateTime Last Contacted Date Time of the device
+ LastContactedDateTime *time.Time `json:"lastContactedDateTime,omitempty"`
+ // Description The description of the device
+ Description *string `json:"description,omitempty"`
+ // EnrollmentState The state of the device in Intune
+ EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"`
+ // Platform The platform of the Device.
+ Platform *Platform `json:"platform,omitempty"`
+}
+
+// ImportedAppleDeviceIdentityResult The importedAppleDeviceIdentityResult resource represents the result of attempting to import Apple devices identities.
+type ImportedAppleDeviceIdentityResult struct {
+ // ImportedAppleDeviceIdentity is the base model of ImportedAppleDeviceIdentityResult
+ ImportedAppleDeviceIdentity
+ // Status Status of imported device identity
+ Status *bool `json:"status,omitempty"`
+}
+
+// ImportedDeviceIdentity The importedDeviceIdentity resource represents a unique hardware identity of a device that has been pre-staged for pre-enrollment configuration.
+type ImportedDeviceIdentity struct {
+ // Entity is the base model of ImportedDeviceIdentity
+ Entity
+ // ImportedDeviceIdentifier Imported Device Identifier
+ ImportedDeviceIdentifier *string `json:"importedDeviceIdentifier,omitempty"`
+ // ImportedDeviceIdentityType Type of Imported Device Identity
+ ImportedDeviceIdentityType *ImportedDeviceIdentityType `json:"importedDeviceIdentityType,omitempty"`
+ // LastModifiedDateTime Last Modified DateTime of the description
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // CreatedDateTime Created Date Time of the device
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastContactedDateTime Last Contacted Date Time of the device
+ LastContactedDateTime *time.Time `json:"lastContactedDateTime,omitempty"`
+ // Description The description of the device
+ Description *string `json:"description,omitempty"`
+ // EnrollmentState The state of the device in Intune
+ EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"`
+ // Platform The platform of the Device.
+ Platform *Platform `json:"platform,omitempty"`
+}
+
+// ImportedDeviceIdentityResult The importedDeviceIdentityResult resource represents the result of attempting to import a device identity.
+type ImportedDeviceIdentityResult struct {
+ // ImportedDeviceIdentity is the base model of ImportedDeviceIdentityResult
+ ImportedDeviceIdentity
+ // Status Status of imported device identity
+ Status *bool `json:"status,omitempty"`
+}
+
+// ImportedWindowsAutopilotDeviceIdentity Imported windows autopilot devices.
+type ImportedWindowsAutopilotDeviceIdentity struct {
+ // Entity is the base model of ImportedWindowsAutopilotDeviceIdentity
+ Entity
+ // OrderIdentifier Order Id of the Windows autopilot device. - Deprecate
+ OrderIdentifier *string `json:"orderIdentifier,omitempty"`
+ // GroupTag Group Tag of the Windows autopilot device.
+ GroupTag *string `json:"groupTag,omitempty"`
+ // SerialNumber Serial number of the Windows autopilot device.
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // ProductKey Product Key of the Windows autopilot device.
+ ProductKey *string `json:"productKey,omitempty"`
+ // ImportID The Import Id of the Windows autopilot device.
+ ImportID *string `json:"importId,omitempty"`
+ // HardwareIdentifier Hardware Blob of the Windows autopilot device.
+ HardwareIdentifier *Binary `json:"hardwareIdentifier,omitempty"`
+ // State Current state of the imported device.
+ State *ImportedWindowsAutopilotDeviceIdentityState `json:"state,omitempty"`
+ // AssignedUserPrincipalName UPN of the user the device will be assigned
+ AssignedUserPrincipalName *string `json:"assignedUserPrincipalName,omitempty"`
+}
+
+// ImportedWindowsAutopilotDeviceIdentityState undocumented
+type ImportedWindowsAutopilotDeviceIdentityState struct {
+ // Object is the base model of ImportedWindowsAutopilotDeviceIdentityState
+ Object
+ // DeviceImportStatus Device status reported by Device Directory Service(DDS).
+ DeviceImportStatus *ImportedWindowsAutopilotDeviceIdentityImportStatus `json:"deviceImportStatus,omitempty"`
+ // DeviceRegistrationID Device Registration ID for successfully added device reported by Device Directory Service(DDS).
+ DeviceRegistrationID *string `json:"deviceRegistrationId,omitempty"`
+ // DeviceErrorCode Device error code reported by Device Directory Service(DDS).
+ DeviceErrorCode *int `json:"deviceErrorCode,omitempty"`
+ // DeviceErrorName Device error name reported by Device Directory Service(DDS).
+ DeviceErrorName *string `json:"deviceErrorName,omitempty"`
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUpload Import windows autopilot devices using upload.
+type ImportedWindowsAutopilotDeviceIdentityUpload struct {
+ // Entity is the base model of ImportedWindowsAutopilotDeviceIdentityUpload
+ Entity
+ // CreatedDateTimeUtc DateTime when the entity is created.
+ CreatedDateTimeUtc *time.Time `json:"createdDateTimeUtc,omitempty"`
+ // Status Upload status.
+ Status *ImportedWindowsAutopilotDeviceIdentityUploadStatus `json:"status,omitempty"`
+ // DeviceIdentities undocumented
+ DeviceIdentities []ImportedWindowsAutopilotDeviceIdentity `json:"deviceIdentities,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelImpossible.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImpossible.go
new file mode 100644
index 00000000..c49e05fc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelImpossible.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ImpossibleTravelRiskEvent undocumented
+type ImpossibleTravelRiskEvent struct {
+ // LocatedRiskEvent is the base model of ImpossibleTravelRiskEvent
+ LocatedRiskEvent
+ // UserAgent undocumented
+ UserAgent *string `json:"userAgent,omitempty"`
+ // DeviceInformation undocumented
+ DeviceInformation *string `json:"deviceInformation,omitempty"`
+ // IsAtypicalLocation undocumented
+ IsAtypicalLocation *bool `json:"isAtypicalLocation,omitempty"`
+ // PreviousSigninDateTime undocumented
+ PreviousSigninDateTime *time.Time `json:"previousSigninDateTime,omitempty"`
+ // PreviousLocation undocumented
+ PreviousLocation *SignInLocation `json:"previousLocation,omitempty"`
+ // PreviousIPAddress undocumented
+ PreviousIPAddress *string `json:"previousIpAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIncoming.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIncoming.go
new file mode 100644
index 00000000..e927da6f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIncoming.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IncomingContext undocumented
+type IncomingContext struct {
+ // Object is the base model of IncomingContext
+ Object
+ // SourceParticipantID undocumented
+ SourceParticipantID *string `json:"sourceParticipantId,omitempty"`
+ // ObservedParticipantID undocumented
+ ObservedParticipantID *string `json:"observedParticipantId,omitempty"`
+ // OnBehalfOf undocumented
+ OnBehalfOf *IdentitySet `json:"onBehalfOf,omitempty"`
+ // Transferor undocumented
+ Transferor *IdentitySet `json:"transferor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIncomplete.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIncomplete.go
new file mode 100644
index 00000000..1e2ee640
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIncomplete.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IncompleteData undocumented
+type IncompleteData struct {
+ // Object is the base model of IncompleteData
+ Object
+ // MissingDataBeforeDateTime undocumented
+ MissingDataBeforeDateTime *time.Time `json:"missingDataBeforeDateTime,omitempty"`
+ // WasThrottled undocumented
+ WasThrottled *bool `json:"wasThrottled,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInference.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInference.go
new file mode 100644
index 00000000..bf0dfa83
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInference.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InferenceClassification undocumented
+type InferenceClassification struct {
+ // Entity is the base model of InferenceClassification
+ Entity
+ // Overrides undocumented
+ Overrides []InferenceClassificationOverride `json:"overrides,omitempty"`
+}
+
+// InferenceClassificationOverride undocumented
+type InferenceClassificationOverride struct {
+ // Entity is the base model of InferenceClassificationOverride
+ Entity
+ // ClassifyAs undocumented
+ ClassifyAs *InferenceClassificationType `json:"classifyAs,omitempty"`
+ // SenderEmailAddress undocumented
+ SenderEmailAddress *EmailAddress `json:"senderEmailAddress,omitempty"`
+}
+
+// InferenceData undocumented
+type InferenceData struct {
+ // Object is the base model of InferenceData
+ Object
+ // ConfidenceScore undocumented
+ ConfidenceScore *float64 `json:"confidenceScore,omitempty"`
+ // UserHasVerifiedAccuracy undocumented
+ UserHasVerifiedAccuracy *bool `json:"userHasVerifiedAccuracy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformation.go
new file mode 100644
index 00000000..20d28337
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformation.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// InformationProtection undocumented
+type InformationProtection struct {
+ // Entity is the base model of InformationProtection
+ Entity
+ // Policy undocumented
+ Policy *InformationProtectionPolicy `json:"policy,omitempty"`
+ // SensitivityLabels undocumented
+ SensitivityLabels []SensitivityLabel `json:"sensitivityLabels,omitempty"`
+ // SensitivityPolicySettings undocumented
+ SensitivityPolicySettings *SensitivityPolicySettings `json:"sensitivityPolicySettings,omitempty"`
+ // DataLossPreventionPolicies undocumented
+ DataLossPreventionPolicies []DataLossPreventionPolicy `json:"dataLossPreventionPolicies,omitempty"`
+ // ThreatAssessmentRequests undocumented
+ ThreatAssessmentRequests []ThreatAssessmentRequestObject `json:"threatAssessmentRequests,omitempty"`
+}
+
+// InformationProtectionAction undocumented
+type InformationProtectionAction struct {
+ // Object is the base model of InformationProtectionAction
+ Object
+}
+
+// InformationProtectionContentLabel undocumented
+type InformationProtectionContentLabel struct {
+ // Object is the base model of InformationProtectionContentLabel
+ Object
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // AssignmentMethod undocumented
+ AssignmentMethod *AssignmentMethod `json:"assignmentMethod,omitempty"`
+ // Label undocumented
+ Label *LabelDetails `json:"label,omitempty"`
+}
+
+// InformationProtectionLabel undocumented
+type InformationProtectionLabel struct {
+ // Entity is the base model of InformationProtectionLabel
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *int `json:"sensitivity,omitempty"`
+ // Tooltip undocumented
+ Tooltip *string `json:"tooltip,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+}
+
+// InformationProtectionPolicy undocumented
+type InformationProtectionPolicy struct {
+ // Entity is the base model of InformationProtectionPolicy
+ Entity
+ // Labels undocumented
+ Labels []InformationProtectionLabel `json:"labels,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformational.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformational.go
new file mode 100644
index 00000000..53503183
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInformational.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InformationalURL undocumented
+type InformationalURL struct {
+ // Object is the base model of InformationalURL
+ Object
+ // LogoURL undocumented
+ LogoURL *string `json:"logoUrl,omitempty"`
+ // MarketingURL undocumented
+ MarketingURL *string `json:"marketingUrl,omitempty"`
+ // PrivacyStatementURL undocumented
+ PrivacyStatementURL *string `json:"privacyStatementUrl,omitempty"`
+ // SupportURL undocumented
+ SupportURL *string `json:"supportUrl,omitempty"`
+ // TermsOfServiceURL undocumented
+ TermsOfServiceURL *string `json:"termsOfServiceUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInitiator.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInitiator.go
new file mode 100644
index 00000000..c2798980
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInitiator.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Initiator undocumented
+type Initiator struct {
+ // Object is the base model of Initiator
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // InitiatorType undocumented
+ InitiatorType *InitiatorType `json:"initiatorType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInner.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInner.go
new file mode 100644
index 00000000..4286e8a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInner.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InnerErrorDetail undocumented
+type InnerErrorDetail struct {
+ // Object is the base model of InnerErrorDetail
+ Object
+ // Source undocumented
+ Source *string `json:"source,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInsight.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInsight.go
new file mode 100644
index 00000000..73b5c200
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInsight.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InsightIdentity undocumented
+type InsightIdentity struct {
+ // Object is the base model of InsightIdentity
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+}
+
+// InsightValueDouble undocumented
+type InsightValueDouble struct {
+ // UserExperienceAnalyticsInsightValue is the base model of InsightValueDouble
+ UserExperienceAnalyticsInsightValue
+ // Value undocumented
+ Value *float64 `json:"value,omitempty"`
+}
+
+// InsightValueInt undocumented
+type InsightValueInt struct {
+ // UserExperienceAnalyticsInsightValue is the base model of InsightValueInt
+ UserExperienceAnalyticsInsightValue
+ // Value undocumented
+ Value *int `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInstance.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInstance.go
new file mode 100644
index 00000000..fc8b830e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInstance.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InstanceResourceAccess undocumented
+type InstanceResourceAccess struct {
+ // Object is the base model of InstanceResourceAccess
+ Object
+ // ResourceAppID undocumented
+ ResourceAppID *string `json:"resourceAppId,omitempty"`
+ // Permissions undocumented
+ Permissions []ResourcePermission `json:"permissions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInstitution.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInstitution.go
new file mode 100644
index 00000000..d23f4841
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInstitution.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InstitutionData undocumented
+type InstitutionData struct {
+ // Object is the base model of InstitutionData
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Location undocumented
+ Location *PhysicalAddress `json:"location,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInternet.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInternet.go
new file mode 100644
index 00000000..4e6d0fb2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInternet.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InternetMessageHeader undocumented
+type InternetMessageHeader struct {
+ // Object is the base model of InternetMessageHeader
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIntune.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIntune.go
new file mode 100644
index 00000000..6f21c939
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIntune.go
@@ -0,0 +1,119 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// IntuneBrand undocumented
+type IntuneBrand struct {
+ // Object is the base model of IntuneBrand
+ Object
+ // DisplayName Company/organization name that is displayed to end users.
+ DisplayName *string `json:"displayName,omitempty"`
+ // ThemeColor Primary theme color used in the Company Portal applications and web portal.
+ ThemeColor *RgbColor `json:"themeColor,omitempty"`
+ // ShowLogo Boolean that represents whether the administrator-supplied logo images are shown or not shown.
+ ShowLogo *bool `json:"showLogo,omitempty"`
+ // LightBackgroundLogo Logo image displayed in Company Portal apps which have a light background behind the logo.
+ LightBackgroundLogo *MimeContent `json:"lightBackgroundLogo,omitempty"`
+ // DarkBackgroundLogo Logo image displayed in Company Portal apps which have a dark background behind the logo.
+ DarkBackgroundLogo *MimeContent `json:"darkBackgroundLogo,omitempty"`
+ // ShowNameNextToLogo Boolean that represents whether the administrator-supplied display name will be shown next to the logo image.
+ ShowNameNextToLogo *bool `json:"showNameNextToLogo,omitempty"`
+ // LandingPageCustomizedImage Customized image displayed in Company Portal app landing page
+ LandingPageCustomizedImage *MimeContent `json:"landingPageCustomizedImage,omitempty"`
+ // ShowDisplayNameNextToLogo Boolean that represents whether the administrator-supplied display name will be shown next to the logo image.
+ ShowDisplayNameNextToLogo *bool `json:"showDisplayNameNextToLogo,omitempty"`
+ // ContactITName Name of the person/organization responsible for IT support.
+ ContactITName *string `json:"contactITName,omitempty"`
+ // ContactITPhoneNumber Phone number of the person/organization responsible for IT support.
+ ContactITPhoneNumber *string `json:"contactITPhoneNumber,omitempty"`
+ // ContactITEmailAddress Email address of the person/organization responsible for IT support.
+ ContactITEmailAddress *string `json:"contactITEmailAddress,omitempty"`
+ // ContactITNotes Text comments regarding the person/organization responsible for IT support.
+ ContactITNotes *string `json:"contactITNotes,omitempty"`
+ // OnlineSupportSiteURL URL to the company/organization’s IT helpdesk site.
+ OnlineSupportSiteURL *string `json:"onlineSupportSiteUrl,omitempty"`
+ // OnlineSupportSiteName Display name of the company/organization’s IT helpdesk site.
+ OnlineSupportSiteName *string `json:"onlineSupportSiteName,omitempty"`
+ // PrivacyURL URL to the company/organization’s privacy policy.
+ PrivacyURL *string `json:"privacyUrl,omitempty"`
+ // CustomPrivacyMessage Custom privacy message.
+ CustomPrivacyMessage *string `json:"customPrivacyMessage,omitempty"`
+ // IsRemoveDeviceDisabled Boolean that represents whether the adminsistrator has disabled the 'Remove Device' action on corporate owned devices.
+ IsRemoveDeviceDisabled *bool `json:"isRemoveDeviceDisabled,omitempty"`
+ // IsFactoryResetDisabled Boolean that represents whether the adminsistrator has disabled the 'Factory Reset' action on corporate owned devices.
+ IsFactoryResetDisabled *bool `json:"isFactoryResetDisabled,omitempty"`
+ // CompanyPortalBlockedActions Collection of blocked actions on the company portal as per platform and device ownership types.
+ CompanyPortalBlockedActions []CompanyPortalBlockedAction `json:"companyPortalBlockedActions,omitempty"`
+ // ShowAzureADEnterpriseApps Boolean that indicates if AzureAD Enterprise Apps will be shown in Company Portal
+ ShowAzureADEnterpriseApps *bool `json:"showAzureADEnterpriseApps,omitempty"`
+ // ShowOfficeWebApps Boolean that indicates if Office WebApps will be shown in Company Portal
+ ShowOfficeWebApps *bool `json:"showOfficeWebApps,omitempty"`
+}
+
+// IntuneBrandingProfile This entity contains data which is used in customizing the tenant level appearance of the Company Portal applications as well as the end user web portal.
+type IntuneBrandingProfile struct {
+ // Entity is the base model of IntuneBrandingProfile
+ Entity
+ // ProfileName Name of the profile
+ ProfileName *string `json:"profileName,omitempty"`
+ // ProfileDescription Description of the profile
+ ProfileDescription *string `json:"profileDescription,omitempty"`
+ // IsDefaultProfile Boolean that represents whether the profile is used as default or not
+ IsDefaultProfile *bool `json:"isDefaultProfile,omitempty"`
+ // CreatedDateTime Time when the BrandingProfile was created
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Time when the BrandingProfile was last modified
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Company/organization name that is displayed to end users
+ DisplayName *string `json:"displayName,omitempty"`
+ // ThemeColor Primary theme color used in the Company Portal applications and web portal
+ ThemeColor *RgbColor `json:"themeColor,omitempty"`
+ // ShowLogo Boolean that represents whether the administrator-supplied logo images are shown or not
+ ShowLogo *bool `json:"showLogo,omitempty"`
+ // ShowDisplayNameNextToLogo Boolean that represents whether the administrator-supplied display name will be shown next to the logo image or not
+ ShowDisplayNameNextToLogo *bool `json:"showDisplayNameNextToLogo,omitempty"`
+ // ThemeColorLogo Logo image displayed in Company Portal apps which have a theme color background behind the logo
+ ThemeColorLogo *MimeContent `json:"themeColorLogo,omitempty"`
+ // LightBackgroundLogo Logo image displayed in Company Portal apps which have a light background behind the logo
+ LightBackgroundLogo *MimeContent `json:"lightBackgroundLogo,omitempty"`
+ // LandingPageCustomizedImage Customized image displayed in Company Portal apps landing page
+ LandingPageCustomizedImage *MimeContent `json:"landingPageCustomizedImage,omitempty"`
+ // ContactITName Name of the person/organization responsible for IT support
+ ContactITName *string `json:"contactITName,omitempty"`
+ // ContactITPhoneNumber Phone number of the person/organization responsible for IT support
+ ContactITPhoneNumber *string `json:"contactITPhoneNumber,omitempty"`
+ // ContactITEmailAddress E-mail address of the person/organization responsible for IT support
+ ContactITEmailAddress *string `json:"contactITEmailAddress,omitempty"`
+ // ContactITNotes Text comments regarding the person/organization responsible for IT support
+ ContactITNotes *string `json:"contactITNotes,omitempty"`
+ // OnlineSupportSiteURL URL to the company/organization’s IT helpdesk site
+ OnlineSupportSiteURL *string `json:"onlineSupportSiteUrl,omitempty"`
+ // OnlineSupportSiteName Display name of the company/organization’s IT helpdesk site
+ OnlineSupportSiteName *string `json:"onlineSupportSiteName,omitempty"`
+ // PrivacyURL URL to the company/organization’s privacy policy
+ PrivacyURL *string `json:"privacyUrl,omitempty"`
+ // CustomPrivacyMessage Text comments regarding what the admin has access to on the device
+ CustomPrivacyMessage *string `json:"customPrivacyMessage,omitempty"`
+ // IsRemoveDeviceDisabled Boolean that represents whether the adminsistrator has disabled the 'Remove Device' action on corporate owned devices.
+ IsRemoveDeviceDisabled *bool `json:"isRemoveDeviceDisabled,omitempty"`
+ // IsFactoryResetDisabled Boolean that represents whether the adminsistrator has disabled the 'Factory Reset' action on corporate owned devices.
+ IsFactoryResetDisabled *bool `json:"isFactoryResetDisabled,omitempty"`
+ // CompanyPortalBlockedActions Collection of blocked actions on the company portal as per platform and device ownership types.
+ CompanyPortalBlockedActions []CompanyPortalBlockedAction `json:"companyPortalBlockedActions,omitempty"`
+ // ShowAzureADEnterpriseApps Boolean that indicates if AzureAD Enterprise Apps will be shown in Company Portal
+ ShowAzureADEnterpriseApps *bool `json:"showAzureADEnterpriseApps,omitempty"`
+ // ShowOfficeWebApps Boolean that indicates if Office WebApps will be shown in Company Portal
+ ShowOfficeWebApps *bool `json:"showOfficeWebApps,omitempty"`
+ // Assignments undocumented
+ Assignments []IntuneBrandingProfileAssignment `json:"assignments,omitempty"`
+}
+
+// IntuneBrandingProfileAssignment This entity contains the properties used to assign a branding profile to a group.
+type IntuneBrandingProfileAssignment struct {
+ // Entity is the base model of IntuneBrandingProfileAssignment
+ Entity
+ // Target Assignment target that the branding profile is assigned to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvitation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvitation.go
new file mode 100644
index 00000000..59a8f232
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvitation.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Invitation undocumented
+type Invitation struct {
+ // Entity is the base model of Invitation
+ Entity
+ // InvitedUserDisplayName undocumented
+ InvitedUserDisplayName *string `json:"invitedUserDisplayName,omitempty"`
+ // InvitedUserType undocumented
+ InvitedUserType *string `json:"invitedUserType,omitempty"`
+ // InvitedUserEmailAddress undocumented
+ InvitedUserEmailAddress *string `json:"invitedUserEmailAddress,omitempty"`
+ // InvitedUserMessageInfo undocumented
+ InvitedUserMessageInfo *InvitedUserMessageInfo `json:"invitedUserMessageInfo,omitempty"`
+ // SendInvitationMessage undocumented
+ SendInvitationMessage *bool `json:"sendInvitationMessage,omitempty"`
+ // InviteRedirectURL undocumented
+ InviteRedirectURL *string `json:"inviteRedirectUrl,omitempty"`
+ // InviteRedeemURL undocumented
+ InviteRedeemURL *string `json:"inviteRedeemUrl,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // ResetRedemption undocumented
+ ResetRedemption *bool `json:"resetRedemption,omitempty"`
+ // InvitedUser undocumented
+ InvitedUser *User `json:"invitedUser,omitempty"`
+}
+
+// InvitationParticipantInfo undocumented
+type InvitationParticipantInfo struct {
+ // Object is the base model of InvitationParticipantInfo
+ Object
+ // Identity undocumented
+ Identity *IdentitySet `json:"identity,omitempty"`
+ // EndpointType undocumented
+ EndpointType *EndpointType `json:"endpointType,omitempty"`
+ // ReplacesCallID undocumented
+ ReplacesCallID *string `json:"replacesCallId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvite.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvite.go
new file mode 100644
index 00000000..6c83a995
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvite.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InviteParticipantsOperation undocumented
+type InviteParticipantsOperation struct {
+ // CommsOperation is the base model of InviteParticipantsOperation
+ CommsOperation
+ // Participants undocumented
+ Participants []InvitationParticipantInfo `json:"participants,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvited.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvited.go
new file mode 100644
index 00000000..03714128
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelInvited.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// InvitedUserMessageInfo undocumented
+type InvitedUserMessageInfo struct {
+ // Object is the base model of InvitedUserMessageInfo
+ Object
+ // CcRecipients undocumented
+ CcRecipients []Recipient `json:"ccRecipients,omitempty"`
+ // MessageLanguage undocumented
+ MessageLanguage *string `json:"messageLanguage,omitempty"`
+ // CustomizedMessageBody undocumented
+ CustomizedMessageBody *string `json:"customizedMessageBody,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelIosik.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIosik.go
new file mode 100644
index 00000000..b8744c83
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelIosik.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// IosikEv2VpnConfiguration By providing the configurations in this profile you can instruct the iOS device to connect to desired IKEv2 VPN endpoint.
+type IosikEv2VpnConfiguration struct {
+ // IOSVPNConfiguration is the base model of IosikEv2VpnConfiguration
+ IOSVPNConfiguration
+ // ChildSecurityAssociationParameters Child Security Association Parameters
+ ChildSecurityAssociationParameters *IOSVPNSecurityAssociationParameters `json:"childSecurityAssociationParameters,omitempty"`
+ // ClientAuthenticationType Type of Client Authentication the VPN client will use.
+ ClientAuthenticationType *VPNClientAuthenticationType `json:"clientAuthenticationType,omitempty"`
+ // DeadPeerDetectionRate Determine how often to check if a peer connection is still active.
+ DeadPeerDetectionRate *VPNDeadPeerDetectionRate `json:"deadPeerDetectionRate,omitempty"`
+ // DisableMobilityAndMultihoming Disable MOBIKE
+ DisableMobilityAndMultihoming *bool `json:"disableMobilityAndMultihoming,omitempty"`
+ // DisableRedirect Disable Redirect
+ DisableRedirect *bool `json:"disableRedirect,omitempty"`
+ // EnableCertificateRevocationCheck Enables a best-effort revocation check; server response timeouts will not cause it to fail
+ EnableCertificateRevocationCheck *bool `json:"enableCertificateRevocationCheck,omitempty"`
+ // EnableEAP Enables EAP only authentication
+ EnableEAP *bool `json:"enableEAP,omitempty"`
+ // EnablePerfectForwardSecrecy Enable Perfect Forward Secrecy (PFS).
+ EnablePerfectForwardSecrecy *bool `json:"enablePerfectForwardSecrecy,omitempty"`
+ // EnableUseInternalSubnetAttributes Enable Use Internal Subnet Attributes.
+ EnableUseInternalSubnetAttributes *bool `json:"enableUseInternalSubnetAttributes,omitempty"`
+ // LocalIdentifier Method of identifying the client that is trying to connect via VPN.
+ LocalIdentifier *VPNLocalIdentifier `json:"localIdentifier,omitempty"`
+ // RemoteIdentifier Address of the IKEv2 server. Must be a FQDN, UserFQDN, network address, or ASN1DN
+ RemoteIdentifier *string `json:"remoteIdentifier,omitempty"`
+ // SecurityAssociationParameters Security Association Parameters
+ SecurityAssociationParameters *IOSVPNSecurityAssociationParameters `json:"securityAssociationParameters,omitempty"`
+ // ServerCertificateCommonName Common name of the IKEv2 Server Certificate used in Server Authentication
+ ServerCertificateCommonName *string `json:"serverCertificateCommonName,omitempty"`
+ // ServerCertificateIssuerCommonName Issuer Common name of the IKEv2 Server Certificate issuer used in Authentication
+ ServerCertificateIssuerCommonName *string `json:"serverCertificateIssuerCommonName,omitempty"`
+ // ServerCertificateType The type of certificate the VPN server will present to the VPN client for authentication.
+ ServerCertificateType *VPNServerCertificateType `json:"serverCertificateType,omitempty"`
+ // SharedSecret Used when Shared Secret Authentication is selected
+ SharedSecret *string `json:"sharedSecret,omitempty"`
+ // TLSMaximumVersion The maximum TLS version to be used with EAP-TLS authentication
+ TLSMaximumVersion *string `json:"tlsMaximumVersion,omitempty"`
+ // TLSMinimumVersion The minimum TLS version to be used with EAP-TLS authentication
+ TLSMinimumVersion *string `json:"tlsMinimumVersion,omitempty"`
+ // AllowDefaultSecurityAssociationParameters Allows the use of security association parameters by setting all parameters to the device's default unless explicitly specified.
+ AllowDefaultSecurityAssociationParameters *bool `json:"allowDefaultSecurityAssociationParameters,omitempty"`
+ // AllowDefaultChildSecurityAssociationParameters Allows the use of child security association parameters by setting all parameters to the device's default unless explicitly specified.
+ AllowDefaultChildSecurityAssociationParameters *bool `json:"allowDefaultChildSecurityAssociationParameters,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelItem.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelItem.go
new file mode 100644
index 00000000..033b2141
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelItem.go
@@ -0,0 +1,267 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Item undocumented
+type Item struct {
+ // Entity is the base model of Item
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // ItemCategoryID undocumented
+ ItemCategoryID *UUID `json:"itemCategoryId,omitempty"`
+ // ItemCategoryCode undocumented
+ ItemCategoryCode *string `json:"itemCategoryCode,omitempty"`
+ // Blocked undocumented
+ Blocked *bool `json:"blocked,omitempty"`
+ // BaseUnitOfMeasureID undocumented
+ BaseUnitOfMeasureID *UUID `json:"baseUnitOfMeasureId,omitempty"`
+ // Gtin undocumented
+ Gtin *string `json:"gtin,omitempty"`
+ // Inventory undocumented
+ Inventory *int `json:"inventory,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // PriceIncludesTax undocumented
+ PriceIncludesTax *bool `json:"priceIncludesTax,omitempty"`
+ // UnitCost undocumented
+ UnitCost *int `json:"unitCost,omitempty"`
+ // TaxGroupID undocumented
+ TaxGroupID *UUID `json:"taxGroupId,omitempty"`
+ // TaxGroupCode undocumented
+ TaxGroupCode *string `json:"taxGroupCode,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+ // ItemCategory undocumented
+ ItemCategory *ItemCategory `json:"itemCategory,omitempty"`
+}
+
+// ItemActionSet undocumented
+type ItemActionSet struct {
+ // Object is the base model of ItemActionSet
+ Object
+ // Comment undocumented
+ Comment *CommentAction `json:"comment,omitempty"`
+ // Create undocumented
+ Create *CreateAction `json:"create,omitempty"`
+ // Delete undocumented
+ Delete *DeleteAction `json:"delete,omitempty"`
+ // Edit undocumented
+ Edit *EditAction `json:"edit,omitempty"`
+ // Mention undocumented
+ Mention *MentionAction `json:"mention,omitempty"`
+ // Move undocumented
+ Move *MoveAction `json:"move,omitempty"`
+ // Rename undocumented
+ Rename *RenameAction `json:"rename,omitempty"`
+ // Restore undocumented
+ Restore *RestoreAction `json:"restore,omitempty"`
+ // Share undocumented
+ Share *ShareAction `json:"share,omitempty"`
+ // Version undocumented
+ Version *VersionAction `json:"version,omitempty"`
+}
+
+// ItemActionStat undocumented
+type ItemActionStat struct {
+ // Object is the base model of ItemActionStat
+ Object
+ // ActionCount undocumented
+ ActionCount *int `json:"actionCount,omitempty"`
+ // ActorCount undocumented
+ ActorCount *int `json:"actorCount,omitempty"`
+}
+
+// ItemActivity undocumented
+type ItemActivity struct {
+ // Entity is the base model of ItemActivity
+ Entity
+ // Access undocumented
+ Access *AccessAction `json:"access,omitempty"`
+ // ActivityDateTime undocumented
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // Actor undocumented
+ Actor *IdentitySet `json:"actor,omitempty"`
+ // DriveItem undocumented
+ DriveItem *DriveItem `json:"driveItem,omitempty"`
+}
+
+// ItemActivityOLD undocumented
+type ItemActivityOLD struct {
+ // Entity is the base model of ItemActivityOLD
+ Entity
+ // Action undocumented
+ Action *ItemActionSet `json:"action,omitempty"`
+ // Actor undocumented
+ Actor *IdentitySet `json:"actor,omitempty"`
+ // Times undocumented
+ Times *ItemActivityTimeSet `json:"times,omitempty"`
+ // DriveItem undocumented
+ DriveItem *DriveItem `json:"driveItem,omitempty"`
+ // ListItem undocumented
+ ListItem *ListItem `json:"listItem,omitempty"`
+}
+
+// ItemActivityStat undocumented
+type ItemActivityStat struct {
+ // Entity is the base model of ItemActivityStat
+ Entity
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Access undocumented
+ Access *ItemActionStat `json:"access,omitempty"`
+ // Create undocumented
+ Create *ItemActionStat `json:"create,omitempty"`
+ // Delete undocumented
+ Delete *ItemActionStat `json:"delete,omitempty"`
+ // Edit undocumented
+ Edit *ItemActionStat `json:"edit,omitempty"`
+ // Move undocumented
+ Move *ItemActionStat `json:"move,omitempty"`
+ // IsTrending undocumented
+ IsTrending *bool `json:"isTrending,omitempty"`
+ // IncompleteData undocumented
+ IncompleteData *IncompleteData `json:"incompleteData,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivity `json:"activities,omitempty"`
+}
+
+// ItemActivityTimeSet undocumented
+type ItemActivityTimeSet struct {
+ // Object is the base model of ItemActivityTimeSet
+ Object
+ // LastRecordedDateTime undocumented
+ LastRecordedDateTime *time.Time `json:"lastRecordedDateTime,omitempty"`
+ // ObservedDateTime undocumented
+ ObservedDateTime *time.Time `json:"observedDateTime,omitempty"`
+ // RecordedDateTime undocumented
+ RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"`
+}
+
+// ItemAnalytics undocumented
+type ItemAnalytics struct {
+ // Entity is the base model of ItemAnalytics
+ Entity
+ // ItemActivityStats undocumented
+ ItemActivityStats []ItemActivityStat `json:"itemActivityStats,omitempty"`
+ // AllTime undocumented
+ AllTime *ItemActivityStat `json:"allTime,omitempty"`
+ // LastSevenDays undocumented
+ LastSevenDays *ItemActivityStat `json:"lastSevenDays,omitempty"`
+}
+
+// ItemAttachment undocumented
+type ItemAttachment struct {
+ // Attachment is the base model of ItemAttachment
+ Attachment
+ // Item undocumented
+ Item *OutlookItem `json:"item,omitempty"`
+}
+
+// ItemBody undocumented
+type ItemBody struct {
+ // Object is the base model of ItemBody
+ Object
+ // ContentType undocumented
+ ContentType *BodyType `json:"contentType,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+}
+
+// ItemCategory undocumented
+type ItemCategory struct {
+ // Entity is the base model of ItemCategory
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// ItemEmail undocumented
+type ItemEmail struct {
+ // ItemFacet is the base model of ItemEmail
+ ItemFacet
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *EmailType `json:"type,omitempty"`
+}
+
+// ItemFacet undocumented
+type ItemFacet struct {
+ // Entity is the base model of ItemFacet
+ Entity
+ // AllowedAudiences undocumented
+ AllowedAudiences *AllowedAudiences `json:"allowedAudiences,omitempty"`
+ // Inference undocumented
+ Inference *InferenceData `json:"inference,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+}
+
+// ItemPhone undocumented
+type ItemPhone struct {
+ // ItemFacet is the base model of ItemPhone
+ ItemFacet
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *PhoneType `json:"type,omitempty"`
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+}
+
+// ItemPreviewInfo undocumented
+type ItemPreviewInfo struct {
+ // Object is the base model of ItemPreviewInfo
+ Object
+ // GetURL undocumented
+ GetURL *string `json:"getUrl,omitempty"`
+ // PostParameters undocumented
+ PostParameters *string `json:"postParameters,omitempty"`
+ // PostURL undocumented
+ PostURL *string `json:"postUrl,omitempty"`
+}
+
+// ItemReference undocumented
+type ItemReference struct {
+ // Object is the base model of ItemReference
+ Object
+ // DriveID undocumented
+ DriveID *string `json:"driveId,omitempty"`
+ // DriveType undocumented
+ DriveType *string `json:"driveType,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Path undocumented
+ Path *string `json:"path,omitempty"`
+ // ShareID undocumented
+ ShareID *string `json:"shareId,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelJSON.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJSON.go
new file mode 100644
index 00000000..ae844bbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJSON.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// JSON undocumented
+type JSON struct {
+ // Object is the base model of JSON
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelJob.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJob.go
new file mode 100644
index 00000000..0b2d2712
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJob.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// JobResponseBase undocumented
+type JobResponseBase struct {
+ // Entity is the base model of JobResponseBase
+ Entity
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Error undocumented
+ Error *ClassificationError `json:"error,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelJournal.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJournal.go
new file mode 100644
index 00000000..10aa8215
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJournal.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Journal undocumented
+type Journal struct {
+ // Entity is the base model of Journal
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // BalancingAccountID undocumented
+ BalancingAccountID *UUID `json:"balancingAccountId,omitempty"`
+ // BalancingAccountNumber undocumented
+ BalancingAccountNumber *string `json:"balancingAccountNumber,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+ // JournalLines undocumented
+ JournalLines []JournalLine `json:"journalLines,omitempty"`
+}
+
+// JournalLine undocumented
+type JournalLine struct {
+ // Entity is the base model of JournalLine
+ Entity
+ // JournalDisplayName undocumented
+ JournalDisplayName *string `json:"journalDisplayName,omitempty"`
+ // LineNumber undocumented
+ LineNumber *int `json:"lineNumber,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // AccountNumber undocumented
+ AccountNumber *string `json:"accountNumber,omitempty"`
+ // PostingDate undocumented
+ PostingDate *Date `json:"postingDate,omitempty"`
+ // DocumentNumber undocumented
+ DocumentNumber *string `json:"documentNumber,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // Amount undocumented
+ Amount *int `json:"amount,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelJustify.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJustify.go
new file mode 100644
index 00000000..6e53ec1c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelJustify.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// JustifyAction undocumented
+type JustifyAction struct {
+ // InformationProtectionAction is the base model of JustifyAction
+ InformationProtectionAction
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelKerberos.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelKerberos.go
new file mode 100644
index 00000000..12f18230
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelKerberos.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// KerberosSingleSignOnExtension undocumented
+type KerberosSingleSignOnExtension struct {
+ // SingleSignOnExtension is the base model of KerberosSingleSignOnExtension
+ SingleSignOnExtension
+ // Realm Gets or sets the case-sensitive realm name for this profile.
+ Realm *string `json:"realm,omitempty"`
+ // Domains Gets or sets a list of hosts or domain names for which the app extension performs SSO.
+ Domains []string `json:"domains,omitempty"`
+ // BlockAutomaticLogin Enables or disables Keychain usage.
+ BlockAutomaticLogin *bool `json:"blockAutomaticLogin,omitempty"`
+ // CacheName Gets or sets the Generic Security Services name of the Kerberos cache to use for this profile.
+ CacheName *string `json:"cacheName,omitempty"`
+ // CredentialBundleIDAccessControlList Gets or sets a list of app Bundle IDs allowed to access the Kerberos Ticket Granting Ticket.
+ CredentialBundleIDAccessControlList []string `json:"credentialBundleIdAccessControlList,omitempty"`
+ // DomainRealms Gets or sets a list of realms for custom domain-realm mapping. Realms are case sensitive.
+ DomainRealms []string `json:"domainRealms,omitempty"`
+ // IsDefaultRealm When true, this profile's realm will be selected as the default. Necessary if multiple Kerberos-type profiles are configured.
+ IsDefaultRealm *bool `json:"isDefaultRealm,omitempty"`
+ // PasswordBlockModification Enables or disables password changes.
+ PasswordBlockModification *bool `json:"passwordBlockModification,omitempty"`
+ // PasswordExpirationDays Overrides the default password expiration in days. For most domains, this value is calculated automatically.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordExpirationNotificationDays Gets or sets the number of days until the user is notified that their password will expire (default is 15).
+ PasswordExpirationNotificationDays *int `json:"passwordExpirationNotificationDays,omitempty"`
+ // UserPrincipalName Gets or sets the principle user name to use for this profile. The realm name does not need to be included.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // PasswordRequireActiveDirectoryComplexity Enables or disables whether passwords must meet Active Directory's complexity requirements.
+ PasswordRequireActiveDirectoryComplexity *bool `json:"passwordRequireActiveDirectoryComplexity,omitempty"`
+ // PasswordPreviousPasswordBlockCount Gets or sets the number of previous passwords to block.
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordMinimumLength Gets or sets the minimum length of a password.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumAgeDays Gets or sets the minimum number of days until a user can change their password again.
+ PasswordMinimumAgeDays *int `json:"passwordMinimumAgeDays,omitempty"`
+ // PasswordRequirementsDescription Gets or sets a description of the password complexity requirements.
+ PasswordRequirementsDescription *string `json:"passwordRequirementsDescription,omitempty"`
+ // RequireUserPresence Gets or sets whether to require authentication via Touch ID, Face ID, or a passcode to access the keychain entry.
+ RequireUserPresence *bool `json:"requireUserPresence,omitempty"`
+ // ActiveDirectorySiteCode Gets or sets the Active Directory site.
+ ActiveDirectorySiteCode *string `json:"activeDirectorySiteCode,omitempty"`
+ // PasswordEnableLocalSync Enables or disables password syncing. This won't affect users logged in with a mobile account on macOS.
+ PasswordEnableLocalSync *bool `json:"passwordEnableLocalSync,omitempty"`
+ // BlockActiveDirectorySiteAutoDiscovery Enables or disables whether the Kerberos extension can automatically determine its site name.
+ BlockActiveDirectorySiteAutoDiscovery *bool `json:"blockActiveDirectorySiteAutoDiscovery,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelKey.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelKey.go
new file mode 100644
index 00000000..521ef75b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelKey.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// KeyBooleanValuePair undocumented
+type KeyBooleanValuePair struct {
+ // KeyTypedValuePair is the base model of KeyBooleanValuePair
+ KeyTypedValuePair
+ // Value The Boolean value of the key-value pair.
+ Value *bool `json:"value,omitempty"`
+}
+
+// KeyCredential undocumented
+type KeyCredential struct {
+ // Object is the base model of KeyCredential
+ Object
+ // CustomKeyIdentifier undocumented
+ CustomKeyIdentifier *Binary `json:"customKeyIdentifier,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // KeyID undocumented
+ KeyID *UUID `json:"keyId,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Usage undocumented
+ Usage *string `json:"usage,omitempty"`
+ // Key undocumented
+ Key *Binary `json:"key,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// KeyIntegerValuePair undocumented
+type KeyIntegerValuePair struct {
+ // KeyTypedValuePair is the base model of KeyIntegerValuePair
+ KeyTypedValuePair
+ // Value The integer value of the key-value pair.
+ Value *int `json:"value,omitempty"`
+}
+
+// KeyRealValuePair undocumented
+type KeyRealValuePair struct {
+ // KeyTypedValuePair is the base model of KeyRealValuePair
+ KeyTypedValuePair
+ // Value The real (floating-point) value of the key-value pair.
+ Value *float64 `json:"value,omitempty"`
+}
+
+// KeyStringValuePair undocumented
+type KeyStringValuePair struct {
+ // KeyTypedValuePair is the base model of KeyStringValuePair
+ KeyTypedValuePair
+ // Value The string value of the key-value pair.
+ Value *string `json:"value,omitempty"`
+}
+
+// KeyTypedValuePair undocumented
+type KeyTypedValuePair struct {
+ // Object is the base model of KeyTypedValuePair
+ Object
+ // Key The string key of the key-value pair.
+ Key *string `json:"key,omitempty"`
+}
+
+// KeyValue undocumented
+type KeyValue struct {
+ // Object is the base model of KeyValue
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
+
+// KeyValuePair undocumented
+type KeyValuePair struct {
+ // Object is the base model of KeyValuePair
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabel.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabel.go
new file mode 100644
index 00000000..0dc843fb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabel.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LabelActionBase undocumented
+type LabelActionBase struct {
+ // Object is the base model of LabelActionBase
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// LabelDetails undocumented
+type LabelDetails struct {
+ // Object is the base model of LabelDetails
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *int `json:"sensitivity,omitempty"`
+ // Tooltip undocumented
+ Tooltip *string `json:"tooltip,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+}
+
+// LabelPolicy undocumented
+type LabelPolicy struct {
+ // Object is the base model of LabelPolicy
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabeling.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabeling.go
new file mode 100644
index 00000000..16790a31
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLabeling.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LabelingOptions undocumented
+type LabelingOptions struct {
+ // Object is the base model of LabelingOptions
+ Object
+ // LabelID undocumented
+ LabelID *UUID `json:"labelId,omitempty"`
+ // AssignmentMethod undocumented
+ AssignmentMethod *AssignmentMethod `json:"assignmentMethod,omitempty"`
+ // DowngradeJustification undocumented
+ DowngradeJustification *DowngradeJustification `json:"downgradeJustification,omitempty"`
+ // ExtendedProperties undocumented
+ ExtendedProperties []KeyValuePair `json:"extendedProperties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLanguage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLanguage.go
new file mode 100644
index 00000000..499a03a9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLanguage.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LanguageProficiency undocumented
+type LanguageProficiency struct {
+ // ItemFacet is the base model of LanguageProficiency
+ ItemFacet
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Tag undocumented
+ Tag *string `json:"tag,omitempty"`
+ // Proficiency undocumented
+ Proficiency *LanguageProficiencyLevel `json:"proficiency,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLeaked.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLeaked.go
new file mode 100644
index 00000000..9f111932
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLeaked.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LeakedCredentialsRiskEvent undocumented
+type LeakedCredentialsRiskEvent struct {
+ // IdentityRiskEvent is the base model of LeakedCredentialsRiskEvent
+ IdentityRiskEvent
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLearned.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLearned.go
new file mode 100644
index 00000000..216c9422
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLearned.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LearnedLocationModel undocumented
+type LearnedLocationModel struct {
+ // Object is the base model of LearnedLocationModel
+ Object
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // Coordinates undocumented
+ Coordinates *OutlookGeoCoordinates `json:"coordinates,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLicense.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLicense.go
new file mode 100644
index 00000000..aa9fd7e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLicense.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LicenseAssignmentState undocumented
+type LicenseAssignmentState struct {
+ // Object is the base model of LicenseAssignmentState
+ Object
+ // SKUID undocumented
+ SKUID *UUID `json:"skuId,omitempty"`
+ // DisabledPlans undocumented
+ DisabledPlans []UUID `json:"disabledPlans,omitempty"`
+ // AssignedByGroup undocumented
+ AssignedByGroup *string `json:"assignedByGroup,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Error undocumented
+ Error *string `json:"error,omitempty"`
+}
+
+// LicenseDetails undocumented
+type LicenseDetails struct {
+ // Entity is the base model of LicenseDetails
+ Entity
+ // ServicePlans undocumented
+ ServicePlans []ServicePlanInfo `json:"servicePlans,omitempty"`
+ // SKUID undocumented
+ SKUID *UUID `json:"skuId,omitempty"`
+ // SKUPartNumber undocumented
+ SKUPartNumber *string `json:"skuPartNumber,omitempty"`
+}
+
+// LicenseInfoDetail undocumented
+type LicenseInfoDetail struct {
+ // Object is the base model of LicenseInfoDetail
+ Object
+ // LicenseType undocumented
+ LicenseType *AzureADLicenseType `json:"licenseType,omitempty"`
+ // TotalLicenseCount undocumented
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // TotalAssignedCount undocumented
+ TotalAssignedCount *int `json:"totalAssignedCount,omitempty"`
+ // TotalUsageCount undocumented
+ TotalUsageCount *int `json:"totalUsageCount,omitempty"`
+}
+
+// LicenseProcessingState undocumented
+type LicenseProcessingState struct {
+ // Object is the base model of LicenseProcessingState
+ Object
+ // State undocumented
+ State *string `json:"state,omitempty"`
+}
+
+// LicenseUnitsDetail undocumented
+type LicenseUnitsDetail struct {
+ // Object is the base model of LicenseUnitsDetail
+ Object
+ // Enabled undocumented
+ Enabled *int `json:"enabled,omitempty"`
+ // Suspended undocumented
+ Suspended *int `json:"suspended,omitempty"`
+ // Warning undocumented
+ Warning *int `json:"warning,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelList.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelList.go
new file mode 100644
index 00000000..eedb7042
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelList.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// List undocumented
+type List struct {
+ // BaseItem is the base model of List
+ BaseItem
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // List undocumented
+ List *ListInfo `json:"list,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // System undocumented
+ System *SystemFacet `json:"system,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivityOLD `json:"activities,omitempty"`
+ // Columns undocumented
+ Columns []ColumnDefinition `json:"columns,omitempty"`
+ // ContentTypes undocumented
+ ContentTypes []ContentType `json:"contentTypes,omitempty"`
+ // Drive undocumented
+ Drive *Drive `json:"drive,omitempty"`
+ // Items undocumented
+ Items []ListItem `json:"items,omitempty"`
+ // Subscriptions undocumented
+ Subscriptions []Subscription `json:"subscriptions,omitempty"`
+}
+
+// ListInfo undocumented
+type ListInfo struct {
+ // Object is the base model of ListInfo
+ Object
+ // ContentTypesEnabled undocumented
+ ContentTypesEnabled *bool `json:"contentTypesEnabled,omitempty"`
+ // Hidden undocumented
+ Hidden *bool `json:"hidden,omitempty"`
+ // Template undocumented
+ Template *string `json:"template,omitempty"`
+}
+
+// ListItem undocumented
+type ListItem struct {
+ // BaseItem is the base model of ListItem
+ BaseItem
+ // ContentType undocumented
+ ContentType *ContentTypeInfo `json:"contentType,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // Activities undocumented
+ Activities []ItemActivityOLD `json:"activities,omitempty"`
+ // Analytics undocumented
+ Analytics *ItemAnalytics `json:"analytics,omitempty"`
+ // DriveItem undocumented
+ DriveItem *DriveItem `json:"driveItem,omitempty"`
+ // Fields undocumented
+ Fields *FieldValueSet `json:"fields,omitempty"`
+ // Versions undocumented
+ Versions []ListItemVersion `json:"versions,omitempty"`
+}
+
+// ListItemVersion undocumented
+type ListItemVersion struct {
+ // BaseItemVersion is the base model of ListItemVersion
+ BaseItemVersion
+ // Fields undocumented
+ Fields *FieldValueSet `json:"fields,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocale.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocale.go
new file mode 100644
index 00000000..28fe7ab8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocale.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocaleInfo undocumented
+type LocaleInfo struct {
+ // Object is the base model of LocaleInfo
+ Object
+ // Locale undocumented
+ Locale *string `json:"locale,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocalized.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocalized.go
new file mode 100644
index 00000000..cfa1c170
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocalized.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// LocalizedNotificationMessage The text content of a Notification Message Template for the specified locale.
+type LocalizedNotificationMessage struct {
+ // Entity is the base model of LocalizedNotificationMessage
+ Entity
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Locale The Locale for which this message is destined.
+ Locale *string `json:"locale,omitempty"`
+ // Subject The Message Template Subject.
+ Subject *string `json:"subject,omitempty"`
+ // MessageTemplate The Message Template content.
+ MessageTemplate *string `json:"messageTemplate,omitempty"`
+ // IsDefault Flag to indicate whether or not this is the default locale for language fallback. This flag can only be set. To unset, set this property to true on another Localized Notification Message.
+ IsDefault *bool `json:"isDefault,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocate.go
new file mode 100644
index 00000000..d211b4db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocate.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocateDeviceActionResult undocumented
+type LocateDeviceActionResult struct {
+ // DeviceActionResult is the base model of LocateDeviceActionResult
+ DeviceActionResult
+ // DeviceLocation device location
+ DeviceLocation *DeviceGeoLocation `json:"deviceLocation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocated.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocated.go
new file mode 100644
index 00000000..5b4a2f21
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocated.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LocatedRiskEvent undocumented
+type LocatedRiskEvent struct {
+ // IdentityRiskEvent is the base model of LocatedRiskEvent
+ IdentityRiskEvent
+ // Location undocumented
+ Location *SignInLocation `json:"location,omitempty"`
+ // IPAddress undocumented
+ IPAddress *string `json:"ipAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocation.go
new file mode 100644
index 00000000..ad455598
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLocation.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Location undocumented
+type Location struct {
+ // Object is the base model of Location
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LocationEmailAddress undocumented
+ LocationEmailAddress *string `json:"locationEmailAddress,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+ // Coordinates undocumented
+ Coordinates *OutlookGeoCoordinates `json:"coordinates,omitempty"`
+ // LocationURI undocumented
+ LocationURI *string `json:"locationUri,omitempty"`
+ // LocationType undocumented
+ LocationType *LocationType `json:"locationType,omitempty"`
+ // UniqueID undocumented
+ UniqueID *string `json:"uniqueId,omitempty"`
+ // UniqueIDType undocumented
+ UniqueIDType *LocationUniqueIDType `json:"uniqueIdType,omitempty"`
+}
+
+// LocationConstraint undocumented
+type LocationConstraint struct {
+ // Object is the base model of LocationConstraint
+ Object
+ // Locations undocumented
+ Locations []LocationConstraintItem `json:"locations,omitempty"`
+ // IsRequired undocumented
+ IsRequired *bool `json:"isRequired,omitempty"`
+ // SuggestLocation undocumented
+ SuggestLocation *bool `json:"suggestLocation,omitempty"`
+}
+
+// LocationConstraintItem undocumented
+type LocationConstraintItem struct {
+ // Location is the base model of LocationConstraintItem
+ Location
+ // ResolveAvailability undocumented
+ ResolveAvailability *bool `json:"resolveAvailability,omitempty"`
+}
+
+// LocationManagementCondition Contains the information to define a location management condition, an area of interest, to monitor.
+type LocationManagementCondition struct {
+ // ManagementCondition is the base model of LocationManagementCondition
+ ManagementCondition
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLogged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLogged.go
new file mode 100644
index 00000000..28c8d030
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLogged.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// LoggedOnUser undocumented
+type LoggedOnUser struct {
+ // Object is the base model of LoggedOnUser
+ Object
+ // UserID User id
+ UserID *string `json:"userId,omitempty"`
+ // LastLogOnDateTime Date time when user logs on
+ LastLogOnDateTime *time.Time `json:"lastLogOnDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLogon.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLogon.go
new file mode 100644
index 00000000..78aa9f0e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLogon.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// LogonUser undocumented
+type LogonUser struct {
+ // Object is the base model of LogonUser
+ Object
+ // AccountDomain undocumented
+ AccountDomain *string `json:"accountDomain,omitempty"`
+ // AccountName undocumented
+ AccountName *string `json:"accountName,omitempty"`
+ // AccountType undocumented
+ AccountType *UserAccountSecurityType `json:"accountType,omitempty"`
+ // FirstSeenDateTime undocumented
+ FirstSeenDateTime *time.Time `json:"firstSeenDateTime,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // LogonID undocumented
+ LogonID *string `json:"logonId,omitempty"`
+ // LogonTypes undocumented
+ LogonTypes []LogonType `json:"logonTypes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelLookup.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLookup.go
new file mode 100644
index 00000000..15f682a7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelLookup.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// LookupColumn undocumented
+type LookupColumn struct {
+ // Object is the base model of LookupColumn
+ Object
+ // AllowMultipleValues undocumented
+ AllowMultipleValues *bool `json:"allowMultipleValues,omitempty"`
+ // AllowUnlimitedLength undocumented
+ AllowUnlimitedLength *bool `json:"allowUnlimitedLength,omitempty"`
+ // ColumnName undocumented
+ ColumnName *string `json:"columnName,omitempty"`
+ // ListID undocumented
+ ListID *string `json:"listId,omitempty"`
+ // PrimaryLookupColumnID undocumented
+ PrimaryLookupColumnID *string `json:"primaryLookupColumnId,omitempty"`
+}
+
+// LookupResultRow undocumented
+type LookupResultRow struct {
+ // Entity is the base model of LookupResultRow
+ Entity
+ // Row undocumented
+ Row *string `json:"row,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMDM.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMDM.go
new file mode 100644
index 00000000..ddba816b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMDM.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MDMWindowsInformationProtectionPolicy Policy for Windows information protection with MDM
+type MDMWindowsInformationProtectionPolicy struct {
+ // WindowsInformationProtection is the base model of MDMWindowsInformationProtectionPolicy
+ WindowsInformationProtection
+}
+
+// MDMWindowsInformationProtectionPolicyPolicySetItem A class containing the properties used for mdm windows information protection policy PolicySetItem.
+type MDMWindowsInformationProtectionPolicyPolicySetItem struct {
+ // PolicySetItem is the base model of MDMWindowsInformationProtectionPolicyPolicySetItem
+ PolicySetItem
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMFA.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMFA.go
new file mode 100644
index 00000000..12efcdc9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMFA.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MFADetail undocumented
+type MFADetail struct {
+ // Object is the base model of MFADetail
+ Object
+ // AuthMethod undocumented
+ AuthMethod *string `json:"authMethod,omitempty"`
+ // AuthDetail undocumented
+ AuthDetail *string `json:"authDetail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMac.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMac.go
new file mode 100644
index 00000000..e1360e10
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMac.go
@@ -0,0 +1,633 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MacManagedAppProtection undocumented
+type MacManagedAppProtection struct {
+ // Entity is the base model of MacManagedAppProtection
+ Entity
+}
+
+// MacOSCertificateProfileBase Mac OS certificate profile.
+type MacOSCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of MacOSCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage.
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *AppleSubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+}
+
+// MacOSCompliancePolicy This class contains compliance settings for Mac OS.
+type MacOSCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of MacOSCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Whether or not to require a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordBlockSimple Indicates whether or not to block simple passwords.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires. Valid values 1 to 65535
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of password. Valid values 4 to 14
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 1 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // OsMinimumVersion Minimum MacOS version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum MacOS version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // OsMinimumBuildVersion Minimum MacOS build version.
+ OsMinimumBuildVersion *string `json:"osMinimumBuildVersion,omitempty"`
+ // OsMaximumBuildVersion Maximum MacOS build version.
+ OsMaximumBuildVersion *string `json:"osMaximumBuildVersion,omitempty"`
+ // SystemIntegrityProtectionEnabled Require that devices have enabled system integrity protection.
+ SystemIntegrityProtectionEnabled *bool `json:"systemIntegrityProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Mobile Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // StorageRequireEncryption Require encryption on Mac OS devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // GatekeeperAllowedAppSource System and Privacy setting that determines which download locations apps can be run from on a macOS device.
+ GatekeeperAllowedAppSource *MacOSGatekeeperAppSources `json:"gatekeeperAllowedAppSource,omitempty"`
+ // FirewallEnabled Whether the firewall should be enabled or not.
+ FirewallEnabled *bool `json:"firewallEnabled,omitempty"`
+ // FirewallBlockAllIncoming Corresponds to the “Block all incoming connections” option.
+ FirewallBlockAllIncoming *bool `json:"firewallBlockAllIncoming,omitempty"`
+ // FirewallEnableStealthMode Corresponds to “Enable stealth mode.”
+ FirewallEnableStealthMode *bool `json:"firewallEnableStealthMode,omitempty"`
+}
+
+// MacOSCustomAppConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomAppConfiguration resource.
+type MacOSCustomAppConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSCustomAppConfiguration
+ DeviceConfiguration
+ // BundleID Bundle id for targeting.
+ BundleID *string `json:"bundleId,omitempty"`
+ // FileName Configuration file name (*.plist | *.xml).
+ FileName *string `json:"fileName,omitempty"`
+ // ConfigurationXML Configuration xml. (UTF8 encoded byte array)
+ ConfigurationXML *Binary `json:"configurationXml,omitempty"`
+}
+
+// MacOSCustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSCustomConfiguration resource.
+type MacOSCustomConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSCustomConfiguration
+ DeviceConfiguration
+ // PayloadName Name that is displayed to the user.
+ PayloadName *string `json:"payloadName,omitempty"`
+ // PayloadFileName Payload file name (*.mobileconfig | *.xml).
+ PayloadFileName *string `json:"payloadFileName,omitempty"`
+ // Payload Payload. (UTF8 encoded byte array)
+ Payload *Binary `json:"payload,omitempty"`
+}
+
+// MacOSDeviceFeaturesConfiguration MacOS device features configuration profile.
+type MacOSDeviceFeaturesConfiguration struct {
+ // AppleDeviceFeaturesConfigurationBase is the base model of MacOSDeviceFeaturesConfiguration
+ AppleDeviceFeaturesConfigurationBase
+ // AutoLaunchItems List of applications, files, folders, and other items to launch when the user logs in. This collection can contain a maximum of 500 elements.
+ AutoLaunchItems []MacOSLaunchItem `json:"autoLaunchItems,omitempty"`
+ // AdminShowHostInfo Whether to show admin host information on the login window.
+ AdminShowHostInfo *bool `json:"adminShowHostInfo,omitempty"`
+ // LoginWindowText Custom text to be displayed on the login window.
+ LoginWindowText *string `json:"loginWindowText,omitempty"`
+ // AuthorizedUsersListHidden Whether to show the name and password dialog or a list of users on the login window.
+ AuthorizedUsersListHidden *bool `json:"authorizedUsersListHidden,omitempty"`
+ // AuthorizedUsersListHideLocalUsers Whether to show only network and system users in the authorized users list on the login window.
+ AuthorizedUsersListHideLocalUsers *bool `json:"authorizedUsersListHideLocalUsers,omitempty"`
+ // AuthorizedUsersListHideMobileAccounts Whether to hide mobile users in the authorized users list on the login window.
+ AuthorizedUsersListHideMobileAccounts *bool `json:"authorizedUsersListHideMobileAccounts,omitempty"`
+ // AuthorizedUsersListIncludeNetworkUsers Whether to show network users in the authorized users list on the login window.
+ AuthorizedUsersListIncludeNetworkUsers *bool `json:"authorizedUsersListIncludeNetworkUsers,omitempty"`
+ // AuthorizedUsersListHideAdminUsers Whether to hide admin users in the authorized users list on the login window.
+ AuthorizedUsersListHideAdminUsers *bool `json:"authorizedUsersListHideAdminUsers,omitempty"`
+ // AuthorizedUsersListShowOtherManagedUsers Whether to show other users in the authorized users list on the login window.
+ AuthorizedUsersListShowOtherManagedUsers *bool `json:"authorizedUsersListShowOtherManagedUsers,omitempty"`
+ // ShutDownDisabled Whether to hide the Shut Down button item on the login window.
+ ShutDownDisabled *bool `json:"shutDownDisabled,omitempty"`
+ // RestartDisabled Whether to hide the Restart button item on the login window.
+ RestartDisabled *bool `json:"restartDisabled,omitempty"`
+ // SleepDisabled Whether to hide the Sleep menu item on the login window.
+ SleepDisabled *bool `json:"sleepDisabled,omitempty"`
+ // ConsoleAccessDisabled Whether the Other user will disregard use of the `>console> special user name.
+ ConsoleAccessDisabled *bool `json:"consoleAccessDisabled,omitempty"`
+ // ShutDownDisabledWhileLoggedIn Whether the Shut Down menu item on the login window will be disabled while the user is logged in.
+ ShutDownDisabledWhileLoggedIn *bool `json:"shutDownDisabledWhileLoggedIn,omitempty"`
+ // RestartDisabledWhileLoggedIn Whether the Restart menu item on the login window will be disabled while the user is logged in.
+ RestartDisabledWhileLoggedIn *bool `json:"restartDisabledWhileLoggedIn,omitempty"`
+ // PowerOffDisabledWhileLoggedIn Whether the Power Off menu item on the login window will be disabled while the user is logged in.
+ PowerOffDisabledWhileLoggedIn *bool `json:"powerOffDisabledWhileLoggedIn,omitempty"`
+ // LogOutDisabledWhileLoggedIn Whether the Log Out menu item on the login window will be disabled while the user is logged in.
+ LogOutDisabledWhileLoggedIn *bool `json:"logOutDisabledWhileLoggedIn,omitempty"`
+ // ScreenLockDisableImmediate Whether to disable the immediate screen lock functions.
+ ScreenLockDisableImmediate *bool `json:"screenLockDisableImmediate,omitempty"`
+ // AssociatedDomains Gets or sets a list that maps apps to their associated domains. The key should match the app's ID, and the value should be a string in the form of "service:domain" where domain is a fully qualified hostname (e.g. webcredentials:example.com). This collection can contain a maximum of 500 elements.
+ AssociatedDomains []KeyValuePair `json:"associatedDomains,omitempty"`
+ // SingleSignOnExtension Gets or sets a single sign-on extension profile.
+ SingleSignOnExtension *SingleSignOnExtension `json:"singleSignOnExtension,omitempty"`
+ // SingleSignOnExtensionPkinitCertificate undocumented
+ SingleSignOnExtensionPkinitCertificate *MacOSCertificateProfileBase `json:"singleSignOnExtensionPkinitCertificate,omitempty"`
+}
+
+// MacOSEndpointProtectionConfiguration MacOS endpoint protection configuration profile.
+type MacOSEndpointProtectionConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSEndpointProtectionConfiguration
+ DeviceConfiguration
+ // GatekeeperAllowedAppSource System and Privacy setting that determines which download locations apps can be run from on a macOS device.
+ GatekeeperAllowedAppSource *MacOSGatekeeperAppSources `json:"gatekeeperAllowedAppSource,omitempty"`
+ // GatekeeperBlockOverride If set to true, the user override for Gatekeeper will be disabled.
+ GatekeeperBlockOverride *bool `json:"gatekeeperBlockOverride,omitempty"`
+ // FirewallEnabled Whether the firewall should be enabled or not.
+ FirewallEnabled *bool `json:"firewallEnabled,omitempty"`
+ // FirewallBlockAllIncoming Corresponds to the “Block all incoming connections” option.
+ FirewallBlockAllIncoming *bool `json:"firewallBlockAllIncoming,omitempty"`
+ // FirewallEnableStealthMode Corresponds to “Enable stealth mode.”
+ FirewallEnableStealthMode *bool `json:"firewallEnableStealthMode,omitempty"`
+ // FirewallApplications List of applications with firewall settings. Firewall settings for applications not on this list are determined by the user. This collection can contain a maximum of 500 elements.
+ FirewallApplications []MacOSFirewallApplication `json:"firewallApplications,omitempty"`
+ // FileVaultEnabled Whether FileVault should be enabled or not.
+ FileVaultEnabled *bool `json:"fileVaultEnabled,omitempty"`
+ // FileVaultSelectedRecoveryKeyTypes Required if FileVault is enabled, determines the type(s) of recovery key to use.
+ FileVaultSelectedRecoveryKeyTypes *MacOSFileVaultRecoveryKeyTypes `json:"fileVaultSelectedRecoveryKeyTypes,omitempty"`
+ // FileVaultInstitutionalRecoveryKeyCertificate Required if selected recovery key type(s) include InstitutionalRecoveryKey. The DER Encoded certificate file used to set an institutional recovery key.
+ FileVaultInstitutionalRecoveryKeyCertificate *Binary `json:"fileVaultInstitutionalRecoveryKeyCertificate,omitempty"`
+ // FileVaultInstitutionalRecoveryKeyCertificateFileName File name of the institutional recovery key certificate to display in UI. (*.der).
+ FileVaultInstitutionalRecoveryKeyCertificateFileName *string `json:"fileVaultInstitutionalRecoveryKeyCertificateFileName,omitempty"`
+ // FileVaultPersonalRecoveryKeyHelpMessage Required if selected recovery key type(s) include PersonalRecoveryKey. A short message displayed to the user that explains how they can retrieve their personal recovery key.
+ FileVaultPersonalRecoveryKeyHelpMessage *string `json:"fileVaultPersonalRecoveryKeyHelpMessage,omitempty"`
+ // FileVaultAllowDeferralUntilSignOut Optional. If set to true, the user can defer the enabling of FileVault until they sign out.
+ FileVaultAllowDeferralUntilSignOut *bool `json:"fileVaultAllowDeferralUntilSignOut,omitempty"`
+ // FileVaultNumberOfTimesUserCanIgnore Optional. When using the Defer option, this is the maximum number of times the user can ignore prompts to enable FileVault before FileVault will be required for the user to sign in. If set to -1, it will always prompt to enable FileVault until FileVault is enabled, though it will allow the user to bypass enabling FileVault. Setting this to 0 will disable the feature.
+ FileVaultNumberOfTimesUserCanIgnore *int `json:"fileVaultNumberOfTimesUserCanIgnore,omitempty"`
+ // FileVaultDisablePromptAtSignOut Optional. When using the Defer option, if set to true, the user is not prompted to enable FileVault at sign-out.
+ FileVaultDisablePromptAtSignOut *bool `json:"fileVaultDisablePromptAtSignOut,omitempty"`
+ // FileVaultPersonalRecoveryKeyRotationInMonths Optional. If selected recovery key type(s) include PersonalRecoveryKey, the frequency to rotate that key, in months.
+ FileVaultPersonalRecoveryKeyRotationInMonths *int `json:"fileVaultPersonalRecoveryKeyRotationInMonths,omitempty"`
+}
+
+// MacOSEnterpriseWiFiConfiguration MacOS Wi-Fi WPA-Enterprise/WPA2-Enterprise configuration profile.
+type MacOSEnterpriseWiFiConfiguration struct {
+ // MacOSWiFiConfiguration is the base model of MacOSEnterpriseWiFiConfiguration
+ MacOSWiFiConfiguration
+ // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *EapType `json:"eapType,omitempty"`
+ // EapFastConfiguration EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type.
+ EapFastConfiguration *EapFastConfiguration `json:"eapFastConfiguration,omitempty"`
+ // TrustedServerCertificateNames Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users devices when they connect to this Wi-Fi network.
+ TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"`
+ // AuthenticationMethod Authentication Method when EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ InnerAuthenticationProtocolForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEapTtls,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS, EAP-FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this Wi-Fi connection using their real username is displayed as 'anonymous'.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *MacOSTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *MacOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
+
+// MacOSExtensionsConfiguration MacOS extensions configuration profile.
+type MacOSExtensionsConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSExtensionsConfiguration
+ DeviceConfiguration
+ // KernelExtensionOverridesAllowed If set to true, users can approve additional kernel extensions not explicitly allowed by configurations profiles.
+ KernelExtensionOverridesAllowed *bool `json:"kernelExtensionOverridesAllowed,omitempty"`
+ // KernelExtensionAllowedTeamIdentifiers All kernel extensions validly signed by the team identifiers in this list will be allowed to load.
+ KernelExtensionAllowedTeamIdentifiers []string `json:"kernelExtensionAllowedTeamIdentifiers,omitempty"`
+ // KernelExtensionsAllowed A list of kernel extensions that will be allowed to load. . This collection can contain a maximum of 500 elements.
+ KernelExtensionsAllowed []MacOSKernelExtension `json:"kernelExtensionsAllowed,omitempty"`
+}
+
+// MacOSFirewallApplication undocumented
+type MacOSFirewallApplication struct {
+ // Object is the base model of MacOSFirewallApplication
+ Object
+ // BundleID BundleId of the application.
+ BundleID *string `json:"bundleId,omitempty"`
+ // AllowsIncomingConnections Whether or not incoming connections are allowed.
+ AllowsIncomingConnections *bool `json:"allowsIncomingConnections,omitempty"`
+}
+
+// MacOSGeneralDeviceConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the macOSGeneralDeviceConfiguration resource.
+type MacOSGeneralDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSGeneralDeviceConfiguration
+ DeviceConfiguration
+ // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.
+ CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"`
+ // CompliantAppListType List that is in the CompliantAppsList.
+ CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"`
+ // EmailInDomainSuffixes An email address lacking a suffix that matches any of these strings will be considered out-of-domain.
+ EmailInDomainSuffixes []string `json:"emailInDomainSuffixes,omitempty"`
+ // PasswordBlockSimple Block simple passwords.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumCharacterSetCount Number of character sets a password must contain. Valid values 0 to 4
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity required before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity required before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block.
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordRequiredType Type of password that is required.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordRequired Whether or not to require a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // KeychainBlockCloudSync Indicates whether or not iCloud keychain synchronization is blocked (macOS 10.12 and later).
+ KeychainBlockCloudSync *bool `json:"keychainBlockCloudSync,omitempty"`
+ // AirPrintBlocked Indicates whether or not AirPrint is blocked (macOS 10.12 and later).
+ AirPrintBlocked *bool `json:"airPrintBlocked,omitempty"`
+ // AirPrintForceTrustedTLS Indicates if trusted certificates are required for TLS printing communication (macOS 10.13 and later).
+ AirPrintForceTrustedTLS *bool `json:"airPrintForceTrustedTLS,omitempty"`
+ // AirPrintBlockiBeaconDiscovery Indicates whether or not iBeacon discovery of AirPrint printers is blocked. This prevents spurious AirPrint Bluetooth beacons from phishing for network traffic (macOS 10.3 and later).
+ AirPrintBlockiBeaconDiscovery *bool `json:"airPrintBlockiBeaconDiscovery,omitempty"`
+ // SafariBlockAutofill Indicates whether or not to block the user from using Auto fill in Safari.
+ SafariBlockAutofill *bool `json:"safariBlockAutofill,omitempty"`
+ // CameraBlocked Indicates whether or not to block the user from accessing the camera of the device.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // ITunesBlockMusicService Indicates whether or not to block Music service and revert Music app to classic mode.
+ ITunesBlockMusicService *bool `json:"iTunesBlockMusicService,omitempty"`
+ // SpotlightBlockInternetResults Indicates whether or not to block Spotlight from returning any results from an Internet search.
+ SpotlightBlockInternetResults *bool `json:"spotlightBlockInternetResults,omitempty"`
+ // KeyboardBlockDictation Indicates whether or not to block the user from using dictation input.
+ KeyboardBlockDictation *bool `json:"keyboardBlockDictation,omitempty"`
+ // DefinitionLookupBlocked Indicates whether or not to block definition lookup.
+ DefinitionLookupBlocked *bool `json:"definitionLookupBlocked,omitempty"`
+ // AppleWatchBlockAutoUnlock Indicates whether or to block users from unlocking their Mac with Apple Watch.
+ AppleWatchBlockAutoUnlock *bool `json:"appleWatchBlockAutoUnlock,omitempty"`
+ // ITunesBlockFileSharing Indicates whether or not to block files from being transferred using iTunes.
+ ITunesBlockFileSharing *bool `json:"iTunesBlockFileSharing,omitempty"`
+ // ICloudBlockDocumentSync Indicates whether or not to block iCloud document sync.
+ ICloudBlockDocumentSync *bool `json:"iCloudBlockDocumentSync,omitempty"`
+ // ICloudBlockMail Indicates whether or not to block iCloud from syncing mail.
+ ICloudBlockMail *bool `json:"iCloudBlockMail,omitempty"`
+ // ICloudBlockAddressBook Indicates whether or not to block iCloud from syncing contacts.
+ ICloudBlockAddressBook *bool `json:"iCloudBlockAddressBook,omitempty"`
+ // ICloudBlockCalendar Indicates whether or not to block iCloud from syncing calendars.
+ ICloudBlockCalendar *bool `json:"iCloudBlockCalendar,omitempty"`
+ // ICloudBlockReminders Indicates whether or not to block iCloud from syncing reminders.
+ ICloudBlockReminders *bool `json:"iCloudBlockReminders,omitempty"`
+ // ICloudBlockBookmarks Indicates whether or not to block iCloud from syncing bookmarks.
+ ICloudBlockBookmarks *bool `json:"iCloudBlockBookmarks,omitempty"`
+ // ICloudBlockNotes Indicates whether or not to block iCloud from syncing notes.
+ ICloudBlockNotes *bool `json:"iCloudBlockNotes,omitempty"`
+ // AirDropBlocked Indicates whether or not to allow AirDrop.
+ AirDropBlocked *bool `json:"airDropBlocked,omitempty"`
+ // PasswordBlockModification Indicates whether or not to allow passcode modification.
+ PasswordBlockModification *bool `json:"passwordBlockModification,omitempty"`
+ // PasswordBlockFingerprintUnlock Indicates whether or not to block fingerprint unlock.
+ PasswordBlockFingerprintUnlock *bool `json:"passwordBlockFingerprintUnlock,omitempty"`
+ // PasswordBlockAutoFill Indicates whether or not to block the AutoFill Passwords feature.
+ PasswordBlockAutoFill *bool `json:"passwordBlockAutoFill,omitempty"`
+ // PasswordBlockProximityRequests Indicates whether or not to block requesting passwords from nearby devices.
+ PasswordBlockProximityRequests *bool `json:"passwordBlockProximityRequests,omitempty"`
+ // PasswordBlockAirDropSharing Indicates whether or not to block sharing passwords with the AirDrop passwords feature.
+ PasswordBlockAirDropSharing *bool `json:"passwordBlockAirDropSharing,omitempty"`
+ // SoftwareUpdatesEnforcedDelayInDays Sets how many days a software update will be delyed for a supervised device. Valid values 0 to 90
+ SoftwareUpdatesEnforcedDelayInDays *int `json:"softwareUpdatesEnforcedDelayInDays,omitempty"`
+ // SoftwareUpdatesForceDelayed Indicates whether or not to delay user visibility of software updates when the device is in supervised mode.
+ SoftwareUpdatesForceDelayed *bool `json:"softwareUpdatesForceDelayed,omitempty"`
+ // ContentCachingBlocked Indicates whether or not to allow content caching.
+ ContentCachingBlocked *bool `json:"contentCachingBlocked,omitempty"`
+ // ICloudBlockPhotoLibrary Indicates whether or not to block iCloud Photo Library.
+ ICloudBlockPhotoLibrary *bool `json:"iCloudBlockPhotoLibrary,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to block the user from taking Screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // ClassroomAppBlockRemoteScreenObservation Indicates whether or not to allow remote screen observation by Classroom app. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomAppBlockRemoteScreenObservation *bool `json:"classroomAppBlockRemoteScreenObservation,omitempty"`
+ // ClassroomAppForceUnpromptedScreenObservation Indicates whether or not to automatically give permission to the teacher of a managed course on the Classroom app to view a student's screen without prompting. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomAppForceUnpromptedScreenObservation *bool `json:"classroomAppForceUnpromptedScreenObservation,omitempty"`
+ // ClassroomForceAutomaticallyJoinClasses Indicates whether or not to automatically give permission to the teacher's requests, without prompting the student. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomForceAutomaticallyJoinClasses *bool `json:"classroomForceAutomaticallyJoinClasses,omitempty"`
+ // ClassroomForceRequestPermissionToLeaveClasses Indicates whether a student enrolled in an unmanaged course via Classroom will be required to request permission from the teacher when attempting to leave the course. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomForceRequestPermissionToLeaveClasses *bool `json:"classroomForceRequestPermissionToLeaveClasses,omitempty"`
+ // ClassroomForceUnpromptedAppAndDeviceLock Indicates whether or not to allow the teacher to lock apps or the device without prompting the student. Requires MDM enrollment via Apple School Manager or Apple Business Manager.
+ ClassroomForceUnpromptedAppAndDeviceLock *bool `json:"classroomForceUnpromptedAppAndDeviceLock,omitempty"`
+ // ICloudBlockActivityContinuation Indicates whether or not to block the user from continuing work that they started on a MacOS device on another iOS or MacOS device (MacOS 10.15 or later).
+ ICloudBlockActivityContinuation *bool `json:"iCloudBlockActivityContinuation,omitempty"`
+}
+
+// MacOSImportedPFXCertificateProfile MacOS PFX Import certificate profile
+type MacOSImportedPFXCertificateProfile struct {
+ // MacOSCertificateProfileBase is the base model of MacOSImportedPFXCertificateProfile
+ MacOSCertificateProfileBase
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// MacOSKerberosSingleSignOnExtension undocumented
+type MacOSKerberosSingleSignOnExtension struct {
+ // KerberosSingleSignOnExtension is the base model of MacOSKerberosSingleSignOnExtension
+ KerberosSingleSignOnExtension
+}
+
+// MacOSKernelExtension undocumented
+type MacOSKernelExtension struct {
+ // Object is the base model of MacOSKernelExtension
+ Object
+ // TeamIdentifier The team identifier that was used to sign the kernel extension.
+ TeamIdentifier *string `json:"teamIdentifier,omitempty"`
+ // BundleID Bundle ID of the kernel extension.
+ BundleID *string `json:"bundleId,omitempty"`
+}
+
+// MacOSLaunchItem undocumented
+type MacOSLaunchItem struct {
+ // Object is the base model of MacOSLaunchItem
+ Object
+ // Path Path to the launch item.
+ Path *string `json:"path,omitempty"`
+ // Hide Whether or not to hide the item from the Users and Groups List.
+ Hide *bool `json:"hide,omitempty"`
+}
+
+// MacOSLobApp Contains properties and inherited properties for the MacOS LOB App.
+type MacOSLobApp struct {
+ // MobileLobApp is the base model of MacOSLobApp
+ MobileLobApp
+ // BundleID The bundle id.
+ BundleID *string `json:"bundleId,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *MacOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // BuildNumber The build number of MacOS Line of Business (LoB) app.
+ BuildNumber *string `json:"buildNumber,omitempty"`
+ // VersionNumber The version number of MacOS Line of Business (LoB) app.
+ VersionNumber *string `json:"versionNumber,omitempty"`
+ // ChildApps The app list in this bundle package
+ ChildApps []MacOSLobChildApp `json:"childApps,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+ // Md5HashChunkSize The chunk size for MD5 hash
+ Md5HashChunkSize *int `json:"md5HashChunkSize,omitempty"`
+ // Md5Hash The MD5 hash codes
+ Md5Hash []string `json:"md5Hash,omitempty"`
+ // IgnoreVersionDetection A boolean to control whether the app's version will be used to detect the app after it is installed on a device. Set this to true for macOS Line of Business (LoB) apps that use a self update feature.
+ IgnoreVersionDetection *bool `json:"ignoreVersionDetection,omitempty"`
+}
+
+// MacOSLobChildApp undocumented
+type MacOSLobChildApp struct {
+ // Object is the base model of MacOSLobChildApp
+ Object
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // BuildNumber The build number of MacOS Line of Business (LoB) app.
+ BuildNumber *string `json:"buildNumber,omitempty"`
+ // VersionNumber The version number of MacOS Line of Business (LoB) app.
+ VersionNumber *string `json:"versionNumber,omitempty"`
+}
+
+// MacOSMicrosoftEdgeApp Contains properties and inherited properties for the MacOS Microsoft Edge App.
+type MacOSMicrosoftEdgeApp struct {
+ // MobileApp is the base model of MacOSMicrosoftEdgeApp
+ MobileApp
+}
+
+// MacOSMinimumOperatingSystem undocumented
+type MacOSMinimumOperatingSystem struct {
+ // Object is the base model of MacOSMinimumOperatingSystem
+ Object
+ // V10_7 Mac OS 10.7 or later.
+ V10_7 *bool `json:"v10_7,omitempty"`
+ // V10_8 Mac OS 10.8 or later.
+ V10_8 *bool `json:"v10_8,omitempty"`
+ // V10_9 Mac OS 10.9 or later.
+ V10_9 *bool `json:"v10_9,omitempty"`
+ // V10_10 Mac OS 10.10 or later.
+ V10_10 *bool `json:"v10_10,omitempty"`
+ // V10_11 Mac OS 10.11 or later.
+ V10_11 *bool `json:"v10_11,omitempty"`
+ // V10_12 Mac OS 10.12 or later.
+ V10_12 *bool `json:"v10_12,omitempty"`
+ // V10_13 Mac OS 10.13 or later.
+ V10_13 *bool `json:"v10_13,omitempty"`
+ // V10_14 Mac OS 10.14 or later.
+ V10_14 *bool `json:"v10_14,omitempty"`
+ // V10_15 Mac OS 10.15 or later.
+ V10_15 *bool `json:"v10_15,omitempty"`
+}
+
+// MacOSOfficeSuiteApp Contains properties and inherited properties for the MacOS Office Suite App.
+type MacOSOfficeSuiteApp struct {
+ // MobileApp is the base model of MacOSOfficeSuiteApp
+ MobileApp
+}
+
+// MacOSPkcsCertificateProfile MacOS PKCS certificate profile.
+type MacOSPkcsCertificateProfile struct {
+ // MacOSCertificateProfileBase is the base model of MacOSPkcsCertificateProfile
+ MacOSCertificateProfileBase
+ // CertificationAuthority PKCS certification authority FQDN.
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS certification authority Name.
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS certificate template name.
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Format string that defines the subject alternative name.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // SubjectNameFormatString Format string that defines the subject name. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // AllowAllAppsAccess AllowAllAppsAccess setting
+ AllowAllAppsAccess *bool `json:"allowAllAppsAccess,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// MacOSScepCertificateProfile Mac OS SCEP certificate profile.
+type MacOSScepCertificateProfile struct {
+ // MacOSCertificateProfileBase is the base model of MacOSScepCertificateProfile
+ MacOSCertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s).
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage.
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size.
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm.
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *MacOSTrustedRootCertificate `json:"rootCertificate,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// MacOSTrustedRootCertificate OS X Trusted Root Certificate configuration profile.
+type MacOSTrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of MacOSTrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate.
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
+
+// MacOSVpnConfiguration By providing the configurations in this profile you can instruct the Mac device to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type MacOSVpnConfiguration struct {
+ // AppleVPNConfiguration is the base model of MacOSVpnConfiguration
+ AppleVPNConfiguration
+ // IdentityCertificate undocumented
+ IdentityCertificate *MacOSCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
+
+// MacOSWiFiConfiguration By providing the configurations in this profile you can instruct the macOS device to connect to desired Wi-Fi endpoint. By specifying the authentication method and security types expected by Wi-Fi endpoint you can make the Wi-Fi connection seamless for end user.
+type MacOSWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSWiFiConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // Ssid This is the name of the Wi-Fi network that is broadcast to all devices.
+ Ssid *string `json:"ssid,omitempty"`
+ // ConnectAutomatically Connect automatically when this network is in range. Setting this to true will skip the user prompt and automatically connect the device to Wi-Fi network.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectWhenNetworkNameIsHidden Connect when the network is not broadcasting its name (SSID). When set to true, this profile forces the device to connect to a network that doesn't broadcast its SSID to all devices.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // WiFiSecurityType Indicates whether Wi-Fi endpoint uses an EAP based security type.
+ WiFiSecurityType *WiFiSecurityType `json:"wiFiSecurityType,omitempty"`
+ // ProxySettings Proxy Type for this Wi-Fi connection
+ ProxySettings *WiFiProxySetting `json:"proxySettings,omitempty"`
+ // ProxyManualAddress IP Address or DNS hostname of the proxy server when manual configuration is selected.
+ ProxyManualAddress *string `json:"proxyManualAddress,omitempty"`
+ // ProxyManualPort Port of the proxy server when manual configuration is selected.
+ ProxyManualPort *int `json:"proxyManualPort,omitempty"`
+ // ProxyAutomaticConfigurationURL URL of the proxy server automatic configuration script when automatic configuration is selected. This URL is typically the location of PAC (Proxy Auto Configuration) file.
+ ProxyAutomaticConfigurationURL *string `json:"proxyAutomaticConfigurationUrl,omitempty"`
+ // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network.
+ PreSharedKey *string `json:"preSharedKey,omitempty"`
+}
+
+// MacOSWiredNetworkConfiguration MacOS wired network configuration profile.
+type MacOSWiredNetworkConfiguration struct {
+ // DeviceConfiguration is the base model of MacOSWiredNetworkConfiguration
+ DeviceConfiguration
+ // NetworkName Network Name
+ NetworkName *string `json:"networkName,omitempty"`
+ // NetworkInterface Network interface.
+ NetworkInterface *WiredNetworkInterface `json:"networkInterface,omitempty"`
+ // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the wired network.
+ EapType *EapType `json:"eapType,omitempty"`
+ // EapFastConfiguration EAP-FAST Configuration Option when EAP-FAST is the selected EAP Type.
+ EapFastConfiguration *EapFastConfiguration `json:"eapFastConfiguration,omitempty"`
+ // TrustedServerCertificateNames Trusted server certificate names when EAP Type is configured to EAP-TLS/TTLS/FAST or PEAP. This is the common name used in the certificates issued by your trusted certificate authority (CA). If you provide this information, you can bypass the dynamic trust dialog that is displayed on end users devices when they connect to this wired network.
+ TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"`
+ // AuthenticationMethod Authentication Method when EAP Type is configured to PEAP or EAP-TTLS.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // NonEapAuthenticationMethodForEapTtls Non-EAP Method for Authentication (Inner Identity) when EAP Type is EAP-TTLS and Authenticationmethod is Username and Password.
+ NonEapAuthenticationMethodForEapTtls *NonEapAuthenticationMethodForEapTtlsType `json:"nonEapAuthenticationMethodForEapTtls,omitempty"`
+ // EnableOuterIdentityPrivacy Enable identity privacy (Outer Identity) when EAP Type is configured to EAP-TTLS, EAP-FAST or PEAP. This property masks usernames with the text you enter. For example, if you use 'anonymous', each user that authenticates with this wired network using their real username is displayed as 'anonymous'.
+ EnableOuterIdentityPrivacy *string `json:"enableOuterIdentityPrivacy,omitempty"`
+ // RootCertificateForServerValidation undocumented
+ RootCertificateForServerValidation *MacOSTrustedRootCertificate `json:"rootCertificateForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *MacOSCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
+
+// MacOsVPPApp Contains properties and inherited properties for MacOS Volume-Purchased Program (VPP) Apps.
+type MacOsVPPApp struct {
+ // MobileApp is the base model of MacOsVPPApp
+ MobileApp
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of VPP licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // ReleaseDateTime The VPP application release date and time.
+ ReleaseDateTime *time.Time `json:"releaseDateTime,omitempty"`
+ // AppStoreURL The store URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // LicensingType The supported License Type.
+ LicensingType *VPPLicensingType `json:"licensingType,omitempty"`
+ // VPPTokenOrganizationName The organization associated with the Apple Volume Purchase Program Token
+ VPPTokenOrganizationName *string `json:"vppTokenOrganizationName,omitempty"`
+ // VPPTokenAccountType The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`.
+ VPPTokenAccountType *VPPTokenAccountType `json:"vppTokenAccountType,omitempty"`
+ // VPPTokenAppleID The Apple Id associated with the given Apple Volume Purchase Program Token.
+ VPPTokenAppleID *string `json:"vppTokenAppleId,omitempty"`
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // VPPTokenID Identifier of the VPP token associated with this app.
+ VPPTokenID *string `json:"vppTokenId,omitempty"`
+ // RevokeLicenseActionResults Results of revoke license actions on this app.
+ RevokeLicenseActionResults []MacOsVPPAppRevokeLicensesActionResult `json:"revokeLicenseActionResults,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []MacOsVPPAppAssignedLicense `json:"assignedLicenses,omitempty"`
+}
+
+// MacOsVPPAppAssignedLicense MacOS Volume Purchase Program license assignment. This class does not support Create, Delete, or Update.
+type MacOsVPPAppAssignedLicense struct {
+ // Entity is the base model of MacOsVPPAppAssignedLicense
+ Entity
+ // UserEmailAddress The user email address.
+ UserEmailAddress *string `json:"userEmailAddress,omitempty"`
+ // UserID The user ID.
+ UserID *string `json:"userId,omitempty"`
+ // UserName The user name.
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName The user principal name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// MacOsVPPAppAssignmentSettings undocumented
+type MacOsVPPAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of MacOsVPPAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // UseDeviceLicensing Whether or not to use device licensing.
+ UseDeviceLicensing *bool `json:"useDeviceLicensing,omitempty"`
+}
+
+// MacOsVPPAppRevokeLicensesActionResult undocumented
+type MacOsVPPAppRevokeLicensesActionResult struct {
+ // Object is the base model of MacOsVPPAppRevokeLicensesActionResult
+ Object
+ // UserID UserId associated with the action.
+ UserID *string `json:"userId,omitempty"`
+ // ManagedDeviceID DeviceId associated with the action.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // TotalLicensesCount A count of the number of licenses for which revoke was attempted.
+ TotalLicensesCount *int `json:"totalLicensesCount,omitempty"`
+ // FailedLicensesCount A count of the number of licenses for which revoke failed.
+ FailedLicensesCount *int `json:"failedLicensesCount,omitempty"`
+ // ActionFailureReason The reason for the revoke licenses action failure.
+ ActionFailureReason *VPPTokenActionFailureReason `json:"actionFailureReason,omitempty"`
+ // ActionName Action name
+ ActionName *string `json:"actionName,omitempty"`
+ // ActionState State of the action
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // StartDateTime Time the action was initiated
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime Time the action state was last updated
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMail.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMail.go
new file mode 100644
index 00000000..bd602c59
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMail.go
@@ -0,0 +1,99 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailAssessmentRequestObject undocumented
+type MailAssessmentRequestObject struct {
+ // ThreatAssessmentRequestObject is the base model of MailAssessmentRequestObject
+ ThreatAssessmentRequestObject
+ // RecipientEmail undocumented
+ RecipientEmail *string `json:"recipientEmail,omitempty"`
+ // DestinationRoutingReason undocumented
+ DestinationRoutingReason *MailDestinationRoutingReason `json:"destinationRoutingReason,omitempty"`
+ // MessageURI undocumented
+ MessageURI *string `json:"messageUri,omitempty"`
+}
+
+// MailFolder undocumented
+type MailFolder struct {
+ // Entity is the base model of MailFolder
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // ChildFolderCount undocumented
+ ChildFolderCount *int `json:"childFolderCount,omitempty"`
+ // UnreadItemCount undocumented
+ UnreadItemCount *int `json:"unreadItemCount,omitempty"`
+ // TotalItemCount undocumented
+ TotalItemCount *int `json:"totalItemCount,omitempty"`
+ // WellKnownName undocumented
+ WellKnownName *string `json:"wellKnownName,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Messages undocumented
+ Messages []Message `json:"messages,omitempty"`
+ // MessageRules undocumented
+ MessageRules []MessageRule `json:"messageRules,omitempty"`
+ // ChildFolders undocumented
+ ChildFolders []MailFolder `json:"childFolders,omitempty"`
+ // UserConfigurations undocumented
+ UserConfigurations []UserConfiguration `json:"userConfigurations,omitempty"`
+}
+
+// MailSearchFolder undocumented
+type MailSearchFolder struct {
+ // MailFolder is the base model of MailSearchFolder
+ MailFolder
+ // IsSupported undocumented
+ IsSupported *bool `json:"isSupported,omitempty"`
+ // IncludeNestedFolders undocumented
+ IncludeNestedFolders *bool `json:"includeNestedFolders,omitempty"`
+ // SourceFolderIDs undocumented
+ SourceFolderIDs []string `json:"sourceFolderIds,omitempty"`
+ // FilterQuery undocumented
+ FilterQuery *string `json:"filterQuery,omitempty"`
+}
+
+// MailTips undocumented
+type MailTips struct {
+ // Object is the base model of MailTips
+ Object
+ // EmailAddress undocumented
+ EmailAddress *EmailAddress `json:"emailAddress,omitempty"`
+ // AutomaticReplies undocumented
+ AutomaticReplies *AutomaticRepliesMailTips `json:"automaticReplies,omitempty"`
+ // MailboxFull undocumented
+ MailboxFull *bool `json:"mailboxFull,omitempty"`
+ // CustomMailTip undocumented
+ CustomMailTip *string `json:"customMailTip,omitempty"`
+ // ExternalMemberCount undocumented
+ ExternalMemberCount *int `json:"externalMemberCount,omitempty"`
+ // TotalMemberCount undocumented
+ TotalMemberCount *int `json:"totalMemberCount,omitempty"`
+ // DeliveryRestricted undocumented
+ DeliveryRestricted *bool `json:"deliveryRestricted,omitempty"`
+ // IsModerated undocumented
+ IsModerated *bool `json:"isModerated,omitempty"`
+ // RecipientScope undocumented
+ RecipientScope *RecipientScopeType `json:"recipientScope,omitempty"`
+ // RecipientSuggestions undocumented
+ RecipientSuggestions []Recipient `json:"recipientSuggestions,omitempty"`
+ // MaxMessageSize undocumented
+ MaxMessageSize *int `json:"maxMessageSize,omitempty"`
+ // Error undocumented
+ Error *MailTipsError `json:"error,omitempty"`
+}
+
+// MailTipsError undocumented
+type MailTipsError struct {
+ // Object is the base model of MailTipsError
+ Object
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMailbox.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMailbox.go
new file mode 100644
index 00000000..398e1c25
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMailbox.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MailboxSettings undocumented
+type MailboxSettings struct {
+ // Object is the base model of MailboxSettings
+ Object
+ // AutomaticRepliesSetting undocumented
+ AutomaticRepliesSetting *AutomaticRepliesSetting `json:"automaticRepliesSetting,omitempty"`
+ // ArchiveFolder undocumented
+ ArchiveFolder *string `json:"archiveFolder,omitempty"`
+ // TimeZone undocumented
+ TimeZone *string `json:"timeZone,omitempty"`
+ // Language undocumented
+ Language *LocaleInfo `json:"language,omitempty"`
+ // DelegateMeetingMessageDeliveryOptions undocumented
+ DelegateMeetingMessageDeliveryOptions *DelegateMeetingMessageDeliveryOptions `json:"delegateMeetingMessageDeliveryOptions,omitempty"`
+ // WorkingHours undocumented
+ WorkingHours *WorkingHours `json:"workingHours,omitempty"`
+ // DateFormat undocumented
+ DateFormat *string `json:"dateFormat,omitempty"`
+ // TimeFormat undocumented
+ TimeFormat *string `json:"timeFormat,omitempty"`
+}
+
+// MailboxUsageDetail undocumented
+type MailboxUsageDetail struct {
+ // Entity is the base model of MailboxUsageDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *Date `json:"deletedDate,omitempty"`
+ // CreatedDate undocumented
+ CreatedDate *Date `json:"createdDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // ItemCount undocumented
+ ItemCount *int `json:"itemCount,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // DeletedItemCount undocumented
+ DeletedItemCount *int `json:"deletedItemCount,omitempty"`
+ // DeletedItemSizeInBytes undocumented
+ DeletedItemSizeInBytes *int `json:"deletedItemSizeInBytes,omitempty"`
+ // IssueWarningQuotaInBytes undocumented
+ IssueWarningQuotaInBytes *int `json:"issueWarningQuotaInBytes,omitempty"`
+ // ProhibitSendQuotaInBytes undocumented
+ ProhibitSendQuotaInBytes *int `json:"prohibitSendQuotaInBytes,omitempty"`
+ // ProhibitSendReceiveQuotaInBytes undocumented
+ ProhibitSendReceiveQuotaInBytes *int `json:"prohibitSendReceiveQuotaInBytes,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// MailboxUsageMailboxCounts undocumented
+type MailboxUsageMailboxCounts struct {
+ // Entity is the base model of MailboxUsageMailboxCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// MailboxUsageQuotaStatusMailboxCounts undocumented
+type MailboxUsageQuotaStatusMailboxCounts struct {
+ // Entity is the base model of MailboxUsageQuotaStatusMailboxCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UnderLimit undocumented
+ UnderLimit *int `json:"underLimit,omitempty"`
+ // WarningIssued undocumented
+ WarningIssued *int `json:"warningIssued,omitempty"`
+ // SendProhibited undocumented
+ SendProhibited *int `json:"sendProhibited,omitempty"`
+ // SendReceiveProhibited undocumented
+ SendReceiveProhibited *int `json:"sendReceiveProhibited,omitempty"`
+ // Indeterminate undocumented
+ Indeterminate *int `json:"indeterminate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// MailboxUsageStorage undocumented
+type MailboxUsageStorage struct {
+ // Entity is the base model of MailboxUsageStorage
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMalware.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMalware.go
new file mode 100644
index 00000000..596220f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMalware.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MalwareRiskEvent undocumented
+type MalwareRiskEvent struct {
+ // LocatedRiskEvent is the base model of MalwareRiskEvent
+ LocatedRiskEvent
+ // DeviceInformation undocumented
+ DeviceInformation *string `json:"deviceInformation,omitempty"`
+ // MalwareName undocumented
+ MalwareName *string `json:"malwareName,omitempty"`
+}
+
+// MalwareState undocumented
+type MalwareState struct {
+ // Object is the base model of MalwareState
+ Object
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // Family undocumented
+ Family *string `json:"family,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Severity undocumented
+ Severity *string `json:"severity,omitempty"`
+ // WasRunning undocumented
+ WasRunning *bool `json:"wasRunning,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelManaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelManaged.go
new file mode 100644
index 00000000..0c8671dd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelManaged.go
@@ -0,0 +1,852 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "encoding/json"
+ "time"
+)
+
+// ManagedAllDeviceCertificateState undocumented
+type ManagedAllDeviceCertificateState struct {
+ // Entity is the base model of ManagedAllDeviceCertificateState
+ Entity
+ // CertificateRevokeStatus Revoke status
+ CertificateRevokeStatus *CertificateRevocationStatus `json:"certificateRevokeStatus,omitempty"`
+ // ManagedDeviceDisplayName Device display name
+ ManagedDeviceDisplayName *string `json:"managedDeviceDisplayName,omitempty"`
+ // UserPrincipalName User principal name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // CertificateExpirationDateTime Certificate expiry date
+ CertificateExpirationDateTime *time.Time `json:"certificateExpirationDateTime,omitempty"`
+ // CertificateIssuerName Issuer
+ CertificateIssuerName *string `json:"certificateIssuerName,omitempty"`
+ // CertificateThumbprint Thumbprint
+ CertificateThumbprint *string `json:"certificateThumbprint,omitempty"`
+ // CertificateSerialNumber Serial number
+ CertificateSerialNumber *string `json:"certificateSerialNumber,omitempty"`
+ // CertificateSubjectName Certificate subject name
+ CertificateSubjectName *string `json:"certificateSubjectName,omitempty"`
+ // CertificateKeyUsages Key Usage
+ CertificateKeyUsages *int `json:"certificateKeyUsages,omitempty"`
+ // CertificateExtendedKeyUsages Enhanced Key Usage
+ CertificateExtendedKeyUsages *string `json:"certificateExtendedKeyUsages,omitempty"`
+ // CertificateIssuanceDateTime Issuance date
+ CertificateIssuanceDateTime *time.Time `json:"certificateIssuanceDateTime,omitempty"`
+}
+
+// ManagedAndroidLobApp Contains properties and inherited properties for Managed Android Line Of Business apps.
+type ManagedAndroidLobApp struct {
+ // ManagedMobileLobApp is the base model of ManagedAndroidLobApp
+ ManagedMobileLobApp
+ // PackageID The package identifier.
+ PackageID *string `json:"packageId,omitempty"`
+ // IdentityName The Identity Name.
+ IdentityName *string `json:"identityName,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // VersionName The version name of managed Android Line of Business (LoB) app.
+ VersionName *string `json:"versionName,omitempty"`
+ // VersionCode The version code of managed Android Line of Business (LoB) app.
+ VersionCode *string `json:"versionCode,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
+
+// ManagedAndroidStoreApp Contains properties and inherited properties for Android store apps that you can manage with an Intune app protection policy.
+type ManagedAndroidStoreApp struct {
+ // ManagedApp is the base model of ManagedAndroidStoreApp
+ ManagedApp
+ // PackageID The app's package ID.
+ PackageID *string `json:"packageId,omitempty"`
+ // AppStoreURL The Android AppStoreUrl.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum supported operating system.
+ MinimumSupportedOperatingSystem *AndroidMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+}
+
+// ManagedApp Abstract class that contains properties and inherited properties for apps that you can manage with an Intune app protection policy.
+type ManagedApp struct {
+ // MobileApp is the base model of ManagedApp
+ MobileApp
+ // AppAvailability The Application's availability.
+ AppAvailability *ManagedAppAvailability `json:"appAvailability,omitempty"`
+ // Version The Application's version.
+ Version *string `json:"version,omitempty"`
+}
+
+// ManagedAppConfiguration Configuration used to deliver a set of custom settings as-is to apps for users to whom the configuration is scoped
+type ManagedAppConfiguration struct {
+ // ManagedAppPolicy is the base model of ManagedAppConfiguration
+ ManagedAppPolicy
+ // CustomSettings A set of string key and string value pairs to be sent to apps for users to whom the configuration is scoped, unalterned by this service
+ CustomSettings []KeyValuePair `json:"customSettings,omitempty"`
+}
+
+// ManagedAppDiagnosticStatus undocumented
+type ManagedAppDiagnosticStatus struct {
+ // Object is the base model of ManagedAppDiagnosticStatus
+ Object
+ // ValidationName The validation friendly name
+ ValidationName *string `json:"validationName,omitempty"`
+ // State The state of the operation
+ State *string `json:"state,omitempty"`
+ // MitigationInstruction Instruction on how to mitigate a failed validation
+ MitigationInstruction *string `json:"mitigationInstruction,omitempty"`
+}
+
+// ManagedAppOperation Represents an operation applied against an app registration.
+type ManagedAppOperation struct {
+ // Entity is the base model of ManagedAppOperation
+ Entity
+ // DisplayName The operation name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime The last time the app operation was modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // State The current state of the operation
+ State *string `json:"state,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
+
+// ManagedAppPolicy The ManagedAppPolicy resource represents a base type for platform specific policies.
+type ManagedAppPolicy struct {
+ // Entity is the base model of ManagedAppPolicy
+ Entity
+ // DisplayName Policy display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The policy's description.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime The date and time the policy was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Last time the policy was modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
+
+// ManagedAppPolicyDeploymentSummary The ManagedAppEntity is the base entity type for all other entity types under app management workflow.
+type ManagedAppPolicyDeploymentSummary struct {
+ // Entity is the base model of ManagedAppPolicyDeploymentSummary
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ConfigurationDeployedUserCount undocumented
+ ConfigurationDeployedUserCount *int `json:"configurationDeployedUserCount,omitempty"`
+ // LastRefreshTime undocumented
+ LastRefreshTime *time.Time `json:"lastRefreshTime,omitempty"`
+ // ConfigurationDeploymentSummaryPerApp undocumented
+ ConfigurationDeploymentSummaryPerApp []ManagedAppPolicyDeploymentSummaryPerApp `json:"configurationDeploymentSummaryPerApp,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
+
+// ManagedAppPolicyDeploymentSummaryPerApp undocumented
+type ManagedAppPolicyDeploymentSummaryPerApp struct {
+ // Object is the base model of ManagedAppPolicyDeploymentSummaryPerApp
+ Object
+ // MobileAppIdentifier Deployment of an app.
+ MobileAppIdentifier *MobileAppIdentifier `json:"mobileAppIdentifier,omitempty"`
+ // ConfigurationAppliedUserCount Number of users the policy is applied.
+ ConfigurationAppliedUserCount *int `json:"configurationAppliedUserCount,omitempty"`
+}
+
+// ManagedAppProtection Policy used to configure detailed management settings for a specified set of apps
+type ManagedAppProtection struct {
+ // ManagedAppPolicy is the base model of ManagedAppProtection
+ ManagedAppPolicy
+ // PeriodOfflineBeforeAccessCheck The period after which access is checked when the device is not connected to the internet.
+ PeriodOfflineBeforeAccessCheck *Duration `json:"periodOfflineBeforeAccessCheck,omitempty"`
+ // PeriodOnlineBeforeAccessCheck The period after which access is checked when the device is connected to the internet.
+ PeriodOnlineBeforeAccessCheck *Duration `json:"periodOnlineBeforeAccessCheck,omitempty"`
+ // AllowedInboundDataTransferSources Sources from which data is allowed to be transferred.
+ AllowedInboundDataTransferSources *ManagedAppDataTransferLevel `json:"allowedInboundDataTransferSources,omitempty"`
+ // AllowedOutboundDataTransferDestinations Destinations to which data is allowed to be transferred.
+ AllowedOutboundDataTransferDestinations *ManagedAppDataTransferLevel `json:"allowedOutboundDataTransferDestinations,omitempty"`
+ // OrganizationalCredentialsRequired Indicates whether organizational credentials are required for app use.
+ OrganizationalCredentialsRequired *bool `json:"organizationalCredentialsRequired,omitempty"`
+ // AllowedOutboundClipboardSharingLevel The level to which the clipboard may be shared between apps on the managed device.
+ AllowedOutboundClipboardSharingLevel *ManagedAppClipboardSharingLevel `json:"allowedOutboundClipboardSharingLevel,omitempty"`
+ // DataBackupBlocked Indicates whether the backup of a managed app's data is blocked.
+ DataBackupBlocked *bool `json:"dataBackupBlocked,omitempty"`
+ // DeviceComplianceRequired Indicates whether device compliance is required.
+ DeviceComplianceRequired *bool `json:"deviceComplianceRequired,omitempty"`
+ // ManagedBrowserToOpenLinksRequired Indicates whether internet links should be opened in the managed browser app.
+ ManagedBrowserToOpenLinksRequired *bool `json:"managedBrowserToOpenLinksRequired,omitempty"`
+ // SaveAsBlocked Indicates whether users may use the "Save As" menu item to save a copy of protected files.
+ SaveAsBlocked *bool `json:"saveAsBlocked,omitempty"`
+ // PeriodOfflineBeforeWipeIsEnforced The amount of time an app is allowed to remain disconnected from the internet before all managed data it is wiped.
+ PeriodOfflineBeforeWipeIsEnforced *Duration `json:"periodOfflineBeforeWipeIsEnforced,omitempty"`
+ // PinRequired Indicates whether an app-level pin is required.
+ PinRequired *bool `json:"pinRequired,omitempty"`
+ // MaximumPinRetries Maximum number of incorrect pin retry attempts before the managed app is either blocked or wiped.
+ MaximumPinRetries *int `json:"maximumPinRetries,omitempty"`
+ // SimplePinBlocked Indicates whether simplePin is blocked.
+ SimplePinBlocked *bool `json:"simplePinBlocked,omitempty"`
+ // MinimumPinLength Minimum pin length required for an app-level pin if PinRequired is set to True
+ MinimumPinLength *int `json:"minimumPinLength,omitempty"`
+ // PinCharacterSet Character set which may be used for an app-level pin if PinRequired is set to True.
+ PinCharacterSet *ManagedAppPinCharacterSet `json:"pinCharacterSet,omitempty"`
+ // PeriodBeforePinReset TimePeriod before the all-level pin must be reset if PinRequired is set to True.
+ PeriodBeforePinReset *Duration `json:"periodBeforePinReset,omitempty"`
+ // AllowedDataStorageLocations Data storage locations where a user may store managed data.
+ AllowedDataStorageLocations []ManagedAppDataStorageLocation `json:"allowedDataStorageLocations,omitempty"`
+ // ContactSyncBlocked Indicates whether contacts can be synced to the user's device.
+ ContactSyncBlocked *bool `json:"contactSyncBlocked,omitempty"`
+ // PrintBlocked Indicates whether printing is allowed from managed apps.
+ PrintBlocked *bool `json:"printBlocked,omitempty"`
+ // FingerprintBlocked Indicates whether use of the fingerprint reader is allowed in place of a pin if PinRequired is set to True.
+ FingerprintBlocked *bool `json:"fingerprintBlocked,omitempty"`
+ // DisableAppPinIfDevicePinIsSet Indicates whether use of the app pin is required if the device pin is set.
+ DisableAppPinIfDevicePinIsSet *bool `json:"disableAppPinIfDevicePinIsSet,omitempty"`
+ // MinimumRequiredOsVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumRequiredOsVersion *string `json:"minimumRequiredOsVersion,omitempty"`
+ // MinimumWarningOsVersion Versions less than the specified version will result in warning message on the managed app from accessing company data.
+ MinimumWarningOsVersion *string `json:"minimumWarningOsVersion,omitempty"`
+ // MinimumRequiredAppVersion Versions less than the specified version will block the managed app from accessing company data.
+ MinimumRequiredAppVersion *string `json:"minimumRequiredAppVersion,omitempty"`
+ // MinimumWarningAppVersion Versions less than the specified version will result in warning message on the managed app.
+ MinimumWarningAppVersion *string `json:"minimumWarningAppVersion,omitempty"`
+ // MinimumWipeOsVersion Versions less than or equal to the specified version will wipe the managed app and the associated company data.
+ MinimumWipeOsVersion *string `json:"minimumWipeOsVersion,omitempty"`
+ // MinimumWipeAppVersion Versions less than or equal to the specified version will wipe the managed app and the associated company data.
+ MinimumWipeAppVersion *string `json:"minimumWipeAppVersion,omitempty"`
+ // AppActionIfDeviceComplianceRequired Defines a managed app behavior, either block or wipe, when the device is either rooted or jailbroken, if DeviceComplianceRequired is set to true.
+ AppActionIfDeviceComplianceRequired *ManagedAppRemediationAction `json:"appActionIfDeviceComplianceRequired,omitempty"`
+ // AppActionIfMaximumPinRetriesExceeded Defines a managed app behavior, either block or wipe, based on maximum number of incorrect pin retry attempts.
+ AppActionIfMaximumPinRetriesExceeded *ManagedAppRemediationAction `json:"appActionIfMaximumPinRetriesExceeded,omitempty"`
+ // PinRequiredInsteadOfBiometricTimeout Timeout in minutes for an app pin instead of non biometrics passcode
+ PinRequiredInsteadOfBiometricTimeout *Duration `json:"pinRequiredInsteadOfBiometricTimeout,omitempty"`
+ // AllowedOutboundClipboardSharingExceptionLength Specify the number of characters that may be cut or copied from Org data and accounts to any application. This setting overrides the AllowedOutboundClipboardSharingLevel restriction. Default value of '0' means no exception is allowed.
+ AllowedOutboundClipboardSharingExceptionLength *int `json:"allowedOutboundClipboardSharingExceptionLength,omitempty"`
+ // NotificationRestriction Specify app notification restriction
+ NotificationRestriction *ManagedAppNotificationRestriction `json:"notificationRestriction,omitempty"`
+ // PreviousPinBlockCount Requires a pin to be unique from the number specified in this property.
+ PreviousPinBlockCount *int `json:"previousPinBlockCount,omitempty"`
+ // ManagedBrowser Indicates in which managed browser(s) that internet links should be opened.
+ ManagedBrowser *ManagedBrowserType `json:"managedBrowser,omitempty"`
+ // MaximumAllowedDeviceThreatLevel Maximum allowed device threat level, as reported by the MTD app
+ MaximumAllowedDeviceThreatLevel *ManagedAppDeviceThreatLevel `json:"maximumAllowedDeviceThreatLevel,omitempty"`
+ // MobileThreatDefenseRemediationAction Determines what action to take if the mobile threat defense threat threshold isn't met. Warn isn't a supported value for this property
+ MobileThreatDefenseRemediationAction *ManagedAppRemediationAction `json:"mobileThreatDefenseRemediationAction,omitempty"`
+}
+
+// ManagedAppProtectionPolicySetItem A class containing the properties used for managed app protection PolicySetItem.
+type ManagedAppProtectionPolicySetItem struct {
+ // PolicySetItem is the base model of ManagedAppProtectionPolicySetItem
+ PolicySetItem
+ // TargetedAppManagementLevels TargetedAppManagementLevels of the ManagedAppPolicySetItem.
+ TargetedAppManagementLevels *string `json:"targetedAppManagementLevels,omitempty"`
+}
+
+// ManagedAppRegistration The ManagedAppEntity is the base entity type for all other entity types under app management workflow.
+type ManagedAppRegistration struct {
+ // Entity is the base model of ManagedAppRegistration
+ Entity
+ // CreatedDateTime Date and time of creation
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastSyncDateTime Date and time of last the app synced with management service.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // ApplicationVersion App version
+ ApplicationVersion *string `json:"applicationVersion,omitempty"`
+ // ManagementSdkVersion App management SDK version
+ ManagementSdkVersion *string `json:"managementSdkVersion,omitempty"`
+ // PlatformVersion Operating System version
+ PlatformVersion *string `json:"platformVersion,omitempty"`
+ // DeviceType Host device type
+ DeviceType *string `json:"deviceType,omitempty"`
+ // DeviceTag App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions.
+ DeviceTag *string `json:"deviceTag,omitempty"`
+ // DeviceName Host device name
+ DeviceName *string `json:"deviceName,omitempty"`
+ // ManagedDeviceID The Managed Device identifier of the host device. Value could be empty even when the host device is managed.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // AzureADDeviceID The Azure Active Directory Device identifier of the host device. Value could be empty even when the host device is Azure Active Directory registered.
+ AzureADDeviceID *string `json:"azureADDeviceId,omitempty"`
+ // DeviceModel The device model for the current app registration
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // DeviceManufacturer The device manufacturer for the current app registration
+ DeviceManufacturer *string `json:"deviceManufacturer,omitempty"`
+ // FlaggedReasons Zero or more reasons an app registration is flagged. E.g. app running on rooted device
+ FlaggedReasons []ManagedAppFlaggedReason `json:"flaggedReasons,omitempty"`
+ // UserID The user Id to who this app registration belongs.
+ UserID *string `json:"userId,omitempty"`
+ // AppIdentifier The app package Identifier
+ AppIdentifier *MobileAppIdentifier `json:"appIdentifier,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+ // AppliedPolicies undocumented
+ AppliedPolicies []ManagedAppPolicy `json:"appliedPolicies,omitempty"`
+ // IntendedPolicies undocumented
+ IntendedPolicies []ManagedAppPolicy `json:"intendedPolicies,omitempty"`
+ // Operations undocumented
+ Operations []ManagedAppOperation `json:"operations,omitempty"`
+}
+
+// ManagedAppStatus Represents app protection and configuration status for the organization.
+type ManagedAppStatus struct {
+ // Entity is the base model of ManagedAppStatus
+ Entity
+ // DisplayName Friendly name of the status report.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
+
+// ManagedAppStatusRaw Represents an un-typed status report about organizations app protection and configuration.
+type ManagedAppStatusRaw struct {
+ // ManagedAppStatus is the base model of ManagedAppStatusRaw
+ ManagedAppStatus
+ // Content Status report content.
+ Content json.RawMessage `json:"content,omitempty"`
+}
+
+// ManagedDevice Devices that are managed or pre-enrolled through Intune
+type ManagedDevice struct {
+ // Entity is the base model of ManagedDevice
+ Entity
+ // UserID Unique Identifier for the user associated with the device. This property is read-only.
+ UserID *string `json:"userId,omitempty"`
+ // DeviceName Name of the device. This property is read-only.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // HardwareInformation The hardward details for the device. Includes information such as storage space, manufacturer, serial number, etc. This property is read-only.
+ HardwareInformation *HardwareInformation `json:"hardwareInformation,omitempty"`
+ // OwnerType Ownership of the device. Can be 'company' or 'personal'
+ OwnerType *OwnerType `json:"ownerType,omitempty"`
+ // ManagedDeviceOwnerType Ownership of the device. Can be 'company' or 'personal'
+ ManagedDeviceOwnerType *ManagedDeviceOwnerType `json:"managedDeviceOwnerType,omitempty"`
+ // DeviceActionResults List of ComplexType deviceActionResult objects. This property is read-only.
+ DeviceActionResults []DeviceActionResult `json:"deviceActionResults,omitempty"`
+ // ManagementState Management state of the device. This property is read-only.
+ ManagementState *ManagementState `json:"managementState,omitempty"`
+ // EnrolledDateTime Enrollment time of the device. This property is read-only.
+ EnrolledDateTime *time.Time `json:"enrolledDateTime,omitempty"`
+ // LastSyncDateTime The date and time that the device last completed a successful sync with Intune. This property is read-only.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // ChassisType Chassis type of the device. This property is read-only.
+ ChassisType *ChassisType `json:"chassisType,omitempty"`
+ // OperatingSystem Operating system of the device. Windows, iOS, etc. This property is read-only.
+ OperatingSystem *string `json:"operatingSystem,omitempty"`
+ // DeviceType Platform of the device. This property is read-only.
+ DeviceType *DeviceType `json:"deviceType,omitempty"`
+ // ComplianceState Compliance state of the device. This property is read-only.
+ ComplianceState *ComplianceState `json:"complianceState,omitempty"`
+ // JailBroken whether the device is jail broken or rooted. This property is read-only.
+ JailBroken *string `json:"jailBroken,omitempty"`
+ // ManagementAgent Management channel of the device. Intune, EAS, etc. This property is read-only.
+ ManagementAgent *ManagementAgentType `json:"managementAgent,omitempty"`
+ // OsVersion Operating system version of the device. This property is read-only.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // EasActivated Whether the device is Exchange ActiveSync activated. This property is read-only.
+ EasActivated *bool `json:"easActivated,omitempty"`
+ // EasDeviceID Exchange ActiveSync Id of the device. This property is read-only.
+ EasDeviceID *string `json:"easDeviceId,omitempty"`
+ // EasActivationDateTime Exchange ActivationSync activation time of the device. This property is read-only.
+ EasActivationDateTime *time.Time `json:"easActivationDateTime,omitempty"`
+ // AadRegistered Whether the device is Azure Active Directory registered. This property is read-only.
+ AadRegistered *bool `json:"aadRegistered,omitempty"`
+ // AzureADRegistered Whether the device is Azure Active Directory registered. This property is read-only.
+ AzureADRegistered *bool `json:"azureADRegistered,omitempty"`
+ // DeviceEnrollmentType Enrollment type of the device. This property is read-only.
+ DeviceEnrollmentType *DeviceEnrollmentType `json:"deviceEnrollmentType,omitempty"`
+ // LostModeState Indicates if Lost mode is enabled or disabled. This property is read-only.
+ LostModeState *LostModeState `json:"lostModeState,omitempty"`
+ // ActivationLockBypassCode Code that allows the Activation Lock on a device to be bypassed. This property is read-only.
+ ActivationLockBypassCode *string `json:"activationLockBypassCode,omitempty"`
+ // EmailAddress Email(s) for the user associated with the device. This property is read-only.
+ EmailAddress *string `json:"emailAddress,omitempty"`
+ // AzureActiveDirectoryDeviceID The unique identifier for the Azure Active Directory device. Read only. This property is read-only.
+ AzureActiveDirectoryDeviceID *string `json:"azureActiveDirectoryDeviceId,omitempty"`
+ // AzureADDeviceID The unique identifier for the Azure Active Directory device. Read only. This property is read-only.
+ AzureADDeviceID *string `json:"azureADDeviceId,omitempty"`
+ // DeviceRegistrationState Device registration state. This property is read-only.
+ DeviceRegistrationState *DeviceRegistrationState `json:"deviceRegistrationState,omitempty"`
+ // DeviceCategoryDisplayName Device category display name. This property is read-only.
+ DeviceCategoryDisplayName *string `json:"deviceCategoryDisplayName,omitempty"`
+ // IsSupervised Device supervised status. This property is read-only.
+ IsSupervised *bool `json:"isSupervised,omitempty"`
+ // ExchangeLastSuccessfulSyncDateTime Last time the device contacted Exchange. This property is read-only.
+ ExchangeLastSuccessfulSyncDateTime *time.Time `json:"exchangeLastSuccessfulSyncDateTime,omitempty"`
+ // ExchangeAccessState The Access State of the device in Exchange. This property is read-only.
+ ExchangeAccessState *DeviceManagementExchangeAccessState `json:"exchangeAccessState,omitempty"`
+ // ExchangeAccessStateReason The reason for the device's access state in Exchange. This property is read-only.
+ ExchangeAccessStateReason *DeviceManagementExchangeAccessStateReason `json:"exchangeAccessStateReason,omitempty"`
+ // RemoteAssistanceSessionURL Url that allows a Remote Assistance session to be established with the device. This property is read-only.
+ RemoteAssistanceSessionURL *string `json:"remoteAssistanceSessionUrl,omitempty"`
+ // RemoteAssistanceSessionErrorDetails An error string that identifies issues when creating Remote Assistance session objects. This property is read-only.
+ RemoteAssistanceSessionErrorDetails *string `json:"remoteAssistanceSessionErrorDetails,omitempty"`
+ // IsEncrypted Device encryption status. This property is read-only.
+ IsEncrypted *bool `json:"isEncrypted,omitempty"`
+ // UserPrincipalName Device user principal name. This property is read-only.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // Model Model of the device. This property is read-only.
+ Model *string `json:"model,omitempty"`
+ // Manufacturer Manufacturer of the device. This property is read-only.
+ Manufacturer *string `json:"manufacturer,omitempty"`
+ // Imei IMEI. This property is read-only.
+ Imei *string `json:"imei,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires. This property is read-only.
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // SerialNumber SerialNumber. This property is read-only.
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // PhoneNumber Phone number of the device. This property is read-only.
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // AndroidSecurityPatchLevel Android security patch level. This property is read-only.
+ AndroidSecurityPatchLevel *string `json:"androidSecurityPatchLevel,omitempty"`
+ // UserDisplayName User display name. This property is read-only.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // ConfigurationManagerClientEnabledFeatures ConfigrMgr client enabled features. This property is read-only.
+ ConfigurationManagerClientEnabledFeatures *ConfigurationManagerClientEnabledFeatures `json:"configurationManagerClientEnabledFeatures,omitempty"`
+ // WiFiMacAddress Wi-Fi MAC. This property is read-only.
+ WiFiMacAddress *string `json:"wiFiMacAddress,omitempty"`
+ // DeviceHealthAttestationState The device health attestation state. This property is read-only.
+ DeviceHealthAttestationState *DeviceHealthAttestationState `json:"deviceHealthAttestationState,omitempty"`
+ // SubscriberCarrier Subscriber Carrier. This property is read-only.
+ SubscriberCarrier *string `json:"subscriberCarrier,omitempty"`
+ // Meid MEID. This property is read-only.
+ Meid *string `json:"meid,omitempty"`
+ // TotalStorageSpaceInBytes Total Storage in Bytes. This property is read-only.
+ TotalStorageSpaceInBytes *int `json:"totalStorageSpaceInBytes,omitempty"`
+ // FreeStorageSpaceInBytes Free Storage in Bytes. This property is read-only.
+ FreeStorageSpaceInBytes *int `json:"freeStorageSpaceInBytes,omitempty"`
+ // ManagedDeviceName Automatically generated name to identify a device. Can be overwritten to a user friendly name.
+ ManagedDeviceName *string `json:"managedDeviceName,omitempty"`
+ // PartnerReportedThreatState Indicates the threat state of a device when a Mobile Threat Defense partner is in use by the account and device. Read Only. This property is read-only.
+ PartnerReportedThreatState *ManagedDevicePartnerReportedHealthState `json:"partnerReportedThreatState,omitempty"`
+ // RetireAfterDateTime Indicates the time after when a device will be auto retired because of scheduled action. This property is read-only.
+ RetireAfterDateTime *time.Time `json:"retireAfterDateTime,omitempty"`
+ // UsersLoggedOn Indicates the last logged on users of a device. This property is read-only.
+ UsersLoggedOn []LoggedOnUser `json:"usersLoggedOn,omitempty"`
+ // PreferMDMOverGroupPolicyAppliedDateTime Reports the DateTime the preferMdmOverGroupPolicy setting was set. When set, the Intune MDM settings will override Group Policy settings if there is a conflict. Read Only. This property is read-only.
+ PreferMDMOverGroupPolicyAppliedDateTime *time.Time `json:"preferMdmOverGroupPolicyAppliedDateTime,omitempty"`
+ // AutopilotEnrolled Reports if the managed device is enrolled via auto-pilot. This property is read-only.
+ AutopilotEnrolled *bool `json:"autopilotEnrolled,omitempty"`
+ // RequireUserEnrollmentApproval Reports if the managed iOS device is user approval enrollment. This property is read-only.
+ RequireUserEnrollmentApproval *bool `json:"requireUserEnrollmentApproval,omitempty"`
+ // ManagementCertificateExpirationDate Reports device management certificate expiration date. This property is read-only.
+ ManagementCertificateExpirationDate *time.Time `json:"managementCertificateExpirationDate,omitempty"`
+ // Iccid Integrated Circuit Card Identifier, it is A SIM card's unique identification number. This property is read-only.
+ Iccid *string `json:"iccid,omitempty"`
+ // Udid Unique Device Identifier for iOS and macOS devices. This property is read-only.
+ Udid *string `json:"udid,omitempty"`
+ // RoleScopeTagIDs List of Scope Tag IDs for this Device instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // WindowsActiveMalwareCount Count of active malware for this windows device. This property is read-only.
+ WindowsActiveMalwareCount *int `json:"windowsActiveMalwareCount,omitempty"`
+ // WindowsRemediatedMalwareCount Count of remediated malware for this windows device. This property is read-only.
+ WindowsRemediatedMalwareCount *int `json:"windowsRemediatedMalwareCount,omitempty"`
+ // Notes Notes on the device created by IT Admin
+ Notes *string `json:"notes,omitempty"`
+ // ConfigurationManagerClientHealthState Configuration manager client health state, valid only for devices managed by MDM/ConfigMgr Agent
+ ConfigurationManagerClientHealthState *ConfigurationManagerClientHealthState `json:"configurationManagerClientHealthState,omitempty"`
+ // ConfigurationManagerClientInformation Configuration manager client information, valid only for devices managed, duel-managed or tri-managed by ConfigMgr Agent
+ ConfigurationManagerClientInformation *ConfigurationManagerClientInformation `json:"configurationManagerClientInformation,omitempty"`
+ // EthernetMacAddress Ethernet MAC. This property is read-only.
+ EthernetMacAddress *string `json:"ethernetMacAddress,omitempty"`
+ // SecurityBaselineStates undocumented
+ SecurityBaselineStates []SecurityBaselineState `json:"securityBaselineStates,omitempty"`
+ // DeviceConfigurationStates undocumented
+ DeviceConfigurationStates []DeviceConfigurationState `json:"deviceConfigurationStates,omitempty"`
+ // DeviceCompliancePolicyStates undocumented
+ DeviceCompliancePolicyStates []DeviceCompliancePolicyState `json:"deviceCompliancePolicyStates,omitempty"`
+ // ManagedDeviceMobileAppConfigurationStates undocumented
+ ManagedDeviceMobileAppConfigurationStates []ManagedDeviceMobileAppConfigurationState `json:"managedDeviceMobileAppConfigurationStates,omitempty"`
+ // DetectedApps undocumented
+ DetectedApps []DetectedApp `json:"detectedApps,omitempty"`
+ // DeviceCategory undocumented
+ DeviceCategory *DeviceCategory `json:"deviceCategory,omitempty"`
+ // WindowsProtectionState undocumented
+ WindowsProtectionState *WindowsProtectionState `json:"windowsProtectionState,omitempty"`
+ // Users undocumented
+ Users []User `json:"users,omitempty"`
+}
+
+// ManagedDeviceCertificateState undocumented
+type ManagedDeviceCertificateState struct {
+ // Entity is the base model of ManagedDeviceCertificateState
+ Entity
+ // DevicePlatform Device platform
+ DevicePlatform *DevicePlatformType `json:"devicePlatform,omitempty"`
+ // CertificateKeyUsage Key usage
+ CertificateKeyUsage *KeyUsages `json:"certificateKeyUsage,omitempty"`
+ // CertificateValidityPeriodUnits Validity period units
+ CertificateValidityPeriodUnits *CertificateValidityPeriodScale `json:"certificateValidityPeriodUnits,omitempty"`
+ // CertificateIssuanceState Issuance State
+ CertificateIssuanceState *CertificateIssuanceStates `json:"certificateIssuanceState,omitempty"`
+ // CertificateKeyStorageProvider Key Storage Provider
+ CertificateKeyStorageProvider *KeyStorageProviderOption `json:"certificateKeyStorageProvider,omitempty"`
+ // CertificateSubjectNameFormat Subject name format
+ CertificateSubjectNameFormat *SubjectNameFormat `json:"certificateSubjectNameFormat,omitempty"`
+ // CertificateSubjectAlternativeNameFormat Subject alternative name format
+ CertificateSubjectAlternativeNameFormat *SubjectAlternativeNameType `json:"certificateSubjectAlternativeNameFormat,omitempty"`
+ // CertificateRevokeStatus Revoke status
+ CertificateRevokeStatus *CertificateRevocationStatus `json:"certificateRevokeStatus,omitempty"`
+ // CertificateProfileDisplayName Certificate profile display name
+ CertificateProfileDisplayName *string `json:"certificateProfileDisplayName,omitempty"`
+ // DeviceDisplayName Device display name
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserDisplayName User display name
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // CertificateExpirationDateTime Certificate expiry date
+ CertificateExpirationDateTime *time.Time `json:"certificateExpirationDateTime,omitempty"`
+ // CertificateLastIssuanceStateChangedDateTime Last certificate issuance state change
+ CertificateLastIssuanceStateChangedDateTime *time.Time `json:"certificateLastIssuanceStateChangedDateTime,omitempty"`
+ // LastCertificateStateChangeDateTime Last certificate issuance state change
+ LastCertificateStateChangeDateTime *time.Time `json:"lastCertificateStateChangeDateTime,omitempty"`
+ // CertificateIssuer Issuer
+ CertificateIssuer *string `json:"certificateIssuer,omitempty"`
+ // CertificateThumbprint Thumbprint
+ CertificateThumbprint *string `json:"certificateThumbprint,omitempty"`
+ // CertificateSerialNumber Serial number
+ CertificateSerialNumber *string `json:"certificateSerialNumber,omitempty"`
+ // CertificateKeyLength Key length
+ CertificateKeyLength *int `json:"certificateKeyLength,omitempty"`
+ // CertificateEnhancedKeyUsage Extended key usage
+ CertificateEnhancedKeyUsage *string `json:"certificateEnhancedKeyUsage,omitempty"`
+ // CertificateValidityPeriod Validity period
+ CertificateValidityPeriod *int `json:"certificateValidityPeriod,omitempty"`
+ // CertificateSubjectNameFormatString Subject name format string for custom subject name formats
+ CertificateSubjectNameFormatString *string `json:"certificateSubjectNameFormatString,omitempty"`
+ // CertificateSubjectAlternativeNameFormatString Subject alternative name format string for custom formats
+ CertificateSubjectAlternativeNameFormatString *string `json:"certificateSubjectAlternativeNameFormatString,omitempty"`
+ // CertificateIssuanceDateTime Issuance date
+ CertificateIssuanceDateTime *time.Time `json:"certificateIssuanceDateTime,omitempty"`
+ // CertificateErrorCode Error code
+ CertificateErrorCode *int `json:"certificateErrorCode,omitempty"`
+}
+
+// ManagedDeviceCleanupSettings undocumented
+type ManagedDeviceCleanupSettings struct {
+ // Object is the base model of ManagedDeviceCleanupSettings
+ Object
+ // DeviceInactivityBeforeRetirementInDays Number of days when the device has not contacted Intune.
+ DeviceInactivityBeforeRetirementInDays *string `json:"deviceInactivityBeforeRetirementInDays,omitempty"`
+}
+
+// ManagedDeviceEncryptionState Encryption report per device
+type ManagedDeviceEncryptionState struct {
+ // Entity is the base model of ManagedDeviceEncryptionState
+ Entity
+ // UserPrincipalName User name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceType Platform of the device.
+ DeviceType *DeviceTypes `json:"deviceType,omitempty"`
+ // OsVersion Operating system version of the device
+ OsVersion *string `json:"osVersion,omitempty"`
+ // TpmSpecificationVersion Device TPM Version
+ TpmSpecificationVersion *string `json:"tpmSpecificationVersion,omitempty"`
+ // DeviceName Device name
+ DeviceName *string `json:"deviceName,omitempty"`
+ // EncryptionReadinessState Encryption readiness state
+ EncryptionReadinessState *EncryptionReadinessState `json:"encryptionReadinessState,omitempty"`
+ // EncryptionState Device encryption state
+ EncryptionState *EncryptionState `json:"encryptionState,omitempty"`
+ // EncryptionPolicySettingState Encryption policy setting state
+ EncryptionPolicySettingState *ComplianceStatus `json:"encryptionPolicySettingState,omitempty"`
+ // AdvancedBitLockerStates Advanced BitLocker State
+ AdvancedBitLockerStates *AdvancedBitLockerState `json:"advancedBitLockerStates,omitempty"`
+ // FileVaultStates FileVault State
+ FileVaultStates *FileVaultState `json:"fileVaultStates,omitempty"`
+ // PolicyDetails Policy Details
+ PolicyDetails []EncryptionReportPolicyDetails `json:"policyDetails,omitempty"`
+}
+
+// ManagedDeviceMobileAppConfiguration An abstract class for Mobile app configuration for enrolled devices.
+type ManagedDeviceMobileAppConfiguration struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfiguration
+ Entity
+ // TargetedMobileApps the associated app.
+ TargetedMobileApps []string `json:"targetedMobileApps,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this App configuration entity.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Description Admin provided description of the Device Configuration.
+ Description *string `json:"description,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Admin provided name of the device configuration.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version Version of the device configuration.
+ Version *int `json:"version,omitempty"`
+ // Assignments undocumented
+ Assignments []ManagedDeviceMobileAppConfigurationAssignment `json:"assignments,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []ManagedDeviceMobileAppConfigurationDeviceStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []ManagedDeviceMobileAppConfigurationUserStatus `json:"userStatuses,omitempty"`
+ // DeviceStatusSummary undocumented
+ DeviceStatusSummary *ManagedDeviceMobileAppConfigurationDeviceSummary `json:"deviceStatusSummary,omitempty"`
+ // UserStatusSummary undocumented
+ UserStatusSummary *ManagedDeviceMobileAppConfigurationUserSummary `json:"userStatusSummary,omitempty"`
+}
+
+// ManagedDeviceMobileAppConfigurationAssignment Contains the properties used to assign an MDM app configuration to a group.
+type ManagedDeviceMobileAppConfigurationAssignment struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationAssignment
+ Entity
+ // Target Assignment target that the T&C policy is assigned to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceStatus Contains properties, inherited properties and actions for an MDM mobile app configuration status for a device.
+type ManagedDeviceMobileAppConfigurationDeviceStatus struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationDeviceStatus
+ Entity
+ // DeviceDisplayName Device name of the DevicePolicyStatus.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName The User Name that is being reported
+ UserName *string `json:"userName,omitempty"`
+ // DeviceModel The device model that is being reported
+ DeviceModel *string `json:"deviceModel,omitempty"`
+ // Platform Platform of the device that is being reported
+ Platform *int `json:"platform,omitempty"`
+ // ComplianceGracePeriodExpirationDateTime The DateTime when device compliance grace period expires
+ ComplianceGracePeriodExpirationDateTime *time.Time `json:"complianceGracePeriodExpirationDateTime,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceSummary Contains properties, inherited properties and actions for an MDM mobile app configuration device status summary.
+type ManagedDeviceMobileAppConfigurationDeviceSummary struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationDeviceSummary
+ Entity
+ // PendingCount Number of pending devices
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // NotApplicablePlatformCount Number of not applicable devices due to mismatch platform and policy
+ NotApplicablePlatformCount *int `json:"notApplicablePlatformCount,omitempty"`
+ // SuccessCount Number of succeeded devices
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed devices
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of devices in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
+
+// ManagedDeviceMobileAppConfigurationPolicySetItem A class containing the properties used for managed device mobile app configuration PolicySetItem.
+type ManagedDeviceMobileAppConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of ManagedDeviceMobileAppConfigurationPolicySetItem
+ PolicySetItem
+}
+
+// ManagedDeviceMobileAppConfigurationState Managed Device Mobile App Configuration State for a given device.
+type ManagedDeviceMobileAppConfigurationState struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationState
+ Entity
+ // DisplayName The name of the policy for this policyBase
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version The version of the policy
+ Version *int `json:"version,omitempty"`
+ // PlatformType Platform type that the policy applies to
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // State The compliance state of the policy
+ State *ComplianceStatus `json:"state,omitempty"`
+ // SettingCount Count of how many setting a policy holds
+ SettingCount *int `json:"settingCount,omitempty"`
+ // UserID User unique identifier, must be Guid
+ UserID *string `json:"userId,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// ManagedDeviceMobileAppConfigurationUserStatus Contains properties, inherited properties and actions for an MDM mobile app configuration status for a user.
+type ManagedDeviceMobileAppConfigurationUserStatus struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationUserStatus
+ Entity
+ // UserDisplayName User name of the DevicePolicyStatus.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // DevicesCount Devices count for that user.
+ DevicesCount *int `json:"devicesCount,omitempty"`
+ // Status Compliance status of the policy report.
+ Status *ComplianceStatus `json:"status,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report.
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // UserPrincipalName UserPrincipalName.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// ManagedDeviceMobileAppConfigurationUserSummary Contains properties, inherited properties and actions for an MDM mobile app configuration user status summary.
+type ManagedDeviceMobileAppConfigurationUserSummary struct {
+ // Entity is the base model of ManagedDeviceMobileAppConfigurationUserSummary
+ Entity
+ // PendingCount Number of pending Users
+ PendingCount *int `json:"pendingCount,omitempty"`
+ // NotApplicableCount Number of not applicable users
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+ // SuccessCount Number of succeeded Users
+ SuccessCount *int `json:"successCount,omitempty"`
+ // ErrorCount Number of error Users
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // FailedCount Number of failed Users
+ FailedCount *int `json:"failedCount,omitempty"`
+ // ConflictCount Number of users in conflict
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // LastUpdateDateTime Last update time
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+ // ConfigurationVersion Version of the policy for that overview
+ ConfigurationVersion *int `json:"configurationVersion,omitempty"`
+}
+
+// ManagedDeviceModelsAndManufacturers undocumented
+type ManagedDeviceModelsAndManufacturers struct {
+ // Object is the base model of ManagedDeviceModelsAndManufacturers
+ Object
+ // DeviceModels List of Models for managed devices in the account
+ DeviceModels []string `json:"deviceModels,omitempty"`
+ // DeviceManufacturers List of Manufactures for managed devices in the account
+ DeviceManufacturers []string `json:"deviceManufacturers,omitempty"`
+}
+
+// ManagedDeviceOverview Summary data for managed devices
+type ManagedDeviceOverview struct {
+ // Entity is the base model of ManagedDeviceOverview
+ Entity
+ // EnrolledDeviceCount Total enrolled device count. Does not include PC devices managed via Intune PC Agent
+ EnrolledDeviceCount *int `json:"enrolledDeviceCount,omitempty"`
+ // MDMEnrolledCount The number of devices enrolled in MDM
+ MDMEnrolledCount *int `json:"mdmEnrolledCount,omitempty"`
+ // DualEnrolledDeviceCount The number of devices enrolled in both MDM and EAS
+ DualEnrolledDeviceCount *int `json:"dualEnrolledDeviceCount,omitempty"`
+ // DeviceOperatingSystemSummary Device operating system summary.
+ DeviceOperatingSystemSummary *DeviceOperatingSystemSummary `json:"deviceOperatingSystemSummary,omitempty"`
+ // DeviceExchangeAccessStateSummary Distribution of Exchange Access State in Intune
+ DeviceExchangeAccessStateSummary *DeviceExchangeAccessStateSummary `json:"deviceExchangeAccessStateSummary,omitempty"`
+ // ManagedDeviceModelsAndManufacturers Models and Manufactures meatadata for managed devices in the account
+ ManagedDeviceModelsAndManufacturers *ManagedDeviceModelsAndManufacturers `json:"managedDeviceModelsAndManufacturers,omitempty"`
+ // LastModifiedDateTime Last modified date time of device overview
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// ManagedDeviceReportedApp undocumented
+type ManagedDeviceReportedApp struct {
+ // Object is the base model of ManagedDeviceReportedApp
+ Object
+ // AppID The application or bundle identifier of the application
+ AppID *string `json:"appId,omitempty"`
+}
+
+// ManagedEBook An abstract class containing the base properties for Managed eBook.
+type ManagedEBook struct {
+ // Entity is the base model of ManagedEBook
+ Entity
+ // DisplayName Name of the eBook.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description.
+ Description *string `json:"description,omitempty"`
+ // Publisher Publisher.
+ Publisher *string `json:"publisher,omitempty"`
+ // PublishedDateTime The date and time when the eBook was published.
+ PublishedDateTime *time.Time `json:"publishedDateTime,omitempty"`
+ // LargeCover Book cover.
+ LargeCover *MimeContent `json:"largeCover,omitempty"`
+ // CreatedDateTime The date and time when the eBook file was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date and time when the eBook was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // InformationURL The more information Url.
+ InformationURL *string `json:"informationUrl,omitempty"`
+ // PrivacyInformationURL The privacy statement Url.
+ PrivacyInformationURL *string `json:"privacyInformationUrl,omitempty"`
+ // Categories undocumented
+ Categories []ManagedEBookCategory `json:"categories,omitempty"`
+ // Assignments undocumented
+ Assignments []ManagedEBookAssignment `json:"assignments,omitempty"`
+ // InstallSummary undocumented
+ InstallSummary *EBookInstallSummary `json:"installSummary,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []DeviceInstallState `json:"deviceStates,omitempty"`
+ // UserStateSummary undocumented
+ UserStateSummary []UserInstallStateSummary `json:"userStateSummary,omitempty"`
+}
+
+// ManagedEBookAssignment Contains properties used to assign a eBook to a group.
+type ManagedEBookAssignment struct {
+ // Entity is the base model of ManagedEBookAssignment
+ Entity
+ // Target The assignment target for eBook.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // InstallIntent The install intent for eBook.
+ InstallIntent *InstallIntent `json:"installIntent,omitempty"`
+}
+
+// ManagedEBookCategory Contains properties for a single Intune eBook category.
+type ManagedEBookCategory struct {
+ // Entity is the base model of ManagedEBookCategory
+ Entity
+ // DisplayName The name of the eBook category.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime The date and time the ManagedEBookCategory was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// ManagedIOSLobApp Contains properties and inherited properties for Managed iOS Line Of Business apps.
+type ManagedIOSLobApp struct {
+ // ManagedMobileLobApp is the base model of ManagedIOSLobApp
+ ManagedMobileLobApp
+ // BundleID The Identity Name.
+ BundleID *string `json:"bundleId,omitempty"`
+ // ApplicableDeviceType The iOS architecture for which this app can run on.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // ExpirationDateTime The expiration time.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // VersionNumber The version number of managed iOS Line of Business (LoB) app.
+ VersionNumber *string `json:"versionNumber,omitempty"`
+ // BuildNumber The build number of managed iOS Line of Business (LoB) app.
+ BuildNumber *string `json:"buildNumber,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
+
+// ManagedIOSStoreApp Contains properties and inherited properties for an iOS store app that you can manage with an Intune app protection policy.
+type ManagedIOSStoreApp struct {
+ // ManagedApp is the base model of ManagedIOSStoreApp
+ ManagedApp
+ // BundleID The app's Bundle ID.
+ BundleID *string `json:"bundleId,omitempty"`
+ // AppStoreURL The Apple AppStoreUrl.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+ // ApplicableDeviceType The iOS architecture for which this app can run on.
+ ApplicableDeviceType *IOSDeviceType `json:"applicableDeviceType,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum supported operating system.
+ MinimumSupportedOperatingSystem *IOSMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+}
+
+// ManagedMobileApp The identifier for the deployment an app.
+type ManagedMobileApp struct {
+ // Entity is the base model of ManagedMobileApp
+ Entity
+ // MobileAppIdentifier The identifier for an app with it's operating system type.
+ MobileAppIdentifier *MobileAppIdentifier `json:"mobileAppIdentifier,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
+
+// ManagedMobileLobApp An abstract base class containing properties for all managed mobile line of business apps.
+type ManagedMobileLobApp struct {
+ // ManagedApp is the base model of ManagedMobileLobApp
+ ManagedApp
+ // CommittedContentVersion The internal committed content version.
+ CommittedContentVersion *string `json:"committedContentVersion,omitempty"`
+ // FileName The name of the main Lob application file.
+ FileName *string `json:"fileName,omitempty"`
+ // Size The total size, including all uploaded files.
+ Size *int `json:"size,omitempty"`
+ // ContentVersions undocumented
+ ContentVersions []MobileAppContent `json:"contentVersions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelManagement.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelManagement.go
new file mode 100644
index 00000000..03ec2eb5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelManagement.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ManagementCertificateWithThumbprint undocumented
+type ManagementCertificateWithThumbprint struct {
+ // Object is the base model of ManagementCertificateWithThumbprint
+ Object
+ // Thumbprint The thumbprint of the management certificate
+ Thumbprint *string `json:"thumbprint,omitempty"`
+ // Certificate The Base 64 encoded management certificate
+ Certificate *string `json:"certificate,omitempty"`
+}
+
+// ManagementCondition Management conditions are events that can be triggered dynamically such as geo-fences, time-fences, and network-fences.
+type ManagementCondition struct {
+ // Entity is the base model of ManagementCondition
+ Entity
+ // UniqueName Unique name for the management condition. Used in management condition expressions.
+ UniqueName *string `json:"uniqueName,omitempty"`
+ // DisplayName The admin defined name of the management condition.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The admin defined description of the management condition.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime The time the management condition was created. Generated service side.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime The time the management condition was last modified. Updated service side.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // ETag ETag of the management condition. Updated service side.
+ ETag *string `json:"eTag,omitempty"`
+ // ApplicablePlatforms The applicable platforms for this management condition.
+ ApplicablePlatforms []DevicePlatformType `json:"applicablePlatforms,omitempty"`
+ // ManagementConditionStatements undocumented
+ ManagementConditionStatements []ManagementConditionStatement `json:"managementConditionStatements,omitempty"`
+}
+
+// ManagementConditionExpression undocumented
+type ManagementConditionExpression struct {
+ // Object is the base model of ManagementConditionExpression
+ Object
+}
+
+// ManagementConditionExpressionModel undocumented
+type ManagementConditionExpressionModel struct {
+ // ManagementConditionExpression is the base model of ManagementConditionExpressionModel
+ ManagementConditionExpression
+}
+
+// ManagementConditionExpressionString undocumented
+type ManagementConditionExpressionString struct {
+ // ManagementConditionExpression is the base model of ManagementConditionExpressionString
+ ManagementConditionExpression
+ // Value The management condition statement expression string value.
+ Value *string `json:"value,omitempty"`
+}
+
+// ManagementConditionStatement A management condition statement is a group of management conditions that enable/disable device/application configurations when all contained management conditions are met.
+type ManagementConditionStatement struct {
+ // Entity is the base model of ManagementConditionStatement
+ Entity
+ // DisplayName The admin defined name of the management condition statement.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The admin defined description of the management condition statement.
+ Description *string `json:"description,omitempty"`
+ // CreatedDateTime The time the management condition statement was created. Generated service side.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime The time the management condition statement was last modified. Updated service side.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // Expression The management condition statement expression used to evaluate if a management condition statement was activated/deactivated.
+ Expression *ManagementConditionExpression `json:"expression,omitempty"`
+ // ETag ETag of the management condition statement. Updated service side.
+ ETag *string `json:"eTag,omitempty"`
+ // ApplicablePlatforms The applicable platforms for this management condition statement.
+ ApplicablePlatforms []DevicePlatformType `json:"applicablePlatforms,omitempty"`
+ // ManagementConditions undocumented
+ ManagementConditions []ManagementCondition `json:"managementConditions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMark.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMark.go
new file mode 100644
index 00000000..52adcc86
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMark.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MarkContent undocumented
+type MarkContent struct {
+ // LabelActionBase is the base model of MarkContent
+ LabelActionBase
+ // FontSize undocumented
+ FontSize *int `json:"fontSize,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // FontColor undocumented
+ FontColor *string `json:"fontColor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatch.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatch.go
new file mode 100644
index 00000000..1399ee58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatch.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MatchLocation undocumented
+type MatchLocation struct {
+ // Object is the base model of MatchLocation
+ Object
+ // Length undocumented
+ Length *int `json:"length,omitempty"`
+ // Offset undocumented
+ Offset *int `json:"offset,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatching.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatching.go
new file mode 100644
index 00000000..27bd79b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMatching.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MatchingDlpRule undocumented
+type MatchingDlpRule struct {
+ // Object is the base model of MatchingDlpRule
+ Object
+ // RuleID undocumented
+ RuleID *string `json:"ruleId,omitempty"`
+ // RuleName undocumented
+ RuleName *string `json:"ruleName,omitempty"`
+ // PolicyID undocumented
+ PolicyID *string `json:"policyId,omitempty"`
+ // PolicyName undocumented
+ PolicyName *string `json:"policyName,omitempty"`
+ // IsMostRestrictive undocumented
+ IsMostRestrictive *bool `json:"isMostRestrictive,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // Actions undocumented
+ Actions []DlpActionInfo `json:"actions,omitempty"`
+ // RuleMode undocumented
+ RuleMode *RuleMode `json:"ruleMode,omitempty"`
+}
+
+// MatchingLabel undocumented
+type MatchingLabel struct {
+ // Object is the base model of MatchingLabel
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // ToolTip undocumented
+ ToolTip *string `json:"toolTip,omitempty"`
+ // PolicyTip undocumented
+ PolicyTip *string `json:"policyTip,omitempty"`
+ // IsEndpointProtectionEnabled undocumented
+ IsEndpointProtectionEnabled *bool `json:"isEndpointProtectionEnabled,omitempty"`
+ // ApplicationMode undocumented
+ ApplicationMode *ApplicationMode `json:"applicationMode,omitempty"`
+ // LabelActions undocumented
+ LabelActions []LabelActionBase `json:"labelActions,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMedia.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMedia.go
new file mode 100644
index 00000000..28a00e6d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMedia.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MediaConfig undocumented
+type MediaConfig struct {
+ // Object is the base model of MediaConfig
+ Object
+ // RemoveFromDefaultAudioGroup undocumented
+ RemoveFromDefaultAudioGroup *bool `json:"removeFromDefaultAudioGroup,omitempty"`
+}
+
+// MediaContentRatingAustralia undocumented
+type MediaContentRatingAustralia struct {
+ // Object is the base model of MediaContentRatingAustralia
+ Object
+ // MovieRating Movies rating selected for Australia
+ MovieRating *RatingAustraliaMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Australia
+ TvRating *RatingAustraliaTelevisionType `json:"tvRating,omitempty"`
+}
+
+// MediaContentRatingCanada undocumented
+type MediaContentRatingCanada struct {
+ // Object is the base model of MediaContentRatingCanada
+ Object
+ // MovieRating Movies rating selected for Canada
+ MovieRating *RatingCanadaMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Canada
+ TvRating *RatingCanadaTelevisionType `json:"tvRating,omitempty"`
+}
+
+// MediaContentRatingFrance undocumented
+type MediaContentRatingFrance struct {
+ // Object is the base model of MediaContentRatingFrance
+ Object
+ // MovieRating Movies rating selected for France
+ MovieRating *RatingFranceMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for France
+ TvRating *RatingFranceTelevisionType `json:"tvRating,omitempty"`
+}
+
+// MediaContentRatingGermany undocumented
+type MediaContentRatingGermany struct {
+ // Object is the base model of MediaContentRatingGermany
+ Object
+ // MovieRating Movies rating selected for Germany
+ MovieRating *RatingGermanyMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Germany
+ TvRating *RatingGermanyTelevisionType `json:"tvRating,omitempty"`
+}
+
+// MediaContentRatingIreland undocumented
+type MediaContentRatingIreland struct {
+ // Object is the base model of MediaContentRatingIreland
+ Object
+ // MovieRating Movies rating selected for Ireland
+ MovieRating *RatingIrelandMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Ireland
+ TvRating *RatingIrelandTelevisionType `json:"tvRating,omitempty"`
+}
+
+// MediaContentRatingJapan undocumented
+type MediaContentRatingJapan struct {
+ // Object is the base model of MediaContentRatingJapan
+ Object
+ // MovieRating Movies rating selected for Japan
+ MovieRating *RatingJapanMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for Japan
+ TvRating *RatingJapanTelevisionType `json:"tvRating,omitempty"`
+}
+
+// MediaContentRatingNewZealand undocumented
+type MediaContentRatingNewZealand struct {
+ // Object is the base model of MediaContentRatingNewZealand
+ Object
+ // MovieRating Movies rating selected for New Zealand
+ MovieRating *RatingNewZealandMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for New Zealand
+ TvRating *RatingNewZealandTelevisionType `json:"tvRating,omitempty"`
+}
+
+// MediaContentRatingUnitedKingdom undocumented
+type MediaContentRatingUnitedKingdom struct {
+ // Object is the base model of MediaContentRatingUnitedKingdom
+ Object
+ // MovieRating Movies rating selected for United Kingdom
+ MovieRating *RatingUnitedKingdomMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for United Kingdom
+ TvRating *RatingUnitedKingdomTelevisionType `json:"tvRating,omitempty"`
+}
+
+// MediaContentRatingUnitedStates undocumented
+type MediaContentRatingUnitedStates struct {
+ // Object is the base model of MediaContentRatingUnitedStates
+ Object
+ // MovieRating Movies rating selected for United States
+ MovieRating *RatingUnitedStatesMoviesType `json:"movieRating,omitempty"`
+ // TvRating TV rating selected for United States
+ TvRating *RatingUnitedStatesTelevisionType `json:"tvRating,omitempty"`
+}
+
+// MediaInfo undocumented
+type MediaInfo struct {
+ // Object is the base model of MediaInfo
+ Object
+ // URI undocumented
+ URI *string `json:"uri,omitempty"`
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+}
+
+// MediaPrompt undocumented
+type MediaPrompt struct {
+ // Prompt is the base model of MediaPrompt
+ Prompt
+ // MediaInfo undocumented
+ MediaInfo *MediaInfo `json:"mediaInfo,omitempty"`
+ // Loop undocumented
+ Loop *int `json:"loop,omitempty"`
+}
+
+// MediaStream undocumented
+type MediaStream struct {
+ // Object is the base model of MediaStream
+ Object
+ // MediaType undocumented
+ MediaType *Modality `json:"mediaType,omitempty"`
+ // Label undocumented
+ Label *string `json:"label,omitempty"`
+ // SourceID undocumented
+ SourceID *string `json:"sourceId,omitempty"`
+ // Direction undocumented
+ Direction *MediaDirection `json:"direction,omitempty"`
+ // ServerMuted undocumented
+ ServerMuted *bool `json:"serverMuted,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMeeting.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMeeting.go
new file mode 100644
index 00000000..0360874b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMeeting.go
@@ -0,0 +1,95 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MeetingActivityStatistics undocumented
+type MeetingActivityStatistics struct {
+ // ActivityStatistics is the base model of MeetingActivityStatistics
+ ActivityStatistics
+ // AfterHours undocumented
+ AfterHours *Duration `json:"afterHours,omitempty"`
+ // Organized undocumented
+ Organized *Duration `json:"organized,omitempty"`
+ // Recurring undocumented
+ Recurring *Duration `json:"recurring,omitempty"`
+ // Long undocumented
+ Long *Duration `json:"long,omitempty"`
+ // Conflicting undocumented
+ Conflicting *Duration `json:"conflicting,omitempty"`
+ // Multitasking undocumented
+ Multitasking *Duration `json:"multitasking,omitempty"`
+}
+
+// MeetingCapability undocumented
+type MeetingCapability struct {
+ // Object is the base model of MeetingCapability
+ Object
+ // AllowAnonymousUsersToDialOut undocumented
+ AllowAnonymousUsersToDialOut *bool `json:"allowAnonymousUsersToDialOut,omitempty"`
+ // AutoAdmittedUsers undocumented
+ AutoAdmittedUsers *AutoAdmittedUsersType `json:"autoAdmittedUsers,omitempty"`
+ // AllowAnonymousUsersToStartMeeting undocumented
+ AllowAnonymousUsersToStartMeeting *bool `json:"allowAnonymousUsersToStartMeeting,omitempty"`
+}
+
+// MeetingInfo undocumented
+type MeetingInfo struct {
+ // Object is the base model of MeetingInfo
+ Object
+ // AllowConversationWithoutHost undocumented
+ AllowConversationWithoutHost *bool `json:"allowConversationWithoutHost,omitempty"`
+}
+
+// MeetingParticipantInfo undocumented
+type MeetingParticipantInfo struct {
+ // Object is the base model of MeetingParticipantInfo
+ Object
+ // Identity undocumented
+ Identity *IdentitySet `json:"identity,omitempty"`
+ // Upn undocumented
+ Upn *string `json:"upn,omitempty"`
+}
+
+// MeetingParticipants undocumented
+type MeetingParticipants struct {
+ // Object is the base model of MeetingParticipants
+ Object
+ // Organizer undocumented
+ Organizer *MeetingParticipantInfo `json:"organizer,omitempty"`
+ // Attendees undocumented
+ Attendees []MeetingParticipantInfo `json:"attendees,omitempty"`
+ // Producers undocumented
+ Producers []MeetingParticipantInfo `json:"producers,omitempty"`
+ // Contributors undocumented
+ Contributors []MeetingParticipantInfo `json:"contributors,omitempty"`
+}
+
+// MeetingTimeSuggestion undocumented
+type MeetingTimeSuggestion struct {
+ // Object is the base model of MeetingTimeSuggestion
+ Object
+ // Confidence undocumented
+ Confidence *float64 `json:"confidence,omitempty"`
+ // Order undocumented
+ Order *int `json:"order,omitempty"`
+ // OrganizerAvailability undocumented
+ OrganizerAvailability *FreeBusyStatus `json:"organizerAvailability,omitempty"`
+ // AttendeeAvailability undocumented
+ AttendeeAvailability []AttendeeAvailability `json:"attendeeAvailability,omitempty"`
+ // Locations undocumented
+ Locations []Location `json:"locations,omitempty"`
+ // SuggestionReason undocumented
+ SuggestionReason *string `json:"suggestionReason,omitempty"`
+ // MeetingTimeSlot undocumented
+ MeetingTimeSlot *TimeSlot `json:"meetingTimeSlot,omitempty"`
+}
+
+// MeetingTimeSuggestionsResult undocumented
+type MeetingTimeSuggestionsResult struct {
+ // Object is the base model of MeetingTimeSuggestionsResult
+ Object
+ // MeetingTimeSuggestions undocumented
+ MeetingTimeSuggestions []MeetingTimeSuggestion `json:"meetingTimeSuggestions,omitempty"`
+ // EmptySuggestionsReason undocumented
+ EmptySuggestionsReason *string `json:"emptySuggestionsReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMembership.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMembership.go
new file mode 100644
index 00000000..dd67f2b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMembership.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MembershipRuleEvaluationDetails undocumented
+type MembershipRuleEvaluationDetails struct {
+ // Object is the base model of MembershipRuleEvaluationDetails
+ Object
+ // MembershipRuleEvaluationDetails undocumented
+ MembershipRuleEvaluationDetails *ExpressionEvaluationDetails `json:"membershipRuleEvaluationDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMention.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMention.go
new file mode 100644
index 00000000..4381a5a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMention.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Mention undocumented
+type Mention struct {
+ // Entity is the base model of Mention
+ Entity
+ // Mentioned undocumented
+ Mentioned *EmailAddress `json:"mentioned,omitempty"`
+ // MentionText undocumented
+ MentionText *string `json:"mentionText,omitempty"`
+ // ClientReference undocumented
+ ClientReference *string `json:"clientReference,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *EmailAddress `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ServerCreatedDateTime undocumented
+ ServerCreatedDateTime *time.Time `json:"serverCreatedDateTime,omitempty"`
+ // DeepLink undocumented
+ DeepLink *string `json:"deepLink,omitempty"`
+ // Application undocumented
+ Application *string `json:"application,omitempty"`
+}
+
+// MentionAction undocumented
+type MentionAction struct {
+ // Object is the base model of MentionAction
+ Object
+ // Mentionees undocumented
+ Mentionees []IdentitySet `json:"mentionees,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMentions.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMentions.go
new file mode 100644
index 00000000..2e950ba1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMentions.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MentionsPreview undocumented
+type MentionsPreview struct {
+ // Object is the base model of MentionsPreview
+ Object
+ // IsMentioned undocumented
+ IsMentioned *bool `json:"isMentioned,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMessage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMessage.go
new file mode 100644
index 00000000..415cc7b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMessage.go
@@ -0,0 +1,195 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Message undocumented
+type Message struct {
+ // OutlookItem is the base model of Message
+ OutlookItem
+ // ReceivedDateTime undocumented
+ ReceivedDateTime *time.Time `json:"receivedDateTime,omitempty"`
+ // SentDateTime undocumented
+ SentDateTime *time.Time `json:"sentDateTime,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // InternetMessageID undocumented
+ InternetMessageID *string `json:"internetMessageId,omitempty"`
+ // InternetMessageHeaders undocumented
+ InternetMessageHeaders []InternetMessageHeader `json:"internetMessageHeaders,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // BodyPreview undocumented
+ BodyPreview *string `json:"bodyPreview,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // Sender undocumented
+ Sender *Recipient `json:"sender,omitempty"`
+ // From undocumented
+ From *Recipient `json:"from,omitempty"`
+ // ToRecipients undocumented
+ ToRecipients []Recipient `json:"toRecipients,omitempty"`
+ // CcRecipients undocumented
+ CcRecipients []Recipient `json:"ccRecipients,omitempty"`
+ // BccRecipients undocumented
+ BccRecipients []Recipient `json:"bccRecipients,omitempty"`
+ // ReplyTo undocumented
+ ReplyTo []Recipient `json:"replyTo,omitempty"`
+ // ConversationID undocumented
+ ConversationID *string `json:"conversationId,omitempty"`
+ // ConversationIndex undocumented
+ ConversationIndex *Binary `json:"conversationIndex,omitempty"`
+ // UniqueBody undocumented
+ UniqueBody *ItemBody `json:"uniqueBody,omitempty"`
+ // IsDeliveryReceiptRequested undocumented
+ IsDeliveryReceiptRequested *bool `json:"isDeliveryReceiptRequested,omitempty"`
+ // IsReadReceiptRequested undocumented
+ IsReadReceiptRequested *bool `json:"isReadReceiptRequested,omitempty"`
+ // IsRead undocumented
+ IsRead *bool `json:"isRead,omitempty"`
+ // IsDraft undocumented
+ IsDraft *bool `json:"isDraft,omitempty"`
+ // WebLink undocumented
+ WebLink *string `json:"webLink,omitempty"`
+ // MentionsPreview undocumented
+ MentionsPreview *MentionsPreview `json:"mentionsPreview,omitempty"`
+ // InferenceClassification undocumented
+ InferenceClassification *InferenceClassificationType `json:"inferenceClassification,omitempty"`
+ // UnsubscribeData undocumented
+ UnsubscribeData []string `json:"unsubscribeData,omitempty"`
+ // UnsubscribeEnabled undocumented
+ UnsubscribeEnabled *bool `json:"unsubscribeEnabled,omitempty"`
+ // Flag undocumented
+ Flag *FollowupFlag `json:"flag,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Attachments undocumented
+ Attachments []Attachment `json:"attachments,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // Mentions undocumented
+ Mentions []Mention `json:"mentions,omitempty"`
+}
+
+// MessageRule undocumented
+type MessageRule struct {
+ // Entity is the base model of MessageRule
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // Conditions undocumented
+ Conditions *MessageRulePredicates `json:"conditions,omitempty"`
+ // Actions undocumented
+ Actions *MessageRuleActions `json:"actions,omitempty"`
+ // Exceptions undocumented
+ Exceptions *MessageRulePredicates `json:"exceptions,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // HasError undocumented
+ HasError *bool `json:"hasError,omitempty"`
+ // IsReadOnly undocumented
+ IsReadOnly *bool `json:"isReadOnly,omitempty"`
+}
+
+// MessageRuleActions undocumented
+type MessageRuleActions struct {
+ // Object is the base model of MessageRuleActions
+ Object
+ // MoveToFolder undocumented
+ MoveToFolder *string `json:"moveToFolder,omitempty"`
+ // CopyToFolder undocumented
+ CopyToFolder *string `json:"copyToFolder,omitempty"`
+ // Delete undocumented
+ Delete *bool `json:"delete,omitempty"`
+ // PermanentDelete undocumented
+ PermanentDelete *bool `json:"permanentDelete,omitempty"`
+ // MarkAsRead undocumented
+ MarkAsRead *bool `json:"markAsRead,omitempty"`
+ // MarkImportance undocumented
+ MarkImportance *Importance `json:"markImportance,omitempty"`
+ // ForwardTo undocumented
+ ForwardTo []Recipient `json:"forwardTo,omitempty"`
+ // ForwardAsAttachmentTo undocumented
+ ForwardAsAttachmentTo []Recipient `json:"forwardAsAttachmentTo,omitempty"`
+ // RedirectTo undocumented
+ RedirectTo []Recipient `json:"redirectTo,omitempty"`
+ // AssignCategories undocumented
+ AssignCategories []string `json:"assignCategories,omitempty"`
+ // StopProcessingRules undocumented
+ StopProcessingRules *bool `json:"stopProcessingRules,omitempty"`
+}
+
+// MessageRulePredicates undocumented
+type MessageRulePredicates struct {
+ // Object is the base model of MessageRulePredicates
+ Object
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // SubjectContains undocumented
+ SubjectContains []string `json:"subjectContains,omitempty"`
+ // BodyContains undocumented
+ BodyContains []string `json:"bodyContains,omitempty"`
+ // BodyOrSubjectContains undocumented
+ BodyOrSubjectContains []string `json:"bodyOrSubjectContains,omitempty"`
+ // SenderContains undocumented
+ SenderContains []string `json:"senderContains,omitempty"`
+ // RecipientContains undocumented
+ RecipientContains []string `json:"recipientContains,omitempty"`
+ // HeaderContains undocumented
+ HeaderContains []string `json:"headerContains,omitempty"`
+ // MessageActionFlag undocumented
+ MessageActionFlag *MessageActionFlag `json:"messageActionFlag,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *Sensitivity `json:"sensitivity,omitempty"`
+ // FromAddresses undocumented
+ FromAddresses []Recipient `json:"fromAddresses,omitempty"`
+ // SentToAddresses undocumented
+ SentToAddresses []Recipient `json:"sentToAddresses,omitempty"`
+ // SentToMe undocumented
+ SentToMe *bool `json:"sentToMe,omitempty"`
+ // SentOnlyToMe undocumented
+ SentOnlyToMe *bool `json:"sentOnlyToMe,omitempty"`
+ // SentCcMe undocumented
+ SentCcMe *bool `json:"sentCcMe,omitempty"`
+ // SentToOrCcMe undocumented
+ SentToOrCcMe *bool `json:"sentToOrCcMe,omitempty"`
+ // NotSentToMe undocumented
+ NotSentToMe *bool `json:"notSentToMe,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // IsApprovalRequest undocumented
+ IsApprovalRequest *bool `json:"isApprovalRequest,omitempty"`
+ // IsAutomaticForward undocumented
+ IsAutomaticForward *bool `json:"isAutomaticForward,omitempty"`
+ // IsAutomaticReply undocumented
+ IsAutomaticReply *bool `json:"isAutomaticReply,omitempty"`
+ // IsEncrypted undocumented
+ IsEncrypted *bool `json:"isEncrypted,omitempty"`
+ // IsMeetingRequest undocumented
+ IsMeetingRequest *bool `json:"isMeetingRequest,omitempty"`
+ // IsMeetingResponse undocumented
+ IsMeetingResponse *bool `json:"isMeetingResponse,omitempty"`
+ // IsNonDeliveryReport undocumented
+ IsNonDeliveryReport *bool `json:"isNonDeliveryReport,omitempty"`
+ // IsPermissionControlled undocumented
+ IsPermissionControlled *bool `json:"isPermissionControlled,omitempty"`
+ // IsReadReceipt undocumented
+ IsReadReceipt *bool `json:"isReadReceipt,omitempty"`
+ // IsSigned undocumented
+ IsSigned *bool `json:"isSigned,omitempty"`
+ // IsVoicemail undocumented
+ IsVoicemail *bool `json:"isVoicemail,omitempty"`
+ // WithinSizeRange undocumented
+ WithinSizeRange *SizeRange `json:"withinSizeRange,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMetadata.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMetadata.go
new file mode 100644
index 00000000..1f974da6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMetadata.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MetadataAction undocumented
+type MetadataAction struct {
+ // InformationProtectionAction is the base model of MetadataAction
+ InformationProtectionAction
+ // MetadataToRemove undocumented
+ MetadataToRemove []string `json:"metadataToRemove,omitempty"`
+ // MetadataToAdd undocumented
+ MetadataToAdd []KeyValuePair `json:"metadataToAdd,omitempty"`
+}
+
+// MetadataEntry undocumented
+type MetadataEntry struct {
+ // Object is the base model of MetadataEntry
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMicrosoft.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMicrosoft.go
new file mode 100644
index 00000000..9eaa6827
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMicrosoft.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MicrosoftStoreForBusinessApp Microsoft Store for Business Apps. This class does not support Create, Delete, or Update.
+type MicrosoftStoreForBusinessApp struct {
+ // MobileApp is the base model of MicrosoftStoreForBusinessApp
+ MobileApp
+ // UsedLicenseCount The number of Microsoft Store for Business licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+ // TotalLicenseCount The total number of Microsoft Store for Business licenses.
+ TotalLicenseCount *int `json:"totalLicenseCount,omitempty"`
+ // ProductKey The app product key
+ ProductKey *string `json:"productKey,omitempty"`
+ // LicenseType The app license type
+ LicenseType *MicrosoftStoreForBusinessLicenseType `json:"licenseType,omitempty"`
+ // PackageIdentityName The app package identifier
+ PackageIdentityName *string `json:"packageIdentityName,omitempty"`
+ // LicensingType The supported License Type.
+ LicensingType *VPPLicensingType `json:"licensingType,omitempty"`
+ // ContainedApps undocumented
+ ContainedApps []MobileContainedApp `json:"containedApps,omitempty"`
+}
+
+// MicrosoftStoreForBusinessAppAssignmentSettings undocumented
+type MicrosoftStoreForBusinessAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of MicrosoftStoreForBusinessAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // UseDeviceContext Whether or not to use device execution context for Microsoft Store for Business mobile app.
+ UseDeviceContext *bool `json:"useDeviceContext,omitempty"`
+}
+
+// MicrosoftStoreForBusinessContainedApp A class that represents a contained app of a MicrosoftStoreForBusinessApp.
+type MicrosoftStoreForBusinessContainedApp struct {
+ // MobileContainedApp is the base model of MicrosoftStoreForBusinessContainedApp
+ MobileContainedApp
+ // AppUserModelID The app user model ID of the contained app of a MicrosoftStoreForBusinessApp.
+ AppUserModelID *string `json:"appUserModelId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMime.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMime.go
new file mode 100644
index 00000000..3742495a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMime.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MimeContent undocumented
+type MimeContent struct {
+ // Object is the base model of MimeContent
+ Object
+ // Type Indicates the content mime type.
+ Type *string `json:"type,omitempty"`
+ // Value The byte array that contains the actual content.
+ Value *Binary `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMobile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMobile.go
new file mode 100644
index 00000000..49d05eb9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMobile.go
@@ -0,0 +1,431 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// MobileApp An abstract class containing the base properties for Intune mobile apps.
+type MobileApp struct {
+ // Entity is the base model of MobileApp
+ Entity
+ // DisplayName The admin provided or imported title of the app.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of the app.
+ Description *string `json:"description,omitempty"`
+ // Publisher The publisher of the app.
+ Publisher *string `json:"publisher,omitempty"`
+ // LargeIcon The large icon, to be displayed in the app details and used for upload of the icon.
+ LargeIcon *MimeContent `json:"largeIcon,omitempty"`
+ // CreatedDateTime The date and time the app was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date and time the app was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // IsFeatured The value indicating whether the app is marked as featured by the admin.
+ IsFeatured *bool `json:"isFeatured,omitempty"`
+ // PrivacyInformationURL The privacy statement Url.
+ PrivacyInformationURL *string `json:"privacyInformationUrl,omitempty"`
+ // InformationURL The more information Url.
+ InformationURL *string `json:"informationUrl,omitempty"`
+ // Owner The owner of the app.
+ Owner *string `json:"owner,omitempty"`
+ // Developer The developer of the app.
+ Developer *string `json:"developer,omitempty"`
+ // Notes Notes for the app.
+ Notes *string `json:"notes,omitempty"`
+ // UploadState The upload state.
+ UploadState *int `json:"uploadState,omitempty"`
+ // PublishingState The publishing state for the app. The app cannot be assigned unless the app is published.
+ PublishingState *MobileAppPublishingState `json:"publishingState,omitempty"`
+ // IsAssigned The value indicating whether the app is assigned to at least one group.
+ IsAssigned *bool `json:"isAssigned,omitempty"`
+ // RoleScopeTagIDs List of scope tag ids for this mobile app.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // DependentAppCount The total number of dependencies the child app has.
+ DependentAppCount *int `json:"dependentAppCount,omitempty"`
+ // Categories undocumented
+ Categories []MobileAppCategory `json:"categories,omitempty"`
+ // Assignments undocumented
+ Assignments []MobileAppAssignment `json:"assignments,omitempty"`
+ // InstallSummary undocumented
+ InstallSummary *MobileAppInstallSummary `json:"installSummary,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []MobileAppInstallStatus `json:"deviceStatuses,omitempty"`
+ // UserStatuses undocumented
+ UserStatuses []UserAppInstallStatus `json:"userStatuses,omitempty"`
+ // Relationships undocumented
+ Relationships []MobileAppRelationship `json:"relationships,omitempty"`
+}
+
+// MobileAppAssignment A class containing the properties used for Group Assignment of a Mobile App.
+type MobileAppAssignment struct {
+ // Entity is the base model of MobileAppAssignment
+ Entity
+ // Intent The install intent defined by the admin.
+ Intent *InstallIntent `json:"intent,omitempty"`
+ // Target The target group assignment defined by the admin.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Settings The settings for target assignment defined by the admin.
+ Settings *MobileAppAssignmentSettings `json:"settings,omitempty"`
+ // Source The resource type which is the source for the assignment.
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID The identifier of the source of the assignment.
+ SourceID *string `json:"sourceId,omitempty"`
+}
+
+// MobileAppAssignmentSettings undocumented
+type MobileAppAssignmentSettings struct {
+ // Object is the base model of MobileAppAssignmentSettings
+ Object
+}
+
+// MobileAppCategory Contains properties for a single Intune app category.
+type MobileAppCategory struct {
+ // Entity is the base model of MobileAppCategory
+ Entity
+ // DisplayName The name of the app category.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime The date and time the mobileAppCategory was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// MobileAppContent Contains content properties for a specific app version. Each mobileAppContent can have multiple mobileAppContentFile.
+type MobileAppContent struct {
+ // Entity is the base model of MobileAppContent
+ Entity
+ // Files undocumented
+ Files []MobileAppContentFile `json:"files,omitempty"`
+ // ContainedApps undocumented
+ ContainedApps []MobileContainedApp `json:"containedApps,omitempty"`
+}
+
+// MobileAppContentFile Contains properties for a single installer file that is associated with a given mobileAppContent version.
+type MobileAppContentFile struct {
+ // Entity is the base model of MobileAppContentFile
+ Entity
+ // AzureStorageURI The Azure Storage URI.
+ AzureStorageURI *string `json:"azureStorageUri,omitempty"`
+ // IsCommitted A value indicating whether the file is committed.
+ IsCommitted *bool `json:"isCommitted,omitempty"`
+ // CreatedDateTime The time the file was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Name the file name.
+ Name *string `json:"name,omitempty"`
+ // Size The size of the file prior to encryption.
+ Size *int `json:"size,omitempty"`
+ // SizeEncrypted The size of the file after encryption.
+ SizeEncrypted *int `json:"sizeEncrypted,omitempty"`
+ // AzureStorageURIExpirationDateTime The time the Azure storage Uri expires.
+ AzureStorageURIExpirationDateTime *time.Time `json:"azureStorageUriExpirationDateTime,omitempty"`
+ // Manifest The manifest information.
+ Manifest *Binary `json:"manifest,omitempty"`
+ // UploadState The state of the current upload request.
+ UploadState *MobileAppContentFileUploadState `json:"uploadState,omitempty"`
+ // IsFrameworkFile A value indicating whether the file is a framework file.
+ IsFrameworkFile *bool `json:"isFrameworkFile,omitempty"`
+ // IsDependency Whether the content file is a dependency for the main content file.
+ IsDependency *bool `json:"isDependency,omitempty"`
+}
+
+// MobileAppDependency Describes a dependency type between two mobile apps.
+type MobileAppDependency struct {
+ // MobileAppRelationship is the base model of MobileAppDependency
+ MobileAppRelationship
+ // DependencyType The type of dependency relationship between the parent and child apps.
+ DependencyType *MobileAppDependencyType `json:"dependencyType,omitempty"`
+ // DependentAppCount The total number of dependencies the child app has.
+ DependentAppCount *int `json:"dependentAppCount,omitempty"`
+}
+
+// MobileAppIdentifier undocumented
+type MobileAppIdentifier struct {
+ // Object is the base model of MobileAppIdentifier
+ Object
+}
+
+// MobileAppInstallStatus Contains properties for the installation state of a mobile app for a device.
+type MobileAppInstallStatus struct {
+ // Entity is the base model of MobileAppInstallStatus
+ Entity
+ // DeviceName Device name
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceID Device ID
+ DeviceID *string `json:"deviceId,omitempty"`
+ // LastSyncDateTime Last sync date time
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // MobileAppInstallStatusValue The install state of the app.
+ MobileAppInstallStatusValue *ResultantAppState `json:"mobileAppInstallStatusValue,omitempty"`
+ // InstallState The install state of the app.
+ InstallState *ResultantAppState `json:"installState,omitempty"`
+ // InstallStateDetail The install state detail of the app.
+ InstallStateDetail *ResultantAppStateDetail `json:"installStateDetail,omitempty"`
+ // ErrorCode The error code for install or uninstall failures.
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // OsVersion OS Version
+ OsVersion *string `json:"osVersion,omitempty"`
+ // OsDescription OS Description
+ OsDescription *string `json:"osDescription,omitempty"`
+ // UserName Device User Name
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayVersion Human readable version of the application
+ DisplayVersion *string `json:"displayVersion,omitempty"`
+ // App undocumented
+ App *MobileApp `json:"app,omitempty"`
+}
+
+// MobileAppInstallSummary Contains properties for the installation summary of a mobile app.
+type MobileAppInstallSummary struct {
+ // Entity is the base model of MobileAppInstallSummary
+ Entity
+ // InstalledDeviceCount Number of Devices that have successfully installed this app.
+ InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"`
+ // FailedDeviceCount Number of Devices that have failed to install this app.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of Devices that are not applicable for this app.
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // NotInstalledDeviceCount Number of Devices that does not have this app installed.
+ NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"`
+ // PendingInstallDeviceCount Number of Devices that have been notified to install this app.
+ PendingInstallDeviceCount *int `json:"pendingInstallDeviceCount,omitempty"`
+ // InstalledUserCount Number of Users whose devices have all succeeded to install this app.
+ InstalledUserCount *int `json:"installedUserCount,omitempty"`
+ // FailedUserCount Number of Users that have 1 or more device that failed to install this app.
+ FailedUserCount *int `json:"failedUserCount,omitempty"`
+ // NotApplicableUserCount Number of Users whose devices were all not applicable for this app.
+ NotApplicableUserCount *int `json:"notApplicableUserCount,omitempty"`
+ // NotInstalledUserCount Number of Users that have 1 or more devices that did not install this app.
+ NotInstalledUserCount *int `json:"notInstalledUserCount,omitempty"`
+ // PendingInstallUserCount Number of Users that have 1 or more device that have been notified to install this app and have 0 devices with failures.
+ PendingInstallUserCount *int `json:"pendingInstallUserCount,omitempty"`
+}
+
+// MobileAppInstallTimeSettings undocumented
+type MobileAppInstallTimeSettings struct {
+ // Object is the base model of MobileAppInstallTimeSettings
+ Object
+ // UseLocalTime Whether the local device time or UTC time should be used when determining the available and deadline times.
+ UseLocalTime *bool `json:"useLocalTime,omitempty"`
+ // StartDateTime The time at which the app should be available for installation.
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // DeadlineDateTime The time at which the app should be installed.
+ DeadlineDateTime *time.Time `json:"deadlineDateTime,omitempty"`
+}
+
+// MobileAppIntentAndState MobileApp Intent and Install State for a given device.
+type MobileAppIntentAndState struct {
+ // Entity is the base model of MobileAppIntentAndState
+ Entity
+ // ManagedDeviceIdentifier Device identifier created or collected by Intune.
+ ManagedDeviceIdentifier *string `json:"managedDeviceIdentifier,omitempty"`
+ // UserID Identifier for the user that tried to enroll the device.
+ UserID *string `json:"userId,omitempty"`
+ // MobileAppList The list of payload intents and states for the tenant.
+ MobileAppList []MobileAppIntentAndStateDetail `json:"mobileAppList,omitempty"`
+}
+
+// MobileAppIntentAndStateDetail undocumented
+type MobileAppIntentAndStateDetail struct {
+ // Object is the base model of MobileAppIntentAndStateDetail
+ Object
+ // ApplicationID MobieApp identifier.
+ ApplicationID *string `json:"applicationId,omitempty"`
+ // DisplayName The admin provided or imported title of the app.
+ DisplayName *string `json:"displayName,omitempty"`
+ // MobileAppIntent Mobile App Intent.
+ MobileAppIntent *MobileAppIntent `json:"mobileAppIntent,omitempty"`
+ // DisplayVersion Human readable version of the application
+ DisplayVersion *string `json:"displayVersion,omitempty"`
+ // InstallState The install state of the app.
+ InstallState *ResultantAppState `json:"installState,omitempty"`
+ // SupportedDeviceTypes The supported platforms for the app.
+ SupportedDeviceTypes []MobileAppSupportedDeviceType `json:"supportedDeviceTypes,omitempty"`
+}
+
+// MobileAppPolicySetItem A class containing the properties used for mobile app PolicySetItem.
+type MobileAppPolicySetItem struct {
+ // PolicySetItem is the base model of MobileAppPolicySetItem
+ PolicySetItem
+ // Intent Install intent of the MobileAppPolicySetItem.
+ Intent *InstallIntent `json:"intent,omitempty"`
+ // Settings Settings of the MobileAppPolicySetItem.
+ Settings *MobileAppAssignmentSettings `json:"settings,omitempty"`
+}
+
+// MobileAppProvisioningConfigGroupAssignment Contains the properties used to assign an App provisioning configuration to a group.
+type MobileAppProvisioningConfigGroupAssignment struct {
+ // Entity is the base model of MobileAppProvisioningConfigGroupAssignment
+ Entity
+ // TargetGroupID The ID of the AAD group in which the app provisioning configuration is being targeted.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+}
+
+// MobileAppRelationship Describes the relationship for a child mobile app to its parent mobile app.
+type MobileAppRelationship struct {
+ // Entity is the base model of MobileAppRelationship
+ Entity
+ // TargetID The target child mobile app's app id.
+ TargetID *string `json:"targetId,omitempty"`
+ // TargetDisplayName The target child mobile app's display name.
+ TargetDisplayName *string `json:"targetDisplayName,omitempty"`
+}
+
+// MobileAppRelationshipState undocumented
+type MobileAppRelationshipState struct {
+ // Object is the base model of MobileAppRelationshipState
+ Object
+ // SourceIDs The collection of source mobile app's ids.
+ SourceIDs []string `json:"sourceIds,omitempty"`
+ // TargetID The related target app's id.
+ TargetID *string `json:"targetId,omitempty"`
+ // TargetDisplayName The related target app's display name.
+ TargetDisplayName *string `json:"targetDisplayName,omitempty"`
+ // DeviceID The corresponding device id.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // InstallState The install state of the app of target app.
+ InstallState *ResultantAppState `json:"installState,omitempty"`
+ // InstallStateDetail The install state detail of the app.
+ InstallStateDetail *ResultantAppStateDetail `json:"installStateDetail,omitempty"`
+ // ErrorCode The error code for install or uninstall failures of target app.
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // TargetLastSyncDateTime The last sync time of the target app.
+ TargetLastSyncDateTime *time.Time `json:"targetLastSyncDateTime,omitempty"`
+}
+
+// MobileAppSupportedDeviceType undocumented
+type MobileAppSupportedDeviceType struct {
+ // Object is the base model of MobileAppSupportedDeviceType
+ Object
+ // Type Device type
+ Type *DeviceType `json:"type,omitempty"`
+ // MinimumOperatingSystemVersion Minimum OS version
+ MinimumOperatingSystemVersion *string `json:"minimumOperatingSystemVersion,omitempty"`
+ // MaximumOperatingSystemVersion Maximum OS version
+ MaximumOperatingSystemVersion *string `json:"maximumOperatingSystemVersion,omitempty"`
+}
+
+// MobileAppTroubleshootingAppPolicyCreationHistory undocumented
+type MobileAppTroubleshootingAppPolicyCreationHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppPolicyCreationHistory
+ MobileAppTroubleshootingHistoryItem
+ // RunState Status of the item.
+ RunState *RunState `json:"runState,omitempty"`
+ // ErrorCode Error code for the failure, empty if no failure.
+ ErrorCode *string `json:"errorCode,omitempty"`
+}
+
+// MobileAppTroubleshootingAppStateHistory undocumented
+type MobileAppTroubleshootingAppStateHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppStateHistory
+ MobileAppTroubleshootingHistoryItem
+ // ActionType AAD security group id to which it was targeted.
+ ActionType *MobileAppActionType `json:"actionType,omitempty"`
+ // RunState Status of the item.
+ RunState *RunState `json:"runState,omitempty"`
+ // ErrorCode Error code for the failure, empty if no failure.
+ ErrorCode *string `json:"errorCode,omitempty"`
+}
+
+// MobileAppTroubleshootingAppTargetHistory undocumented
+type MobileAppTroubleshootingAppTargetHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppTargetHistory
+ MobileAppTroubleshootingHistoryItem
+ // SecurityGroupID AAD security group id to which it was targeted.
+ SecurityGroupID *string `json:"securityGroupId,omitempty"`
+ // RunState Status of the item.
+ RunState *RunState `json:"runState,omitempty"`
+ // ErrorCode Error code for the failure, empty if no failure.
+ ErrorCode *string `json:"errorCode,omitempty"`
+}
+
+// MobileAppTroubleshootingAppUpdateHistory undocumented
+type MobileAppTroubleshootingAppUpdateHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingAppUpdateHistory
+ MobileAppTroubleshootingHistoryItem
+}
+
+// MobileAppTroubleshootingDeviceCheckinHistory undocumented
+type MobileAppTroubleshootingDeviceCheckinHistory struct {
+ // MobileAppTroubleshootingHistoryItem is the base model of MobileAppTroubleshootingDeviceCheckinHistory
+ MobileAppTroubleshootingHistoryItem
+}
+
+// MobileAppTroubleshootingEvent Event representing a users device application install status.
+type MobileAppTroubleshootingEvent struct {
+ // DeviceManagementTroubleshootingEvent is the base model of MobileAppTroubleshootingEvent
+ DeviceManagementTroubleshootingEvent
+ // ManagedDeviceIdentifier Device identifier created or collected by Intune.
+ ManagedDeviceIdentifier *string `json:"managedDeviceIdentifier,omitempty"`
+ // UserID Identifier for the user that tried to enroll the device.
+ UserID *string `json:"userId,omitempty"`
+ // ApplicationID Intune application identifier.
+ ApplicationID *string `json:"applicationId,omitempty"`
+ // History Intune Mobile Application Troubleshooting History Item
+ History []MobileAppTroubleshootingHistoryItem `json:"history,omitempty"`
+ // AppLogCollectionRequests undocumented
+ AppLogCollectionRequests []AppLogCollectionRequestObject `json:"appLogCollectionRequests,omitempty"`
+}
+
+// MobileAppTroubleshootingHistoryItem undocumented
+type MobileAppTroubleshootingHistoryItem struct {
+ // Object is the base model of MobileAppTroubleshootingHistoryItem
+ Object
+ // OccurrenceDateTime Time when the history item occurred.
+ OccurrenceDateTime *time.Time `json:"occurrenceDateTime,omitempty"`
+}
+
+// MobileContainedApp An abstract class that represents a contained app in a mobileApp acting as a package.
+type MobileContainedApp struct {
+ // Entity is the base model of MobileContainedApp
+ Entity
+}
+
+// MobileLobApp An abstract base class containing properties for all mobile line of business apps.
+type MobileLobApp struct {
+ // MobileApp is the base model of MobileLobApp
+ MobileApp
+ // CommittedContentVersion The internal committed content version.
+ CommittedContentVersion *string `json:"committedContentVersion,omitempty"`
+ // FileName The name of the main Lob application file.
+ FileName *string `json:"fileName,omitempty"`
+ // Size The total size, including all uploaded files.
+ Size *int `json:"size,omitempty"`
+ // ContentVersions undocumented
+ ContentVersions []MobileAppContent `json:"contentVersions,omitempty"`
+}
+
+// MobileThreatDefenseConnector Entity which represents a connection to Mobile threat defense partner.
+type MobileThreatDefenseConnector struct {
+ // Entity is the base model of MobileThreatDefenseConnector
+ Entity
+ // LastHeartbeatDateTime DateTime of last Heartbeat recieved from the Data Sync Partner
+ LastHeartbeatDateTime *time.Time `json:"lastHeartbeatDateTime,omitempty"`
+ // PartnerState Data Sync Partner state for this account
+ PartnerState *MobileThreatPartnerTenantState `json:"partnerState,omitempty"`
+ // AndroidMobileApplicationManagementEnabled For Android, set whether data from the data sync partner should be used during Mobile Application Management (MAM) evaluations. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation.
+ AndroidMobileApplicationManagementEnabled *bool `json:"androidMobileApplicationManagementEnabled,omitempty"`
+ // IOSMobileApplicationManagementEnabled For IOS, get or set whether data from the data sync partner should be used during Mobile Application Management (MAM) evaluations. Only one partner per platform may be enabled for Mobile Application Management (MAM) evaluation.
+ IOSMobileApplicationManagementEnabled *bool `json:"iosMobileApplicationManagementEnabled,omitempty"`
+ // AndroidEnabled For Android, set whether data from the data sync partner should be used during compliance evaluations
+ AndroidEnabled *bool `json:"androidEnabled,omitempty"`
+ // IOSEnabled For IOS, get or set whether data from the data sync partner should be used during compliance evaluations
+ IOSEnabled *bool `json:"iosEnabled,omitempty"`
+ // WindowsEnabled For Windows, get or set whether data from the data sync partner should be used during compliance evaluations
+ WindowsEnabled *bool `json:"windowsEnabled,omitempty"`
+ // MacEnabled For Mac, get or set whether data from the data sync partner should be used during compliance evaluations
+ MacEnabled *bool `json:"macEnabled,omitempty"`
+ // AndroidDeviceBlockedOnMissingPartnerData For Android, set whether Intune must receive data from the data sync partner prior to marking a device compliant
+ AndroidDeviceBlockedOnMissingPartnerData *bool `json:"androidDeviceBlockedOnMissingPartnerData,omitempty"`
+ // IOSDeviceBlockedOnMissingPartnerData For IOS, set whether Intune must receive data from the data sync partner prior to marking a device compliant
+ IOSDeviceBlockedOnMissingPartnerData *bool `json:"iosDeviceBlockedOnMissingPartnerData,omitempty"`
+ // WindowsDeviceBlockedOnMissingPartnerData For Windows, set whether Intune must receive data from the data sync partner prior to marking a device compliant
+ WindowsDeviceBlockedOnMissingPartnerData *bool `json:"windowsDeviceBlockedOnMissingPartnerData,omitempty"`
+ // MacDeviceBlockedOnMissingPartnerData For Mac, get or set whether Intune must receive data from the data sync partner prior to marking a device compliant
+ MacDeviceBlockedOnMissingPartnerData *bool `json:"macDeviceBlockedOnMissingPartnerData,omitempty"`
+ // PartnerUnsupportedOsVersionBlocked Get or set whether to block devices on the enabled platforms that do not meet the minimum version requirements of the Data Sync Partner
+ PartnerUnsupportedOsVersionBlocked *bool `json:"partnerUnsupportedOsVersionBlocked,omitempty"`
+ // PartnerUnresponsivenessThresholdInDays Get or Set days the per tenant tolerance to unresponsiveness for this partner integration
+ PartnerUnresponsivenessThresholdInDays *int `json:"partnerUnresponsivenessThresholdInDays,omitempty"`
+ // AllowPartnerToCollectIOSApplicationMetadata For IOS devices, allows the admin to configure whether the data sync partner may also collect metadata about installed applications from Intune
+ AllowPartnerToCollectIOSApplicationMetadata *bool `json:"allowPartnerToCollectIOSApplicationMetadata,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelModified.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelModified.go
new file mode 100644
index 00000000..f99cedb8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelModified.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ModifiedProperty undocumented
+type ModifiedProperty struct {
+ // Object is the base model of ModifiedProperty
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // OldValue undocumented
+ OldValue *string `json:"oldValue,omitempty"`
+ // NewValue undocumented
+ NewValue *string `json:"newValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMove.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMove.go
new file mode 100644
index 00000000..5ce40c03
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMove.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MoveAction undocumented
+type MoveAction struct {
+ // Object is the base model of MoveAction
+ Object
+ // From undocumented
+ From *string `json:"from,omitempty"`
+ // To undocumented
+ To *string `json:"to,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMulti.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMulti.go
new file mode 100644
index 00000000..3e56ba05
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMulti.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MultiValueLegacyExtendedProperty undocumented
+type MultiValueLegacyExtendedProperty struct {
+ // Entity is the base model of MultiValueLegacyExtendedProperty
+ Entity
+ // Value undocumented
+ Value []string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelMute.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMute.go
new file mode 100644
index 00000000..f680af3a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelMute.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// MuteParticipantOperation undocumented
+type MuteParticipantOperation struct {
+ // CommsOperation is the base model of MuteParticipantOperation
+ CommsOperation
+}
+
+// MuteParticipantsOperation undocumented
+type MuteParticipantsOperation struct {
+ // CommsOperation is the base model of MuteParticipantsOperation
+ CommsOperation
+ // Participants undocumented
+ Participants []string `json:"participants,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNDES.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNDES.go
new file mode 100644
index 00000000..59eea30e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNDES.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// NDESConnector Entity which represents an OnPrem Ndes connector.
+type NDESConnector struct {
+ // Entity is the base model of NDESConnector
+ Entity
+ // LastConnectionDateTime Last connection time for the Ndes Connector
+ LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"`
+ // State Ndes Connector Status
+ State *NDESConnectorState `json:"state,omitempty"`
+ // DisplayName The friendly name of the Ndes Connector.
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNamed.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNamed.go
new file mode 100644
index 00000000..75c1f627
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNamed.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// NamedLocation undocumented
+type NamedLocation struct {
+ // Entity is the base model of NamedLocation
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime undocumented
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNetwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNetwork.go
new file mode 100644
index 00000000..8f4c5c59
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNetwork.go
@@ -0,0 +1,109 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// NetworkConnection undocumented
+type NetworkConnection struct {
+ // Object is the base model of NetworkConnection
+ Object
+ // ApplicationName undocumented
+ ApplicationName *string `json:"applicationName,omitempty"`
+ // DestinationAddress undocumented
+ DestinationAddress *string `json:"destinationAddress,omitempty"`
+ // DestinationDomain undocumented
+ DestinationDomain *string `json:"destinationDomain,omitempty"`
+ // DestinationPort undocumented
+ DestinationPort *string `json:"destinationPort,omitempty"`
+ // DestinationURL undocumented
+ DestinationURL *string `json:"destinationUrl,omitempty"`
+ // Direction undocumented
+ Direction *ConnectionDirection `json:"direction,omitempty"`
+ // DomainRegisteredDateTime undocumented
+ DomainRegisteredDateTime *time.Time `json:"domainRegisteredDateTime,omitempty"`
+ // LocalDNSName undocumented
+ LocalDNSName *string `json:"localDnsName,omitempty"`
+ // NatDestinationAddress undocumented
+ NatDestinationAddress *string `json:"natDestinationAddress,omitempty"`
+ // NatDestinationPort undocumented
+ NatDestinationPort *string `json:"natDestinationPort,omitempty"`
+ // NatSourceAddress undocumented
+ NatSourceAddress *string `json:"natSourceAddress,omitempty"`
+ // NatSourcePort undocumented
+ NatSourcePort *string `json:"natSourcePort,omitempty"`
+ // Protocol undocumented
+ Protocol *SecurityNetworkProtocol `json:"protocol,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // SourceAddress undocumented
+ SourceAddress *string `json:"sourceAddress,omitempty"`
+ // SourcePort undocumented
+ SourcePort *string `json:"sourcePort,omitempty"`
+ // Status undocumented
+ Status *ConnectionStatus `json:"status,omitempty"`
+ // URLParameters undocumented
+ URLParameters *string `json:"urlParameters,omitempty"`
+}
+
+// NetworkIPv4ConfigurationManagementCondition IPv4 configuration-based management conditions may be defined that will trigger when a device detects certain IP network settings. An IP config management conditions will only be considered TRUE when the network connection is active.
+type NetworkIPv4ConfigurationManagementCondition struct {
+ // NetworkManagementCondition is the base model of NetworkIPv4ConfigurationManagementCondition
+ NetworkManagementCondition
+ // IPV4Prefix The IPv4 subnet to be connected to. e.g. 10.0.0.0/8
+ IPV4Prefix *string `json:"ipV4Prefix,omitempty"`
+ // IPV4Gateway The IPv4 gateway address. e.g. 10.0.0.0
+ IPV4Gateway *string `json:"ipV4Gateway,omitempty"`
+ // IPV4DHCPServer The IPv4 address of the DHCP server for the adapter.
+ IPV4DHCPServer *string `json:"ipV4DHCPServer,omitempty"`
+ // IPV4DNSServerList The IPv4 DNS servers configured for the adapter.
+ IPV4DNSServerList []string `json:"ipV4DNSServerList,omitempty"`
+ // DNSSuffixList Valid DNS suffixes for the current network. e.g. seattle.contoso.com
+ DNSSuffixList []string `json:"dnsSuffixList,omitempty"`
+}
+
+// NetworkIPv6ConfigurationManagementCondition IPv6 configuration-based management conditions may be defined that will trigger when a device detects certain IP network settings. An IP config management condition will only be considered TRUE when the network connection is active.
+type NetworkIPv6ConfigurationManagementCondition struct {
+ // NetworkManagementCondition is the base model of NetworkIPv6ConfigurationManagementCondition
+ NetworkManagementCondition
+ // IPV6Prefix The IPv6 subnet to be connected to. e.g. 2001:db8::/32
+ IPV6Prefix *string `json:"ipV6Prefix,omitempty"`
+ // IPV6Gateway The IPv6 gateway address to. e.g 2001:db8::1
+ IPV6Gateway *string `json:"ipV6Gateway,omitempty"`
+ // IPV6DNSServerList An IPv6 DNS servers configured for the adapter.
+ IPV6DNSServerList []string `json:"ipV6DNSServerList,omitempty"`
+ // DNSSuffixList Valid DNS suffixes for the current network. e.g. seattle.contoso.com
+ DNSSuffixList []string `json:"dnsSuffixList,omitempty"`
+}
+
+// NetworkInterface undocumented
+type NetworkInterface struct {
+ // Object is the base model of NetworkInterface
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // IPV4Address undocumented
+ IPV4Address *string `json:"ipV4Address,omitempty"`
+ // IPV6Address undocumented
+ IPV6Address *string `json:"ipV6Address,omitempty"`
+ // LocalIPV6Address undocumented
+ LocalIPV6Address *string `json:"localIpV6Address,omitempty"`
+ // MacAddress undocumented
+ MacAddress *string `json:"macAddress,omitempty"`
+}
+
+// NetworkLocationDetail undocumented
+type NetworkLocationDetail struct {
+ // Object is the base model of NetworkLocationDetail
+ Object
+ // NetworkType undocumented
+ NetworkType *NetworkType `json:"networkType,omitempty"`
+ // NetworkNames undocumented
+ NetworkNames []string `json:"networkNames,omitempty"`
+}
+
+// NetworkManagementCondition Contains the information to define a network management condition.
+type NetworkManagementCondition struct {
+ // ManagementCondition is the base model of NetworkManagementCondition
+ ManagementCondition
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotebook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotebook.go
new file mode 100644
index 00000000..92f152d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotebook.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Notebook undocumented
+type Notebook struct {
+ // OnenoteEntityHierarchyModel is the base model of Notebook
+ OnenoteEntityHierarchyModel
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // UserRole undocumented
+ UserRole *OnenoteUserRole `json:"userRole,omitempty"`
+ // IsShared undocumented
+ IsShared *bool `json:"isShared,omitempty"`
+ // SectionsURL undocumented
+ SectionsURL *string `json:"sectionsUrl,omitempty"`
+ // SectionGroupsURL undocumented
+ SectionGroupsURL *string `json:"sectionGroupsUrl,omitempty"`
+ // Links undocumented
+ Links *NotebookLinks `json:"links,omitempty"`
+ // Sections undocumented
+ Sections []OnenoteSection `json:"sections,omitempty"`
+ // SectionGroups undocumented
+ SectionGroups []SectionGroup `json:"sectionGroups,omitempty"`
+}
+
+// NotebookLinks undocumented
+type NotebookLinks struct {
+ // Object is the base model of NotebookLinks
+ Object
+ // OneNoteClientURL undocumented
+ OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"`
+ // OneNoteWebURL undocumented
+ OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotification.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotification.go
new file mode 100644
index 00000000..344a4f98
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotification.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Notification undocumented
+type Notification struct {
+ // Entity is the base model of Notification
+ Entity
+ // TargetHostName undocumented
+ TargetHostName *string `json:"targetHostName,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // Payload undocumented
+ Payload *PayloadTypes `json:"payload,omitempty"`
+ // DisplayTimeToLive undocumented
+ DisplayTimeToLive *int `json:"displayTimeToLive,omitempty"`
+ // Priority undocumented
+ Priority *Priority `json:"priority,omitempty"`
+ // GroupName undocumented
+ GroupName *string `json:"groupName,omitempty"`
+ // TargetPolicy undocumented
+ TargetPolicy *TargetPolicyEndpoints `json:"targetPolicy,omitempty"`
+}
+
+// NotificationMessageTemplate Notification messages are messages that are sent to end users who are determined to be not-compliant with the compliance policies defined by the administrator. Administrators choose notifications and configure them in the Intune Admin Console using the compliance policy creation page under the “Actions for non-compliance” section. Use the notificationMessageTemplate object to create your own custom notifications for administrators to choose while configuring actions for non-compliance.
+type NotificationMessageTemplate struct {
+ // Entity is the base model of NotificationMessageTemplate
+ Entity
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Display name for the Notification Message Template.
+ DisplayName *string `json:"displayName,omitempty"`
+ // DefaultLocale The default locale to fallback onto when the requested locale is not available.
+ DefaultLocale *string `json:"defaultLocale,omitempty"`
+ // BrandingOptions The Message Template Branding Options. Branding is defined in the Intune Admin Console.
+ BrandingOptions *NotificationTemplateBrandingOptions `json:"brandingOptions,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // LocalizedNotificationMessages undocumented
+ LocalizedNotificationMessages []LocalizedNotificationMessage `json:"localizedNotificationMessages,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotify.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotify.go
new file mode 100644
index 00000000..d64add7f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNotify.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// NotifyUserAction undocumented
+type NotifyUserAction struct {
+ // DlpActionInfo is the base model of NotifyUserAction
+ DlpActionInfo
+ // Recipients undocumented
+ Recipients []string `json:"recipients,omitempty"`
+ // ActionLastModifiedDateTime undocumented
+ ActionLastModifiedDateTime *time.Time `json:"actionLastModifiedDateTime,omitempty"`
+ // OverrideOption undocumented
+ OverrideOption *OverrideOption `json:"overrideOption,omitempty"`
+ // EmailText undocumented
+ EmailText *string `json:"emailText,omitempty"`
+ // PolicyTip undocumented
+ PolicyTip *string `json:"policyTip,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelNumber.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNumber.go
new file mode 100644
index 00000000..27f1e828
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelNumber.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// NumberColumn undocumented
+type NumberColumn struct {
+ // Object is the base model of NumberColumn
+ Object
+ // DecimalPlaces undocumented
+ DecimalPlaces *string `json:"decimalPlaces,omitempty"`
+ // DisplayAs undocumented
+ DisplayAs *string `json:"displayAs,omitempty"`
+ // Maximum undocumented
+ Maximum *float64 `json:"maximum,omitempty"`
+ // Minimum undocumented
+ Minimum *float64 `json:"minimum,omitempty"`
+}
+
+// NumberRange undocumented
+type NumberRange struct {
+ // Object is the base model of NumberRange
+ Object
+ // LowerNumber Lower number.
+ LowerNumber *int `json:"lowerNumber,omitempty"`
+ // UpperNumber Upper number.
+ UpperNumber *int `json:"upperNumber,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOAuth2.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOAuth2.go
new file mode 100644
index 00000000..aab9aaaf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOAuth2.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OAuth2PermissionGrant undocumented
+type OAuth2PermissionGrant struct {
+ // Entity is the base model of OAuth2PermissionGrant
+ Entity
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ConsentType undocumented
+ ConsentType *string `json:"consentType,omitempty"`
+ // ExpiryTime undocumented
+ ExpiryTime *time.Time `json:"expiryTime,omitempty"`
+ // PrincipalID undocumented
+ PrincipalID *string `json:"principalId,omitempty"`
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+ // StartTime undocumented
+ StartTime *time.Time `json:"startTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOMA.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOMA.go
new file mode 100644
index 00000000..1491d533
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOMA.go
@@ -0,0 +1,79 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OMASetting undocumented
+type OMASetting struct {
+ // Object is the base model of OMASetting
+ Object
+ // DisplayName Display Name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description.
+ Description *string `json:"description,omitempty"`
+ // OMAURI OMA.
+ OMAURI *string `json:"omaUri,omitempty"`
+}
+
+// OMASettingBase64 undocumented
+type OMASettingBase64 struct {
+ // OMASetting is the base model of OMASettingBase64
+ OMASetting
+ // FileName File name associated with the Value property (*.cer | *.crt | *.p7b | *.bin).
+ FileName *string `json:"fileName,omitempty"`
+ // Value Value. (Base64 encoded string)
+ Value *string `json:"value,omitempty"`
+}
+
+// OMASettingBoolean undocumented
+type OMASettingBoolean struct {
+ // OMASetting is the base model of OMASettingBoolean
+ OMASetting
+ // Value Value.
+ Value *bool `json:"value,omitempty"`
+}
+
+// OMASettingDateTime undocumented
+type OMASettingDateTime struct {
+ // OMASetting is the base model of OMASettingDateTime
+ OMASetting
+ // Value Value.
+ Value *time.Time `json:"value,omitempty"`
+}
+
+// OMASettingFloatingPoint undocumented
+type OMASettingFloatingPoint struct {
+ // OMASetting is the base model of OMASettingFloatingPoint
+ OMASetting
+ // Value Value.
+ Value *float64 `json:"value,omitempty"`
+}
+
+// OMASettingInteger undocumented
+type OMASettingInteger struct {
+ // OMASetting is the base model of OMASettingInteger
+ OMASetting
+ // Value Value.
+ Value *int `json:"value,omitempty"`
+ // IsReadOnly By setting to true, the CSP (configuration service provider) specified in the OMA-URI will perform a get, instead of set
+ IsReadOnly *bool `json:"isReadOnly,omitempty"`
+}
+
+// OMASettingString undocumented
+type OMASettingString struct {
+ // OMASetting is the base model of OMASettingString
+ OMASetting
+ // Value Value.
+ Value *string `json:"value,omitempty"`
+}
+
+// OMASettingStringXML undocumented
+type OMASettingStringXML struct {
+ // OMASetting is the base model of OMASettingStringXML
+ OMASetting
+ // FileName File name associated with the Value property (*.xml).
+ FileName *string `json:"fileName,omitempty"`
+ // Value Value. (UTF8 encoded byte array)
+ Value *Binary `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelObject.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelObject.go
new file mode 100644
index 00000000..691569b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelObject.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ObjectDefinition undocumented
+type ObjectDefinition struct {
+ // Object is the base model of ObjectDefinition
+ Object
+ // Attributes undocumented
+ Attributes []AttributeDefinition `json:"attributes,omitempty"`
+ // Metadata undocumented
+ Metadata []MetadataEntry `json:"metadata,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // SupportedApis undocumented
+ SupportedApis []string `json:"supportedApis,omitempty"`
+}
+
+// ObjectIdentity undocumented
+type ObjectIdentity struct {
+ // Object is the base model of ObjectIdentity
+ Object
+ // SignInType undocumented
+ SignInType *string `json:"signInType,omitempty"`
+ // Issuer undocumented
+ Issuer *string `json:"issuer,omitempty"`
+ // IssuerAssignedID undocumented
+ IssuerAssignedID *string `json:"issuerAssignedId,omitempty"`
+}
+
+// ObjectMapping undocumented
+type ObjectMapping struct {
+ // Object is the base model of ObjectMapping
+ Object
+ // AttributeMappings undocumented
+ AttributeMappings []AttributeMapping `json:"attributeMappings,omitempty"`
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+ // FlowTypes undocumented
+ FlowTypes *ObjectFlowTypes `json:"flowTypes,omitempty"`
+ // Metadata undocumented
+ Metadata []MetadataEntry `json:"metadata,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Scope undocumented
+ Scope *Filter `json:"scope,omitempty"`
+ // SourceObjectName undocumented
+ SourceObjectName *string `json:"sourceObjectName,omitempty"`
+ // TargetObjectName undocumented
+ TargetObjectName *string `json:"targetObjectName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice.go
new file mode 100644
index 00000000..55202512
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OfficeClientCheckinStatus undocumented
+type OfficeClientCheckinStatus struct {
+ // Object is the base model of OfficeClientCheckinStatus
+ Object
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DeviceName undocumented
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DevicePlatform undocumented
+ DevicePlatform *string `json:"devicePlatform,omitempty"`
+ // DevicePlatformVersion undocumented
+ DevicePlatformVersion *string `json:"devicePlatformVersion,omitempty"`
+ // WasSuccessful undocumented
+ WasSuccessful *bool `json:"wasSuccessful,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // CheckinDateTime undocumented
+ CheckinDateTime *time.Time `json:"checkinDateTime,omitempty"`
+ // ErrorMessage undocumented
+ ErrorMessage *string `json:"errorMessage,omitempty"`
+ // AppliedPolicies undocumented
+ AppliedPolicies []string `json:"appliedPolicies,omitempty"`
+}
+
+// OfficeClientConfiguration undocumented
+type OfficeClientConfiguration struct {
+ // Entity is the base model of OfficeClientConfiguration
+ Entity
+ // UserPreferencePayload undocumented
+ UserPreferencePayload *Stream `json:"userPreferencePayload,omitempty"`
+ // PolicyPayload undocumented
+ PolicyPayload *Stream `json:"policyPayload,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // UserCheckinSummary undocumented
+ UserCheckinSummary *OfficeUserCheckinSummary `json:"userCheckinSummary,omitempty"`
+ // CheckinStatuses undocumented
+ CheckinStatuses []OfficeClientCheckinStatus `json:"checkinStatuses,omitempty"`
+ // Assignments undocumented
+ Assignments []OfficeClientConfigurationAssignment `json:"assignments,omitempty"`
+}
+
+// OfficeClientConfigurationAssignment undocumented
+type OfficeClientConfigurationAssignment struct {
+ // Entity is the base model of OfficeClientConfigurationAssignment
+ Entity
+ // Target undocumented
+ Target *OfficeConfigurationAssignmentTarget `json:"target,omitempty"`
+}
+
+// OfficeConfiguration undocumented
+type OfficeConfiguration struct {
+ // Entity is the base model of OfficeConfiguration
+ Entity
+ // TenantCheckinStatuses undocumented
+ TenantCheckinStatuses []OfficeClientCheckinStatus `json:"tenantCheckinStatuses,omitempty"`
+ // TenantUserCheckinSummary undocumented
+ TenantUserCheckinSummary *OfficeUserCheckinSummary `json:"tenantUserCheckinSummary,omitempty"`
+ // ClientConfigurations undocumented
+ ClientConfigurations []OfficeClientConfiguration `json:"clientConfigurations,omitempty"`
+}
+
+// OfficeConfigurationAssignmentTarget undocumented
+type OfficeConfigurationAssignmentTarget struct {
+ // Object is the base model of OfficeConfigurationAssignmentTarget
+ Object
+}
+
+// OfficeConfigurationGroupAssignmentTarget undocumented
+type OfficeConfigurationGroupAssignmentTarget struct {
+ // OfficeConfigurationAssignmentTarget is the base model of OfficeConfigurationGroupAssignmentTarget
+ OfficeConfigurationAssignmentTarget
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+// OfficeGraphInsights undocumented
+type OfficeGraphInsights struct {
+ // Entity is the base model of OfficeGraphInsights
+ Entity
+ // Trending undocumented
+ Trending []Trending `json:"trending,omitempty"`
+ // Shared undocumented
+ Shared []SharedInsight `json:"shared,omitempty"`
+ // Used undocumented
+ Used []UsedInsight `json:"used,omitempty"`
+}
+
+// OfficeSuiteApp Contains properties and inherited properties for the Office365 Suite App.
+type OfficeSuiteApp struct {
+ // MobileApp is the base model of OfficeSuiteApp
+ MobileApp
+ // AutoAcceptEula The value to accept the EULA automatically on the enduser's device.
+ AutoAcceptEula *bool `json:"autoAcceptEula,omitempty"`
+ // ProductIDs The Product Ids that represent the Office365 Suite SKU.
+ ProductIDs []OfficeProductID `json:"productIds,omitempty"`
+ // ExcludedApps The property to represent the apps which are excluded from the selected Office365 Product Id.
+ ExcludedApps *ExcludedApps `json:"excludedApps,omitempty"`
+ // UseSharedComputerActivation The property to represent that whether the shared computer activation is used not for Office365 app suite.
+ UseSharedComputerActivation *bool `json:"useSharedComputerActivation,omitempty"`
+ // UpdateChannel The property to represent the Office365 Update Channel.
+ UpdateChannel *OfficeUpdateChannel `json:"updateChannel,omitempty"`
+ // OfficePlatformArchitecture The property to represent the Office365 app suite version.
+ OfficePlatformArchitecture *WindowsArchitecture `json:"officePlatformArchitecture,omitempty"`
+ // LocalesToInstall The property to represent the locales which are installed when the apps from Office365 is installed. It uses standard RFC 6033. Ref: https://technet.microsoft.com/en-us/library/cc179219(v=office.16).aspx
+ LocalesToInstall []string `json:"localesToInstall,omitempty"`
+ // InstallProgressDisplayLevel To specify the level of display for the Installation Progress Setup UI on the Device.
+ InstallProgressDisplayLevel *OfficeSuiteInstallProgressDisplayLevel `json:"installProgressDisplayLevel,omitempty"`
+ // ShouldUninstallOlderVersionsOfOffice The property to determine whether to uninstall existing Office MSI if an Office365 app suite is deployed to the device or not.
+ ShouldUninstallOlderVersionsOfOffice *bool `json:"shouldUninstallOlderVersionsOfOffice,omitempty"`
+ // TargetVersion The property to represent the specific target version for the Office365 app suite that should be remained deployed on the devices.
+ TargetVersion *string `json:"targetVersion,omitempty"`
+ // UpdateVersion The property to represent the update version in which the specific target version is available for the Office365 app suite.
+ UpdateVersion *string `json:"updateVersion,omitempty"`
+ // OfficeConfigurationXML The property to represent the XML configuration file that can be specified for Office ProPlus Apps. Takes precedence over all other properties. When present, the XML configuration file will be used to create the app.
+ OfficeConfigurationXML *Binary `json:"officeConfigurationXml,omitempty"`
+}
+
+// OfficeUserCheckinSummary undocumented
+type OfficeUserCheckinSummary struct {
+ // Object is the base model of OfficeUserCheckinSummary
+ Object
+ // SucceededUserCount undocumented
+ SucceededUserCount *int `json:"succeededUserCount,omitempty"`
+ // FailedUserCount undocumented
+ FailedUserCount *int `json:"failedUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice365.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice365.go
new file mode 100644
index 00000000..3f81ff91
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOffice365.go
@@ -0,0 +1,283 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Office365ActivationCounts undocumented
+type Office365ActivationCounts struct {
+ // Entity is the base model of Office365ActivationCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ProductType undocumented
+ ProductType *string `json:"productType,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // Mac undocumented
+ Mac *int `json:"mac,omitempty"`
+ // Android undocumented
+ Android *int `json:"android,omitempty"`
+ // IOS undocumented
+ IOS *int `json:"ios,omitempty"`
+ // Windows10Mobile undocumented
+ Windows10Mobile *int `json:"windows10Mobile,omitempty"`
+}
+
+// Office365ActivationsUserCounts undocumented
+type Office365ActivationsUserCounts struct {
+ // Entity is the base model of Office365ActivationsUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ProductType undocumented
+ ProductType *string `json:"productType,omitempty"`
+ // Assigned undocumented
+ Assigned *int `json:"assigned,omitempty"`
+ // Activated undocumented
+ Activated *int `json:"activated,omitempty"`
+ // SharedComputerActivation undocumented
+ SharedComputerActivation *int `json:"sharedComputerActivation,omitempty"`
+}
+
+// Office365ActivationsUserDetail undocumented
+type Office365ActivationsUserDetail struct {
+ // Entity is the base model of Office365ActivationsUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // UserActivationCounts undocumented
+ UserActivationCounts []UserActivationCounts `json:"userActivationCounts,omitempty"`
+}
+
+// Office365ActiveUserCounts undocumented
+type Office365ActiveUserCounts struct {
+ // Entity is the base model of Office365ActiveUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Office365 undocumented
+ Office365 *int `json:"office365,omitempty"`
+ // Exchange undocumented
+ Exchange *int `json:"exchange,omitempty"`
+ // OneDrive undocumented
+ OneDrive *int `json:"oneDrive,omitempty"`
+ // SharePoint undocumented
+ SharePoint *int `json:"sharePoint,omitempty"`
+ // SkypeForBusiness undocumented
+ SkypeForBusiness *int `json:"skypeForBusiness,omitempty"`
+ // Yammer undocumented
+ Yammer *int `json:"yammer,omitempty"`
+ // Teams undocumented
+ Teams *int `json:"teams,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// Office365ActiveUserDetail undocumented
+type Office365ActiveUserDetail struct {
+ // Entity is the base model of Office365ActiveUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *Date `json:"deletedDate,omitempty"`
+ // HasExchangeLicense undocumented
+ HasExchangeLicense *bool `json:"hasExchangeLicense,omitempty"`
+ // HasOneDriveLicense undocumented
+ HasOneDriveLicense *bool `json:"hasOneDriveLicense,omitempty"`
+ // HasSharePointLicense undocumented
+ HasSharePointLicense *bool `json:"hasSharePointLicense,omitempty"`
+ // HasSkypeForBusinessLicense undocumented
+ HasSkypeForBusinessLicense *bool `json:"hasSkypeForBusinessLicense,omitempty"`
+ // HasYammerLicense undocumented
+ HasYammerLicense *bool `json:"hasYammerLicense,omitempty"`
+ // HasTeamsLicense undocumented
+ HasTeamsLicense *bool `json:"hasTeamsLicense,omitempty"`
+ // ExchangeLastActivityDate undocumented
+ ExchangeLastActivityDate *Date `json:"exchangeLastActivityDate,omitempty"`
+ // OneDriveLastActivityDate undocumented
+ OneDriveLastActivityDate *Date `json:"oneDriveLastActivityDate,omitempty"`
+ // SharePointLastActivityDate undocumented
+ SharePointLastActivityDate *Date `json:"sharePointLastActivityDate,omitempty"`
+ // SkypeForBusinessLastActivityDate undocumented
+ SkypeForBusinessLastActivityDate *Date `json:"skypeForBusinessLastActivityDate,omitempty"`
+ // YammerLastActivityDate undocumented
+ YammerLastActivityDate *Date `json:"yammerLastActivityDate,omitempty"`
+ // TeamsLastActivityDate undocumented
+ TeamsLastActivityDate *Date `json:"teamsLastActivityDate,omitempty"`
+ // ExchangeLicenseAssignDate undocumented
+ ExchangeLicenseAssignDate *Date `json:"exchangeLicenseAssignDate,omitempty"`
+ // OneDriveLicenseAssignDate undocumented
+ OneDriveLicenseAssignDate *Date `json:"oneDriveLicenseAssignDate,omitempty"`
+ // SharePointLicenseAssignDate undocumented
+ SharePointLicenseAssignDate *Date `json:"sharePointLicenseAssignDate,omitempty"`
+ // SkypeForBusinessLicenseAssignDate undocumented
+ SkypeForBusinessLicenseAssignDate *Date `json:"skypeForBusinessLicenseAssignDate,omitempty"`
+ // YammerLicenseAssignDate undocumented
+ YammerLicenseAssignDate *Date `json:"yammerLicenseAssignDate,omitempty"`
+ // TeamsLicenseAssignDate undocumented
+ TeamsLicenseAssignDate *Date `json:"teamsLicenseAssignDate,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+}
+
+// Office365GroupsActivityCounts undocumented
+type Office365GroupsActivityCounts struct {
+ // Entity is the base model of Office365GroupsActivityCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ExchangeEmailsReceived undocumented
+ ExchangeEmailsReceived *int `json:"exchangeEmailsReceived,omitempty"`
+ // YammerMessagesPosted undocumented
+ YammerMessagesPosted *int `json:"yammerMessagesPosted,omitempty"`
+ // YammerMessagesRead undocumented
+ YammerMessagesRead *int `json:"yammerMessagesRead,omitempty"`
+ // YammerMessagesLiked undocumented
+ YammerMessagesLiked *int `json:"yammerMessagesLiked,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// Office365GroupsActivityDetail undocumented
+type Office365GroupsActivityDetail struct {
+ // Entity is the base model of Office365GroupsActivityDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // GroupID undocumented
+ GroupID *string `json:"groupId,omitempty"`
+ // GroupDisplayName undocumented
+ GroupDisplayName *string `json:"groupDisplayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // OwnerPrincipalName undocumented
+ OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // GroupType undocumented
+ GroupType *string `json:"groupType,omitempty"`
+ // MemberCount undocumented
+ MemberCount *int `json:"memberCount,omitempty"`
+ // ExternalMemberCount undocumented
+ ExternalMemberCount *int `json:"externalMemberCount,omitempty"`
+ // ExchangeReceivedEmailCount undocumented
+ ExchangeReceivedEmailCount *int `json:"exchangeReceivedEmailCount,omitempty"`
+ // SharePointActiveFileCount undocumented
+ SharePointActiveFileCount *int `json:"sharePointActiveFileCount,omitempty"`
+ // YammerPostedMessageCount undocumented
+ YammerPostedMessageCount *int `json:"yammerPostedMessageCount,omitempty"`
+ // YammerReadMessageCount undocumented
+ YammerReadMessageCount *int `json:"yammerReadMessageCount,omitempty"`
+ // YammerLikedMessageCount undocumented
+ YammerLikedMessageCount *int `json:"yammerLikedMessageCount,omitempty"`
+ // ExchangeMailboxTotalItemCount undocumented
+ ExchangeMailboxTotalItemCount *int `json:"exchangeMailboxTotalItemCount,omitempty"`
+ // ExchangeMailboxStorageUsedInBytes undocumented
+ ExchangeMailboxStorageUsedInBytes *int `json:"exchangeMailboxStorageUsedInBytes,omitempty"`
+ // SharePointTotalFileCount undocumented
+ SharePointTotalFileCount *int `json:"sharePointTotalFileCount,omitempty"`
+ // SharePointSiteStorageUsedInBytes undocumented
+ SharePointSiteStorageUsedInBytes *int `json:"sharePointSiteStorageUsedInBytes,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// Office365GroupsActivityFileCounts undocumented
+type Office365GroupsActivityFileCounts struct {
+ // Entity is the base model of Office365GroupsActivityFileCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// Office365GroupsActivityGroupCounts undocumented
+type Office365GroupsActivityGroupCounts struct {
+ // Entity is the base model of Office365GroupsActivityGroupCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// Office365GroupsActivityStorage undocumented
+type Office365GroupsActivityStorage struct {
+ // Entity is the base model of Office365GroupsActivityStorage
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // MailboxStorageUsedInBytes undocumented
+ MailboxStorageUsedInBytes *int `json:"mailboxStorageUsedInBytes,omitempty"`
+ // SiteStorageUsedInBytes undocumented
+ SiteStorageUsedInBytes *int `json:"siteStorageUsedInBytes,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// Office365ServicesUserCounts undocumented
+type Office365ServicesUserCounts struct {
+ // Entity is the base model of Office365ServicesUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ExchangeActive undocumented
+ ExchangeActive *int `json:"exchangeActive,omitempty"`
+ // ExchangeInactive undocumented
+ ExchangeInactive *int `json:"exchangeInactive,omitempty"`
+ // OneDriveActive undocumented
+ OneDriveActive *int `json:"oneDriveActive,omitempty"`
+ // OneDriveInactive undocumented
+ OneDriveInactive *int `json:"oneDriveInactive,omitempty"`
+ // SharePointActive undocumented
+ SharePointActive *int `json:"sharePointActive,omitempty"`
+ // SharePointInactive undocumented
+ SharePointInactive *int `json:"sharePointInactive,omitempty"`
+ // SkypeForBusinessActive undocumented
+ SkypeForBusinessActive *int `json:"skypeForBusinessActive,omitempty"`
+ // SkypeForBusinessInactive undocumented
+ SkypeForBusinessInactive *int `json:"skypeForBusinessInactive,omitempty"`
+ // YammerActive undocumented
+ YammerActive *int `json:"yammerActive,omitempty"`
+ // YammerInactive undocumented
+ YammerInactive *int `json:"yammerInactive,omitempty"`
+ // TeamsActive undocumented
+ TeamsActive *int `json:"teamsActive,omitempty"`
+ // TeamsInactive undocumented
+ TeamsInactive *int `json:"teamsInactive,omitempty"`
+ // Office365Active undocumented
+ Office365Active *int `json:"office365Active,omitempty"`
+ // Office365Inactive undocumented
+ Office365Inactive *int `json:"office365Inactive,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOn.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOn.go
new file mode 100644
index 00000000..06971674
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOn.go
@@ -0,0 +1,115 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OnPremisesAgent undocumented
+type OnPremisesAgent struct {
+ // Entity is the base model of OnPremisesAgent
+ Entity
+ // MachineName undocumented
+ MachineName *string `json:"machineName,omitempty"`
+ // ExternalIP undocumented
+ ExternalIP *string `json:"externalIp,omitempty"`
+ // Status undocumented
+ Status *AgentStatus `json:"status,omitempty"`
+ // SupportedPublishingTypes undocumented
+ SupportedPublishingTypes []OnPremisesPublishingType `json:"supportedPublishingTypes,omitempty"`
+ // AgentGroups undocumented
+ AgentGroups []OnPremisesAgentGroup `json:"agentGroups,omitempty"`
+}
+
+// OnPremisesAgentGroup undocumented
+type OnPremisesAgentGroup struct {
+ // Entity is the base model of OnPremisesAgentGroup
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // PublishingType undocumented
+ PublishingType *OnPremisesPublishingType `json:"publishingType,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // Agents undocumented
+ Agents []OnPremisesAgent `json:"agents,omitempty"`
+ // PublishedResources undocumented
+ PublishedResources []PublishedResource `json:"publishedResources,omitempty"`
+}
+
+// OnPremisesConditionalAccessSettings Singleton entity which represents the Exchange OnPremises Conditional Access Settings for a tenant.
+type OnPremisesConditionalAccessSettings struct {
+ // Entity is the base model of OnPremisesConditionalAccessSettings
+ Entity
+ // Enabled Indicates if on premises conditional access is enabled for this organization
+ Enabled *bool `json:"enabled,omitempty"`
+ // IncludedGroups User groups that will be targeted by on premises conditional access. All users in these groups will be required to have mobile device managed and compliant for mail access.
+ IncludedGroups []UUID `json:"includedGroups,omitempty"`
+ // ExcludedGroups User groups that will be exempt by on premises conditional access. All users in these groups will be exempt from the conditional access policy.
+ ExcludedGroups []UUID `json:"excludedGroups,omitempty"`
+ // OverrideDefaultRule Override the default access rule when allowing a device to ensure access is granted.
+ OverrideDefaultRule *bool `json:"overrideDefaultRule,omitempty"`
+}
+
+// OnPremisesExtensionAttributes undocumented
+type OnPremisesExtensionAttributes struct {
+ // Object is the base model of OnPremisesExtensionAttributes
+ Object
+ // ExtensionAttribute1 undocumented
+ ExtensionAttribute1 *string `json:"extensionAttribute1,omitempty"`
+ // ExtensionAttribute2 undocumented
+ ExtensionAttribute2 *string `json:"extensionAttribute2,omitempty"`
+ // ExtensionAttribute3 undocumented
+ ExtensionAttribute3 *string `json:"extensionAttribute3,omitempty"`
+ // ExtensionAttribute4 undocumented
+ ExtensionAttribute4 *string `json:"extensionAttribute4,omitempty"`
+ // ExtensionAttribute5 undocumented
+ ExtensionAttribute5 *string `json:"extensionAttribute5,omitempty"`
+ // ExtensionAttribute6 undocumented
+ ExtensionAttribute6 *string `json:"extensionAttribute6,omitempty"`
+ // ExtensionAttribute7 undocumented
+ ExtensionAttribute7 *string `json:"extensionAttribute7,omitempty"`
+ // ExtensionAttribute8 undocumented
+ ExtensionAttribute8 *string `json:"extensionAttribute8,omitempty"`
+ // ExtensionAttribute9 undocumented
+ ExtensionAttribute9 *string `json:"extensionAttribute9,omitempty"`
+ // ExtensionAttribute10 undocumented
+ ExtensionAttribute10 *string `json:"extensionAttribute10,omitempty"`
+ // ExtensionAttribute11 undocumented
+ ExtensionAttribute11 *string `json:"extensionAttribute11,omitempty"`
+ // ExtensionAttribute12 undocumented
+ ExtensionAttribute12 *string `json:"extensionAttribute12,omitempty"`
+ // ExtensionAttribute13 undocumented
+ ExtensionAttribute13 *string `json:"extensionAttribute13,omitempty"`
+ // ExtensionAttribute14 undocumented
+ ExtensionAttribute14 *string `json:"extensionAttribute14,omitempty"`
+ // ExtensionAttribute15 undocumented
+ ExtensionAttribute15 *string `json:"extensionAttribute15,omitempty"`
+}
+
+// OnPremisesProvisioningError undocumented
+type OnPremisesProvisioningError struct {
+ // Object is the base model of OnPremisesProvisioningError
+ Object
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+ // Category undocumented
+ Category *string `json:"category,omitempty"`
+ // PropertyCausingError undocumented
+ PropertyCausingError *string `json:"propertyCausingError,omitempty"`
+ // OccurredDateTime undocumented
+ OccurredDateTime *time.Time `json:"occurredDateTime,omitempty"`
+}
+
+// OnPremisesPublishingProfile undocumented
+type OnPremisesPublishingProfile struct {
+ // Entity is the base model of OnPremisesPublishingProfile
+ Entity
+ // HybridAgentUpdaterConfiguration undocumented
+ HybridAgentUpdaterConfiguration *HybridAgentUpdaterConfiguration `json:"hybridAgentUpdaterConfiguration,omitempty"`
+ // Agents undocumented
+ Agents []OnPremisesAgent `json:"agents,omitempty"`
+ // AgentGroups undocumented
+ AgentGroups []OnPremisesAgentGroup `json:"agentGroups,omitempty"`
+ // PublishedResources undocumented
+ PublishedResources []PublishedResource `json:"publishedResources,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOne.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOne.go
new file mode 100644
index 00000000..e88e93b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOne.go
@@ -0,0 +1,95 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OneDriveActivityUserDetail undocumented
+type OneDriveActivityUserDetail struct {
+ // Entity is the base model of OneDriveActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *Date `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // ViewedOrEditedFileCount undocumented
+ ViewedOrEditedFileCount *int `json:"viewedOrEditedFileCount,omitempty"`
+ // SyncedFileCount undocumented
+ SyncedFileCount *int `json:"syncedFileCount,omitempty"`
+ // SharedInternallyFileCount undocumented
+ SharedInternallyFileCount *int `json:"sharedInternallyFileCount,omitempty"`
+ // SharedExternallyFileCount undocumented
+ SharedExternallyFileCount *int `json:"sharedExternallyFileCount,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// OneDriveUsageAccountCounts undocumented
+type OneDriveUsageAccountCounts struct {
+ // Entity is the base model of OneDriveUsageAccountCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// OneDriveUsageAccountDetail undocumented
+type OneDriveUsageAccountDetail struct {
+ // Entity is the base model of OneDriveUsageAccountDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // SiteURL undocumented
+ SiteURL *string `json:"siteUrl,omitempty"`
+ // OwnerDisplayName undocumented
+ OwnerDisplayName *string `json:"ownerDisplayName,omitempty"`
+ // OwnerPrincipalName undocumented
+ OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // FileCount undocumented
+ FileCount *int `json:"fileCount,omitempty"`
+ // ActiveFileCount undocumented
+ ActiveFileCount *int `json:"activeFileCount,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // StorageAllocatedInBytes undocumented
+ StorageAllocatedInBytes *int `json:"storageAllocatedInBytes,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// OneDriveUsageFileCounts undocumented
+type OneDriveUsageFileCounts struct {
+ // Entity is the base model of OneDriveUsageFileCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnenote.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnenote.go
new file mode 100644
index 00000000..72b03b4f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnenote.go
@@ -0,0 +1,165 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Onenote undocumented
+type Onenote struct {
+ // Entity is the base model of Onenote
+ Entity
+ // Notebooks undocumented
+ Notebooks []Notebook `json:"notebooks,omitempty"`
+ // Sections undocumented
+ Sections []OnenoteSection `json:"sections,omitempty"`
+ // SectionGroups undocumented
+ SectionGroups []SectionGroup `json:"sectionGroups,omitempty"`
+ // Pages undocumented
+ Pages []OnenotePage `json:"pages,omitempty"`
+ // Resources undocumented
+ Resources []OnenoteResource `json:"resources,omitempty"`
+ // Operations undocumented
+ Operations []OnenoteOperation `json:"operations,omitempty"`
+}
+
+// OnenoteEntityBaseModel undocumented
+type OnenoteEntityBaseModel struct {
+ // Entity is the base model of OnenoteEntityBaseModel
+ Entity
+ // Self undocumented
+ Self *string `json:"self,omitempty"`
+}
+
+// OnenoteEntityHierarchyModel undocumented
+type OnenoteEntityHierarchyModel struct {
+ // OnenoteEntitySchemaObjectModel is the base model of OnenoteEntityHierarchyModel
+ OnenoteEntitySchemaObjectModel
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// OnenoteEntitySchemaObjectModel undocumented
+type OnenoteEntitySchemaObjectModel struct {
+ // OnenoteEntityBaseModel is the base model of OnenoteEntitySchemaObjectModel
+ OnenoteEntityBaseModel
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+}
+
+// OnenoteOperation undocumented
+type OnenoteOperation struct {
+ // Operation is the base model of OnenoteOperation
+ Operation
+ // ResourceLocation undocumented
+ ResourceLocation *string `json:"resourceLocation,omitempty"`
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // Error undocumented
+ Error *OnenoteOperationError `json:"error,omitempty"`
+ // PercentComplete undocumented
+ PercentComplete *string `json:"percentComplete,omitempty"`
+}
+
+// OnenoteOperationError undocumented
+type OnenoteOperationError struct {
+ // Object is the base model of OnenoteOperationError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
+
+// OnenotePage undocumented
+type OnenotePage struct {
+ // OnenoteEntitySchemaObjectModel is the base model of OnenotePage
+ OnenoteEntitySchemaObjectModel
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // CreatedByAppID undocumented
+ CreatedByAppID *string `json:"createdByAppId,omitempty"`
+ // Links undocumented
+ Links *PageLinks `json:"links,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Level undocumented
+ Level *int `json:"level,omitempty"`
+ // Order undocumented
+ Order *int `json:"order,omitempty"`
+ // UserTags undocumented
+ UserTags []string `json:"userTags,omitempty"`
+ // ParentSection undocumented
+ ParentSection *OnenoteSection `json:"parentSection,omitempty"`
+ // ParentNotebook undocumented
+ ParentNotebook *Notebook `json:"parentNotebook,omitempty"`
+}
+
+// OnenotePagePreview undocumented
+type OnenotePagePreview struct {
+ // Object is the base model of OnenotePagePreview
+ Object
+ // PreviewText undocumented
+ PreviewText *string `json:"previewText,omitempty"`
+ // Links undocumented
+ Links *OnenotePagePreviewLinks `json:"links,omitempty"`
+}
+
+// OnenotePagePreviewLinks undocumented
+type OnenotePagePreviewLinks struct {
+ // Object is the base model of OnenotePagePreviewLinks
+ Object
+ // PreviewImageURL undocumented
+ PreviewImageURL *ExternalLink `json:"previewImageUrl,omitempty"`
+}
+
+// OnenotePatchContentCommand undocumented
+type OnenotePatchContentCommand struct {
+ // Object is the base model of OnenotePatchContentCommand
+ Object
+ // Action undocumented
+ Action *OnenotePatchActionType `json:"action,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // Position undocumented
+ Position *OnenotePatchInsertPosition `json:"position,omitempty"`
+}
+
+// OnenoteResource undocumented
+type OnenoteResource struct {
+ // OnenoteEntityBaseModel is the base model of OnenoteResource
+ OnenoteEntityBaseModel
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+}
+
+// OnenoteSection undocumented
+type OnenoteSection struct {
+ // OnenoteEntityHierarchyModel is the base model of OnenoteSection
+ OnenoteEntityHierarchyModel
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // Links undocumented
+ Links *SectionLinks `json:"links,omitempty"`
+ // PagesURL undocumented
+ PagesURL *string `json:"pagesUrl,omitempty"`
+ // ParentNotebook undocumented
+ ParentNotebook *Notebook `json:"parentNotebook,omitempty"`
+ // ParentSectionGroup undocumented
+ ParentSectionGroup *SectionGroup `json:"parentSectionGroup,omitempty"`
+ // Pages undocumented
+ Pages []OnenotePage `json:"pages,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnline.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnline.go
new file mode 100644
index 00000000..ce82ae84
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOnline.go
@@ -0,0 +1,61 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OnlineMeeting undocumented
+type OnlineMeeting struct {
+ // Entity is the base model of OnlineMeeting
+ Entity
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // CanceledDateTime undocumented
+ CanceledDateTime *time.Time `json:"canceledDateTime,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // EntryExitAnnouncement undocumented
+ EntryExitAnnouncement *bool `json:"entryExitAnnouncement,omitempty"`
+ // JoinURL undocumented
+ JoinURL *string `json:"joinUrl,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // IsCancelled undocumented
+ IsCancelled *bool `json:"isCancelled,omitempty"`
+ // Participants undocumented
+ Participants *MeetingParticipants `json:"participants,omitempty"`
+ // IsBroadcast undocumented
+ IsBroadcast *bool `json:"isBroadcast,omitempty"`
+ // AccessLevel undocumented
+ AccessLevel *AccessLevel `json:"accessLevel,omitempty"`
+ // Capabilities undocumented
+ Capabilities []MeetingCapabilities `json:"capabilities,omitempty"`
+ // AudioConferencing undocumented
+ AudioConferencing *AudioConferencing `json:"audioConferencing,omitempty"`
+ // ChatInfo undocumented
+ ChatInfo *ChatInfo `json:"chatInfo,omitempty"`
+ // VideoTeleconferenceID undocumented
+ VideoTeleconferenceID *string `json:"videoTeleconferenceId,omitempty"`
+}
+
+// OnlineMeetingInfo undocumented
+type OnlineMeetingInfo struct {
+ // Object is the base model of OnlineMeetingInfo
+ Object
+ // JoinURL undocumented
+ JoinURL *string `json:"joinUrl,omitempty"`
+ // ConferenceID undocumented
+ ConferenceID *string `json:"conferenceId,omitempty"`
+ // TollNumber undocumented
+ TollNumber *string `json:"tollNumber,omitempty"`
+ // TollFreeNumbers undocumented
+ TollFreeNumbers []string `json:"tollFreeNumbers,omitempty"`
+ // QuickDial undocumented
+ QuickDial *string `json:"quickDial,omitempty"`
+ // Phones undocumented
+ Phones []Phone `json:"phones,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpen.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpen.go
new file mode 100644
index 00000000..f82e2e36
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpen.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OpenShift undocumented
+type OpenShift struct {
+ // ChangeTrackedEntity is the base model of OpenShift
+ ChangeTrackedEntity
+ // SharedOpenShift undocumented
+ SharedOpenShift *OpenShiftItem `json:"sharedOpenShift,omitempty"`
+ // DraftOpenShift undocumented
+ DraftOpenShift *OpenShiftItem `json:"draftOpenShift,omitempty"`
+ // SchedulingGroupID undocumented
+ SchedulingGroupID *string `json:"schedulingGroupId,omitempty"`
+}
+
+// OpenShiftChangeRequestObject undocumented
+type OpenShiftChangeRequestObject struct {
+ // ScheduleChangeRequestObject is the base model of OpenShiftChangeRequestObject
+ ScheduleChangeRequestObject
+ // OpenShiftID undocumented
+ OpenShiftID *string `json:"openShiftId,omitempty"`
+}
+
+// OpenShiftItem undocumented
+type OpenShiftItem struct {
+ // ShiftItem is the base model of OpenShiftItem
+ ShiftItem
+ // OpenSlotCount undocumented
+ OpenSlotCount *int `json:"openSlotCount,omitempty"`
+}
+
+// OpenTypeExtension undocumented
+type OpenTypeExtension struct {
+ // Extension is the base model of OpenTypeExtension
+ Extension
+ // ExtensionName undocumented
+ ExtensionName *string `json:"extensionName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpening.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpening.go
new file mode 100644
index 00000000..e04a623c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOpening.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OpeningHoursSpecification undocumented
+type OpeningHoursSpecification struct {
+ // Object is the base model of OpeningHoursSpecification
+ Object
+ // DayOfWeek undocumented
+ DayOfWeek *string `json:"dayOfWeek,omitempty"`
+ // Opens undocumented
+ Opens *string `json:"opens,omitempty"`
+ // Closes undocumented
+ Closes *string `json:"closes,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperating.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperating.go
new file mode 100644
index 00000000..5d4a77eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperating.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OperatingSystemVersionRange undocumented
+type OperatingSystemVersionRange struct {
+ // Object is the base model of OperatingSystemVersionRange
+ Object
+ // Description The description of this range (e.g. Valid 1702 builds)
+ Description *string `json:"description,omitempty"`
+ // LowestVersion The lowest inclusive version that this range contains.
+ LowestVersion *string `json:"lowestVersion,omitempty"`
+ // HighestVersion The highest inclusive version that this range contains.
+ HighestVersion *string `json:"highestVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperation.go
new file mode 100644
index 00000000..59e60029
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOperation.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Operation undocumented
+type Operation struct {
+ // Entity is the base model of Operation
+ Entity
+ // Status undocumented
+ Status *OperationStatus `json:"status,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastActionDateTime undocumented
+ LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"`
+}
+
+// OperationError undocumented
+type OperationError struct {
+ // Object is the base model of OperationError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOptional.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOptional.go
new file mode 100644
index 00000000..aa3b8402
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOptional.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OptionalClaim undocumented
+type OptionalClaim struct {
+ // Object is the base model of OptionalClaim
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Source undocumented
+ Source *string `json:"source,omitempty"`
+ // Essential undocumented
+ Essential *bool `json:"essential,omitempty"`
+ // AdditionalProperties undocumented
+ AdditionalProperties []string `json:"additionalProperties,omitempty"`
+}
+
+// OptionalClaims undocumented
+type OptionalClaims struct {
+ // Object is the base model of OptionalClaims
+ Object
+ // IDToken undocumented
+ IDToken []OptionalClaim `json:"idToken,omitempty"`
+ // AccessToken undocumented
+ AccessToken []OptionalClaim `json:"accessToken,omitempty"`
+ // Saml2Token undocumented
+ Saml2Token []OptionalClaim `json:"saml2Token,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrg.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrg.go
new file mode 100644
index 00000000..4229b653
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrg.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OrgContact undocumented
+type OrgContact struct {
+ // DirectoryObject is the base model of OrgContact
+ DirectoryObject
+ // Addresses undocumented
+ Addresses []PhysicalOfficeAddress `json:"addresses,omitempty"`
+ // CompanyName undocumented
+ CompanyName *string `json:"companyName,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // Mail undocumented
+ Mail *string `json:"mail,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesProvisioningErrors undocumented
+ OnPremisesProvisioningErrors []OnPremisesProvisioningError `json:"onPremisesProvisioningErrors,omitempty"`
+ // Phones undocumented
+ Phones []Phone `json:"phones,omitempty"`
+ // ProxyAddresses undocumented
+ ProxyAddresses []string `json:"proxyAddresses,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // Manager undocumented
+ Manager *DirectoryObject `json:"manager,omitempty"`
+ // DirectReports undocumented
+ DirectReports []DirectoryObject `json:"directReports,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganization.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganization.go
new file mode 100644
index 00000000..56e66e04
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganization.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Organization The organization resource represents an instance of global settings and resources which operate and are provisioned at the tenant-level.
+type Organization struct {
+ // DirectoryObject is the base model of Organization
+ DirectoryObject
+ // AssignedPlans undocumented
+ AssignedPlans []AssignedPlan `json:"assignedPlans,omitempty"`
+ // BusinessPhones undocumented
+ BusinessPhones []string `json:"businessPhones,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // Country undocumented
+ Country *string `json:"country,omitempty"`
+ // CountryLetterCode undocumented
+ CountryLetterCode *string `json:"countryLetterCode,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsMultipleDataLocationsForServicesEnabled undocumented
+ IsMultipleDataLocationsForServicesEnabled *bool `json:"isMultipleDataLocationsForServicesEnabled,omitempty"`
+ // MarketingNotificationEmails undocumented
+ MarketingNotificationEmails []string `json:"marketingNotificationEmails,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+ // PreferredLanguage undocumented
+ PreferredLanguage *string `json:"preferredLanguage,omitempty"`
+ // PrivacyProfile undocumented
+ PrivacyProfile *PrivacyProfile `json:"privacyProfile,omitempty"`
+ // ProvisionedPlans undocumented
+ ProvisionedPlans []ProvisionedPlan `json:"provisionedPlans,omitempty"`
+ // SecurityComplianceNotificationMails undocumented
+ SecurityComplianceNotificationMails []string `json:"securityComplianceNotificationMails,omitempty"`
+ // SecurityComplianceNotificationPhones undocumented
+ SecurityComplianceNotificationPhones []string `json:"securityComplianceNotificationPhones,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Street undocumented
+ Street *string `json:"street,omitempty"`
+ // TechnicalNotificationMails undocumented
+ TechnicalNotificationMails []string `json:"technicalNotificationMails,omitempty"`
+ // VerifiedDomains undocumented
+ VerifiedDomains []VerifiedDomain `json:"verifiedDomains,omitempty"`
+ // MobileDeviceManagementAuthority Mobile device management authority.
+ MobileDeviceManagementAuthority *MDMAuthority `json:"mobileDeviceManagementAuthority,omitempty"`
+ // CertificateConnectorSetting Certificate connector setting.
+ CertificateConnectorSetting *CertificateConnectorSetting `json:"certificateConnectorSetting,omitempty"`
+ // Brandings undocumented
+ Brandings []OrganizationalBranding `json:"brandings,omitempty"`
+ // CertificateBasedAuthConfiguration undocumented
+ CertificateBasedAuthConfiguration []CertificateBasedAuthConfiguration `json:"certificateBasedAuthConfiguration,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizational.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizational.go
new file mode 100644
index 00000000..3e2465c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizational.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OrganizationalBranding undocumented
+type OrganizationalBranding struct {
+ // Entity is the base model of OrganizationalBranding
+ Entity
+ // BackgroundColor undocumented
+ BackgroundColor *string `json:"backgroundColor,omitempty"`
+ // BackgroundImage undocumented
+ BackgroundImage *Stream `json:"backgroundImage,omitempty"`
+ // BannerLogo undocumented
+ BannerLogo *Stream `json:"bannerLogo,omitempty"`
+ // Locale undocumented
+ Locale *string `json:"locale,omitempty"`
+ // SignInPageText undocumented
+ SignInPageText *string `json:"signInPageText,omitempty"`
+ // SquareLogo undocumented
+ SquareLogo *Stream `json:"squareLogo,omitempty"`
+ // UsernameHintText undocumented
+ UsernameHintText *string `json:"usernameHintText,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizer.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizer.go
new file mode 100644
index 00000000..5d375fc8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOrganizer.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OrganizerMeetingInfo undocumented
+type OrganizerMeetingInfo struct {
+ // MeetingInfo is the base model of OrganizerMeetingInfo
+ MeetingInfo
+ // Organizer undocumented
+ Organizer *IdentitySet `json:"organizer,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOs.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOs.go
new file mode 100644
index 00000000..ddf69c89
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOs.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OsVersionCount undocumented
+type OsVersionCount struct {
+ // Object is the base model of OsVersionCount
+ Object
+ // OsVersion OS version
+ OsVersion *string `json:"osVersion,omitempty"`
+ // DeviceCount Count of devices with malware for the OS version
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // LastUpdateDateTime The Timestamp of the last update for the device count in UTC
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOut.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOut.go
new file mode 100644
index 00000000..61d5785c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOut.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutOfBoxExperienceSettings undocumented
+type OutOfBoxExperienceSettings struct {
+ // Object is the base model of OutOfBoxExperienceSettings
+ Object
+ // HidePrivacySettings Show or hide privacy settings to user
+ HidePrivacySettings *bool `json:"hidePrivacySettings,omitempty"`
+ // HideEULA Show or hide EULA to user
+ HideEULA *bool `json:"hideEULA,omitempty"`
+ // UserType Type of user
+ UserType *WindowsUserType `json:"userType,omitempty"`
+ // DeviceUsageType AAD join authentication type
+ DeviceUsageType *WindowsDeviceUsageType `json:"deviceUsageType,omitempty"`
+ // SkipKeyboardSelectionPage If set, then skip the keyboard selection page if Language and Region are set
+ SkipKeyboardSelectionPage *bool `json:"skipKeyboardSelectionPage,omitempty"`
+ // HideEscapeLink If set to true, then the user can't start over with different account, on company sign-in
+ HideEscapeLink *bool `json:"hideEscapeLink,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutgoing.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutgoing.go
new file mode 100644
index 00000000..bda17fc7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutgoing.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// OutgoingCallOptions undocumented
+type OutgoingCallOptions struct {
+ // CallOptions is the base model of OutgoingCallOptions
+ CallOptions
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutlook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutlook.go
new file mode 100644
index 00000000..ae598476
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelOutlook.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// OutlookCategory undocumented
+type OutlookCategory struct {
+ // Entity is the base model of OutlookCategory
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Color undocumented
+ Color *CategoryColor `json:"color,omitempty"`
+}
+
+// OutlookGeoCoordinates undocumented
+type OutlookGeoCoordinates struct {
+ // Object is the base model of OutlookGeoCoordinates
+ Object
+ // Altitude undocumented
+ Altitude *float64 `json:"altitude,omitempty"`
+ // Latitude undocumented
+ Latitude *float64 `json:"latitude,omitempty"`
+ // Longitude undocumented
+ Longitude *float64 `json:"longitude,omitempty"`
+ // Accuracy undocumented
+ Accuracy *float64 `json:"accuracy,omitempty"`
+ // AltitudeAccuracy undocumented
+ AltitudeAccuracy *float64 `json:"altitudeAccuracy,omitempty"`
+}
+
+// OutlookItem undocumented
+type OutlookItem struct {
+ // Entity is the base model of OutlookItem
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+}
+
+// OutlookTask undocumented
+type OutlookTask struct {
+ // OutlookItem is the base model of OutlookTask
+ OutlookItem
+ // AssignedTo undocumented
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // CompletedDateTime undocumented
+ CompletedDateTime *DateTimeTimeZone `json:"completedDateTime,omitempty"`
+ // DueDateTime undocumented
+ DueDateTime *DateTimeTimeZone `json:"dueDateTime,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // IsReminderOn undocumented
+ IsReminderOn *bool `json:"isReminderOn,omitempty"`
+ // Owner undocumented
+ Owner *string `json:"owner,omitempty"`
+ // ParentFolderID undocumented
+ ParentFolderID *string `json:"parentFolderId,omitempty"`
+ // Recurrence undocumented
+ Recurrence *PatternedRecurrence `json:"recurrence,omitempty"`
+ // ReminderDateTime undocumented
+ ReminderDateTime *DateTimeTimeZone `json:"reminderDateTime,omitempty"`
+ // Sensitivity undocumented
+ Sensitivity *Sensitivity `json:"sensitivity,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *DateTimeTimeZone `json:"startDateTime,omitempty"`
+ // Status undocumented
+ Status *TaskStatus `json:"status,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Attachments undocumented
+ Attachments []Attachment `json:"attachments,omitempty"`
+}
+
+// OutlookTaskFolder undocumented
+type OutlookTaskFolder struct {
+ // Entity is the base model of OutlookTaskFolder
+ Entity
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // IsDefaultFolder undocumented
+ IsDefaultFolder *bool `json:"isDefaultFolder,omitempty"`
+ // ParentGroupKey undocumented
+ ParentGroupKey *UUID `json:"parentGroupKey,omitempty"`
+ // Tasks undocumented
+ Tasks []OutlookTask `json:"tasks,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+}
+
+// OutlookTaskGroup undocumented
+type OutlookTaskGroup struct {
+ // Entity is the base model of OutlookTaskGroup
+ Entity
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // IsDefaultGroup undocumented
+ IsDefaultGroup *bool `json:"isDefaultGroup,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // GroupKey undocumented
+ GroupKey *UUID `json:"groupKey,omitempty"`
+ // TaskFolders undocumented
+ TaskFolders []OutlookTaskFolder `json:"taskFolders,omitempty"`
+}
+
+// OutlookUser undocumented
+type OutlookUser struct {
+ // Entity is the base model of OutlookUser
+ Entity
+ // MasterCategories undocumented
+ MasterCategories []OutlookCategory `json:"masterCategories,omitempty"`
+ // TaskGroups undocumented
+ TaskGroups []OutlookTaskGroup `json:"taskGroups,omitempty"`
+ // TaskFolders undocumented
+ TaskFolders []OutlookTaskFolder `json:"taskFolders,omitempty"`
+ // Tasks undocumented
+ Tasks []OutlookTask `json:"tasks,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPackage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPackage.go
new file mode 100644
index 00000000..3b57e1c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPackage.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Package undocumented
+type Package struct {
+ // Object is the base model of Package
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPage.go
new file mode 100644
index 00000000..ad243183
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPage.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PageLinks undocumented
+type PageLinks struct {
+ // Object is the base model of PageLinks
+ Object
+ // OneNoteClientURL undocumented
+ OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"`
+ // OneNoteWebURL undocumented
+ OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelParental.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParental.go
new file mode 100644
index 00000000..8fc0e60b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParental.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ParentalControlSettings undocumented
+type ParentalControlSettings struct {
+ // Object is the base model of ParentalControlSettings
+ Object
+ // CountriesBlockedForMinors undocumented
+ CountriesBlockedForMinors []string `json:"countriesBlockedForMinors,omitempty"`
+ // LegalAgeGroupRule undocumented
+ LegalAgeGroupRule *string `json:"legalAgeGroupRule,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelParse.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParse.go
new file mode 100644
index 00000000..cad8b8b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParse.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ParseExpressionResponse undocumented
+type ParseExpressionResponse struct {
+ // Object is the base model of ParseExpressionResponse
+ Object
+ // Error undocumented
+ Error *PublicError `json:"error,omitempty"`
+ // EvaluationSucceeded undocumented
+ EvaluationSucceeded *bool `json:"evaluationSucceeded,omitempty"`
+ // EvaluationResult undocumented
+ EvaluationResult []string `json:"evaluationResult,omitempty"`
+ // ParsedExpression undocumented
+ ParsedExpression *AttributeMappingSource `json:"parsedExpression,omitempty"`
+ // ParsingSucceeded undocumented
+ ParsingSucceeded *bool `json:"parsingSucceeded,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelParticipant.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParticipant.go
new file mode 100644
index 00000000..16bc3594
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelParticipant.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Participant undocumented
+type Participant struct {
+ // Entity is the base model of Participant
+ Entity
+ // Info undocumented
+ Info *ParticipantInfo `json:"info,omitempty"`
+ // RecordingInfo undocumented
+ RecordingInfo *RecordingInfo `json:"recordingInfo,omitempty"`
+ // MediaStreams undocumented
+ MediaStreams []MediaStream `json:"mediaStreams,omitempty"`
+ // Metadata undocumented
+ Metadata *string `json:"metadata,omitempty"`
+ // IsMuted undocumented
+ IsMuted *bool `json:"isMuted,omitempty"`
+ // IsInLobby undocumented
+ IsInLobby *bool `json:"isInLobby,omitempty"`
+}
+
+// ParticipantInfo undocumented
+type ParticipantInfo struct {
+ // Object is the base model of ParticipantInfo
+ Object
+ // Identity undocumented
+ Identity *IdentitySet `json:"identity,omitempty"`
+ // EndpointType undocumented
+ EndpointType *EndpointType `json:"endpointType,omitempty"`
+ // Region undocumented
+ Region *string `json:"region,omitempty"`
+ // LanguageID undocumented
+ LanguageID *string `json:"languageId,omitempty"`
+ // CountryCode undocumented
+ CountryCode *string `json:"countryCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPassword.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPassword.go
new file mode 100644
index 00000000..62d286e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPassword.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PasswordCredential undocumented
+type PasswordCredential struct {
+ // Object is the base model of PasswordCredential
+ Object
+ // CustomKeyIdentifier undocumented
+ CustomKeyIdentifier *Binary `json:"customKeyIdentifier,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // KeyID undocumented
+ KeyID *UUID `json:"keyId,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // SecretText undocumented
+ SecretText *string `json:"secretText,omitempty"`
+ // Hint undocumented
+ Hint *string `json:"hint,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// PasswordProfile undocumented
+type PasswordProfile struct {
+ // Object is the base model of PasswordProfile
+ Object
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+ // ForceChangePasswordNextSignIn undocumented
+ ForceChangePasswordNextSignIn *bool `json:"forceChangePasswordNextSignIn,omitempty"`
+ // ForceChangePasswordNextSignInWithMFA undocumented
+ ForceChangePasswordNextSignInWithMFA *bool `json:"forceChangePasswordNextSignInWithMfa,omitempty"`
+}
+
+// PasswordSingleSignOnCredentialSet undocumented
+type PasswordSingleSignOnCredentialSet struct {
+ // Object is the base model of PasswordSingleSignOnCredentialSet
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Credentials undocumented
+ Credentials []Credential `json:"credentials,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPatterned.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPatterned.go
new file mode 100644
index 00000000..796403ed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPatterned.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PatternedRecurrence undocumented
+type PatternedRecurrence struct {
+ // Object is the base model of PatternedRecurrence
+ Object
+ // Pattern undocumented
+ Pattern *RecurrencePattern `json:"pattern,omitempty"`
+ // Range undocumented
+ Range *RecurrenceRange `json:"range,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayload.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayload.go
new file mode 100644
index 00000000..240db8ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayload.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PayloadRequestObject undocumented
+type PayloadRequestObject struct {
+ // Object is the base model of PayloadRequestObject
+ Object
+}
+
+// PayloadResponse undocumented
+type PayloadResponse struct {
+ // Entity is the base model of PayloadResponse
+ Entity
+}
+
+// PayloadTypes undocumented
+type PayloadTypes struct {
+ // Object is the base model of PayloadTypes
+ Object
+ // RawContent undocumented
+ RawContent *string `json:"rawContent,omitempty"`
+ // VisualContent undocumented
+ VisualContent *VisualProperties `json:"visualContent,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayment.go
new file mode 100644
index 00000000..fc736373
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPayment.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PaymentMethod undocumented
+type PaymentMethod struct {
+ // Entity is the base model of PaymentMethod
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// PaymentTerm undocumented
+type PaymentTerm struct {
+ // Entity is the base model of PaymentTerm
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // DueDateCalculation undocumented
+ DueDateCalculation *string `json:"dueDateCalculation,omitempty"`
+ // DiscountDateCalculation undocumented
+ DiscountDateCalculation *string `json:"discountDateCalculation,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // CalculateDiscountOnCreditMemos undocumented
+ CalculateDiscountOnCreditMemos *bool `json:"calculateDiscountOnCreditMemos,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPending.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPending.go
new file mode 100644
index 00000000..aadeb5b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPending.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PendingContentUpdate undocumented
+type PendingContentUpdate struct {
+ // Object is the base model of PendingContentUpdate
+ Object
+ // QueuedDateTime undocumented
+ QueuedDateTime *time.Time `json:"queuedDateTime,omitempty"`
+}
+
+// PendingOperations undocumented
+type PendingOperations struct {
+ // Object is the base model of PendingOperations
+ Object
+ // PendingContentUpdate undocumented
+ PendingContentUpdate *PendingContentUpdate `json:"pendingContentUpdate,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPermission.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPermission.go
new file mode 100644
index 00000000..1d0899af
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPermission.go
@@ -0,0 +1,53 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Permission undocumented
+type Permission struct {
+ // Entity is the base model of Permission
+ Entity
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // GrantedTo undocumented
+ GrantedTo *IdentitySet `json:"grantedTo,omitempty"`
+ // GrantedToIdentities undocumented
+ GrantedToIdentities []IdentitySet `json:"grantedToIdentities,omitempty"`
+ // HasPassword undocumented
+ HasPassword *bool `json:"hasPassword,omitempty"`
+ // InheritedFrom undocumented
+ InheritedFrom *ItemReference `json:"inheritedFrom,omitempty"`
+ // Invitation undocumented
+ Invitation *SharingInvitation `json:"invitation,omitempty"`
+ // Link undocumented
+ Link *SharingLink `json:"link,omitempty"`
+ // Roles undocumented
+ Roles []string `json:"roles,omitempty"`
+ // ShareID undocumented
+ ShareID *string `json:"shareId,omitempty"`
+}
+
+// PermissionScope undocumented
+type PermissionScope struct {
+ // Object is the base model of PermissionScope
+ Object
+ // AdminConsentDescription undocumented
+ AdminConsentDescription *string `json:"adminConsentDescription,omitempty"`
+ // AdminConsentDisplayName undocumented
+ AdminConsentDisplayName *string `json:"adminConsentDisplayName,omitempty"`
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // Origin undocumented
+ Origin *string `json:"origin,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // UserConsentDescription undocumented
+ UserConsentDescription *string `json:"userConsentDescription,omitempty"`
+ // UserConsentDisplayName undocumented
+ UserConsentDisplayName *string `json:"userConsentDisplayName,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPersistent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPersistent.go
new file mode 100644
index 00000000..47ad1b7c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPersistent.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PersistentBrowserSessionControl undocumented
+type PersistentBrowserSessionControl struct {
+ // ConditionalAccessSessionControl is the base model of PersistentBrowserSessionControl
+ ConditionalAccessSessionControl
+ // Mode undocumented
+ Mode *PersistentBrowserSessionMode `json:"mode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPerson.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPerson.go
new file mode 100644
index 00000000..293e65db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPerson.go
@@ -0,0 +1,135 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Person undocumented
+type Person struct {
+ // Entity is the base model of Person
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // Birthday undocumented
+ Birthday *string `json:"birthday,omitempty"`
+ // PersonNotes undocumented
+ PersonNotes *string `json:"personNotes,omitempty"`
+ // IsFavorite undocumented
+ IsFavorite *bool `json:"isFavorite,omitempty"`
+ // EmailAddresses undocumented
+ EmailAddresses []RankedEmailAddress `json:"emailAddresses,omitempty"`
+ // Phones undocumented
+ Phones []Phone `json:"phones,omitempty"`
+ // PostalAddresses undocumented
+ PostalAddresses []Location `json:"postalAddresses,omitempty"`
+ // Websites undocumented
+ Websites []Website `json:"websites,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // CompanyName undocumented
+ CompanyName *string `json:"companyName,omitempty"`
+ // YomiCompany undocumented
+ YomiCompany *string `json:"yomiCompany,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // Profession undocumented
+ Profession *string `json:"profession,omitempty"`
+ // Sources undocumented
+ Sources []PersonDataSource `json:"sources,omitempty"`
+ // MailboxType undocumented
+ MailboxType *string `json:"mailboxType,omitempty"`
+ // PersonType undocumented
+ PersonType *string `json:"personType,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// PersonAnniversary undocumented
+type PersonAnniversary struct {
+ // ItemFacet is the base model of PersonAnniversary
+ ItemFacet
+ // Type undocumented
+ Type *AnniversaryType `json:"type,omitempty"`
+ // Date undocumented
+ Date *Date `json:"date,omitempty"`
+}
+
+// PersonDataSource undocumented
+type PersonDataSource struct {
+ // Object is the base model of PersonDataSource
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
+
+// PersonInterest undocumented
+type PersonInterest struct {
+ // ItemFacet is the base model of PersonInterest
+ ItemFacet
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
+
+// PersonName undocumented
+type PersonName struct {
+ // ItemFacet is the base model of PersonName
+ ItemFacet
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // First undocumented
+ First *string `json:"first,omitempty"`
+ // Initials undocumented
+ Initials *string `json:"initials,omitempty"`
+ // Last undocumented
+ Last *string `json:"last,omitempty"`
+ // LanguageTag undocumented
+ LanguageTag *string `json:"languageTag,omitempty"`
+ // Maiden undocumented
+ Maiden *string `json:"maiden,omitempty"`
+ // Middle undocumented
+ Middle *string `json:"middle,omitempty"`
+ // Nickname undocumented
+ Nickname *string `json:"nickname,omitempty"`
+ // Suffix undocumented
+ Suffix *string `json:"suffix,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Pronunciation undocumented
+ Pronunciation *YomiPersonName `json:"pronunciation,omitempty"`
+}
+
+// PersonOrGroupColumn undocumented
+type PersonOrGroupColumn struct {
+ // Object is the base model of PersonOrGroupColumn
+ Object
+ // AllowMultipleSelection undocumented
+ AllowMultipleSelection *bool `json:"allowMultipleSelection,omitempty"`
+ // ChooseFromType undocumented
+ ChooseFromType *string `json:"chooseFromType,omitempty"`
+ // DisplayAs undocumented
+ DisplayAs *string `json:"displayAs,omitempty"`
+}
+
+// PersonWebsite undocumented
+type PersonWebsite struct {
+ // ItemFacet is the base model of PersonWebsite
+ ItemFacet
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhone.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhone.go
new file mode 100644
index 00000000..eee02a65
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhone.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Phone undocumented
+type Phone struct {
+ // Object is the base model of Phone
+ Object
+ // Type undocumented
+ Type *PhoneType `json:"type,omitempty"`
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhoto.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhoto.go
new file mode 100644
index 00000000..3c9c6efe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhoto.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Photo undocumented
+type Photo struct {
+ // Object is the base model of Photo
+ Object
+ // CameraMake undocumented
+ CameraMake *string `json:"cameraMake,omitempty"`
+ // CameraModel undocumented
+ CameraModel *string `json:"cameraModel,omitempty"`
+ // ExposureDenominator undocumented
+ ExposureDenominator *float64 `json:"exposureDenominator,omitempty"`
+ // ExposureNumerator undocumented
+ ExposureNumerator *float64 `json:"exposureNumerator,omitempty"`
+ // FNumber undocumented
+ FNumber *float64 `json:"fNumber,omitempty"`
+ // FocalLength undocumented
+ FocalLength *float64 `json:"focalLength,omitempty"`
+ // Iso undocumented
+ Iso *int `json:"iso,omitempty"`
+ // Orientation undocumented
+ Orientation *int `json:"orientation,omitempty"`
+ // TakenDateTime undocumented
+ TakenDateTime *time.Time `json:"takenDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhysical.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhysical.go
new file mode 100644
index 00000000..c16a2fbd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPhysical.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PhysicalAddress undocumented
+type PhysicalAddress struct {
+ // Object is the base model of PhysicalAddress
+ Object
+ // Type undocumented
+ Type *PhysicalAddressType `json:"type,omitempty"`
+ // PostOfficeBox undocumented
+ PostOfficeBox *string `json:"postOfficeBox,omitempty"`
+ // Street undocumented
+ Street *string `json:"street,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // CountryOrRegion undocumented
+ CountryOrRegion *string `json:"countryOrRegion,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+}
+
+// PhysicalOfficeAddress undocumented
+type PhysicalOfficeAddress struct {
+ // Object is the base model of PhysicalOfficeAddress
+ Object
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // CountryOrRegion undocumented
+ CountryOrRegion *string `json:"countryOrRegion,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Street undocumented
+ Street *string `json:"street,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPicture.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPicture.go
new file mode 100644
index 00000000..b8a534b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPicture.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Picture undocumented
+type Picture struct {
+ // Entity is the base model of Picture
+ Entity
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlace.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlace.go
new file mode 100644
index 00000000..7bc69643
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlace.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Place undocumented
+type Place struct {
+ // Entity is the base model of Place
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // GeoCoordinates undocumented
+ GeoCoordinates *OutlookGeoCoordinates `json:"geoCoordinates,omitempty"`
+ // Phone undocumented
+ Phone *string `json:"phone,omitempty"`
+ // Address undocumented
+ Address *PhysicalAddress `json:"address,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlanner.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlanner.go
new file mode 100644
index 00000000..b7734555
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlanner.go
@@ -0,0 +1,359 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Planner undocumented
+type Planner struct {
+ // Entity is the base model of Planner
+ Entity
+ // Tasks undocumented
+ Tasks []PlannerTask `json:"tasks,omitempty"`
+ // Plans undocumented
+ Plans []PlannerPlan `json:"plans,omitempty"`
+ // Buckets undocumented
+ Buckets []PlannerBucket `json:"buckets,omitempty"`
+}
+
+// PlannerAppliedCategories undocumented
+type PlannerAppliedCategories struct {
+ // Object is the base model of PlannerAppliedCategories
+ Object
+}
+
+// PlannerAssignedToTaskBoardTaskFormat undocumented
+type PlannerAssignedToTaskBoardTaskFormat struct {
+ // PlannerDelta is the base model of PlannerAssignedToTaskBoardTaskFormat
+ PlannerDelta
+ // UnassignedOrderHint undocumented
+ UnassignedOrderHint *string `json:"unassignedOrderHint,omitempty"`
+ // OrderHintsByAssignee undocumented
+ OrderHintsByAssignee *PlannerOrderHintsByAssignee `json:"orderHintsByAssignee,omitempty"`
+}
+
+// PlannerAssignment undocumented
+type PlannerAssignment struct {
+ // Object is the base model of PlannerAssignment
+ Object
+ // AssignedBy undocumented
+ AssignedBy *IdentitySet `json:"assignedBy,omitempty"`
+ // AssignedDateTime undocumented
+ AssignedDateTime *time.Time `json:"assignedDateTime,omitempty"`
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+}
+
+// PlannerAssignments undocumented
+type PlannerAssignments struct {
+ // Object is the base model of PlannerAssignments
+ Object
+}
+
+// PlannerBucket undocumented
+type PlannerBucket struct {
+ // PlannerDelta is the base model of PlannerBucket
+ PlannerDelta
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // PlanID undocumented
+ PlanID *string `json:"planId,omitempty"`
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+ // Tasks undocumented
+ Tasks []PlannerTask `json:"tasks,omitempty"`
+}
+
+// PlannerBucketTaskBoardTaskFormat undocumented
+type PlannerBucketTaskBoardTaskFormat struct {
+ // PlannerDelta is the base model of PlannerBucketTaskBoardTaskFormat
+ PlannerDelta
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+}
+
+// PlannerCategoryDescriptions undocumented
+type PlannerCategoryDescriptions struct {
+ // Object is the base model of PlannerCategoryDescriptions
+ Object
+ // Category1 undocumented
+ Category1 *string `json:"category1,omitempty"`
+ // Category2 undocumented
+ Category2 *string `json:"category2,omitempty"`
+ // Category3 undocumented
+ Category3 *string `json:"category3,omitempty"`
+ // Category4 undocumented
+ Category4 *string `json:"category4,omitempty"`
+ // Category5 undocumented
+ Category5 *string `json:"category5,omitempty"`
+ // Category6 undocumented
+ Category6 *string `json:"category6,omitempty"`
+}
+
+// PlannerChecklistItem undocumented
+type PlannerChecklistItem struct {
+ // Object is the base model of PlannerChecklistItem
+ Object
+ // IsChecked undocumented
+ IsChecked *bool `json:"isChecked,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// PlannerChecklistItems undocumented
+type PlannerChecklistItems struct {
+ // Object is the base model of PlannerChecklistItems
+ Object
+}
+
+// PlannerDelta undocumented
+type PlannerDelta struct {
+ // Entity is the base model of PlannerDelta
+ Entity
+}
+
+// PlannerExternalReference undocumented
+type PlannerExternalReference struct {
+ // Object is the base model of PlannerExternalReference
+ Object
+ // Alias undocumented
+ Alias *string `json:"alias,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // PreviewPriority undocumented
+ PreviewPriority *string `json:"previewPriority,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// PlannerExternalReferences undocumented
+type PlannerExternalReferences struct {
+ // Object is the base model of PlannerExternalReferences
+ Object
+}
+
+// PlannerFavoritePlanReference undocumented
+type PlannerFavoritePlanReference struct {
+ // Object is the base model of PlannerFavoritePlanReference
+ Object
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+ // PlanTitle undocumented
+ PlanTitle *string `json:"planTitle,omitempty"`
+}
+
+// PlannerFavoritePlanReferenceCollection undocumented
+type PlannerFavoritePlanReferenceCollection struct {
+ // Object is the base model of PlannerFavoritePlanReferenceCollection
+ Object
+}
+
+// PlannerGroup undocumented
+type PlannerGroup struct {
+ // Entity is the base model of PlannerGroup
+ Entity
+ // Plans undocumented
+ Plans []PlannerPlan `json:"plans,omitempty"`
+}
+
+// PlannerOrderHintsByAssignee undocumented
+type PlannerOrderHintsByAssignee struct {
+ // Object is the base model of PlannerOrderHintsByAssignee
+ Object
+}
+
+// PlannerPlan undocumented
+type PlannerPlan struct {
+ // PlannerDelta is the base model of PlannerPlan
+ PlannerDelta
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Owner undocumented
+ Owner *string `json:"owner,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Contexts undocumented
+ Contexts *PlannerPlanContextCollection `json:"contexts,omitempty"`
+ // Tasks undocumented
+ Tasks []PlannerTask `json:"tasks,omitempty"`
+ // Buckets undocumented
+ Buckets []PlannerBucket `json:"buckets,omitempty"`
+ // Details undocumented
+ Details *PlannerPlanDetails `json:"details,omitempty"`
+}
+
+// PlannerPlanContext undocumented
+type PlannerPlanContext struct {
+ // Object is the base model of PlannerPlanContext
+ Object
+ // AssociationType undocumented
+ AssociationType *string `json:"associationType,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DisplayNameSegments undocumented
+ DisplayNameSegments []string `json:"displayNameSegments,omitempty"`
+ // OwnerAppID undocumented
+ OwnerAppID *string `json:"ownerAppId,omitempty"`
+}
+
+// PlannerPlanContextCollection undocumented
+type PlannerPlanContextCollection struct {
+ // Object is the base model of PlannerPlanContextCollection
+ Object
+}
+
+// PlannerPlanContextDetails undocumented
+type PlannerPlanContextDetails struct {
+ // Object is the base model of PlannerPlanContextDetails
+ Object
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+}
+
+// PlannerPlanContextDetailsCollection undocumented
+type PlannerPlanContextDetailsCollection struct {
+ // Object is the base model of PlannerPlanContextDetailsCollection
+ Object
+}
+
+// PlannerPlanDetails undocumented
+type PlannerPlanDetails struct {
+ // PlannerDelta is the base model of PlannerPlanDetails
+ PlannerDelta
+ // SharedWith undocumented
+ SharedWith *PlannerUserIDs `json:"sharedWith,omitempty"`
+ // CategoryDescriptions undocumented
+ CategoryDescriptions *PlannerCategoryDescriptions `json:"categoryDescriptions,omitempty"`
+ // ContextDetails undocumented
+ ContextDetails *PlannerPlanContextDetailsCollection `json:"contextDetails,omitempty"`
+}
+
+// PlannerProgressTaskBoardTaskFormat undocumented
+type PlannerProgressTaskBoardTaskFormat struct {
+ // PlannerDelta is the base model of PlannerProgressTaskBoardTaskFormat
+ PlannerDelta
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+}
+
+// PlannerRecentPlanReference undocumented
+type PlannerRecentPlanReference struct {
+ // Object is the base model of PlannerRecentPlanReference
+ Object
+ // LastAccessedDateTime undocumented
+ LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"`
+ // PlanTitle undocumented
+ PlanTitle *string `json:"planTitle,omitempty"`
+}
+
+// PlannerRecentPlanReferenceCollection undocumented
+type PlannerRecentPlanReferenceCollection struct {
+ // Object is the base model of PlannerRecentPlanReferenceCollection
+ Object
+}
+
+// PlannerTask undocumented
+type PlannerTask struct {
+ // PlannerDelta is the base model of PlannerTask
+ PlannerDelta
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // PlanID undocumented
+ PlanID *string `json:"planId,omitempty"`
+ // BucketID undocumented
+ BucketID *string `json:"bucketId,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // OrderHint undocumented
+ OrderHint *string `json:"orderHint,omitempty"`
+ // AssigneePriority undocumented
+ AssigneePriority *string `json:"assigneePriority,omitempty"`
+ // PercentComplete undocumented
+ PercentComplete *int `json:"percentComplete,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DueDateTime undocumented
+ DueDateTime *time.Time `json:"dueDateTime,omitempty"`
+ // HasDescription undocumented
+ HasDescription *bool `json:"hasDescription,omitempty"`
+ // PreviewType undocumented
+ PreviewType *PlannerPreviewType `json:"previewType,omitempty"`
+ // CompletedDateTime undocumented
+ CompletedDateTime *time.Time `json:"completedDateTime,omitempty"`
+ // CompletedBy undocumented
+ CompletedBy *IdentitySet `json:"completedBy,omitempty"`
+ // ReferenceCount undocumented
+ ReferenceCount *int `json:"referenceCount,omitempty"`
+ // ChecklistItemCount undocumented
+ ChecklistItemCount *int `json:"checklistItemCount,omitempty"`
+ // ActiveChecklistItemCount undocumented
+ ActiveChecklistItemCount *int `json:"activeChecklistItemCount,omitempty"`
+ // AppliedCategories undocumented
+ AppliedCategories *PlannerAppliedCategories `json:"appliedCategories,omitempty"`
+ // Assignments undocumented
+ Assignments *PlannerAssignments `json:"assignments,omitempty"`
+ // ConversationThreadID undocumented
+ ConversationThreadID *string `json:"conversationThreadId,omitempty"`
+ // Details undocumented
+ Details *PlannerTaskDetails `json:"details,omitempty"`
+ // AssignedToTaskBoardFormat undocumented
+ AssignedToTaskBoardFormat *PlannerAssignedToTaskBoardTaskFormat `json:"assignedToTaskBoardFormat,omitempty"`
+ // ProgressTaskBoardFormat undocumented
+ ProgressTaskBoardFormat *PlannerProgressTaskBoardTaskFormat `json:"progressTaskBoardFormat,omitempty"`
+ // BucketTaskBoardFormat undocumented
+ BucketTaskBoardFormat *PlannerBucketTaskBoardTaskFormat `json:"bucketTaskBoardFormat,omitempty"`
+}
+
+// PlannerTaskDetails undocumented
+type PlannerTaskDetails struct {
+ // PlannerDelta is the base model of PlannerTaskDetails
+ PlannerDelta
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // PreviewType undocumented
+ PreviewType *PlannerPreviewType `json:"previewType,omitempty"`
+ // References undocumented
+ References *PlannerExternalReferences `json:"references,omitempty"`
+ // Checklist undocumented
+ Checklist *PlannerChecklistItems `json:"checklist,omitempty"`
+}
+
+// PlannerUser undocumented
+type PlannerUser struct {
+ // PlannerDelta is the base model of PlannerUser
+ PlannerDelta
+ // FavoritePlanReferences undocumented
+ FavoritePlanReferences *PlannerFavoritePlanReferenceCollection `json:"favoritePlanReferences,omitempty"`
+ // RecentPlanReferences undocumented
+ RecentPlanReferences *PlannerRecentPlanReferenceCollection `json:"recentPlanReferences,omitempty"`
+ // Tasks undocumented
+ Tasks []PlannerTask `json:"tasks,omitempty"`
+ // Plans undocumented
+ Plans []PlannerPlan `json:"plans,omitempty"`
+ // FavoritePlans undocumented
+ FavoritePlans []PlannerPlan `json:"favoritePlans,omitempty"`
+ // RecentPlans undocumented
+ RecentPlans []PlannerPlan `json:"recentPlans,omitempty"`
+ // All undocumented
+ All []PlannerDelta `json:"all,omitempty"`
+}
+
+// PlannerUserIDs undocumented
+type PlannerUserIDs struct {
+ // Object is the base model of PlannerUserIDs
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlay.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlay.go
new file mode 100644
index 00000000..146be3eb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPlay.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PlayPromptOperation undocumented
+type PlayPromptOperation struct {
+ // CommsOperation is the base model of PlayPromptOperation
+ CommsOperation
+ // CompletionReason undocumented
+ CompletionReason *PlayPromptCompletionReason `json:"completionReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPolicy.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPolicy.go
new file mode 100644
index 00000000..3461275d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPolicy.go
@@ -0,0 +1,83 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Policy undocumented
+type Policy struct {
+ // DirectoryObject is the base model of Policy
+ DirectoryObject
+ // AlternativeIdentifier undocumented
+ AlternativeIdentifier *string `json:"alternativeIdentifier,omitempty"`
+ // Definition undocumented
+ Definition []string `json:"definition,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsOrganizationDefault undocumented
+ IsOrganizationDefault *bool `json:"isOrganizationDefault,omitempty"`
+ // KeyCredentials undocumented
+ KeyCredentials []KeyCredential `json:"keyCredentials,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // AppliesTo undocumented
+ AppliesTo []DirectoryObject `json:"appliesTo,omitempty"`
+}
+
+// PolicySet A class containing the properties used for PolicySet.
+type PolicySet struct {
+ // Entity is the base model of PolicySet
+ Entity
+ // CreatedDateTime Creation time of the PolicySet.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Last modified time of the PolicySet.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName DisplayName of the PolicySet.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the PolicySet.
+ Description *string `json:"description,omitempty"`
+ // Status Validation/assignment status of the PolicySet.
+ Status *PolicySetStatus `json:"status,omitempty"`
+ // ErrorCode Error code if any occured.
+ ErrorCode *ErrorCode `json:"errorCode,omitempty"`
+ // GuidedDeploymentTags Tags of the guided deployment
+ GuidedDeploymentTags []string `json:"guidedDeploymentTags,omitempty"`
+ // RoleScopeTags RoleScopeTags of the PolicySet
+ RoleScopeTags []string `json:"roleScopeTags,omitempty"`
+ // Assignments undocumented
+ Assignments []PolicySetAssignment `json:"assignments,omitempty"`
+ // Items undocumented
+ Items []PolicySetItem `json:"items,omitempty"`
+}
+
+// PolicySetAssignment A class containing the properties used for PolicySet Assignment.
+type PolicySetAssignment struct {
+ // Entity is the base model of PolicySetAssignment
+ Entity
+ // LastModifiedDateTime Last modified time of the PolicySetAssignment.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Target The target group of PolicySetAssignment
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// PolicySetItem A class containing the properties used for PolicySet Item.
+type PolicySetItem struct {
+ // Entity is the base model of PolicySetItem
+ Entity
+ // CreatedDateTime Creation time of the PolicySetItem.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Last modified time of the PolicySetItem.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PayloadID PayloadId of the PolicySetItem.
+ PayloadID *string `json:"payloadId,omitempty"`
+ // ItemType policySetType of the PolicySetItem.
+ ItemType *string `json:"itemType,omitempty"`
+ // DisplayName DisplayName of the PolicySetItem.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Status Status of the PolicySetItem.
+ Status *PolicySetStatus `json:"status,omitempty"`
+ // ErrorCode Error code if any occured.
+ ErrorCode *ErrorCode `json:"errorCode,omitempty"`
+ // GuidedDeploymentTags Tags of the guided deployment
+ GuidedDeploymentTags []string `json:"guidedDeploymentTags,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPosition.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPosition.go
new file mode 100644
index 00000000..e9b8f675
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPosition.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PositionDetail undocumented
+type PositionDetail struct {
+ // Object is the base model of PositionDetail
+ Object
+ // Company undocumented
+ Company *CompanyDetail `json:"company,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // EndMonthYear undocumented
+ EndMonthYear *Date `json:"endMonthYear,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // Role undocumented
+ Role *string `json:"role,omitempty"`
+ // StartMonthYear undocumented
+ StartMonthYear *Date `json:"startMonthYear,omitempty"`
+ // Summary undocumented
+ Summary *string `json:"summary,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPost.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPost.go
new file mode 100644
index 00000000..b8910473
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPost.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Post undocumented
+type Post struct {
+ // OutlookItem is the base model of Post
+ OutlookItem
+ // Body undocumented
+ Body *ItemBody `json:"body,omitempty"`
+ // ReceivedDateTime undocumented
+ ReceivedDateTime *time.Time `json:"receivedDateTime,omitempty"`
+ // HasAttachments undocumented
+ HasAttachments *bool `json:"hasAttachments,omitempty"`
+ // From undocumented
+ From *Recipient `json:"from,omitempty"`
+ // Sender undocumented
+ Sender *Recipient `json:"sender,omitempty"`
+ // ConversationThreadID undocumented
+ ConversationThreadID *string `json:"conversationThreadId,omitempty"`
+ // NewParticipants undocumented
+ NewParticipants []Recipient `json:"newParticipants,omitempty"`
+ // ConversationID undocumented
+ ConversationID *string `json:"conversationId,omitempty"`
+ // Importance undocumented
+ Importance *Importance `json:"importance,omitempty"`
+ // InReplyTo undocumented
+ InReplyTo *Post `json:"inReplyTo,omitempty"`
+ // SingleValueExtendedProperties undocumented
+ SingleValueExtendedProperties []SingleValueLegacyExtendedProperty `json:"singleValueExtendedProperties,omitempty"`
+ // MultiValueExtendedProperties undocumented
+ MultiValueExtendedProperties []MultiValueLegacyExtendedProperty `json:"multiValueExtendedProperties,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // Attachments undocumented
+ Attachments []Attachment `json:"attachments,omitempty"`
+ // Mentions undocumented
+ Mentions []Mention `json:"mentions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPostal.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPostal.go
new file mode 100644
index 00000000..984c6aec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPostal.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PostalAddressType undocumented
+type PostalAddressType struct {
+ // Object is the base model of PostalAddressType
+ Object
+ // Street undocumented
+ Street *string `json:"street,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // CountryLetterCode undocumented
+ CountryLetterCode *string `json:"countryLetterCode,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPre.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPre.go
new file mode 100644
index 00000000..57bfb8e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPre.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PreAuthorizedApplication undocumented
+type PreAuthorizedApplication struct {
+ // Object is the base model of PreAuthorizedApplication
+ Object
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // PermissionIDs undocumented
+ PermissionIDs []string `json:"permissionIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPresence.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPresence.go
new file mode 100644
index 00000000..1d39d651
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPresence.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Presence undocumented
+type Presence struct {
+ // Entity is the base model of Presence
+ Entity
+ // Availability undocumented
+ Availability *string `json:"availability,omitempty"`
+ // Activity undocumented
+ Activity *string `json:"activity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivacy.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivacy.go
new file mode 100644
index 00000000..8450ffbd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivacy.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PrivacyProfile undocumented
+type PrivacyProfile struct {
+ // Object is the base model of PrivacyProfile
+ Object
+ // ContactEmail undocumented
+ ContactEmail *string `json:"contactEmail,omitempty"`
+ // StatementURL undocumented
+ StatementURL *string `json:"statementUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivileged.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivileged.go
new file mode 100644
index 00000000..5b2e08c1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrivileged.go
@@ -0,0 +1,199 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PrivilegedAccess undocumented
+type PrivilegedAccess struct {
+ // Entity is the base model of PrivilegedAccess
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Resources undocumented
+ Resources []GovernanceResource `json:"resources,omitempty"`
+ // RoleDefinitions undocumented
+ RoleDefinitions []GovernanceRoleDefinition `json:"roleDefinitions,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []GovernanceRoleAssignment `json:"roleAssignments,omitempty"`
+ // RoleAssignmentRequests undocumented
+ RoleAssignmentRequests []GovernanceRoleAssignmentRequestObject `json:"roleAssignmentRequests,omitempty"`
+ // RoleSettings undocumented
+ RoleSettings []GovernanceRoleSetting `json:"roleSettings,omitempty"`
+}
+
+// PrivilegedApproval undocumented
+type PrivilegedApproval struct {
+ // Entity is the base model of PrivilegedApproval
+ Entity
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // ApprovalType undocumented
+ ApprovalType *string `json:"approvalType,omitempty"`
+ // ApprovalState undocumented
+ ApprovalState *ApprovalState `json:"approvalState,omitempty"`
+ // ApprovalDuration undocumented
+ ApprovalDuration *Duration `json:"approvalDuration,omitempty"`
+ // RequestorReason undocumented
+ RequestorReason *string `json:"requestorReason,omitempty"`
+ // ApproverReason undocumented
+ ApproverReason *string `json:"approverReason,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // RequestNavigation undocumented
+ RequestNavigation *PrivilegedRoleAssignmentRequestObject `json:"request,omitempty"`
+ // RoleInfo undocumented
+ RoleInfo *PrivilegedRole `json:"roleInfo,omitempty"`
+}
+
+// PrivilegedOperationEvent undocumented
+type PrivilegedOperationEvent struct {
+ // Entity is the base model of PrivilegedOperationEvent
+ Entity
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // UserName undocumented
+ UserName *string `json:"userName,omitempty"`
+ // UserMail undocumented
+ UserMail *string `json:"userMail,omitempty"`
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // RoleName undocumented
+ RoleName *string `json:"roleName,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // CreationDateTime undocumented
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // RequestorID undocumented
+ RequestorID *string `json:"requestorId,omitempty"`
+ // RequestorName undocumented
+ RequestorName *string `json:"requestorName,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // RequestType undocumented
+ RequestType *string `json:"requestType,omitempty"`
+ // AdditionalInformation undocumented
+ AdditionalInformation *string `json:"additionalInformation,omitempty"`
+ // ReferenceKey undocumented
+ ReferenceKey *string `json:"referenceKey,omitempty"`
+ // ReferenceSystem undocumented
+ ReferenceSystem *string `json:"referenceSystem,omitempty"`
+}
+
+// PrivilegedRole undocumented
+type PrivilegedRole struct {
+ // Entity is the base model of PrivilegedRole
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Settings undocumented
+ Settings *PrivilegedRoleSettings `json:"settings,omitempty"`
+ // Assignments undocumented
+ Assignments []PrivilegedRoleAssignment `json:"assignments,omitempty"`
+ // Summary undocumented
+ Summary *PrivilegedRoleSummary `json:"summary,omitempty"`
+}
+
+// PrivilegedRoleAssignment undocumented
+type PrivilegedRoleAssignment struct {
+ // Entity is the base model of PrivilegedRoleAssignment
+ Entity
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // IsElevated undocumented
+ IsElevated *bool `json:"isElevated,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // ResultMessage undocumented
+ ResultMessage *string `json:"resultMessage,omitempty"`
+ // RoleInfo undocumented
+ RoleInfo *PrivilegedRole `json:"roleInfo,omitempty"`
+}
+
+// PrivilegedRoleAssignmentRequestObject undocumented
+type PrivilegedRoleAssignmentRequestObject struct {
+ // Entity is the base model of PrivilegedRoleAssignmentRequestObject
+ Entity
+ // Schedule undocumented
+ Schedule *GovernanceSchedule `json:"schedule,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // AssignmentState undocumented
+ AssignmentState *string `json:"assignmentState,omitempty"`
+ // RequestedDateTime undocumented
+ RequestedDateTime *time.Time `json:"requestedDateTime,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Duration undocumented
+ Duration *string `json:"duration,omitempty"`
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // TicketNumber undocumented
+ TicketNumber *string `json:"ticketNumber,omitempty"`
+ // TicketSystem undocumented
+ TicketSystem *string `json:"ticketSystem,omitempty"`
+ // RoleInfo undocumented
+ RoleInfo *PrivilegedRole `json:"roleInfo,omitempty"`
+}
+
+// PrivilegedRoleSettings undocumented
+type PrivilegedRoleSettings struct {
+ // Entity is the base model of PrivilegedRoleSettings
+ Entity
+ // ApproverIDs undocumented
+ ApproverIDs []string `json:"approverIds,omitempty"`
+ // MinElevationDuration undocumented
+ MinElevationDuration *Duration `json:"minElevationDuration,omitempty"`
+ // MaxElavationDuration undocumented
+ MaxElavationDuration *Duration `json:"maxElavationDuration,omitempty"`
+ // ElevationDuration undocumented
+ ElevationDuration *Duration `json:"elevationDuration,omitempty"`
+ // NotificationToUserOnElevation undocumented
+ NotificationToUserOnElevation *bool `json:"notificationToUserOnElevation,omitempty"`
+ // TicketingInfoOnElevation undocumented
+ TicketingInfoOnElevation *bool `json:"ticketingInfoOnElevation,omitempty"`
+ // MFAOnElevation undocumented
+ MFAOnElevation *bool `json:"mfaOnElevation,omitempty"`
+ // LastGlobalAdmin undocumented
+ LastGlobalAdmin *bool `json:"lastGlobalAdmin,omitempty"`
+ // IsMFAOnElevationConfigurable undocumented
+ IsMFAOnElevationConfigurable *bool `json:"isMfaOnElevationConfigurable,omitempty"`
+ // ApprovalOnElevation undocumented
+ ApprovalOnElevation *bool `json:"approvalOnElevation,omitempty"`
+}
+
+// PrivilegedRoleSummary undocumented
+type PrivilegedRoleSummary struct {
+ // Entity is the base model of PrivilegedRoleSummary
+ Entity
+ // Status undocumented
+ Status *RoleSummaryStatus `json:"status,omitempty"`
+ // UsersCount undocumented
+ UsersCount *int `json:"usersCount,omitempty"`
+ // ManagedCount undocumented
+ ManagedCount *int `json:"managedCount,omitempty"`
+ // ElevatedCount undocumented
+ ElevatedCount *int `json:"elevatedCount,omitempty"`
+ // MFAEnabled undocumented
+ MFAEnabled *bool `json:"mfaEnabled,omitempty"`
+}
+
+// PrivilegedSignupStatus undocumented
+type PrivilegedSignupStatus struct {
+ // Entity is the base model of PrivilegedSignupStatus
+ Entity
+ // IsRegistered undocumented
+ IsRegistered *bool `json:"isRegistered,omitempty"`
+ // Status undocumented
+ Status *SetupStatus `json:"status,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProcess.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProcess.go
new file mode 100644
index 00000000..9ce88c9d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProcess.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Process undocumented
+type Process struct {
+ // Object is the base model of Process
+ Object
+ // AccountName undocumented
+ AccountName *string `json:"accountName,omitempty"`
+ // CommandLine undocumented
+ CommandLine *string `json:"commandLine,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // FileHash undocumented
+ FileHash *FileHash `json:"fileHash,omitempty"`
+ // IntegrityLevel undocumented
+ IntegrityLevel *ProcessIntegrityLevel `json:"integrityLevel,omitempty"`
+ // IsElevated undocumented
+ IsElevated *bool `json:"isElevated,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ParentProcessCreatedDateTime undocumented
+ ParentProcessCreatedDateTime *time.Time `json:"parentProcessCreatedDateTime,omitempty"`
+ // ParentProcessID undocumented
+ ParentProcessID *int `json:"parentProcessId,omitempty"`
+ // ParentProcessName undocumented
+ ParentProcessName *string `json:"parentProcessName,omitempty"`
+ // Path undocumented
+ Path *string `json:"path,omitempty"`
+ // ProcessID undocumented
+ ProcessID *int `json:"processId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProfile.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProfile.go
new file mode 100644
index 00000000..a961c8b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProfile.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Profile undocumented
+type Profile struct {
+ // Entity is the base model of Profile
+ Entity
+ // Account undocumented
+ Account []UserAccountInformation `json:"account,omitempty"`
+ // Anniversaries undocumented
+ Anniversaries []PersonAnniversary `json:"anniversaries,omitempty"`
+ // EducationalActivities undocumented
+ EducationalActivities []EducationalActivity `json:"educationalActivities,omitempty"`
+ // Emails undocumented
+ Emails []ItemEmail `json:"emails,omitempty"`
+ // Interests undocumented
+ Interests []PersonInterest `json:"interests,omitempty"`
+ // Languages undocumented
+ Languages []LanguageProficiency `json:"languages,omitempty"`
+ // Names undocumented
+ Names []PersonName `json:"names,omitempty"`
+ // Phones undocumented
+ Phones []ItemPhone `json:"phones,omitempty"`
+ // Positions undocumented
+ Positions []WorkPosition `json:"positions,omitempty"`
+ // Projects undocumented
+ Projects []ProjectParticipation `json:"projects,omitempty"`
+ // Skills undocumented
+ Skills []SkillProficiency `json:"skills,omitempty"`
+ // WebAccounts undocumented
+ WebAccounts []WebAccount `json:"webAccounts,omitempty"`
+ // Websites undocumented
+ Websites []PersonWebsite `json:"websites,omitempty"`
+}
+
+// ProfilePhoto undocumented
+type ProfilePhoto struct {
+ // Entity is the base model of ProfilePhoto
+ Entity
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProgram.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProgram.go
new file mode 100644
index 00000000..08035641
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProgram.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Program undocumented
+type Program struct {
+ // Entity is the base model of Program
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Controls undocumented
+ Controls []ProgramControl `json:"controls,omitempty"`
+}
+
+// ProgramControl undocumented
+type ProgramControl struct {
+ // Entity is the base model of ProgramControl
+ Entity
+ // ControlID undocumented
+ ControlID *string `json:"controlId,omitempty"`
+ // ProgramID undocumented
+ ProgramID *string `json:"programId,omitempty"`
+ // ControlTypeID undocumented
+ ControlTypeID *string `json:"controlTypeId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Owner undocumented
+ Owner *UserIdentity `json:"owner,omitempty"`
+ // Resource undocumented
+ Resource *ProgramResource `json:"resource,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Program undocumented
+ Program *Program `json:"program,omitempty"`
+}
+
+// ProgramControlType undocumented
+type ProgramControlType struct {
+ // Entity is the base model of ProgramControlType
+ Entity
+ // ControlTypeGroupID undocumented
+ ControlTypeGroupID *string `json:"controlTypeGroupId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// ProgramResource undocumented
+type ProgramResource struct {
+ // Identity is the base model of ProgramResource
+ Identity
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProject.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProject.go
new file mode 100644
index 00000000..1bf4f4ff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProject.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProjectParticipation undocumented
+type ProjectParticipation struct {
+ // ItemFacet is the base model of ProjectParticipation
+ ItemFacet
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // Client undocumented
+ Client *CompanyDetail `json:"client,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Detail undocumented
+ Detail *PositionDetail `json:"detail,omitempty"`
+ // Colleagues undocumented
+ Colleagues []RelatedPerson `json:"colleagues,omitempty"`
+ // Sponsors undocumented
+ Sponsors []RelatedPerson `json:"sponsors,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrompt.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrompt.go
new file mode 100644
index 00000000..6a6e9440
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPrompt.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Prompt undocumented
+type Prompt struct {
+ // Object is the base model of Prompt
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperties.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperties.go
new file mode 100644
index 00000000..3d6e6c6e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperties.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Properties undocumented
+type Properties struct {
+ // Object is the base model of Properties
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperty.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperty.go
new file mode 100644
index 00000000..93e3b788
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProperty.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Property undocumented
+type Property struct {
+ // Object is the base model of Property
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *PropertyType `json:"type,omitempty"`
+ // IsSearchable undocumented
+ IsSearchable *bool `json:"isSearchable,omitempty"`
+ // IsRetrievable undocumented
+ IsRetrievable *bool `json:"isRetrievable,omitempty"`
+ // IsQueryable undocumented
+ IsQueryable *bool `json:"isQueryable,omitempty"`
+}
+
+// PropertyToEvaluate undocumented
+type PropertyToEvaluate struct {
+ // Object is the base model of PropertyToEvaluate
+ Object
+ // PropertyName undocumented
+ PropertyName *string `json:"propertyName,omitempty"`
+ // PropertyValue undocumented
+ PropertyValue *string `json:"propertyValue,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProtect.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProtect.go
new file mode 100644
index 00000000..492276d1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProtect.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProtectAdhocAction undocumented
+type ProtectAdhocAction struct {
+ // InformationProtectionAction is the base model of ProtectAdhocAction
+ InformationProtectionAction
+}
+
+// ProtectByTemplateAction undocumented
+type ProtectByTemplateAction struct {
+ // InformationProtectionAction is the base model of ProtectByTemplateAction
+ InformationProtectionAction
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+}
+
+// ProtectDoNotForwardAction undocumented
+type ProtectDoNotForwardAction struct {
+ // InformationProtectionAction is the base model of ProtectDoNotForwardAction
+ InformationProtectionAction
+}
+
+// ProtectGroup undocumented
+type ProtectGroup struct {
+ // LabelActionBase is the base model of ProtectGroup
+ LabelActionBase
+ // AllowEmailFromGuestUsers undocumented
+ AllowEmailFromGuestUsers *bool `json:"allowEmailFromGuestUsers,omitempty"`
+ // AllowGuestUsers undocumented
+ AllowGuestUsers *bool `json:"allowGuestUsers,omitempty"`
+ // Privacy undocumented
+ Privacy *GroupPrivacy `json:"privacy,omitempty"`
+}
+
+// ProtectSite undocumented
+type ProtectSite struct {
+ // LabelActionBase is the base model of ProtectSite
+ LabelActionBase
+ // AccessType undocumented
+ AccessType *SiteAccessType `json:"accessType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvider.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvider.go
new file mode 100644
index 00000000..45e2d21c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvider.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ProviderTenantSetting undocumented
+type ProviderTenantSetting struct {
+ // Entity is the base model of ProviderTenantSetting
+ Entity
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Provider undocumented
+ Provider *string `json:"provider,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioned.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioned.go
new file mode 100644
index 00000000..4872b0de
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioned.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProvisionedIdentity undocumented
+type ProvisionedIdentity struct {
+ // Object is the base model of ProvisionedIdentity
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IdentityType undocumented
+ IdentityType *string `json:"identityType,omitempty"`
+ // Details undocumented
+ Details *DetailsInfo `json:"details,omitempty"`
+}
+
+// ProvisionedPlan undocumented
+type ProvisionedPlan struct {
+ // Object is the base model of ProvisionedPlan
+ Object
+ // CapabilityStatus undocumented
+ CapabilityStatus *string `json:"capabilityStatus,omitempty"`
+ // ProvisioningStatus undocumented
+ ProvisioningStatus *string `json:"provisioningStatus,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioning.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioning.go
new file mode 100644
index 00000000..0eda9577
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProvisioning.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ProvisioningObjectSummary undocumented
+type ProvisioningObjectSummary struct {
+ // Entity is the base model of ProvisioningObjectSummary
+ Entity
+ // ActivityDateTime undocumented
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // JobID undocumented
+ JobID *string `json:"jobId,omitempty"`
+ // CycleID undocumented
+ CycleID *string `json:"cycleId,omitempty"`
+ // ChangeID undocumented
+ ChangeID *string `json:"changeId,omitempty"`
+ // Action undocumented
+ Action *string `json:"action,omitempty"`
+ // DurationInMilliseconds undocumented
+ DurationInMilliseconds *int `json:"durationInMilliseconds,omitempty"`
+ // InitiatedBy undocumented
+ InitiatedBy *Initiator `json:"initiatedBy,omitempty"`
+ // SourceSystem undocumented
+ SourceSystem *ProvisioningSystemDetails `json:"sourceSystem,omitempty"`
+ // TargetSystem undocumented
+ TargetSystem *ProvisioningSystemDetails `json:"targetSystem,omitempty"`
+ // SourceIdentity undocumented
+ SourceIdentity *ProvisionedIdentity `json:"sourceIdentity,omitempty"`
+ // TargetIdentity undocumented
+ TargetIdentity *ProvisionedIdentity `json:"targetIdentity,omitempty"`
+ // StatusInfo undocumented
+ StatusInfo *StatusBase `json:"statusInfo,omitempty"`
+ // ProvisioningSteps undocumented
+ ProvisioningSteps []ProvisioningStep `json:"provisioningSteps,omitempty"`
+ // ModifiedProperties undocumented
+ ModifiedProperties []ModifiedProperty `json:"modifiedProperties,omitempty"`
+}
+
+// ProvisioningStep undocumented
+type ProvisioningStep struct {
+ // Object is the base model of ProvisioningStep
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Status undocumented
+ Status *ProvisioningResult `json:"status,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Details undocumented
+ Details *DetailsInfo `json:"details,omitempty"`
+ // ProvisioningStepType undocumented
+ ProvisioningStepType *ProvisioningStepType `json:"provisioningStepType,omitempty"`
+}
+
+// ProvisioningSystemDetails undocumented
+type ProvisioningSystemDetails struct {
+ // Object is the base model of ProvisioningSystemDetails
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Details undocumented
+ Details *DetailsInfo `json:"details,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelProxied.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProxied.go
new file mode 100644
index 00000000..77b6eaa1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelProxied.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ProxiedDomain undocumented
+type ProxiedDomain struct {
+ // Object is the base model of ProxiedDomain
+ Object
+ // IPAddressOrFQDN The IP address or FQDN
+ IPAddressOrFQDN *string `json:"ipAddressOrFQDN,omitempty"`
+ // Proxy Proxy IP or FQDN
+ Proxy *string `json:"proxy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublic.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublic.go
new file mode 100644
index 00000000..feb05085
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublic.go
@@ -0,0 +1,61 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublicClientApplication undocumented
+type PublicClientApplication struct {
+ // Object is the base model of PublicClientApplication
+ Object
+ // RedirectUris undocumented
+ RedirectUris []string `json:"redirectUris,omitempty"`
+}
+
+// PublicError undocumented
+type PublicError struct {
+ // Object is the base model of PublicError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+ // Details undocumented
+ Details []PublicErrorDetail `json:"details,omitempty"`
+ // InnerError undocumented
+ InnerError *PublicInnerError `json:"innerError,omitempty"`
+}
+
+// PublicErrorDetail undocumented
+type PublicErrorDetail struct {
+ // Object is the base model of PublicErrorDetail
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+}
+
+// PublicErrorResponse undocumented
+type PublicErrorResponse struct {
+ // Object is the base model of PublicErrorResponse
+ Object
+ // Error undocumented
+ Error *PublicError `json:"error,omitempty"`
+}
+
+// PublicInnerError undocumented
+type PublicInnerError struct {
+ // Object is the base model of PublicInnerError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Details undocumented
+ Details []PublicErrorDetail `json:"details,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // Target undocumented
+ Target *string `json:"target,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublication.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublication.go
new file mode 100644
index 00000000..706baf5e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublication.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublicationFacet undocumented
+type PublicationFacet struct {
+ // Object is the base model of PublicationFacet
+ Object
+ // Level undocumented
+ Level *string `json:"level,omitempty"`
+ // VersionID undocumented
+ VersionID *string `json:"versionId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublished.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublished.go
new file mode 100644
index 00000000..50c36732
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPublished.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// PublishedResource undocumented
+type PublishedResource struct {
+ // Entity is the base model of PublishedResource
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ResourceName undocumented
+ ResourceName *string `json:"resourceName,omitempty"`
+ // PublishingType undocumented
+ PublishingType *OnPremisesPublishingType `json:"publishingType,omitempty"`
+ // AgentGroups undocumented
+ AgentGroups []OnPremisesAgentGroup `json:"agentGroups,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelPurchase.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPurchase.go
new file mode 100644
index 00000000..86722acb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelPurchase.go
@@ -0,0 +1,121 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// PurchaseInvoice undocumented
+type PurchaseInvoice struct {
+ // Entity is the base model of PurchaseInvoice
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // InvoiceDate undocumented
+ InvoiceDate *Date `json:"invoiceDate,omitempty"`
+ // DueDate undocumented
+ DueDate *Date `json:"dueDate,omitempty"`
+ // VendorInvoiceNumber undocumented
+ VendorInvoiceNumber *string `json:"vendorInvoiceNumber,omitempty"`
+ // VendorID undocumented
+ VendorID *UUID `json:"vendorId,omitempty"`
+ // VendorNumber undocumented
+ VendorNumber *string `json:"vendorNumber,omitempty"`
+ // VendorName undocumented
+ VendorName *string `json:"vendorName,omitempty"`
+ // PayToName undocumented
+ PayToName *string `json:"payToName,omitempty"`
+ // PayToContact undocumented
+ PayToContact *string `json:"payToContact,omitempty"`
+ // PayToVendorID undocumented
+ PayToVendorID *UUID `json:"payToVendorId,omitempty"`
+ // PayToVendorNumber undocumented
+ PayToVendorNumber *string `json:"payToVendorNumber,omitempty"`
+ // ShipToName undocumented
+ ShipToName *string `json:"shipToName,omitempty"`
+ // ShipToContact undocumented
+ ShipToContact *string `json:"shipToContact,omitempty"`
+ // BuyFromAddress undocumented
+ BuyFromAddress *PostalAddressType `json:"buyFromAddress,omitempty"`
+ // PayToAddress undocumented
+ PayToAddress *PostalAddressType `json:"payToAddress,omitempty"`
+ // ShipToAddress undocumented
+ ShipToAddress *PostalAddressType `json:"shipToAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PricesIncludeTax undocumented
+ PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PurchaseInvoiceLines undocumented
+ PurchaseInvoiceLines []PurchaseInvoiceLine `json:"purchaseInvoiceLines,omitempty"`
+ // Vendor undocumented
+ Vendor *Vendor `json:"vendor,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+}
+
+// PurchaseInvoiceLine undocumented
+type PurchaseInvoiceLine struct {
+ // Entity is the base model of PurchaseInvoiceLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitCost undocumented
+ UnitCost *int `json:"unitCost,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // InvoiceDiscountAllocation undocumented
+ InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // ExpectedReceiptDate undocumented
+ ExpectedReceiptDate *Date `json:"expectedReceiptDate,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelQuota.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelQuota.go
new file mode 100644
index 00000000..a9f5c006
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelQuota.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Quota undocumented
+type Quota struct {
+ // Object is the base model of Quota
+ Object
+ // Deleted undocumented
+ Deleted *int `json:"deleted,omitempty"`
+ // Remaining undocumented
+ Remaining *int `json:"remaining,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Used undocumented
+ Used *int `json:"used,omitempty"`
+ // StoragePlanInformation undocumented
+ StoragePlanInformation *StoragePlanInformation `json:"storagePlanInformation,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRanked.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRanked.go
new file mode 100644
index 00000000..624afb6b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRanked.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RankedEmailAddress undocumented
+type RankedEmailAddress struct {
+ // Object is the base model of RankedEmailAddress
+ Object
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // Rank undocumented
+ Rank *float64 `json:"rank,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRbac.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRbac.go
new file mode 100644
index 00000000..ff835349
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRbac.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RbacApplication undocumented
+type RbacApplication struct {
+ // Entity is the base model of RbacApplication
+ Entity
+ // RoleDefinitions undocumented
+ RoleDefinitions []UnifiedRoleDefinition `json:"roleDefinitions,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []UnifiedRoleAssignment `json:"roleAssignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecent.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecent.go
new file mode 100644
index 00000000..aac540bf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecent.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RecentNotebook undocumented
+type RecentNotebook struct {
+ // Object is the base model of RecentNotebook
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastAccessedTime undocumented
+ LastAccessedTime *time.Time `json:"lastAccessedTime,omitempty"`
+ // Links undocumented
+ Links *RecentNotebookLinks `json:"links,omitempty"`
+ // SourceService undocumented
+ SourceService *OnenoteSourceService `json:"sourceService,omitempty"`
+}
+
+// RecentNotebookLinks undocumented
+type RecentNotebookLinks struct {
+ // Object is the base model of RecentNotebookLinks
+ Object
+ // OneNoteClientURL undocumented
+ OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"`
+ // OneNoteWebURL undocumented
+ OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecipient.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecipient.go
new file mode 100644
index 00000000..153f5d81
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecipient.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Recipient undocumented
+type Recipient struct {
+ // Object is the base model of Recipient
+ Object
+ // EmailAddress undocumented
+ EmailAddress *EmailAddress `json:"emailAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecommend.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecommend.go
new file mode 100644
index 00000000..90ad812a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecommend.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecommendLabelAction undocumented
+type RecommendLabelAction struct {
+ // InformationProtectionAction is the base model of RecommendLabelAction
+ InformationProtectionAction
+ // Label undocumented
+ Label *LabelDetails `json:"label,omitempty"`
+ // ResponsibleSensitiveTypeIDs undocumented
+ ResponsibleSensitiveTypeIDs []UUID `json:"responsibleSensitiveTypeIds,omitempty"`
+ // Actions undocumented
+ Actions []InformationProtectionAction `json:"actions,omitempty"`
+ // ActionSource undocumented
+ ActionSource *ActionSource `json:"actionSource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecord.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecord.go
new file mode 100644
index 00000000..8916aee1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecord.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordOperation undocumented
+type RecordOperation struct {
+ // CommsOperation is the base model of RecordOperation
+ CommsOperation
+ // RecordingLocation undocumented
+ RecordingLocation *string `json:"recordingLocation,omitempty"`
+ // RecordingAccessToken undocumented
+ RecordingAccessToken *string `json:"recordingAccessToken,omitempty"`
+ // CompletionReason undocumented
+ CompletionReason *RecordCompletionReason `json:"completionReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecording.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecording.go
new file mode 100644
index 00000000..4b0606f0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecording.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecordingInfo undocumented
+type RecordingInfo struct {
+ // Object is the base model of RecordingInfo
+ Object
+ // RecordingStatus undocumented
+ RecordingStatus *RecordingStatus `json:"recordingStatus,omitempty"`
+ // InitiatedBy undocumented
+ InitiatedBy *ParticipantInfo `json:"initiatedBy,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecurrence.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecurrence.go
new file mode 100644
index 00000000..3ecaa71a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRecurrence.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RecurrencePattern undocumented
+type RecurrencePattern struct {
+ // Object is the base model of RecurrencePattern
+ Object
+ // Type undocumented
+ Type *RecurrencePatternType `json:"type,omitempty"`
+ // Interval undocumented
+ Interval *int `json:"interval,omitempty"`
+ // Month undocumented
+ Month *int `json:"month,omitempty"`
+ // DayOfMonth undocumented
+ DayOfMonth *int `json:"dayOfMonth,omitempty"`
+ // DaysOfWeek undocumented
+ DaysOfWeek []DayOfWeek `json:"daysOfWeek,omitempty"`
+ // FirstDayOfWeek undocumented
+ FirstDayOfWeek *DayOfWeek `json:"firstDayOfWeek,omitempty"`
+ // Index undocumented
+ Index *WeekIndex `json:"index,omitempty"`
+}
+
+// RecurrenceRange undocumented
+type RecurrenceRange struct {
+ // Object is the base model of RecurrenceRange
+ Object
+ // Type undocumented
+ Type *RecurrenceRangeType `json:"type,omitempty"`
+ // StartDate undocumented
+ StartDate *Date `json:"startDate,omitempty"`
+ // EndDate undocumented
+ EndDate *Date `json:"endDate,omitempty"`
+ // RecurrenceTimeZone undocumented
+ RecurrenceTimeZone *string `json:"recurrenceTimeZone,omitempty"`
+ // NumberOfOccurrences undocumented
+ NumberOfOccurrences *int `json:"numberOfOccurrences,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelReference.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReference.go
new file mode 100644
index 00000000..89573af8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReference.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReferenceAttachment undocumented
+type ReferenceAttachment struct {
+ // Attachment is the base model of ReferenceAttachment
+ Attachment
+ // SourceURL undocumented
+ SourceURL *string `json:"sourceUrl,omitempty"`
+ // ProviderType undocumented
+ ProviderType *ReferenceAttachmentProvider `json:"providerType,omitempty"`
+ // ThumbnailURL undocumented
+ ThumbnailURL *string `json:"thumbnailUrl,omitempty"`
+ // PreviewURL undocumented
+ PreviewURL *string `json:"previewUrl,omitempty"`
+ // Permission undocumented
+ Permission *ReferenceAttachmentPermission `json:"permission,omitempty"`
+ // IsFolder undocumented
+ IsFolder *bool `json:"isFolder,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelReferenced.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReferenced.go
new file mode 100644
index 00000000..1daef9b5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReferenced.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReferencedObject undocumented
+type ReferencedObject struct {
+ // Object is the base model of ReferencedObject
+ Object
+ // ReferencedObjectName undocumented
+ ReferencedObjectName *string `json:"referencedObjectName,omitempty"`
+ // ReferencedProperty undocumented
+ ReferencedProperty *string `json:"referencedProperty,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRegistry.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRegistry.go
new file mode 100644
index 00000000..dc29428c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRegistry.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RegistryKeyState undocumented
+type RegistryKeyState struct {
+ // Object is the base model of RegistryKeyState
+ Object
+ // Hive undocumented
+ Hive *RegistryHive `json:"hive,omitempty"`
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // OldKey undocumented
+ OldKey *string `json:"oldKey,omitempty"`
+ // OldValueData undocumented
+ OldValueData *string `json:"oldValueData,omitempty"`
+ // OldValueName undocumented
+ OldValueName *string `json:"oldValueName,omitempty"`
+ // Operation undocumented
+ Operation *RegistryOperation `json:"operation,omitempty"`
+ // ProcessID undocumented
+ ProcessID *int `json:"processId,omitempty"`
+ // ValueData undocumented
+ ValueData *string `json:"valueData,omitempty"`
+ // ValueName undocumented
+ ValueName *string `json:"valueName,omitempty"`
+ // ValueType undocumented
+ ValueType *RegistryValueType `json:"valueType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelated.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelated.go
new file mode 100644
index 00000000..ca6ab7bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelated.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RelatedContact undocumented
+type RelatedContact struct {
+ // Object is the base model of RelatedContact
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // EmailAddress undocumented
+ EmailAddress *string `json:"emailAddress,omitempty"`
+ // MobilePhone undocumented
+ MobilePhone *string `json:"mobilePhone,omitempty"`
+ // Relationship undocumented
+ Relationship *ContactRelationship `json:"relationship,omitempty"`
+ // AccessConsent undocumented
+ AccessConsent *bool `json:"accessConsent,omitempty"`
+}
+
+// RelatedPerson undocumented
+type RelatedPerson struct {
+ // Object is the base model of RelatedPerson
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Relationship undocumented
+ Relationship *PersonRelationship `json:"relationship,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelying.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelying.go
new file mode 100644
index 00000000..1920d4fd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRelying.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RelyingPartyDetailedSummary undocumented
+type RelyingPartyDetailedSummary struct {
+ // Entity is the base model of RelyingPartyDetailedSummary
+ Entity
+ // RelyingPartyID undocumented
+ RelyingPartyID *string `json:"relyingPartyId,omitempty"`
+ // ServiceID undocumented
+ ServiceID *string `json:"serviceId,omitempty"`
+ // RelyingPartyName undocumented
+ RelyingPartyName *string `json:"relyingPartyName,omitempty"`
+ // SuccessfulSignInCount undocumented
+ SuccessfulSignInCount *int `json:"successfulSignInCount,omitempty"`
+ // FailedSignInCount undocumented
+ FailedSignInCount *int `json:"failedSignInCount,omitempty"`
+ // TotalSignInCount undocumented
+ TotalSignInCount *int `json:"totalSignInCount,omitempty"`
+ // SignInSuccessRate undocumented
+ SignInSuccessRate *float64 `json:"signInSuccessRate,omitempty"`
+ // UniqueUserCount undocumented
+ UniqueUserCount *int `json:"uniqueUserCount,omitempty"`
+ // MigrationStatus undocumented
+ MigrationStatus *MigrationStatus `json:"migrationStatus,omitempty"`
+ // MigrationValidationDetails undocumented
+ MigrationValidationDetails []KeyValuePair `json:"migrationValidationDetails,omitempty"`
+ // ReplyUrls undocumented
+ ReplyUrls []string `json:"replyUrls,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelReminder.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReminder.go
new file mode 100644
index 00000000..ef800c55
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReminder.go
@@ -0,0 +1,25 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Reminder undocumented
+type Reminder struct {
+ // Object is the base model of Reminder
+ Object
+ // EventID undocumented
+ EventID *string `json:"eventId,omitempty"`
+ // EventStartTime undocumented
+ EventStartTime *DateTimeTimeZone `json:"eventStartTime,omitempty"`
+ // EventEndTime undocumented
+ EventEndTime *DateTimeTimeZone `json:"eventEndTime,omitempty"`
+ // ChangeKey undocumented
+ ChangeKey *string `json:"changeKey,omitempty"`
+ // EventSubject undocumented
+ EventSubject *string `json:"eventSubject,omitempty"`
+ // EventLocation undocumented
+ EventLocation *Location `json:"eventLocation,omitempty"`
+ // EventWebLink undocumented
+ EventWebLink *string `json:"eventWebLink,omitempty"`
+ // ReminderFireTime undocumented
+ ReminderFireTime *DateTimeTimeZone `json:"reminderFireTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemote.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemote.go
new file mode 100644
index 00000000..e7b7511e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemote.go
@@ -0,0 +1,91 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RemoteActionAudit Report of remote actions initiated on the devices belonging to a certain tenant.
+type RemoteActionAudit struct {
+ // Entity is the base model of RemoteActionAudit
+ Entity
+ // DeviceDisplayName Intune device name.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserName [deprecated] Please use InitiatedByUserPrincipalName instead.
+ UserName *string `json:"userName,omitempty"`
+ // InitiatedByUserPrincipalName User who initiated the device action, format is UPN.
+ InitiatedByUserPrincipalName *string `json:"initiatedByUserPrincipalName,omitempty"`
+ // Action The action name.
+ Action *RemoteAction `json:"action,omitempty"`
+ // RequestDateTime Time when the action was issued, given in UTC.
+ RequestDateTime *time.Time `json:"requestDateTime,omitempty"`
+ // DeviceOwnerUserPrincipalName Upn of the device owner.
+ DeviceOwnerUserPrincipalName *string `json:"deviceOwnerUserPrincipalName,omitempty"`
+ // DeviceIMEI IMEI of the device.
+ DeviceIMEI *string `json:"deviceIMEI,omitempty"`
+ // ActionState Action state.
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // ManagedDeviceID Action target.
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+}
+
+// RemoteAssistancePartner RemoteAssistPartner resources represent the metadata and status of a given Remote Assistance partner service.
+type RemoteAssistancePartner struct {
+ // Entity is the base model of RemoteAssistancePartner
+ Entity
+ // DisplayName Display name of the partner.
+ DisplayName *string `json:"displayName,omitempty"`
+ // OnboardingURL URL of the partner's onboarding portal, where an administrator can configure their Remote Assistance service.
+ OnboardingURL *string `json:"onboardingUrl,omitempty"`
+ // OnboardingStatus A friendly description of the current TeamViewer connector status
+ OnboardingStatus *RemoteAssistanceOnboardingStatus `json:"onboardingStatus,omitempty"`
+ // LastConnectionDateTime Timestamp of the last request sent to Intune by the TEM partner.
+ LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"`
+}
+
+// RemoteItem undocumented
+type RemoteItem struct {
+ // Object is the base model of RemoteItem
+ Object
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // File undocumented
+ File *File `json:"file,omitempty"`
+ // FileSystemInfo undocumented
+ FileSystemInfo *FileSystemInfo `json:"fileSystemInfo,omitempty"`
+ // Folder undocumented
+ Folder *Folder `json:"folder,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // LastModifiedBy undocumented
+ LastModifiedBy *IdentitySet `json:"lastModifiedBy,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Package undocumented
+ Package *Package `json:"package,omitempty"`
+ // ParentReference undocumented
+ ParentReference *ItemReference `json:"parentReference,omitempty"`
+ // Shared undocumented
+ Shared *Shared `json:"shared,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // SpecialFolder undocumented
+ SpecialFolder *SpecialFolder `json:"specialFolder,omitempty"`
+ // WebDavURL undocumented
+ WebDavURL *string `json:"webDavUrl,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
+
+// RemoteLockActionResult undocumented
+type RemoteLockActionResult struct {
+ // DeviceActionResult is the base model of RemoteLockActionResult
+ DeviceActionResult
+ // UnlockPin Pin to unlock the client
+ UnlockPin *string `json:"unlockPin,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemove.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemove.go
new file mode 100644
index 00000000..e103ce2f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRemove.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RemoveContentFooterAction undocumented
+type RemoveContentFooterAction struct {
+ // InformationProtectionAction is the base model of RemoveContentFooterAction
+ InformationProtectionAction
+ // UIElementNames undocumented
+ UIElementNames []string `json:"uiElementNames,omitempty"`
+}
+
+// RemoveContentHeaderAction undocumented
+type RemoveContentHeaderAction struct {
+ // InformationProtectionAction is the base model of RemoveContentHeaderAction
+ InformationProtectionAction
+ // UIElementNames undocumented
+ UIElementNames []string `json:"uiElementNames,omitempty"`
+}
+
+// RemoveProtectionAction undocumented
+type RemoveProtectionAction struct {
+ // InformationProtectionAction is the base model of RemoveProtectionAction
+ InformationProtectionAction
+}
+
+// RemoveWatermarkAction undocumented
+type RemoveWatermarkAction struct {
+ // InformationProtectionAction is the base model of RemoveWatermarkAction
+ InformationProtectionAction
+ // UIElementNames undocumented
+ UIElementNames []string `json:"uiElementNames,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRename.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRename.go
new file mode 100644
index 00000000..68f06de8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRename.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RenameAction undocumented
+type RenameAction struct {
+ // Object is the base model of RenameAction
+ Object
+ // NewName undocumented
+ NewName *string `json:"newName,omitempty"`
+ // OldName undocumented
+ OldName *string `json:"oldName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelReport.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReport.go
new file mode 100644
index 00000000..11f75657
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReport.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Report undocumented
+type Report struct {
+ // Object is the base model of Report
+ Object
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+}
+
+// ReportRoot The resource that represents an instance of Enrollment Failure Reports.
+type ReportRoot struct {
+ // Entity is the base model of ReportRoot
+ Entity
+ // ApplicationSignInDetailedSummary undocumented
+ ApplicationSignInDetailedSummary []ApplicationSignInDetailedSummary `json:"applicationSignInDetailedSummary,omitempty"`
+ // CredentialUserRegistrationDetails undocumented
+ CredentialUserRegistrationDetails []CredentialUserRegistrationDetails `json:"credentialUserRegistrationDetails,omitempty"`
+ // UserCredentialUsageDetails undocumented
+ UserCredentialUsageDetails []UserCredentialUsageDetails `json:"userCredentialUsageDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelReputation.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReputation.go
new file mode 100644
index 00000000..b42108e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReputation.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ReputationCategory undocumented
+type ReputationCategory struct {
+ // Object is the base model of ReputationCategory
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRequest.go
new file mode 100644
index 00000000..ccc09fc4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRequest.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RequestObject undocumented
+type RequestObject struct {
+ // Entity is the base model of RequestObject
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // BusinessFlowID undocumented
+ BusinessFlowID *string `json:"businessFlowId,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *UserIdentity `json:"createdBy,omitempty"`
+ // DeDuplicationID undocumented
+ DeDuplicationID *string `json:"deDuplicationId,omitempty"`
+ // SchemaID undocumented
+ SchemaID *string `json:"schemaId,omitempty"`
+ // CustomData undocumented
+ CustomData *string `json:"customData,omitempty"`
+ // RecordVersion undocumented
+ RecordVersion *string `json:"recordVersion,omitempty"`
+ // PolicyTemplateID undocumented
+ PolicyTemplateID *string `json:"policyTemplateId,omitempty"`
+ // Policy undocumented
+ Policy *GovernancePolicy `json:"policy,omitempty"`
+ // Settings undocumented
+ Settings *AccessReviewSettings `json:"settings,omitempty"`
+ // Decisions undocumented
+ Decisions []AccessReviewDecision `json:"decisions,omitempty"`
+ // MyDecisions undocumented
+ MyDecisions []AccessReviewDecision `json:"myDecisions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRequired.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRequired.go
new file mode 100644
index 00000000..cf8fc609
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRequired.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RequiredResourceAccess undocumented
+type RequiredResourceAccess struct {
+ // Object is the base model of RequiredResourceAccess
+ Object
+ // ResourceAppID undocumented
+ ResourceAppID *string `json:"resourceAppId,omitempty"`
+ // ResourceAccess undocumented
+ ResourceAccess []ResourceAccess `json:"resourceAccess,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelReset.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReset.go
new file mode 100644
index 00000000..b421b61d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelReset.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResetPasscodeActionResult undocumented
+type ResetPasscodeActionResult struct {
+ // DeviceActionResult is the base model of ResetPasscodeActionResult
+ DeviceActionResult
+ // Passcode Newly generated passcode for the device
+ Passcode *string `json:"passcode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelResource.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResource.go
new file mode 100644
index 00000000..f9ae8a19
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResource.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResourceAccess undocumented
+type ResourceAccess struct {
+ // Object is the base model of ResourceAccess
+ Object
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
+
+// ResourceAction undocumented
+type ResourceAction struct {
+ // Object is the base model of ResourceAction
+ Object
+ // AllowedResourceActions Allowed Actions
+ AllowedResourceActions []string `json:"allowedResourceActions,omitempty"`
+ // NotAllowedResourceActions Not Allowed Actions.
+ NotAllowedResourceActions []string `json:"notAllowedResourceActions,omitempty"`
+}
+
+// ResourceOperation Describes the resourceOperation resource (entity) of the Microsoft Graph API (REST), which supports Intune workflows related to role-based access control (RBAC).
+type ResourceOperation struct {
+ // Entity is the base model of ResourceOperation
+ Entity
+ // Resource Resource category to which this Operation belongs.
+ Resource *string `json:"resource,omitempty"`
+ // ResourceName Name of the Resource this operation is performed on.
+ ResourceName *string `json:"resourceName,omitempty"`
+ // ActionName Type of action this operation is going to perform. The actionName should be concise and limited to as few words as possible.
+ ActionName *string `json:"actionName,omitempty"`
+ // Description Description of the resource operation. The description is used in mouse-over text for the operation when shown in the Azure Portal.
+ Description *string `json:"description,omitempty"`
+ // EnabledForScopeValidation Determines whether the Permission is validated for Scopes defined per Role Assignment.
+ EnabledForScopeValidation *bool `json:"enabledForScopeValidation,omitempty"`
+}
+
+// ResourcePermission undocumented
+type ResourcePermission struct {
+ // Object is the base model of ResourcePermission
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
+
+// ResourcePropertiesModel undocumented
+type ResourcePropertiesModel struct {
+ // Object is the base model of ResourcePropertiesModel
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Label undocumented
+ Label *string `json:"label,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Capacity undocumented
+ Capacity *int `json:"capacity,omitempty"`
+ // IsManaged undocumented
+ IsManaged *bool `json:"isManaged,omitempty"`
+ // BookingType undocumented
+ BookingType *BookingType `json:"bookingType,omitempty"`
+ // Building undocumented
+ Building *string `json:"building,omitempty"`
+ // Floor undocumented
+ Floor *string `json:"floor,omitempty"`
+}
+
+// ResourceReference undocumented
+type ResourceReference struct {
+ // Object is the base model of ResourceReference
+ Object
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
+
+// ResourceSpecificPermission undocumented
+type ResourceSpecificPermission struct {
+ // Object is the base model of ResourceSpecificPermission
+ Object
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // ID undocumented
+ ID *UUID `json:"id,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
+
+// ResourceSpecificPermissionGrant undocumented
+type ResourceSpecificPermissionGrant struct {
+ // DirectoryObject is the base model of ResourceSpecificPermissionGrant
+ DirectoryObject
+ // ClientID undocumented
+ ClientID *string `json:"clientId,omitempty"`
+ // ClientAppID undocumented
+ ClientAppID *string `json:"clientAppId,omitempty"`
+ // ResourceAppID undocumented
+ ResourceAppID *string `json:"resourceAppId,omitempty"`
+ // PermissionType undocumented
+ PermissionType *string `json:"permissionType,omitempty"`
+ // Permission undocumented
+ Permission *string `json:"permission,omitempty"`
+}
+
+// ResourceVisualization undocumented
+type ResourceVisualization struct {
+ // Object is the base model of ResourceVisualization
+ Object
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // MediaType undocumented
+ MediaType *string `json:"mediaType,omitempty"`
+ // PreviewImageURL undocumented
+ PreviewImageURL *string `json:"previewImageUrl,omitempty"`
+ // PreviewText undocumented
+ PreviewText *string `json:"previewText,omitempty"`
+ // ContainerWebURL undocumented
+ ContainerWebURL *string `json:"containerWebUrl,omitempty"`
+ // ContainerDisplayName undocumented
+ ContainerDisplayName *string `json:"containerDisplayName,omitempty"`
+ // ContainerType undocumented
+ ContainerType *string `json:"containerType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponse.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponse.go
new file mode 100644
index 00000000..feb5a2e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponse.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ResponseStatus undocumented
+type ResponseStatus struct {
+ // Object is the base model of ResponseStatus
+ Object
+ // Response undocumented
+ Response *ResponseType `json:"response,omitempty"`
+ // Time undocumented
+ Time *time.Time `json:"time,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponsible.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponsible.go
new file mode 100644
index 00000000..3945510b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResponsible.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResponsiblePolicy undocumented
+type ResponsiblePolicy struct {
+ // Object is the base model of ResponsiblePolicy
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// ResponsibleSensitiveType undocumented
+type ResponsibleSensitiveType struct {
+ // Object is the base model of ResponsibleSensitiveType
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // RulePackageID undocumented
+ RulePackageID *string `json:"rulePackageId,omitempty"`
+ // RulePackageType undocumented
+ RulePackageType *string `json:"rulePackageType,omitempty"`
+ // PublisherName undocumented
+ PublisherName *string `json:"publisherName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestore.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestore.go
new file mode 100644
index 00000000..62679c24
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestore.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestoreAction undocumented
+type RestoreAction struct {
+ // Object is the base model of RestoreAction
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestricted.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestricted.go
new file mode 100644
index 00000000..e7e8cbd5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRestricted.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RestrictedAppsViolation Violation of restricted apps configuration profile per device per user
+type RestrictedAppsViolation struct {
+ // Entity is the base model of RestrictedAppsViolation
+ Entity
+ // UserID User unique identifier, must be Guid
+ UserID *string `json:"userId,omitempty"`
+ // UserName User name
+ UserName *string `json:"userName,omitempty"`
+ // ManagedDeviceID Managed device unique identifier, must be Guid
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DeviceName Device name
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceConfigurationID Device configuration profile unique identifier, must be Guid
+ DeviceConfigurationID *string `json:"deviceConfigurationId,omitempty"`
+ // DeviceConfigurationName Device configuration profile name
+ DeviceConfigurationName *string `json:"deviceConfigurationName,omitempty"`
+ // PlatformType Platform type
+ PlatformType *PolicyPlatformType `json:"platformType,omitempty"`
+ // RestrictedAppsState Restricted apps state
+ RestrictedAppsState *RestrictedAppsState `json:"restrictedAppsState,omitempty"`
+ // RestrictedApps List of violated restricted apps
+ RestrictedApps []ManagedDeviceReportedApp `json:"restrictedApps,omitempty"`
+}
+
+// RestrictedSignIn undocumented
+type RestrictedSignIn struct {
+ // SignIn is the base model of RestrictedSignIn
+ SignIn
+ // TargetTenantID undocumented
+ TargetTenantID *UUID `json:"targetTenantId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelResult.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResult.go
new file mode 100644
index 00000000..9b34e8f9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelResult.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ResultInfo undocumented
+type ResultInfo struct {
+ // Object is the base model of ResultInfo
+ Object
+ // Code undocumented
+ Code *int `json:"code,omitempty"`
+ // Subcode undocumented
+ Subcode *int `json:"subcode,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRevoke.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRevoke.go
new file mode 100644
index 00000000..3c786c06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRevoke.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RevokeAppleVPPLicensesActionResult undocumented
+type RevokeAppleVPPLicensesActionResult struct {
+ // DeviceActionResult is the base model of RevokeAppleVPPLicensesActionResult
+ DeviceActionResult
+ // TotalLicensesCount Total number of Apple Vpp licenses associated
+ TotalLicensesCount *int `json:"totalLicensesCount,omitempty"`
+ // FailedLicensesCount Total number of Apple Vpp licenses that failed to revoke
+ FailedLicensesCount *int `json:"failedLicensesCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRgb.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRgb.go
new file mode 100644
index 00000000..4f1812b0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRgb.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RgbColor undocumented
+type RgbColor struct {
+ // Object is the base model of RgbColor
+ Object
+ // R Red value
+ R *byte `json:"r,omitempty"`
+ // G Green value
+ G *byte `json:"g,omitempty"`
+ // B Blue value
+ B *byte `json:"b,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisk.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisk.go
new file mode 100644
index 00000000..b7948167
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisk.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RiskDetection undocumented
+type RiskDetection struct {
+ // Entity is the base model of RiskDetection
+ Entity
+ // RequestID undocumented
+ RequestID *string `json:"requestId,omitempty"`
+ // CorrelationID undocumented
+ CorrelationID *string `json:"correlationId,omitempty"`
+ // RiskType undocumented
+ RiskType *RiskEventType `json:"riskType,omitempty"`
+ // RiskState undocumented
+ RiskState *RiskState `json:"riskState,omitempty"`
+ // RiskLevel undocumented
+ RiskLevel *RiskLevel `json:"riskLevel,omitempty"`
+ // RiskDetail undocumented
+ RiskDetail *RiskDetail `json:"riskDetail,omitempty"`
+ // Source undocumented
+ Source *string `json:"source,omitempty"`
+ // DetectionTimingType undocumented
+ DetectionTimingType *RiskDetectionTimingType `json:"detectionTimingType,omitempty"`
+ // Activity undocumented
+ Activity *ActivityType `json:"activity,omitempty"`
+ // TokenIssuerType undocumented
+ TokenIssuerType *TokenIssuerType `json:"tokenIssuerType,omitempty"`
+ // IPAddress undocumented
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // Location undocumented
+ Location *SignInLocation `json:"location,omitempty"`
+ // ActivityDateTime undocumented
+ ActivityDateTime *time.Time `json:"activityDateTime,omitempty"`
+ // DetectedDateTime undocumented
+ DetectedDateTime *time.Time `json:"detectedDateTime,omitempty"`
+ // LastUpdatedDateTime undocumented
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // AdditionalInfo undocumented
+ AdditionalInfo *string `json:"additionalInfo,omitempty"`
+}
+
+// RiskUserActivity undocumented
+type RiskUserActivity struct {
+ // Object is the base model of RiskUserActivity
+ Object
+ // EventTypes undocumented
+ EventTypes []RiskEventType `json:"eventTypes,omitempty"`
+ // Detail undocumented
+ Detail *RiskDetail `json:"detail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisky.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisky.go
new file mode 100644
index 00000000..451084dd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRisky.go
@@ -0,0 +1,43 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// RiskyUser undocumented
+type RiskyUser struct {
+ // Entity is the base model of RiskyUser
+ Entity
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // IsGuest undocumented
+ IsGuest *bool `json:"isGuest,omitempty"`
+ // IsProcessing undocumented
+ IsProcessing *bool `json:"isProcessing,omitempty"`
+ // RiskLastUpdatedDateTime undocumented
+ RiskLastUpdatedDateTime *time.Time `json:"riskLastUpdatedDateTime,omitempty"`
+ // RiskLevel undocumented
+ RiskLevel *RiskLevel `json:"riskLevel,omitempty"`
+ // RiskState undocumented
+ RiskState *RiskState `json:"riskState,omitempty"`
+ // RiskDetail undocumented
+ RiskDetail *RiskDetail `json:"riskDetail,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // History undocumented
+ History []RiskyUserHistoryItem `json:"history,omitempty"`
+}
+
+// RiskyUserHistoryItem undocumented
+type RiskyUserHistoryItem struct {
+ // RiskyUser is the base model of RiskyUserHistoryItem
+ RiskyUser
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // InitiatedBy undocumented
+ InitiatedBy *string `json:"initiatedBy,omitempty"`
+ // Activity undocumented
+ Activity *RiskUserActivity `json:"activity,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRole.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRole.go
new file mode 100644
index 00000000..b19c9b98
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRole.go
@@ -0,0 +1,127 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RoleAssignment The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles.
+type RoleAssignment struct {
+ // Entity is the base model of RoleAssignment
+ Entity
+ // DisplayName The display or friendly name of the role Assignment.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the Role Assignment.
+ Description *string `json:"description,omitempty"`
+ // ScopeMembers List of ids of role scope member security groups. These are IDs from Azure Active Directory.
+ ScopeMembers []string `json:"scopeMembers,omitempty"`
+ // ScopeType Specifies the type of scope for a Role Assignment. Default type 'ResourceScope' allows assignment of ResourceScopes. For 'AllDevices', 'AllLicensedUsers', and 'AllDevicesAndLicensedUsers', the ResourceScopes property should be left empty.
+ ScopeType *RoleAssignmentScopeType `json:"scopeType,omitempty"`
+ // ResourceScopes List of ids of role scope member security groups. These are IDs from Azure Active Directory.
+ ResourceScopes []string `json:"resourceScopes,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *RoleDefinition `json:"roleDefinition,omitempty"`
+}
+
+// RoleDefinition The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role.
+type RoleDefinition struct {
+ // Entity is the base model of RoleDefinition
+ Entity
+ // DisplayName Display Name of the Role definition.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the Role definition.
+ Description *string `json:"description,omitempty"`
+ // Permissions List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission.
+ Permissions []RolePermission `json:"permissions,omitempty"`
+ // RolePermissions List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission.
+ RolePermissions []RolePermission `json:"rolePermissions,omitempty"`
+ // IsBuiltInRoleDefinition Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition.
+ IsBuiltInRoleDefinition *bool `json:"isBuiltInRoleDefinition,omitempty"`
+ // IsBuiltIn Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition.
+ IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // RoleAssignments undocumented
+ RoleAssignments []RoleAssignment `json:"roleAssignments,omitempty"`
+}
+
+// RoleManagement undocumented
+type RoleManagement struct {
+ // Entity is the base model of RoleManagement
+ Entity
+ // Directory undocumented
+ Directory *RbacApplication `json:"directory,omitempty"`
+}
+
+// RoleMembershipGovernanceCriteria undocumented
+type RoleMembershipGovernanceCriteria struct {
+ // GovernanceCriteria is the base model of RoleMembershipGovernanceCriteria
+ GovernanceCriteria
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // RoleTemplateID undocumented
+ RoleTemplateID *string `json:"roleTemplateId,omitempty"`
+}
+
+// RolePermission undocumented
+type RolePermission struct {
+ // Object is the base model of RolePermission
+ Object
+ // Actions Allowed Actions - Deprecated
+ Actions []string `json:"actions,omitempty"`
+ // ResourceActions Resource Actions each containing a set of allowed and not allowed permissions.
+ ResourceActions []ResourceAction `json:"resourceActions,omitempty"`
+}
+
+// RoleScopeTag Role Scope Tag
+type RoleScopeTag struct {
+ // Entity is the base model of RoleScopeTag
+ Entity
+ // DisplayName The display or friendly name of the Role Scope Tag.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the Role Scope Tag.
+ Description *string `json:"description,omitempty"`
+ // IsBuiltIn Description of the Role Scope Tag.
+ IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
+ // Assignments undocumented
+ Assignments []RoleScopeTagAutoAssignment `json:"assignments,omitempty"`
+}
+
+// RoleScopeTagAutoAssignment Contains the properties for auto-assigning a Role Scope Tag to a group to be applied to Devices.
+type RoleScopeTagAutoAssignment struct {
+ // Entity is the base model of RoleScopeTagAutoAssignment
+ Entity
+ // Target The auto-assignment target for the specific Role Scope Tag.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// RoleScopeTagInfo undocumented
+type RoleScopeTagInfo struct {
+ // Object is the base model of RoleScopeTagInfo
+ Object
+ // DisplayName Scope Tag Display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // RoleScopeTagID Scope Tag Id.
+ RoleScopeTagID *string `json:"roleScopeTagId,omitempty"`
+}
+
+// RoleSuccessStatistics undocumented
+type RoleSuccessStatistics struct {
+ // Object is the base model of RoleSuccessStatistics
+ Object
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // RoleName undocumented
+ RoleName *string `json:"roleName,omitempty"`
+ // TemporarySuccess undocumented
+ TemporarySuccess *int `json:"temporarySuccess,omitempty"`
+ // TemporaryFail undocumented
+ TemporaryFail *int `json:"temporaryFail,omitempty"`
+ // PermanentSuccess undocumented
+ PermanentSuccess *int `json:"permanentSuccess,omitempty"`
+ // PermanentFail undocumented
+ PermanentFail *int `json:"permanentFail,omitempty"`
+ // RemoveSuccess undocumented
+ RemoveSuccess *int `json:"removeSuccess,omitempty"`
+ // RemoveFail undocumented
+ RemoveFail *int `json:"removeFail,omitempty"`
+ // UnknownFail undocumented
+ UnknownFail *int `json:"unknownFail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoom.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoom.go
new file mode 100644
index 00000000..40cd7e49
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoom.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Room undocumented
+type Room struct {
+ // Place is the base model of Room
+ Place
+ // EmailAddress undocumented
+ EmailAddress *string `json:"emailAddress,omitempty"`
+ // Nickname undocumented
+ Nickname *string `json:"nickname,omitempty"`
+ // Building undocumented
+ Building *string `json:"building,omitempty"`
+ // FloorNumber undocumented
+ FloorNumber *int `json:"floorNumber,omitempty"`
+ // Label undocumented
+ Label *string `json:"label,omitempty"`
+ // Capacity undocumented
+ Capacity *int `json:"capacity,omitempty"`
+ // BookingType undocumented
+ BookingType *BookingType `json:"bookingType,omitempty"`
+ // AudioDeviceName undocumented
+ AudioDeviceName *string `json:"audioDeviceName,omitempty"`
+ // VideoDeviceName undocumented
+ VideoDeviceName *string `json:"videoDeviceName,omitempty"`
+ // DisplayDeviceName undocumented
+ DisplayDeviceName *string `json:"displayDeviceName,omitempty"`
+ // IsWheelChairAccessible undocumented
+ IsWheelChairAccessible *bool `json:"isWheelChairAccessible,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // FloorLabel undocumented
+ FloorLabel *string `json:"floorLabel,omitempty"`
+}
+
+// RoomList undocumented
+type RoomList struct {
+ // Place is the base model of RoomList
+ Place
+ // EmailAddress undocumented
+ EmailAddress *string `json:"emailAddress,omitempty"`
+ // Rooms undocumented
+ Rooms []Room `json:"rooms,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoot.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoot.go
new file mode 100644
index 00000000..7c19a720
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRoot.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Root undocumented
+type Root struct {
+ // Object is the base model of Root
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRotate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRotate.go
new file mode 100644
index 00000000..d203e7bd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRotate.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RotateBitLockerKeysDeviceActionResult undocumented
+type RotateBitLockerKeysDeviceActionResult struct {
+ // DeviceActionResult is the base model of RotateBitLockerKeysDeviceActionResult
+ DeviceActionResult
+ // ErrorCode RotateBitLockerKeys action error code
+ ErrorCode *int `json:"errorCode,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRubric.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRubric.go
new file mode 100644
index 00000000..9d5643fd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRubric.go
@@ -0,0 +1,61 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RubricCriterion undocumented
+type RubricCriterion struct {
+ // Object is the base model of RubricCriterion
+ Object
+ // Description undocumented
+ Description *EducationItemBody `json:"description,omitempty"`
+}
+
+// RubricLevel undocumented
+type RubricLevel struct {
+ // Object is the base model of RubricLevel
+ Object
+ // LevelID undocumented
+ LevelID *string `json:"levelId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *EducationItemBody `json:"description,omitempty"`
+ // Grading undocumented
+ Grading *EducationAssignmentGradeType `json:"grading,omitempty"`
+}
+
+// RubricQuality undocumented
+type RubricQuality struct {
+ // Object is the base model of RubricQuality
+ Object
+ // QualityID undocumented
+ QualityID *string `json:"qualityId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *EducationItemBody `json:"description,omitempty"`
+ // Weight undocumented
+ Weight *float64 `json:"weight,omitempty"`
+ // Criteria undocumented
+ Criteria []RubricCriterion `json:"criteria,omitempty"`
+}
+
+// RubricQualityFeedbackModel undocumented
+type RubricQualityFeedbackModel struct {
+ // Object is the base model of RubricQualityFeedbackModel
+ Object
+ // QualityID undocumented
+ QualityID *string `json:"qualityId,omitempty"`
+ // Feedback undocumented
+ Feedback *EducationItemBody `json:"feedback,omitempty"`
+}
+
+// RubricQualitySelectedColumnModel undocumented
+type RubricQualitySelectedColumnModel struct {
+ // Object is the base model of RubricQualitySelectedColumnModel
+ Object
+ // QualityID undocumented
+ QualityID *string `json:"qualityId,omitempty"`
+ // ColumnID undocumented
+ ColumnID *string `json:"columnId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelRun.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRun.go
new file mode 100644
index 00000000..d80439e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelRun.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// RunSchedule undocumented
+type RunSchedule struct {
+ // Object is the base model of RunSchedule
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSales.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSales.go
new file mode 100644
index 00000000..9f617a09
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSales.go
@@ -0,0 +1,531 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SalesCreditMemo undocumented
+type SalesCreditMemo struct {
+ // Entity is the base model of SalesCreditMemo
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // CreditMemoDate undocumented
+ CreditMemoDate *Date `json:"creditMemoDate,omitempty"`
+ // DueDate undocumented
+ DueDate *Date `json:"dueDate,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // BillToName undocumented
+ BillToName *string `json:"billToName,omitempty"`
+ // BillToCustomerID undocumented
+ BillToCustomerID *UUID `json:"billToCustomerId,omitempty"`
+ // BillToCustomerNumber undocumented
+ BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"`
+ // SellingPostalAddress undocumented
+ SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"`
+ // BillingPostalAddress undocumented
+ BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // Salesperson undocumented
+ Salesperson *string `json:"salesperson,omitempty"`
+ // PricesIncludeTax undocumented
+ PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // InvoiceID undocumented
+ InvoiceID *UUID `json:"invoiceId,omitempty"`
+ // InvoiceNumber undocumented
+ InvoiceNumber *string `json:"invoiceNumber,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // SalesCreditMemoLines undocumented
+ SalesCreditMemoLines []SalesCreditMemoLine `json:"salesCreditMemoLines,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+}
+
+// SalesCreditMemoLine undocumented
+type SalesCreditMemoLine struct {
+ // Entity is the base model of SalesCreditMemoLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitOfMeasureID undocumented
+ UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // InvoiceDiscountAllocation undocumented
+ InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // ShipmentDate undocumented
+ ShipmentDate *Date `json:"shipmentDate,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
+
+// SalesInvoice undocumented
+type SalesInvoice struct {
+ // Entity is the base model of SalesInvoice
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // InvoiceDate undocumented
+ InvoiceDate *Date `json:"invoiceDate,omitempty"`
+ // DueDate undocumented
+ DueDate *Date `json:"dueDate,omitempty"`
+ // CustomerPurchaseOrderReference undocumented
+ CustomerPurchaseOrderReference *string `json:"customerPurchaseOrderReference,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // BillToName undocumented
+ BillToName *string `json:"billToName,omitempty"`
+ // BillToCustomerID undocumented
+ BillToCustomerID *UUID `json:"billToCustomerId,omitempty"`
+ // BillToCustomerNumber undocumented
+ BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"`
+ // ShipToName undocumented
+ ShipToName *string `json:"shipToName,omitempty"`
+ // ShipToContact undocumented
+ ShipToContact *string `json:"shipToContact,omitempty"`
+ // SellingPostalAddress undocumented
+ SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"`
+ // BillingPostalAddress undocumented
+ BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"`
+ // ShippingPostalAddress undocumented
+ ShippingPostalAddress *PostalAddressType `json:"shippingPostalAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // OrderID undocumented
+ OrderID *UUID `json:"orderId,omitempty"`
+ // OrderNumber undocumented
+ OrderNumber *string `json:"orderNumber,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // ShipmentMethodID undocumented
+ ShipmentMethodID *UUID `json:"shipmentMethodId,omitempty"`
+ // Salesperson undocumented
+ Salesperson *string `json:"salesperson,omitempty"`
+ // PricesIncludeTax undocumented
+ PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // SalesInvoiceLines undocumented
+ SalesInvoiceLines []SalesInvoiceLine `json:"salesInvoiceLines,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+ // ShipmentMethod undocumented
+ ShipmentMethod *ShipmentMethod `json:"shipmentMethod,omitempty"`
+}
+
+// SalesInvoiceLine undocumented
+type SalesInvoiceLine struct {
+ // Entity is the base model of SalesInvoiceLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitOfMeasureID undocumented
+ UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // InvoiceDiscountAllocation undocumented
+ InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // ShipmentDate undocumented
+ ShipmentDate *Date `json:"shipmentDate,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
+
+// SalesOrder undocumented
+type SalesOrder struct {
+ // Entity is the base model of SalesOrder
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // OrderDate undocumented
+ OrderDate *Date `json:"orderDate,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // BillToName undocumented
+ BillToName *string `json:"billToName,omitempty"`
+ // BillToCustomerID undocumented
+ BillToCustomerID *UUID `json:"billToCustomerId,omitempty"`
+ // BillToCustomerNumber undocumented
+ BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"`
+ // ShipToName undocumented
+ ShipToName *string `json:"shipToName,omitempty"`
+ // ShipToContact undocumented
+ ShipToContact *string `json:"shipToContact,omitempty"`
+ // SellingPostalAddress undocumented
+ SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"`
+ // BillingPostalAddress undocumented
+ BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"`
+ // ShippingPostalAddress undocumented
+ ShippingPostalAddress *PostalAddressType `json:"shippingPostalAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PricesIncludeTax undocumented
+ PricesIncludeTax *bool `json:"pricesIncludeTax,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // Salesperson undocumented
+ Salesperson *string `json:"salesperson,omitempty"`
+ // PartialShipping undocumented
+ PartialShipping *bool `json:"partialShipping,omitempty"`
+ // RequestedDeliveryDate undocumented
+ RequestedDeliveryDate *Date `json:"requestedDeliveryDate,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // FullyShipped undocumented
+ FullyShipped *bool `json:"fullyShipped,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // SalesOrderLines undocumented
+ SalesOrderLines []SalesOrderLine `json:"salesOrderLines,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+}
+
+// SalesOrderLine undocumented
+type SalesOrderLine struct {
+ // Entity is the base model of SalesOrderLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitOfMeasureID undocumented
+ UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // InvoiceDiscountAllocation undocumented
+ InvoiceDiscountAllocation *int `json:"invoiceDiscountAllocation,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // ShipmentDate undocumented
+ ShipmentDate *Date `json:"shipmentDate,omitempty"`
+ // ShippedQuantity undocumented
+ ShippedQuantity *int `json:"shippedQuantity,omitempty"`
+ // InvoicedQuantity undocumented
+ InvoicedQuantity *int `json:"invoicedQuantity,omitempty"`
+ // InvoiceQuantity undocumented
+ InvoiceQuantity *int `json:"invoiceQuantity,omitempty"`
+ // ShipQuantity undocumented
+ ShipQuantity *int `json:"shipQuantity,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
+
+// SalesQuote undocumented
+type SalesQuote struct {
+ // Entity is the base model of SalesQuote
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // ExternalDocumentNumber undocumented
+ ExternalDocumentNumber *string `json:"externalDocumentNumber,omitempty"`
+ // DocumentDate undocumented
+ DocumentDate *Date `json:"documentDate,omitempty"`
+ // DueDate undocumented
+ DueDate *Date `json:"dueDate,omitempty"`
+ // CustomerID undocumented
+ CustomerID *UUID `json:"customerId,omitempty"`
+ // CustomerNumber undocumented
+ CustomerNumber *string `json:"customerNumber,omitempty"`
+ // CustomerName undocumented
+ CustomerName *string `json:"customerName,omitempty"`
+ // BillToName undocumented
+ BillToName *string `json:"billToName,omitempty"`
+ // BillToCustomerID undocumented
+ BillToCustomerID *UUID `json:"billToCustomerId,omitempty"`
+ // BillToCustomerNumber undocumented
+ BillToCustomerNumber *string `json:"billToCustomerNumber,omitempty"`
+ // ShipToName undocumented
+ ShipToName *string `json:"shipToName,omitempty"`
+ // ShipToContact undocumented
+ ShipToContact *string `json:"shipToContact,omitempty"`
+ // SellingPostalAddress undocumented
+ SellingPostalAddress *PostalAddressType `json:"sellingPostalAddress,omitempty"`
+ // BillingPostalAddress undocumented
+ BillingPostalAddress *PostalAddressType `json:"billingPostalAddress,omitempty"`
+ // ShippingPostalAddress undocumented
+ ShippingPostalAddress *PostalAddressType `json:"shippingPostalAddress,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // ShipmentMethodID undocumented
+ ShipmentMethodID *UUID `json:"shipmentMethodId,omitempty"`
+ // Salesperson undocumented
+ Salesperson *string `json:"salesperson,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // TotalAmountExcludingTax undocumented
+ TotalAmountExcludingTax *int `json:"totalAmountExcludingTax,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // TotalAmountIncludingTax undocumented
+ TotalAmountIncludingTax *int `json:"totalAmountIncludingTax,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // SentDate undocumented
+ SentDate *time.Time `json:"sentDate,omitempty"`
+ // ValidUntilDate undocumented
+ ValidUntilDate *Date `json:"validUntilDate,omitempty"`
+ // AcceptedDate undocumented
+ AcceptedDate *Date `json:"acceptedDate,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // SalesQuoteLines undocumented
+ SalesQuoteLines []SalesQuoteLine `json:"salesQuoteLines,omitempty"`
+ // Customer undocumented
+ Customer *Customer `json:"customer,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+ // ShipmentMethod undocumented
+ ShipmentMethod *ShipmentMethod `json:"shipmentMethod,omitempty"`
+}
+
+// SalesQuoteLine undocumented
+type SalesQuoteLine struct {
+ // Entity is the base model of SalesQuoteLine
+ Entity
+ // DocumentID undocumented
+ DocumentID *UUID `json:"documentId,omitempty"`
+ // Sequence undocumented
+ Sequence *int `json:"sequence,omitempty"`
+ // ItemID undocumented
+ ItemID *UUID `json:"itemId,omitempty"`
+ // AccountID undocumented
+ AccountID *UUID `json:"accountId,omitempty"`
+ // LineType undocumented
+ LineType *string `json:"lineType,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UnitOfMeasureID undocumented
+ UnitOfMeasureID *UUID `json:"unitOfMeasureId,omitempty"`
+ // UnitPrice undocumented
+ UnitPrice *int `json:"unitPrice,omitempty"`
+ // Quantity undocumented
+ Quantity *int `json:"quantity,omitempty"`
+ // DiscountAmount undocumented
+ DiscountAmount *int `json:"discountAmount,omitempty"`
+ // DiscountPercent undocumented
+ DiscountPercent *int `json:"discountPercent,omitempty"`
+ // DiscountAppliedBeforeTax undocumented
+ DiscountAppliedBeforeTax *bool `json:"discountAppliedBeforeTax,omitempty"`
+ // AmountExcludingTax undocumented
+ AmountExcludingTax *int `json:"amountExcludingTax,omitempty"`
+ // TaxCode undocumented
+ TaxCode *string `json:"taxCode,omitempty"`
+ // TaxPercent undocumented
+ TaxPercent *int `json:"taxPercent,omitempty"`
+ // TotalTaxAmount undocumented
+ TotalTaxAmount *int `json:"totalTaxAmount,omitempty"`
+ // AmountIncludingTax undocumented
+ AmountIncludingTax *int `json:"amountIncludingTax,omitempty"`
+ // NetAmount undocumented
+ NetAmount *int `json:"netAmount,omitempty"`
+ // NetTaxAmount undocumented
+ NetTaxAmount *int `json:"netTaxAmount,omitempty"`
+ // NetAmountIncludingTax undocumented
+ NetAmountIncludingTax *int `json:"netAmountIncludingTax,omitempty"`
+ // Item undocumented
+ Item *Item `json:"item,omitempty"`
+ // Account undocumented
+ Account *Account `json:"account,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchedule.go
new file mode 100644
index 00000000..f846bafd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchedule.go
@@ -0,0 +1,115 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Schedule undocumented
+type Schedule struct {
+ // Entity is the base model of Schedule
+ Entity
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+ // TimeZone undocumented
+ TimeZone *string `json:"timeZone,omitempty"`
+ // ProvisionStatus undocumented
+ ProvisionStatus *OperationStatus `json:"provisionStatus,omitempty"`
+ // ProvisionStatusCode undocumented
+ ProvisionStatusCode *string `json:"provisionStatusCode,omitempty"`
+ // WorkforceIntegrationIDs undocumented
+ WorkforceIntegrationIDs []string `json:"workforceIntegrationIds,omitempty"`
+ // TimeClockEnabled undocumented
+ TimeClockEnabled *bool `json:"timeClockEnabled,omitempty"`
+ // OpenShiftsEnabled undocumented
+ OpenShiftsEnabled *bool `json:"openShiftsEnabled,omitempty"`
+ // SwapShiftsRequestsEnabled undocumented
+ SwapShiftsRequestsEnabled *bool `json:"swapShiftsRequestsEnabled,omitempty"`
+ // OfferShiftRequestsEnabled undocumented
+ OfferShiftRequestsEnabled *bool `json:"offerShiftRequestsEnabled,omitempty"`
+ // TimeOffRequestsEnabled undocumented
+ TimeOffRequestsEnabled *bool `json:"timeOffRequestsEnabled,omitempty"`
+ // Shifts undocumented
+ Shifts []Shift `json:"shifts,omitempty"`
+ // OpenShifts undocumented
+ OpenShifts []OpenShift `json:"openShifts,omitempty"`
+ // TimesOff undocumented
+ TimesOff []TimeOff `json:"timesOff,omitempty"`
+ // TimeOffReasons undocumented
+ TimeOffReasons []TimeOffReason `json:"timeOffReasons,omitempty"`
+ // SchedulingGroups undocumented
+ SchedulingGroups []SchedulingGroup `json:"schedulingGroups,omitempty"`
+ // SwapShiftsChangeRequests undocumented
+ SwapShiftsChangeRequests []SwapShiftsChangeRequestObject `json:"swapShiftsChangeRequests,omitempty"`
+ // OpenShiftChangeRequests undocumented
+ OpenShiftChangeRequests []OpenShiftChangeRequestObject `json:"openShiftChangeRequests,omitempty"`
+ // TimeOffRequests undocumented
+ TimeOffRequests []TimeOffRequestObject `json:"timeOffRequests,omitempty"`
+}
+
+// ScheduleChangeRequestObject undocumented
+type ScheduleChangeRequestObject struct {
+ // ChangeTrackedEntity is the base model of ScheduleChangeRequestObject
+ ChangeTrackedEntity
+ // AssignedTo undocumented
+ AssignedTo *ScheduleChangeRequestActor `json:"assignedTo,omitempty"`
+ // State undocumented
+ State *ScheduleChangeState `json:"state,omitempty"`
+ // SenderMessage undocumented
+ SenderMessage *string `json:"senderMessage,omitempty"`
+ // SenderDateTime undocumented
+ SenderDateTime *time.Time `json:"senderDateTime,omitempty"`
+ // ManagerActionMessage undocumented
+ ManagerActionMessage *string `json:"managerActionMessage,omitempty"`
+ // ManagerActionDateTime undocumented
+ ManagerActionDateTime *time.Time `json:"managerActionDateTime,omitempty"`
+ // SenderUserID undocumented
+ SenderUserID *string `json:"senderUserId,omitempty"`
+ // ManagerUserID undocumented
+ ManagerUserID *string `json:"managerUserId,omitempty"`
+}
+
+// ScheduleEntity undocumented
+type ScheduleEntity struct {
+ // Object is the base model of ScheduleEntity
+ Object
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Theme undocumented
+ Theme *ScheduleEntityTheme `json:"theme,omitempty"`
+}
+
+// ScheduleInformation undocumented
+type ScheduleInformation struct {
+ // Object is the base model of ScheduleInformation
+ Object
+ // ScheduleID undocumented
+ ScheduleID *string `json:"scheduleId,omitempty"`
+ // ScheduleItems undocumented
+ ScheduleItems []ScheduleItem `json:"scheduleItems,omitempty"`
+ // AvailabilityView undocumented
+ AvailabilityView *string `json:"availabilityView,omitempty"`
+ // Error undocumented
+ Error *FreeBusyError `json:"error,omitempty"`
+ // WorkingHours undocumented
+ WorkingHours *WorkingHours `json:"workingHours,omitempty"`
+}
+
+// ScheduleItem undocumented
+type ScheduleItem struct {
+ // Object is the base model of ScheduleItem
+ Object
+ // Start undocumented
+ Start *DateTimeTimeZone `json:"start,omitempty"`
+ // End undocumented
+ End *DateTimeTimeZone `json:"end,omitempty"`
+ // IsPrivate undocumented
+ IsPrivate *bool `json:"isPrivate,omitempty"`
+ // Status undocumented
+ Status *FreeBusyStatus `json:"status,omitempty"`
+ // Subject undocumented
+ Subject *string `json:"subject,omitempty"`
+ // Location undocumented
+ Location *string `json:"location,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelScheduling.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelScheduling.go
new file mode 100644
index 00000000..12ca976a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelScheduling.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SchedulingGroup undocumented
+type SchedulingGroup struct {
+ // ChangeTrackedEntity is the base model of SchedulingGroup
+ ChangeTrackedEntity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+ // UserIDs undocumented
+ UserIDs []string `json:"userIds,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchema.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchema.go
new file mode 100644
index 00000000..fbe68b8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSchema.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Schema undocumented
+type Schema struct {
+ // Entity is the base model of Schema
+ Entity
+ // BaseType undocumented
+ BaseType *string `json:"baseType,omitempty"`
+ // Properties undocumented
+ Properties []Property `json:"properties,omitempty"`
+}
+
+// SchemaExtension undocumented
+type SchemaExtension struct {
+ // Entity is the base model of SchemaExtension
+ Entity
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // TargetTypes undocumented
+ TargetTypes []string `json:"targetTypes,omitempty"`
+ // Properties undocumented
+ Properties []ExtensionSchemaProperty `json:"properties,omitempty"`
+ // Status undocumented
+ Status *string `json:"status,omitempty"`
+ // Owner undocumented
+ Owner *string `json:"owner,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelScoped.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelScoped.go
new file mode 100644
index 00000000..78fabe4e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelScoped.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ScopedRoleMembership undocumented
+type ScopedRoleMembership struct {
+ // Entity is the base model of ScopedRoleMembership
+ Entity
+ // RoleID undocumented
+ RoleID *string `json:"roleId,omitempty"`
+ // AdministrativeUnitID undocumented
+ AdministrativeUnitID *string `json:"administrativeUnitId,omitempty"`
+ // RoleMemberInfo undocumented
+ RoleMemberInfo *Identity `json:"roleMemberInfo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSearch.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSearch.go
new file mode 100644
index 00000000..4aa68d09
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSearch.go
@@ -0,0 +1,91 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Search undocumented
+type Search struct {
+ // Entity is the base model of Search
+ Entity
+}
+
+// SearchHit undocumented
+type SearchHit struct {
+ // Object is the base model of SearchHit
+ Object
+ // _id undocumented
+ _id *string `json:"_id,omitempty"`
+ // _score undocumented
+ _score *int `json:"_score,omitempty"`
+ // _sortField undocumented
+ _sortField *string `json:"_sortField,omitempty"`
+ // _summary undocumented
+ _summary *string `json:"_summary,omitempty"`
+ // _source undocumented
+ _source *Entity `json:"_source,omitempty"`
+}
+
+// SearchHitsContainer undocumented
+type SearchHitsContainer struct {
+ // Object is the base model of SearchHitsContainer
+ Object
+ // Hits undocumented
+ Hits []SearchHit `json:"hits,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // MoreResultsAvailable undocumented
+ MoreResultsAvailable *bool `json:"moreResultsAvailable,omitempty"`
+}
+
+// SearchQuery undocumented
+type SearchQuery struct {
+ // Object is the base model of SearchQuery
+ Object
+ // Query_string undocumented
+ Query_string *SearchQueryString `json:"query_string,omitempty"`
+}
+
+// SearchQueryString undocumented
+type SearchQueryString struct {
+ // Object is the base model of SearchQueryString
+ Object
+ // Query undocumented
+ Query *string `json:"query,omitempty"`
+}
+
+// SearchRequestObject undocumented
+type SearchRequestObject struct {
+ // Object is the base model of SearchRequestObject
+ Object
+ // EntityTypes undocumented
+ EntityTypes []EntityType `json:"entityTypes,omitempty"`
+ // ContentSources undocumented
+ ContentSources []string `json:"contentSources,omitempty"`
+ // Query undocumented
+ Query *SearchQuery `json:"query,omitempty"`
+ // From undocumented
+ From *int `json:"from,omitempty"`
+ // Size undocumented
+ Size *int `json:"size,omitempty"`
+ // Stored_fields undocumented
+ Stored_fields []string `json:"stored_fields,omitempty"`
+ // EnableTopResults undocumented
+ EnableTopResults *bool `json:"enableTopResults,omitempty"`
+}
+
+// SearchResponse undocumented
+type SearchResponse struct {
+ // Object is the base model of SearchResponse
+ Object
+ // SearchTerms undocumented
+ SearchTerms []string `json:"searchTerms,omitempty"`
+ // HitsContainers undocumented
+ HitsContainers []SearchHitsContainer `json:"hitsContainers,omitempty"`
+}
+
+// SearchResult undocumented
+type SearchResult struct {
+ // Object is the base model of SearchResult
+ Object
+ // OnClickTelemetryURL undocumented
+ OnClickTelemetryURL *string `json:"onClickTelemetryUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSection.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSection.go
new file mode 100644
index 00000000..3bebf9e6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSection.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SectionGroup undocumented
+type SectionGroup struct {
+ // OnenoteEntityHierarchyModel is the base model of SectionGroup
+ OnenoteEntityHierarchyModel
+ // SectionsURL undocumented
+ SectionsURL *string `json:"sectionsUrl,omitempty"`
+ // SectionGroupsURL undocumented
+ SectionGroupsURL *string `json:"sectionGroupsUrl,omitempty"`
+ // ParentNotebook undocumented
+ ParentNotebook *Notebook `json:"parentNotebook,omitempty"`
+ // ParentSectionGroup undocumented
+ ParentSectionGroup *SectionGroup `json:"parentSectionGroup,omitempty"`
+ // Sections undocumented
+ Sections []OnenoteSection `json:"sections,omitempty"`
+ // SectionGroups undocumented
+ SectionGroups []SectionGroup `json:"sectionGroups,omitempty"`
+}
+
+// SectionLinks undocumented
+type SectionLinks struct {
+ // Object is the base model of SectionLinks
+ Object
+ // OneNoteClientURL undocumented
+ OneNoteClientURL *ExternalLink `json:"oneNoteClientUrl,omitempty"`
+ // OneNoteWebURL undocumented
+ OneNoteWebURL *ExternalLink `json:"oneNoteWebUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecure.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecure.go
new file mode 100644
index 00000000..e55504e6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecure.go
@@ -0,0 +1,91 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SecureScore undocumented
+type SecureScore struct {
+ // Entity is the base model of SecureScore
+ Entity
+ // ActiveUserCount undocumented
+ ActiveUserCount *int `json:"activeUserCount,omitempty"`
+ // AverageComparativeScores undocumented
+ AverageComparativeScores []AverageComparativeScore `json:"averageComparativeScores,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // ControlScores undocumented
+ ControlScores []ControlScore `json:"controlScores,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CurrentScore undocumented
+ CurrentScore *float64 `json:"currentScore,omitempty"`
+ // EnabledServices undocumented
+ EnabledServices []string `json:"enabledServices,omitempty"`
+ // LicensedUserCount undocumented
+ LicensedUserCount *int `json:"licensedUserCount,omitempty"`
+ // MaxScore undocumented
+ MaxScore *float64 `json:"maxScore,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
+
+// SecureScoreControlProfile undocumented
+type SecureScoreControlProfile struct {
+ // Entity is the base model of SecureScoreControlProfile
+ Entity
+ // ActionType undocumented
+ ActionType *string `json:"actionType,omitempty"`
+ // ActionURL undocumented
+ ActionURL *string `json:"actionUrl,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // ComplianceInformation undocumented
+ ComplianceInformation []ComplianceInformation `json:"complianceInformation,omitempty"`
+ // ControlCategory undocumented
+ ControlCategory *string `json:"controlCategory,omitempty"`
+ // ControlStateUpdates undocumented
+ ControlStateUpdates []SecureScoreControlStateUpdate `json:"controlStateUpdates,omitempty"`
+ // Deprecated undocumented
+ Deprecated *bool `json:"deprecated,omitempty"`
+ // ImplementationCost undocumented
+ ImplementationCost *string `json:"implementationCost,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // MaxScore undocumented
+ MaxScore *float64 `json:"maxScore,omitempty"`
+ // Rank undocumented
+ Rank *int `json:"rank,omitempty"`
+ // Remediation undocumented
+ Remediation *string `json:"remediation,omitempty"`
+ // RemediationImpact undocumented
+ RemediationImpact *string `json:"remediationImpact,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+ // Threats undocumented
+ Threats []string `json:"threats,omitempty"`
+ // Tier undocumented
+ Tier *string `json:"tier,omitempty"`
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // UserImpact undocumented
+ UserImpact *string `json:"userImpact,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
+
+// SecureScoreControlStateUpdate undocumented
+type SecureScoreControlStateUpdate struct {
+ // Object is the base model of SecureScoreControlStateUpdate
+ Object
+ // AssignedTo undocumented
+ AssignedTo *string `json:"assignedTo,omitempty"`
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // UpdatedBy undocumented
+ UpdatedBy *string `json:"updatedBy,omitempty"`
+ // UpdatedDateTime undocumented
+ UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecurity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecurity.go
new file mode 100644
index 00000000..6d636d02
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSecurity.go
@@ -0,0 +1,193 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Security undocumented
+type Security struct {
+ // Entity is the base model of Security
+ Entity
+ // ProviderStatus undocumented
+ ProviderStatus []SecurityProviderStatus `json:"providerStatus,omitempty"`
+ // Alerts undocumented
+ Alerts []Alert `json:"alerts,omitempty"`
+ // CloudAppSecurityProfiles undocumented
+ CloudAppSecurityProfiles []CloudAppSecurityProfile `json:"cloudAppSecurityProfiles,omitempty"`
+ // DomainSecurityProfiles undocumented
+ DomainSecurityProfiles []DomainSecurityProfile `json:"domainSecurityProfiles,omitempty"`
+ // FileSecurityProfiles undocumented
+ FileSecurityProfiles []FileSecurityProfile `json:"fileSecurityProfiles,omitempty"`
+ // HostSecurityProfiles undocumented
+ HostSecurityProfiles []HostSecurityProfile `json:"hostSecurityProfiles,omitempty"`
+ // IPSecurityProfiles undocumented
+ IPSecurityProfiles []IPSecurityProfile `json:"ipSecurityProfiles,omitempty"`
+ // ProviderTenantSettings undocumented
+ ProviderTenantSettings []ProviderTenantSetting `json:"providerTenantSettings,omitempty"`
+ // SecureScoreControlProfiles undocumented
+ SecureScoreControlProfiles []SecureScoreControlProfile `json:"secureScoreControlProfiles,omitempty"`
+ // SecureScores undocumented
+ SecureScores []SecureScore `json:"secureScores,omitempty"`
+ // TiIndicators undocumented
+ TiIndicators []TiIndicator `json:"tiIndicators,omitempty"`
+ // UserSecurityProfiles undocumented
+ UserSecurityProfiles []UserSecurityProfile `json:"userSecurityProfiles,omitempty"`
+ // SecurityActions undocumented
+ SecurityActions []SecurityAction `json:"securityActions,omitempty"`
+}
+
+// SecurityAction undocumented
+type SecurityAction struct {
+ // Entity is the base model of SecurityAction
+ Entity
+ // ActionReason undocumented
+ ActionReason *string `json:"actionReason,omitempty"`
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // ClientContext undocumented
+ ClientContext *string `json:"clientContext,omitempty"`
+ // CompletedDateTime undocumented
+ CompletedDateTime *time.Time `json:"completedDateTime,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ErrorInfo undocumented
+ ErrorInfo *ResultInfo `json:"errorInfo,omitempty"`
+ // LastActionDateTime undocumented
+ LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Parameters undocumented
+ Parameters []KeyValuePair `json:"parameters,omitempty"`
+ // States undocumented
+ States []SecurityActionState `json:"states,omitempty"`
+ // Status undocumented
+ Status *OperationStatus `json:"status,omitempty"`
+ // User undocumented
+ User *string `json:"user,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
+
+// SecurityActionState undocumented
+type SecurityActionState struct {
+ // Object is the base model of SecurityActionState
+ Object
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // Status undocumented
+ Status *OperationStatus `json:"status,omitempty"`
+ // UpdatedDateTime undocumented
+ UpdatedDateTime *time.Time `json:"updatedDateTime,omitempty"`
+ // User undocumented
+ User *string `json:"user,omitempty"`
+}
+
+// SecurityBaselineCategoryStateSummary The security baseline per category compliance state summary for the security baseline of the account.
+type SecurityBaselineCategoryStateSummary struct {
+ // SecurityBaselineStateSummary is the base model of SecurityBaselineCategoryStateSummary
+ SecurityBaselineStateSummary
+ // DisplayName The category name
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// SecurityBaselineDeviceState The security baseline compliance state summary of the security baseline for a device.
+type SecurityBaselineDeviceState struct {
+ // Entity is the base model of SecurityBaselineDeviceState
+ Entity
+ // ManagedDeviceID Intune device id
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DeviceDisplayName Display name of the device
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserPrincipalName User Principal Name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // State Security baseline compliance state
+ State *SecurityBaselineComplianceState `json:"state,omitempty"`
+ // LastReportedDateTime Last modified date time of the policy report
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+}
+
+// SecurityBaselineSettingState The security baseline compliance state of a setting for a device
+type SecurityBaselineSettingState struct {
+ // Entity is the base model of SecurityBaselineSettingState
+ Entity
+ // SettingName The setting name that is being reported
+ SettingName *string `json:"settingName,omitempty"`
+ // State The compliance state of the security baseline setting
+ State *SecurityBaselineComplianceState `json:"state,omitempty"`
+ // SettingCategoryID The setting category id which this setting belongs to
+ SettingCategoryID *string `json:"settingCategoryId,omitempty"`
+}
+
+// SecurityBaselineState Security baseline state for a device.
+type SecurityBaselineState struct {
+ // Entity is the base model of SecurityBaselineState
+ Entity
+ // SecurityBaselineTemplateID The security baseline template id
+ SecurityBaselineTemplateID *string `json:"securityBaselineTemplateId,omitempty"`
+ // DisplayName The display name of the security baseline
+ DisplayName *string `json:"displayName,omitempty"`
+ // SettingStates undocumented
+ SettingStates []SecurityBaselineSettingState `json:"settingStates,omitempty"`
+}
+
+// SecurityBaselineStateSummary The security baseline compliance state summary for the security baseline of the account.
+type SecurityBaselineStateSummary struct {
+ // Entity is the base model of SecurityBaselineStateSummary
+ Entity
+ // SecureCount Number of secure devices
+ SecureCount *int `json:"secureCount,omitempty"`
+ // NotSecureCount Number of not secure devices
+ NotSecureCount *int `json:"notSecureCount,omitempty"`
+ // UnknownCount Number of unknown devices
+ UnknownCount *int `json:"unknownCount,omitempty"`
+ // ErrorCount Number of error devices
+ ErrorCount *int `json:"errorCount,omitempty"`
+ // ConflictCount Number of conflict devices
+ ConflictCount *int `json:"conflictCount,omitempty"`
+ // NotApplicableCount Number of not applicable devices
+ NotApplicableCount *int `json:"notApplicableCount,omitempty"`
+}
+
+// SecurityBaselineTemplate The security baseline template of the account
+type SecurityBaselineTemplate struct {
+ // DeviceManagementTemplate is the base model of SecurityBaselineTemplate
+ DeviceManagementTemplate
+ // DeviceStateSummary undocumented
+ DeviceStateSummary *SecurityBaselineStateSummary `json:"deviceStateSummary,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []SecurityBaselineDeviceState `json:"deviceStates,omitempty"`
+ // CategoryDeviceStateSummaries undocumented
+ CategoryDeviceStateSummaries []SecurityBaselineCategoryStateSummary `json:"categoryDeviceStateSummaries,omitempty"`
+}
+
+// SecurityProviderStatus undocumented
+type SecurityProviderStatus struct {
+ // Object is the base model of SecurityProviderStatus
+ Object
+ // Enabled undocumented
+ Enabled *bool `json:"enabled,omitempty"`
+ // Endpoint undocumented
+ Endpoint *string `json:"endpoint,omitempty"`
+ // Provider undocumented
+ Provider *string `json:"provider,omitempty"`
+ // Region undocumented
+ Region *string `json:"region,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
+
+// SecurityVendorInformation undocumented
+type SecurityVendorInformation struct {
+ // Object is the base model of SecurityVendorInformation
+ Object
+ // Provider undocumented
+ Provider *string `json:"provider,omitempty"`
+ // ProviderVersion undocumented
+ ProviderVersion *string `json:"providerVersion,omitempty"`
+ // SubProvider undocumented
+ SubProvider *string `json:"subProvider,omitempty"`
+ // Vendor undocumented
+ Vendor *string `json:"vendor,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitive.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitive.go
new file mode 100644
index 00000000..885a1fd8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitive.go
@@ -0,0 +1,47 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SensitiveContentEvidence undocumented
+type SensitiveContentEvidence struct {
+ // Object is the base model of SensitiveContentEvidence
+ Object
+ // Match undocumented
+ Match *string `json:"match,omitempty"`
+ // Offset undocumented
+ Offset *int `json:"offset,omitempty"`
+ // Length undocumented
+ Length *int `json:"length,omitempty"`
+}
+
+// SensitiveContentLocation undocumented
+type SensitiveContentLocation struct {
+ // Object is the base model of SensitiveContentLocation
+ Object
+ // IDMatch undocumented
+ IDMatch *string `json:"idMatch,omitempty"`
+ // Offset undocumented
+ Offset *int `json:"offset,omitempty"`
+ // Length undocumented
+ Length *int `json:"length,omitempty"`
+ // Evidences undocumented
+ Evidences []SensitiveContentEvidence `json:"evidences,omitempty"`
+}
+
+// SensitiveType undocumented
+type SensitiveType struct {
+ // Entity is the base model of SensitiveType
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // RulePackageID undocumented
+ RulePackageID *string `json:"rulePackageId,omitempty"`
+ // RulePackageType undocumented
+ RulePackageType *string `json:"rulePackageType,omitempty"`
+ // PublisherName undocumented
+ PublisherName *string `json:"publisherName,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitivity.go
new file mode 100644
index 00000000..0385085f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSensitivity.go
@@ -0,0 +1,45 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SensitivityLabel undocumented
+type SensitivityLabel struct {
+ // Entity is the base model of SensitivityLabel
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // ToolTip undocumented
+ ToolTip *string `json:"toolTip,omitempty"`
+ // IsEndpointProtectionEnabled undocumented
+ IsEndpointProtectionEnabled *bool `json:"isEndpointProtectionEnabled,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // ApplicationMode undocumented
+ ApplicationMode *ApplicationMode `json:"applicationMode,omitempty"`
+ // LabelActions undocumented
+ LabelActions []LabelActionBase `json:"labelActions,omitempty"`
+ // AssignedPolicies undocumented
+ AssignedPolicies []LabelPolicy `json:"assignedPolicies,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // AutoLabeling undocumented
+ AutoLabeling *AutoLabeling `json:"autoLabeling,omitempty"`
+ // Sublabels undocumented
+ Sublabels []SensitivityLabel `json:"sublabels,omitempty"`
+}
+
+// SensitivityPolicySettings undocumented
+type SensitivityPolicySettings struct {
+ // Entity is the base model of SensitivityPolicySettings
+ Entity
+ // IsMandatory undocumented
+ IsMandatory *bool `json:"isMandatory,omitempty"`
+ // HelpWebURL undocumented
+ HelpWebURL *string `json:"helpWebUrl,omitempty"`
+ // DowngradeSensitivityRequiresJustification undocumented
+ DowngradeSensitivityRequiresJustification *bool `json:"downgradeSensitivityRequiresJustification,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelService.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelService.go
new file mode 100644
index 00000000..c92a62b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelService.go
@@ -0,0 +1,107 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ServiceHostedMediaConfig undocumented
+type ServiceHostedMediaConfig struct {
+ // MediaConfig is the base model of ServiceHostedMediaConfig
+ MediaConfig
+ // PreFetchMedia undocumented
+ PreFetchMedia []MediaInfo `json:"preFetchMedia,omitempty"`
+}
+
+// ServiceInformation undocumented
+type ServiceInformation struct {
+ // Object is the base model of ServiceInformation
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
+
+// ServicePlanInfo undocumented
+type ServicePlanInfo struct {
+ // Object is the base model of ServicePlanInfo
+ Object
+ // ServicePlanID undocumented
+ ServicePlanID *UUID `json:"servicePlanId,omitempty"`
+ // ServicePlanName undocumented
+ ServicePlanName *string `json:"servicePlanName,omitempty"`
+ // ProvisioningStatus undocumented
+ ProvisioningStatus *string `json:"provisioningStatus,omitempty"`
+ // AppliesTo undocumented
+ AppliesTo *string `json:"appliesTo,omitempty"`
+}
+
+// ServicePrincipal undocumented
+type ServicePrincipal struct {
+ // DirectoryObject is the base model of ServicePrincipal
+ DirectoryObject
+ // AccountEnabled undocumented
+ AccountEnabled *bool `json:"accountEnabled,omitempty"`
+ // AddIns undocumented
+ AddIns []AddIn `json:"addIns,omitempty"`
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // ApplicationTemplateID undocumented
+ ApplicationTemplateID *string `json:"applicationTemplateId,omitempty"`
+ // AppOwnerOrganizationID undocumented
+ AppOwnerOrganizationID *UUID `json:"appOwnerOrganizationId,omitempty"`
+ // AppRoleAssignmentRequired undocumented
+ AppRoleAssignmentRequired *bool `json:"appRoleAssignmentRequired,omitempty"`
+ // AppRoles undocumented
+ AppRoles []AppRole `json:"appRoles,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Homepage undocumented
+ Homepage *string `json:"homepage,omitempty"`
+ // KeyCredentials undocumented
+ KeyCredentials []KeyCredential `json:"keyCredentials,omitempty"`
+ // Info undocumented
+ Info *InformationalURL `json:"info,omitempty"`
+ // LogoutURL undocumented
+ LogoutURL *string `json:"logoutUrl,omitempty"`
+ // NotificationEmailAddresses undocumented
+ NotificationEmailAddresses []string `json:"notificationEmailAddresses,omitempty"`
+ // PublishedPermissionScopes undocumented
+ PublishedPermissionScopes []PermissionScope `json:"publishedPermissionScopes,omitempty"`
+ // PasswordCredentials undocumented
+ PasswordCredentials []PasswordCredential `json:"passwordCredentials,omitempty"`
+ // PreferredTokenSigningKeyThumbprint undocumented
+ PreferredTokenSigningKeyThumbprint *string `json:"preferredTokenSigningKeyThumbprint,omitempty"`
+ // PublisherName undocumented
+ PublisherName *string `json:"publisherName,omitempty"`
+ // ReplyUrls undocumented
+ ReplyUrls []string `json:"replyUrls,omitempty"`
+ // SamlMetadataURL undocumented
+ SamlMetadataURL *string `json:"samlMetadataUrl,omitempty"`
+ // ServicePrincipalNames undocumented
+ ServicePrincipalNames []string `json:"servicePrincipalNames,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // AppRoleAssignedTo undocumented
+ AppRoleAssignedTo []AppRoleAssignment `json:"appRoleAssignedTo,omitempty"`
+ // AppRoleAssignments undocumented
+ AppRoleAssignments []AppRoleAssignment `json:"appRoleAssignments,omitempty"`
+ // Oauth2PermissionGrants undocumented
+ Oauth2PermissionGrants []OAuth2PermissionGrant `json:"oauth2PermissionGrants,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+ // CreatedObjects undocumented
+ CreatedObjects []DirectoryObject `json:"createdObjects,omitempty"`
+ // LicenseDetails undocumented
+ LicenseDetails []LicenseDetails `json:"licenseDetails,omitempty"`
+ // Owners undocumented
+ Owners []DirectoryObject `json:"owners,omitempty"`
+ // OwnedObjects undocumented
+ OwnedObjects []DirectoryObject `json:"ownedObjects,omitempty"`
+ // Policies undocumented
+ Policies []DirectoryObject `json:"policies,omitempty"`
+ // Synchronization undocumented
+ Synchronization *Synchronization `json:"synchronization,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSetting.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSetting.go
new file mode 100644
index 00000000..ad6e5dbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSetting.go
@@ -0,0 +1,61 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SettingSource undocumented
+type SettingSource struct {
+ // Object is the base model of SettingSource
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
+
+// SettingStateDeviceSummary Device Compilance Policy and Configuration for a Setting State summary
+type SettingStateDeviceSummary struct {
+ // Entity is the base model of SettingStateDeviceSummary
+ Entity
+ // SettingName Name of the setting
+ SettingName *string `json:"settingName,omitempty"`
+ // InstancePath Name of the InstancePath for the setting
+ InstancePath *string `json:"instancePath,omitempty"`
+ // UnknownDeviceCount Device Unkown count for the setting
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Device Not Applicable count for the setting
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantDeviceCount Device Compliant count for the setting
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Device Compliant count for the setting
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Device NonCompliant count for the setting
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // ErrorDeviceCount Device error count for the setting
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // ConflictDeviceCount Device conflict error count for the setting
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+}
+
+// SettingTemplateValue undocumented
+type SettingTemplateValue struct {
+ // Object is the base model of SettingTemplateValue
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // DefaultValue undocumented
+ DefaultValue *string `json:"defaultValue,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+}
+
+// SettingValue undocumented
+type SettingValue struct {
+ // Object is the base model of SettingValue
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSettings.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSettings.go
new file mode 100644
index 00000000..fb153674
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSettings.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Settings undocumented
+type Settings struct {
+ // Object is the base model of Settings
+ Object
+ // HasLicense undocumented
+ HasLicense *bool `json:"hasLicense,omitempty"`
+ // HasOptedOut undocumented
+ HasOptedOut *bool `json:"hasOptedOut,omitempty"`
+ // HasGraphMailbox undocumented
+ HasGraphMailbox *bool `json:"hasGraphMailbox,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelShare.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShare.go
new file mode 100644
index 00000000..b3f327b1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShare.go
@@ -0,0 +1,165 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ShareAction undocumented
+type ShareAction struct {
+ // Object is the base model of ShareAction
+ Object
+ // Recipients undocumented
+ Recipients []IdentitySet `json:"recipients,omitempty"`
+}
+
+// SharePointActivityPages undocumented
+type SharePointActivityPages struct {
+ // Entity is the base model of SharePointActivityPages
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // VisitedPageCount undocumented
+ VisitedPageCount *int `json:"visitedPageCount,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SharePointActivityUserCounts undocumented
+type SharePointActivityUserCounts struct {
+ // Entity is the base model of SharePointActivityUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // VisitedPage undocumented
+ VisitedPage *int `json:"visitedPage,omitempty"`
+ // ViewedOrEdited undocumented
+ ViewedOrEdited *int `json:"viewedOrEdited,omitempty"`
+ // Synced undocumented
+ Synced *int `json:"synced,omitempty"`
+ // SharedInternally undocumented
+ SharedInternally *int `json:"sharedInternally,omitempty"`
+ // SharedExternally undocumented
+ SharedExternally *int `json:"sharedExternally,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SharePointActivityUserDetail undocumented
+type SharePointActivityUserDetail struct {
+ // Entity is the base model of SharePointActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *Date `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // ViewedOrEditedFileCount undocumented
+ ViewedOrEditedFileCount *int `json:"viewedOrEditedFileCount,omitempty"`
+ // SyncedFileCount undocumented
+ SyncedFileCount *int `json:"syncedFileCount,omitempty"`
+ // SharedInternallyFileCount undocumented
+ SharedInternallyFileCount *int `json:"sharedInternallyFileCount,omitempty"`
+ // SharedExternallyFileCount undocumented
+ SharedExternallyFileCount *int `json:"sharedExternallyFileCount,omitempty"`
+ // VisitedPageCount undocumented
+ VisitedPageCount *int `json:"visitedPageCount,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SharePointSiteUsageDetail undocumented
+type SharePointSiteUsageDetail struct {
+ // Entity is the base model of SharePointSiteUsageDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // SiteID undocumented
+ SiteID *UUID `json:"siteId,omitempty"`
+ // SiteURL undocumented
+ SiteURL *string `json:"siteUrl,omitempty"`
+ // OwnerDisplayName undocumented
+ OwnerDisplayName *string `json:"ownerDisplayName,omitempty"`
+ // OwnerPrincipalName undocumented
+ OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // FileCount undocumented
+ FileCount *int `json:"fileCount,omitempty"`
+ // ActiveFileCount undocumented
+ ActiveFileCount *int `json:"activeFileCount,omitempty"`
+ // PageViewCount undocumented
+ PageViewCount *int `json:"pageViewCount,omitempty"`
+ // VisitedPageCount undocumented
+ VisitedPageCount *int `json:"visitedPageCount,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // StorageAllocatedInBytes undocumented
+ StorageAllocatedInBytes *int `json:"storageAllocatedInBytes,omitempty"`
+ // RootWebTemplate undocumented
+ RootWebTemplate *string `json:"rootWebTemplate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SharePointSiteUsageFileCounts undocumented
+type SharePointSiteUsageFileCounts struct {
+ // Entity is the base model of SharePointSiteUsageFileCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SharePointSiteUsagePages undocumented
+type SharePointSiteUsagePages struct {
+ // Entity is the base model of SharePointSiteUsagePages
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // PageViewCount undocumented
+ PageViewCount *int `json:"pageViewCount,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SharePointSiteUsageSiteCounts undocumented
+type SharePointSiteUsageSiteCounts struct {
+ // Entity is the base model of SharePointSiteUsageSiteCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelShared.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShared.go
new file mode 100644
index 00000000..4e093a82
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShared.go
@@ -0,0 +1,129 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Shared undocumented
+type Shared struct {
+ // Object is the base model of Shared
+ Object
+ // Owner undocumented
+ Owner *IdentitySet `json:"owner,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+ // SharedBy undocumented
+ SharedBy *IdentitySet `json:"sharedBy,omitempty"`
+ // SharedDateTime undocumented
+ SharedDateTime *time.Time `json:"sharedDateTime,omitempty"`
+}
+
+// SharedAppleDeviceUser undocumented
+type SharedAppleDeviceUser struct {
+ // Object is the base model of SharedAppleDeviceUser
+ Object
+ // UserPrincipalName User name
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DataToSync Data to sync
+ DataToSync *bool `json:"dataToSync,omitempty"`
+ // DataQuota Data quota
+ DataQuota *int `json:"dataQuota,omitempty"`
+ // DataUsed Data quota
+ DataUsed *int `json:"dataUsed,omitempty"`
+}
+
+// SharedDriveItem undocumented
+type SharedDriveItem struct {
+ // BaseItem is the base model of SharedDriveItem
+ BaseItem
+ // Owner undocumented
+ Owner *IdentitySet `json:"owner,omitempty"`
+ // DriveItem undocumented
+ DriveItem *DriveItem `json:"driveItem,omitempty"`
+ // Items undocumented
+ Items []DriveItem `json:"items,omitempty"`
+ // List undocumented
+ List *List `json:"list,omitempty"`
+ // ListItem undocumented
+ ListItem *ListItem `json:"listItem,omitempty"`
+ // Permission undocumented
+ Permission *Permission `json:"permission,omitempty"`
+ // Root undocumented
+ Root *DriveItem `json:"root,omitempty"`
+ // Site undocumented
+ Site *Site `json:"site,omitempty"`
+}
+
+// SharedInsight undocumented
+type SharedInsight struct {
+ // Entity is the base model of SharedInsight
+ Entity
+ // LastShared undocumented
+ LastShared *SharingDetail `json:"lastShared,omitempty"`
+ // SharingHistory undocumented
+ SharingHistory []SharingDetail `json:"sharingHistory,omitempty"`
+ // ResourceVisualization undocumented
+ ResourceVisualization *ResourceVisualization `json:"resourceVisualization,omitempty"`
+ // ResourceReference undocumented
+ ResourceReference *ResourceReference `json:"resourceReference,omitempty"`
+ // LastSharedMethod undocumented
+ LastSharedMethod *Entity `json:"lastSharedMethod,omitempty"`
+ // Resource undocumented
+ Resource *Entity `json:"resource,omitempty"`
+}
+
+// SharedPCAccountManagerPolicy undocumented
+type SharedPCAccountManagerPolicy struct {
+ // Object is the base model of SharedPCAccountManagerPolicy
+ Object
+ // AccountDeletionPolicy Configures when accounts are deleted.
+ AccountDeletionPolicy *SharedPCAccountDeletionPolicyType `json:"accountDeletionPolicy,omitempty"`
+ // CacheAccountsAboveDiskFreePercentage Sets the percentage of available disk space a PC should have before it stops deleting cached shared PC accounts. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100
+ CacheAccountsAboveDiskFreePercentage *int `json:"cacheAccountsAboveDiskFreePercentage,omitempty"`
+ // InactiveThresholdDays Specifies when the accounts will start being deleted when they have not been logged on during the specified period, given as number of days. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold.
+ InactiveThresholdDays *int `json:"inactiveThresholdDays,omitempty"`
+ // RemoveAccountsBelowDiskFreePercentage Sets the percentage of disk space remaining on a PC before cached accounts will be deleted to free disk space. Accounts that have been inactive the longest will be deleted first. Only applies when AccountDeletionPolicy is DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100
+ RemoveAccountsBelowDiskFreePercentage *int `json:"removeAccountsBelowDiskFreePercentage,omitempty"`
+}
+
+// SharedPCConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the sharedPCConfiguration resource.
+type SharedPCConfiguration struct {
+ // DeviceConfiguration is the base model of SharedPCConfiguration
+ DeviceConfiguration
+ // AccountManagerPolicy Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false.
+ AccountManagerPolicy *SharedPCAccountManagerPolicy `json:"accountManagerPolicy,omitempty"`
+ // AllowedAccounts Indicates which type of accounts are allowed to use on a shared PC.
+ AllowedAccounts *SharedPCAllowedAccountType `json:"allowedAccounts,omitempty"`
+ // LocalStorage Specifies whether local storage is allowed on a shared PC.
+ LocalStorage *Enablement `json:"localStorage,omitempty"`
+ // AllowLocalStorage Specifies whether local storage is allowed on a shared PC.
+ AllowLocalStorage *bool `json:"allowLocalStorage,omitempty"`
+ // SetAccountManager Disables the account manager for shared PC mode.
+ SetAccountManager *Enablement `json:"setAccountManager,omitempty"`
+ // DisableAccountManager Disables the account manager for shared PC mode.
+ DisableAccountManager *bool `json:"disableAccountManager,omitempty"`
+ // SetEduPolicies Specifies whether the default shared PC education environment policies should be enabled/disabled/not configured. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.
+ SetEduPolicies *Enablement `json:"setEduPolicies,omitempty"`
+ // DisableEduPolicies Specifies whether the default shared PC education environment policies should be disabled. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.
+ DisableEduPolicies *bool `json:"disableEduPolicies,omitempty"`
+ // SetPowerPolicies Specifies whether the default shared PC power policies should be enabled/disabled.
+ SetPowerPolicies *Enablement `json:"setPowerPolicies,omitempty"`
+ // DisablePowerPolicies Specifies whether the default shared PC power policies should be disabled.
+ DisablePowerPolicies *bool `json:"disablePowerPolicies,omitempty"`
+ // SignInOnResume Specifies the requirement to sign in whenever the device wakes up from sleep mode.
+ SignInOnResume *Enablement `json:"signInOnResume,omitempty"`
+ // DisableSignInOnResume Disables the requirement to sign in whenever the device wakes up from sleep mode.
+ DisableSignInOnResume *bool `json:"disableSignInOnResume,omitempty"`
+ // Enabled Enables shared PC mode and applies the shared pc policies.
+ Enabled *bool `json:"enabled,omitempty"`
+ // IdleTimeBeforeSleepInSeconds Specifies the time in seconds that a device must sit idle before the PC goes to sleep. Setting this value to 0 prevents the sleep timeout from occurring.
+ IdleTimeBeforeSleepInSeconds *int `json:"idleTimeBeforeSleepInSeconds,omitempty"`
+ // KioskAppDisplayName Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId. Only applies when KioskAppUserModelId is set.
+ KioskAppDisplayName *string `json:"kioskAppDisplayName,omitempty"`
+ // KioskAppUserModelID Specifies the application user model ID of the app to use with assigned access.
+ KioskAppUserModelID *string `json:"kioskAppUserModelId,omitempty"`
+ // MaintenanceStartTime Specifies the daily start time of maintenance hour.
+ MaintenanceStartTime *TimeOfDay `json:"maintenanceStartTime,omitempty"`
+ // FastFirstSignIn Specifies whether to auto connect new non-admin Azure AD accounts to pre-configured candidate local accounts
+ FastFirstSignIn *Enablement `json:"fastFirstSignIn,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharepoint.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharepoint.go
new file mode 100644
index 00000000..a2d419ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharepoint.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SharepointIDs undocumented
+type SharepointIDs struct {
+ // Object is the base model of SharepointIDs
+ Object
+ // ListID undocumented
+ ListID *string `json:"listId,omitempty"`
+ // ListItemID undocumented
+ ListItemID *string `json:"listItemId,omitempty"`
+ // ListItemUniqueID undocumented
+ ListItemUniqueID *string `json:"listItemUniqueId,omitempty"`
+ // SiteID undocumented
+ SiteID *string `json:"siteId,omitempty"`
+ // SiteURL undocumented
+ SiteURL *string `json:"siteUrl,omitempty"`
+ // TenantID undocumented
+ TenantID *string `json:"tenantId,omitempty"`
+ // WebID undocumented
+ WebID *string `json:"webId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharing.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharing.go
new file mode 100644
index 00000000..4067665d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSharing.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SharingDetail undocumented
+type SharingDetail struct {
+ // Object is the base model of SharingDetail
+ Object
+ // SharedBy undocumented
+ SharedBy *InsightIdentity `json:"sharedBy,omitempty"`
+ // SharedDateTime undocumented
+ SharedDateTime *time.Time `json:"sharedDateTime,omitempty"`
+ // SharingSubject undocumented
+ SharingSubject *string `json:"sharingSubject,omitempty"`
+ // SharingType undocumented
+ SharingType *string `json:"sharingType,omitempty"`
+ // SharingReference undocumented
+ SharingReference *ResourceReference `json:"sharingReference,omitempty"`
+}
+
+// SharingInvitation undocumented
+type SharingInvitation struct {
+ // Object is the base model of SharingInvitation
+ Object
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // InvitedBy undocumented
+ InvitedBy *IdentitySet `json:"invitedBy,omitempty"`
+ // RedeemedBy undocumented
+ RedeemedBy *string `json:"redeemedBy,omitempty"`
+ // SignInRequired undocumented
+ SignInRequired *bool `json:"signInRequired,omitempty"`
+}
+
+// SharingLink undocumented
+type SharingLink struct {
+ // Object is the base model of SharingLink
+ Object
+ // Application undocumented
+ Application *Identity `json:"application,omitempty"`
+ // PreventsDownload undocumented
+ PreventsDownload *bool `json:"preventsDownload,omitempty"`
+ // ConfiguratorURL undocumented
+ ConfiguratorURL *string `json:"configuratorUrl,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // WebHTML undocumented
+ WebHTML *string `json:"webHtml,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelShift.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShift.go
new file mode 100644
index 00000000..2fd0de15
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShift.go
@@ -0,0 +1,63 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Shift undocumented
+type Shift struct {
+ // ChangeTrackedEntity is the base model of Shift
+ ChangeTrackedEntity
+ // SharedShift undocumented
+ SharedShift *ShiftItem `json:"sharedShift,omitempty"`
+ // DraftShift undocumented
+ DraftShift *ShiftItem `json:"draftShift,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // SchedulingGroupID undocumented
+ SchedulingGroupID *string `json:"schedulingGroupId,omitempty"`
+}
+
+// ShiftActivity undocumented
+type ShiftActivity struct {
+ // Object is the base model of ShiftActivity
+ Object
+ // IsPaid undocumented
+ IsPaid *bool `json:"isPaid,omitempty"`
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Theme undocumented
+ Theme *ScheduleEntityTheme `json:"theme,omitempty"`
+}
+
+// ShiftChangeRequestObject undocumented
+type ShiftChangeRequestObject struct {
+ // ScheduleChangeRequestObject is the base model of ShiftChangeRequestObject
+ ScheduleChangeRequestObject
+ // RecipientActionMessage undocumented
+ RecipientActionMessage *string `json:"recipientActionMessage,omitempty"`
+ // RecipientActionDateTime undocumented
+ RecipientActionDateTime *time.Time `json:"recipientActionDateTime,omitempty"`
+ // SenderShiftID undocumented
+ SenderShiftID *string `json:"senderShiftId,omitempty"`
+ // RecipientUserID undocumented
+ RecipientUserID *string `json:"recipientUserId,omitempty"`
+}
+
+// ShiftItem undocumented
+type ShiftItem struct {
+ // ScheduleEntity is the base model of ShiftItem
+ ScheduleEntity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Notes undocumented
+ Notes *string `json:"notes,omitempty"`
+ // Activities undocumented
+ Activities []ShiftActivity `json:"activities,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelShipment.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShipment.go
new file mode 100644
index 00000000..06a0985c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelShipment.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ShipmentMethod undocumented
+type ShipmentMethod struct {
+ // Entity is the base model of ShipmentMethod
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSide.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSide.go
new file mode 100644
index 00000000..13e64b1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSide.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SideLoadingKey SideLoadingKey entity is required for Windows 8 and 8.1 devices to intall Line Of Business Apps for a tenant.
+type SideLoadingKey struct {
+ // Entity is the base model of SideLoadingKey
+ Entity
+ // Value Side Loading Key Value, it is 5x5 value, seperated by hiphens.
+ Value *string `json:"value,omitempty"`
+ // DisplayName Side Loading Key Name displayed to the ITPro Admins.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Side Loading Key description displayed to the ITPro Admins..
+ Description *string `json:"description,omitempty"`
+ // TotalActivation Side Loading Key Total Activation displayed to the ITPro Admins.
+ TotalActivation *int `json:"totalActivation,omitempty"`
+ // LastUpdatedDateTime Side Loading Key Last Updated Date displayed to the ITPro Admins.
+ LastUpdatedDateTime *string `json:"lastUpdatedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSign.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSign.go
new file mode 100644
index 00000000..60a20ac3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSign.go
@@ -0,0 +1,129 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SignIn undocumented
+type SignIn struct {
+ // Entity is the base model of SignIn
+ Entity
+ // AlternateSignInName undocumented
+ AlternateSignInName *string `json:"alternateSignInName,omitempty"`
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // AppID undocumented
+ AppID *string `json:"appId,omitempty"`
+ // AppliedConditionalAccessPolicies undocumented
+ AppliedConditionalAccessPolicies []AppliedConditionalAccessPolicy `json:"appliedConditionalAccessPolicies,omitempty"`
+ // AuthenticationDetails undocumented
+ AuthenticationDetails []AuthenticationDetail `json:"authenticationDetails,omitempty"`
+ // AuthenticationMethodsUsed undocumented
+ AuthenticationMethodsUsed []string `json:"authenticationMethodsUsed,omitempty"`
+ // AuthenticationProcessingDetails undocumented
+ AuthenticationProcessingDetails []KeyValue `json:"authenticationProcessingDetails,omitempty"`
+ // AuthenticationRequirementPolicies undocumented
+ AuthenticationRequirementPolicies []AuthenticationRequirementPolicy `json:"authenticationRequirementPolicies,omitempty"`
+ // ClientAppUsed undocumented
+ ClientAppUsed *string `json:"clientAppUsed,omitempty"`
+ // ConditionalAccessStatus undocumented
+ ConditionalAccessStatus *ConditionalAccessStatus `json:"conditionalAccessStatus,omitempty"`
+ // CorrelationID undocumented
+ CorrelationID *string `json:"correlationId,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DeviceDetail undocumented
+ DeviceDetail *DeviceDetail `json:"deviceDetail,omitempty"`
+ // IsInteractive undocumented
+ IsInteractive *bool `json:"isInteractive,omitempty"`
+ // IPAddress undocumented
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // Location undocumented
+ Location *SignInLocation `json:"location,omitempty"`
+ // MFADetail undocumented
+ MFADetail *MFADetail `json:"mfaDetail,omitempty"`
+ // NetworkLocationDetails undocumented
+ NetworkLocationDetails []NetworkLocationDetail `json:"networkLocationDetails,omitempty"`
+ // OriginalRequestID undocumented
+ OriginalRequestID *string `json:"originalRequestId,omitempty"`
+ // ProcessingTimeInMilliseconds undocumented
+ ProcessingTimeInMilliseconds *int `json:"processingTimeInMilliseconds,omitempty"`
+ // RiskDetail undocumented
+ RiskDetail *RiskDetail `json:"riskDetail,omitempty"`
+ // RiskEventTypes undocumented
+ RiskEventTypes []RiskEventType `json:"riskEventTypes,omitempty"`
+ // RiskLevelAggregated undocumented
+ RiskLevelAggregated *RiskLevel `json:"riskLevelAggregated,omitempty"`
+ // RiskLevelDuringSignIn undocumented
+ RiskLevelDuringSignIn *RiskLevel `json:"riskLevelDuringSignIn,omitempty"`
+ // RiskState undocumented
+ RiskState *RiskState `json:"riskState,omitempty"`
+ // ResourceDisplayName undocumented
+ ResourceDisplayName *string `json:"resourceDisplayName,omitempty"`
+ // ResourceID undocumented
+ ResourceID *string `json:"resourceId,omitempty"`
+ // ServicePrincipalID undocumented
+ ServicePrincipalID *string `json:"servicePrincipalId,omitempty"`
+ // ServicePrincipalName undocumented
+ ServicePrincipalName *string `json:"servicePrincipalName,omitempty"`
+ // Status undocumented
+ Status *SignInStatus `json:"status,omitempty"`
+ // TokenIssuerName undocumented
+ TokenIssuerName *string `json:"tokenIssuerName,omitempty"`
+ // TokenIssuerType undocumented
+ TokenIssuerType *TokenIssuerType `json:"tokenIssuerType,omitempty"`
+ // UserAgent undocumented
+ UserAgent *string `json:"userAgent,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// SignInActivity undocumented
+type SignInActivity struct {
+ // Object is the base model of SignInActivity
+ Object
+ // LastSignInDateTime undocumented
+ LastSignInDateTime *time.Time `json:"lastSignInDateTime,omitempty"`
+ // LastSignInRequestID undocumented
+ LastSignInRequestID *string `json:"lastSignInRequestId,omitempty"`
+}
+
+// SignInFrequencySessionControl undocumented
+type SignInFrequencySessionControl struct {
+ // ConditionalAccessSessionControl is the base model of SignInFrequencySessionControl
+ ConditionalAccessSessionControl
+ // Value undocumented
+ Value *int `json:"value,omitempty"`
+ // Type undocumented
+ Type *SigninFrequencyType `json:"type,omitempty"`
+}
+
+// SignInLocation undocumented
+type SignInLocation struct {
+ // Object is the base model of SignInLocation
+ Object
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // CountryOrRegion undocumented
+ CountryOrRegion *string `json:"countryOrRegion,omitempty"`
+ // GeoCoordinates undocumented
+ GeoCoordinates *GeoCoordinates `json:"geoCoordinates,omitempty"`
+}
+
+// SignInStatus undocumented
+type SignInStatus struct {
+ // Object is the base model of SignInStatus
+ Object
+ // ErrorCode undocumented
+ ErrorCode *int `json:"errorCode,omitempty"`
+ // FailureReason undocumented
+ FailureReason *string `json:"failureReason,omitempty"`
+ // AdditionalDetails undocumented
+ AdditionalDetails *string `json:"additionalDetails,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSingle.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSingle.go
new file mode 100644
index 00000000..1f93e5b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSingle.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SingleSignOnExtension undocumented
+type SingleSignOnExtension struct {
+ // Object is the base model of SingleSignOnExtension
+ Object
+}
+
+// SingleValueLegacyExtendedProperty undocumented
+type SingleValueLegacyExtendedProperty struct {
+ // Entity is the base model of SingleValueLegacyExtendedProperty
+ Entity
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSite.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSite.go
new file mode 100644
index 00000000..b9e50fc3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSite.go
@@ -0,0 +1,107 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Site undocumented
+type Site struct {
+ // BaseItem is the base model of Site
+ BaseItem
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Root undocumented
+ Root *Root `json:"root,omitempty"`
+ // SharepointIDs undocumented
+ SharepointIDs *SharepointIDs `json:"sharepointIds,omitempty"`
+ // SiteCollection undocumented
+ SiteCollection *SiteCollection `json:"siteCollection,omitempty"`
+ // Analytics undocumented
+ Analytics *ItemAnalytics `json:"analytics,omitempty"`
+ // Columns undocumented
+ Columns []ColumnDefinition `json:"columns,omitempty"`
+ // ContentTypes undocumented
+ ContentTypes []ContentType `json:"contentTypes,omitempty"`
+ // Drive undocumented
+ Drive *Drive `json:"drive,omitempty"`
+ // Drives undocumented
+ Drives []Drive `json:"drives,omitempty"`
+ // Items undocumented
+ Items []BaseItem `json:"items,omitempty"`
+ // Lists undocumented
+ Lists []List `json:"lists,omitempty"`
+ // Pages undocumented
+ Pages []SitePage `json:"pages,omitempty"`
+ // Sites undocumented
+ Sites []Site `json:"sites,omitempty"`
+ // Onenote undocumented
+ Onenote *Onenote `json:"onenote,omitempty"`
+}
+
+// SiteActivitySummary undocumented
+type SiteActivitySummary struct {
+ // Entity is the base model of SiteActivitySummary
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ViewedOrEdited undocumented
+ ViewedOrEdited *int `json:"viewedOrEdited,omitempty"`
+ // Synced undocumented
+ Synced *int `json:"synced,omitempty"`
+ // SharedInternally undocumented
+ SharedInternally *int `json:"sharedInternally,omitempty"`
+ // SharedExternally undocumented
+ SharedExternally *int `json:"sharedExternally,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SiteCollection undocumented
+type SiteCollection struct {
+ // Object is the base model of SiteCollection
+ Object
+ // DataLocationCode undocumented
+ DataLocationCode *string `json:"dataLocationCode,omitempty"`
+ // Hostname undocumented
+ Hostname *string `json:"hostname,omitempty"`
+ // Root undocumented
+ Root *Root `json:"root,omitempty"`
+}
+
+// SitePage undocumented
+type SitePage struct {
+ // BaseItem is the base model of SitePage
+ BaseItem
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // ContentType undocumented
+ ContentType *ContentTypeInfo `json:"contentType,omitempty"`
+ // PageLayoutType undocumented
+ PageLayoutType *string `json:"pageLayoutType,omitempty"`
+ // WebParts undocumented
+ WebParts []WebPart `json:"webParts,omitempty"`
+ // PublishingState undocumented
+ PublishingState *PublicationFacet `json:"publishingState,omitempty"`
+}
+
+// SitePageData undocumented
+type SitePageData struct {
+ // Object is the base model of SitePageData
+ Object
+}
+
+// SiteUsageStorage undocumented
+type SiteUsageStorage struct {
+ // Entity is the base model of SiteUsageStorage
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // SiteType undocumented
+ SiteType *string `json:"siteType,omitempty"`
+ // StorageUsedInBytes undocumented
+ StorageUsedInBytes *int `json:"storageUsedInBytes,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSize.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSize.go
new file mode 100644
index 00000000..18580abd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSize.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SizeRange undocumented
+type SizeRange struct {
+ // Object is the base model of SizeRange
+ Object
+ // MinimumSize undocumented
+ MinimumSize *int `json:"minimumSize,omitempty"`
+ // MaximumSize undocumented
+ MaximumSize *int `json:"maximumSize,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkill.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkill.go
new file mode 100644
index 00000000..6ea43aa2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkill.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SkillProficiency undocumented
+type SkillProficiency struct {
+ // ItemFacet is the base model of SkillProficiency
+ ItemFacet
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Proficiency undocumented
+ Proficiency *SkillProficiencyLevel `json:"proficiency,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkype.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkype.go
new file mode 100644
index 00000000..d037c301
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSkype.go
@@ -0,0 +1,365 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SkypeForBusinessActivityCounts undocumented
+type SkypeForBusinessActivityCounts struct {
+ // Entity is the base model of SkypeForBusinessActivityCounts
+ Entity
+ // PeerToPeer undocumented
+ PeerToPeer *int `json:"peerToPeer,omitempty"`
+ // Organized undocumented
+ Organized *int `json:"organized,omitempty"`
+ // Participated undocumented
+ Participated *int `json:"participated,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessActivityUserCounts undocumented
+type SkypeForBusinessActivityUserCounts struct {
+ // Entity is the base model of SkypeForBusinessActivityUserCounts
+ Entity
+ // PeerToPeer undocumented
+ PeerToPeer *int `json:"peerToPeer,omitempty"`
+ // Organized undocumented
+ Organized *int `json:"organized,omitempty"`
+ // Participated undocumented
+ Participated *int `json:"participated,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessActivityUserDetail undocumented
+type SkypeForBusinessActivityUserDetail struct {
+ // Entity is the base model of SkypeForBusinessActivityUserDetail
+ Entity
+ // TotalPeerToPeerSessionCount undocumented
+ TotalPeerToPeerSessionCount *int `json:"totalPeerToPeerSessionCount,omitempty"`
+ // TotalOrganizedConferenceCount undocumented
+ TotalOrganizedConferenceCount *int `json:"totalOrganizedConferenceCount,omitempty"`
+ // TotalParticipatedConferenceCount undocumented
+ TotalParticipatedConferenceCount *int `json:"totalParticipatedConferenceCount,omitempty"`
+ // PeerToPeerLastActivityDate undocumented
+ PeerToPeerLastActivityDate *Date `json:"peerToPeerLastActivityDate,omitempty"`
+ // OrganizedConferenceLastActivityDate undocumented
+ OrganizedConferenceLastActivityDate *Date `json:"organizedConferenceLastActivityDate,omitempty"`
+ // ParticipatedConferenceLastActivityDate undocumented
+ ParticipatedConferenceLastActivityDate *Date `json:"participatedConferenceLastActivityDate,omitempty"`
+ // PeerToPeerIMCount undocumented
+ PeerToPeerIMCount *int `json:"peerToPeerIMCount,omitempty"`
+ // PeerToPeerAudioCount undocumented
+ PeerToPeerAudioCount *int `json:"peerToPeerAudioCount,omitempty"`
+ // PeerToPeerAudioMinutes undocumented
+ PeerToPeerAudioMinutes *int `json:"peerToPeerAudioMinutes,omitempty"`
+ // PeerToPeerVideoCount undocumented
+ PeerToPeerVideoCount *int `json:"peerToPeerVideoCount,omitempty"`
+ // PeerToPeerVideoMinutes undocumented
+ PeerToPeerVideoMinutes *int `json:"peerToPeerVideoMinutes,omitempty"`
+ // PeerToPeerAppSharingCount undocumented
+ PeerToPeerAppSharingCount *int `json:"peerToPeerAppSharingCount,omitempty"`
+ // PeerToPeerFileTransferCount undocumented
+ PeerToPeerFileTransferCount *int `json:"peerToPeerFileTransferCount,omitempty"`
+ // OrganizedConferenceIMCount undocumented
+ OrganizedConferenceIMCount *int `json:"organizedConferenceIMCount,omitempty"`
+ // OrganizedConferenceAudioVideoCount undocumented
+ OrganizedConferenceAudioVideoCount *int `json:"organizedConferenceAudioVideoCount,omitempty"`
+ // OrganizedConferenceAudioVideoMinutes undocumented
+ OrganizedConferenceAudioVideoMinutes *int `json:"organizedConferenceAudioVideoMinutes,omitempty"`
+ // OrganizedConferenceAppSharingCount undocumented
+ OrganizedConferenceAppSharingCount *int `json:"organizedConferenceAppSharingCount,omitempty"`
+ // OrganizedConferenceWebCount undocumented
+ OrganizedConferenceWebCount *int `json:"organizedConferenceWebCount,omitempty"`
+ // OrganizedConferenceDialInOut3rdPartyCount undocumented
+ OrganizedConferenceDialInOut3rdPartyCount *int `json:"organizedConferenceDialInOut3rdPartyCount,omitempty"`
+ // OrganizedConferenceCloudDialInOutMicrosoftCount undocumented
+ OrganizedConferenceCloudDialInOutMicrosoftCount *int `json:"organizedConferenceCloudDialInOutMicrosoftCount,omitempty"`
+ // OrganizedConferenceCloudDialInMicrosoftMinutes undocumented
+ OrganizedConferenceCloudDialInMicrosoftMinutes *int `json:"organizedConferenceCloudDialInMicrosoftMinutes,omitempty"`
+ // OrganizedConferenceCloudDialOutMicrosoftMinutes undocumented
+ OrganizedConferenceCloudDialOutMicrosoftMinutes *int `json:"organizedConferenceCloudDialOutMicrosoftMinutes,omitempty"`
+ // ParticipatedConferenceIMCount undocumented
+ ParticipatedConferenceIMCount *int `json:"participatedConferenceIMCount,omitempty"`
+ // ParticipatedConferenceAudioVideoCount undocumented
+ ParticipatedConferenceAudioVideoCount *int `json:"participatedConferenceAudioVideoCount,omitempty"`
+ // ParticipatedConferenceAudioVideoMinutes undocumented
+ ParticipatedConferenceAudioVideoMinutes *int `json:"participatedConferenceAudioVideoMinutes,omitempty"`
+ // ParticipatedConferenceAppSharingCount undocumented
+ ParticipatedConferenceAppSharingCount *int `json:"participatedConferenceAppSharingCount,omitempty"`
+ // ParticipatedConferenceWebCount undocumented
+ ParticipatedConferenceWebCount *int `json:"participatedConferenceWebCount,omitempty"`
+ // ParticipatedConferenceDialInOut3rdPartyCount undocumented
+ ParticipatedConferenceDialInOut3rdPartyCount *int `json:"participatedConferenceDialInOut3rdPartyCount,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *Date `json:"deletedDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessDeviceUsageDistributionUserCounts undocumented
+type SkypeForBusinessDeviceUsageDistributionUserCounts struct {
+ // Entity is the base model of SkypeForBusinessDeviceUsageDistributionUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IPhone undocumented
+ IPhone *int `json:"iPhone,omitempty"`
+ // IPad undocumented
+ IPad *int `json:"iPad,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessDeviceUsageUserCounts undocumented
+type SkypeForBusinessDeviceUsageUserCounts struct {
+ // Entity is the base model of SkypeForBusinessDeviceUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IPhone undocumented
+ IPhone *int `json:"iPhone,omitempty"`
+ // IPad undocumented
+ IPad *int `json:"iPad,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessDeviceUsageUserDetail undocumented
+type SkypeForBusinessDeviceUsageUserDetail struct {
+ // Entity is the base model of SkypeForBusinessDeviceUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // UsedWindows undocumented
+ UsedWindows *bool `json:"usedWindows,omitempty"`
+ // UsedWindowsPhone undocumented
+ UsedWindowsPhone *bool `json:"usedWindowsPhone,omitempty"`
+ // UsedAndroidPhone undocumented
+ UsedAndroidPhone *bool `json:"usedAndroidPhone,omitempty"`
+ // UsediPhone undocumented
+ UsediPhone *bool `json:"usediPhone,omitempty"`
+ // UsediPad undocumented
+ UsediPad *bool `json:"usediPad,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessOrganizerActivityCounts undocumented
+type SkypeForBusinessOrganizerActivityCounts struct {
+ // Entity is the base model of SkypeForBusinessOrganizerActivityCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // DialInOut3rdParty undocumented
+ DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"`
+ // DialInOutMicrosoft undocumented
+ DialInOutMicrosoft *int `json:"dialInOutMicrosoft,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessOrganizerActivityMinuteCounts undocumented
+type SkypeForBusinessOrganizerActivityMinuteCounts struct {
+ // Entity is the base model of SkypeForBusinessOrganizerActivityMinuteCounts
+ Entity
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // DialInMicrosoft undocumented
+ DialInMicrosoft *int `json:"dialInMicrosoft,omitempty"`
+ // DialOutMicrosoft undocumented
+ DialOutMicrosoft *int `json:"dialOutMicrosoft,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessOrganizerActivityUserCounts undocumented
+type SkypeForBusinessOrganizerActivityUserCounts struct {
+ // Entity is the base model of SkypeForBusinessOrganizerActivityUserCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // DialInOut3rdParty undocumented
+ DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"`
+ // DialInOutMicrosoft undocumented
+ DialInOutMicrosoft *int `json:"dialInOutMicrosoft,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessParticipantActivityCounts undocumented
+type SkypeForBusinessParticipantActivityCounts struct {
+ // Entity is the base model of SkypeForBusinessParticipantActivityCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // DialInOut3rdParty undocumented
+ DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessParticipantActivityMinuteCounts undocumented
+type SkypeForBusinessParticipantActivityMinuteCounts struct {
+ // Entity is the base model of SkypeForBusinessParticipantActivityMinuteCounts
+ Entity
+ // Audiovideo undocumented
+ Audiovideo *int `json:"audiovideo,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessParticipantActivityUserCounts undocumented
+type SkypeForBusinessParticipantActivityUserCounts struct {
+ // Entity is the base model of SkypeForBusinessParticipantActivityUserCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // AudioVideo undocumented
+ AudioVideo *int `json:"audioVideo,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // DialInOut3rdParty undocumented
+ DialInOut3rdParty *int `json:"dialInOut3rdParty,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessPeerToPeerActivityCounts undocumented
+type SkypeForBusinessPeerToPeerActivityCounts struct {
+ // Entity is the base model of SkypeForBusinessPeerToPeerActivityCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // Audio undocumented
+ Audio *int `json:"audio,omitempty"`
+ // Video undocumented
+ Video *int `json:"video,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // FileTransfer undocumented
+ FileTransfer *int `json:"fileTransfer,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessPeerToPeerActivityMinuteCounts undocumented
+type SkypeForBusinessPeerToPeerActivityMinuteCounts struct {
+ // Entity is the base model of SkypeForBusinessPeerToPeerActivityMinuteCounts
+ Entity
+ // Audio undocumented
+ Audio *int `json:"audio,omitempty"`
+ // Video undocumented
+ Video *int `json:"video,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// SkypeForBusinessPeerToPeerActivityUserCounts undocumented
+type SkypeForBusinessPeerToPeerActivityUserCounts struct {
+ // Entity is the base model of SkypeForBusinessPeerToPeerActivityUserCounts
+ Entity
+ // Im undocumented
+ Im *int `json:"im,omitempty"`
+ // Audio undocumented
+ Audio *int `json:"audio,omitempty"`
+ // Video undocumented
+ Video *int `json:"video,omitempty"`
+ // AppSharing undocumented
+ AppSharing *int `json:"appSharing,omitempty"`
+ // FileTransfer undocumented
+ FileTransfer *int `json:"fileTransfer,omitempty"`
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSoftware.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSoftware.go
new file mode 100644
index 00000000..df8638a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSoftware.go
@@ -0,0 +1,39 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SoftwareUpdateStatusSummary undocumented
+type SoftwareUpdateStatusSummary struct {
+ // Entity is the base model of SoftwareUpdateStatusSummary
+ Entity
+ // DisplayName The name of the policy.
+ DisplayName *string `json:"displayName,omitempty"`
+ // CompliantDeviceCount Number of compliant devices.
+ CompliantDeviceCount *int `json:"compliantDeviceCount,omitempty"`
+ // NonCompliantDeviceCount Number of non compliant devices.
+ NonCompliantDeviceCount *int `json:"nonCompliantDeviceCount,omitempty"`
+ // RemediatedDeviceCount Number of remediated devices.
+ RemediatedDeviceCount *int `json:"remediatedDeviceCount,omitempty"`
+ // ErrorDeviceCount Number of devices had error.
+ ErrorDeviceCount *int `json:"errorDeviceCount,omitempty"`
+ // UnknownDeviceCount Number of unknown devices.
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+ // ConflictDeviceCount Number of conflict devices.
+ ConflictDeviceCount *int `json:"conflictDeviceCount,omitempty"`
+ // NotApplicableDeviceCount Number of not applicable devices.
+ NotApplicableDeviceCount *int `json:"notApplicableDeviceCount,omitempty"`
+ // CompliantUserCount Number of compliant users.
+ CompliantUserCount *int `json:"compliantUserCount,omitempty"`
+ // NonCompliantUserCount Number of non compliant users.
+ NonCompliantUserCount *int `json:"nonCompliantUserCount,omitempty"`
+ // RemediatedUserCount Number of remediated users.
+ RemediatedUserCount *int `json:"remediatedUserCount,omitempty"`
+ // ErrorUserCount Number of users had error.
+ ErrorUserCount *int `json:"errorUserCount,omitempty"`
+ // UnknownUserCount Number of unknown users.
+ UnknownUserCount *int `json:"unknownUserCount,omitempty"`
+ // ConflictUserCount Number of conflict users.
+ ConflictUserCount *int `json:"conflictUserCount,omitempty"`
+ // NotApplicableUserCount Number of not applicable users.
+ NotApplicableUserCount *int `json:"notApplicableUserCount,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSpecial.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSpecial.go
new file mode 100644
index 00000000..68793e68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSpecial.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SpecialFolder undocumented
+type SpecialFolder struct {
+ // Object is the base model of SpecialFolder
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelStandard.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStandard.go
new file mode 100644
index 00000000..4e6bb327
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStandard.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StandardTimeZoneOffset undocumented
+type StandardTimeZoneOffset struct {
+ // Object is the base model of StandardTimeZoneOffset
+ Object
+ // Time undocumented
+ Time *TimeOfDay `json:"time,omitempty"`
+ // DayOccurrence undocumented
+ DayOccurrence *int `json:"dayOccurrence,omitempty"`
+ // DayOfWeek undocumented
+ DayOfWeek *DayOfWeek `json:"dayOfWeek,omitempty"`
+ // Month undocumented
+ Month *int `json:"month,omitempty"`
+ // Year undocumented
+ Year *int `json:"year,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelStatus.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStatus.go
new file mode 100644
index 00000000..42e06390
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStatus.go
@@ -0,0 +1,27 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StatusBase undocumented
+type StatusBase struct {
+ // Object is the base model of StatusBase
+ Object
+ // Status undocumented
+ Status *ProvisioningResult `json:"status,omitempty"`
+}
+
+// StatusDetails undocumented
+type StatusDetails struct {
+ // StatusBase is the base model of StatusDetails
+ StatusBase
+ // ErrorCode undocumented
+ ErrorCode *string `json:"errorCode,omitempty"`
+ // Reason undocumented
+ Reason *string `json:"reason,omitempty"`
+ // AdditionalDetails undocumented
+ AdditionalDetails *string `json:"additionalDetails,omitempty"`
+ // ErrorCategory undocumented
+ ErrorCategory *string `json:"errorCategory,omitempty"`
+ // RecommendedAction undocumented
+ RecommendedAction *string `json:"recommendedAction,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelStorage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStorage.go
new file mode 100644
index 00000000..95a52ce8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelStorage.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StoragePlanInformation undocumented
+type StoragePlanInformation struct {
+ // Object is the base model of StoragePlanInformation
+ Object
+ // UpgradeAvailable undocumented
+ UpgradeAvailable *bool `json:"upgradeAvailable,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelString.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelString.go
new file mode 100644
index 00000000..3c50c6a7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelString.go
@@ -0,0 +1,41 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// StringKeyAttributeMappingSourceValuePair undocumented
+type StringKeyAttributeMappingSourceValuePair struct {
+ // Object is the base model of StringKeyAttributeMappingSourceValuePair
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *AttributeMappingSource `json:"value,omitempty"`
+}
+
+// StringKeyLongValuePair undocumented
+type StringKeyLongValuePair struct {
+ // Object is the base model of StringKeyLongValuePair
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *int `json:"value,omitempty"`
+}
+
+// StringKeyObjectValuePair undocumented
+type StringKeyObjectValuePair struct {
+ // Object is the base model of StringKeyObjectValuePair
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+}
+
+// StringKeyStringValuePair undocumented
+type StringKeyStringValuePair struct {
+ // Object is the base model of StringKeyStringValuePair
+ Object
+ // Key undocumented
+ Key *string `json:"key,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribe.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribe.go
new file mode 100644
index 00000000..e7c70138
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribe.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SubscribeToToneOperation undocumented
+type SubscribeToToneOperation struct {
+ // CommsOperation is the base model of SubscribeToToneOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribed.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribed.go
new file mode 100644
index 00000000..45947da3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscribed.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SubscribedSKU undocumented
+type SubscribedSKU struct {
+ // Entity is the base model of SubscribedSKU
+ Entity
+ // CapabilityStatus undocumented
+ CapabilityStatus *string `json:"capabilityStatus,omitempty"`
+ // ConsumedUnits undocumented
+ ConsumedUnits *int `json:"consumedUnits,omitempty"`
+ // PrepaidUnits undocumented
+ PrepaidUnits *LicenseUnitsDetail `json:"prepaidUnits,omitempty"`
+ // ServicePlans undocumented
+ ServicePlans []ServicePlanInfo `json:"servicePlans,omitempty"`
+ // SKUID undocumented
+ SKUID *UUID `json:"skuId,omitempty"`
+ // SKUPartNumber undocumented
+ SKUPartNumber *string `json:"skuPartNumber,omitempty"`
+ // AppliesTo undocumented
+ AppliesTo *string `json:"appliesTo,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscription.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscription.go
new file mode 100644
index 00000000..b36cb605
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSubscription.go
@@ -0,0 +1,35 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Subscription undocumented
+type Subscription struct {
+ // Entity is the base model of Subscription
+ Entity
+ // Resource undocumented
+ Resource *string `json:"resource,omitempty"`
+ // ChangeType undocumented
+ ChangeType *string `json:"changeType,omitempty"`
+ // ClientState undocumented
+ ClientState *string `json:"clientState,omitempty"`
+ // NotificationURL undocumented
+ NotificationURL *string `json:"notificationUrl,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // ApplicationID undocumented
+ ApplicationID *string `json:"applicationId,omitempty"`
+ // CreatorID undocumented
+ CreatorID *string `json:"creatorId,omitempty"`
+ // IncludeProperties undocumented
+ IncludeProperties *bool `json:"includeProperties,omitempty"`
+ // IncludeResourceData undocumented
+ IncludeResourceData *bool `json:"includeResourceData,omitempty"`
+ // LifecycleNotificationURL undocumented
+ LifecycleNotificationURL *string `json:"lifecycleNotificationUrl,omitempty"`
+ // EncryptionCertificate undocumented
+ EncryptionCertificate *string `json:"encryptionCertificate,omitempty"`
+ // EncryptionCertificateID undocumented
+ EncryptionCertificateID *string `json:"encryptionCertificateId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSuspicious.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSuspicious.go
new file mode 100644
index 00000000..11870b5e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSuspicious.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SuspiciousIPRiskEvent undocumented
+type SuspiciousIPRiskEvent struct {
+ // LocatedRiskEvent is the base model of SuspiciousIPRiskEvent
+ LocatedRiskEvent
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSwap.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSwap.go
new file mode 100644
index 00000000..a8fffde0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSwap.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SwapShiftsChangeRequestObject undocumented
+type SwapShiftsChangeRequestObject struct {
+ // ShiftChangeRequestObject is the base model of SwapShiftsChangeRequestObject
+ ShiftChangeRequestObject
+ // RecipientShiftID undocumented
+ RecipientShiftID *string `json:"recipientShiftId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSymantec.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSymantec.go
new file mode 100644
index 00000000..3588802b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSymantec.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// SymantecCodeSigningCertificate undocumented
+type SymantecCodeSigningCertificate struct {
+ // Entity is the base model of SymantecCodeSigningCertificate
+ Entity
+ // Content The Windows Symantec Code-Signing Certificate in the raw data format.
+ Content *Binary `json:"content,omitempty"`
+ // Status The Cert Status Provisioned or not Provisioned.
+ Status *CertificateStatus `json:"status,omitempty"`
+ // Password The Password required for .pfx file.
+ Password *string `json:"password,omitempty"`
+ // SubjectName The Subject Name for the cert.
+ SubjectName *string `json:"subjectName,omitempty"`
+ // Subject The Subject value for the cert.
+ Subject *string `json:"subject,omitempty"`
+ // IssuerName The Issuer Name for the cert.
+ IssuerName *string `json:"issuerName,omitempty"`
+ // Issuer The Issuer value for the cert.
+ Issuer *string `json:"issuer,omitempty"`
+ // ExpirationDateTime The Cert Expiration Date.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // UploadDateTime The Type of the CodeSigning Cert as Symantec Cert.
+ UploadDateTime *time.Time `json:"uploadDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSynchronization.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSynchronization.go
new file mode 100644
index 00000000..c0e24833
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSynchronization.go
@@ -0,0 +1,225 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Synchronization undocumented
+type Synchronization struct {
+ // Entity is the base model of Synchronization
+ Entity
+ // Secrets undocumented
+ Secrets []SynchronizationSecretKeyStringValuePair `json:"secrets,omitempty"`
+ // Jobs undocumented
+ Jobs []SynchronizationJob `json:"jobs,omitempty"`
+ // Templates undocumented
+ Templates []SynchronizationTemplate `json:"templates,omitempty"`
+}
+
+// SynchronizationError undocumented
+type SynchronizationError struct {
+ // Object is the base model of SynchronizationError
+ Object
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+ // TenantActionable undocumented
+ TenantActionable *bool `json:"tenantActionable,omitempty"`
+}
+
+// SynchronizationJob undocumented
+type SynchronizationJob struct {
+ // Entity is the base model of SynchronizationJob
+ Entity
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // Schedule undocumented
+ Schedule *SynchronizationSchedule `json:"schedule,omitempty"`
+ // Status undocumented
+ Status *SynchronizationStatus `json:"status,omitempty"`
+ // SynchronizationJobSettings undocumented
+ SynchronizationJobSettings []KeyValuePair `json:"synchronizationJobSettings,omitempty"`
+ // Schema undocumented
+ Schema *SynchronizationSchema `json:"schema,omitempty"`
+}
+
+// SynchronizationJobRestartCriteria undocumented
+type SynchronizationJobRestartCriteria struct {
+ // Object is the base model of SynchronizationJobRestartCriteria
+ Object
+ // ResetScope undocumented
+ ResetScope *SynchronizationJobRestartScope `json:"resetScope,omitempty"`
+}
+
+// SynchronizationProgress undocumented
+type SynchronizationProgress struct {
+ // Object is the base model of SynchronizationProgress
+ Object
+ // CompletedUnits undocumented
+ CompletedUnits *int `json:"completedUnits,omitempty"`
+ // ProgressObservationDateTime undocumented
+ ProgressObservationDateTime *time.Time `json:"progressObservationDateTime,omitempty"`
+ // TotalUnits undocumented
+ TotalUnits *int `json:"totalUnits,omitempty"`
+ // Units undocumented
+ Units *string `json:"units,omitempty"`
+}
+
+// SynchronizationQuarantine undocumented
+type SynchronizationQuarantine struct {
+ // Object is the base model of SynchronizationQuarantine
+ Object
+ // CurrentBegan undocumented
+ CurrentBegan *time.Time `json:"currentBegan,omitempty"`
+ // NextAttempt undocumented
+ NextAttempt *time.Time `json:"nextAttempt,omitempty"`
+ // Reason undocumented
+ Reason *QuarantineReason `json:"reason,omitempty"`
+ // SeriesBegan undocumented
+ SeriesBegan *time.Time `json:"seriesBegan,omitempty"`
+ // SeriesCount undocumented
+ SeriesCount *int `json:"seriesCount,omitempty"`
+}
+
+// SynchronizationRule undocumented
+type SynchronizationRule struct {
+ // Object is the base model of SynchronizationRule
+ Object
+ // Editable undocumented
+ Editable *bool `json:"editable,omitempty"`
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // Metadata undocumented
+ Metadata []StringKeyStringValuePair `json:"metadata,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ObjectMappings undocumented
+ ObjectMappings []ObjectMapping `json:"objectMappings,omitempty"`
+ // Priority undocumented
+ Priority *int `json:"priority,omitempty"`
+ // SourceDirectoryName undocumented
+ SourceDirectoryName *string `json:"sourceDirectoryName,omitempty"`
+ // TargetDirectoryName undocumented
+ TargetDirectoryName *string `json:"targetDirectoryName,omitempty"`
+}
+
+// SynchronizationSchedule undocumented
+type SynchronizationSchedule struct {
+ // Object is the base model of SynchronizationSchedule
+ Object
+ // Expiration undocumented
+ Expiration *time.Time `json:"expiration,omitempty"`
+ // Interval undocumented
+ Interval *Duration `json:"interval,omitempty"`
+ // State undocumented
+ State *SynchronizationScheduleState `json:"state,omitempty"`
+}
+
+// SynchronizationSchema undocumented
+type SynchronizationSchema struct {
+ // Entity is the base model of SynchronizationSchema
+ Entity
+ // ProvisioningTaskIdentifier undocumented
+ ProvisioningTaskIdentifier *string `json:"provisioningTaskIdentifier,omitempty"`
+ // SynchronizationRules undocumented
+ SynchronizationRules []SynchronizationRule `json:"synchronizationRules,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+ // Directories undocumented
+ Directories []DirectoryDefinition `json:"directories,omitempty"`
+}
+
+// SynchronizationSecretKeyStringValuePair undocumented
+type SynchronizationSecretKeyStringValuePair struct {
+ // Object is the base model of SynchronizationSecretKeyStringValuePair
+ Object
+ // Key undocumented
+ Key *SynchronizationSecret `json:"key,omitempty"`
+ // Value undocumented
+ Value *string `json:"value,omitempty"`
+}
+
+// SynchronizationStatus undocumented
+type SynchronizationStatus struct {
+ // Object is the base model of SynchronizationStatus
+ Object
+ // CountSuccessiveCompleteFailures undocumented
+ CountSuccessiveCompleteFailures *int `json:"countSuccessiveCompleteFailures,omitempty"`
+ // EscrowsPruned undocumented
+ EscrowsPruned *bool `json:"escrowsPruned,omitempty"`
+ // Code undocumented
+ Code *SynchronizationStatusCode `json:"code,omitempty"`
+ // LastExecution undocumented
+ LastExecution *SynchronizationTaskExecution `json:"lastExecution,omitempty"`
+ // LastSuccessfulExecution undocumented
+ LastSuccessfulExecution *SynchronizationTaskExecution `json:"lastSuccessfulExecution,omitempty"`
+ // LastSuccessfulExecutionWithExports undocumented
+ LastSuccessfulExecutionWithExports *SynchronizationTaskExecution `json:"lastSuccessfulExecutionWithExports,omitempty"`
+ // Progress undocumented
+ Progress []SynchronizationProgress `json:"progress,omitempty"`
+ // Quarantine undocumented
+ Quarantine *SynchronizationQuarantine `json:"quarantine,omitempty"`
+ // SteadyStateFirstAchievedTime undocumented
+ SteadyStateFirstAchievedTime *time.Time `json:"steadyStateFirstAchievedTime,omitempty"`
+ // SteadyStateLastAchievedTime undocumented
+ SteadyStateLastAchievedTime *time.Time `json:"steadyStateLastAchievedTime,omitempty"`
+ // SynchronizedEntryCountByType undocumented
+ SynchronizedEntryCountByType []StringKeyLongValuePair `json:"synchronizedEntryCountByType,omitempty"`
+ // TroubleshootingURL undocumented
+ TroubleshootingURL *string `json:"troubleshootingUrl,omitempty"`
+}
+
+// SynchronizationTaskExecution undocumented
+type SynchronizationTaskExecution struct {
+ // Object is the base model of SynchronizationTaskExecution
+ Object
+ // ActivityIdentifier undocumented
+ ActivityIdentifier *string `json:"activityIdentifier,omitempty"`
+ // CountEntitled undocumented
+ CountEntitled *int `json:"countEntitled,omitempty"`
+ // CountEntitledForProvisioning undocumented
+ CountEntitledForProvisioning *int `json:"countEntitledForProvisioning,omitempty"`
+ // CountEscrowed undocumented
+ CountEscrowed *int `json:"countEscrowed,omitempty"`
+ // CountEscrowedRaw undocumented
+ CountEscrowedRaw *int `json:"countEscrowedRaw,omitempty"`
+ // CountExported undocumented
+ CountExported *int `json:"countExported,omitempty"`
+ // CountExports undocumented
+ CountExports *int `json:"countExports,omitempty"`
+ // CountImported undocumented
+ CountImported *int `json:"countImported,omitempty"`
+ // CountImportedDeltas undocumented
+ CountImportedDeltas *int `json:"countImportedDeltas,omitempty"`
+ // CountImportedReferenceDeltas undocumented
+ CountImportedReferenceDeltas *int `json:"countImportedReferenceDeltas,omitempty"`
+ // State undocumented
+ State *SynchronizationTaskExecutionResult `json:"state,omitempty"`
+ // Error undocumented
+ Error *SynchronizationError `json:"error,omitempty"`
+ // TimeBegan undocumented
+ TimeBegan *time.Time `json:"timeBegan,omitempty"`
+ // TimeEnded undocumented
+ TimeEnded *time.Time `json:"timeEnded,omitempty"`
+}
+
+// SynchronizationTemplate undocumented
+type SynchronizationTemplate struct {
+ // Entity is the base model of SynchronizationTemplate
+ Entity
+ // ApplicationID undocumented
+ ApplicationID *UUID `json:"applicationId,omitempty"`
+ // Default undocumented
+ Default *bool `json:"default,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // Discoverable undocumented
+ Discoverable *bool `json:"discoverable,omitempty"`
+ // FactoryTag undocumented
+ FactoryTag *string `json:"factoryTag,omitempty"`
+ // Metadata undocumented
+ Metadata []MetadataEntry `json:"metadata,omitempty"`
+ // Schema undocumented
+ Schema *SynchronizationSchema `json:"schema,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelSystem.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSystem.go
new file mode 100644
index 00000000..0b0de01c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelSystem.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// SystemFacet undocumented
+type SystemFacet struct {
+ // Object is the base model of SystemFacet
+ Object
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTarget.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTarget.go
new file mode 100644
index 00000000..8233fa2b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTarget.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TargetPolicyEndpoints undocumented
+type TargetPolicyEndpoints struct {
+ // Object is the base model of TargetPolicyEndpoints
+ Object
+ // PlatformTypes undocumented
+ PlatformTypes []string `json:"platformTypes,omitempty"`
+}
+
+// TargetResource undocumented
+type TargetResource struct {
+ // Object is the base model of TargetResource
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // GroupType undocumented
+ GroupType *GroupType `json:"groupType,omitempty"`
+ // ModifiedProperties undocumented
+ ModifiedProperties []ModifiedProperty `json:"modifiedProperties,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTargeted.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTargeted.go
new file mode 100644
index 00000000..33ec1c88
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTargeted.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TargetedManagedAppConfiguration Configuration used to deliver a set of custom settings as-is to all users in the targeted security group
+type TargetedManagedAppConfiguration struct {
+ // ManagedAppConfiguration is the base model of TargetedManagedAppConfiguration
+ ManagedAppConfiguration
+ // DeployedAppCount Count of apps to which the current policy is deployed.
+ DeployedAppCount *int `json:"deployedAppCount,omitempty"`
+ // IsAssigned Indicates if the policy is deployed to any inclusion groups or not.
+ IsAssigned *bool `json:"isAssigned,omitempty"`
+ // Apps undocumented
+ Apps []ManagedMobileApp `json:"apps,omitempty"`
+ // DeploymentSummary undocumented
+ DeploymentSummary *ManagedAppPolicyDeploymentSummary `json:"deploymentSummary,omitempty"`
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
+
+// TargetedManagedAppConfigurationPolicySetItem A class containing the properties used for Targeted managed app configuration PolicySetItem.
+type TargetedManagedAppConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of TargetedManagedAppConfigurationPolicySetItem
+ PolicySetItem
+}
+
+// TargetedManagedAppPolicyAssignment The type for deployment of groups or apps.
+type TargetedManagedAppPolicyAssignment struct {
+ // Entity is the base model of TargetedManagedAppPolicyAssignment
+ Entity
+ // Target Identifier for deployment to a group or app
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source Type of resource used for deployment to a group, direct or parcel/policySet
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID Identifier for resource used for deployment to a group
+ SourceID *string `json:"sourceId,omitempty"`
+}
+
+// TargetedManagedAppProtection Policy used to configure detailed management settings targeted to specific security groups
+type TargetedManagedAppProtection struct {
+ // ManagedAppProtection is the base model of TargetedManagedAppProtection
+ ManagedAppProtection
+ // IsAssigned Indicates if the policy is deployed to any inclusion groups or not.
+ IsAssigned *bool `json:"isAssigned,omitempty"`
+ // TargetedAppManagementLevels The intended app management levels for this policy
+ TargetedAppManagementLevels *AppManagementLevel `json:"targetedAppManagementLevels,omitempty"`
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTax.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTax.go
new file mode 100644
index 00000000..34141e37
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTax.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TaxArea undocumented
+type TaxArea struct {
+ // Entity is the base model of TaxArea
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // TaxType undocumented
+ TaxType *string `json:"taxType,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// TaxGroup undocumented
+type TaxGroup struct {
+ // Entity is the base model of TaxGroup
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // TaxType undocumented
+ TaxType *string `json:"taxType,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeam.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeam.go
new file mode 100644
index 00000000..820c61d8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeam.go
@@ -0,0 +1,129 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Team undocumented
+type Team struct {
+ // Entity is the base model of Team
+ Entity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // InternalID undocumented
+ InternalID *string `json:"internalId,omitempty"`
+ // Classification undocumented
+ Classification *string `json:"classification,omitempty"`
+ // Specialization undocumented
+ Specialization *TeamSpecialization `json:"specialization,omitempty"`
+ // Visibility undocumented
+ Visibility *TeamVisibilityType `json:"visibility,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // MemberSettings undocumented
+ MemberSettings *TeamMemberSettings `json:"memberSettings,omitempty"`
+ // GuestSettings undocumented
+ GuestSettings *TeamGuestSettings `json:"guestSettings,omitempty"`
+ // MessagingSettings undocumented
+ MessagingSettings *TeamMessagingSettings `json:"messagingSettings,omitempty"`
+ // FunSettings undocumented
+ FunSettings *TeamFunSettings `json:"funSettings,omitempty"`
+ // DiscoverySettings undocumented
+ DiscoverySettings *TeamDiscoverySettings `json:"discoverySettings,omitempty"`
+ // IsArchived undocumented
+ IsArchived *bool `json:"isArchived,omitempty"`
+ // Schedule undocumented
+ Schedule *Schedule `json:"schedule,omitempty"`
+ // Group undocumented
+ Group *Group `json:"group,omitempty"`
+ // Template undocumented
+ Template *TeamsTemplate `json:"template,omitempty"`
+ // Photo undocumented
+ Photo *ProfilePhoto `json:"photo,omitempty"`
+ // Owners undocumented
+ Owners []User `json:"owners,omitempty"`
+ // Channels undocumented
+ Channels []Channel `json:"channels,omitempty"`
+ // PrimaryChannel undocumented
+ PrimaryChannel *Channel `json:"primaryChannel,omitempty"`
+ // Apps undocumented
+ Apps []TeamsCatalogApp `json:"apps,omitempty"`
+ // InstalledApps undocumented
+ InstalledApps []TeamsAppInstallation `json:"installedApps,omitempty"`
+ // Operations undocumented
+ Operations []TeamsAsyncOperation `json:"operations,omitempty"`
+}
+
+// TeamClassSettings undocumented
+type TeamClassSettings struct {
+ // Object is the base model of TeamClassSettings
+ Object
+ // NotifyGuardiansAboutAssignments undocumented
+ NotifyGuardiansAboutAssignments *bool `json:"notifyGuardiansAboutAssignments,omitempty"`
+}
+
+// TeamDiscoverySettings undocumented
+type TeamDiscoverySettings struct {
+ // Object is the base model of TeamDiscoverySettings
+ Object
+ // ShowInTeamsSearchAndSuggestions undocumented
+ ShowInTeamsSearchAndSuggestions *bool `json:"showInTeamsSearchAndSuggestions,omitempty"`
+}
+
+// TeamFunSettings undocumented
+type TeamFunSettings struct {
+ // Object is the base model of TeamFunSettings
+ Object
+ // AllowGiphy undocumented
+ AllowGiphy *bool `json:"allowGiphy,omitempty"`
+ // GiphyContentRating undocumented
+ GiphyContentRating *GiphyRatingType `json:"giphyContentRating,omitempty"`
+ // AllowStickersAndMemes undocumented
+ AllowStickersAndMemes *bool `json:"allowStickersAndMemes,omitempty"`
+ // AllowCustomMemes undocumented
+ AllowCustomMemes *bool `json:"allowCustomMemes,omitempty"`
+}
+
+// TeamGuestSettings undocumented
+type TeamGuestSettings struct {
+ // Object is the base model of TeamGuestSettings
+ Object
+ // AllowCreateUpdateChannels undocumented
+ AllowCreateUpdateChannels *bool `json:"allowCreateUpdateChannels,omitempty"`
+ // AllowDeleteChannels undocumented
+ AllowDeleteChannels *bool `json:"allowDeleteChannels,omitempty"`
+}
+
+// TeamMemberSettings undocumented
+type TeamMemberSettings struct {
+ // Object is the base model of TeamMemberSettings
+ Object
+ // AllowCreateUpdateChannels undocumented
+ AllowCreateUpdateChannels *bool `json:"allowCreateUpdateChannels,omitempty"`
+ // AllowCreatePrivateChannels undocumented
+ AllowCreatePrivateChannels *bool `json:"allowCreatePrivateChannels,omitempty"`
+ // AllowDeleteChannels undocumented
+ AllowDeleteChannels *bool `json:"allowDeleteChannels,omitempty"`
+ // AllowAddRemoveApps undocumented
+ AllowAddRemoveApps *bool `json:"allowAddRemoveApps,omitempty"`
+ // AllowCreateUpdateRemoveTabs undocumented
+ AllowCreateUpdateRemoveTabs *bool `json:"allowCreateUpdateRemoveTabs,omitempty"`
+ // AllowCreateUpdateRemoveConnectors undocumented
+ AllowCreateUpdateRemoveConnectors *bool `json:"allowCreateUpdateRemoveConnectors,omitempty"`
+}
+
+// TeamMessagingSettings undocumented
+type TeamMessagingSettings struct {
+ // Object is the base model of TeamMessagingSettings
+ Object
+ // AllowUserEditMessages undocumented
+ AllowUserEditMessages *bool `json:"allowUserEditMessages,omitempty"`
+ // AllowUserDeleteMessages undocumented
+ AllowUserDeleteMessages *bool `json:"allowUserDeleteMessages,omitempty"`
+ // AllowOwnerDeleteMessages undocumented
+ AllowOwnerDeleteMessages *bool `json:"allowOwnerDeleteMessages,omitempty"`
+ // AllowTeamMentions undocumented
+ AllowTeamMentions *bool `json:"allowTeamMentions,omitempty"`
+ // AllowChannelMentions undocumented
+ AllowChannelMentions *bool `json:"allowChannelMentions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeams.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeams.go
new file mode 100644
index 00000000..352f1d01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeams.go
@@ -0,0 +1,267 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TeamsApp undocumented
+type TeamsApp struct {
+ // Entity is the base model of TeamsApp
+ Entity
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // DistributionMethod undocumented
+ DistributionMethod *TeamsAppDistributionMethod `json:"distributionMethod,omitempty"`
+ // AppDefinitions undocumented
+ AppDefinitions []TeamsAppDefinition `json:"appDefinitions,omitempty"`
+}
+
+// TeamsAppDefinition undocumented
+type TeamsAppDefinition struct {
+ // Entity is the base model of TeamsAppDefinition
+ Entity
+ // TeamsAppID undocumented
+ TeamsAppID *string `json:"teamsAppId,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+}
+
+// TeamsAppInstallation undocumented
+type TeamsAppInstallation struct {
+ // Entity is the base model of TeamsAppInstallation
+ Entity
+ // TeamsApp undocumented
+ TeamsApp *TeamsApp `json:"teamsApp,omitempty"`
+ // TeamsAppDefinition undocumented
+ TeamsAppDefinition *TeamsAppDefinition `json:"teamsAppDefinition,omitempty"`
+}
+
+// TeamsAsyncOperation undocumented
+type TeamsAsyncOperation struct {
+ // Entity is the base model of TeamsAsyncOperation
+ Entity
+ // OperationType undocumented
+ OperationType *TeamsAsyncOperationType `json:"operationType,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // Status undocumented
+ Status *TeamsAsyncOperationStatus `json:"status,omitempty"`
+ // LastActionDateTime undocumented
+ LastActionDateTime *time.Time `json:"lastActionDateTime,omitempty"`
+ // AttemptsCount undocumented
+ AttemptsCount *int `json:"attemptsCount,omitempty"`
+ // TargetResourceID undocumented
+ TargetResourceID *string `json:"targetResourceId,omitempty"`
+ // TargetResourceLocation undocumented
+ TargetResourceLocation *string `json:"targetResourceLocation,omitempty"`
+ // Error undocumented
+ Error *OperationError `json:"error,omitempty"`
+}
+
+// TeamsCatalogApp undocumented
+type TeamsCatalogApp struct {
+ // Entity is the base model of TeamsCatalogApp
+ Entity
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DistributionMethod undocumented
+ DistributionMethod *TeamsAppDistributionMethod `json:"distributionMethod,omitempty"`
+}
+
+// TeamsDeviceUsageDistributionUserCounts undocumented
+type TeamsDeviceUsageDistributionUserCounts struct {
+ // Entity is the base model of TeamsDeviceUsageDistributionUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IOS undocumented
+ IOS *int `json:"ios,omitempty"`
+ // Mac undocumented
+ Mac *int `json:"mac,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// TeamsDeviceUsageUserCounts undocumented
+type TeamsDeviceUsageUserCounts struct {
+ // Entity is the base model of TeamsDeviceUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IOS undocumented
+ IOS *int `json:"ios,omitempty"`
+ // Mac undocumented
+ Mac *int `json:"mac,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// TeamsDeviceUsageUserDetail undocumented
+type TeamsDeviceUsageUserDetail struct {
+ // Entity is the base model of TeamsDeviceUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *Date `json:"deletedDate,omitempty"`
+ // UsedWeb undocumented
+ UsedWeb *bool `json:"usedWeb,omitempty"`
+ // UsedWindowsPhone undocumented
+ UsedWindowsPhone *bool `json:"usedWindowsPhone,omitempty"`
+ // UsediOS undocumented
+ UsediOS *bool `json:"usediOS,omitempty"`
+ // UsedMac undocumented
+ UsedMac *bool `json:"usedMac,omitempty"`
+ // UsedAndroidPhone undocumented
+ UsedAndroidPhone *bool `json:"usedAndroidPhone,omitempty"`
+ // UsedWindows undocumented
+ UsedWindows *bool `json:"usedWindows,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// TeamsTab undocumented
+type TeamsTab struct {
+ // Entity is the base model of TeamsTab
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // TeamsAppID undocumented
+ TeamsAppID *string `json:"teamsAppId,omitempty"`
+ // SortOrderIndex undocumented
+ SortOrderIndex *string `json:"sortOrderIndex,omitempty"`
+ // MessageID undocumented
+ MessageID *string `json:"messageId,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+ // Configuration undocumented
+ Configuration *TeamsTabConfiguration `json:"configuration,omitempty"`
+ // TeamsApp undocumented
+ TeamsApp *TeamsApp `json:"teamsApp,omitempty"`
+}
+
+// TeamsTabConfiguration undocumented
+type TeamsTabConfiguration struct {
+ // Object is the base model of TeamsTabConfiguration
+ Object
+ // EntityID undocumented
+ EntityID *string `json:"entityId,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+ // RemoveURL undocumented
+ RemoveURL *string `json:"removeUrl,omitempty"`
+ // WebsiteURL undocumented
+ WebsiteURL *string `json:"websiteUrl,omitempty"`
+}
+
+// TeamsTemplate undocumented
+type TeamsTemplate struct {
+ // Entity is the base model of TeamsTemplate
+ Entity
+}
+
+// TeamsUserActivityCounts undocumented
+type TeamsUserActivityCounts struct {
+ // Entity is the base model of TeamsUserActivityCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // TeamChatMessages undocumented
+ TeamChatMessages *int `json:"teamChatMessages,omitempty"`
+ // PrivateChatMessages undocumented
+ PrivateChatMessages *int `json:"privateChatMessages,omitempty"`
+ // Calls undocumented
+ Calls *int `json:"calls,omitempty"`
+ // Meetings undocumented
+ Meetings *int `json:"meetings,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// TeamsUserActivityUserCounts undocumented
+type TeamsUserActivityUserCounts struct {
+ // Entity is the base model of TeamsUserActivityUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // TeamChatMessages undocumented
+ TeamChatMessages *int `json:"teamChatMessages,omitempty"`
+ // PrivateChatMessages undocumented
+ PrivateChatMessages *int `json:"privateChatMessages,omitempty"`
+ // Calls undocumented
+ Calls *int `json:"calls,omitempty"`
+ // Meetings undocumented
+ Meetings *int `json:"meetings,omitempty"`
+ // OtherActions undocumented
+ OtherActions *int `json:"otherActions,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// TeamsUserActivityUserDetail undocumented
+type TeamsUserActivityUserDetail struct {
+ // Entity is the base model of TeamsUserActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // DeletedDate undocumented
+ DeletedDate *Date `json:"deletedDate,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // TeamChatMessageCount undocumented
+ TeamChatMessageCount *int `json:"teamChatMessageCount,omitempty"`
+ // PrivateChatMessageCount undocumented
+ PrivateChatMessageCount *int `json:"privateChatMessageCount,omitempty"`
+ // CallCount undocumented
+ CallCount *int `json:"callCount,omitempty"`
+ // MeetingCount undocumented
+ MeetingCount *int `json:"meetingCount,omitempty"`
+ // HasOtherAction undocumented
+ HasOtherAction *bool `json:"hasOtherAction,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeamwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeamwork.go
new file mode 100644
index 00000000..78a4196a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTeamwork.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Teamwork undocumented
+type Teamwork struct {
+ // Entity is the base model of Teamwork
+ Entity
+ // WorkforceIntegrations undocumented
+ WorkforceIntegrations []WorkforceIntegration `json:"workforceIntegrations,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTelecom.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTelecom.go
new file mode 100644
index 00000000..5b0e13f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTelecom.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TelecomExpenseManagementPartner telecomExpenseManagementPartner resources represent the metadata and status of a given TEM service. Once your organization has onboarded with a partner, the partner can be enabled or disabled to switch TEM functionality on or off.
+type TelecomExpenseManagementPartner struct {
+ // Entity is the base model of TelecomExpenseManagementPartner
+ Entity
+ // DisplayName Display name of the TEM partner.
+ DisplayName *string `json:"displayName,omitempty"`
+ // URL URL of the TEM partner's administrative control panel, where an administrator can configure their TEM service.
+ URL *string `json:"url,omitempty"`
+ // AppAuthorized Whether the partner's AAD app has been authorized to access Intune.
+ AppAuthorized *bool `json:"appAuthorized,omitempty"`
+ // Enabled Whether Intune's connection to the TEM service is currently enabled or disabled.
+ Enabled *bool `json:"enabled,omitempty"`
+ // LastConnectionDateTime Timestamp of the last request sent to Intune by the TEM partner.
+ LastConnectionDateTime *time.Time `json:"lastConnectionDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTenant.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTenant.go
new file mode 100644
index 00000000..6aac0c67
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTenant.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TenantSetupInfo undocumented
+type TenantSetupInfo struct {
+ // Entity is the base model of TenantSetupInfo
+ Entity
+ // UserRolesActions undocumented
+ UserRolesActions *string `json:"userRolesActions,omitempty"`
+ // FirstTimeSetup undocumented
+ FirstTimeSetup *bool `json:"firstTimeSetup,omitempty"`
+ // RelevantRolesSettings undocumented
+ RelevantRolesSettings []string `json:"relevantRolesSettings,omitempty"`
+ // SkipSetup undocumented
+ SkipSetup *bool `json:"skipSetup,omitempty"`
+ // SetupStatus undocumented
+ SetupStatus *SetupStatus `json:"setupStatus,omitempty"`
+ // DefaultRolesSettings undocumented
+ DefaultRolesSettings *PrivilegedRoleSettings `json:"defaultRolesSettings,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTerms.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTerms.go
new file mode 100644
index 00000000..a3f2dc07
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTerms.go
@@ -0,0 +1,69 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TermsAndConditions A termsAndConditions entity represents the metadata and contents of a given Terms and Conditions (T&C) policy. T&C policies’ contents are presented to users upon their first attempt to enroll into Intune and subsequently upon edits where an administrator has required re-acceptance. They enable administrators to communicate the provisions to which a user must agree in order to have devices enrolled into Intune.
+type TermsAndConditions struct {
+ // Entity is the base model of TermsAndConditions
+ Entity
+ // CreatedDateTime DateTime the object was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ModifiedDateTime DateTime the object was last modified.
+ ModifiedDateTime *time.Time `json:"modifiedDateTime,omitempty"`
+ // LastModifiedDateTime DateTime the object was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // DisplayName Administrator-supplied name for the T&C policy.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Administrator-supplied description of the T&C policy.
+ Description *string `json:"description,omitempty"`
+ // Title Administrator-supplied title of the terms and conditions. This is shown to the user on prompts to accept the T&C policy.
+ Title *string `json:"title,omitempty"`
+ // BodyText Administrator-supplied body text of the terms and conditions, typically the terms themselves. This is shown to the user on prompts to accept the T&C policy.
+ BodyText *string `json:"bodyText,omitempty"`
+ // AcceptanceStatement Administrator-supplied explanation of the terms and conditions, typically describing what it means to accept the terms and conditions set out in the T&C policy. This is shown to the user on prompts to accept the T&C policy.
+ AcceptanceStatement *string `json:"acceptanceStatement,omitempty"`
+ // Version Integer indicating the current version of the terms. Incremented when an administrator makes a change to the terms and wishes to require users to re-accept the modified T&C policy.
+ Version *int `json:"version,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this Entity instance.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // GroupAssignments undocumented
+ GroupAssignments []TermsAndConditionsGroupAssignment `json:"groupAssignments,omitempty"`
+ // Assignments undocumented
+ Assignments []TermsAndConditionsAssignment `json:"assignments,omitempty"`
+ // AcceptanceStatuses undocumented
+ AcceptanceStatuses []TermsAndConditionsAcceptanceStatus `json:"acceptanceStatuses,omitempty"`
+}
+
+// TermsAndConditionsAcceptanceStatus A termsAndConditionsAcceptanceStatus entity represents the acceptance status of a given Terms and Conditions (T&C) policy by a given user. Users must accept the most up-to-date version of the terms in order to retain access to the Company Portal.
+type TermsAndConditionsAcceptanceStatus struct {
+ // Entity is the base model of TermsAndConditionsAcceptanceStatus
+ Entity
+ // UserDisplayName Display name of the user whose acceptance the entity represents.
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // AcceptedVersion Most recent version number of the T&C accepted by the user.
+ AcceptedVersion *int `json:"acceptedVersion,omitempty"`
+ // AcceptedDateTime DateTime when the terms were last accepted by the user.
+ AcceptedDateTime *time.Time `json:"acceptedDateTime,omitempty"`
+ // TermsAndConditions undocumented
+ TermsAndConditions *TermsAndConditions `json:"termsAndConditions,omitempty"`
+}
+
+// TermsAndConditionsAssignment A termsAndConditionsAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune.
+type TermsAndConditionsAssignment struct {
+ // Entity is the base model of TermsAndConditionsAssignment
+ Entity
+ // Target Assignment target that the T&C policy is assigned to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// TermsAndConditionsGroupAssignment A termsAndConditionsGroupAssignment entity represents the assignment of a given Terms and Conditions (T&C) policy to a given group. Users in the group will be required to accept the terms in order to have devices enrolled into Intune.
+type TermsAndConditionsGroupAssignment struct {
+ // Entity is the base model of TermsAndConditionsGroupAssignment
+ Entity
+ // TargetGroupID Unique identifier of a group that the T&C policy is assigned to.
+ TargetGroupID *string `json:"targetGroupId,omitempty"`
+ // TermsAndConditions undocumented
+ TermsAndConditions *TermsAndConditions `json:"termsAndConditions,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelText.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelText.go
new file mode 100644
index 00000000..20fafac2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelText.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TextClassificationRequestObject undocumented
+type TextClassificationRequestObject struct {
+ // Entity is the base model of TextClassificationRequestObject
+ Entity
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // SensitiveTypeIDs undocumented
+ SensitiveTypeIDs []string `json:"sensitiveTypeIds,omitempty"`
+}
+
+// TextColumn undocumented
+type TextColumn struct {
+ // Object is the base model of TextColumn
+ Object
+ // AllowMultipleLines undocumented
+ AllowMultipleLines *bool `json:"allowMultipleLines,omitempty"`
+ // AppendChangesToExistingText undocumented
+ AppendChangesToExistingText *bool `json:"appendChangesToExistingText,omitempty"`
+ // LinesForEditing undocumented
+ LinesForEditing *int `json:"linesForEditing,omitempty"`
+ // MaxLength undocumented
+ MaxLength *int `json:"maxLength,omitempty"`
+ // TextType undocumented
+ TextType *string `json:"textType,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelThreat.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelThreat.go
new file mode 100644
index 00000000..cdcd4d02
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelThreat.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// ThreatAssessmentRequestObject undocumented
+type ThreatAssessmentRequestObject struct {
+ // Entity is the base model of ThreatAssessmentRequestObject
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ContentType undocumented
+ ContentType *ThreatAssessmentContentType `json:"contentType,omitempty"`
+ // ExpectedAssessment undocumented
+ ExpectedAssessment *ThreatExpectedAssessment `json:"expectedAssessment,omitempty"`
+ // Category undocumented
+ Category *ThreatCategory `json:"category,omitempty"`
+ // Status undocumented
+ Status *ThreatAssessmentStatus `json:"status,omitempty"`
+ // RequestSource undocumented
+ RequestSource *ThreatAssessmentRequestSource `json:"requestSource,omitempty"`
+ // CreatedBy undocumented
+ CreatedBy *IdentitySet `json:"createdBy,omitempty"`
+ // Results undocumented
+ Results []ThreatAssessmentResult `json:"results,omitempty"`
+}
+
+// ThreatAssessmentRequestsCount undocumented
+type ThreatAssessmentRequestsCount struct {
+ // Object is the base model of ThreatAssessmentRequestsCount
+ Object
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // PivotValue undocumented
+ PivotValue *string `json:"pivotValue,omitempty"`
+ // Count undocumented
+ Count *int `json:"count,omitempty"`
+}
+
+// ThreatAssessmentResult undocumented
+type ThreatAssessmentResult struct {
+ // Entity is the base model of ThreatAssessmentResult
+ Entity
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ResultType undocumented
+ ResultType *ThreatAssessmentResultType `json:"resultType,omitempty"`
+ // Message undocumented
+ Message *string `json:"message,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelThumbnail.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelThumbnail.go
new file mode 100644
index 00000000..362a62ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelThumbnail.go
@@ -0,0 +1,33 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Thumbnail undocumented
+type Thumbnail struct {
+ // Object is the base model of Thumbnail
+ Object
+ // Content undocumented
+ Content *Stream `json:"content,omitempty"`
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // SourceItemID undocumented
+ SourceItemID *string `json:"sourceItemId,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+}
+
+// ThumbnailSet undocumented
+type ThumbnailSet struct {
+ // Entity is the base model of ThumbnailSet
+ Entity
+ // Large undocumented
+ Large *Thumbnail `json:"large,omitempty"`
+ // Medium undocumented
+ Medium *Thumbnail `json:"medium,omitempty"`
+ // Small undocumented
+ Small *Thumbnail `json:"small,omitempty"`
+ // Source undocumented
+ Source *Thumbnail `json:"source,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTi.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTi.go
new file mode 100644
index 00000000..51f58588
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTi.go
@@ -0,0 +1,127 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TiIndicator undocumented
+type TiIndicator struct {
+ // Entity is the base model of TiIndicator
+ Entity
+ // Action undocumented
+ Action *TiAction `json:"action,omitempty"`
+ // ActivityGroupNames undocumented
+ ActivityGroupNames []string `json:"activityGroupNames,omitempty"`
+ // AdditionalInformation undocumented
+ AdditionalInformation *string `json:"additionalInformation,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // Confidence undocumented
+ Confidence *int `json:"confidence,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DiamondModel undocumented
+ DiamondModel *DiamondModel `json:"diamondModel,omitempty"`
+ // DomainName undocumented
+ DomainName *string `json:"domainName,omitempty"`
+ // EmailEncoding undocumented
+ EmailEncoding *string `json:"emailEncoding,omitempty"`
+ // EmailLanguage undocumented
+ EmailLanguage *string `json:"emailLanguage,omitempty"`
+ // EmailRecipient undocumented
+ EmailRecipient *string `json:"emailRecipient,omitempty"`
+ // EmailSenderAddress undocumented
+ EmailSenderAddress *string `json:"emailSenderAddress,omitempty"`
+ // EmailSenderName undocumented
+ EmailSenderName *string `json:"emailSenderName,omitempty"`
+ // EmailSourceDomain undocumented
+ EmailSourceDomain *string `json:"emailSourceDomain,omitempty"`
+ // EmailSourceIPAddress undocumented
+ EmailSourceIPAddress *string `json:"emailSourceIpAddress,omitempty"`
+ // EmailSubject undocumented
+ EmailSubject *string `json:"emailSubject,omitempty"`
+ // EmailXMailer undocumented
+ EmailXMailer *string `json:"emailXMailer,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // ExternalID undocumented
+ ExternalID *string `json:"externalId,omitempty"`
+ // FileCompileDateTime undocumented
+ FileCompileDateTime *time.Time `json:"fileCompileDateTime,omitempty"`
+ // FileCreatedDateTime undocumented
+ FileCreatedDateTime *time.Time `json:"fileCreatedDateTime,omitempty"`
+ // FileHashType undocumented
+ FileHashType *FileHashType `json:"fileHashType,omitempty"`
+ // FileHashValue undocumented
+ FileHashValue *string `json:"fileHashValue,omitempty"`
+ // FileMutexName undocumented
+ FileMutexName *string `json:"fileMutexName,omitempty"`
+ // FileName undocumented
+ FileName *string `json:"fileName,omitempty"`
+ // FilePacker undocumented
+ FilePacker *string `json:"filePacker,omitempty"`
+ // FilePath undocumented
+ FilePath *string `json:"filePath,omitempty"`
+ // FileSize undocumented
+ FileSize *int `json:"fileSize,omitempty"`
+ // FileType undocumented
+ FileType *string `json:"fileType,omitempty"`
+ // IngestedDateTime undocumented
+ IngestedDateTime *time.Time `json:"ingestedDateTime,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+ // KillChain undocumented
+ KillChain []string `json:"killChain,omitempty"`
+ // KnownFalsePositives undocumented
+ KnownFalsePositives *string `json:"knownFalsePositives,omitempty"`
+ // LastReportedDateTime undocumented
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // MalwareFamilyNames undocumented
+ MalwareFamilyNames []string `json:"malwareFamilyNames,omitempty"`
+ // NetworkCIDRBlock undocumented
+ NetworkCIDRBlock *string `json:"networkCidrBlock,omitempty"`
+ // NetworkDestinationAsn undocumented
+ NetworkDestinationAsn *int `json:"networkDestinationAsn,omitempty"`
+ // NetworkDestinationCIDRBlock undocumented
+ NetworkDestinationCIDRBlock *string `json:"networkDestinationCidrBlock,omitempty"`
+ // NetworkDestinationIPv4 undocumented
+ NetworkDestinationIPv4 *string `json:"networkDestinationIPv4,omitempty"`
+ // NetworkDestinationIPv6 undocumented
+ NetworkDestinationIPv6 *string `json:"networkDestinationIPv6,omitempty"`
+ // NetworkDestinationPort undocumented
+ NetworkDestinationPort *int `json:"networkDestinationPort,omitempty"`
+ // NetworkIPv4 undocumented
+ NetworkIPv4 *string `json:"networkIPv4,omitempty"`
+ // NetworkIPv6 undocumented
+ NetworkIPv6 *string `json:"networkIPv6,omitempty"`
+ // NetworkPort undocumented
+ NetworkPort *int `json:"networkPort,omitempty"`
+ // NetworkProtocol undocumented
+ NetworkProtocol *int `json:"networkProtocol,omitempty"`
+ // NetworkSourceAsn undocumented
+ NetworkSourceAsn *int `json:"networkSourceAsn,omitempty"`
+ // NetworkSourceCIDRBlock undocumented
+ NetworkSourceCIDRBlock *string `json:"networkSourceCidrBlock,omitempty"`
+ // NetworkSourceIPv4 undocumented
+ NetworkSourceIPv4 *string `json:"networkSourceIPv4,omitempty"`
+ // NetworkSourceIPv6 undocumented
+ NetworkSourceIPv6 *string `json:"networkSourceIPv6,omitempty"`
+ // NetworkSourcePort undocumented
+ NetworkSourcePort *int `json:"networkSourcePort,omitempty"`
+ // PassiveOnly undocumented
+ PassiveOnly *bool `json:"passiveOnly,omitempty"`
+ // Severity undocumented
+ Severity *int `json:"severity,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // TargetProduct undocumented
+ TargetProduct *string `json:"targetProduct,omitempty"`
+ // ThreatType undocumented
+ ThreatType *string `json:"threatType,omitempty"`
+ // TlpLevel undocumented
+ TlpLevel *TlpLevel `json:"tlpLevel,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // UserAgent undocumented
+ UserAgent *string `json:"userAgent,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTime.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTime.go
new file mode 100644
index 00000000..c7c7baa5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTime.go
@@ -0,0 +1,87 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// TimeConstraint undocumented
+type TimeConstraint struct {
+ // Object is the base model of TimeConstraint
+ Object
+ // ActivityDomain undocumented
+ ActivityDomain *ActivityDomain `json:"activityDomain,omitempty"`
+ // TimeSlots undocumented
+ TimeSlots []TimeSlot `json:"timeSlots,omitempty"`
+}
+
+// TimeOff undocumented
+type TimeOff struct {
+ // ChangeTrackedEntity is the base model of TimeOff
+ ChangeTrackedEntity
+ // SharedTimeOff undocumented
+ SharedTimeOff *TimeOffItem `json:"sharedTimeOff,omitempty"`
+ // DraftTimeOff undocumented
+ DraftTimeOff *TimeOffItem `json:"draftTimeOff,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+}
+
+// TimeOffItem undocumented
+type TimeOffItem struct {
+ // ScheduleEntity is the base model of TimeOffItem
+ ScheduleEntity
+ // TimeOffReasonID undocumented
+ TimeOffReasonID *string `json:"timeOffReasonId,omitempty"`
+}
+
+// TimeOffReason undocumented
+type TimeOffReason struct {
+ // ChangeTrackedEntity is the base model of TimeOffReason
+ ChangeTrackedEntity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IconType undocumented
+ IconType *TimeOffReasonIconType `json:"iconType,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+}
+
+// TimeOffRequestObject undocumented
+type TimeOffRequestObject struct {
+ // ScheduleChangeRequestObject is the base model of TimeOffRequestObject
+ ScheduleChangeRequestObject
+ // StartDateTime undocumented
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // EndDateTime undocumented
+ EndDateTime *time.Time `json:"endDateTime,omitempty"`
+ // TimeOffReasonID undocumented
+ TimeOffReasonID *string `json:"timeOffReasonId,omitempty"`
+}
+
+// TimeSlot undocumented
+type TimeSlot struct {
+ // Object is the base model of TimeSlot
+ Object
+ // Start undocumented
+ Start *DateTimeTimeZone `json:"start,omitempty"`
+ // End undocumented
+ End *DateTimeTimeZone `json:"end,omitempty"`
+}
+
+// TimeZoneBase undocumented
+type TimeZoneBase struct {
+ // Object is the base model of TimeZoneBase
+ Object
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+}
+
+// TimeZoneInformation undocumented
+type TimeZoneInformation struct {
+ // Object is the base model of TimeZoneInformation
+ Object
+ // Alias undocumented
+ Alias *string `json:"alias,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelToken.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelToken.go
new file mode 100644
index 00000000..bdc1164c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelToken.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TokenMeetingInfo undocumented
+type TokenMeetingInfo struct {
+ // MeetingInfo is the base model of TokenMeetingInfo
+ MeetingInfo
+ // Token undocumented
+ Token *string `json:"token,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTone.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTone.go
new file mode 100644
index 00000000..5675acba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTone.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// ToneInfo undocumented
+type ToneInfo struct {
+ // Object is the base model of ToneInfo
+ Object
+ // SequenceID undocumented
+ SequenceID *int `json:"sequenceId,omitempty"`
+ // Tone undocumented
+ Tone *Tone `json:"tone,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrending.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrending.go
new file mode 100644
index 00000000..e7b979f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrending.go
@@ -0,0 +1,21 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Trending undocumented
+type Trending struct {
+ // Entity is the base model of Trending
+ Entity
+ // Weight undocumented
+ Weight *float64 `json:"weight,omitempty"`
+ // ResourceVisualization undocumented
+ ResourceVisualization *ResourceVisualization `json:"resourceVisualization,omitempty"`
+ // ResourceReference undocumented
+ ResourceReference *ResourceReference `json:"resourceReference,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Resource undocumented
+ Resource *Entity `json:"resource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrust.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrust.go
new file mode 100644
index 00000000..82534669
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTrust.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TrustFramework undocumented
+type TrustFramework struct {
+ // Entity is the base model of TrustFramework
+ Entity
+ // Policies undocumented
+ Policies []TrustFrameworkPolicy `json:"policies,omitempty"`
+ // KeySets undocumented
+ KeySets []TrustFrameworkKeySet `json:"keySets,omitempty"`
+}
+
+// TrustFrameworkKey undocumented
+type TrustFrameworkKey struct {
+ // Object is the base model of TrustFrameworkKey
+ Object
+ // K undocumented
+ K *string `json:"k,omitempty"`
+ // X5c undocumented
+ X5c []string `json:"x5c,omitempty"`
+ // X5t undocumented
+ X5t *string `json:"x5t,omitempty"`
+ // Kty undocumented
+ Kty *string `json:"kty,omitempty"`
+ // Use undocumented
+ Use *string `json:"use,omitempty"`
+ // Exp undocumented
+ Exp *int `json:"exp,omitempty"`
+ // Nbf undocumented
+ Nbf *int `json:"nbf,omitempty"`
+ // Kid undocumented
+ Kid *string `json:"kid,omitempty"`
+ // E undocumented
+ E *string `json:"e,omitempty"`
+ // N undocumented
+ N *string `json:"n,omitempty"`
+ // D undocumented
+ D *string `json:"d,omitempty"`
+ // P undocumented
+ P *string `json:"p,omitempty"`
+ // Q undocumented
+ Q *string `json:"q,omitempty"`
+ // Dp undocumented
+ Dp *string `json:"dp,omitempty"`
+ // Dq undocumented
+ Dq *string `json:"dq,omitempty"`
+ // Qi undocumented
+ Qi *string `json:"qi,omitempty"`
+}
+
+// TrustFrameworkKeySet undocumented
+type TrustFrameworkKeySet struct {
+ // Entity is the base model of TrustFrameworkKeySet
+ Entity
+ // Keys undocumented
+ Keys []TrustFrameworkKey `json:"keys,omitempty"`
+}
+
+// TrustFrameworkPolicy undocumented
+type TrustFrameworkPolicy struct {
+ // Entity is the base model of TrustFrameworkPolicy
+ Entity
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelTyped.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTyped.go
new file mode 100644
index 00000000..f930901b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelTyped.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// TypedEmailAddress undocumented
+type TypedEmailAddress struct {
+ // EmailAddress is the base model of TypedEmailAddress
+ EmailAddress
+ // Type undocumented
+ Type *EmailType `json:"type,omitempty"`
+ // OtherLabel undocumented
+ OtherLabel *string `json:"otherLabel,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelURL.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelURL.go
new file mode 100644
index 00000000..9a15fed9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelURL.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// URLAssessmentRequestObject undocumented
+type URLAssessmentRequestObject struct {
+ // ThreatAssessmentRequestObject is the base model of URLAssessmentRequestObject
+ ThreatAssessmentRequestObject
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnary.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnary.go
new file mode 100644
index 00000000..1f7494f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnary.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnaryManagementConditionExpression undocumented
+type UnaryManagementConditionExpression struct {
+ // ManagementConditionExpressionModel is the base model of UnaryManagementConditionExpression
+ ManagementConditionExpressionModel
+ // Operator The operator used in the evaluation of the unary operation.
+ Operator *UnaryManagementConditionExpressionOperatorType `json:"operator,omitempty"`
+ // Operand The operand of the unary operation.
+ Operand *ManagementConditionExpressionModel `json:"operand,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnfamiliar.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnfamiliar.go
new file mode 100644
index 00000000..09bca98a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnfamiliar.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnfamiliarLocationRiskEvent undocumented
+type UnfamiliarLocationRiskEvent struct {
+ // LocatedRiskEvent is the base model of UnfamiliarLocationRiskEvent
+ LocatedRiskEvent
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnified.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnified.go
new file mode 100644
index 00000000..99c70171
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnified.go
@@ -0,0 +1,51 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnifiedRoleAssignment undocumented
+type UnifiedRoleAssignment struct {
+ // Entity is the base model of UnifiedRoleAssignment
+ Entity
+ // PrincipalID undocumented
+ PrincipalID *string `json:"principalId,omitempty"`
+ // ResourceScope undocumented
+ ResourceScope *string `json:"resourceScope,omitempty"`
+ // RoleDefinitionID undocumented
+ RoleDefinitionID *string `json:"roleDefinitionId,omitempty"`
+ // Principal undocumented
+ Principal *DirectoryObject `json:"principal,omitempty"`
+ // RoleDefinition undocumented
+ RoleDefinition *UnifiedRoleDefinition `json:"roleDefinition,omitempty"`
+}
+
+// UnifiedRoleDefinition undocumented
+type UnifiedRoleDefinition struct {
+ // Entity is the base model of UnifiedRoleDefinition
+ Entity
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsBuiltIn undocumented
+ IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
+ // IsEnabled undocumented
+ IsEnabled *bool `json:"isEnabled,omitempty"`
+ // ResourceScopes undocumented
+ ResourceScopes []string `json:"resourceScopes,omitempty"`
+ // RolePermissions undocumented
+ RolePermissions []UnifiedRolePermission `json:"rolePermissions,omitempty"`
+ // TemplateID undocumented
+ TemplateID *string `json:"templateId,omitempty"`
+ // Version undocumented
+ Version *string `json:"version,omitempty"`
+}
+
+// UnifiedRolePermission undocumented
+type UnifiedRolePermission struct {
+ // Object is the base model of UnifiedRolePermission
+ Object
+ // AllowedResourceActions undocumented
+ AllowedResourceActions []string `json:"allowedResourceActions,omitempty"`
+ // Condition undocumented
+ Condition *string `json:"condition,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnit.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnit.go
new file mode 100644
index 00000000..c55d760b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnit.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UnitOfMeasure undocumented
+type UnitOfMeasure struct {
+ // Entity is the base model of UnitOfMeasure
+ Entity
+ // Code undocumented
+ Code *string `json:"code,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // InternationalStandardCode undocumented
+ InternationalStandardCode *string `json:"internationalStandardCode,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnmute.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnmute.go
new file mode 100644
index 00000000..d37eaf01
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnmute.go
@@ -0,0 +1,9 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnmuteParticipantOperation undocumented
+type UnmuteParticipantOperation struct {
+ // CommsOperation is the base model of UnmuteParticipantOperation
+ CommsOperation
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnsupported.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnsupported.go
new file mode 100644
index 00000000..57ac1817
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUnsupported.go
@@ -0,0 +1,23 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UnsupportedDeviceConfiguration UnsupportedDeviceConfiguration is used when an entity cannot be mapped to another model-compliant subtype of deviceConfiguration.
+type UnsupportedDeviceConfiguration struct {
+ // DeviceConfiguration is the base model of UnsupportedDeviceConfiguration
+ DeviceConfiguration
+ // OriginalEntityTypeName The type of entity that would be returned otherwise.
+ OriginalEntityTypeName *string `json:"originalEntityTypeName,omitempty"`
+ // Details Details describing why the entity is unsupported. This collection can contain a maximum of 1000 elements.
+ Details []UnsupportedDeviceConfigurationDetail `json:"details,omitempty"`
+}
+
+// UnsupportedDeviceConfigurationDetail undocumented
+type UnsupportedDeviceConfigurationDetail struct {
+ // Object is the base model of UnsupportedDeviceConfigurationDetail
+ Object
+ // Message A message explaining why an entity is unsupported.
+ Message *string `json:"message,omitempty"`
+ // PropertyName If message is related to a specific property in the original entity, then the name of that property.
+ PropertyName *string `json:"propertyName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpdate.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpdate.go
new file mode 100644
index 00000000..0be000c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpdate.go
@@ -0,0 +1,37 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UpdateRecordingStatusOperation undocumented
+type UpdateRecordingStatusOperation struct {
+ // CommsOperation is the base model of UpdateRecordingStatusOperation
+ CommsOperation
+}
+
+// UpdateWindow undocumented
+type UpdateWindow struct {
+ // Object is the base model of UpdateWindow
+ Object
+ // UpdateWindowStartTime undocumented
+ UpdateWindowStartTime *TimeOfDay `json:"updateWindowStartTime,omitempty"`
+ // UpdateWindowEndTime undocumented
+ UpdateWindowEndTime *TimeOfDay `json:"updateWindowEndTime,omitempty"`
+}
+
+// UpdateWindowsDeviceAccountActionParameter undocumented
+type UpdateWindowsDeviceAccountActionParameter struct {
+ // Object is the base model of UpdateWindowsDeviceAccountActionParameter
+ Object
+ // DeviceAccount undocumented
+ DeviceAccount *WindowsDeviceAccount `json:"deviceAccount,omitempty"`
+ // PasswordRotationEnabled undocumented
+ PasswordRotationEnabled *bool `json:"passwordRotationEnabled,omitempty"`
+ // CalendarSyncEnabled undocumented
+ CalendarSyncEnabled *bool `json:"calendarSyncEnabled,omitempty"`
+ // DeviceAccountEmail undocumented
+ DeviceAccountEmail *string `json:"deviceAccountEmail,omitempty"`
+ // ExchangeServer undocumented
+ ExchangeServer *string `json:"exchangeServer,omitempty"`
+ // SessionInitiationProtocalAddress undocumented
+ SessionInitiationProtocalAddress *string `json:"sessionInitiationProtocalAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpload.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpload.go
new file mode 100644
index 00000000..dfb43012
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUpload.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UploadSession undocumented
+type UploadSession struct {
+ // Object is the base model of UploadSession
+ Object
+ // UploadURL undocumented
+ UploadURL *string `json:"uploadUrl,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // NextExpectedRanges undocumented
+ NextExpectedRanges []string `json:"nextExpectedRanges,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUsage.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUsage.go
new file mode 100644
index 00000000..5cecac71
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUsage.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// UsageDetails undocumented
+type UsageDetails struct {
+ // Object is the base model of UsageDetails
+ Object
+ // LastAccessedDateTime undocumented
+ LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUsed.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUsed.go
new file mode 100644
index 00000000..98e415b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUsed.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// UsedInsight undocumented
+type UsedInsight struct {
+ // Entity is the base model of UsedInsight
+ Entity
+ // LastUsed undocumented
+ LastUsed *UsageDetails `json:"lastUsed,omitempty"`
+ // ResourceVisualization undocumented
+ ResourceVisualization *ResourceVisualization `json:"resourceVisualization,omitempty"`
+ // ResourceReference undocumented
+ ResourceReference *ResourceReference `json:"resourceReference,omitempty"`
+ // Resource undocumented
+ Resource *Entity `json:"resource,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelUser.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUser.go
new file mode 100644
index 00000000..fd74221d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelUser.go
@@ -0,0 +1,698 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "encoding/json"
+ "time"
+)
+
+// User Represents an Azure Active Directory user object.
+type User struct {
+ // DirectoryObject is the base model of User
+ DirectoryObject
+ // SignInActivity undocumented
+ SignInActivity *SignInActivity `json:"signInActivity,omitempty"`
+ // AccountEnabled undocumented
+ AccountEnabled *bool `json:"accountEnabled,omitempty"`
+ // AgeGroup undocumented
+ AgeGroup *string `json:"ageGroup,omitempty"`
+ // AssignedLicenses undocumented
+ AssignedLicenses []AssignedLicense `json:"assignedLicenses,omitempty"`
+ // AssignedPlans undocumented
+ AssignedPlans []AssignedPlan `json:"assignedPlans,omitempty"`
+ // BusinessPhones undocumented
+ BusinessPhones []string `json:"businessPhones,omitempty"`
+ // City undocumented
+ City *string `json:"city,omitempty"`
+ // CompanyName undocumented
+ CompanyName *string `json:"companyName,omitempty"`
+ // ConsentProvidedForMinor undocumented
+ ConsentProvidedForMinor *string `json:"consentProvidedForMinor,omitempty"`
+ // Country undocumented
+ Country *string `json:"country,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // CreationType undocumented
+ CreationType *string `json:"creationType,omitempty"`
+ // Department undocumented
+ Department *string `json:"department,omitempty"`
+ // DeviceKeys undocumented
+ DeviceKeys []DeviceKey `json:"deviceKeys,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // EmployeeID undocumented
+ EmployeeID *string `json:"employeeId,omitempty"`
+ // FaxNumber undocumented
+ FaxNumber *string `json:"faxNumber,omitempty"`
+ // GivenName undocumented
+ GivenName *string `json:"givenName,omitempty"`
+ // Identities undocumented
+ Identities []ObjectIdentity `json:"identities,omitempty"`
+ // ImAddresses undocumented
+ ImAddresses []string `json:"imAddresses,omitempty"`
+ // IsResourceAccount undocumented
+ IsResourceAccount *bool `json:"isResourceAccount,omitempty"`
+ // JobTitle undocumented
+ JobTitle *string `json:"jobTitle,omitempty"`
+ // LastPasswordChangeDateTime undocumented
+ LastPasswordChangeDateTime *time.Time `json:"lastPasswordChangeDateTime,omitempty"`
+ // LegalAgeGroupClassification undocumented
+ LegalAgeGroupClassification *string `json:"legalAgeGroupClassification,omitempty"`
+ // LicenseAssignmentStates undocumented
+ LicenseAssignmentStates []LicenseAssignmentState `json:"licenseAssignmentStates,omitempty"`
+ // Mail undocumented
+ Mail *string `json:"mail,omitempty"`
+ // MailNickname undocumented
+ MailNickname *string `json:"mailNickname,omitempty"`
+ // MobilePhone undocumented
+ MobilePhone *string `json:"mobilePhone,omitempty"`
+ // OnPremisesDistinguishedName undocumented
+ OnPremisesDistinguishedName *string `json:"onPremisesDistinguishedName,omitempty"`
+ // OnPremisesExtensionAttributes undocumented
+ OnPremisesExtensionAttributes *OnPremisesExtensionAttributes `json:"onPremisesExtensionAttributes,omitempty"`
+ // OnPremisesImmutableID undocumented
+ OnPremisesImmutableID *string `json:"onPremisesImmutableId,omitempty"`
+ // OnPremisesLastSyncDateTime undocumented
+ OnPremisesLastSyncDateTime *time.Time `json:"onPremisesLastSyncDateTime,omitempty"`
+ // OnPremisesProvisioningErrors undocumented
+ OnPremisesProvisioningErrors []OnPremisesProvisioningError `json:"onPremisesProvisioningErrors,omitempty"`
+ // OnPremisesSecurityIdentifier undocumented
+ OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"`
+ // OnPremisesSyncEnabled undocumented
+ OnPremisesSyncEnabled *bool `json:"onPremisesSyncEnabled,omitempty"`
+ // OnPremisesDomainName undocumented
+ OnPremisesDomainName *string `json:"onPremisesDomainName,omitempty"`
+ // OnPremisesSamAccountName undocumented
+ OnPremisesSamAccountName *string `json:"onPremisesSamAccountName,omitempty"`
+ // OnPremisesUserPrincipalName undocumented
+ OnPremisesUserPrincipalName *string `json:"onPremisesUserPrincipalName,omitempty"`
+ // OtherMails undocumented
+ OtherMails []string `json:"otherMails,omitempty"`
+ // PasswordPolicies undocumented
+ PasswordPolicies *string `json:"passwordPolicies,omitempty"`
+ // PasswordProfile undocumented
+ PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
+ // OfficeLocation undocumented
+ OfficeLocation *string `json:"officeLocation,omitempty"`
+ // PostalCode undocumented
+ PostalCode *string `json:"postalCode,omitempty"`
+ // PreferredDataLocation undocumented
+ PreferredDataLocation *string `json:"preferredDataLocation,omitempty"`
+ // PreferredLanguage undocumented
+ PreferredLanguage *string `json:"preferredLanguage,omitempty"`
+ // ProvisionedPlans undocumented
+ ProvisionedPlans []ProvisionedPlan `json:"provisionedPlans,omitempty"`
+ // ProxyAddresses undocumented
+ ProxyAddresses []string `json:"proxyAddresses,omitempty"`
+ // RefreshTokensValidFromDateTime undocumented
+ RefreshTokensValidFromDateTime *time.Time `json:"refreshTokensValidFromDateTime,omitempty"`
+ // ShowInAddressList undocumented
+ ShowInAddressList *bool `json:"showInAddressList,omitempty"`
+ // SignInSessionsValidFromDateTime undocumented
+ SignInSessionsValidFromDateTime *time.Time `json:"signInSessionsValidFromDateTime,omitempty"`
+ // State undocumented
+ State *string `json:"state,omitempty"`
+ // StreetAddress undocumented
+ StreetAddress *string `json:"streetAddress,omitempty"`
+ // Surname undocumented
+ Surname *string `json:"surname,omitempty"`
+ // UsageLocation undocumented
+ UsageLocation *string `json:"usageLocation,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // ExternalUserState undocumented
+ ExternalUserState *string `json:"externalUserState,omitempty"`
+ // ExternalUserStateChangeDateTime undocumented
+ ExternalUserStateChangeDateTime *string `json:"externalUserStateChangeDateTime,omitempty"`
+ // UserType undocumented
+ UserType *string `json:"userType,omitempty"`
+ // MailboxSettings undocumented
+ MailboxSettings *MailboxSettings `json:"mailboxSettings,omitempty"`
+ // IdentityUserRisk undocumented
+ IdentityUserRisk *IdentityUserRisk `json:"identityUserRisk,omitempty"`
+ // DeviceEnrollmentLimit The limit on the maximum number of devices that the user is permitted to enroll. Allowed values are 5 or 1000.
+ DeviceEnrollmentLimit *int `json:"deviceEnrollmentLimit,omitempty"`
+ // AboutMe undocumented
+ AboutMe *string `json:"aboutMe,omitempty"`
+ // Birthday undocumented
+ Birthday *time.Time `json:"birthday,omitempty"`
+ // HireDate undocumented
+ HireDate *time.Time `json:"hireDate,omitempty"`
+ // Interests undocumented
+ Interests []string `json:"interests,omitempty"`
+ // MySite undocumented
+ MySite *string `json:"mySite,omitempty"`
+ // PastProjects undocumented
+ PastProjects []string `json:"pastProjects,omitempty"`
+ // PreferredName undocumented
+ PreferredName *string `json:"preferredName,omitempty"`
+ // Responsibilities undocumented
+ Responsibilities []string `json:"responsibilities,omitempty"`
+ // Schools undocumented
+ Schools []string `json:"schools,omitempty"`
+ // Skills undocumented
+ Skills []string `json:"skills,omitempty"`
+ // Analytics undocumented
+ Analytics *UserAnalytics `json:"analytics,omitempty"`
+ // InformationProtection undocumented
+ InformationProtection *InformationProtection `json:"informationProtection,omitempty"`
+ // AppRoleAssignments undocumented
+ AppRoleAssignments []AppRoleAssignment `json:"appRoleAssignments,omitempty"`
+ // CreatedObjects undocumented
+ CreatedObjects []DirectoryObject `json:"createdObjects,omitempty"`
+ // DirectReports undocumented
+ DirectReports []DirectoryObject `json:"directReports,omitempty"`
+ // LicenseDetails undocumented
+ LicenseDetails []LicenseDetails `json:"licenseDetails,omitempty"`
+ // Manager undocumented
+ Manager *DirectoryObject `json:"manager,omitempty"`
+ // MemberOf undocumented
+ MemberOf []DirectoryObject `json:"memberOf,omitempty"`
+ // OwnedDevices undocumented
+ OwnedDevices []DirectoryObject `json:"ownedDevices,omitempty"`
+ // OwnedObjects undocumented
+ OwnedObjects []DirectoryObject `json:"ownedObjects,omitempty"`
+ // RegisteredDevices undocumented
+ RegisteredDevices []DirectoryObject `json:"registeredDevices,omitempty"`
+ // ScopedRoleMemberOf undocumented
+ ScopedRoleMemberOf []ScopedRoleMembership `json:"scopedRoleMemberOf,omitempty"`
+ // TransitiveMemberOf undocumented
+ TransitiveMemberOf []DirectoryObject `json:"transitiveMemberOf,omitempty"`
+ // Outlook undocumented
+ Outlook *OutlookUser `json:"outlook,omitempty"`
+ // Messages undocumented
+ Messages []Message `json:"messages,omitempty"`
+ // JoinedGroups undocumented
+ JoinedGroups []Group `json:"joinedGroups,omitempty"`
+ // MailFolders undocumented
+ MailFolders []MailFolder `json:"mailFolders,omitempty"`
+ // Calendar undocumented
+ Calendar *Calendar `json:"calendar,omitempty"`
+ // Calendars undocumented
+ Calendars []Calendar `json:"calendars,omitempty"`
+ // CalendarGroups undocumented
+ CalendarGroups []CalendarGroup `json:"calendarGroups,omitempty"`
+ // CalendarView undocumented
+ CalendarView []Event `json:"calendarView,omitempty"`
+ // Events undocumented
+ Events []Event `json:"events,omitempty"`
+ // People undocumented
+ People []Person `json:"people,omitempty"`
+ // Contacts undocumented
+ Contacts []Contact `json:"contacts,omitempty"`
+ // ContactFolders undocumented
+ ContactFolders []ContactFolder `json:"contactFolders,omitempty"`
+ // InferenceClassification undocumented
+ InferenceClassification *InferenceClassification `json:"inferenceClassification,omitempty"`
+ // Photo undocumented
+ Photo *ProfilePhoto `json:"photo,omitempty"`
+ // Photos undocumented
+ Photos []ProfilePhoto `json:"photos,omitempty"`
+ // Drive undocumented
+ Drive *Drive `json:"drive,omitempty"`
+ // Drives undocumented
+ Drives []Drive `json:"drives,omitempty"`
+ // FollowedSites undocumented
+ FollowedSites []Site `json:"followedSites,omitempty"`
+ // Extensions undocumented
+ Extensions []Extension `json:"extensions,omitempty"`
+ // AgreementAcceptances undocumented
+ AgreementAcceptances []AgreementAcceptance `json:"agreementAcceptances,omitempty"`
+ // DeviceEnrollmentConfigurations undocumented
+ DeviceEnrollmentConfigurations []DeviceEnrollmentConfiguration `json:"deviceEnrollmentConfigurations,omitempty"`
+ // ManagedDevices undocumented
+ ManagedDevices []ManagedDevice `json:"managedDevices,omitempty"`
+ // ManagedAppRegistrations undocumented
+ ManagedAppRegistrations []ManagedAppRegistration `json:"managedAppRegistrations,omitempty"`
+ // WindowsInformationProtectionDeviceRegistrations undocumented
+ WindowsInformationProtectionDeviceRegistrations []WindowsInformationProtectionDeviceRegistration `json:"windowsInformationProtectionDeviceRegistrations,omitempty"`
+ // DeviceManagementTroubleshootingEvents undocumented
+ DeviceManagementTroubleshootingEvents []DeviceManagementTroubleshootingEvent `json:"deviceManagementTroubleshootingEvents,omitempty"`
+ // MobileAppIntentAndStates undocumented
+ MobileAppIntentAndStates []MobileAppIntentAndState `json:"mobileAppIntentAndStates,omitempty"`
+ // MobileAppTroubleshootingEvents undocumented
+ MobileAppTroubleshootingEvents []MobileAppTroubleshootingEvent `json:"mobileAppTroubleshootingEvents,omitempty"`
+ // Notifications undocumented
+ Notifications []Notification `json:"notifications,omitempty"`
+ // Planner undocumented
+ Planner *PlannerUser `json:"planner,omitempty"`
+ // Insights undocumented
+ Insights *OfficeGraphInsights `json:"insights,omitempty"`
+ // Settings undocumented
+ Settings *UserSettings `json:"settings,omitempty"`
+ // Onenote undocumented
+ Onenote *Onenote `json:"onenote,omitempty"`
+ // Profile undocumented
+ Profile *Profile `json:"profile,omitempty"`
+ // Activities undocumented
+ Activities []UserActivity `json:"activities,omitempty"`
+ // Devices undocumented
+ Devices []Device `json:"devices,omitempty"`
+ // OnlineMeetings undocumented
+ OnlineMeetings []OnlineMeeting `json:"onlineMeetings,omitempty"`
+ // Presence undocumented
+ Presence *Presence `json:"presence,omitempty"`
+ // Chats undocumented
+ Chats []Chat `json:"chats,omitempty"`
+ // JoinedTeams undocumented
+ JoinedTeams []Team `json:"joinedTeams,omitempty"`
+ // Teamwork undocumented
+ Teamwork *UserTeamwork `json:"teamwork,omitempty"`
+}
+
+// UserAccount undocumented
+type UserAccount struct {
+ // Object is the base model of UserAccount
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastSeenDateTime undocumented
+ LastSeenDateTime *time.Time `json:"lastSeenDateTime,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Service undocumented
+ Service *string `json:"service,omitempty"`
+ // SigninName undocumented
+ SigninName *string `json:"signinName,omitempty"`
+ // Status undocumented
+ Status *AccountStatus `json:"status,omitempty"`
+}
+
+// UserAccountInformation undocumented
+type UserAccountInformation struct {
+ // ItemFacet is the base model of UserAccountInformation
+ ItemFacet
+ // AgeGroup undocumented
+ AgeGroup *string `json:"ageGroup,omitempty"`
+ // CountryCode undocumented
+ CountryCode *string `json:"countryCode,omitempty"`
+ // PreferredLanguageTag undocumented
+ PreferredLanguageTag *LocaleInfo `json:"preferredLanguageTag,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// UserActivationCounts undocumented
+type UserActivationCounts struct {
+ // Object is the base model of UserActivationCounts
+ Object
+ // ProductType undocumented
+ ProductType *string `json:"productType,omitempty"`
+ // LastActivatedDate undocumented
+ LastActivatedDate *Date `json:"lastActivatedDate,omitempty"`
+ // Windows undocumented
+ Windows *int `json:"windows,omitempty"`
+ // Mac undocumented
+ Mac *int `json:"mac,omitempty"`
+ // Windows10Mobile undocumented
+ Windows10Mobile *int `json:"windows10Mobile,omitempty"`
+ // IOS undocumented
+ IOS *int `json:"ios,omitempty"`
+ // Android undocumented
+ Android *int `json:"android,omitempty"`
+ // ActivatedOnSharedComputer undocumented
+ ActivatedOnSharedComputer *bool `json:"activatedOnSharedComputer,omitempty"`
+}
+
+// UserActivity undocumented
+type UserActivity struct {
+ // Entity is the base model of UserActivity
+ Entity
+ // VisualElements undocumented
+ VisualElements *VisualInfo `json:"visualElements,omitempty"`
+ // ActivitySourceHost undocumented
+ ActivitySourceHost *string `json:"activitySourceHost,omitempty"`
+ // ActivationURL undocumented
+ ActivationURL *string `json:"activationUrl,omitempty"`
+ // AppActivityID undocumented
+ AppActivityID *string `json:"appActivityId,omitempty"`
+ // AppDisplayName undocumented
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+ // ContentURL undocumented
+ ContentURL *string `json:"contentUrl,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // ExpirationDateTime undocumented
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // FallbackURL undocumented
+ FallbackURL *string `json:"fallbackUrl,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // UserTimezone undocumented
+ UserTimezone *string `json:"userTimezone,omitempty"`
+ // ContentInfo undocumented
+ ContentInfo json.RawMessage `json:"contentInfo,omitempty"`
+ // Status undocumented
+ Status *Status `json:"status,omitempty"`
+ // HistoryItems undocumented
+ HistoryItems []ActivityHistoryItem `json:"historyItems,omitempty"`
+}
+
+// UserAnalytics undocumented
+type UserAnalytics struct {
+ // Entity is the base model of UserAnalytics
+ Entity
+ // Settings undocumented
+ Settings *Settings `json:"settings,omitempty"`
+ // ActivityStatistics undocumented
+ ActivityStatistics []ActivityStatistics `json:"activityStatistics,omitempty"`
+}
+
+// UserAppInstallStatus Contains properties for the installation status for a user.
+type UserAppInstallStatus struct {
+ // Entity is the base model of UserAppInstallStatus
+ Entity
+ // UserName User name.
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName User Principal Name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // InstalledDeviceCount Installed Device Count.
+ InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"`
+ // FailedDeviceCount Failed Device Count.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+ // NotInstalledDeviceCount Not installed device count.
+ NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"`
+ // App undocumented
+ App *MobileApp `json:"app,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []MobileAppInstallStatus `json:"deviceStatuses,omitempty"`
+}
+
+// UserConfiguration undocumented
+type UserConfiguration struct {
+ // Entity is the base model of UserConfiguration
+ Entity
+ // BinaryData undocumented
+ BinaryData *Binary `json:"binaryData,omitempty"`
+}
+
+// UserCredentialUsageDetails undocumented
+type UserCredentialUsageDetails struct {
+ // Entity is the base model of UserCredentialUsageDetails
+ Entity
+ // Feature undocumented
+ Feature *FeatureType `json:"feature,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // UserDisplayName undocumented
+ UserDisplayName *string `json:"userDisplayName,omitempty"`
+ // IsSuccess undocumented
+ IsSuccess *bool `json:"isSuccess,omitempty"`
+ // AuthMethod undocumented
+ AuthMethod *UsageAuthMethod `json:"authMethod,omitempty"`
+ // FailureReason undocumented
+ FailureReason *string `json:"failureReason,omitempty"`
+ // EventDateTime undocumented
+ EventDateTime *time.Time `json:"eventDateTime,omitempty"`
+}
+
+// UserExperienceAnalyticsBaseline The user experience analytics baseline entity contains baseline values against which to compare the user experience analytics scores.
+type UserExperienceAnalyticsBaseline struct {
+ // Entity is the base model of UserExperienceAnalyticsBaseline
+ Entity
+ // DisplayName The name of the user experience analytics baseline.
+ DisplayName *string `json:"displayName,omitempty"`
+ // IsBuiltIn Signifies if the current baseline is the commercial median baseline or a custom baseline.
+ IsBuiltIn *bool `json:"isBuiltIn,omitempty"`
+ // CreatedDateTime The date the custom baseline was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DeviceBootPerformanceMetrics undocumented
+ DeviceBootPerformanceMetrics *UserExperienceAnalyticsCategory `json:"deviceBootPerformanceMetrics,omitempty"`
+ // BestPracticesMetrics undocumented
+ BestPracticesMetrics *UserExperienceAnalyticsCategory `json:"bestPracticesMetrics,omitempty"`
+}
+
+// UserExperienceAnalyticsCategory The user experience analytics category entity contains the scores and insights for the various metrics of a category.
+type UserExperienceAnalyticsCategory struct {
+ // Entity is the base model of UserExperienceAnalyticsCategory
+ Entity
+ // Insights The insights for the user experience analytics category.
+ Insights []UserExperienceAnalyticsInsight `json:"insights,omitempty"`
+ // MetricValues undocumented
+ MetricValues []UserExperienceAnalyticsMetric `json:"metricValues,omitempty"`
+}
+
+// UserExperienceAnalyticsDevicePerformance The user experience analytics device performance entity contains device boot performance details.
+type UserExperienceAnalyticsDevicePerformance struct {
+ // Entity is the base model of UserExperienceAnalyticsDevicePerformance
+ Entity
+ // DeviceName The user experience analytics device name.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // Model The user experience analytics device model.
+ Model *string `json:"model,omitempty"`
+ // Manufacturer The user experience analytics device manufacturer.
+ Manufacturer *string `json:"manufacturer,omitempty"`
+ // DiskType The user experience analytics device disk type.
+ DiskType *DiskType `json:"diskType,omitempty"`
+ // OperatingSystemVersion The user experience analytics device Operating System version.
+ OperatingSystemVersion *string `json:"operatingSystemVersion,omitempty"`
+ // BootScore The user experience analytics device boot score.
+ BootScore *int `json:"bootScore,omitempty"`
+ // CoreBootTimeInMs The user experience analytics device core boot time in milliseconds.
+ CoreBootTimeInMs *int `json:"coreBootTimeInMs,omitempty"`
+ // GroupPolicyBootTimeInMs The user experience analytics device group policy boot time in milliseconds.
+ GroupPolicyBootTimeInMs *int `json:"groupPolicyBootTimeInMs,omitempty"`
+ // HealthStatus The health state of the user experience analytics device.
+ HealthStatus *UserExperienceAnalyticsHealthState `json:"healthStatus,omitempty"`
+ // LoginScore The user experience analytics device login score.
+ LoginScore *int `json:"loginScore,omitempty"`
+ // CoreLoginTimeInMs The user experience analytics device core login time in milliseconds.
+ CoreLoginTimeInMs *int `json:"coreLoginTimeInMs,omitempty"`
+ // GroupPolicyLoginTimeInMs The user experience analytics device group policy login time in milliseconds.
+ GroupPolicyLoginTimeInMs *int `json:"groupPolicyLoginTimeInMs,omitempty"`
+ // DeviceCount User experience analytics summarized device count.
+ DeviceCount *int `json:"deviceCount,omitempty"`
+}
+
+// UserExperienceAnalyticsDeviceStartupHistory The user experience analytics device startup history entity contains device boot performance history details.
+type UserExperienceAnalyticsDeviceStartupHistory struct {
+ // Entity is the base model of UserExperienceAnalyticsDeviceStartupHistory
+ Entity
+ // DeviceID The user experience analytics device id.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // StartTime The user experience analytics device boot start time.
+ StartTime *time.Time `json:"startTime,omitempty"`
+ // CoreBootTimeInMs The user experience analytics device core boot time in milliseconds.
+ CoreBootTimeInMs *int `json:"coreBootTimeInMs,omitempty"`
+ // GroupPolicyBootTimeInMs The User experience analytics Device group policy boot time in milliseconds.
+ GroupPolicyBootTimeInMs *int `json:"groupPolicyBootTimeInMs,omitempty"`
+ // FeatureUpdateBootTimeInMs The user experience analytics device feature update time in milliseconds.
+ FeatureUpdateBootTimeInMs *int `json:"featureUpdateBootTimeInMs,omitempty"`
+ // TotalBootTimeInMs The user experience analytics device total boot time in milliseconds.
+ TotalBootTimeInMs *int `json:"totalBootTimeInMs,omitempty"`
+ // GroupPolicyLoginTimeInMs The User experience analytics Device group policy login time in milliseconds.
+ GroupPolicyLoginTimeInMs *int `json:"groupPolicyLoginTimeInMs,omitempty"`
+ // CoreLoginTimeInMs The user experience analytics device core login time in milliseconds.
+ CoreLoginTimeInMs *int `json:"coreLoginTimeInMs,omitempty"`
+ // TotalLoginTimeInMs The user experience analytics device total login time in milliseconds.
+ TotalLoginTimeInMs *int `json:"totalLoginTimeInMs,omitempty"`
+ // IsFirstLogin The user experience analytics device first login.
+ IsFirstLogin *bool `json:"isFirstLogin,omitempty"`
+}
+
+// UserExperienceAnalyticsInsight undocumented
+type UserExperienceAnalyticsInsight struct {
+ // Object is the base model of UserExperienceAnalyticsInsight
+ Object
+ // UserExperienceAnalyticsMetricID The unique identifier of the user experience analytics insight.
+ UserExperienceAnalyticsMetricID *string `json:"userExperienceAnalyticsMetricId,omitempty"`
+ // InsightID The unique identifier of the user experience analytics insight.
+ InsightID *string `json:"insightId,omitempty"`
+ // Values The value of the user experience analytics insight.
+ Values []UserExperienceAnalyticsInsightValue `json:"values,omitempty"`
+ // Severity The value of the user experience analytics insight.
+ Severity *UserExperienceAnalyticsInsightSeverity `json:"severity,omitempty"`
+}
+
+// UserExperienceAnalyticsInsightValue undocumented
+type UserExperienceAnalyticsInsightValue struct {
+ // Object is the base model of UserExperienceAnalyticsInsightValue
+ Object
+}
+
+// UserExperienceAnalyticsMetric The user experience analytics metric contains the score and units of a metric of a user experience anlaytics category.
+type UserExperienceAnalyticsMetric struct {
+ // Entity is the base model of UserExperienceAnalyticsMetric
+ Entity
+ // Value The value of the user experience analytics metric.
+ Value *float64 `json:"value,omitempty"`
+ // Unit The unit of the user experience analytics metric.
+ Unit *string `json:"unit,omitempty"`
+}
+
+// UserExperienceAnalyticsOverview The user experience analytics overview entity contains the overall score and the scores and insights of every metric of all categories.
+type UserExperienceAnalyticsOverview struct {
+ // Entity is the base model of UserExperienceAnalyticsOverview
+ Entity
+ // Insights The user experience analytics insights.
+ Insights []UserExperienceAnalyticsInsight `json:"insights,omitempty"`
+}
+
+// UserExperienceAnalyticsRegressionSummary The user experience analytics Regression Summary.
+type UserExperienceAnalyticsRegressionSummary struct {
+ // Entity is the base model of UserExperienceAnalyticsRegressionSummary
+ Entity
+ // ModelRegression undocumented
+ ModelRegression []UserExperienceAnalyticsMetric `json:"modelRegression,omitempty"`
+ // ManufacturerRegression undocumented
+ ManufacturerRegression []UserExperienceAnalyticsMetric `json:"manufacturerRegression,omitempty"`
+ // OperatingSystemRegression undocumented
+ OperatingSystemRegression []UserExperienceAnalyticsMetric `json:"operatingSystemRegression,omitempty"`
+}
+
+// UserGovernanceCriteria undocumented
+type UserGovernanceCriteria struct {
+ // GovernanceCriteria is the base model of UserGovernanceCriteria
+ GovernanceCriteria
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+}
+
+// UserIdentity undocumented
+type UserIdentity struct {
+ // Object is the base model of UserIdentity
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // IPAddress undocumented
+ IPAddress *string `json:"ipAddress,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// UserInstallStateSummary Contains properties for the installation state summary for a user.
+type UserInstallStateSummary struct {
+ // Entity is the base model of UserInstallStateSummary
+ Entity
+ // UserName User name.
+ UserName *string `json:"userName,omitempty"`
+ // InstalledDeviceCount Installed Device Count.
+ InstalledDeviceCount *int `json:"installedDeviceCount,omitempty"`
+ // FailedDeviceCount Failed Device Count.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+ // NotInstalledDeviceCount Not installed device count.
+ NotInstalledDeviceCount *int `json:"notInstalledDeviceCount,omitempty"`
+ // DeviceStates undocumented
+ DeviceStates []DeviceInstallState `json:"deviceStates,omitempty"`
+}
+
+// UserPFXCertificate Entity that encapsulates all information required for a user's PFX certificates.
+type UserPFXCertificate struct {
+ // Entity is the base model of UserPFXCertificate
+ Entity
+ // Thumbprint SHA-1 thumbprint of the PFX certificate.
+ Thumbprint *string `json:"thumbprint,omitempty"`
+ // IntendedPurpose Certificate's intended purpose from the point-of-view of deployment.
+ IntendedPurpose *UserPfxIntendedPurpose `json:"intendedPurpose,omitempty"`
+ // UserPrincipalName User Principal Name of the PFX certificate.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // StartDateTime Certificate's validity start date/time.
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // ExpirationDateTime Certificate's validity expiration date/time.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // ProviderName Crypto provider used to encrypt this blob.
+ ProviderName *string `json:"providerName,omitempty"`
+ // KeyName Name of the key (within the provider) used to encrypt the blob.
+ KeyName *string `json:"keyName,omitempty"`
+ // PaddingScheme Padding scheme used by the provider during encryption/decryption.
+ PaddingScheme *UserPfxPaddingScheme `json:"paddingScheme,omitempty"`
+ // EncryptedPfxBlob Encrypted PFX blob.
+ EncryptedPfxBlob *Binary `json:"encryptedPfxBlob,omitempty"`
+ // EncryptedPfxPassword Encrypted PFX password.
+ EncryptedPfxPassword *string `json:"encryptedPfxPassword,omitempty"`
+ // CreatedDateTime Date/time when this PFX certificate was imported.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Date/time when this PFX certificate was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+}
+
+// UserRegistrationCount undocumented
+type UserRegistrationCount struct {
+ // Object is the base model of UserRegistrationCount
+ Object
+ // RegistrationStatus undocumented
+ RegistrationStatus *RegistrationStatusType `json:"registrationStatus,omitempty"`
+ // RegistrationCount undocumented
+ RegistrationCount *int `json:"registrationCount,omitempty"`
+}
+
+// UserSecurityProfile undocumented
+type UserSecurityProfile struct {
+ // Entity is the base model of UserSecurityProfile
+ Entity
+ // Accounts undocumented
+ Accounts []UserAccount `json:"accounts,omitempty"`
+ // AzureSubscriptionID undocumented
+ AzureSubscriptionID *string `json:"azureSubscriptionId,omitempty"`
+ // AzureTenantID undocumented
+ AzureTenantID *string `json:"azureTenantId,omitempty"`
+ // CreatedDateTime undocumented
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // Tags undocumented
+ Tags []string `json:"tags,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // VendorInformation undocumented
+ VendorInformation *SecurityVendorInformation `json:"vendorInformation,omitempty"`
+}
+
+// UserSecurityState undocumented
+type UserSecurityState struct {
+ // Object is the base model of UserSecurityState
+ Object
+ // AadUserID undocumented
+ AadUserID *string `json:"aadUserId,omitempty"`
+ // AccountName undocumented
+ AccountName *string `json:"accountName,omitempty"`
+ // DomainName undocumented
+ DomainName *string `json:"domainName,omitempty"`
+ // EmailRole undocumented
+ EmailRole *EmailRole `json:"emailRole,omitempty"`
+ // IsVPN undocumented
+ IsVPN *bool `json:"isVpn,omitempty"`
+ // LogonDateTime undocumented
+ LogonDateTime *time.Time `json:"logonDateTime,omitempty"`
+ // LogonID undocumented
+ LogonID *string `json:"logonId,omitempty"`
+ // LogonIP undocumented
+ LogonIP *string `json:"logonIp,omitempty"`
+ // LogonLocation undocumented
+ LogonLocation *string `json:"logonLocation,omitempty"`
+ // LogonType undocumented
+ LogonType *LogonType `json:"logonType,omitempty"`
+ // OnPremisesSecurityIdentifier undocumented
+ OnPremisesSecurityIdentifier *string `json:"onPremisesSecurityIdentifier,omitempty"`
+ // RiskScore undocumented
+ RiskScore *string `json:"riskScore,omitempty"`
+ // UserAccountType undocumented
+ UserAccountType *UserAccountSecurityType `json:"userAccountType,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// UserSettings undocumented
+type UserSettings struct {
+ // Entity is the base model of UserSettings
+ Entity
+ // ContributionToContentDiscoveryDisabled undocumented
+ ContributionToContentDiscoveryDisabled *bool `json:"contributionToContentDiscoveryDisabled,omitempty"`
+ // ContributionToContentDiscoveryAsOrganizationDisabled undocumented
+ ContributionToContentDiscoveryAsOrganizationDisabled *bool `json:"contributionToContentDiscoveryAsOrganizationDisabled,omitempty"`
+}
+
+// UserTeamwork undocumented
+type UserTeamwork struct {
+ // Entity is the base model of UserTeamwork
+ Entity
+ // InstalledApps undocumented
+ InstalledApps []TeamsAppInstallation `json:"installedApps,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPN.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPN.go
new file mode 100644
index 00000000..668f139f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPN.go
@@ -0,0 +1,115 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VPNConfiguration Base VPN Configuration profile.
+type VPNConfiguration struct {
+ // DeviceConfiguration is the base model of VPNConfiguration
+ DeviceConfiguration
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // Role Role when connection type is set to Pulse Secure.
+ Role *string `json:"role,omitempty"`
+ // Realm Realm when connection type is set to Pulse Secure.
+ Realm *string `json:"realm,omitempty"`
+ // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
+ Servers []VPNServer `json:"servers,omitempty"`
+}
+
+// VPNDNSRule undocumented
+type VPNDNSRule struct {
+ // Object is the base model of VPNDNSRule
+ Object
+ // Name Name.
+ Name *string `json:"name,omitempty"`
+ // Servers Servers.
+ Servers []string `json:"servers,omitempty"`
+ // ProxyServerURI Proxy Server Uri.
+ ProxyServerURI *string `json:"proxyServerUri,omitempty"`
+ // AutoTrigger Automatically connect to the VPN when the device connects to this domain: Default False.
+ AutoTrigger *bool `json:"autoTrigger,omitempty"`
+ // Persistent Keep this rule active even when the VPN is not connected: Default False
+ Persistent *bool `json:"persistent,omitempty"`
+}
+
+// VPNOnDemandRule undocumented
+type VPNOnDemandRule struct {
+ // Object is the base model of VPNOnDemandRule
+ Object
+ // Ssids Network Service Set Identifiers (SSIDs).
+ Ssids []string `json:"ssids,omitempty"`
+ // DNSSearchDomains DNS Search Domains.
+ DNSSearchDomains []string `json:"dnsSearchDomains,omitempty"`
+ // ProbeURL A URL to probe. If this URL is successfully fetched (returning a 200 HTTP status code) without redirection, this rule matches.
+ ProbeURL *string `json:"probeUrl,omitempty"`
+ // Action Action.
+ Action *VPNOnDemandRuleConnectionAction `json:"action,omitempty"`
+ // DomainAction Domain Action (Only applicable when Action is evaluate connection).
+ DomainAction *VPNOnDemandRuleConnectionDomainAction `json:"domainAction,omitempty"`
+ // Domains Domains (Only applicable when Action is evaluate connection).
+ Domains []string `json:"domains,omitempty"`
+ // ProbeRequiredURL Probe Required Url (Only applicable when Action is evaluate connection and DomainAction is connect if needed).
+ ProbeRequiredURL *string `json:"probeRequiredUrl,omitempty"`
+}
+
+// VPNProxyServer undocumented
+type VPNProxyServer struct {
+ // Object is the base model of VPNProxyServer
+ Object
+ // AutomaticConfigurationScriptURL Proxy's automatic configuration script url.
+ AutomaticConfigurationScriptURL *string `json:"automaticConfigurationScriptUrl,omitempty"`
+ // Address Address.
+ Address *string `json:"address,omitempty"`
+ // Port Port. Valid values 0 to 65535
+ Port *int `json:"port,omitempty"`
+}
+
+// VPNRoute undocumented
+type VPNRoute struct {
+ // Object is the base model of VPNRoute
+ Object
+ // DestinationPrefix Destination prefix (IPv4/v6 address).
+ DestinationPrefix *string `json:"destinationPrefix,omitempty"`
+ // PrefixSize Prefix size. (1-32). Valid values 1 to 32
+ PrefixSize *int `json:"prefixSize,omitempty"`
+}
+
+// VPNServer undocumented
+type VPNServer struct {
+ // Object is the base model of VPNServer
+ Object
+ // Description Description.
+ Description *string `json:"description,omitempty"`
+ // Address Address (IP address, FQDN or URL)
+ Address *string `json:"address,omitempty"`
+ // IsDefaultServer Default server.
+ IsDefaultServer *bool `json:"isDefaultServer,omitempty"`
+}
+
+// VPNTrafficRule undocumented
+type VPNTrafficRule struct {
+ // Object is the base model of VPNTrafficRule
+ Object
+ // Name Name.
+ Name *string `json:"name,omitempty"`
+ // Protocols Protocols (0-255). Valid values 0 to 255
+ Protocols *int `json:"protocols,omitempty"`
+ // LocalPortRanges Local port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.
+ LocalPortRanges []NumberRange `json:"localPortRanges,omitempty"`
+ // RemotePortRanges Remote port range can be set only when protocol is either TCP or UDP (6 or 17). This collection can contain a maximum of 500 elements.
+ RemotePortRanges []NumberRange `json:"remotePortRanges,omitempty"`
+ // LocalAddressRanges Local address range. This collection can contain a maximum of 500 elements.
+ LocalAddressRanges []IPv4Range `json:"localAddressRanges,omitempty"`
+ // RemoteAddressRanges Remote address range. This collection can contain a maximum of 500 elements.
+ RemoteAddressRanges []IPv4Range `json:"remoteAddressRanges,omitempty"`
+ // AppID App identifier, if this traffic rule is triggered by an app.
+ AppID *string `json:"appId,omitempty"`
+ // AppType App type, if this traffic rule is triggered by an app.
+ AppType *VPNTrafficRuleAppType `json:"appType,omitempty"`
+ // RoutingPolicyType When app triggered, indicates whether to enable split tunneling along this route.
+ RoutingPolicyType *VPNTrafficRuleRoutingPolicyType `json:"routingPolicyType,omitempty"`
+ // Claims Claims associated with this traffic rule.
+ Claims *string `json:"claims,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPP.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPP.go
new file mode 100644
index 00000000..148bac28
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVPP.go
@@ -0,0 +1,101 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// VPPLicensingType undocumented
+type VPPLicensingType struct {
+ // Object is the base model of VPPLicensingType
+ Object
+ // SupportUserLicensing Whether the program supports the user licensing type.
+ SupportUserLicensing *bool `json:"supportUserLicensing,omitempty"`
+ // SupportDeviceLicensing Whether the program supports the device licensing type.
+ SupportDeviceLicensing *bool `json:"supportDeviceLicensing,omitempty"`
+ // SupportsUserLicensing Whether the program supports the user licensing type.
+ SupportsUserLicensing *bool `json:"supportsUserLicensing,omitempty"`
+ // SupportsDeviceLicensing Whether the program supports the device licensing type.
+ SupportsDeviceLicensing *bool `json:"supportsDeviceLicensing,omitempty"`
+}
+
+// VPPToken You purchase multiple licenses for iOS apps through the Apple Volume Purchase Program for Business or Education. This involves setting up an Apple VPP account from the Apple website and uploading the Apple VPP Business or Education token to Intune. You can then synchronize your volume purchase information with Intune and track your volume-purchased app use. You can upload multiple Apple VPP Business or Education tokens.
+type VPPToken struct {
+ // Entity is the base model of VPPToken
+ Entity
+ // OrganizationName The organization associated with the Apple Volume Purchase Program Token
+ OrganizationName *string `json:"organizationName,omitempty"`
+ // VPPTokenAccountType The type of volume purchase program which the given Apple Volume Purchase Program Token is associated with. Possible values are: `business`, `education`.
+ VPPTokenAccountType *VPPTokenAccountType `json:"vppTokenAccountType,omitempty"`
+ // AppleID The apple Id associated with the given Apple Volume Purchase Program Token.
+ AppleID *string `json:"appleId,omitempty"`
+ // ExpirationDateTime The expiration date time of the Apple Volume Purchase Program Token.
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // LastSyncDateTime The last time when an application sync was done with the Apple volume purchase program service using the the Apple Volume Purchase Program Token.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // Token The Apple Volume Purchase Program Token string downloaded from the Apple Volume Purchase Program.
+ Token *string `json:"token,omitempty"`
+ // LastModifiedDateTime Last modification date time associated with the Apple Volume Purchase Program Token.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // State Current state of the Apple Volume Purchase Program Token. Possible values are: `unknown`, `valid`, `expired`, `invalid`, `assignedToExternalMDM`.
+ State *VPPTokenState `json:"state,omitempty"`
+ // TokenActionResults The collection of statuses of the actions performed on the Apple Volume Purchase Program Token.
+ TokenActionResults []VPPTokenActionResult `json:"tokenActionResults,omitempty"`
+ // LastSyncStatus Current sync status of the last application sync which was triggered using the Apple Volume Purchase Program Token. Possible values are: `none`, `inProgress`, `completed`, `failed`.
+ LastSyncStatus *VPPTokenSyncStatus `json:"lastSyncStatus,omitempty"`
+ // AutomaticallyUpdateApps Whether or not apps for the VPP token will be automatically updated.
+ AutomaticallyUpdateApps *bool `json:"automaticallyUpdateApps,omitempty"`
+ // CountryOrRegion Whether or not apps for the VPP token will be automatically updated.
+ CountryOrRegion *string `json:"countryOrRegion,omitempty"`
+ // DataSharingConsentGranted Consent granted for data sharing with the Apple Volume Purchase Program.
+ DataSharingConsentGranted *bool `json:"dataSharingConsentGranted,omitempty"`
+ // DisplayName An admin specified token friendly name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // LocationName Token location returned from Apple VPP.
+ LocationName *string `json:"locationName,omitempty"`
+ // ClaimTokenManagementFromExternalMDM Admin consent to allow claiming token management from external MDM.
+ ClaimTokenManagementFromExternalMDM *bool `json:"claimTokenManagementFromExternalMdm,omitempty"`
+ // RoleScopeTagIDs Role Scope Tags IDs assigned to this entity.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+}
+
+// VPPTokenActionResult undocumented
+type VPPTokenActionResult struct {
+ // Object is the base model of VPPTokenActionResult
+ Object
+ // ActionName Action name
+ ActionName *string `json:"actionName,omitempty"`
+ // ActionState State of the action
+ ActionState *ActionState `json:"actionState,omitempty"`
+ // StartDateTime Time the action was initiated
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // LastUpdatedDateTime Time the action state was last updated
+ LastUpdatedDateTime *time.Time `json:"lastUpdatedDateTime,omitempty"`
+}
+
+// VPPTokenLicenseSummary undocumented
+type VPPTokenLicenseSummary struct {
+ // Object is the base model of VPPTokenLicenseSummary
+ Object
+ // VPPTokenID Identifier of the VPP token.
+ VPPTokenID *string `json:"vppTokenId,omitempty"`
+ // AppleID The Apple Id associated with the given Apple Volume Purchase Program Token.
+ AppleID *string `json:"appleId,omitempty"`
+ // OrganizationName The organization associated with the Apple Volume Purchase Program Token.
+ OrganizationName *string `json:"organizationName,omitempty"`
+ // AvailableLicenseCount The number of VPP licenses available.
+ AvailableLicenseCount *int `json:"availableLicenseCount,omitempty"`
+ // UsedLicenseCount The number of VPP licenses in use.
+ UsedLicenseCount *int `json:"usedLicenseCount,omitempty"`
+}
+
+// VPPTokenRevokeLicensesActionResult undocumented
+type VPPTokenRevokeLicensesActionResult struct {
+ // VPPTokenActionResult is the base model of VPPTokenRevokeLicensesActionResult
+ VPPTokenActionResult
+ // TotalLicensesCount A count of the number of licenses that were attempted to revoke.
+ TotalLicensesCount *int `json:"totalLicensesCount,omitempty"`
+ // FailedLicensesCount A count of the number of licenses that failed to revoke.
+ FailedLicensesCount *int `json:"failedLicensesCount,omitempty"`
+ // ActionFailureReason The reason for the revoke licenses action failure.
+ ActionFailureReason *VPPTokenActionFailureReason `json:"actionFailureReason,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVariable.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVariable.go
new file mode 100644
index 00000000..375fd930
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVariable.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VariableManagementConditionExpression undocumented
+type VariableManagementConditionExpression struct {
+ // ManagementConditionExpressionModel is the base model of VariableManagementConditionExpression
+ ManagementConditionExpressionModel
+ // ManagementConditionID The management condition id that is used to evaluate the expression.
+ ManagementConditionID *string `json:"managementConditionId,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVendor.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVendor.go
new file mode 100644
index 00000000..e5789555
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVendor.go
@@ -0,0 +1,49 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Vendor undocumented
+type Vendor struct {
+ // Entity is the base model of Vendor
+ Entity
+ // Number undocumented
+ Number *string `json:"number,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // Address undocumented
+ Address *PostalAddressType `json:"address,omitempty"`
+ // PhoneNumber undocumented
+ PhoneNumber *string `json:"phoneNumber,omitempty"`
+ // Email undocumented
+ Email *string `json:"email,omitempty"`
+ // Website undocumented
+ Website *string `json:"website,omitempty"`
+ // TaxRegistrationNumber undocumented
+ TaxRegistrationNumber *string `json:"taxRegistrationNumber,omitempty"`
+ // CurrencyID undocumented
+ CurrencyID *UUID `json:"currencyId,omitempty"`
+ // CurrencyCode undocumented
+ CurrencyCode *string `json:"currencyCode,omitempty"`
+ // PaymentTermsID undocumented
+ PaymentTermsID *UUID `json:"paymentTermsId,omitempty"`
+ // PaymentMethodID undocumented
+ PaymentMethodID *UUID `json:"paymentMethodId,omitempty"`
+ // TaxLiable undocumented
+ TaxLiable *bool `json:"taxLiable,omitempty"`
+ // Blocked undocumented
+ Blocked *string `json:"blocked,omitempty"`
+ // Balance undocumented
+ Balance *int `json:"balance,omitempty"`
+ // LastModifiedDateTime undocumented
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Picture undocumented
+ Picture []Picture `json:"picture,omitempty"`
+ // Currency undocumented
+ Currency *Currency `json:"currency,omitempty"`
+ // PaymentTerm undocumented
+ PaymentTerm *PaymentTerm `json:"paymentTerm,omitempty"`
+ // PaymentMethod undocumented
+ PaymentMethod *PaymentMethod `json:"paymentMethod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVerified.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVerified.go
new file mode 100644
index 00000000..dca1549e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVerified.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VerifiedDomain undocumented
+type VerifiedDomain struct {
+ // Object is the base model of VerifiedDomain
+ Object
+ // Capabilities undocumented
+ Capabilities *string `json:"capabilities,omitempty"`
+ // IsDefault undocumented
+ IsDefault *bool `json:"isDefault,omitempty"`
+ // IsInitial undocumented
+ IsInitial *bool `json:"isInitial,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVersion.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVersion.go
new file mode 100644
index 00000000..7cbb8695
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVersion.go
@@ -0,0 +1,11 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VersionAction undocumented
+type VersionAction struct {
+ // Object is the base model of VersionAction
+ Object
+ // NewVersion undocumented
+ NewVersion *string `json:"newVersion,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVideo.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVideo.go
new file mode 100644
index 00000000..ffebe388
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVideo.go
@@ -0,0 +1,29 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Video undocumented
+type Video struct {
+ // Object is the base model of Video
+ Object
+ // AudioBitsPerSample undocumented
+ AudioBitsPerSample *int `json:"audioBitsPerSample,omitempty"`
+ // AudioChannels undocumented
+ AudioChannels *int `json:"audioChannels,omitempty"`
+ // AudioFormat undocumented
+ AudioFormat *string `json:"audioFormat,omitempty"`
+ // AudioSamplesPerSecond undocumented
+ AudioSamplesPerSecond *int `json:"audioSamplesPerSecond,omitempty"`
+ // Bitrate undocumented
+ Bitrate *int `json:"bitrate,omitempty"`
+ // Duration undocumented
+ Duration *int `json:"duration,omitempty"`
+ // FourCC undocumented
+ FourCC *string `json:"fourCC,omitempty"`
+ // FrameRate undocumented
+ FrameRate *float64 `json:"frameRate,omitempty"`
+ // Height undocumented
+ Height *int `json:"height,omitempty"`
+ // Width undocumented
+ Width *int `json:"width,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVisual.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVisual.go
new file mode 100644
index 00000000..26a1f326
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVisual.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// VisualInfo undocumented
+type VisualInfo struct {
+ // Object is the base model of VisualInfo
+ Object
+ // Attribution undocumented
+ Attribution *ImageInfo `json:"attribution,omitempty"`
+ // BackgroundColor undocumented
+ BackgroundColor *string `json:"backgroundColor,omitempty"`
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // DisplayText undocumented
+ DisplayText *string `json:"displayText,omitempty"`
+ // Content undocumented
+ Content json.RawMessage `json:"content,omitempty"`
+}
+
+// VisualProperties undocumented
+type VisualProperties struct {
+ // Object is the base model of VisualProperties
+ Object
+ // Title undocumented
+ Title *string `json:"title,omitempty"`
+ // Body undocumented
+ Body *string `json:"body,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelVulnerability.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVulnerability.go
new file mode 100644
index 00000000..efa57bbe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelVulnerability.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// VulnerabilityState undocumented
+type VulnerabilityState struct {
+ // Object is the base model of VulnerabilityState
+ Object
+ // Cve undocumented
+ Cve *string `json:"cve,omitempty"`
+ // Severity undocumented
+ Severity *string `json:"severity,omitempty"`
+ // WasRunning undocumented
+ WasRunning *bool `json:"wasRunning,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWeb.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWeb.go
new file mode 100644
index 00000000..3556f029
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWeb.go
@@ -0,0 +1,55 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WebAccount undocumented
+type WebAccount struct {
+ // ItemFacet is the base model of WebAccount
+ ItemFacet
+ // Description undocumented
+ Description *string `json:"description,omitempty"`
+ // UserID undocumented
+ UserID *string `json:"userId,omitempty"`
+ // Service undocumented
+ Service *ServiceInformation `json:"service,omitempty"`
+ // StatusMessage undocumented
+ StatusMessage *string `json:"statusMessage,omitempty"`
+ // WebURL undocumented
+ WebURL *string `json:"webUrl,omitempty"`
+}
+
+// WebApp Contains properties and inherited properties for web apps.
+type WebApp struct {
+ // MobileApp is the base model of WebApp
+ MobileApp
+ // AppURL The web app URL.
+ AppURL *string `json:"appUrl,omitempty"`
+ // UseManagedBrowser Whether or not to use managed browser. This property is only applicable for Android and IOS.
+ UseManagedBrowser *bool `json:"useManagedBrowser,omitempty"`
+}
+
+// WebApplication undocumented
+type WebApplication struct {
+ // Object is the base model of WebApplication
+ Object
+ // HomePageURL undocumented
+ HomePageURL *string `json:"homePageUrl,omitempty"`
+ // RedirectUris undocumented
+ RedirectUris []string `json:"redirectUris,omitempty"`
+ // Oauth2AllowImplicitFlow undocumented
+ Oauth2AllowImplicitFlow *bool `json:"oauth2AllowImplicitFlow,omitempty"`
+ // LogoutURL undocumented
+ LogoutURL *string `json:"logoutUrl,omitempty"`
+ // ImplicitGrantSettings undocumented
+ ImplicitGrantSettings *ImplicitGrantSettings `json:"implicitGrantSettings,omitempty"`
+}
+
+// WebPart undocumented
+type WebPart struct {
+ // Object is the base model of WebPart
+ Object
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Data undocumented
+ Data *SitePageData `json:"data,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWebsite.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWebsite.go
new file mode 100644
index 00000000..86c680d5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWebsite.go
@@ -0,0 +1,15 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Website undocumented
+type Website struct {
+ // Object is the base model of Website
+ Object
+ // Type undocumented
+ Type *WebsiteType `json:"type,omitempty"`
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWin32.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWin32.go
new file mode 100644
index 00000000..38682cfc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWin32.go
@@ -0,0 +1,223 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Win32LobApp Contains properties and inherited properties for Win32 apps.
+type Win32LobApp struct {
+ // MobileLobApp is the base model of Win32LobApp
+ MobileLobApp
+ // InstallCommandLine The command line to install this app
+ InstallCommandLine *string `json:"installCommandLine,omitempty"`
+ // UninstallCommandLine The command line to uninstall this app
+ UninstallCommandLine *string `json:"uninstallCommandLine,omitempty"`
+ // ApplicableArchitectures The Windows architecture(s) for which this app can run on.
+ ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // MinimumFreeDiskSpaceInMB The value for the minimum free disk space which is required to install this app.
+ MinimumFreeDiskSpaceInMB *int `json:"minimumFreeDiskSpaceInMB,omitempty"`
+ // MinimumMemoryInMB The value for the minimum physical memory which is required to install this app.
+ MinimumMemoryInMB *int `json:"minimumMemoryInMB,omitempty"`
+ // MinimumNumberOfProcessors The value for the minimum number of processors which is required to install this app.
+ MinimumNumberOfProcessors *int `json:"minimumNumberOfProcessors,omitempty"`
+ // MinimumCPUSpeedInMHz The value for the minimum CPU speed which is required to install this app.
+ MinimumCPUSpeedInMHz *int `json:"minimumCpuSpeedInMHz,omitempty"`
+ // DetectionRules The detection rules to detect Win32 Line of Business (LoB) app.
+ DetectionRules []Win32LobAppDetection `json:"detectionRules,omitempty"`
+ // RequirementRules The requirement rules to detect Win32 Line of Business (LoB) app.
+ RequirementRules []Win32LobAppRequirement `json:"requirementRules,omitempty"`
+ // InstallExperience The install experience for this app.
+ InstallExperience *Win32LobAppInstallExperience `json:"installExperience,omitempty"`
+ // ReturnCodes The return codes for post installation behavior.
+ ReturnCodes []Win32LobAppReturnCode `json:"returnCodes,omitempty"`
+ // MsiInformation The MSI details if this Win32 app is an MSI app.
+ MsiInformation *Win32LobAppMsiInformation `json:"msiInformation,omitempty"`
+ // SetupFilePath The relative path of the setup file in the encrypted Win32LobApp package.
+ SetupFilePath *string `json:"setupFilePath,omitempty"`
+}
+
+// Win32LobAppAssignmentSettings undocumented
+type Win32LobAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of Win32LobAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // Notifications The notification status for this app assignment.
+ Notifications *Win32LobAppNotification `json:"notifications,omitempty"`
+ // RestartSettings The reboot settings to apply for this app assignment.
+ RestartSettings *Win32LobAppRestartSettings `json:"restartSettings,omitempty"`
+ // InstallTimeSettings The install time settings to apply for this app assignment.
+ InstallTimeSettings *MobileAppInstallTimeSettings `json:"installTimeSettings,omitempty"`
+}
+
+// Win32LobAppDetection undocumented
+type Win32LobAppDetection struct {
+ // Object is the base model of Win32LobAppDetection
+ Object
+}
+
+// Win32LobAppFileSystemDetection undocumented
+type Win32LobAppFileSystemDetection struct {
+ // Win32LobAppDetection is the base model of Win32LobAppFileSystemDetection
+ Win32LobAppDetection
+ // Path The file or folder path to detect Win32 Line of Business (LoB) app
+ Path *string `json:"path,omitempty"`
+ // FileOrFolderName The file or folder name to detect Win32 Line of Business (LoB) app
+ FileOrFolderName *string `json:"fileOrFolderName,omitempty"`
+ // Check32BitOn64System A value indicating whether this file or folder is for checking 32-bit app on 64-bit system
+ Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"`
+ // DetectionType The file system detection type
+ DetectionType *Win32LobAppFileSystemDetectionType `json:"detectionType,omitempty"`
+ // Operator The operator for file or folder detection
+ Operator *Win32LobAppDetectionOperator `json:"operator,omitempty"`
+ // DetectionValue The file or folder detection value
+ DetectionValue *string `json:"detectionValue,omitempty"`
+}
+
+// Win32LobAppFileSystemRequirement undocumented
+type Win32LobAppFileSystemRequirement struct {
+ // Win32LobAppRequirement is the base model of Win32LobAppFileSystemRequirement
+ Win32LobAppRequirement
+ // Path The file or folder path to detect Win32 Line of Business (LoB) app
+ Path *string `json:"path,omitempty"`
+ // FileOrFolderName The file or folder name to detect Win32 Line of Business (LoB) app
+ FileOrFolderName *string `json:"fileOrFolderName,omitempty"`
+ // Check32BitOn64System A value indicating whether this file or folder is for checking 32-bit app on 64-bit system
+ Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"`
+ // DetectionType The file system detection type
+ DetectionType *Win32LobAppFileSystemDetectionType `json:"detectionType,omitempty"`
+}
+
+// Win32LobAppInstallExperience undocumented
+type Win32LobAppInstallExperience struct {
+ // Object is the base model of Win32LobAppInstallExperience
+ Object
+ // RunAsAccount Indicates the type of execution context the app runs in.
+ RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"`
+ // DeviceRestartBehavior Device restart behavior.
+ DeviceRestartBehavior *Win32LobAppRestartBehavior `json:"deviceRestartBehavior,omitempty"`
+}
+
+// Win32LobAppMsiInformation undocumented
+type Win32LobAppMsiInformation struct {
+ // Object is the base model of Win32LobAppMsiInformation
+ Object
+ // ProductCode The MSI product code.
+ ProductCode *string `json:"productCode,omitempty"`
+ // ProductVersion The MSI product version.
+ ProductVersion *string `json:"productVersion,omitempty"`
+ // UpgradeCode The MSI upgrade code.
+ UpgradeCode *string `json:"upgradeCode,omitempty"`
+ // RequiresReboot Whether the MSI app requires the machine to reboot to complete installation.
+ RequiresReboot *bool `json:"requiresReboot,omitempty"`
+ // PackageType The MSI package type.
+ PackageType *Win32LobAppMsiPackageType `json:"packageType,omitempty"`
+ // ProductName The MSI product name.
+ ProductName *string `json:"productName,omitempty"`
+ // Publisher The MSI publisher.
+ Publisher *string `json:"publisher,omitempty"`
+}
+
+// Win32LobAppPowerShellScriptDetection undocumented
+type Win32LobAppPowerShellScriptDetection struct {
+ // Win32LobAppDetection is the base model of Win32LobAppPowerShellScriptDetection
+ Win32LobAppDetection
+ // EnforceSignatureCheck A value indicating whether signature check is enforced
+ EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"`
+ // RunAs32Bit A value indicating whether this script should run as 32-bit
+ RunAs32Bit *bool `json:"runAs32Bit,omitempty"`
+ // ScriptContent The base64 encoded script content to detect Win32 Line of Business (LoB) app
+ ScriptContent *string `json:"scriptContent,omitempty"`
+}
+
+// Win32LobAppPowerShellScriptRequirement undocumented
+type Win32LobAppPowerShellScriptRequirement struct {
+ // Win32LobAppRequirement is the base model of Win32LobAppPowerShellScriptRequirement
+ Win32LobAppRequirement
+ // DisplayName The unique display name for this rule
+ DisplayName *string `json:"displayName,omitempty"`
+ // EnforceSignatureCheck A value indicating whether signature check is enforced
+ EnforceSignatureCheck *bool `json:"enforceSignatureCheck,omitempty"`
+ // RunAs32Bit A value indicating whether this script should run as 32-bit
+ RunAs32Bit *bool `json:"runAs32Bit,omitempty"`
+ // RunAsAccount Indicates the type of execution context the script runs in.
+ RunAsAccount *RunAsAccountType `json:"runAsAccount,omitempty"`
+ // ScriptContent The base64 encoded script content to detect Win32 Line of Business (LoB) app
+ ScriptContent *string `json:"scriptContent,omitempty"`
+ // DetectionType The detection type for script output
+ DetectionType *Win32LobAppPowerShellScriptDetectionType `json:"detectionType,omitempty"`
+}
+
+// Win32LobAppProductCodeDetection undocumented
+type Win32LobAppProductCodeDetection struct {
+ // Win32LobAppDetection is the base model of Win32LobAppProductCodeDetection
+ Win32LobAppDetection
+ // ProductCode The product code of Win32 Line of Business (LoB) app.
+ ProductCode *string `json:"productCode,omitempty"`
+ // ProductVersionOperator The operator to detect product version.
+ ProductVersionOperator *Win32LobAppDetectionOperator `json:"productVersionOperator,omitempty"`
+ // ProductVersion The product version of Win32 Line of Business (LoB) app.
+ ProductVersion *string `json:"productVersion,omitempty"`
+}
+
+// Win32LobAppRegistryDetection undocumented
+type Win32LobAppRegistryDetection struct {
+ // Win32LobAppDetection is the base model of Win32LobAppRegistryDetection
+ Win32LobAppDetection
+ // Check32BitOn64System A value indicating whether this registry path is for checking 32-bit app on 64-bit system
+ Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"`
+ // KeyPath The registry key path to detect Win32 Line of Business (LoB) app
+ KeyPath *string `json:"keyPath,omitempty"`
+ // ValueName The registry value name
+ ValueName *string `json:"valueName,omitempty"`
+ // DetectionType The registry data detection type
+ DetectionType *Win32LobAppRegistryDetectionType `json:"detectionType,omitempty"`
+ // Operator The operator for registry data detection
+ Operator *Win32LobAppDetectionOperator `json:"operator,omitempty"`
+ // DetectionValue The registry detection value
+ DetectionValue *string `json:"detectionValue,omitempty"`
+}
+
+// Win32LobAppRegistryRequirement undocumented
+type Win32LobAppRegistryRequirement struct {
+ // Win32LobAppRequirement is the base model of Win32LobAppRegistryRequirement
+ Win32LobAppRequirement
+ // Check32BitOn64System A value indicating whether this registry path is for checking 32-bit app on 64-bit system
+ Check32BitOn64System *bool `json:"check32BitOn64System,omitempty"`
+ // KeyPath The registry key path to detect Win32 Line of Business (LoB) app
+ KeyPath *string `json:"keyPath,omitempty"`
+ // ValueName The registry value name
+ ValueName *string `json:"valueName,omitempty"`
+ // DetectionType The registry data detection type
+ DetectionType *Win32LobAppRegistryDetectionType `json:"detectionType,omitempty"`
+}
+
+// Win32LobAppRequirement undocumented
+type Win32LobAppRequirement struct {
+ // Object is the base model of Win32LobAppRequirement
+ Object
+ // Operator The operator for detection
+ Operator *Win32LobAppDetectionOperator `json:"operator,omitempty"`
+ // DetectionValue The detection value
+ DetectionValue *string `json:"detectionValue,omitempty"`
+}
+
+// Win32LobAppRestartSettings undocumented
+type Win32LobAppRestartSettings struct {
+ // Object is the base model of Win32LobAppRestartSettings
+ Object
+ // GracePeriodInMinutes The number of minutes to wait before restarting the device after an app installation.
+ GracePeriodInMinutes *int `json:"gracePeriodInMinutes,omitempty"`
+ // CountdownDisplayBeforeRestartInMinutes The number of minutes before the restart time to display the countdown dialog for pending restarts.
+ CountdownDisplayBeforeRestartInMinutes *int `json:"countdownDisplayBeforeRestartInMinutes,omitempty"`
+ // RestartNotificationSnoozeDurationInMinutes The number of minutes to snooze the restart notification dialog when the snooze button is selected.
+ RestartNotificationSnoozeDurationInMinutes *int `json:"restartNotificationSnoozeDurationInMinutes,omitempty"`
+}
+
+// Win32LobAppReturnCode undocumented
+type Win32LobAppReturnCode struct {
+ // Object is the base model of Win32LobAppReturnCode
+ Object
+ // ReturnCode Return code.
+ ReturnCode *int `json:"returnCode,omitempty"`
+ // Type The type of return code.
+ Type *Win32LobAppReturnCodeType `json:"type,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows.go
new file mode 100644
index 00000000..9c8bcfc6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows.go
@@ -0,0 +1,1801 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// WindowsAppX Contains properties and inherited properties for Windows AppX Line Of Business apps.
+type WindowsAppX struct {
+ // MobileLobApp is the base model of WindowsAppX
+ MobileLobApp
+ // ApplicableArchitectures The Windows architecture(s) for which this app can run on.
+ ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"`
+ // IdentityName The Identity Name.
+ IdentityName *string `json:"identityName,omitempty"`
+ // IdentityPublisherHash The Identity Publisher Hash.
+ IdentityPublisherHash *string `json:"identityPublisherHash,omitempty"`
+ // IdentityResourceIdentifier The Identity Resource Identifier.
+ IdentityResourceIdentifier *string `json:"identityResourceIdentifier,omitempty"`
+ // IsBundle Whether or not the app is a bundle.
+ IsBundle *bool `json:"isBundle,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
+
+// WindowsAppXAppAssignmentSettings undocumented
+type WindowsAppXAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of WindowsAppXAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // UseDeviceContext Whether or not to use device execution context for Windows AppX mobile app.
+ UseDeviceContext *bool `json:"useDeviceContext,omitempty"`
+}
+
+// WindowsAssignedAccessProfile Assigned Access profile for Windows.
+type WindowsAssignedAccessProfile struct {
+ // Entity is the base model of WindowsAssignedAccessProfile
+ Entity
+ // ProfileName This is a friendly name used to identify a group of applications, the layout of these apps on the start menu and the users to whom this kiosk configuration is assigned.
+ ProfileName *string `json:"profileName,omitempty"`
+ // ShowTaskBar This setting allows the admin to specify whether the Task Bar is shown or not.
+ ShowTaskBar *bool `json:"showTaskBar,omitempty"`
+ // AppUserModelIDs These are the only Windows Store Apps that will be available to launch from the Start menu.
+ AppUserModelIDs []string `json:"appUserModelIds,omitempty"`
+ // DesktopAppPaths These are the paths of the Desktop Apps that will be available on the Start menu and the only apps the user will be able to launch.
+ DesktopAppPaths []string `json:"desktopAppPaths,omitempty"`
+ // UserAccounts The user accounts that will be locked to this kiosk configuration.
+ UserAccounts []string `json:"userAccounts,omitempty"`
+ // StartMenuLayoutXML Allows admins to override the default Start layout and prevents the user from changing it. The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in Binary format.
+ StartMenuLayoutXML *Binary `json:"startMenuLayoutXml,omitempty"`
+}
+
+// WindowsAutopilotDeploymentProfile Windows Autopilot Deployment Profile
+type WindowsAutopilotDeploymentProfile struct {
+ // Entity is the base model of WindowsAutopilotDeploymentProfile
+ Entity
+ // DisplayName Name of the profile
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description Description of the profile
+ Description *string `json:"description,omitempty"`
+ // Language Language configured on the device
+ Language *string `json:"language,omitempty"`
+ // CreatedDateTime Profile creation time
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime Profile last modified time
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // OutOfBoxExperienceSettings Out of box experience setting
+ OutOfBoxExperienceSettings *OutOfBoxExperienceSettings `json:"outOfBoxExperienceSettings,omitempty"`
+ // EnrollmentStatusScreenSettings Enrollment status screen setting
+ EnrollmentStatusScreenSettings *WindowsEnrollmentStatusScreenSettings `json:"enrollmentStatusScreenSettings,omitempty"`
+ // ExtractHardwareHash HardwareHash Extraction for the profile
+ ExtractHardwareHash *bool `json:"extractHardwareHash,omitempty"`
+ // DeviceNameTemplate The template used to name the AutoPilot Device. This can be a custom text and can also contain either the serial number of the device, or a randomly generated number. The total length of the text generated by the template can be no more than 15 characters.
+ DeviceNameTemplate *string `json:"deviceNameTemplate,omitempty"`
+ // DeviceType The AutoPilot device type that this profile is applicable to.
+ DeviceType *WindowsAutopilotDeviceType `json:"deviceType,omitempty"`
+ // EnableWhiteGlove Enable Autopilot White Glove for the profile.
+ EnableWhiteGlove *bool `json:"enableWhiteGlove,omitempty"`
+ // RoleScopeTagIDs Scope tags for the profile.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // AssignedDevices undocumented
+ AssignedDevices []WindowsAutopilotDeviceIdentity `json:"assignedDevices,omitempty"`
+ // Assignments undocumented
+ Assignments []WindowsAutopilotDeploymentProfileAssignment `json:"assignments,omitempty"`
+}
+
+// WindowsAutopilotDeploymentProfileAssignment An assignment of a Windows Autopilot deployment profile to an AAD group.
+type WindowsAutopilotDeploymentProfileAssignment struct {
+ // Entity is the base model of WindowsAutopilotDeploymentProfileAssignment
+ Entity
+ // Target The assignment target for the Windows Autopilot deployment profile.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+ // Source Type of resource used for deployment to a group, direct or parcel/policySet
+ Source *DeviceAndAppManagementAssignmentSource `json:"source,omitempty"`
+ // SourceID Identifier for resource used for deployment to a group
+ SourceID *string `json:"sourceId,omitempty"`
+}
+
+// WindowsAutopilotDeploymentProfilePolicySetItem A class containing the properties used for windows autopilot deployment profile PolicySetItem.
+type WindowsAutopilotDeploymentProfilePolicySetItem struct {
+ // PolicySetItem is the base model of WindowsAutopilotDeploymentProfilePolicySetItem
+ PolicySetItem
+}
+
+// WindowsAutopilotDeviceIdentity The windowsAutopilotDeviceIdentity resource represents a Windows Autopilot Device.
+type WindowsAutopilotDeviceIdentity struct {
+ // Entity is the base model of WindowsAutopilotDeviceIdentity
+ Entity
+ // DeploymentProfileAssignmentStatus Profile assignment status of the Windows autopilot device.
+ DeploymentProfileAssignmentStatus *WindowsAutopilotProfileAssignmentStatus `json:"deploymentProfileAssignmentStatus,omitempty"`
+ // DeploymentProfileAssignmentDetailedStatus Profile assignment detailed status of the Windows autopilot device.
+ DeploymentProfileAssignmentDetailedStatus *WindowsAutopilotProfileAssignmentDetailedStatus `json:"deploymentProfileAssignmentDetailedStatus,omitempty"`
+ // DeploymentProfileAssignedDateTime Profile set time of the Windows autopilot device.
+ DeploymentProfileAssignedDateTime *time.Time `json:"deploymentProfileAssignedDateTime,omitempty"`
+ // OrderIdentifier Order Identifier of the Windows autopilot device - Deprecated
+ OrderIdentifier *string `json:"orderIdentifier,omitempty"`
+ // GroupTag Group Tag of the Windows autopilot device.
+ GroupTag *string `json:"groupTag,omitempty"`
+ // PurchaseOrderIdentifier Purchase Order Identifier of the Windows autopilot device.
+ PurchaseOrderIdentifier *string `json:"purchaseOrderIdentifier,omitempty"`
+ // SerialNumber Serial number of the Windows autopilot device.
+ SerialNumber *string `json:"serialNumber,omitempty"`
+ // ProductKey Product Key of the Windows autopilot device.
+ ProductKey *string `json:"productKey,omitempty"`
+ // Manufacturer Oem manufacturer of the Windows autopilot device.
+ Manufacturer *string `json:"manufacturer,omitempty"`
+ // Model Model name of the Windows autopilot device.
+ Model *string `json:"model,omitempty"`
+ // EnrollmentState Intune enrollment state of the Windows autopilot device.
+ EnrollmentState *EnrollmentState `json:"enrollmentState,omitempty"`
+ // LastContactedDateTime Intune Last Contacted Date Time of the Windows autopilot device.
+ LastContactedDateTime *time.Time `json:"lastContactedDateTime,omitempty"`
+ // AddressableUserName Addressable user name.
+ AddressableUserName *string `json:"addressableUserName,omitempty"`
+ // UserPrincipalName User Principal Name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // ResourceName Resource Name.
+ ResourceName *string `json:"resourceName,omitempty"`
+ // SKUNumber SKU Number
+ SKUNumber *string `json:"skuNumber,omitempty"`
+ // SystemFamily System Family
+ SystemFamily *string `json:"systemFamily,omitempty"`
+ // AzureActiveDirectoryDeviceID AAD Device ID
+ AzureActiveDirectoryDeviceID *string `json:"azureActiveDirectoryDeviceId,omitempty"`
+ // ManagedDeviceID Managed Device ID
+ ManagedDeviceID *string `json:"managedDeviceId,omitempty"`
+ // DisplayName Display Name
+ DisplayName *string `json:"displayName,omitempty"`
+ // DeploymentProfile undocumented
+ DeploymentProfile *WindowsAutopilotDeploymentProfile `json:"deploymentProfile,omitempty"`
+ // IntendedDeploymentProfile undocumented
+ IntendedDeploymentProfile *WindowsAutopilotDeploymentProfile `json:"intendedDeploymentProfile,omitempty"`
+}
+
+// WindowsAutopilotSettings The windowsAutopilotSettings resource represents a Windows Autopilot Account to sync data with Windows device data sync service.
+type WindowsAutopilotSettings struct {
+ // Entity is the base model of WindowsAutopilotSettings
+ Entity
+ // LastSyncDateTime Last data sync date time with DDS service.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // LastManualSyncTriggerDateTime Last data sync date time with DDS service.
+ LastManualSyncTriggerDateTime *time.Time `json:"lastManualSyncTriggerDateTime,omitempty"`
+ // SyncStatus Indicates the status of sync with Device data sync (DDS) service.
+ SyncStatus *WindowsAutopilotSyncStatus `json:"syncStatus,omitempty"`
+}
+
+// WindowsCertificateProfileBase Device Configuration.
+type WindowsCertificateProfileBase struct {
+ // DeviceConfiguration is the base model of WindowsCertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage. Valid values 1 to 99
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // KeyStorageProvider Key Storage Provider (KSP)
+ KeyStorageProvider *KeyStorageProviderOption `json:"keyStorageProvider,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validity Period
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+}
+
+// WindowsDefenderAdvancedThreatProtectionConfiguration Windows Defender AdvancedThreatProtection Configuration.
+type WindowsDefenderAdvancedThreatProtectionConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsDefenderAdvancedThreatProtectionConfiguration
+ DeviceConfiguration
+ // AdvancedThreatProtectionOnboardingBlob Windows Defender AdvancedThreatProtection Onboarding Blob.
+ AdvancedThreatProtectionOnboardingBlob *string `json:"advancedThreatProtectionOnboardingBlob,omitempty"`
+ // AdvancedThreatProtectionOnboardingFilename Name of the file from which AdvancedThreatProtectionOnboardingBlob was obtained.
+ AdvancedThreatProtectionOnboardingFilename *string `json:"advancedThreatProtectionOnboardingFilename,omitempty"`
+ // AdvancedThreatProtectionAutoPopulateOnboardingBlob Auto populate onboarding blob programmatically from Advanced Threat protection service
+ AdvancedThreatProtectionAutoPopulateOnboardingBlob *bool `json:"advancedThreatProtectionAutoPopulateOnboardingBlob,omitempty"`
+ // AllowSampleSharing Windows Defender AdvancedThreatProtection "Allow Sample Sharing" Rule
+ AllowSampleSharing *bool `json:"allowSampleSharing,omitempty"`
+ // EnableExpeditedTelemetryReporting Expedite Windows Defender Advanced Threat Protection telemetry reporting frequency.
+ EnableExpeditedTelemetryReporting *bool `json:"enableExpeditedTelemetryReporting,omitempty"`
+ // AdvancedThreatProtectionOffboardingBlob Windows Defender AdvancedThreatProtection Offboarding Blob.
+ AdvancedThreatProtectionOffboardingBlob *string `json:"advancedThreatProtectionOffboardingBlob,omitempty"`
+ // AdvancedThreatProtectionOffboardingFilename Name of the file from which AdvancedThreatProtectionOffboardingBlob was obtained.
+ AdvancedThreatProtectionOffboardingFilename *string `json:"advancedThreatProtectionOffboardingFilename,omitempty"`
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicy undocumented
+type WindowsDefenderApplicationControlSupplementalPolicy struct {
+ // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicy
+ Entity
+ // DisplayName The display name of WindowsDefenderApplicationControl supplemental policy.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of WindowsDefenderApplicationControl supplemental policy.
+ Description *string `json:"description,omitempty"`
+ // Content The WindowsDefenderApplicationControl supplemental policy content in byte array format.
+ Content *Binary `json:"content,omitempty"`
+ // ContentFileName The WindowsDefenderApplicationControl supplemental policy content's file name.
+ ContentFileName *string `json:"contentFileName,omitempty"`
+ // Version The WindowsDefenderApplicationControl supplemental policy's version.
+ Version *string `json:"version,omitempty"`
+ // CreationDateTime The date and time when the WindowsDefenderApplicationControl supplemental policy was uploaded.
+ CreationDateTime *time.Time `json:"creationDateTime,omitempty"`
+ // LastModifiedDateTime The date and time when the WindowsDefenderApplicationControl supplemental policy was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // RoleScopeTagIDs List of Scope Tags for this WindowsDefenderApplicationControl supplemental policy entity.
+ RoleScopeTagIDs []string `json:"roleScopeTagIds,omitempty"`
+ // Assignments undocumented
+ Assignments []WindowsDefenderApplicationControlSupplementalPolicyAssignment `json:"assignments,omitempty"`
+ // DeploySummary undocumented
+ DeploySummary *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary `json:"deploySummary,omitempty"`
+ // DeviceStatuses undocumented
+ DeviceStatuses []WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus `json:"deviceStatuses,omitempty"`
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignment A class containing the properties used for assignment of a WindowsDefenderApplicationControl supplemental policy to a group.
+type WindowsDefenderApplicationControlSupplementalPolicyAssignment struct {
+ // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicyAssignment
+ Entity
+ // Target The target group assignment defined by the admin.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus Contains properties for the deployment state of a WindowsDefenderApplicationControl supplemental policy for a device.
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus struct {
+ // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+ Entity
+ // DeviceName Device name.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceID Device ID.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // LastSyncDateTime Last sync date time.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+ // OsVersion Windows OS Version.
+ OsVersion *string `json:"osVersion,omitempty"`
+ // OsDescription Windows OS Version Description.
+ OsDescription *string `json:"osDescription,omitempty"`
+ // DeploymentStatus The deployment state of the policy.
+ DeploymentStatus *WindowsDefenderApplicationControlSupplementalPolicyStatuses `json:"deploymentStatus,omitempty"`
+ // UserName The name of the user of this device.
+ UserName *string `json:"userName,omitempty"`
+ // UserPrincipalName User Principal Name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // PolicyVersion Human readable version of the WindowsDefenderApplicationControl supplemental policy.
+ PolicyVersion *string `json:"policyVersion,omitempty"`
+ // Policy undocumented
+ Policy *WindowsDefenderApplicationControlSupplementalPolicy `json:"policy,omitempty"`
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary Contains properties for the deployment summary of a WindowsDefenderApplicationControl supplemental policy.
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary struct {
+ // Entity is the base model of WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+ Entity
+ // DeployedDeviceCount Number of Devices that have successfully deployed this WindowsDefenderApplicationControl supplemental policy.
+ DeployedDeviceCount *int `json:"deployedDeviceCount,omitempty"`
+ // FailedDeviceCount Number of Devices that have failed to deploy this WindowsDefenderApplicationControl supplemental policy.
+ FailedDeviceCount *int `json:"failedDeviceCount,omitempty"`
+}
+
+// WindowsDefenderScanActionResult undocumented
+type WindowsDefenderScanActionResult struct {
+ // DeviceActionResult is the base model of WindowsDefenderScanActionResult
+ DeviceActionResult
+ // ScanType Scan type either full scan or quick scan
+ ScanType *string `json:"scanType,omitempty"`
+}
+
+// WindowsDeliveryOptimizationConfiguration Windows Delivery Optimization configuration
+type WindowsDeliveryOptimizationConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsDeliveryOptimizationConfiguration
+ DeviceConfiguration
+ // DeliveryOptimizationMode Specifies the download method that delivery optimization can use to manage network bandwidth consumption for large content distribution scenarios.
+ DeliveryOptimizationMode *WindowsDeliveryOptimizationMode `json:"deliveryOptimizationMode,omitempty"`
+ // RestrictPeerSelectionBy Specifies to restrict peer selection via selected option.
+ RestrictPeerSelectionBy *DeliveryOptimizationRestrictPeerSelectionByOptions `json:"restrictPeerSelectionBy,omitempty"`
+ // GroupIDSource Specifies to restrict peer selection to a specfic source.
+ GroupIDSource *DeliveryOptimizationGroupIDSource `json:"groupIdSource,omitempty"`
+ // BandwidthMode Specifies foreground and background bandwidth usage using percentages, absolutes, or hours.
+ BandwidthMode *DeliveryOptimizationBandwidth `json:"bandwidthMode,omitempty"`
+ // BackgroundDownloadFromHTTPDelayInSeconds Specifies number of seconds to delay an HTTP source in a background download that is allowed to use peer-to-peer. Valid values 0 to 4294967295
+ BackgroundDownloadFromHTTPDelayInSeconds *int `json:"backgroundDownloadFromHttpDelayInSeconds,omitempty"`
+ // ForegroundDownloadFromHTTPDelayInSeconds Specifies number of seconds to delay an HTTP source in a foreground download that is allowed to use peer-to-peer (0-86400). Valid values 0 to 86400
+ ForegroundDownloadFromHTTPDelayInSeconds *int `json:"foregroundDownloadFromHttpDelayInSeconds,omitempty"`
+ // MinimumRAMAllowedToPeerInGigabytes Specifies the minimum RAM size in GB to use Peer Caching (1-100000). Valid values 1 to 100000
+ MinimumRAMAllowedToPeerInGigabytes *int `json:"minimumRamAllowedToPeerInGigabytes,omitempty"`
+ // MinimumDiskSizeAllowedToPeerInGigabytes Specifies the minimum disk size in GB to use Peer Caching (1-100000). Valid values 1 to 100000
+ MinimumDiskSizeAllowedToPeerInGigabytes *int `json:"minimumDiskSizeAllowedToPeerInGigabytes,omitempty"`
+ // MinimumFileSizeToCacheInMegabytes Specifies the minimum content file size in MB enabled to use Peer Caching (1-100000). Valid values 1 to 100000
+ MinimumFileSizeToCacheInMegabytes *int `json:"minimumFileSizeToCacheInMegabytes,omitempty"`
+ // MinimumBatteryPercentageAllowedToUpload Specifies the minimum battery percentage to allow the device to upload data (0-100). Valid values 0 to 100
+ MinimumBatteryPercentageAllowedToUpload *int `json:"minimumBatteryPercentageAllowedToUpload,omitempty"`
+ // ModifyCacheLocation Specifies the drive that Delivery Optimization should use for its cache.
+ ModifyCacheLocation *string `json:"modifyCacheLocation,omitempty"`
+ // MaximumCacheAgeInDays Specifies the maximum time in days that each file is held in the Delivery Optimization cache after downloading successfully (0-3650). Valid values 0 to 3650
+ MaximumCacheAgeInDays *int `json:"maximumCacheAgeInDays,omitempty"`
+ // MaximumCacheSize Specifies the maximum cache size that Delivery Optimization either as a percentage or in GB.
+ MaximumCacheSize *DeliveryOptimizationMaxCacheSize `json:"maximumCacheSize,omitempty"`
+ // VPNPeerCaching Specifies whether the device is allowed to participate in Peer Caching while connected via VPN to the domain network.
+ VPNPeerCaching *Enablement `json:"vpnPeerCaching,omitempty"`
+ // CacheServerHostNames Specifies cache servers host names.
+ CacheServerHostNames []string `json:"cacheServerHostNames,omitempty"`
+ // CacheServerForegroundDownloadFallbackToHTTPDelayInSeconds Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a foreground download. Valid values 0 to 2592000.​
+ CacheServerForegroundDownloadFallbackToHTTPDelayInSeconds *int `json:"cacheServerForegroundDownloadFallbackToHttpDelayInSeconds,omitempty"`
+ // CacheServerBackgroundDownloadFallbackToHTTPDelayInSeconds Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a background download. Valid values 0 to 2592000.
+ CacheServerBackgroundDownloadFallbackToHTTPDelayInSeconds *int `json:"cacheServerBackgroundDownloadFallbackToHttpDelayInSeconds,omitempty"`
+}
+
+// WindowsDeviceADAccount undocumented
+type WindowsDeviceADAccount struct {
+ // WindowsDeviceAccount is the base model of WindowsDeviceADAccount
+ WindowsDeviceAccount
+ // DomainName undocumented
+ DomainName *string `json:"domainName,omitempty"`
+ // UserName undocumented
+ UserName *string `json:"userName,omitempty"`
+}
+
+// WindowsDeviceAccount undocumented
+type WindowsDeviceAccount struct {
+ // Object is the base model of WindowsDeviceAccount
+ Object
+ // Password undocumented
+ Password *string `json:"password,omitempty"`
+}
+
+// WindowsDeviceAzureADAccount undocumented
+type WindowsDeviceAzureADAccount struct {
+ // WindowsDeviceAccount is the base model of WindowsDeviceAzureADAccount
+ WindowsDeviceAccount
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// WindowsDeviceMalwareState Malware detection entity.
+type WindowsDeviceMalwareState struct {
+ // Entity is the base model of WindowsDeviceMalwareState
+ Entity
+ // DisplayName Malware name
+ DisplayName *string `json:"displayName,omitempty"`
+ // AdditionalInformationURL Information URL to learn more about the malware
+ AdditionalInformationURL *string `json:"additionalInformationUrl,omitempty"`
+ // Severity Severity of the malware
+ Severity *WindowsMalwareSeverity `json:"severity,omitempty"`
+ // Catetgory Category of the malware
+ Catetgory *WindowsMalwareCategory `json:"catetgory,omitempty"`
+ // ExecutionState Execution status of the malware like blocked/executing etc
+ ExecutionState *WindowsMalwareExecutionState `json:"executionState,omitempty"`
+ // State Current status of the malware like cleaned/quarantined/allowed etc
+ State *WindowsMalwareState `json:"state,omitempty"`
+ // ThreatState Current status of the malware like cleaned/quarantined/allowed etc
+ ThreatState *WindowsMalwareThreatState `json:"threatState,omitempty"`
+ // InitialDetectionDateTime Initial detection datetime of the malware
+ InitialDetectionDateTime *time.Time `json:"initialDetectionDateTime,omitempty"`
+ // LastStateChangeDateTime The last time this particular threat was changed
+ LastStateChangeDateTime *time.Time `json:"lastStateChangeDateTime,omitempty"`
+ // DetectionCount Number of times the malware is detected
+ DetectionCount *int `json:"detectionCount,omitempty"`
+ // Category Category of the malware
+ Category *WindowsMalwareCategory `json:"category,omitempty"`
+}
+
+// WindowsDomainJoinConfiguration Windows Domain Join device configuration.
+type WindowsDomainJoinConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsDomainJoinConfiguration
+ DeviceConfiguration
+ // ComputerNameStaticPrefix Fixed prefix to be used for computer name.
+ ComputerNameStaticPrefix *string `json:"computerNameStaticPrefix,omitempty"`
+ // ComputerNameSuffixRandomCharCount Dynamically generated characters used as suffix for computer name. Valid values 3 to 14
+ ComputerNameSuffixRandomCharCount *int `json:"computerNameSuffixRandomCharCount,omitempty"`
+ // ActiveDirectoryDomainName Active Directory domain name to join.
+ ActiveDirectoryDomainName *string `json:"activeDirectoryDomainName,omitempty"`
+ // OrganizationalUnit Organizational unit (OU) where the computer account will be created. If this parameter is NULL, the well known computer object container will be used as published in the domain.
+ OrganizationalUnit *string `json:"organizationalUnit,omitempty"`
+ // NetworkAccessConfigurations undocumented
+ NetworkAccessConfigurations []DeviceConfiguration `json:"networkAccessConfigurations,omitempty"`
+}
+
+// WindowsEnrollmentStatusScreenSettings undocumented
+type WindowsEnrollmentStatusScreenSettings struct {
+ // Object is the base model of WindowsEnrollmentStatusScreenSettings
+ Object
+ // HideInstallationProgress Show or hide installation progress to user
+ HideInstallationProgress *bool `json:"hideInstallationProgress,omitempty"`
+ // AllowDeviceUseBeforeProfileAndAppInstallComplete Allow or block user to use device before profile and app installation complete
+ AllowDeviceUseBeforeProfileAndAppInstallComplete *bool `json:"allowDeviceUseBeforeProfileAndAppInstallComplete,omitempty"`
+ // BlockDeviceSetupRetryByUser Allow the user to retry the setup on installation failure
+ BlockDeviceSetupRetryByUser *bool `json:"blockDeviceSetupRetryByUser,omitempty"`
+ // AllowLogCollectionOnInstallFailure Allow or block log collection on installation failure
+ AllowLogCollectionOnInstallFailure *bool `json:"allowLogCollectionOnInstallFailure,omitempty"`
+ // CustomErrorMessage Set custom error message to show upon installation failure
+ CustomErrorMessage *string `json:"customErrorMessage,omitempty"`
+ // InstallProgressTimeoutInMinutes Set installation progress timeout in minutes
+ InstallProgressTimeoutInMinutes *int `json:"installProgressTimeoutInMinutes,omitempty"`
+ // AllowDeviceUseOnInstallFailure Allow the user to continue using the device on installation failure
+ AllowDeviceUseOnInstallFailure *bool `json:"allowDeviceUseOnInstallFailure,omitempty"`
+}
+
+// WindowsFeatureUpdateProfile Windows Feature Update Profile
+type WindowsFeatureUpdateProfile struct {
+ // Entity is the base model of WindowsFeatureUpdateProfile
+ Entity
+ // DisplayName The display name of the profile.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of the profile which is specified by the user.
+ Description *string `json:"description,omitempty"`
+ // FeatureUpdateVersion The feature update version that will be deployed to the devices targeted by this profile. The version could be any supported version for example 1709, 1803 or 1809 and so on.
+ FeatureUpdateVersion *string `json:"featureUpdateVersion,omitempty"`
+ // CreatedDateTime The date time that the profile was created.
+ CreatedDateTime *time.Time `json:"createdDateTime,omitempty"`
+ // LastModifiedDateTime The date time that the profile was last modified.
+ LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"`
+ // Assignments undocumented
+ Assignments []WindowsFeatureUpdateProfileAssignment `json:"assignments,omitempty"`
+ // DeviceUpdateStates undocumented
+ DeviceUpdateStates []WindowsUpdateState `json:"deviceUpdateStates,omitempty"`
+}
+
+// WindowsFeatureUpdateProfileAssignment This entity contains the properties used to assign a windows feature update profile to a group.
+type WindowsFeatureUpdateProfileAssignment struct {
+ // Entity is the base model of WindowsFeatureUpdateProfileAssignment
+ Entity
+ // Target The assignment target that the feature update profile is assigned to.
+ Target *DeviceAndAppManagementAssignmentTarget `json:"target,omitempty"`
+}
+
+// WindowsFirewallNetworkProfile undocumented
+type WindowsFirewallNetworkProfile struct {
+ // Object is the base model of WindowsFirewallNetworkProfile
+ Object
+ // FirewallEnabled Configures the host device to allow or block the firewall and advanced security enforcement for the network profile.
+ FirewallEnabled *StateManagementSetting `json:"firewallEnabled,omitempty"`
+ // StealthModeRequired Allow the server to operate in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.
+ StealthModeRequired *bool `json:"stealthModeRequired,omitempty"`
+ // StealthModeBlocked Prevent the server from operating in stealth mode. When StealthModeRequired and StealthModeBlocked are both true, StealthModeBlocked takes priority.
+ StealthModeBlocked *bool `json:"stealthModeBlocked,omitempty"`
+ // IncomingTrafficRequired Configures the firewall to allow incoming traffic pursuant to other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority.
+ IncomingTrafficRequired *bool `json:"incomingTrafficRequired,omitempty"`
+ // IncomingTrafficBlocked Configures the firewall to block all incoming traffic regardless of other policy settings. When IncomingTrafficRequired and IncomingTrafficBlocked are both true, IncomingTrafficBlocked takes priority.
+ IncomingTrafficBlocked *bool `json:"incomingTrafficBlocked,omitempty"`
+ // UnicastResponsesToMulticastBroadcastsRequired Configures the firewall to allow unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority.
+ UnicastResponsesToMulticastBroadcastsRequired *bool `json:"unicastResponsesToMulticastBroadcastsRequired,omitempty"`
+ // UnicastResponsesToMulticastBroadcastsBlocked Configures the firewall to block unicast responses to multicast broadcast traffic. When UnicastResponsesToMulticastBroadcastsRequired and UnicastResponsesToMulticastBroadcastsBlocked are both true, UnicastResponsesToMulticastBroadcastsBlocked takes priority.
+ UnicastResponsesToMulticastBroadcastsBlocked *bool `json:"unicastResponsesToMulticastBroadcastsBlocked,omitempty"`
+ // InboundNotificationsRequired Allows the firewall to display notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority.
+ InboundNotificationsRequired *bool `json:"inboundNotificationsRequired,omitempty"`
+ // InboundNotificationsBlocked Prevents the firewall from displaying notifications when an application is blocked from listening on a port. When InboundNotificationsRequired and InboundNotificationsBlocked are both true, InboundNotificationsBlocked takes priority.
+ InboundNotificationsBlocked *bool `json:"inboundNotificationsBlocked,omitempty"`
+ // AuthorizedApplicationRulesFromGroupPolicyMerged Configures the firewall to merge authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority.
+ AuthorizedApplicationRulesFromGroupPolicyMerged *bool `json:"authorizedApplicationRulesFromGroupPolicyMerged,omitempty"`
+ // AuthorizedApplicationRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging authorized application rules from group policy with those from local store instead of ignoring the local store rules. When AuthorizedApplicationRulesFromGroupPolicyNotMerged and AuthorizedApplicationRulesFromGroupPolicyMerged are both true, AuthorizedApplicationRulesFromGroupPolicyMerged takes priority.
+ AuthorizedApplicationRulesFromGroupPolicyNotMerged *bool `json:"authorizedApplicationRulesFromGroupPolicyNotMerged,omitempty"`
+ // GlobalPortRulesFromGroupPolicyMerged Configures the firewall to merge global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority.
+ GlobalPortRulesFromGroupPolicyMerged *bool `json:"globalPortRulesFromGroupPolicyMerged,omitempty"`
+ // GlobalPortRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging global port rules from group policy with those from local store instead of ignoring the local store rules. When GlobalPortRulesFromGroupPolicyNotMerged and GlobalPortRulesFromGroupPolicyMerged are both true, GlobalPortRulesFromGroupPolicyMerged takes priority.
+ GlobalPortRulesFromGroupPolicyNotMerged *bool `json:"globalPortRulesFromGroupPolicyNotMerged,omitempty"`
+ // ConnectionSecurityRulesFromGroupPolicyMerged Configures the firewall to merge connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority.
+ ConnectionSecurityRulesFromGroupPolicyMerged *bool `json:"connectionSecurityRulesFromGroupPolicyMerged,omitempty"`
+ // ConnectionSecurityRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging connection security rules from group policy with those from local store instead of ignoring the local store rules. When ConnectionSecurityRulesFromGroupPolicyNotMerged and ConnectionSecurityRulesFromGroupPolicyMerged are both true, ConnectionSecurityRulesFromGroupPolicyMerged takes priority.
+ ConnectionSecurityRulesFromGroupPolicyNotMerged *bool `json:"connectionSecurityRulesFromGroupPolicyNotMerged,omitempty"`
+ // OutboundConnectionsRequired Configures the firewall to allow all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above.
+ OutboundConnectionsRequired *bool `json:"outboundConnectionsRequired,omitempty"`
+ // OutboundConnectionsBlocked Configures the firewall to block all outgoing connections by default. When OutboundConnectionsRequired and OutboundConnectionsBlocked are both true, OutboundConnectionsBlocked takes priority. This setting will get applied to Windows releases version 1809 and above.
+ OutboundConnectionsBlocked *bool `json:"outboundConnectionsBlocked,omitempty"`
+ // InboundConnectionsRequired Configures the firewall to allow all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority.
+ InboundConnectionsRequired *bool `json:"inboundConnectionsRequired,omitempty"`
+ // InboundConnectionsBlocked Configures the firewall to block all incoming connections by default. When InboundConnectionsRequired and InboundConnectionsBlocked are both true, InboundConnectionsBlocked takes priority.
+ InboundConnectionsBlocked *bool `json:"inboundConnectionsBlocked,omitempty"`
+ // SecuredPacketExemptionAllowed Configures the firewall to allow the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority.
+ SecuredPacketExemptionAllowed *bool `json:"securedPacketExemptionAllowed,omitempty"`
+ // SecuredPacketExemptionBlocked Configures the firewall to block the host computer to respond to unsolicited network traffic of that traffic is secured by IPSec even when stealthModeBlocked is set to true. When SecuredPacketExemptionBlocked and SecuredPacketExemptionAllowed are both true, SecuredPacketExemptionAllowed takes priority.
+ SecuredPacketExemptionBlocked *bool `json:"securedPacketExemptionBlocked,omitempty"`
+ // PolicyRulesFromGroupPolicyMerged Configures the firewall to merge Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority.
+ PolicyRulesFromGroupPolicyMerged *bool `json:"policyRulesFromGroupPolicyMerged,omitempty"`
+ // PolicyRulesFromGroupPolicyNotMerged Configures the firewall to prevent merging Firewall Rule policies from group policy with those from local store instead of ignoring the local store rules. When PolicyRulesFromGroupPolicyNotMerged and PolicyRulesFromGroupPolicyMerged are both true, PolicyRulesFromGroupPolicyMerged takes priority.
+ PolicyRulesFromGroupPolicyNotMerged *bool `json:"policyRulesFromGroupPolicyNotMerged,omitempty"`
+}
+
+// WindowsFirewallRule undocumented
+type WindowsFirewallRule struct {
+ // Object is the base model of WindowsFirewallRule
+ Object
+ // DisplayName The display name of the rule. Does not need to be unique.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The description of the rule.
+ Description *string `json:"description,omitempty"`
+ // PackageFamilyName The package family name of a Microsoft Store application that's affected by the firewall rule.
+ PackageFamilyName *string `json:"packageFamilyName,omitempty"`
+ // FilePath The full file path of an app that's affected by the firewall rule.
+ FilePath *string `json:"filePath,omitempty"`
+ // ServiceName The name used in cases when a service, not an application, is sending or receiving traffic.
+ ServiceName *string `json:"serviceName,omitempty"`
+ // Protocol 0-255 number representing the IP protocol (TCP = 6, UDP = 17). If not specified, the default is All. Valid values 0 to 255
+ Protocol *int `json:"protocol,omitempty"`
+ // LocalPortRanges List of local port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.
+ LocalPortRanges []string `json:"localPortRanges,omitempty"`
+ // RemotePortRanges List of remote port ranges. For example, "100-120", "200", "300-320". If not specified, the default is All.
+ RemotePortRanges []string `json:"remotePortRanges,omitempty"`
+ // LocalAddressRanges List of local addresses covered by the rule. Default is any address. Valid tokens include:<ul><li>"*" indicates any local address. If present, this must be the only token included.</li><li>A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.</li><li>A valid IPv6 address.</li><li>An IPv4 address range in the format of "start address - end address" with no spaces included.</li><li>An IPv6 address range in the format of "start address - end address" with no spaces included.</li></ul>
+ LocalAddressRanges []string `json:"localAddressRanges,omitempty"`
+ // RemoteAddressRanges List of tokens specifying the remote addresses covered by the rule. Tokens are case insensitive. Default is any address. Valid tokens include:<ul><li>"*" indicates any remote address. If present, this must be the only token included.</li><li>"Defaultgateway"</li><li>"DHCP"</li><li>"DNS"</li><li>"WINS"</li><li>"Intranet" (supported on Windows versions 1809+)</li><li>"RmtIntranet" (supported on Windows versions 1809+)</li><li>"Internet" (supported on Windows versions 1809+)</li><li>"Ply2Renders" (supported on Windows versions 1809+)</li><li>"LocalSubnet" indicates any local address on the local subnet.</li><li>A subnet can be specified using either the subnet mask or network prefix notation. If neither a subnet mask nor a network prefix is specified, the subnet mask defaults to 255.255.255.255.</li><li>A valid IPv6 address.</li><li>An IPv4 address range in the format of "start address - end address" with no spaces included.</li><li>An IPv6 address range in the format of "start address - end address" with no spaces included.</li></ul>
+ RemoteAddressRanges []string `json:"remoteAddressRanges,omitempty"`
+ // ProfileTypes Specifies the profiles to which the rule belongs. If not specified, the default is All.
+ ProfileTypes *WindowsFirewallRuleNetworkProfileTypes `json:"profileTypes,omitempty"`
+ // Action The action the rule enforces. If not specified, the default is Allowed.
+ Action *StateManagementSetting `json:"action,omitempty"`
+ // TrafficDirection The traffic direction that the rule is enabled for. If not specified, the default is Out.
+ TrafficDirection *WindowsFirewallRuleTrafficDirectionType `json:"trafficDirection,omitempty"`
+ // InterfaceTypes The interface types of the rule.
+ InterfaceTypes *WindowsFirewallRuleInterfaceTypes `json:"interfaceTypes,omitempty"`
+ // EdgeTraversal Indicates whether edge traversal is enabled or disabled for this rule. The EdgeTraversal setting indicates that specific inbound traffic is allowed to tunnel through NATs and other edge devices using the Teredo tunneling technology. In order for this setting to work correctly, the application or service with the inbound firewall rule needs to support IPv6. The primary application of this setting allows listeners on the host to be globally addressable through a Teredo IPv6 address. New rules have the EdgeTraversal property disabled by default.
+ EdgeTraversal *StateManagementSetting `json:"edgeTraversal,omitempty"`
+ // LocalUserAuthorizations Specifies the list of authorized local users for the app container. This is a string in Security Descriptor Definition Language (SDDL) format.
+ LocalUserAuthorizations *string `json:"localUserAuthorizations,omitempty"`
+}
+
+// WindowsHealthMonitoringConfiguration Windows device health monitoring configuration
+type WindowsHealthMonitoringConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsHealthMonitoringConfiguration
+ DeviceConfiguration
+ // AllowDeviceHealthMonitoring Enables device health monitoring on the device
+ AllowDeviceHealthMonitoring *Enablement `json:"allowDeviceHealthMonitoring,omitempty"`
+ // ConfigDeviceHealthMonitoringScope Specifies set of events collected from the device where health monitoring is enabled
+ ConfigDeviceHealthMonitoringScope *WindowsHealthMonitoringScope `json:"configDeviceHealthMonitoringScope,omitempty"`
+ // ConfigDeviceHealthMonitoringCustomScope Specifies custom set of events collected from the device where health monitoring is enabled
+ ConfigDeviceHealthMonitoringCustomScope *string `json:"configDeviceHealthMonitoringCustomScope,omitempty"`
+}
+
+// WindowsIdentityProtectionConfiguration This entity provides descriptions of the declared methods, properties and relationships exposed by Windows Hello for Business.
+type WindowsIdentityProtectionConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsIdentityProtectionConfiguration
+ DeviceConfiguration
+ // UseSecurityKeyForSignin Boolean value used to enable the Windows Hello security key as a logon credential.
+ UseSecurityKeyForSignin *bool `json:"useSecurityKeyForSignin,omitempty"`
+ // EnhancedAntiSpoofingForFacialFeaturesEnabled Boolean value used to enable enhanced anti-spoofing for facial feature recognition on Windows Hello face authentication.
+ EnhancedAntiSpoofingForFacialFeaturesEnabled *bool `json:"enhancedAntiSpoofingForFacialFeaturesEnabled,omitempty"`
+ // PinMinimumLength Integer value that sets the minimum number of characters required for the Windows Hello for Business PIN. Valid values are 4 to 127 inclusive and less than or equal to the value set for the maximum PIN. Valid values 4 to 127
+ PinMinimumLength *int `json:"pinMinimumLength,omitempty"`
+ // PinMaximumLength Integer value that sets the maximum number of characters allowed for the work PIN. Valid values are 4 to 127 inclusive and greater than or equal to the value set for the minimum PIN. Valid values 4 to 127
+ PinMaximumLength *int `json:"pinMaximumLength,omitempty"`
+ // PinUppercaseCharactersUsage This value configures the use of uppercase characters in the Windows Hello for Business PIN.
+ PinUppercaseCharactersUsage *ConfigurationUsage `json:"pinUppercaseCharactersUsage,omitempty"`
+ // PinLowercaseCharactersUsage This value configures the use of lowercase characters in the Windows Hello for Business PIN.
+ PinLowercaseCharactersUsage *ConfigurationUsage `json:"pinLowercaseCharactersUsage,omitempty"`
+ // PinSpecialCharactersUsage Controls the ability to use special characters in the Windows Hello for Business PIN.
+ PinSpecialCharactersUsage *ConfigurationUsage `json:"pinSpecialCharactersUsage,omitempty"`
+ // PinExpirationInDays Integer value specifies the period (in days) that a PIN can be used before the system requires the user to change it. Valid values are 0 to 730 inclusive. Valid values 0 to 730
+ PinExpirationInDays *int `json:"pinExpirationInDays,omitempty"`
+ // PinPreviousBlockCount Controls the ability to prevent users from using past PINs. This must be set between 0 and 50, inclusive, and the current PIN of the user is included in that count. If set to 0, previous PINs are not stored. PIN history is not preserved through a PIN reset. Valid values 0 to 50
+ PinPreviousBlockCount *int `json:"pinPreviousBlockCount,omitempty"`
+ // PinRecoveryEnabled Boolean value that enables a user to change their PIN by using the Windows Hello for Business PIN recovery service.
+ PinRecoveryEnabled *bool `json:"pinRecoveryEnabled,omitempty"`
+ // SecurityDeviceRequired Controls whether to require a Trusted Platform Module (TPM) for provisioning Windows Hello for Business. A TPM provides an additional security benefit in that data stored on it cannot be used on other devices. If set to False, all devices can provision Windows Hello for Business even if there is not a usable TPM.
+ SecurityDeviceRequired *bool `json:"securityDeviceRequired,omitempty"`
+ // UnlockWithBiometricsEnabled Controls the use of biometric gestures, such as face and fingerprint, as an alternative to the Windows Hello for Business PIN. If set to False, biometric gestures are not allowed. Users must still configure a PIN as a backup in case of failures.
+ UnlockWithBiometricsEnabled *bool `json:"unlockWithBiometricsEnabled,omitempty"`
+ // UseCertificatesForOnPremisesAuthEnabled Boolean value that enables Windows Hello for Business to use certificates to authenticate on-premise resources.
+ UseCertificatesForOnPremisesAuthEnabled *bool `json:"useCertificatesForOnPremisesAuthEnabled,omitempty"`
+ // WindowsHelloForBusinessBlocked Boolean value that blocks Windows Hello for Business as a method for signing into Windows.
+ WindowsHelloForBusinessBlocked *bool `json:"windowsHelloForBusinessBlocked,omitempty"`
+}
+
+// WindowsInformationProtection Policy for Windows information protection to configure detailed management settings
+type WindowsInformationProtection struct {
+ // ManagedAppPolicy is the base model of WindowsInformationProtection
+ ManagedAppPolicy
+ // EnforcementLevel WIP enforcement level.See the Enum definition for supported values
+ EnforcementLevel *WindowsInformationProtectionEnforcementLevel `json:"enforcementLevel,omitempty"`
+ // EnterpriseDomain Primary enterprise domain
+ EnterpriseDomain *string `json:"enterpriseDomain,omitempty"`
+ // EnterpriseProtectedDomainNames List of enterprise domains to be protected
+ EnterpriseProtectedDomainNames []WindowsInformationProtectionResourceCollection `json:"enterpriseProtectedDomainNames,omitempty"`
+ // ProtectionUnderLockConfigRequired Specifies whether the protection under lock feature (also known as encrypt under pin) should be configured
+ ProtectionUnderLockConfigRequired *bool `json:"protectionUnderLockConfigRequired,omitempty"`
+ // DataRecoveryCertificate Specifies a recovery certificate that can be used for data recovery of encrypted files. This is the same as the data recovery agent(DRA) certificate for encrypting file system(EFS)
+ DataRecoveryCertificate *WindowsInformationProtectionDataRecoveryCertificate `json:"dataRecoveryCertificate,omitempty"`
+ // RevokeOnUnenrollDisabled This policy controls whether to revoke the WIP keys when a device unenrolls from the management service. If set to 1 (Don't revoke keys), the keys will not be revoked and the user will continue to have access to protected files after unenrollment. If the keys are not revoked, there will be no revoked file cleanup subsequently.
+ RevokeOnUnenrollDisabled *bool `json:"revokeOnUnenrollDisabled,omitempty"`
+ // RightsManagementServicesTemplateID TemplateID GUID to use for RMS encryption. The RMS template allows the IT admin to configure the details about who has access to RMS-protected file and how long they have access
+ RightsManagementServicesTemplateID *UUID `json:"rightsManagementServicesTemplateId,omitempty"`
+ // AzureRightsManagementServicesAllowed Specifies whether to allow Azure RMS encryption for WIP
+ AzureRightsManagementServicesAllowed *bool `json:"azureRightsManagementServicesAllowed,omitempty"`
+ // IconsVisible Determines whether overlays are added to icons for WIP protected files in Explorer and enterprise only app tiles in the Start menu. Starting in Windows 10, version 1703 this setting also configures the visibility of the WIP icon in the title bar of a WIP-protected app
+ IconsVisible *bool `json:"iconsVisible,omitempty"`
+ // ProtectedApps Protected applications can access enterprise data and the data handled by those applications are protected with encryption
+ ProtectedApps []WindowsInformationProtectionApp `json:"protectedApps,omitempty"`
+ // ExemptApps Exempt applications can also access enterprise data, but the data handled by those applications are not protected. This is because some critical enterprise applications may have compatibility problems with encrypted data.
+ ExemptApps []WindowsInformationProtectionApp `json:"exemptApps,omitempty"`
+ // EnterpriseNetworkDomainNames This is the list of domains that comprise the boundaries of the enterprise. Data from one of these domains that is sent to a device will be considered enterprise data and protected These locations will be considered a safe destination for enterprise data to be shared to
+ EnterpriseNetworkDomainNames []WindowsInformationProtectionResourceCollection `json:"enterpriseNetworkDomainNames,omitempty"`
+ // EnterpriseProxiedDomains Contains a list of Enterprise resource domains hosted in the cloud that need to be protected. Connections to these resources are considered enterprise data. If a proxy is paired with a cloud resource, traffic to the cloud resource will be routed through the enterprise network via the denoted proxy server (on Port 80). A proxy server used for this purpose must also be configured using the EnterpriseInternalProxyServers policy
+ EnterpriseProxiedDomains []WindowsInformationProtectionProxiedDomainCollection `json:"enterpriseProxiedDomains,omitempty"`
+ // EnterpriseIPRanges Sets the enterprise IP ranges that define the computers in the enterprise network. Data that comes from those computers will be considered part of the enterprise and protected. These locations will be considered a safe destination for enterprise data to be shared to
+ EnterpriseIPRanges []WindowsInformationProtectionIPRangeCollection `json:"enterpriseIPRanges,omitempty"`
+ // EnterpriseIPRangesAreAuthoritative Boolean value that tells the client to accept the configured list and not to use heuristics to attempt to find other subnets. Default is false
+ EnterpriseIPRangesAreAuthoritative *bool `json:"enterpriseIPRangesAreAuthoritative,omitempty"`
+ // EnterpriseProxyServers This is a list of proxy servers. Any server not on this list is considered non-enterprise
+ EnterpriseProxyServers []WindowsInformationProtectionResourceCollection `json:"enterpriseProxyServers,omitempty"`
+ // EnterpriseInternalProxyServers This is the comma-separated list of internal proxy servers. For example, "157.54.14.28, 157.54.11.118, 10.202.14.167, 157.53.14.163, 157.69.210.59". These proxies have been configured by the admin to connect to specific resources on the Internet. They are considered to be enterprise network locations. The proxies are only leveraged in configuring the EnterpriseProxiedDomains policy to force traffic to the matched domains through these proxies
+ EnterpriseInternalProxyServers []WindowsInformationProtectionResourceCollection `json:"enterpriseInternalProxyServers,omitempty"`
+ // EnterpriseProxyServersAreAuthoritative Boolean value that tells the client to accept the configured list of proxies and not try to detect other work proxies. Default is false
+ EnterpriseProxyServersAreAuthoritative *bool `json:"enterpriseProxyServersAreAuthoritative,omitempty"`
+ // NeutralDomainResources List of domain names that can used for work or personal resource
+ NeutralDomainResources []WindowsInformationProtectionResourceCollection `json:"neutralDomainResources,omitempty"`
+ // IndexingEncryptedStoresOrItemsBlocked This switch is for the Windows Search Indexer, to allow or disallow indexing of items
+ IndexingEncryptedStoresOrItemsBlocked *bool `json:"indexingEncryptedStoresOrItemsBlocked,omitempty"`
+ // SmbAutoEncryptedFileExtensions Specifies a list of file extensions, so that files with these extensions are encrypted when copying from an SMB share within the corporate boundary
+ SmbAutoEncryptedFileExtensions []WindowsInformationProtectionResourceCollection `json:"smbAutoEncryptedFileExtensions,omitempty"`
+ // IsAssigned Indicates if the policy is deployed to any inclusion groups or not.
+ IsAssigned *bool `json:"isAssigned,omitempty"`
+ // ProtectedAppLockerFiles undocumented
+ ProtectedAppLockerFiles []WindowsInformationProtectionAppLockerFile `json:"protectedAppLockerFiles,omitempty"`
+ // ExemptAppLockerFiles undocumented
+ ExemptAppLockerFiles []WindowsInformationProtectionAppLockerFile `json:"exemptAppLockerFiles,omitempty"`
+ // Assignments undocumented
+ Assignments []TargetedManagedAppPolicyAssignment `json:"assignments,omitempty"`
+}
+
+// WindowsInformationProtectionApp undocumented
+type WindowsInformationProtectionApp struct {
+ // Object is the base model of WindowsInformationProtectionApp
+ Object
+ // DisplayName App display name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // Description The app's description.
+ Description *string `json:"description,omitempty"`
+ // PublisherName The publisher name
+ PublisherName *string `json:"publisherName,omitempty"`
+ // ProductName The product name.
+ ProductName *string `json:"productName,omitempty"`
+ // Denied If true, app is denied protection or exemption.
+ Denied *bool `json:"denied,omitempty"`
+}
+
+// WindowsInformationProtectionAppLearningSummary Windows Information Protection AppLearning Summary entity.
+type WindowsInformationProtectionAppLearningSummary struct {
+ // Entity is the base model of WindowsInformationProtectionAppLearningSummary
+ Entity
+ // ApplicationName Application Name
+ ApplicationName *string `json:"applicationName,omitempty"`
+ // ApplicationType Application Type
+ ApplicationType *ApplicationType `json:"applicationType,omitempty"`
+ // DeviceCount Device Count
+ DeviceCount *int `json:"deviceCount,omitempty"`
+}
+
+// WindowsInformationProtectionAppLockerFile Windows Information Protection AppLocker File
+type WindowsInformationProtectionAppLockerFile struct {
+ // Entity is the base model of WindowsInformationProtectionAppLockerFile
+ Entity
+ // DisplayName The friendly name
+ DisplayName *string `json:"displayName,omitempty"`
+ // FileHash SHA256 hash of the file
+ FileHash *string `json:"fileHash,omitempty"`
+ // File File as a byte array
+ File *Binary `json:"file,omitempty"`
+ // Version Version of the entity.
+ Version *string `json:"version,omitempty"`
+}
+
+// WindowsInformationProtectionDataRecoveryCertificate undocumented
+type WindowsInformationProtectionDataRecoveryCertificate struct {
+ // Object is the base model of WindowsInformationProtectionDataRecoveryCertificate
+ Object
+ // SubjectName Data recovery Certificate subject name
+ SubjectName *string `json:"subjectName,omitempty"`
+ // Description Data recovery Certificate description
+ Description *string `json:"description,omitempty"`
+ // ExpirationDateTime Data recovery Certificate expiration datetime
+ ExpirationDateTime *time.Time `json:"expirationDateTime,omitempty"`
+ // Certificate Data recovery Certificate
+ Certificate *Binary `json:"certificate,omitempty"`
+}
+
+// WindowsInformationProtectionDesktopApp undocumented
+type WindowsInformationProtectionDesktopApp struct {
+ // WindowsInformationProtectionApp is the base model of WindowsInformationProtectionDesktopApp
+ WindowsInformationProtectionApp
+ // BinaryName The binary name.
+ BinaryName *string `json:"binaryName,omitempty"`
+ // BinaryVersionLow The lower binary version.
+ BinaryVersionLow *string `json:"binaryVersionLow,omitempty"`
+ // BinaryVersionHigh The high binary version.
+ BinaryVersionHigh *string `json:"binaryVersionHigh,omitempty"`
+}
+
+// WindowsInformationProtectionDeviceRegistration Represents device registration records for Bring-Your-Own-Device(BYOD) Windows devices.
+type WindowsInformationProtectionDeviceRegistration struct {
+ // Entity is the base model of WindowsInformationProtectionDeviceRegistration
+ Entity
+ // UserID UserId associated with this device registration record.
+ UserID *string `json:"userId,omitempty"`
+ // DeviceRegistrationID Device identifier for this device registration record.
+ DeviceRegistrationID *string `json:"deviceRegistrationId,omitempty"`
+ // DeviceName Device name.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceType Device type, for example, Windows laptop VS Windows phone.
+ DeviceType *string `json:"deviceType,omitempty"`
+ // DeviceMacAddress Device Mac address.
+ DeviceMacAddress *string `json:"deviceMacAddress,omitempty"`
+ // LastCheckInDateTime Last checkin time of the device.
+ LastCheckInDateTime *time.Time `json:"lastCheckInDateTime,omitempty"`
+}
+
+// WindowsInformationProtectionIPRangeCollection undocumented
+type WindowsInformationProtectionIPRangeCollection struct {
+ // Object is the base model of WindowsInformationProtectionIPRangeCollection
+ Object
+ // DisplayName Display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Ranges Collection of ip ranges
+ Ranges []IPRange `json:"ranges,omitempty"`
+}
+
+// WindowsInformationProtectionNetworkLearningSummary Windows Information Protection Network learning Summary entity.
+type WindowsInformationProtectionNetworkLearningSummary struct {
+ // Entity is the base model of WindowsInformationProtectionNetworkLearningSummary
+ Entity
+ // URL Website url
+ URL *string `json:"url,omitempty"`
+ // DeviceCount Device Count
+ DeviceCount *int `json:"deviceCount,omitempty"`
+}
+
+// WindowsInformationProtectionPolicy Policy for Windows information protection without MDM
+type WindowsInformationProtectionPolicy struct {
+ // WindowsInformationProtection is the base model of WindowsInformationProtectionPolicy
+ WindowsInformationProtection
+ // RevokeOnMDMHandoffDisabled New property in RS2, pending documentation
+ RevokeOnMDMHandoffDisabled *bool `json:"revokeOnMdmHandoffDisabled,omitempty"`
+ // MDMEnrollmentURL Enrollment url for the MDM
+ MDMEnrollmentURL *string `json:"mdmEnrollmentUrl,omitempty"`
+ // WindowsHelloForBusinessBlocked Boolean value that sets Windows Hello for Business as a method for signing into Windows.
+ WindowsHelloForBusinessBlocked *bool `json:"windowsHelloForBusinessBlocked,omitempty"`
+ // PinMinimumLength Integer value that sets the minimum number of characters required for the PIN. Default value is 4. The lowest number you can configure for this policy setting is 4. The largest number you can configure must be less than the number configured in the Maximum PIN length policy setting or the number 127, whichever is the lowest.
+ PinMinimumLength *int `json:"pinMinimumLength,omitempty"`
+ // PinUppercaseLetters Integer value that configures the use of uppercase letters in the Windows Hello for Business PIN. Default is NotAllow.
+ PinUppercaseLetters *WindowsInformationProtectionPinCharacterRequirements `json:"pinUppercaseLetters,omitempty"`
+ // PinLowercaseLetters Integer value that configures the use of lowercase letters in the Windows Hello for Business PIN. Default is NotAllow.
+ PinLowercaseLetters *WindowsInformationProtectionPinCharacterRequirements `json:"pinLowercaseLetters,omitempty"`
+ // PinSpecialCharacters Integer value that configures the use of special characters in the Windows Hello for Business PIN. Valid special characters for Windows Hello for Business PIN gestures include: ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~. Default is NotAllow.
+ PinSpecialCharacters *WindowsInformationProtectionPinCharacterRequirements `json:"pinSpecialCharacters,omitempty"`
+ // PinExpirationDays Integer value specifies the period of time (in days) that a PIN can be used before the system requires the user to change it. The largest number you can configure for this policy setting is 730. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then the user's PIN will never expire. This node was added in Windows 10, version 1511. Default is 0.
+ PinExpirationDays *int `json:"pinExpirationDays,omitempty"`
+ // NumberOfPastPinsRemembered Integer value that specifies the number of past PINs that can be associated to a user account that can't be reused. The largest number you can configure for this policy setting is 50. The lowest number you can configure for this policy setting is 0. If this policy is set to 0, then storage of previous PINs is not required. This node was added in Windows 10, version 1511. Default is 0.
+ NumberOfPastPinsRemembered *int `json:"numberOfPastPinsRemembered,omitempty"`
+ // PasswordMaximumAttemptCount The number of authentication failures allowed before the device will be wiped. A value of 0 disables device wipe functionality. Range is an integer X where 4 <= X <= 16 for desktop and 0 <= X <= 999 for mobile devices.
+ PasswordMaximumAttemptCount *int `json:"passwordMaximumAttemptCount,omitempty"`
+ // MinutesOfInactivityBeforeDeviceLock Specifies the maximum amount of time (in minutes) allowed after the device is idle that will cause the device to become PIN or password locked. Range is an integer X where 0 <= X <= 999.
+ MinutesOfInactivityBeforeDeviceLock *int `json:"minutesOfInactivityBeforeDeviceLock,omitempty"`
+ // DaysWithoutContactBeforeUnenroll Offline interval before app data is wiped (days)
+ DaysWithoutContactBeforeUnenroll *int `json:"daysWithoutContactBeforeUnenroll,omitempty"`
+}
+
+// WindowsInformationProtectionProxiedDomainCollection undocumented
+type WindowsInformationProtectionProxiedDomainCollection struct {
+ // Object is the base model of WindowsInformationProtectionProxiedDomainCollection
+ Object
+ // DisplayName Display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // ProxiedDomains Collection of proxied domains
+ ProxiedDomains []ProxiedDomain `json:"proxiedDomains,omitempty"`
+}
+
+// WindowsInformationProtectionResourceCollection undocumented
+type WindowsInformationProtectionResourceCollection struct {
+ // Object is the base model of WindowsInformationProtectionResourceCollection
+ Object
+ // DisplayName Display name
+ DisplayName *string `json:"displayName,omitempty"`
+ // Resources Collection of resources
+ Resources []string `json:"resources,omitempty"`
+}
+
+// WindowsInformationProtectionStoreApp undocumented
+type WindowsInformationProtectionStoreApp struct {
+ // WindowsInformationProtectionApp is the base model of WindowsInformationProtectionStoreApp
+ WindowsInformationProtectionApp
+}
+
+// WindowsInformationProtectionWipeAction Represents wipe requests issued by tenant admin for Bring-Your-Own-Device(BYOD) Windows devices.
+type WindowsInformationProtectionWipeAction struct {
+ // Entity is the base model of WindowsInformationProtectionWipeAction
+ Entity
+ // Status Wipe action status.
+ Status *ActionState `json:"status,omitempty"`
+ // TargetedUserID The UserId being targeted by this wipe action.
+ TargetedUserID *string `json:"targetedUserId,omitempty"`
+ // TargetedDeviceRegistrationID The DeviceRegistrationId being targeted by this wipe action.
+ TargetedDeviceRegistrationID *string `json:"targetedDeviceRegistrationId,omitempty"`
+ // TargetedDeviceName Targeted device name.
+ TargetedDeviceName *string `json:"targetedDeviceName,omitempty"`
+ // TargetedDeviceMacAddress Targeted device Mac address.
+ TargetedDeviceMacAddress *string `json:"targetedDeviceMacAddress,omitempty"`
+ // LastCheckInDateTime Last checkin time of the device that was targeted by this wipe action.
+ LastCheckInDateTime *time.Time `json:"lastCheckInDateTime,omitempty"`
+}
+
+// WindowsKioskActiveDirectoryGroup undocumented
+type WindowsKioskActiveDirectoryGroup struct {
+ // WindowsKioskUser is the base model of WindowsKioskActiveDirectoryGroup
+ WindowsKioskUser
+ // GroupName The name of the AD group that will be locked to this kiosk configuration
+ GroupName *string `json:"groupName,omitempty"`
+}
+
+// WindowsKioskAppBase undocumented
+type WindowsKioskAppBase struct {
+ // Object is the base model of WindowsKioskAppBase
+ Object
+ // StartLayoutTileSize The app tile size for the start layout
+ StartLayoutTileSize *WindowsAppStartLayoutTileSize `json:"startLayoutTileSize,omitempty"`
+ // Name Represents the friendly name of an app
+ Name *string `json:"name,omitempty"`
+ // AppType The app type
+ AppType *WindowsKioskAppType `json:"appType,omitempty"`
+ // AutoLaunch Allow the app to be auto-launched in multi-app kiosk mode
+ AutoLaunch *bool `json:"autoLaunch,omitempty"`
+}
+
+// WindowsKioskAppConfiguration undocumented
+type WindowsKioskAppConfiguration struct {
+ // Object is the base model of WindowsKioskAppConfiguration
+ Object
+}
+
+// WindowsKioskAutologon undocumented
+type WindowsKioskAutologon struct {
+ // WindowsKioskUser is the base model of WindowsKioskAutologon
+ WindowsKioskUser
+}
+
+// WindowsKioskAzureADGroup undocumented
+type WindowsKioskAzureADGroup struct {
+ // WindowsKioskUser is the base model of WindowsKioskAzureADGroup
+ WindowsKioskUser
+ // DisplayName The display name of the AzureAD group that will be locked to this kiosk configuration
+ DisplayName *string `json:"displayName,omitempty"`
+ // GroupID The ID of the AzureAD group that will be locked to this kiosk configuration
+ GroupID *string `json:"groupId,omitempty"`
+}
+
+// WindowsKioskAzureADUser undocumented
+type WindowsKioskAzureADUser struct {
+ // WindowsKioskUser is the base model of WindowsKioskAzureADUser
+ WindowsKioskUser
+ // UserID The ID of the AzureAD user that will be locked to this kiosk configuration
+ UserID *string `json:"userId,omitempty"`
+ // UserPrincipalName The user accounts that will be locked to this kiosk configuration
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+}
+
+// WindowsKioskConfiguration This entity provides descriptions of the declared methods, properties and relationships exposed by the kiosk resource.
+type WindowsKioskConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsKioskConfiguration
+ DeviceConfiguration
+ // KioskProfiles This policy setting allows to define a list of Kiosk profiles for a Kiosk configuration. This collection can contain a maximum of 3 elements.
+ KioskProfiles []WindowsKioskProfile `json:"kioskProfiles,omitempty"`
+ // KioskBrowserDefaultURL Specify the default URL the browser should navigate to on launch.
+ KioskBrowserDefaultURL *string `json:"kioskBrowserDefaultUrl,omitempty"`
+ // KioskBrowserEnableHomeButton Enable the kiosk browser's home button. By default, the home button is disabled.
+ KioskBrowserEnableHomeButton *bool `json:"kioskBrowserEnableHomeButton,omitempty"`
+ // KioskBrowserEnableNavigationButtons Enable the kiosk browser's navigation buttons(forward/back). By default, the navigation buttons are disabled.
+ KioskBrowserEnableNavigationButtons *bool `json:"kioskBrowserEnableNavigationButtons,omitempty"`
+ // KioskBrowserEnableEndSessionButton Enable the kiosk browser's end session button. By default, the end session button is disabled.
+ KioskBrowserEnableEndSessionButton *bool `json:"kioskBrowserEnableEndSessionButton,omitempty"`
+ // KioskBrowserRestartOnIdleTimeInMinutes Specify the number of minutes the session is idle until the kiosk browser restarts in a fresh state. Valid values are 1-1440. Valid values 1 to 1440
+ KioskBrowserRestartOnIdleTimeInMinutes *int `json:"kioskBrowserRestartOnIdleTimeInMinutes,omitempty"`
+ // KioskBrowserBlockedURLs Specify URLs that the kiosk browsers should not navigate to
+ KioskBrowserBlockedURLs []string `json:"kioskBrowserBlockedURLs,omitempty"`
+ // KioskBrowserBlockedURLExceptions Specify URLs that the kiosk browser is allowed to navigate to
+ KioskBrowserBlockedURLExceptions []string `json:"kioskBrowserBlockedUrlExceptions,omitempty"`
+ // EdgeKioskEnablePublicBrowsing Enable public browsing kiosk mode for the Microsoft Edge browser. The Default is false.
+ EdgeKioskEnablePublicBrowsing *bool `json:"edgeKioskEnablePublicBrowsing,omitempty"`
+ // WindowsKioskForceUpdateSchedule force update schedule for Kiosk devices.
+ WindowsKioskForceUpdateSchedule *WindowsKioskForceUpdateSchedule `json:"windowsKioskForceUpdateSchedule,omitempty"`
+}
+
+// WindowsKioskDesktopApp undocumented
+type WindowsKioskDesktopApp struct {
+ // WindowsKioskAppBase is the base model of WindowsKioskDesktopApp
+ WindowsKioskAppBase
+ // Path Define the path of a desktop app
+ Path *string `json:"path,omitempty"`
+ // DesktopApplicationID Define the DesktopApplicationID of the app
+ DesktopApplicationID *string `json:"desktopApplicationId,omitempty"`
+ // DesktopApplicationLinkPath Define the DesktopApplicationLinkPath of the app
+ DesktopApplicationLinkPath *string `json:"desktopApplicationLinkPath,omitempty"`
+}
+
+// WindowsKioskForceUpdateSchedule undocumented
+type WindowsKioskForceUpdateSchedule struct {
+ // Object is the base model of WindowsKioskForceUpdateSchedule
+ Object
+ // StartDateTime The start time for the force restart.
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // Recurrence Recurrence schedule.
+ Recurrence *Windows10AppsUpdateRecurrence `json:"recurrence,omitempty"`
+ // DayofWeek Day of week.
+ DayofWeek *DayOfWeek `json:"dayofWeek,omitempty"`
+ // DayofMonth Day of month. Valid values 1 to 31
+ DayofMonth *int `json:"dayofMonth,omitempty"`
+ // RunImmediatelyIfAfterStartDateTime If true, runs the task immediately if StartDateTime is in the past, else, runs at the next recurrence.
+ RunImmediatelyIfAfterStartDateTime *bool `json:"runImmediatelyIfAfterStartDateTime,omitempty"`
+}
+
+// WindowsKioskLocalGroup undocumented
+type WindowsKioskLocalGroup struct {
+ // WindowsKioskUser is the base model of WindowsKioskLocalGroup
+ WindowsKioskUser
+ // GroupName The name of the local group that will be locked to this kiosk configuration
+ GroupName *string `json:"groupName,omitempty"`
+}
+
+// WindowsKioskLocalUser undocumented
+type WindowsKioskLocalUser struct {
+ // WindowsKioskUser is the base model of WindowsKioskLocalUser
+ WindowsKioskUser
+ // UserName The local user that will be locked to this kiosk configuration
+ UserName *string `json:"userName,omitempty"`
+}
+
+// WindowsKioskMultipleApps undocumented
+type WindowsKioskMultipleApps struct {
+ // WindowsKioskAppConfiguration is the base model of WindowsKioskMultipleApps
+ WindowsKioskAppConfiguration
+ // Apps These are the only Windows Store Apps that will be available to launch from the Start menu. This collection can contain a maximum of 128 elements.
+ Apps []WindowsKioskAppBase `json:"apps,omitempty"`
+ // ShowTaskBar This setting allows the admin to specify whether the Task Bar is shown or not.
+ ShowTaskBar *bool `json:"showTaskBar,omitempty"`
+ // AllowAccessToDownloadsFolder This setting allows access to Downloads folder in file explorer.
+ AllowAccessToDownloadsFolder *bool `json:"allowAccessToDownloadsFolder,omitempty"`
+ // DisallowDesktopApps This setting indicates that desktop apps are allowed. Default to true.
+ DisallowDesktopApps *bool `json:"disallowDesktopApps,omitempty"`
+ // StartMenuLayoutXML Allows admins to override the default Start layout and prevents the user from changing it. The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in Binary format.
+ StartMenuLayoutXML *Binary `json:"startMenuLayoutXml,omitempty"`
+}
+
+// WindowsKioskProfile undocumented
+type WindowsKioskProfile struct {
+ // Object is the base model of WindowsKioskProfile
+ Object
+ // ProfileID Key of the entity.
+ ProfileID *string `json:"profileId,omitempty"`
+ // ProfileName This is a friendly name used to identify a group of applications, the layout of these apps on the start menu and the users to whom this kiosk configuration is assigned.
+ ProfileName *string `json:"profileName,omitempty"`
+ // AppConfiguration The App configuration that will be used for this kiosk configuration.
+ AppConfiguration *WindowsKioskAppConfiguration `json:"appConfiguration,omitempty"`
+ // UserAccountsConfiguration The user accounts that will be locked to this kiosk configuration. This collection can contain a maximum of 100 elements.
+ UserAccountsConfiguration []WindowsKioskUser `json:"userAccountsConfiguration,omitempty"`
+}
+
+// WindowsKioskSingleUWPApp undocumented
+type WindowsKioskSingleUWPApp struct {
+ // WindowsKioskAppConfiguration is the base model of WindowsKioskSingleUWPApp
+ WindowsKioskAppConfiguration
+ // UwpApp This is the only Application User Model ID (AUMID) that will be available to launch use while in Kiosk Mode
+ UwpApp *WindowsKioskUWPApp `json:"uwpApp,omitempty"`
+}
+
+// WindowsKioskUWPApp undocumented
+type WindowsKioskUWPApp struct {
+ // WindowsKioskAppBase is the base model of WindowsKioskUWPApp
+ WindowsKioskAppBase
+ // AppUserModelID This is the only Application User Model ID (AUMID) that will be available to launch use while in Kiosk Mode
+ AppUserModelID *string `json:"appUserModelId,omitempty"`
+ // AppID This references an Intune App that will be target to the same assignments as Kiosk configuration
+ AppID *string `json:"appId,omitempty"`
+ // ContainedAppID This references an contained App from an Intune App
+ ContainedAppID *string `json:"containedAppId,omitempty"`
+}
+
+// WindowsKioskUser undocumented
+type WindowsKioskUser struct {
+ // Object is the base model of WindowsKioskUser
+ Object
+}
+
+// WindowsKioskVisitor undocumented
+type WindowsKioskVisitor struct {
+ // WindowsKioskUser is the base model of WindowsKioskVisitor
+ WindowsKioskUser
+}
+
+// WindowsMalwareCategoryCount undocumented
+type WindowsMalwareCategoryCount struct {
+ // Object is the base model of WindowsMalwareCategoryCount
+ Object
+ // Category Malware category
+ Category *WindowsMalwareCategory `json:"category,omitempty"`
+ // DeviceCount Count of devices with malware detections for this malware category
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // LastUpdateDateTime The Timestamp of the last update for the device count in UTC
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+}
+
+// WindowsMalwareExecutionStateCount undocumented
+type WindowsMalwareExecutionStateCount struct {
+ // Object is the base model of WindowsMalwareExecutionStateCount
+ Object
+ // ExecutionState Malware execution state
+ ExecutionState *WindowsMalwareExecutionState `json:"executionState,omitempty"`
+ // DeviceCount Count of devices with malware detections for this malware execution state
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // LastUpdateDateTime The Timestamp of the last update for the device count in UTC
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+}
+
+// WindowsMalwareInformation Malware information entity.
+type WindowsMalwareInformation struct {
+ // Entity is the base model of WindowsMalwareInformation
+ Entity
+ // DisplayName Malware name
+ DisplayName *string `json:"displayName,omitempty"`
+ // AdditionalInformationURL Information URL to learn more about the malware
+ AdditionalInformationURL *string `json:"additionalInformationUrl,omitempty"`
+ // Severity Severity of the malware
+ Severity *WindowsMalwareSeverity `json:"severity,omitempty"`
+ // Category Category of the malware
+ Category *WindowsMalwareCategory `json:"category,omitempty"`
+ // LastDetectionDateTime The last time the malware is detected
+ LastDetectionDateTime *time.Time `json:"lastDetectionDateTime,omitempty"`
+ // WindowsDevicesProtectionState undocumented
+ WindowsDevicesProtectionState []WindowsProtectionState `json:"windowsDevicesProtectionState,omitempty"`
+}
+
+// WindowsMalwareNameCount undocumented
+type WindowsMalwareNameCount struct {
+ // Object is the base model of WindowsMalwareNameCount
+ Object
+ // MalwareIdentifier The unique identifier. This is malware identifier
+ MalwareIdentifier *string `json:"malwareIdentifier,omitempty"`
+ // Name Malware name
+ Name *string `json:"name,omitempty"`
+ // DeviceCount Count of devices with malware dectected for this malware
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // LastUpdateDateTime The Timestamp of the last update for the device count in UTC
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+}
+
+// WindowsMalwareOverview undocumented
+type WindowsMalwareOverview struct {
+ // Object is the base model of WindowsMalwareOverview
+ Object
+ // MalwareDetectedDeviceCount Count of devices with malware detected in the last 30 days
+ MalwareDetectedDeviceCount *int `json:"malwareDetectedDeviceCount,omitempty"`
+ // MalwareStateSummary Count of devices per malware state
+ MalwareStateSummary []WindowsMalwareStateCount `json:"malwareStateSummary,omitempty"`
+ // MalwareExecutionStateSummary Count of devices per malware execution state
+ MalwareExecutionStateSummary []WindowsMalwareExecutionStateCount `json:"malwareExecutionStateSummary,omitempty"`
+ // MalwareCategorySummary Count of devices per malware category
+ MalwareCategorySummary []WindowsMalwareCategoryCount `json:"malwareCategorySummary,omitempty"`
+ // MalwareNameSummary Count of devices per malware
+ MalwareNameSummary []WindowsMalwareNameCount `json:"malwareNameSummary,omitempty"`
+ // OsVersionsSummary Count of devices with malware per windows OS version
+ OsVersionsSummary []OsVersionCount `json:"osVersionsSummary,omitempty"`
+}
+
+// WindowsMalwareStateCount undocumented
+type WindowsMalwareStateCount struct {
+ // Object is the base model of WindowsMalwareStateCount
+ Object
+ // State Malware Threat State
+ State *WindowsMalwareThreatState `json:"state,omitempty"`
+ // DeviceCount Count of devices with malware detections for this malware State
+ DeviceCount *int `json:"deviceCount,omitempty"`
+ // LastUpdateDateTime The Timestamp of the last update for the device count in UTC
+ LastUpdateDateTime *time.Time `json:"lastUpdateDateTime,omitempty"`
+}
+
+// WindowsManagedDevice Windows devices that are managed or pre-enrolled through Intune
+type WindowsManagedDevice struct {
+ // ManagedDevice is the base model of WindowsManagedDevice
+ ManagedDevice
+}
+
+// WindowsManagementApp Windows management app entity.
+type WindowsManagementApp struct {
+ // Entity is the base model of WindowsManagementApp
+ Entity
+ // AvailableVersion Windows management app available version.
+ AvailableVersion *string `json:"availableVersion,omitempty"`
+ // HealthStates undocumented
+ HealthStates []WindowsManagementAppHealthState `json:"healthStates,omitempty"`
+}
+
+// WindowsManagementAppHealthState Windows management app health state entity.
+type WindowsManagementAppHealthState struct {
+ // Entity is the base model of WindowsManagementAppHealthState
+ Entity
+ // HealthState Windows management app health state.
+ HealthState *HealthState `json:"healthState,omitempty"`
+ // InstalledVersion Windows management app installed version.
+ InstalledVersion *string `json:"installedVersion,omitempty"`
+ // LastCheckInDateTime Windows management app last check-in time.
+ LastCheckInDateTime *time.Time `json:"lastCheckInDateTime,omitempty"`
+ // DeviceName Name of the device on which Windows management app is installed.
+ DeviceName *string `json:"deviceName,omitempty"`
+ // DeviceOSVersion Windows 10 OS version of the device on which Windows management app is installed.
+ DeviceOSVersion *string `json:"deviceOSVersion,omitempty"`
+}
+
+// WindowsManagementAppHealthSummary Contains properties for the health summary of the Windows management app.
+type WindowsManagementAppHealthSummary struct {
+ // Entity is the base model of WindowsManagementAppHealthSummary
+ Entity
+ // HealthyDeviceCount Healthy device count.
+ HealthyDeviceCount *int `json:"healthyDeviceCount,omitempty"`
+ // UnhealthyDeviceCount Unhealthy device count.
+ UnhealthyDeviceCount *int `json:"unhealthyDeviceCount,omitempty"`
+ // UnknownDeviceCount Unknown device count.
+ UnknownDeviceCount *int `json:"unknownDeviceCount,omitempty"`
+}
+
+// WindowsMicrosoftEdgeApp Contains properties and inherited properties for the Microsoft Edge app on Windows.
+type WindowsMicrosoftEdgeApp struct {
+ // MobileApp is the base model of WindowsMicrosoftEdgeApp
+ MobileApp
+ // Channel The channel to install on target devices.
+ Channel *MicrosoftEdgeChannel `json:"channel,omitempty"`
+}
+
+// WindowsMinimumOperatingSystem undocumented
+type WindowsMinimumOperatingSystem struct {
+ // Object is the base model of WindowsMinimumOperatingSystem
+ Object
+ // V8_0 Windows version 8.0 or later.
+ V8_0 *bool `json:"v8_0,omitempty"`
+ // V8_1 Windows version 8.1 or later.
+ V8_1 *bool `json:"v8_1,omitempty"`
+ // V10_0 Windows version 10.0 or later.
+ V10_0 *bool `json:"v10_0,omitempty"`
+ // V10_1607 Windows 10 1607 or later.
+ V10_1607 *bool `json:"v10_1607,omitempty"`
+ // V10_1703 Windows 10 1703 or later.
+ V10_1703 *bool `json:"v10_1703,omitempty"`
+ // V10_1709 Windows 10 1709 or later.
+ V10_1709 *bool `json:"v10_1709,omitempty"`
+ // V10_1803 Windows 10 1803 or later.
+ V10_1803 *bool `json:"v10_1803,omitempty"`
+ // V10_1809 Windows 10 1809 or later.
+ V10_1809 *bool `json:"v10_1809,omitempty"`
+ // V10_1903 Windows 10 1903 or later.
+ V10_1903 *bool `json:"v10_1903,omitempty"`
+}
+
+// WindowsMobileMSI Contains properties and inherited properties for Windows Mobile MSI Line Of Business apps.
+type WindowsMobileMSI struct {
+ // MobileLobApp is the base model of WindowsMobileMSI
+ MobileLobApp
+ // CommandLine The command line.
+ CommandLine *string `json:"commandLine,omitempty"`
+ // ProductCode The product code.
+ ProductCode *string `json:"productCode,omitempty"`
+ // ProductVersion The product version of Windows Mobile MSI Line of Business (LoB) app.
+ ProductVersion *string `json:"productVersion,omitempty"`
+ // IgnoreVersionDetection A boolean to control whether the app's version will be used to detect the app after it is installed on a device. Set this to true for Windows Mobile MSI Line of Business (LoB) apps that use a self update feature.
+ IgnoreVersionDetection *bool `json:"ignoreVersionDetection,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+ // UseDeviceContext Indicates whether to install a dual-mode MSI in the device context. If true, app will be installed for all users. If false, app will be installed per-user. If null, service will use the MSI package's default install context. In case of dual-mode MSI, this default will be per-user. Cannot be set for non-dual-mode apps. Cannot be changed after initial creation of the application.
+ UseDeviceContext *bool `json:"useDeviceContext,omitempty"`
+}
+
+// WindowsNetworkIsolationPolicy undocumented
+type WindowsNetworkIsolationPolicy struct {
+ // Object is the base model of WindowsNetworkIsolationPolicy
+ Object
+ // EnterpriseNetworkDomainNames This is the list of domains that comprise the boundaries of the enterprise. Data from one of these domains that is sent to a device will be considered enterprise data and protected. These locations will be considered a safe destination for enterprise data to be shared to.
+ EnterpriseNetworkDomainNames []string `json:"enterpriseNetworkDomainNames,omitempty"`
+ // EnterpriseCloudResources Contains a list of enterprise resource domains hosted in the cloud that need to be protected. Connections to these resources are considered enterprise data. If a proxy is paired with a cloud resource, traffic to the cloud resource will be routed through the enterprise network via the denoted proxy server (on Port 80). A proxy server used for this purpose must also be configured using the EnterpriseInternalProxyServers policy. This collection can contain a maximum of 500 elements.
+ EnterpriseCloudResources []ProxiedDomain `json:"enterpriseCloudResources,omitempty"`
+ // EnterpriseIPRanges Sets the enterprise IP ranges that define the computers in the enterprise network. Data that comes from those computers will be considered part of the enterprise and protected. These locations will be considered a safe destination for enterprise data to be shared to. This collection can contain a maximum of 500 elements.
+ EnterpriseIPRanges []IPRange `json:"enterpriseIPRanges,omitempty"`
+ // EnterpriseInternalProxyServers This is the comma-separated list of internal proxy servers. For example, "157.54.14.28, 157.54.11.118, 10.202.14.167, 157.53.14.163, 157.69.210.59". These proxies have been configured by the admin to connect to specific resources on the Internet. They are considered to be enterprise network locations. The proxies are only leveraged in configuring the EnterpriseCloudResources policy to force traffic to the matched cloud resources through these proxies.
+ EnterpriseInternalProxyServers []string `json:"enterpriseInternalProxyServers,omitempty"`
+ // EnterpriseIPRangesAreAuthoritative Boolean value that tells the client to accept the configured list and not to use heuristics to attempt to find other subnets. Default is false.
+ EnterpriseIPRangesAreAuthoritative *bool `json:"enterpriseIPRangesAreAuthoritative,omitempty"`
+ // EnterpriseProxyServers This is a list of proxy servers. Any server not on this list is considered non-enterprise.
+ EnterpriseProxyServers []string `json:"enterpriseProxyServers,omitempty"`
+ // EnterpriseProxyServersAreAuthoritative Boolean value that tells the client to accept the configured list of proxies and not try to detect other work proxies. Default is false
+ EnterpriseProxyServersAreAuthoritative *bool `json:"enterpriseProxyServersAreAuthoritative,omitempty"`
+ // NeutralDomainResources List of domain names that can used for work or personal resource.
+ NeutralDomainResources []string `json:"neutralDomainResources,omitempty"`
+}
+
+// WindowsOfficeClientConfiguration undocumented
+type WindowsOfficeClientConfiguration struct {
+ // OfficeClientConfiguration is the base model of WindowsOfficeClientConfiguration
+ OfficeClientConfiguration
+}
+
+// WindowsOfficeClientSecurityConfiguration undocumented
+type WindowsOfficeClientSecurityConfiguration struct {
+ // OfficeClientConfiguration is the base model of WindowsOfficeClientSecurityConfiguration
+ OfficeClientConfiguration
+}
+
+// WindowsPackageInformation undocumented
+type WindowsPackageInformation struct {
+ // Object is the base model of WindowsPackageInformation
+ Object
+ // ApplicableArchitecture The Windows architecture for which this app can run on.
+ ApplicableArchitecture *WindowsArchitecture `json:"applicableArchitecture,omitempty"`
+ // DisplayName The Display Name.
+ DisplayName *string `json:"displayName,omitempty"`
+ // IdentityName The Identity Name.
+ IdentityName *string `json:"identityName,omitempty"`
+ // IdentityPublisher The Identity Publisher.
+ IdentityPublisher *string `json:"identityPublisher,omitempty"`
+ // IdentityResourceIdentifier The Identity Resource Identifier.
+ IdentityResourceIdentifier *string `json:"identityResourceIdentifier,omitempty"`
+ // IdentityVersion The Identity Version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+}
+
+// WindowsPhone81AppX Contains properties and inherited properties for Windows Phone 8.1 AppX Line Of Business apps.
+type WindowsPhone81AppX struct {
+ // MobileLobApp is the base model of WindowsPhone81AppX
+ MobileLobApp
+ // ApplicableArchitectures The Windows architecture(s) for which this app can run on.
+ ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"`
+ // IdentityName The Identity Name.
+ IdentityName *string `json:"identityName,omitempty"`
+ // IdentityPublisherHash The Identity Publisher Hash.
+ IdentityPublisherHash *string `json:"identityPublisherHash,omitempty"`
+ // IdentityResourceIdentifier The Identity Resource Identifier.
+ IdentityResourceIdentifier *string `json:"identityResourceIdentifier,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // PhoneProductIdentifier The Phone Product Identifier.
+ PhoneProductIdentifier *string `json:"phoneProductIdentifier,omitempty"`
+ // PhonePublisherID The Phone Publisher Id.
+ PhonePublisherID *string `json:"phonePublisherId,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
+
+// WindowsPhone81AppXBundle Contains properties and inherited properties for Windows Phone 8.1 AppX Bundle Line Of Business apps.
+type WindowsPhone81AppXBundle struct {
+ // WindowsPhone81AppX is the base model of WindowsPhone81AppXBundle
+ WindowsPhone81AppX
+ // AppXPackageInformationList The list of AppX Package Information.
+ AppXPackageInformationList []WindowsPackageInformation `json:"appXPackageInformationList,omitempty"`
+}
+
+// WindowsPhone81CertificateProfileBase Base Windows Phone 8.1+ certificate profile.
+type WindowsPhone81CertificateProfileBase struct {
+ // DeviceConfiguration is the base model of WindowsPhone81CertificateProfileBase
+ DeviceConfiguration
+ // RenewalThresholdPercentage Certificate renewal threshold percentage.
+ RenewalThresholdPercentage *int `json:"renewalThresholdPercentage,omitempty"`
+ // KeyStorageProvider Key Storage Provider (KSP).
+ KeyStorageProvider *KeyStorageProviderOption `json:"keyStorageProvider,omitempty"`
+ // SubjectNameFormat Certificate Subject Name Format.
+ SubjectNameFormat *SubjectNameFormat `json:"subjectNameFormat,omitempty"`
+ // SubjectAlternativeNameType Certificate Subject Alternative Name Type.
+ SubjectAlternativeNameType *SubjectAlternativeNameType `json:"subjectAlternativeNameType,omitempty"`
+ // CertificateValidityPeriodValue Value for the Certificate Validtiy Period.
+ CertificateValidityPeriodValue *int `json:"certificateValidityPeriodValue,omitempty"`
+ // CertificateValidityPeriodScale Scale for the Certificate Validity Period.
+ CertificateValidityPeriodScale *CertificateValidityPeriodScale `json:"certificateValidityPeriodScale,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+}
+
+// WindowsPhone81CompliancePolicy This class contains compliance settings for Windows 8.1 Mobile.
+type WindowsPhone81CompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of WindowsPhone81CompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordBlockSimple Whether or not to block syncing the calendar.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordRequired Whether or not to require a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // OsMinimumVersion Minimum Windows Phone version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Windows Phone version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // StorageRequireEncryption Require encryption on windows phone devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+}
+
+// WindowsPhone81CustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windowsPhone81CustomConfiguration resource.
+type WindowsPhone81CustomConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsPhone81CustomConfiguration
+ DeviceConfiguration
+ // OMASettings OMA settings. This collection can contain a maximum of 1000 elements.
+ OMASettings []OMASetting `json:"omaSettings,omitempty"`
+}
+
+// WindowsPhone81GeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windowsPhone81GeneralConfiguration resource.
+type WindowsPhone81GeneralConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsPhone81GeneralConfiguration
+ DeviceConfiguration
+ // ApplyOnlyToWindowsPhone81 Value indicating whether this policy only applies to Windows Phone 8.1. This property is read-only.
+ ApplyOnlyToWindowsPhone81 *bool `json:"applyOnlyToWindowsPhone81,omitempty"`
+ // AppsBlockCopyPaste Indicates whether or not to block copy paste.
+ AppsBlockCopyPaste *bool `json:"appsBlockCopyPaste,omitempty"`
+ // BluetoothBlocked Indicates whether or not to block bluetooth.
+ BluetoothBlocked *bool `json:"bluetoothBlocked,omitempty"`
+ // CameraBlocked Indicates whether or not to block camera.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // CellularBlockWiFiTethering Indicates whether or not to block Wi-Fi tethering. Has no impact if Wi-Fi is blocked.
+ CellularBlockWiFiTethering *bool `json:"cellularBlockWifiTethering,omitempty"`
+ // CompliantAppsList List of apps in the compliance (either allow list or block list, controlled by CompliantAppListType). This collection can contain a maximum of 10000 elements.
+ CompliantAppsList []AppListItem `json:"compliantAppsList,omitempty"`
+ // CompliantAppListType List that is in the AppComplianceList.
+ CompliantAppListType *AppListType `json:"compliantAppListType,omitempty"`
+ // DiagnosticDataBlockSubmission Indicates whether or not to block diagnostic data submission.
+ DiagnosticDataBlockSubmission *bool `json:"diagnosticDataBlockSubmission,omitempty"`
+ // EmailBlockAddingAccounts Indicates whether or not to block custom email accounts.
+ EmailBlockAddingAccounts *bool `json:"emailBlockAddingAccounts,omitempty"`
+ // LocationServicesBlocked Indicates whether or not to block location services.
+ LocationServicesBlocked *bool `json:"locationServicesBlocked,omitempty"`
+ // MicrosoftAccountBlocked Indicates whether or not to block using a Microsoft Account.
+ MicrosoftAccountBlocked *bool `json:"microsoftAccountBlocked,omitempty"`
+ // NfcBlocked Indicates whether or not to block Near-Field Communication.
+ NfcBlocked *bool `json:"nfcBlocked,omitempty"`
+ // PasswordBlockSimple Indicates whether or not to block syncing the calendar.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays Number of days before the password expires.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength Minimum length of passwords.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout Minutes of inactivity before screen timeout.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordMinimumCharacterSetCount Number of character sets a password must contain.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordPreviousPasswordBlockCount Number of previous passwords to block. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset Number of sign in failures allowed before factory reset.
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PasswordRequiredType Password type that is required.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordRequired Indicates whether or not to require a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to block screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // StorageBlockRemovableStorage Indicates whether or not to block removable storage.
+ StorageBlockRemovableStorage *bool `json:"storageBlockRemovableStorage,omitempty"`
+ // StorageRequireEncryption Indicates whether or not to require encryption.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // WebBrowserBlocked Indicates whether or not to block the web browser.
+ WebBrowserBlocked *bool `json:"webBrowserBlocked,omitempty"`
+ // WiFiBlocked Indicates whether or not to block Wi-Fi.
+ WiFiBlocked *bool `json:"wifiBlocked,omitempty"`
+ // WiFiBlockAutomaticConnectHotspots Indicates whether or not to block automatically connecting to Wi-Fi hotspots. Has no impact if Wi-Fi is blocked.
+ WiFiBlockAutomaticConnectHotspots *bool `json:"wifiBlockAutomaticConnectHotspots,omitempty"`
+ // WiFiBlockHotspotReporting Indicates whether or not to block Wi-Fi hotspot reporting. Has no impact if Wi-Fi is blocked.
+ WiFiBlockHotspotReporting *bool `json:"wifiBlockHotspotReporting,omitempty"`
+ // WindowsStoreBlocked Indicates whether or not to block the Windows Store.
+ WindowsStoreBlocked *bool `json:"windowsStoreBlocked,omitempty"`
+}
+
+// WindowsPhone81ImportedPFXCertificateProfile Windows 8.1 Phone and Mobile PFX Import certificate profile
+type WindowsPhone81ImportedPFXCertificateProfile struct {
+ // WindowsCertificateProfileBase is the base model of WindowsPhone81ImportedPFXCertificateProfile
+ WindowsCertificateProfileBase
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// WindowsPhone81SCEPCertificateProfile Windows Phone 8.1+ SCEP certificate profile
+type WindowsPhone81SCEPCertificateProfile struct {
+ // WindowsPhone81CertificateProfileBase is the base model of WindowsPhone81SCEPCertificateProfile
+ WindowsPhone81CertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s).
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage.
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size.
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm.
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *WindowsPhone81TrustedRootCertificate `json:"rootCertificate,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// WindowsPhone81StoreApp Contains properties and inherited properties for Windows Phone 8.1 Store apps.
+type WindowsPhone81StoreApp struct {
+ // MobileApp is the base model of WindowsPhone81StoreApp
+ MobileApp
+ // AppStoreURL The Windows Phone 8.1 app store URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+}
+
+// WindowsPhone81TrustedRootCertificate Windows Phone 8.1+ Trusted Root Certificate configuration profile
+type WindowsPhone81TrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of WindowsPhone81TrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+}
+
+// WindowsPhone81VpnConfiguration By providing the configurations in this profile you can instruct the Windows Phone 8.1 to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type WindowsPhone81VpnConfiguration struct {
+ // Windows81VpnConfiguration is the base model of WindowsPhone81VpnConfiguration
+ Windows81VpnConfiguration
+ // BypassVPNOnCompanyWiFi Bypass VPN on company Wi-Fi.
+ BypassVPNOnCompanyWiFi *bool `json:"bypassVpnOnCompanyWifi,omitempty"`
+ // BypassVPNOnHomeWiFi Bypass VPN on home Wi-Fi.
+ BypassVPNOnHomeWiFi *bool `json:"bypassVpnOnHomeWifi,omitempty"`
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *VPNAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // RememberUserCredentials Remember user credentials.
+ RememberUserCredentials *bool `json:"rememberUserCredentials,omitempty"`
+ // DNSSuffixSearchList DNS suffix search list.
+ DNSSuffixSearchList []string `json:"dnsSuffixSearchList,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *WindowsPhone81CertificateProfileBase `json:"identityCertificate,omitempty"`
+}
+
+// WindowsPhoneEASEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client on Windows Phone to communicate with an Exchange server and get email, contacts, calendar, and tasks. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type WindowsPhoneEASEmailProfileConfiguration struct {
+ // EasEmailProfileConfigurationBase is the base model of WindowsPhoneEASEmailProfileConfiguration
+ EasEmailProfileConfigurationBase
+ // AccountName Account name.
+ AccountName *string `json:"accountName,omitempty"`
+ // ApplyOnlyToWindowsPhone81 Value indicating whether this policy only applies to Windows 8.1. This property is read-only.
+ ApplyOnlyToWindowsPhone81 *bool `json:"applyOnlyToWindowsPhone81,omitempty"`
+ // SyncCalendar Whether or not to sync the calendar.
+ SyncCalendar *bool `json:"syncCalendar,omitempty"`
+ // SyncContacts Whether or not to sync contacts.
+ SyncContacts *bool `json:"syncContacts,omitempty"`
+ // SyncTasks Whether or not to sync tasks.
+ SyncTasks *bool `json:"syncTasks,omitempty"`
+ // DurationOfEmailToSync Duration of email to sync.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // EmailSyncSchedule Email sync schedule.
+ EmailSyncSchedule *EmailSyncSchedule `json:"emailSyncSchedule,omitempty"`
+ // HostName Exchange location that (URL) that the native mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+}
+
+// WindowsPhoneXAP Contains properties and inherited properties for Windows Phone XAP Line Of Business apps.
+type WindowsPhoneXAP struct {
+ // MobileLobApp is the base model of WindowsPhoneXAP
+ MobileLobApp
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // ProductIdentifier The Product Identifier.
+ ProductIdentifier *string `json:"productIdentifier,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+}
+
+// WindowsPrivacyDataAccessControlItem Specify access control level per privacy data category
+type WindowsPrivacyDataAccessControlItem struct {
+ // Entity is the base model of WindowsPrivacyDataAccessControlItem
+ Entity
+ // AccessLevel This indicates an access level for the privacy data category to which the specified application will be given to.
+ AccessLevel *WindowsPrivacyDataAccessLevel `json:"accessLevel,omitempty"`
+ // DataCategory This indicates a privacy data category to which the specific access control will apply.
+ DataCategory *WindowsPrivacyDataCategory `json:"dataCategory,omitempty"`
+ // AppPackageFamilyName The Package Family Name of a Windows app. When set, the access level applies to the specified application.
+ AppPackageFamilyName *string `json:"appPackageFamilyName,omitempty"`
+ // AppDisplayName The Package Family Name of a Windows app. When set, the access level applies to the specified application.
+ AppDisplayName *string `json:"appDisplayName,omitempty"`
+}
+
+// WindowsProtectionState Device protection status entity.
+type WindowsProtectionState struct {
+ // Entity is the base model of WindowsProtectionState
+ Entity
+ // MalwareProtectionEnabled Anti malware is enabled or not
+ MalwareProtectionEnabled *bool `json:"malwareProtectionEnabled,omitempty"`
+ // DeviceState Computer's state (like clean or pending full scan or pending reboot etc)
+ DeviceState *WindowsDeviceHealthState `json:"deviceState,omitempty"`
+ // RealTimeProtectionEnabled Real time protection is enabled or not?
+ RealTimeProtectionEnabled *bool `json:"realTimeProtectionEnabled,omitempty"`
+ // NetworkInspectionSystemEnabled Network inspection system enabled or not?
+ NetworkInspectionSystemEnabled *bool `json:"networkInspectionSystemEnabled,omitempty"`
+ // QuickScanOverdue Quick scan overdue or not?
+ QuickScanOverdue *bool `json:"quickScanOverdue,omitempty"`
+ // FullScanOverdue Full scan overdue or not?
+ FullScanOverdue *bool `json:"fullScanOverdue,omitempty"`
+ // SignatureUpdateOverdue Signature out of date or not?
+ SignatureUpdateOverdue *bool `json:"signatureUpdateOverdue,omitempty"`
+ // RebootRequired Reboot required or not?
+ RebootRequired *bool `json:"rebootRequired,omitempty"`
+ // FullScanRequired Full scan required or not?
+ FullScanRequired *bool `json:"fullScanRequired,omitempty"`
+ // EngineVersion Current endpoint protection engine's version
+ EngineVersion *string `json:"engineVersion,omitempty"`
+ // SignatureVersion Current malware definitions version
+ SignatureVersion *string `json:"signatureVersion,omitempty"`
+ // AntiMalwareVersion Current anti malware version
+ AntiMalwareVersion *string `json:"antiMalwareVersion,omitempty"`
+ // LastQuickScanDateTime Last quick scan datetime
+ LastQuickScanDateTime *time.Time `json:"lastQuickScanDateTime,omitempty"`
+ // LastFullScanDateTime Last quick scan datetime
+ LastFullScanDateTime *time.Time `json:"lastFullScanDateTime,omitempty"`
+ // LastQuickScanSignatureVersion Last quick scan signature version
+ LastQuickScanSignatureVersion *string `json:"lastQuickScanSignatureVersion,omitempty"`
+ // LastFullScanSignatureVersion Last full scan signature version
+ LastFullScanSignatureVersion *string `json:"lastFullScanSignatureVersion,omitempty"`
+ // LastReportedDateTime Last device health status reported time
+ LastReportedDateTime *time.Time `json:"lastReportedDateTime,omitempty"`
+ // DetectedMalwareState undocumented
+ DetectedMalwareState []WindowsDeviceMalwareState `json:"detectedMalwareState,omitempty"`
+}
+
+// WindowsStoreApp Contains properties and inherited properties for Windows Store apps.
+type WindowsStoreApp struct {
+ // MobileApp is the base model of WindowsStoreApp
+ MobileApp
+ // AppStoreURL The Windows app store URL.
+ AppStoreURL *string `json:"appStoreUrl,omitempty"`
+}
+
+// WindowsUniversalAppX Contains properties and inherited properties for Windows Universal AppX Line Of Business apps.
+type WindowsUniversalAppX struct {
+ // MobileLobApp is the base model of WindowsUniversalAppX
+ MobileLobApp
+ // ApplicableArchitectures The Windows architecture(s) for which this app can run on.
+ ApplicableArchitectures *WindowsArchitecture `json:"applicableArchitectures,omitempty"`
+ // ApplicableDeviceTypes The Windows device type(s) for which this app can run on.
+ ApplicableDeviceTypes *WindowsDeviceType `json:"applicableDeviceTypes,omitempty"`
+ // IdentityName The Identity Name.
+ IdentityName *string `json:"identityName,omitempty"`
+ // IdentityPublisherHash The Identity Publisher Hash.
+ IdentityPublisherHash *string `json:"identityPublisherHash,omitempty"`
+ // IdentityResourceIdentifier The Identity Resource Identifier.
+ IdentityResourceIdentifier *string `json:"identityResourceIdentifier,omitempty"`
+ // IsBundle Whether or not the app is a bundle.
+ IsBundle *bool `json:"isBundle,omitempty"`
+ // MinimumSupportedOperatingSystem The value for the minimum applicable operating system.
+ MinimumSupportedOperatingSystem *WindowsMinimumOperatingSystem `json:"minimumSupportedOperatingSystem,omitempty"`
+ // IdentityVersion The identity version.
+ IdentityVersion *string `json:"identityVersion,omitempty"`
+ // CommittedContainedApps undocumented
+ CommittedContainedApps []MobileContainedApp `json:"committedContainedApps,omitempty"`
+}
+
+// WindowsUniversalAppXAppAssignmentSettings undocumented
+type WindowsUniversalAppXAppAssignmentSettings struct {
+ // MobileAppAssignmentSettings is the base model of WindowsUniversalAppXAppAssignmentSettings
+ MobileAppAssignmentSettings
+ // UseDeviceContext Whether or not to use device execution context for Windows Universal AppX mobile app.
+ UseDeviceContext *bool `json:"useDeviceContext,omitempty"`
+}
+
+// WindowsUniversalAppXContainedApp A class that represents a contained app of a WindowsUniversalAppX app.
+type WindowsUniversalAppXContainedApp struct {
+ // MobileContainedApp is the base model of WindowsUniversalAppXContainedApp
+ MobileContainedApp
+ // AppUserModelID The app user model ID of the contained app of a WindowsUniversalAppX app.
+ AppUserModelID *string `json:"appUserModelId,omitempty"`
+}
+
+// WindowsUpdateActiveHoursInstall undocumented
+type WindowsUpdateActiveHoursInstall struct {
+ // WindowsUpdateInstallScheduleType is the base model of WindowsUpdateActiveHoursInstall
+ WindowsUpdateInstallScheduleType
+ // ActiveHoursStart Active Hours Start
+ ActiveHoursStart *TimeOfDay `json:"activeHoursStart,omitempty"`
+ // ActiveHoursEnd Active Hours End
+ ActiveHoursEnd *TimeOfDay `json:"activeHoursEnd,omitempty"`
+}
+
+// WindowsUpdateForBusinessConfiguration Windows Update for business configuration.
+type WindowsUpdateForBusinessConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsUpdateForBusinessConfiguration
+ DeviceConfiguration
+ // DeliveryOptimizationMode Delivery Optimization Mode
+ DeliveryOptimizationMode *WindowsDeliveryOptimizationMode `json:"deliveryOptimizationMode,omitempty"`
+ // PrereleaseFeatures The pre-release features.
+ PrereleaseFeatures *PrereleaseFeatures `json:"prereleaseFeatures,omitempty"`
+ // AutomaticUpdateMode Automatic update mode.
+ AutomaticUpdateMode *AutomaticUpdateMode `json:"automaticUpdateMode,omitempty"`
+ // MicrosoftUpdateServiceAllowed Allow Microsoft Update Service
+ MicrosoftUpdateServiceAllowed *bool `json:"microsoftUpdateServiceAllowed,omitempty"`
+ // DriversExcluded Exclude Windows update Drivers
+ DriversExcluded *bool `json:"driversExcluded,omitempty"`
+ // InstallationSchedule Installation schedule
+ InstallationSchedule *WindowsUpdateInstallScheduleType `json:"installationSchedule,omitempty"`
+ // QualityUpdatesDeferralPeriodInDays Defer Quality Updates by these many days
+ QualityUpdatesDeferralPeriodInDays *int `json:"qualityUpdatesDeferralPeriodInDays,omitempty"`
+ // FeatureUpdatesDeferralPeriodInDays Defer Feature Updates by these many days
+ FeatureUpdatesDeferralPeriodInDays *int `json:"featureUpdatesDeferralPeriodInDays,omitempty"`
+ // QualityUpdatesPaused Pause Quality Updates
+ QualityUpdatesPaused *bool `json:"qualityUpdatesPaused,omitempty"`
+ // FeatureUpdatesPaused Pause Feature Updates
+ FeatureUpdatesPaused *bool `json:"featureUpdatesPaused,omitempty"`
+ // QualityUpdatesPauseExpiryDateTime Quality Updates Pause Expiry datetime
+ QualityUpdatesPauseExpiryDateTime *time.Time `json:"qualityUpdatesPauseExpiryDateTime,omitempty"`
+ // FeatureUpdatesPauseExpiryDateTime Feature Updates Pause Expiry datetime
+ FeatureUpdatesPauseExpiryDateTime *time.Time `json:"featureUpdatesPauseExpiryDateTime,omitempty"`
+ // BusinessReadyUpdatesOnly Determines which branch devices will receive their updates from
+ BusinessReadyUpdatesOnly *WindowsUpdateType `json:"businessReadyUpdatesOnly,omitempty"`
+ // SkipChecksBeforeRestart Set to skip all check before restart: Battery level = 40%, User presence, Display Needed, Presentation mode, Full screen mode, phone call state, game mode etc.
+ SkipChecksBeforeRestart *bool `json:"skipChecksBeforeRestart,omitempty"`
+ // UpdateWeeks Scheduled the update installation on the weeks of the month
+ UpdateWeeks *WindowsUpdateForBusinessUpdateWeeks `json:"updateWeeks,omitempty"`
+ // QualityUpdatesPauseStartDate Quality Updates Pause start date. This property is read-only.
+ QualityUpdatesPauseStartDate *Date `json:"qualityUpdatesPauseStartDate,omitempty"`
+ // FeatureUpdatesPauseStartDate Feature Updates Pause start date. This property is read-only.
+ FeatureUpdatesPauseStartDate *Date `json:"featureUpdatesPauseStartDate,omitempty"`
+ // FeatureUpdatesRollbackWindowInDays The number of days after a Feature Update for which a rollback is valid
+ FeatureUpdatesRollbackWindowInDays *int `json:"featureUpdatesRollbackWindowInDays,omitempty"`
+ // QualityUpdatesWillBeRolledBack Specifies whether to rollback Quality Updates on the next device check in
+ QualityUpdatesWillBeRolledBack *bool `json:"qualityUpdatesWillBeRolledBack,omitempty"`
+ // FeatureUpdatesWillBeRolledBack Specifies whether to rollback Feature Updates on the next device check in
+ FeatureUpdatesWillBeRolledBack *bool `json:"featureUpdatesWillBeRolledBack,omitempty"`
+ // QualityUpdatesRollbackStartDateTime Quality Updates Rollback Start datetime
+ QualityUpdatesRollbackStartDateTime *time.Time `json:"qualityUpdatesRollbackStartDateTime,omitempty"`
+ // FeatureUpdatesRollbackStartDateTime Feature Updates Rollback Start datetime
+ FeatureUpdatesRollbackStartDateTime *time.Time `json:"featureUpdatesRollbackStartDateTime,omitempty"`
+ // EngagedRestartDeadlineInDays Deadline in days before automatically scheduling and executing a pending restart outside of active hours, with valid range from 2 to 30 days
+ EngagedRestartDeadlineInDays *int `json:"engagedRestartDeadlineInDays,omitempty"`
+ // EngagedRestartSnoozeScheduleInDays Number of days a user can snooze Engaged Restart reminder notifications with valid range from 1 to 3 days
+ EngagedRestartSnoozeScheduleInDays *int `json:"engagedRestartSnoozeScheduleInDays,omitempty"`
+ // EngagedRestartTransitionScheduleInDays Number of days before transitioning from Auto Restarts scheduled outside of active hours to Engaged Restart, which requires the user to schedule, with valid range from 0 to 30 days
+ EngagedRestartTransitionScheduleInDays *int `json:"engagedRestartTransitionScheduleInDays,omitempty"`
+ // DeadlineForFeatureUpdatesInDays Number of days before feature updates are installed automatically with valid range from 2 to 30 days
+ DeadlineForFeatureUpdatesInDays *int `json:"deadlineForFeatureUpdatesInDays,omitempty"`
+ // DeadlineForQualityUpdatesInDays Number of days before quality updates are installed automatically with valid range from 2 to 30 days
+ DeadlineForQualityUpdatesInDays *int `json:"deadlineForQualityUpdatesInDays,omitempty"`
+ // DeadlineGracePeriodInDays Number of days after deadline until restarts occur automatically with valid range from 0 to 7 days
+ DeadlineGracePeriodInDays *int `json:"deadlineGracePeriodInDays,omitempty"`
+ // PostponeRebootUntilAfterDeadline Specifies if the device should wait until deadline for rebooting outside of active hours
+ PostponeRebootUntilAfterDeadline *bool `json:"postponeRebootUntilAfterDeadline,omitempty"`
+ // AutoRestartNotificationDismissal Specify the method by which the auto-restart required notification is dismissed
+ AutoRestartNotificationDismissal *AutoRestartNotificationDismissalMethod `json:"autoRestartNotificationDismissal,omitempty"`
+ // ScheduleRestartWarningInHours Specify the period for auto-restart warning reminder notifications. Supported values: 2, 4, 8, 12 or 24 (hours).
+ ScheduleRestartWarningInHours *int `json:"scheduleRestartWarningInHours,omitempty"`
+ // ScheduleImminentRestartWarningInMinutes Specify the period for auto-restart imminent warning notifications. Supported values: 15, 30 or 60 (minutes).
+ ScheduleImminentRestartWarningInMinutes *int `json:"scheduleImminentRestartWarningInMinutes,omitempty"`
+ // UserPauseAccess Specifies whether to enable end user’s access to pause software updates.
+ UserPauseAccess *Enablement `json:"userPauseAccess,omitempty"`
+ // UserWindowsUpdateScanAccess Specifies whether to disable user’s access to scan Windows Update.
+ UserWindowsUpdateScanAccess *Enablement `json:"userWindowsUpdateScanAccess,omitempty"`
+ // UpdateNotificationLevel Specifies what Windows Update notifications users see.
+ UpdateNotificationLevel *WindowsUpdateNotificationDisplayOption `json:"updateNotificationLevel,omitempty"`
+ // DeviceUpdateStates undocumented
+ DeviceUpdateStates []WindowsUpdateState `json:"deviceUpdateStates,omitempty"`
+}
+
+// WindowsUpdateInstallScheduleType undocumented
+type WindowsUpdateInstallScheduleType struct {
+ // Object is the base model of WindowsUpdateInstallScheduleType
+ Object
+}
+
+// WindowsUpdateScheduledInstall undocumented
+type WindowsUpdateScheduledInstall struct {
+ // WindowsUpdateInstallScheduleType is the base model of WindowsUpdateScheduledInstall
+ WindowsUpdateInstallScheduleType
+ // ScheduledInstallDay Scheduled Install Day in week
+ ScheduledInstallDay *WeeklySchedule `json:"scheduledInstallDay,omitempty"`
+ // ScheduledInstallTime Scheduled Install Time during day
+ ScheduledInstallTime *TimeOfDay `json:"scheduledInstallTime,omitempty"`
+}
+
+// WindowsUpdateState undocumented
+type WindowsUpdateState struct {
+ // Entity is the base model of WindowsUpdateState
+ Entity
+ // DeviceID The id of the device.
+ DeviceID *string `json:"deviceId,omitempty"`
+ // UserID The id of the user.
+ UserID *string `json:"userId,omitempty"`
+ // DeviceDisplayName Device display name.
+ DeviceDisplayName *string `json:"deviceDisplayName,omitempty"`
+ // UserPrincipalName User principal name.
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // Status Windows udpate status.
+ Status *WindowsUpdateStatus `json:"status,omitempty"`
+ // QualityUpdateVersion The Quality Update Version of the device.
+ QualityUpdateVersion *string `json:"qualityUpdateVersion,omitempty"`
+ // FeatureUpdateVersion The current feature update version of the device.
+ FeatureUpdateVersion *string `json:"featureUpdateVersion,omitempty"`
+ // LastScanDateTime The date time that the Windows Update Agent did a successful scan.
+ LastScanDateTime *time.Time `json:"lastScanDateTime,omitempty"`
+ // LastSyncDateTime Last date time that the device sync with with Microsoft Intune.
+ LastSyncDateTime *time.Time `json:"lastSyncDateTime,omitempty"`
+}
+
+// WindowsVPNConfiguration Windows VPN configuration profile.
+type WindowsVPNConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsVPNConfiguration
+ DeviceConfiguration
+ // ConnectionName Connection name displayed to the user.
+ ConnectionName *string `json:"connectionName,omitempty"`
+ // Servers List of VPN Servers on the network. Make sure end users can access these network locations. This collection can contain a maximum of 500 elements.
+ Servers []VPNServer `json:"servers,omitempty"`
+ // CustomXML Custom XML commands that configures the VPN connection. (UTF8 encoded byte array)
+ CustomXML *Binary `json:"customXml,omitempty"`
+}
+
+// WindowsWiFiConfiguration Device Configuration.
+type WindowsWiFiConfiguration struct {
+ // DeviceConfiguration is the base model of WindowsWiFiConfiguration
+ DeviceConfiguration
+ // PreSharedKey This is the pre-shared key for WPA Personal Wi-Fi network.
+ PreSharedKey *string `json:"preSharedKey,omitempty"`
+ // WiFiSecurityType Specify the Wifi Security Type.
+ WiFiSecurityType *WiFiSecurityType `json:"wifiSecurityType,omitempty"`
+ // MeteredConnectionLimit Specify the metered connection limit type for the wifi connection.
+ MeteredConnectionLimit *MeteredConnectionLimitType `json:"meteredConnectionLimit,omitempty"`
+ // Ssid Specify the SSID of the wifi connection.
+ Ssid *string `json:"ssid,omitempty"`
+ // NetworkName Specify the network configuration name.
+ NetworkName *string `json:"networkName,omitempty"`
+ // ConnectAutomatically Specify whether the wifi connection should connect automatically when in range.
+ ConnectAutomatically *bool `json:"connectAutomatically,omitempty"`
+ // ConnectToPreferredNetwork Specify whether the wifi connection should connect to more preferred networks when already connected to this one. Requires ConnectAutomatically to be true.
+ ConnectToPreferredNetwork *bool `json:"connectToPreferredNetwork,omitempty"`
+ // ConnectWhenNetworkNameIsHidden Specify whether the wifi connection should connect automatically even when the SSID is not broadcasting.
+ ConnectWhenNetworkNameIsHidden *bool `json:"connectWhenNetworkNameIsHidden,omitempty"`
+ // ProxySetting Specify the proxy setting for Wi-Fi configuration
+ ProxySetting *WiFiProxySetting `json:"proxySetting,omitempty"`
+ // ProxyManualAddress Specify the IP address for the proxy server.
+ ProxyManualAddress *string `json:"proxyManualAddress,omitempty"`
+ // ProxyManualPort Specify the port for the proxy server.
+ ProxyManualPort *int `json:"proxyManualPort,omitempty"`
+ // ProxyAutomaticConfigurationURL Specify the URL for the proxy server configuration script.
+ ProxyAutomaticConfigurationURL *string `json:"proxyAutomaticConfigurationUrl,omitempty"`
+ // ForceFIPSCompliance Specify whether to force FIPS compliance.
+ ForceFIPSCompliance *bool `json:"forceFIPSCompliance,omitempty"`
+}
+
+// WindowsWiFiEnterpriseEAPConfiguration This entity provides descriptions of the declared methods, properties and relationships exposed by the Wifi CSP.
+type WindowsWiFiEnterpriseEAPConfiguration struct {
+ // WindowsWiFiConfiguration is the base model of WindowsWiFiEnterpriseEAPConfiguration
+ WindowsWiFiConfiguration
+ // NetworkSingleSignOn Specify the network single sign on type.
+ NetworkSingleSignOn *NetworkSingleSignOnType `json:"networkSingleSignOn,omitempty"`
+ // MaximumAuthenticationTimeoutInSeconds Specify maximum authentication timeout (in seconds). Valid range: 1-120
+ MaximumAuthenticationTimeoutInSeconds *int `json:"maximumAuthenticationTimeoutInSeconds,omitempty"`
+ // PromptForAdditionalAuthenticationCredentials Specify whether the wifi connection should prompt for additional authentication credentials.
+ PromptForAdditionalAuthenticationCredentials *bool `json:"promptForAdditionalAuthenticationCredentials,omitempty"`
+ // EnablePairwiseMasterKeyCaching Specify whether the wifi connection should enable pairwise master key caching.
+ EnablePairwiseMasterKeyCaching *bool `json:"enablePairwiseMasterKeyCaching,omitempty"`
+ // MaximumPairwiseMasterKeyCacheTimeInMinutes Specify maximum pairwise master key cache time (in minutes). Valid range: 5-1440
+ MaximumPairwiseMasterKeyCacheTimeInMinutes *int `json:"maximumPairwiseMasterKeyCacheTimeInMinutes,omitempty"`
+ // MaximumNumberOfPairwiseMasterKeysInCache Specify maximum number of pairwise master keys in cache. Valid range: 1-255
+ MaximumNumberOfPairwiseMasterKeysInCache *int `json:"maximumNumberOfPairwiseMasterKeysInCache,omitempty"`
+ // EnablePreAuthentication Specify whether pre-authentication should be enabled.
+ EnablePreAuthentication *bool `json:"enablePreAuthentication,omitempty"`
+ // MaximumPreAuthenticationAttempts Specify maximum pre-authentication attempts. Valid range: 1-16
+ MaximumPreAuthenticationAttempts *int `json:"maximumPreAuthenticationAttempts,omitempty"`
+ // EapType Extensible Authentication Protocol (EAP). Indicates the type of EAP protocol set on the Wi-Fi endpoint (router).
+ EapType *EapType `json:"eapType,omitempty"`
+ // TrustedServerCertificateNames Specify trusted server certificate names.
+ TrustedServerCertificateNames []string `json:"trustedServerCertificateNames,omitempty"`
+ // AuthenticationMethod Specify the authentication method.
+ AuthenticationMethod *WiFiAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // InnerAuthenticationProtocolForEAPTTLS Specify inner authentication protocol for EAP TTLS.
+ InnerAuthenticationProtocolForEAPTTLS *NonEapAuthenticationMethodForEapTtlsType `json:"innerAuthenticationProtocolForEAPTTLS,omitempty"`
+ // OuterIdentityPrivacyTemporaryValue Specify the string to replace usernames for privacy when using EAP TTLS or PEAP.
+ OuterIdentityPrivacyTemporaryValue *string `json:"outerIdentityPrivacyTemporaryValue,omitempty"`
+ // RootCertificatesForServerValidation undocumented
+ RootCertificatesForServerValidation []Windows81TrustedRootCertificate `json:"rootCertificatesForServerValidation,omitempty"`
+ // IdentityCertificateForClientAuthentication undocumented
+ IdentityCertificateForClientAuthentication *WindowsCertificateProfileBase `json:"identityCertificateForClientAuthentication,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows10.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows10.go
new file mode 100644
index 00000000..3eabd951
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows10.go
@@ -0,0 +1,1347 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "time"
+
+// Windows10AppsForceUpdateSchedule undocumented
+type Windows10AppsForceUpdateSchedule struct {
+ // Object is the base model of Windows10AppsForceUpdateSchedule
+ Object
+ // StartDateTime The start time for the force restart.
+ StartDateTime *time.Time `json:"startDateTime,omitempty"`
+ // Recurrence Recurrence schedule.
+ Recurrence *Windows10AppsUpdateRecurrence `json:"recurrence,omitempty"`
+ // RunImmediatelyIfAfterStartDateTime If true, runs the task immediately if StartDateTime is in the past, else, runs at the next recurrence.
+ RunImmediatelyIfAfterStartDateTime *bool `json:"runImmediatelyIfAfterStartDateTime,omitempty"`
+}
+
+// Windows10AssociatedApps undocumented
+type Windows10AssociatedApps struct {
+ // Object is the base model of Windows10AssociatedApps
+ Object
+ // AppType Application type.
+ AppType *Windows10AppType `json:"appType,omitempty"`
+ // Identifier Identifier.
+ Identifier *string `json:"identifier,omitempty"`
+}
+
+// Windows10CertificateProfileBase Base class for Windows 10 certificate profile.
+type Windows10CertificateProfileBase struct {
+ // WindowsCertificateProfileBase is the base model of Windows10CertificateProfileBase
+ WindowsCertificateProfileBase
+}
+
+// Windows10CompliancePolicy This class contains compliance settings for Windows 10.
+type Windows10CompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of Windows10CompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock Windows device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordBlockSimple Indicates whether or not to block simple password.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordRequiredToUnlockFromIdle Require a password to unlock an idle device.
+ PasswordRequiredToUnlockFromIdle *bool `json:"passwordRequiredToUnlockFromIdle,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordExpirationDays The password expiration in days.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength The minimum password length.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of.
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // RequireHealthyDeviceReport Require devices to be reported as healthy by Windows Device Health Attestation.
+ RequireHealthyDeviceReport *bool `json:"requireHealthyDeviceReport,omitempty"`
+ // OsMinimumVersion Minimum Windows 10 version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Windows 10 version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // MobileOsMinimumVersion Minimum Windows Phone version.
+ MobileOsMinimumVersion *string `json:"mobileOsMinimumVersion,omitempty"`
+ // MobileOsMaximumVersion Maximum Windows Phone version.
+ MobileOsMaximumVersion *string `json:"mobileOsMaximumVersion,omitempty"`
+ // EarlyLaunchAntiMalwareDriverEnabled Require devices to be reported as healthy by Windows Device Health Attestation - early launch antimalware driver is enabled.
+ EarlyLaunchAntiMalwareDriverEnabled *bool `json:"earlyLaunchAntiMalwareDriverEnabled,omitempty"`
+ // BitLockerEnabled Require devices to be reported healthy by Windows Device Health Attestation - bit locker is enabled
+ BitLockerEnabled *bool `json:"bitLockerEnabled,omitempty"`
+ // SecureBootEnabled Require devices to be reported as healthy by Windows Device Health Attestation - secure boot is enabled.
+ SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"`
+ // CodeIntegrityEnabled Require devices to be reported as healthy by Windows Device Health Attestation.
+ CodeIntegrityEnabled *bool `json:"codeIntegrityEnabled,omitempty"`
+ // StorageRequireEncryption Require encryption on windows devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // ActiveFirewallRequired Require active firewall on Windows devices.
+ ActiveFirewallRequired *bool `json:"activeFirewallRequired,omitempty"`
+ // DefenderEnabled Require Windows Defender Antimalware on Windows devices.
+ DefenderEnabled *bool `json:"defenderEnabled,omitempty"`
+ // DefenderVersion Require Windows Defender Antimalware minimum version on Windows devices.
+ DefenderVersion *string `json:"defenderVersion,omitempty"`
+ // SignatureOutOfDate Require Windows Defender Antimalware Signature to be up to date on Windows devices.
+ SignatureOutOfDate *bool `json:"signatureOutOfDate,omitempty"`
+ // RtpEnabled Require Windows Defender Antimalware Real-Time Protection on Windows devices.
+ RtpEnabled *bool `json:"rtpEnabled,omitempty"`
+ // AntivirusRequired Require any Antivirus solution registered with Windows Decurity Center to be on and monitoring (e.g. Symantec, Windows Defender).
+ AntivirusRequired *bool `json:"antivirusRequired,omitempty"`
+ // AntiSpywareRequired Require any AntiSpyware solution registered with Windows Decurity Center to be on and monitoring (e.g. Symantec, Windows Defender).
+ AntiSpywareRequired *bool `json:"antiSpywareRequired,omitempty"`
+ // ValidOperatingSystemBuildRanges The valid operating system build ranges on Windows devices. This collection can contain a maximum of 10000 elements.
+ ValidOperatingSystemBuildRanges []OperatingSystemVersionRange `json:"validOperatingSystemBuildRanges,omitempty"`
+ // DeviceThreatProtectionEnabled Require that devices have enabled device threat protection.
+ DeviceThreatProtectionEnabled *bool `json:"deviceThreatProtectionEnabled,omitempty"`
+ // DeviceThreatProtectionRequiredSecurityLevel Require Device Threat Protection minimum risk level to report noncompliance.
+ DeviceThreatProtectionRequiredSecurityLevel *DeviceThreatProtectionLevel `json:"deviceThreatProtectionRequiredSecurityLevel,omitempty"`
+ // ConfigurationManagerComplianceRequired Require to consider SCCM Compliance state into consideration for Intune Compliance State.
+ ConfigurationManagerComplianceRequired *bool `json:"configurationManagerComplianceRequired,omitempty"`
+ // TpmRequired Require Trusted Platform Module(TPM) to be present.
+ TpmRequired *bool `json:"tpmRequired,omitempty"`
+}
+
+// Windows10CustomConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10CustomConfiguration resource.
+type Windows10CustomConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10CustomConfiguration
+ DeviceConfiguration
+ // OMASettings OMA settings. This collection can contain a maximum of 1000 elements.
+ OMASettings []OMASetting `json:"omaSettings,omitempty"`
+}
+
+// Windows10DeviceFirmwareConfigurationInterface Graph properties for Device Firmware Configuration Interface
+type Windows10DeviceFirmwareConfigurationInterface struct {
+ // DeviceConfiguration is the base model of Windows10DeviceFirmwareConfigurationInterface
+ DeviceConfiguration
+ // ChangeUefiSettingsPermission Defines the permission level granted to users to change UEFI settings.
+ ChangeUefiSettingsPermission *ChangeUefiSettingsPermission `json:"changeUefiSettingsPermission,omitempty"`
+ // VirtualizationOfCPUAndIO Defines whether CPU and IO virtualization is enabled.
+ VirtualizationOfCPUAndIO *Enablement `json:"virtualizationOfCpuAndIO,omitempty"`
+ // Cameras Defines whether built-in cameras are enabled.
+ Cameras *Enablement `json:"cameras,omitempty"`
+ // MicrophonesAndSpeakers Defines whether built-in microphones or speakers are enabled.
+ MicrophonesAndSpeakers *Enablement `json:"microphonesAndSpeakers,omitempty"`
+ // Radios Defines whether built-in radios e.g. WIFI, NFC, Bluetooth, are enabled.
+ Radios *Enablement `json:"radios,omitempty"`
+ // BootFromExternalMedia Defines whether a user is allowed to boot from external media.
+ BootFromExternalMedia *Enablement `json:"bootFromExternalMedia,omitempty"`
+ // BootFromBuiltInNetworkAdapters Defines whether a user is allowed to boot from built-in network adapters.
+ BootFromBuiltInNetworkAdapters *Enablement `json:"bootFromBuiltInNetworkAdapters,omitempty"`
+}
+
+// Windows10EasEmailProfileConfiguration By providing configurations in this profile you can instruct the native email client (Outlook) on Windows 10 devices to communicate with an Exchange server and get email, contacts, calendar, and tasks. Furthermore, you can also specify how much email to sync and how often the device should sync.
+type Windows10EasEmailProfileConfiguration struct {
+ // EasEmailProfileConfigurationBase is the base model of Windows10EasEmailProfileConfiguration
+ EasEmailProfileConfigurationBase
+ // AccountName Account name.
+ AccountName *string `json:"accountName,omitempty"`
+ // SyncCalendar Whether or not to sync the calendar.
+ SyncCalendar *bool `json:"syncCalendar,omitempty"`
+ // SyncContacts Whether or not to sync contacts.
+ SyncContacts *bool `json:"syncContacts,omitempty"`
+ // SyncTasks Whether or not to sync tasks.
+ SyncTasks *bool `json:"syncTasks,omitempty"`
+ // DurationOfEmailToSync Duration of email to sync.
+ DurationOfEmailToSync *EmailSyncDuration `json:"durationOfEmailToSync,omitempty"`
+ // EmailAddressSource Email attribute that is picked from AAD and injected into this profile before installing on the device.
+ EmailAddressSource *UserEmailSource `json:"emailAddressSource,omitempty"`
+ // EmailSyncSchedule Email sync schedule.
+ EmailSyncSchedule *EmailSyncSchedule `json:"emailSyncSchedule,omitempty"`
+ // HostName Exchange location that (URL) that the native mail app connects to.
+ HostName *string `json:"hostName,omitempty"`
+ // RequireSsl Indicates whether or not to use SSL.
+ RequireSsl *bool `json:"requireSsl,omitempty"`
+}
+
+// Windows10EndpointProtectionConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the Windows10EndpointProtectionConfiguration resource.
+type Windows10EndpointProtectionConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10EndpointProtectionConfiguration
+ DeviceConfiguration
+ // DMAGuardDeviceEnumerationPolicy undocumented
+ DMAGuardDeviceEnumerationPolicy *DMAGuardDeviceEnumerationPolicyType `json:"dmaGuardDeviceEnumerationPolicy,omitempty"`
+ // FirewallRules Configures the firewall rule settings. This collection can contain a maximum of 150 elements.
+ FirewallRules []WindowsFirewallRule `json:"firewallRules,omitempty"`
+ // UserRightsAccessCredentialManagerAsTrustedCaller This user right is used by Credential Manager during Backup/Restore. Users' saved credentials might be compromised if this privilege is given to other entities. Only states NotConfigured and Allowed are supported
+ UserRightsAccessCredentialManagerAsTrustedCaller *DeviceManagementUserRightsSetting `json:"userRightsAccessCredentialManagerAsTrustedCaller,omitempty"`
+ // UserRightsAllowAccessFromNetwork This user right determines which users and groups are allowed to connect to the computer over the network. State Allowed is supported.
+ UserRightsAllowAccessFromNetwork *DeviceManagementUserRightsSetting `json:"userRightsAllowAccessFromNetwork,omitempty"`
+ // UserRightsBlockAccessFromNetwork This user right determines which users and groups are block from connecting to the computer over the network. State Block is supported.
+ UserRightsBlockAccessFromNetwork *DeviceManagementUserRightsSetting `json:"userRightsBlockAccessFromNetwork,omitempty"`
+ // UserRightsActAsPartOfTheOperatingSystem This user right allows a process to impersonate any user without authentication. The process can therefore gain access to the same local resources as that user. Only states NotConfigured and Allowed are supported
+ UserRightsActAsPartOfTheOperatingSystem *DeviceManagementUserRightsSetting `json:"userRightsActAsPartOfTheOperatingSystem,omitempty"`
+ // UserRightsLocalLogOn This user right determines which users can log on to the computer. States NotConfigured, Allowed are supported
+ UserRightsLocalLogOn *DeviceManagementUserRightsSetting `json:"userRightsLocalLogOn,omitempty"`
+ // UserRightsDenyLocalLogOn This user right determines which users cannot log on to the computer. States NotConfigured, Blocked are supported
+ UserRightsDenyLocalLogOn *DeviceManagementUserRightsSetting `json:"userRightsDenyLocalLogOn,omitempty"`
+ // UserRightsBackupData This user right determines which users can bypass file, directory, registry, and other persistent objects permissions when backing up files and directories. Only states NotConfigured and Allowed are supported
+ UserRightsBackupData *DeviceManagementUserRightsSetting `json:"userRightsBackupData,omitempty"`
+ // UserRightsChangeSystemTime This user right determines which users and groups can change the time and date on the internal clock of the computer. Only states NotConfigured and Allowed are supported
+ UserRightsChangeSystemTime *DeviceManagementUserRightsSetting `json:"userRightsChangeSystemTime,omitempty"`
+ // UserRightsCreateGlobalObjects This security setting determines whether users can create global objects that are available to all sessions. Users who can create global objects could affect processes that run under other users' sessions, which could lead to application failure or data corruption. Only states NotConfigured and Allowed are supported
+ UserRightsCreateGlobalObjects *DeviceManagementUserRightsSetting `json:"userRightsCreateGlobalObjects,omitempty"`
+ // UserRightsCreatePageFile This user right determines which users and groups can call an internal API to create and change the size of a page file. Only states NotConfigured and Allowed are supported
+ UserRightsCreatePageFile *DeviceManagementUserRightsSetting `json:"userRightsCreatePageFile,omitempty"`
+ // UserRightsCreatePermanentSharedObjects This user right determines which accounts can be used by processes to create a directory object using the object manager. Only states NotConfigured and Allowed are supported
+ UserRightsCreatePermanentSharedObjects *DeviceManagementUserRightsSetting `json:"userRightsCreatePermanentSharedObjects,omitempty"`
+ // UserRightsCreateSymbolicLinks This user right determines if the user can create a symbolic link from the computer to which they are logged on. Only states NotConfigured and Allowed are supported
+ UserRightsCreateSymbolicLinks *DeviceManagementUserRightsSetting `json:"userRightsCreateSymbolicLinks,omitempty"`
+ // UserRightsCreateToken This user right determines which users/groups can be used by processes to create a token that can then be used to get access to any local resources when the process uses an internal API to create an access token. Only states NotConfigured and Allowed are supported
+ UserRightsCreateToken *DeviceManagementUserRightsSetting `json:"userRightsCreateToken,omitempty"`
+ // UserRightsDebugPrograms This user right determines which users can attach a debugger to any process or to the kernel. Only states NotConfigured and Allowed are supported
+ UserRightsDebugPrograms *DeviceManagementUserRightsSetting `json:"userRightsDebugPrograms,omitempty"`
+ // UserRightsRemoteDesktopServicesLogOn This user right determines which users and groups are prohibited from logging on as a Remote Desktop Services client. Only states NotConfigured and Blocked are supported
+ UserRightsRemoteDesktopServicesLogOn *DeviceManagementUserRightsSetting `json:"userRightsRemoteDesktopServicesLogOn,omitempty"`
+ // UserRightsDelegation This user right determines which users can set the Trusted for Delegation setting on a user or computer object. Only states NotConfigured and Allowed are supported.
+ UserRightsDelegation *DeviceManagementUserRightsSetting `json:"userRightsDelegation,omitempty"`
+ // UserRightsGenerateSecurityAudits This user right determines which accounts can be used by a process to add entries to the security log. The security log is used to trace unauthorized system access. Only states NotConfigured and Allowed are supported.
+ UserRightsGenerateSecurityAudits *DeviceManagementUserRightsSetting `json:"userRightsGenerateSecurityAudits,omitempty"`
+ // UserRightsImpersonateClient Assigning this user right to a user allows programs running on behalf of that user to impersonate a client. Requiring this user right for this kind of impersonation prevents an unauthorized user from convincing a client to connect to a service that they have created and then impersonating that client, which can elevate the unauthorized user's permissions to administrative or system levels. Only states NotConfigured and Allowed are supported.
+ UserRightsImpersonateClient *DeviceManagementUserRightsSetting `json:"userRightsImpersonateClient,omitempty"`
+ // UserRightsIncreaseSchedulingPriority This user right determines which accounts can use a process with Write Property access to another process to increase the execution priority assigned to the other process. Only states NotConfigured and Allowed are supported.
+ UserRightsIncreaseSchedulingPriority *DeviceManagementUserRightsSetting `json:"userRightsIncreaseSchedulingPriority,omitempty"`
+ // UserRightsLoadUnloadDrivers This user right determines which users can dynamically load and unload device drivers or other code in to kernel mode. Only states NotConfigured and Allowed are supported.
+ UserRightsLoadUnloadDrivers *DeviceManagementUserRightsSetting `json:"userRightsLoadUnloadDrivers,omitempty"`
+ // UserRightsLockMemory This user right determines which accounts can use a process to keep data in physical memory, which prevents the system from paging the data to virtual memory on disk. Only states NotConfigured and Allowed are supported.
+ UserRightsLockMemory *DeviceManagementUserRightsSetting `json:"userRightsLockMemory,omitempty"`
+ // UserRightsManageAuditingAndSecurityLogs This user right determines which users can specify object access auditing options for individual resources, such as files, Active Directory objects, and registry keys. Only states NotConfigured and Allowed are supported.
+ UserRightsManageAuditingAndSecurityLogs *DeviceManagementUserRightsSetting `json:"userRightsManageAuditingAndSecurityLogs,omitempty"`
+ // UserRightsManageVolumes This user right determines which users and groups can run maintenance tasks on a volume, such as remote defragmentation. Only states NotConfigured and Allowed are supported.
+ UserRightsManageVolumes *DeviceManagementUserRightsSetting `json:"userRightsManageVolumes,omitempty"`
+ // UserRightsModifyFirmwareEnvironment This user right determines who can modify firmware environment values. Only states NotConfigured and Allowed are supported.
+ UserRightsModifyFirmwareEnvironment *DeviceManagementUserRightsSetting `json:"userRightsModifyFirmwareEnvironment,omitempty"`
+ // UserRightsModifyObjectLabels This user right determines which user accounts can modify the integrity label of objects, such as files, registry keys, or processes owned by other users. Only states NotConfigured and Allowed are supported.
+ UserRightsModifyObjectLabels *DeviceManagementUserRightsSetting `json:"userRightsModifyObjectLabels,omitempty"`
+ // UserRightsProfileSingleProcess This user right determines which users can use performance monitoring tools to monitor the performance of system processes. Only states NotConfigured and Allowed are supported.
+ UserRightsProfileSingleProcess *DeviceManagementUserRightsSetting `json:"userRightsProfileSingleProcess,omitempty"`
+ // UserRightsRemoteShutdown This user right determines which users are allowed to shut down a computer from a remote location on the network. Misuse of this user right can result in a denial of service. Only states NotConfigured and Allowed are supported.
+ UserRightsRemoteShutdown *DeviceManagementUserRightsSetting `json:"userRightsRemoteShutdown,omitempty"`
+ // UserRightsRestoreData This user right determines which users can bypass file, directory, registry, and other persistent objects permissions when restoring backed up files and directories, and determines which users can set any valid security principal as the owner of an object. Only states NotConfigured and Allowed are supported.
+ UserRightsRestoreData *DeviceManagementUserRightsSetting `json:"userRightsRestoreData,omitempty"`
+ // UserRightsTakeOwnership This user right determines which users can take ownership of any securable object in the system, including Active Directory objects, files and folders, printers, registry keys, processes, and threads. Only states NotConfigured and Allowed are supported.
+ UserRightsTakeOwnership *DeviceManagementUserRightsSetting `json:"userRightsTakeOwnership,omitempty"`
+ // XboxServicesEnableXboxGameSaveTask This setting determines whether xbox game save is enabled (1) or disabled (0).
+ XboxServicesEnableXboxGameSaveTask *bool `json:"xboxServicesEnableXboxGameSaveTask,omitempty"`
+ // XboxServicesAccessoryManagementServiceStartupMode This setting determines whether the Accessory management service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual.
+ XboxServicesAccessoryManagementServiceStartupMode *ServiceStartType `json:"xboxServicesAccessoryManagementServiceStartupMode,omitempty"`
+ // XboxServicesLiveAuthManagerServiceStartupMode This setting determines whether Live Auth Manager service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual.
+ XboxServicesLiveAuthManagerServiceStartupMode *ServiceStartType `json:"xboxServicesLiveAuthManagerServiceStartupMode,omitempty"`
+ // XboxServicesLiveGameSaveServiceStartupMode This setting determines whether Live Game save service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual.
+ XboxServicesLiveGameSaveServiceStartupMode *ServiceStartType `json:"xboxServicesLiveGameSaveServiceStartupMode,omitempty"`
+ // XboxServicesLiveNetworkingServiceStartupMode This setting determines whether Networking service's start type is Automatic(2), Manual(3), Disabled(4). Default: Manual.
+ XboxServicesLiveNetworkingServiceStartupMode *ServiceStartType `json:"xboxServicesLiveNetworkingServiceStartupMode,omitempty"`
+ // LocalSecurityOptionsBlockMicrosoftAccounts Prevent users from adding new Microsoft accounts to this computer.
+ LocalSecurityOptionsBlockMicrosoftAccounts *bool `json:"localSecurityOptionsBlockMicrosoftAccounts,omitempty"`
+ // LocalSecurityOptionsBlockRemoteLogonWithBlankPassword Enable Local accounts that are not password protected to log on from locations other than the physical device.Default is enabled
+ LocalSecurityOptionsBlockRemoteLogonWithBlankPassword *bool `json:"localSecurityOptionsBlockRemoteLogonWithBlankPassword,omitempty"`
+ // LocalSecurityOptionsDisableAdministratorAccount Determines whether the Local Administrator account is enabled or disabled.
+ LocalSecurityOptionsDisableAdministratorAccount *bool `json:"localSecurityOptionsDisableAdministratorAccount,omitempty"`
+ // LocalSecurityOptionsAdministratorAccountName Define a different account name to be associated with the security identifier (SID) for the account “Administrator”.
+ LocalSecurityOptionsAdministratorAccountName *string `json:"localSecurityOptionsAdministratorAccountName,omitempty"`
+ // LocalSecurityOptionsDisableGuestAccount Determines if the Guest account is enabled or disabled.
+ LocalSecurityOptionsDisableGuestAccount *bool `json:"localSecurityOptionsDisableGuestAccount,omitempty"`
+ // LocalSecurityOptionsGuestAccountName Define a different account name to be associated with the security identifier (SID) for the account “Guest”.
+ LocalSecurityOptionsGuestAccountName *string `json:"localSecurityOptionsGuestAccountName,omitempty"`
+ // LocalSecurityOptionsAllowUndockWithoutHavingToLogon Prevent a portable computer from being undocked without having to log in.
+ LocalSecurityOptionsAllowUndockWithoutHavingToLogon *bool `json:"localSecurityOptionsAllowUndockWithoutHavingToLogon,omitempty"`
+ // LocalSecurityOptionsBlockUsersInstallingPrinterDrivers Restrict installing printer drivers as part of connecting to a shared printer to admins only.
+ LocalSecurityOptionsBlockUsersInstallingPrinterDrivers *bool `json:"localSecurityOptionsBlockUsersInstallingPrinterDrivers,omitempty"`
+ // LocalSecurityOptionsBlockRemoteOpticalDriveAccess Enabling this settings allows only interactively logged on user to access CD-ROM media.
+ LocalSecurityOptionsBlockRemoteOpticalDriveAccess *bool `json:"localSecurityOptionsBlockRemoteOpticalDriveAccess,omitempty"`
+ // LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUser Define who is allowed to format and eject removable NTFS media.
+ LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUser *LocalSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUserType `json:"localSecurityOptionsFormatAndEjectOfRemovableMediaAllowedUser,omitempty"`
+ // LocalSecurityOptionsMachineInactivityLimit Define maximum minutes of inactivity on the interactive desktop’s login screen until the screen saver runs. Valid values 0 to 9999
+ LocalSecurityOptionsMachineInactivityLimit *int `json:"localSecurityOptionsMachineInactivityLimit,omitempty"`
+ // LocalSecurityOptionsMachineInactivityLimitInMinutes Define maximum minutes of inactivity on the interactive desktop’s login screen until the screen saver runs. Valid values 0 to 9999
+ LocalSecurityOptionsMachineInactivityLimitInMinutes *int `json:"localSecurityOptionsMachineInactivityLimitInMinutes,omitempty"`
+ // LocalSecurityOptionsDoNotRequireCtrlAltDel Require CTRL+ALT+DEL to be pressed before a user can log on.
+ LocalSecurityOptionsDoNotRequireCtrlAltDel *bool `json:"localSecurityOptionsDoNotRequireCtrlAltDel,omitempty"`
+ // LocalSecurityOptionsHideLastSignedInUser Do not display the username of the last person who signed in on this device.
+ LocalSecurityOptionsHideLastSignedInUser *bool `json:"localSecurityOptionsHideLastSignedInUser,omitempty"`
+ // LocalSecurityOptionsHideUsernameAtSignIn Do not display the username of the person signing in to this device after credentials are entered and before the device’s desktop is shown.
+ LocalSecurityOptionsHideUsernameAtSignIn *bool `json:"localSecurityOptionsHideUsernameAtSignIn,omitempty"`
+ // LocalSecurityOptionsLogOnMessageTitle Set message title for users attempting to log in.
+ LocalSecurityOptionsLogOnMessageTitle *string `json:"localSecurityOptionsLogOnMessageTitle,omitempty"`
+ // LocalSecurityOptionsLogOnMessageText Set message text for users attempting to log in.
+ LocalSecurityOptionsLogOnMessageText *string `json:"localSecurityOptionsLogOnMessageText,omitempty"`
+ // LocalSecurityOptionsAllowPKU2UAuthenticationRequests Block PKU2U authentication requests to this device to use online identities.
+ LocalSecurityOptionsAllowPKU2UAuthenticationRequests *bool `json:"localSecurityOptionsAllowPKU2UAuthenticationRequests,omitempty"`
+ // LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManagerHelperBool UI helper boolean for LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManager entity
+ LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManagerHelperBool *bool `json:"localSecurityOptionsAllowRemoteCallsToSecurityAccountsManagerHelperBool,omitempty"`
+ // LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManager Edit the default Security Descriptor Definition Language string to allow or deny users and groups to make remote calls to the SAM.
+ LocalSecurityOptionsAllowRemoteCallsToSecurityAccountsManager *string `json:"localSecurityOptionsAllowRemoteCallsToSecurityAccountsManager,omitempty"`
+ // LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedClients This security setting allows a client to require the negotiation of 128-bit encryption and/or NTLMv2 session security.
+ LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedClients *LocalSecurityOptionsMinimumSessionSecurity `json:"localSecurityOptionsMinimumSessionSecurityForNtlmSspBasedClients,omitempty"`
+ // LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedServers This security setting allows a server to require the negotiation of 128-bit encryption and/or NTLMv2 session security.
+ LocalSecurityOptionsMinimumSessionSecurityForNtlmSspBasedServers *LocalSecurityOptionsMinimumSessionSecurity `json:"localSecurityOptionsMinimumSessionSecurityForNtlmSspBasedServers,omitempty"`
+ // LanManagerAuthenticationLevel This security setting determines which challenge/response authentication protocol is used for network logons.
+ LanManagerAuthenticationLevel *LanManagerAuthenticationLevel `json:"lanManagerAuthenticationLevel,omitempty"`
+ // LanManagerWorkstationDisableInsecureGuestLogons If enabled,the SMB client will allow insecure guest logons. If not configured, the SMB client will reject insecure guest logons.
+ LanManagerWorkstationDisableInsecureGuestLogons *bool `json:"lanManagerWorkstationDisableInsecureGuestLogons,omitempty"`
+ // LocalSecurityOptionsClearVirtualMemoryPageFile This security setting determines whether the virtual memory pagefile is cleared when the system is shut down.
+ LocalSecurityOptionsClearVirtualMemoryPageFile *bool `json:"localSecurityOptionsClearVirtualMemoryPageFile,omitempty"`
+ // LocalSecurityOptionsAllowSystemToBeShutDownWithoutHavingToLogOn This security setting determines whether a computer can be shut down without having to log on to Windows.
+ LocalSecurityOptionsAllowSystemToBeShutDownWithoutHavingToLogOn *bool `json:"localSecurityOptionsAllowSystemToBeShutDownWithoutHavingToLogOn,omitempty"`
+ // LocalSecurityOptionsAllowUIAccessApplicationElevation Allow UIAccess apps to prompt for elevation without using the secure desktop.
+ LocalSecurityOptionsAllowUIAccessApplicationElevation *bool `json:"localSecurityOptionsAllowUIAccessApplicationElevation,omitempty"`
+ // LocalSecurityOptionsVirtualizeFileAndRegistryWriteFailuresToPerUserLocations Virtualize file and registry write failures to per user locations
+ LocalSecurityOptionsVirtualizeFileAndRegistryWriteFailuresToPerUserLocations *bool `json:"localSecurityOptionsVirtualizeFileAndRegistryWriteFailuresToPerUserLocations,omitempty"`
+ // LocalSecurityOptionsOnlyElevateSignedExecutables Enforce PKI certification path validation for a given executable file before it is permitted to run.
+ LocalSecurityOptionsOnlyElevateSignedExecutables *bool `json:"localSecurityOptionsOnlyElevateSignedExecutables,omitempty"`
+ // LocalSecurityOptionsAdministratorElevationPromptBehavior Define the behavior of the elevation prompt for admins in Admin Approval Mode.
+ LocalSecurityOptionsAdministratorElevationPromptBehavior *LocalSecurityOptionsAdministratorElevationPromptBehaviorType `json:"localSecurityOptionsAdministratorElevationPromptBehavior,omitempty"`
+ // LocalSecurityOptionsStandardUserElevationPromptBehavior Define the behavior of the elevation prompt for standard users.
+ LocalSecurityOptionsStandardUserElevationPromptBehavior *LocalSecurityOptionsStandardUserElevationPromptBehaviorType `json:"localSecurityOptionsStandardUserElevationPromptBehavior,omitempty"`
+ // LocalSecurityOptionsSwitchToSecureDesktopWhenPromptingForElevation Enable all elevation requests to go to the interactive user's desktop rather than the secure desktop. Prompt behavior policy settings for admins and standard users are used.
+ LocalSecurityOptionsSwitchToSecureDesktopWhenPromptingForElevation *bool `json:"localSecurityOptionsSwitchToSecureDesktopWhenPromptingForElevation,omitempty"`
+ // LocalSecurityOptionsDetectApplicationInstallationsAndPromptForElevation App installations requiring elevated privileges will prompt for admin credentials.Default is enabled
+ LocalSecurityOptionsDetectApplicationInstallationsAndPromptForElevation *bool `json:"localSecurityOptionsDetectApplicationInstallationsAndPromptForElevation,omitempty"`
+ // LocalSecurityOptionsAllowUIAccessApplicationsForSecureLocations Allow UIAccess apps to prompt for elevation without using the secure desktop.Default is enabled
+ LocalSecurityOptionsAllowUIAccessApplicationsForSecureLocations *bool `json:"localSecurityOptionsAllowUIAccessApplicationsForSecureLocations,omitempty"`
+ // LocalSecurityOptionsUseAdminApprovalMode Defines whether the built-in admin account uses Admin Approval Mode or runs all apps with full admin privileges.Default is enabled
+ LocalSecurityOptionsUseAdminApprovalMode *bool `json:"localSecurityOptionsUseAdminApprovalMode,omitempty"`
+ // LocalSecurityOptionsUseAdminApprovalModeForAdministrators Define whether Admin Approval Mode and all UAC policy settings are enabled, default is enabled
+ LocalSecurityOptionsUseAdminApprovalModeForAdministrators *bool `json:"localSecurityOptionsUseAdminApprovalModeForAdministrators,omitempty"`
+ // LocalSecurityOptionsInformationShownOnLockScreen Configure the user information that is displayed when the session is locked. If not configured, user display name, domain and username are shown
+ LocalSecurityOptionsInformationShownOnLockScreen *LocalSecurityOptionsInformationShownOnLockScreenType `json:"localSecurityOptionsInformationShownOnLockScreen,omitempty"`
+ // LocalSecurityOptionsInformationDisplayedOnLockScreen Configure the user information that is displayed when the session is locked. If not configured, user display name, domain and username are shown
+ LocalSecurityOptionsInformationDisplayedOnLockScreen *LocalSecurityOptionsInformationDisplayedOnLockScreenType `json:"localSecurityOptionsInformationDisplayedOnLockScreen,omitempty"`
+ // LocalSecurityOptionsDisableClientDigitallySignCommunicationsIfServerAgrees This security setting determines whether the SMB client attempts to negotiate SMB packet signing.
+ LocalSecurityOptionsDisableClientDigitallySignCommunicationsIfServerAgrees *bool `json:"localSecurityOptionsDisableClientDigitallySignCommunicationsIfServerAgrees,omitempty"`
+ // LocalSecurityOptionsClientDigitallySignCommunicationsAlways This security setting determines whether packet signing is required by the SMB client component.
+ LocalSecurityOptionsClientDigitallySignCommunicationsAlways *bool `json:"localSecurityOptionsClientDigitallySignCommunicationsAlways,omitempty"`
+ // LocalSecurityOptionsClientSendUnencryptedPasswordToThirdPartySMBServers If this security setting is enabled, the Server Message Block (SMB) redirector is allowed to send plaintext passwords to non-Microsoft SMB servers that do not support password encryption during authentication.
+ LocalSecurityOptionsClientSendUnencryptedPasswordToThirdPartySMBServers *bool `json:"localSecurityOptionsClientSendUnencryptedPasswordToThirdPartySMBServers,omitempty"`
+ // LocalSecurityOptionsDisableServerDigitallySignCommunicationsAlways This security setting determines whether packet signing is required by the SMB server component.
+ LocalSecurityOptionsDisableServerDigitallySignCommunicationsAlways *bool `json:"localSecurityOptionsDisableServerDigitallySignCommunicationsAlways,omitempty"`
+ // LocalSecurityOptionsDisableServerDigitallySignCommunicationsIfClientAgrees This security setting determines whether the SMB server will negotiate SMB packet signing with clients that request it.
+ LocalSecurityOptionsDisableServerDigitallySignCommunicationsIfClientAgrees *bool `json:"localSecurityOptionsDisableServerDigitallySignCommunicationsIfClientAgrees,omitempty"`
+ // LocalSecurityOptionsRestrictAnonymousAccessToNamedPipesAndShares By default, this security setting restricts anonymous access to shares and pipes to the settings for named pipes that can be accessed anonymously and Shares that can be accessed anonymously
+ LocalSecurityOptionsRestrictAnonymousAccessToNamedPipesAndShares *bool `json:"localSecurityOptionsRestrictAnonymousAccessToNamedPipesAndShares,omitempty"`
+ // LocalSecurityOptionsDoNotAllowAnonymousEnumerationOfSAMAccounts This security setting determines what additional permissions will be granted for anonymous connections to the computer.
+ LocalSecurityOptionsDoNotAllowAnonymousEnumerationOfSAMAccounts *bool `json:"localSecurityOptionsDoNotAllowAnonymousEnumerationOfSAMAccounts,omitempty"`
+ // LocalSecurityOptionsAllowAnonymousEnumerationOfSAMAccountsAndShares This security setting determines whether to allows anonymous users to perform certain activities, such as enumerating the names of domain accounts and network shares.
+ LocalSecurityOptionsAllowAnonymousEnumerationOfSAMAccountsAndShares *bool `json:"localSecurityOptionsAllowAnonymousEnumerationOfSAMAccountsAndShares,omitempty"`
+ // LocalSecurityOptionsDoNotStoreLANManagerHashValueOnNextPasswordChange This security setting determines if, at the next password change, the LAN Manager (LM) hash value for the new password is stored. It’s not stored by default.
+ LocalSecurityOptionsDoNotStoreLANManagerHashValueOnNextPasswordChange *bool `json:"localSecurityOptionsDoNotStoreLANManagerHashValueOnNextPasswordChange,omitempty"`
+ // LocalSecurityOptionsSmartCardRemovalBehavior This security setting determines what happens when the smart card for a logged-on user is removed from the smart card reader.
+ LocalSecurityOptionsSmartCardRemovalBehavior *LocalSecurityOptionsSmartCardRemovalBehaviorType `json:"localSecurityOptionsSmartCardRemovalBehavior,omitempty"`
+ // DefenderSecurityCenterDisableAppBrowserUI Used to disable the display of the app and browser protection area.
+ DefenderSecurityCenterDisableAppBrowserUI *bool `json:"defenderSecurityCenterDisableAppBrowserUI,omitempty"`
+ // DefenderSecurityCenterDisableFamilyUI Used to disable the display of the family options area.
+ DefenderSecurityCenterDisableFamilyUI *bool `json:"defenderSecurityCenterDisableFamilyUI,omitempty"`
+ // DefenderSecurityCenterDisableHealthUI Used to disable the display of the device performance and health area.
+ DefenderSecurityCenterDisableHealthUI *bool `json:"defenderSecurityCenterDisableHealthUI,omitempty"`
+ // DefenderSecurityCenterDisableNetworkUI Used to disable the display of the firewall and network protection area.
+ DefenderSecurityCenterDisableNetworkUI *bool `json:"defenderSecurityCenterDisableNetworkUI,omitempty"`
+ // DefenderSecurityCenterDisableVirusUI Used to disable the display of the virus and threat protection area.
+ DefenderSecurityCenterDisableVirusUI *bool `json:"defenderSecurityCenterDisableVirusUI,omitempty"`
+ // DefenderSecurityCenterDisableAccountUI Used to disable the display of the account protection area.
+ DefenderSecurityCenterDisableAccountUI *bool `json:"defenderSecurityCenterDisableAccountUI,omitempty"`
+ // DefenderSecurityCenterDisableClearTpmUI Used to disable the display of the Clear TPM button.
+ DefenderSecurityCenterDisableClearTpmUI *bool `json:"defenderSecurityCenterDisableClearTpmUI,omitempty"`
+ // DefenderSecurityCenterDisableHardwareUI Used to disable the display of the hardware protection area.
+ DefenderSecurityCenterDisableHardwareUI *bool `json:"defenderSecurityCenterDisableHardwareUI,omitempty"`
+ // DefenderSecurityCenterDisableNotificationAreaUI Used to disable the display of the notification area control. The user needs to either sign out and sign in or reboot the computer for this setting to take effect.
+ DefenderSecurityCenterDisableNotificationAreaUI *bool `json:"defenderSecurityCenterDisableNotificationAreaUI,omitempty"`
+ // DefenderSecurityCenterDisableRansomwareUI Used to disable the display of the ransomware protection area.
+ DefenderSecurityCenterDisableRansomwareUI *bool `json:"defenderSecurityCenterDisableRansomwareUI,omitempty"`
+ // DefenderSecurityCenterDisableSecureBootUI Used to disable the display of the secure boot area under Device security.
+ DefenderSecurityCenterDisableSecureBootUI *bool `json:"defenderSecurityCenterDisableSecureBootUI,omitempty"`
+ // DefenderSecurityCenterDisableTroubleshootingUI Used to disable the display of the security process troubleshooting under Device security.
+ DefenderSecurityCenterDisableTroubleshootingUI *bool `json:"defenderSecurityCenterDisableTroubleshootingUI,omitempty"`
+ // DefenderSecurityCenterDisableVulnerableTpmFirmwareUpdateUI Used to disable the display of update TPM Firmware when a vulnerable firmware is detected.
+ DefenderSecurityCenterDisableVulnerableTpmFirmwareUpdateUI *bool `json:"defenderSecurityCenterDisableVulnerableTpmFirmwareUpdateUI,omitempty"`
+ // DefenderSecurityCenterOrganizationDisplayName The company name that is displayed to the users.
+ DefenderSecurityCenterOrganizationDisplayName *string `json:"defenderSecurityCenterOrganizationDisplayName,omitempty"`
+ // DefenderSecurityCenterHelpEmail The email address that is displayed to users.
+ DefenderSecurityCenterHelpEmail *string `json:"defenderSecurityCenterHelpEmail,omitempty"`
+ // DefenderSecurityCenterHelpPhone The phone number or Skype ID that is displayed to users.
+ DefenderSecurityCenterHelpPhone *string `json:"defenderSecurityCenterHelpPhone,omitempty"`
+ // DefenderSecurityCenterHelpURL The help portal URL this is displayed to users.
+ DefenderSecurityCenterHelpURL *string `json:"defenderSecurityCenterHelpURL,omitempty"`
+ // DefenderSecurityCenterNotificationsFromApp Notifications to show from the displayed areas of app
+ DefenderSecurityCenterNotificationsFromApp *DefenderSecurityCenterNotificationsFromAppType `json:"defenderSecurityCenterNotificationsFromApp,omitempty"`
+ // DefenderSecurityCenterITContactDisplay Configure where to display IT contact information to end users.
+ DefenderSecurityCenterITContactDisplay *DefenderSecurityCenterITContactDisplayType `json:"defenderSecurityCenterITContactDisplay,omitempty"`
+ // WindowsDefenderTamperProtection Configure windows defender TamperProtection settings
+ WindowsDefenderTamperProtection *WindowsDefenderTamperProtectionOptions `json:"windowsDefenderTamperProtection,omitempty"`
+ // FirewallBlockStatefulFTP Blocks stateful FTP connections to the device
+ FirewallBlockStatefulFTP *bool `json:"firewallBlockStatefulFTP,omitempty"`
+ // FirewallIdleTimeoutForSecurityAssociationInSeconds Configures the idle timeout for security associations, in seconds, from 300 to 3600 inclusive. This is the period after which security associations will expire and be deleted. Valid values 300 to 3600
+ FirewallIdleTimeoutForSecurityAssociationInSeconds *int `json:"firewallIdleTimeoutForSecurityAssociationInSeconds,omitempty"`
+ // FirewallPreSharedKeyEncodingMethod Select the preshared key encoding to be used
+ FirewallPreSharedKeyEncodingMethod *FirewallPreSharedKeyEncodingMethodType `json:"firewallPreSharedKeyEncodingMethod,omitempty"`
+ // FirewallIPSecExemptionsAllowNeighborDiscovery Configures IPSec exemptions to allow neighbor discovery IPv6 ICMP type-codes
+ FirewallIPSecExemptionsAllowNeighborDiscovery *bool `json:"firewallIPSecExemptionsAllowNeighborDiscovery,omitempty"`
+ // FirewallIPSecExemptionsAllowICMP Configures IPSec exemptions to allow ICMP
+ FirewallIPSecExemptionsAllowICMP *bool `json:"firewallIPSecExemptionsAllowICMP,omitempty"`
+ // FirewallIPSecExemptionsAllowRouterDiscovery Configures IPSec exemptions to allow router discovery IPv6 ICMP type-codes
+ FirewallIPSecExemptionsAllowRouterDiscovery *bool `json:"firewallIPSecExemptionsAllowRouterDiscovery,omitempty"`
+ // FirewallIPSecExemptionsAllowDHCP Configures IPSec exemptions to allow both IPv4 and IPv6 DHCP traffic
+ FirewallIPSecExemptionsAllowDHCP *bool `json:"firewallIPSecExemptionsAllowDHCP,omitempty"`
+ // FirewallCertificateRevocationListCheckMethod Specify how the certificate revocation list is to be enforced
+ FirewallCertificateRevocationListCheckMethod *FirewallCertificateRevocationListCheckMethodType `json:"firewallCertificateRevocationListCheckMethod,omitempty"`
+ // FirewallMergeKeyingModuleSettings If an authentication set is not fully supported by a keying module, direct the module to ignore only unsupported authentication suites rather than the entire set
+ FirewallMergeKeyingModuleSettings *bool `json:"firewallMergeKeyingModuleSettings,omitempty"`
+ // FirewallPacketQueueingMethod Configures how packet queueing should be applied in the tunnel gateway scenario
+ FirewallPacketQueueingMethod *FirewallPacketQueueingMethodType `json:"firewallPacketQueueingMethod,omitempty"`
+ // FirewallProfileDomain Configures the firewall profile settings for domain networks
+ FirewallProfileDomain *WindowsFirewallNetworkProfile `json:"firewallProfileDomain,omitempty"`
+ // FirewallProfilePublic Configures the firewall profile settings for public networks
+ FirewallProfilePublic *WindowsFirewallNetworkProfile `json:"firewallProfilePublic,omitempty"`
+ // FirewallProfilePrivate Configures the firewall profile settings for private networks
+ FirewallProfilePrivate *WindowsFirewallNetworkProfile `json:"firewallProfilePrivate,omitempty"`
+ // DefenderAdobeReaderLaunchChildProcess Value indicating the behavior of Adobe Reader from creating child processes
+ DefenderAdobeReaderLaunchChildProcess *DefenderProtectionType `json:"defenderAdobeReaderLaunchChildProcess,omitempty"`
+ // DefenderAttackSurfaceReductionExcludedPaths List of exe files and folders to be excluded from attack surface reduction rules
+ DefenderAttackSurfaceReductionExcludedPaths []string `json:"defenderAttackSurfaceReductionExcludedPaths,omitempty"`
+ // DefenderOfficeAppsOtherProcessInjectionType Value indicating the behavior of Office applications injecting into other processes
+ DefenderOfficeAppsOtherProcessInjectionType *DefenderAttackSurfaceType `json:"defenderOfficeAppsOtherProcessInjectionType,omitempty"`
+ // DefenderOfficeAppsOtherProcessInjection Value indicating the behavior of  Office applications injecting into other processes
+ DefenderOfficeAppsOtherProcessInjection *DefenderProtectionType `json:"defenderOfficeAppsOtherProcessInjection,omitempty"`
+ // DefenderOfficeCommunicationAppsLaunchChildProcess Value indicating the behavior of Office communication applications, including Microsoft Outlook, from creating child processes
+ DefenderOfficeCommunicationAppsLaunchChildProcess *DefenderProtectionType `json:"defenderOfficeCommunicationAppsLaunchChildProcess,omitempty"`
+ // DefenderOfficeAppsExecutableContentCreationOrLaunchType Value indicating the behavior of Office applications/macros creating or launching executable content
+ DefenderOfficeAppsExecutableContentCreationOrLaunchType *DefenderAttackSurfaceType `json:"defenderOfficeAppsExecutableContentCreationOrLaunchType,omitempty"`
+ // DefenderOfficeAppsExecutableContentCreationOrLaunch Value indicating the behavior of Office applications/macros creating or launching executable content
+ DefenderOfficeAppsExecutableContentCreationOrLaunch *DefenderProtectionType `json:"defenderOfficeAppsExecutableContentCreationOrLaunch,omitempty"`
+ // DefenderOfficeAppsLaunchChildProcessType Value indicating the behavior of Office application launching child processes
+ DefenderOfficeAppsLaunchChildProcessType *DefenderAttackSurfaceType `json:"defenderOfficeAppsLaunchChildProcessType,omitempty"`
+ // DefenderOfficeAppsLaunchChildProcess Value indicating the behavior of Office application launching child processes
+ DefenderOfficeAppsLaunchChildProcess *DefenderProtectionType `json:"defenderOfficeAppsLaunchChildProcess,omitempty"`
+ // DefenderOfficeMacroCodeAllowWin32ImportsType Value indicating the behavior of Win32 imports from Macro code in Office
+ DefenderOfficeMacroCodeAllowWin32ImportsType *DefenderAttackSurfaceType `json:"defenderOfficeMacroCodeAllowWin32ImportsType,omitempty"`
+ // DefenderOfficeMacroCodeAllowWin32Imports Value indicating the behavior of Win32 imports from Macro code in Office
+ DefenderOfficeMacroCodeAllowWin32Imports *DefenderProtectionType `json:"defenderOfficeMacroCodeAllowWin32Imports,omitempty"`
+ // DefenderScriptObfuscatedMacroCodeType Value indicating the behavior of obfuscated js/vbs/ps/macro code
+ DefenderScriptObfuscatedMacroCodeType *DefenderAttackSurfaceType `json:"defenderScriptObfuscatedMacroCodeType,omitempty"`
+ // DefenderScriptObfuscatedMacroCode Value indicating the behavior of obfuscated js/vbs/ps/macro code
+ DefenderScriptObfuscatedMacroCode *DefenderProtectionType `json:"defenderScriptObfuscatedMacroCode,omitempty"`
+ // DefenderScriptDownloadedPayloadExecutionType Value indicating the behavior of js/vbs executing payload downloaded from Internet
+ DefenderScriptDownloadedPayloadExecutionType *DefenderAttackSurfaceType `json:"defenderScriptDownloadedPayloadExecutionType,omitempty"`
+ // DefenderScriptDownloadedPayloadExecution Value indicating the behavior of js/vbs executing payload downloaded from Internet
+ DefenderScriptDownloadedPayloadExecution *DefenderProtectionType `json:"defenderScriptDownloadedPayloadExecution,omitempty"`
+ // DefenderPreventCredentialStealingType Value indicating if credential stealing from the Windows local security authority subsystem is permitted
+ DefenderPreventCredentialStealingType *DefenderProtectionType `json:"defenderPreventCredentialStealingType,omitempty"`
+ // DefenderProcessCreationType Value indicating response to process creations originating from PSExec and WMI commands
+ DefenderProcessCreationType *DefenderAttackSurfaceType `json:"defenderProcessCreationType,omitempty"`
+ // DefenderProcessCreation Value indicating response to process creations originating from PSExec and WMI commands
+ DefenderProcessCreation *DefenderProtectionType `json:"defenderProcessCreation,omitempty"`
+ // DefenderUntrustedUSBProcessType Value indicating response to untrusted and unsigned processes that run from USB
+ DefenderUntrustedUSBProcessType *DefenderAttackSurfaceType `json:"defenderUntrustedUSBProcessType,omitempty"`
+ // DefenderUntrustedUSBProcess Value indicating response to untrusted and unsigned processes that run from USB
+ DefenderUntrustedUSBProcess *DefenderProtectionType `json:"defenderUntrustedUSBProcess,omitempty"`
+ // DefenderUntrustedExecutableType Value indicating response to executables that don't meet a prevalence, age, or trusted list criteria
+ DefenderUntrustedExecutableType *DefenderAttackSurfaceType `json:"defenderUntrustedExecutableType,omitempty"`
+ // DefenderUntrustedExecutable Value indicating response to executables that don't meet a prevalence, age, or trusted list criteria
+ DefenderUntrustedExecutable *DefenderProtectionType `json:"defenderUntrustedExecutable,omitempty"`
+ // DefenderEmailContentExecutionType Value indicating if execution of executable content (exe, dll, ps, js, vbs, etc) should be dropped from email (webmail/mail-client)
+ DefenderEmailContentExecutionType *DefenderAttackSurfaceType `json:"defenderEmailContentExecutionType,omitempty"`
+ // DefenderEmailContentExecution Value indicating if execution of executable content (exe, dll, ps, js, vbs, etc) should be dropped from email (webmail/mail-client)
+ DefenderEmailContentExecution *DefenderProtectionType `json:"defenderEmailContentExecution,omitempty"`
+ // DefenderAdvancedRansomewareProtectionType Value indicating use of advanced protection against ransomeware
+ DefenderAdvancedRansomewareProtectionType *DefenderProtectionType `json:"defenderAdvancedRansomewareProtectionType,omitempty"`
+ // DefenderGuardMyFoldersType Value indicating the behavior of protected folders
+ DefenderGuardMyFoldersType *FolderProtectionType `json:"defenderGuardMyFoldersType,omitempty"`
+ // DefenderGuardedFoldersAllowedAppPaths List of paths to exe that are allowed to access protected folders
+ DefenderGuardedFoldersAllowedAppPaths []string `json:"defenderGuardedFoldersAllowedAppPaths,omitempty"`
+ // DefenderAdditionalGuardedFolders List of folder paths to be added to the list of protected folders
+ DefenderAdditionalGuardedFolders []string `json:"defenderAdditionalGuardedFolders,omitempty"`
+ // DefenderNetworkProtectionType Value indicating the behavior of NetworkProtection
+ DefenderNetworkProtectionType *DefenderProtectionType `json:"defenderNetworkProtectionType,omitempty"`
+ // DefenderExploitProtectionXML Xml content containing information regarding exploit protection details.
+ DefenderExploitProtectionXML *Binary `json:"defenderExploitProtectionXml,omitempty"`
+ // DefenderExploitProtectionXMLFileName Name of the file from which DefenderExploitProtectionXml was obtained.
+ DefenderExploitProtectionXMLFileName *string `json:"defenderExploitProtectionXmlFileName,omitempty"`
+ // DefenderSecurityCenterBlockExploitProtectionOverride Indicates whether or not to block user from overriding Exploit Protection settings.
+ DefenderSecurityCenterBlockExploitProtectionOverride *bool `json:"defenderSecurityCenterBlockExploitProtectionOverride,omitempty"`
+ // AppLockerApplicationControl Enables the Admin to choose what types of app to allow on devices.
+ AppLockerApplicationControl *AppLockerApplicationControlType `json:"appLockerApplicationControl,omitempty"`
+ // DeviceGuardLocalSystemAuthorityCredentialGuardSettings Turn on Credential Guard when Platform Security Level with Secure Boot and Virtualization Based Security are both enabled.
+ DeviceGuardLocalSystemAuthorityCredentialGuardSettings *DeviceGuardLocalSystemAuthorityCredentialGuardType `json:"deviceGuardLocalSystemAuthorityCredentialGuardSettings,omitempty"`
+ // DeviceGuardEnableVirtualizationBasedSecurity Turns On Virtualization Based Security(VBS).
+ DeviceGuardEnableVirtualizationBasedSecurity *bool `json:"deviceGuardEnableVirtualizationBasedSecurity,omitempty"`
+ // DeviceGuardEnableSecureBootWithDMA This property will be deprecated in May 2019 and will be replaced with property DeviceGuardSecureBootWithDMA. Specifies whether Platform Security Level is enabled at next reboot.
+ DeviceGuardEnableSecureBootWithDMA *bool `json:"deviceGuardEnableSecureBootWithDMA,omitempty"`
+ // DeviceGuardSecureBootWithDMA Specifies whether Platform Security Level is enabled at next reboot.
+ DeviceGuardSecureBootWithDMA *SecureBootWithDMAType `json:"deviceGuardSecureBootWithDMA,omitempty"`
+ // DeviceGuardLaunchSystemGuard Allows the IT admin to configure the launch of System Guard.
+ DeviceGuardLaunchSystemGuard *Enablement `json:"deviceGuardLaunchSystemGuard,omitempty"`
+ // SmartScreenEnableInShell Allows IT Admins to configure SmartScreen for Windows.
+ SmartScreenEnableInShell *bool `json:"smartScreenEnableInShell,omitempty"`
+ // SmartScreenBlockOverrideForFiles Allows IT Admins to control whether users can can ignore SmartScreen warnings and run malicious files.
+ SmartScreenBlockOverrideForFiles *bool `json:"smartScreenBlockOverrideForFiles,omitempty"`
+ // ApplicationGuardEnabled Enable Windows Defender Application Guard
+ ApplicationGuardEnabled *bool `json:"applicationGuardEnabled,omitempty"`
+ // ApplicationGuardEnabledOptions Enable Windows Defender Application Guard for newer Windows builds
+ ApplicationGuardEnabledOptions *ApplicationGuardEnabledOptions `json:"applicationGuardEnabledOptions,omitempty"`
+ // ApplicationGuardBlockFileTransfer Block clipboard to transfer image file, text file or neither of them
+ ApplicationGuardBlockFileTransfer *ApplicationGuardBlockFileTransferType `json:"applicationGuardBlockFileTransfer,omitempty"`
+ // ApplicationGuardBlockNonEnterpriseContent Block enterprise sites to load non-enterprise content, such as third party plug-ins
+ ApplicationGuardBlockNonEnterpriseContent *bool `json:"applicationGuardBlockNonEnterpriseContent,omitempty"`
+ // ApplicationGuardAllowPersistence Allow persisting user generated data inside the App Guard Containter (favorites, cookies, web passwords, etc.)
+ ApplicationGuardAllowPersistence *bool `json:"applicationGuardAllowPersistence,omitempty"`
+ // ApplicationGuardForceAuditing Force auditing will persist Windows logs and events to meet security/compliance criteria (sample events are user login-logoff, use of privilege rights, software installation, system changes, etc.)
+ ApplicationGuardForceAuditing *bool `json:"applicationGuardForceAuditing,omitempty"`
+ // ApplicationGuardBlockClipboardSharing Block clipboard to share data from Host to Container, or from Container to Host, or both ways, or neither ways.
+ ApplicationGuardBlockClipboardSharing *ApplicationGuardBlockClipboardSharingType `json:"applicationGuardBlockClipboardSharing,omitempty"`
+ // ApplicationGuardAllowPrintToPDF Allow printing to PDF from Container
+ ApplicationGuardAllowPrintToPDF *bool `json:"applicationGuardAllowPrintToPDF,omitempty"`
+ // ApplicationGuardAllowPrintToXPS Allow printing to XPS from Container
+ ApplicationGuardAllowPrintToXPS *bool `json:"applicationGuardAllowPrintToXPS,omitempty"`
+ // ApplicationGuardAllowPrintToLocalPrinters Allow printing to Local Printers from Container
+ ApplicationGuardAllowPrintToLocalPrinters *bool `json:"applicationGuardAllowPrintToLocalPrinters,omitempty"`
+ // ApplicationGuardAllowPrintToNetworkPrinters Allow printing to Network Printers from Container
+ ApplicationGuardAllowPrintToNetworkPrinters *bool `json:"applicationGuardAllowPrintToNetworkPrinters,omitempty"`
+ // ApplicationGuardAllowVirtualGPU Allow application guard to use virtual GPU
+ ApplicationGuardAllowVirtualGPU *bool `json:"applicationGuardAllowVirtualGPU,omitempty"`
+ // ApplicationGuardAllowFileSaveOnHost Allow users to download files from Edge in the application guard container and save them on the host file system
+ ApplicationGuardAllowFileSaveOnHost *bool `json:"applicationGuardAllowFileSaveOnHost,omitempty"`
+ // BitLockerAllowStandardUserEncryption Allows the admin to allow standard users to enable encrpytion during Azure AD Join.
+ BitLockerAllowStandardUserEncryption *bool `json:"bitLockerAllowStandardUserEncryption,omitempty"`
+ // BitLockerDisableWarningForOtherDiskEncryption Allows the Admin to disable the warning prompt for other disk encryption on the user machines.
+ BitLockerDisableWarningForOtherDiskEncryption *bool `json:"bitLockerDisableWarningForOtherDiskEncryption,omitempty"`
+ // BitLockerEnableStorageCardEncryptionOnMobile Allows the admin to require encryption to be turned on using BitLocker. This policy is valid only for a mobile SKU.
+ BitLockerEnableStorageCardEncryptionOnMobile *bool `json:"bitLockerEnableStorageCardEncryptionOnMobile,omitempty"`
+ // BitLockerEncryptDevice Allows the admin to require encryption to be turned on using BitLocker.
+ BitLockerEncryptDevice *bool `json:"bitLockerEncryptDevice,omitempty"`
+ // BitLockerSystemDrivePolicy BitLocker System Drive Policy.
+ BitLockerSystemDrivePolicy *BitLockerSystemDrivePolicy `json:"bitLockerSystemDrivePolicy,omitempty"`
+ // BitLockerFixedDrivePolicy BitLocker Fixed Drive Policy.
+ BitLockerFixedDrivePolicy *BitLockerFixedDrivePolicy `json:"bitLockerFixedDrivePolicy,omitempty"`
+ // BitLockerRemovableDrivePolicy BitLocker Removable Drive Policy.
+ BitLockerRemovableDrivePolicy *BitLockerRemovableDrivePolicy `json:"bitLockerRemovableDrivePolicy,omitempty"`
+ // BitLockerRecoveryPasswordRotation This setting initiates a client-driven recovery password rotation after an OS drive recovery (either by using bootmgr or WinRE).
+ BitLockerRecoveryPasswordRotation *BitLockerRecoveryPasswordRotationType `json:"bitLockerRecoveryPasswordRotation,omitempty"`
+}
+
+// Windows10EnrollmentCompletionPageConfiguration Windows 10 Enrollment Status Page Configuration
+type Windows10EnrollmentCompletionPageConfiguration struct {
+ // DeviceEnrollmentConfiguration is the base model of Windows10EnrollmentCompletionPageConfiguration
+ DeviceEnrollmentConfiguration
+ // ShowInstallationProgress Show or hide installation progress to user
+ ShowInstallationProgress *bool `json:"showInstallationProgress,omitempty"`
+ // BlockDeviceSetupRetryByUser Allow the user to retry the setup on installation failure
+ BlockDeviceSetupRetryByUser *bool `json:"blockDeviceSetupRetryByUser,omitempty"`
+ // AllowDeviceResetOnInstallFailure Allow or block device reset on installation failure
+ AllowDeviceResetOnInstallFailure *bool `json:"allowDeviceResetOnInstallFailure,omitempty"`
+ // AllowLogCollectionOnInstallFailure Allow or block log collection on installation failure
+ AllowLogCollectionOnInstallFailure *bool `json:"allowLogCollectionOnInstallFailure,omitempty"`
+ // CustomErrorMessage Set custom error message to show upon installation failure
+ CustomErrorMessage *string `json:"customErrorMessage,omitempty"`
+ // InstallProgressTimeoutInMinutes Set installation progress timeout in minutes
+ InstallProgressTimeoutInMinutes *int `json:"installProgressTimeoutInMinutes,omitempty"`
+ // AllowDeviceUseOnInstallFailure Allow the user to continue using the device on installation failure
+ AllowDeviceUseOnInstallFailure *bool `json:"allowDeviceUseOnInstallFailure,omitempty"`
+ // SelectedMobileAppIDs Selected applications to track the installation status
+ SelectedMobileAppIDs []string `json:"selectedMobileAppIds,omitempty"`
+ // TrackInstallProgressForAutopilotOnly Only show installation progress for Autopilot enrollment scenarios
+ TrackInstallProgressForAutopilotOnly *bool `json:"trackInstallProgressForAutopilotOnly,omitempty"`
+ // DisableUserStatusTrackingAfterFirstUser Only show installation progress for first user post enrollment
+ DisableUserStatusTrackingAfterFirstUser *bool `json:"disableUserStatusTrackingAfterFirstUser,omitempty"`
+}
+
+// Windows10EnrollmentCompletionPageConfigurationPolicySetItem A class containing the properties used for Windows10EnrollmentCompletionPageConfiguration PolicySetItem.
+type Windows10EnrollmentCompletionPageConfigurationPolicySetItem struct {
+ // PolicySetItem is the base model of Windows10EnrollmentCompletionPageConfigurationPolicySetItem
+ PolicySetItem
+ // Priority Priority of the Windows10EnrollmentCompletionPageConfigurationPolicySetItem.
+ Priority *int `json:"priority,omitempty"`
+}
+
+// Windows10EnterpriseModernAppManagementConfiguration Windows10 Enterprise Modern App Management Configuration.
+type Windows10EnterpriseModernAppManagementConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10EnterpriseModernAppManagementConfiguration
+ DeviceConfiguration
+ // UninstallBuiltInApps Indicates whether or not to uninstall a fixed list of built-in Windows apps.
+ UninstallBuiltInApps *bool `json:"uninstallBuiltInApps,omitempty"`
+}
+
+// Windows10GeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10GeneralConfiguration resource.
+type Windows10GeneralConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10GeneralConfiguration
+ DeviceConfiguration
+ // TaskManagerBlockEndTask Specify whether non-administrators can use Task Manager to end tasks.
+ TaskManagerBlockEndTask *bool `json:"taskManagerBlockEndTask,omitempty"`
+ // EnergySaverOnBatteryThresholdPercentage This setting allows you to specify battery charge level at which Energy Saver is turned on. While on battery, Energy Saver is automatically turned on at (and below) the specified battery charge level. Valid input range (0-100). Valid values 0 to 100
+ EnergySaverOnBatteryThresholdPercentage *int `json:"energySaverOnBatteryThresholdPercentage,omitempty"`
+ // EnergySaverPluggedInThresholdPercentage This setting allows you to specify battery charge level at which Energy Saver is turned on. While plugged in, Energy Saver is automatically turned on at (and below) the specified battery charge level. Valid input range (0-100). Valid values 0 to 100
+ EnergySaverPluggedInThresholdPercentage *int `json:"energySaverPluggedInThresholdPercentage,omitempty"`
+ // PowerLidCloseActionOnBattery This setting specifies the action that Windows takes when a user closes the lid on a mobile PC while on battery.
+ PowerLidCloseActionOnBattery *PowerActionType `json:"powerLidCloseActionOnBattery,omitempty"`
+ // PowerLidCloseActionPluggedIn This setting specifies the action that Windows takes when a user closes the lid on a mobile PC while plugged in.
+ PowerLidCloseActionPluggedIn *PowerActionType `json:"powerLidCloseActionPluggedIn,omitempty"`
+ // PowerButtonActionOnBattery This setting specifies the action that Windows takes when a user presses the Power button while on battery.
+ PowerButtonActionOnBattery *PowerActionType `json:"powerButtonActionOnBattery,omitempty"`
+ // PowerButtonActionPluggedIn This setting specifies the action that Windows takes when a user presses the Power button while plugged in.
+ PowerButtonActionPluggedIn *PowerActionType `json:"powerButtonActionPluggedIn,omitempty"`
+ // PowerSleepButtonActionOnBattery This setting specifies the action that Windows takes when a user presses the Sleep button while on battery.
+ PowerSleepButtonActionOnBattery *PowerActionType `json:"powerSleepButtonActionOnBattery,omitempty"`
+ // PowerSleepButtonActionPluggedIn This setting specifies the action that Windows takes when a user presses the Sleep button while plugged in.
+ PowerSleepButtonActionPluggedIn *PowerActionType `json:"powerSleepButtonActionPluggedIn,omitempty"`
+ // PowerHybridSleepOnBattery This setting allows you to turn off hybrid sleep while on battery. If you set this setting to disable, a hiberfile is not generated when the system transitions to sleep (Stand By). If you set this setting to enable or do not configure this policy setting, users control this setting.
+ PowerHybridSleepOnBattery *Enablement `json:"powerHybridSleepOnBattery,omitempty"`
+ // PowerHybridSleepPluggedIn This setting allows you to turn off hybrid sleep while plugged in. If you set this setting to disable, a hiberfile is not generated when the system transitions to sleep (Stand By). If you set this setting to enable or do not configure this policy setting, users control this setting.
+ PowerHybridSleepPluggedIn *Enablement `json:"powerHybridSleepPluggedIn,omitempty"`
+ // Windows10AppsForceUpdateSchedule Windows 10 force update schedule for Apps.
+ Windows10AppsForceUpdateSchedule *Windows10AppsForceUpdateSchedule `json:"windows10AppsForceUpdateSchedule,omitempty"`
+ // EnableAutomaticRedeployment Allow users with administrative rights to delete all user data and settings using CTRL + Win + R at the device lock screen so that the device can be automatically re-configured and re-enrolled into management.
+ EnableAutomaticRedeployment *bool `json:"enableAutomaticRedeployment,omitempty"`
+ // MicrosoftAccountSignInAssistantSettings Controls the Microsoft Account Sign-In Assistant (wlidsvc) NT service.
+ MicrosoftAccountSignInAssistantSettings *SignInAssistantOptions `json:"microsoftAccountSignInAssistantSettings,omitempty"`
+ // AuthenticationAllowSecondaryDevice Allows secondary authentication devices to work with Windows.
+ AuthenticationAllowSecondaryDevice *bool `json:"authenticationAllowSecondaryDevice,omitempty"`
+ // AuthenticationWebSignIn Indicates whether or not Web Credential Provider will be enabled.
+ AuthenticationWebSignIn *Enablement `json:"authenticationWebSignIn,omitempty"`
+ // AuthenticationPreferredAzureADTenantDomainName Specifies the preferred domain among available domains in the Azure AD tenant.
+ AuthenticationPreferredAzureADTenantDomainName *string `json:"authenticationPreferredAzureADTenantDomainName,omitempty"`
+ // CryptographyAllowFipsAlgorithmPolicy Specify whether to allow or disallow the Federal Information Processing Standard (FIPS) policy.
+ CryptographyAllowFipsAlgorithmPolicy *bool `json:"cryptographyAllowFipsAlgorithmPolicy,omitempty"`
+ // DisplayAppListWithGdiDPIScalingTurnedOn List of legacy applications that have GDI DPI Scaling turned on.
+ DisplayAppListWithGdiDPIScalingTurnedOn []string `json:"displayAppListWithGdiDPIScalingTurnedOn,omitempty"`
+ // DisplayAppListWithGdiDPIScalingTurnedOff List of legacy applications that have GDI DPI Scaling turned off.
+ DisplayAppListWithGdiDPIScalingTurnedOff []string `json:"displayAppListWithGdiDPIScalingTurnedOff,omitempty"`
+ // EnterpriseCloudPrintDiscoveryEndPoint Endpoint for discovering cloud printers.
+ EnterpriseCloudPrintDiscoveryEndPoint *string `json:"enterpriseCloudPrintDiscoveryEndPoint,omitempty"`
+ // EnterpriseCloudPrintOAuthAuthority Authentication endpoint for acquiring OAuth tokens.
+ EnterpriseCloudPrintOAuthAuthority *string `json:"enterpriseCloudPrintOAuthAuthority,omitempty"`
+ // EnterpriseCloudPrintOAuthClientIdentifier GUID of a client application authorized to retrieve OAuth tokens from the OAuth Authority.
+ EnterpriseCloudPrintOAuthClientIdentifier *string `json:"enterpriseCloudPrintOAuthClientIdentifier,omitempty"`
+ // EnterpriseCloudPrintResourceIdentifier OAuth resource URI for print service as configured in the Azure portal.
+ EnterpriseCloudPrintResourceIdentifier *string `json:"enterpriseCloudPrintResourceIdentifier,omitempty"`
+ // EnterpriseCloudPrintDiscoveryMaxLimit Maximum number of printers that should be queried from a discovery endpoint. This is a mobile only setting. Valid values 1 to 65535
+ EnterpriseCloudPrintDiscoveryMaxLimit *int `json:"enterpriseCloudPrintDiscoveryMaxLimit,omitempty"`
+ // EnterpriseCloudPrintMopriaDiscoveryResourceIdentifier OAuth resource URI for printer discovery service as configured in Azure portal.
+ EnterpriseCloudPrintMopriaDiscoveryResourceIdentifier *string `json:"enterpriseCloudPrintMopriaDiscoveryResourceIdentifier,omitempty"`
+ // ExperienceDoNotSyncBrowserSettings Allow or prevent the syncing of Microsoft Edge Browser settings. Option for IT admins to prevent syncing across devices, but allow user override.
+ ExperienceDoNotSyncBrowserSettings *BrowserSyncSetting `json:"experienceDoNotSyncBrowserSettings,omitempty"`
+ // MessagingBlockSync Indicates whether or not to block text message back up and restore and Messaging Everywhere.
+ MessagingBlockSync *bool `json:"messagingBlockSync,omitempty"`
+ // MessagingBlockMMS Indicates whether or not to block the MMS send/receive functionality on the device.
+ MessagingBlockMMS *bool `json:"messagingBlockMMS,omitempty"`
+ // MessagingBlockRichCommunicationServices Indicates whether or not to block the RCS send/receive functionality on the device.
+ MessagingBlockRichCommunicationServices *bool `json:"messagingBlockRichCommunicationServices,omitempty"`
+ // PrinterNames Automatically provision printers based on their names (network host names).
+ PrinterNames []string `json:"printerNames,omitempty"`
+ // PrinterDefaultName Name (network host name) of an installed printer.
+ PrinterDefaultName *string `json:"printerDefaultName,omitempty"`
+ // PrinterBlockAddition Prevent user installation of additional printers from printers settings.
+ PrinterBlockAddition *bool `json:"printerBlockAddition,omitempty"`
+ // SearchBlockDiacritics Specifies if search can use diacritics.
+ SearchBlockDiacritics *bool `json:"searchBlockDiacritics,omitempty"`
+ // SearchDisableAutoLanguageDetection Specifies whether to use automatic language detection when indexing content and properties.
+ SearchDisableAutoLanguageDetection *bool `json:"searchDisableAutoLanguageDetection,omitempty"`
+ // SearchDisableIndexingEncryptedItems Indicates whether or not to block indexing of WIP-protected items to prevent them from appearing in search results for Cortana or Explorer.
+ SearchDisableIndexingEncryptedItems *bool `json:"searchDisableIndexingEncryptedItems,omitempty"`
+ // SearchEnableRemoteQueries Indicates whether or not to block remote queries of this computer’s index.
+ SearchEnableRemoteQueries *bool `json:"searchEnableRemoteQueries,omitempty"`
+ // SearchDisableUseLocation Specifies if search can use location information.
+ SearchDisableUseLocation *bool `json:"searchDisableUseLocation,omitempty"`
+ // SearchDisableLocation Specifies if search can use location information.
+ SearchDisableLocation *bool `json:"searchDisableLocation,omitempty"`
+ // SearchDisableIndexerBackoff Indicates whether or not to disable the search indexer backoff feature.
+ SearchDisableIndexerBackoff *bool `json:"searchDisableIndexerBackoff,omitempty"`
+ // SearchDisableIndexingRemovableDrive Indicates whether or not to allow users to add locations on removable drives to libraries and to be indexed.
+ SearchDisableIndexingRemovableDrive *bool `json:"searchDisableIndexingRemovableDrive,omitempty"`
+ // SearchEnableAutomaticIndexSizeManangement Specifies minimum amount of hard drive space on the same drive as the index location before indexing stops.
+ SearchEnableAutomaticIndexSizeManangement *bool `json:"searchEnableAutomaticIndexSizeManangement,omitempty"`
+ // SearchBlockWebResults Indicates whether or not to block the web search.
+ SearchBlockWebResults *bool `json:"searchBlockWebResults,omitempty"`
+ // SecurityBlockAzureADJoinedDevicesAutoEncryption Specify whether to allow automatic device encryption during OOBE when the device is Azure AD joined (desktop only).
+ SecurityBlockAzureADJoinedDevicesAutoEncryption *bool `json:"securityBlockAzureADJoinedDevicesAutoEncryption,omitempty"`
+ // DiagnosticsDataSubmissionMode Gets or sets a value allowing the device to send diagnostic and usage telemetry data, such as Watson.
+ DiagnosticsDataSubmissionMode *DiagnosticDataSubmissionMode `json:"diagnosticsDataSubmissionMode,omitempty"`
+ // OneDriveDisableFileSync Gets or sets a value allowing IT admins to prevent apps and features from working with files on OneDrive.
+ OneDriveDisableFileSync *bool `json:"oneDriveDisableFileSync,omitempty"`
+ // SystemTelemetryProxyServer Gets or sets the fully qualified domain name (FQDN) or IP address of a proxy server to forward Connected User Experiences and Telemetry requests.
+ SystemTelemetryProxyServer *string `json:"systemTelemetryProxyServer,omitempty"`
+ // EdgeTelemetryForMicrosoft365Analytics Specifies what type of telemetry data (none, intranet, internet, both) is sent to Microsoft 365 Analytics
+ EdgeTelemetryForMicrosoft365Analytics *EdgeTelemetryMode `json:"edgeTelemetryForMicrosoft365Analytics,omitempty"`
+ // InkWorkspaceAccess Controls the user access to the ink workspace, from the desktop and from above the lock screen.
+ InkWorkspaceAccess *InkAccessSetting `json:"inkWorkspaceAccess,omitempty"`
+ // InkWorkspaceAccessState Controls the user access to the ink workspace, from the desktop and from above the lock screen.
+ InkWorkspaceAccessState *StateManagementSetting `json:"inkWorkspaceAccessState,omitempty"`
+ // InkWorkspaceBlockSuggestedApps Specify whether to show recommended app suggestions in the ink workspace.
+ InkWorkspaceBlockSuggestedApps *bool `json:"inkWorkspaceBlockSuggestedApps,omitempty"`
+ // SmartScreenEnableAppInstallControl This property will be deprecated in July 2019 and will be replaced by property SmartScreenAppInstallControl. Allows IT Admins to control whether users are allowed to install apps from places other than the Store.
+ SmartScreenEnableAppInstallControl *bool `json:"smartScreenEnableAppInstallControl,omitempty"`
+ // SmartScreenAppInstallControl Added in Windows 10, version 1703. Allows IT Admins to control whether users are allowed to install apps from places other than the Store.
+ SmartScreenAppInstallControl *AppInstallControlType `json:"smartScreenAppInstallControl,omitempty"`
+ // PersonalizationDesktopImageURL A http or https Url to a jpg, jpeg or png image that needs to be downloaded and used as the Desktop Image or a file Url to a local image on the file system that needs to used as the Desktop Image.
+ PersonalizationDesktopImageURL *string `json:"personalizationDesktopImageUrl,omitempty"`
+ // PersonalizationLockScreenImageURL A http or https Url to a jpg, jpeg or png image that neeeds to be downloaded and used as the Lock Screen Image or a file Url to a local image on the file system that needs to be used as the Lock Screen Image.
+ PersonalizationLockScreenImageURL *string `json:"personalizationLockScreenImageUrl,omitempty"`
+ // BluetoothAllowedServices Specify a list of allowed Bluetooth services and profiles in hex formatted strings.
+ BluetoothAllowedServices []string `json:"bluetoothAllowedServices,omitempty"`
+ // BluetoothBlockAdvertising Whether or not to Block the user from using bluetooth advertising.
+ BluetoothBlockAdvertising *bool `json:"bluetoothBlockAdvertising,omitempty"`
+ // BluetoothBlockPromptedProximalConnections Whether or not to block the users from using Swift Pair and other proximity based scenarios.
+ BluetoothBlockPromptedProximalConnections *bool `json:"bluetoothBlockPromptedProximalConnections,omitempty"`
+ // BluetoothBlockDiscoverableMode Whether or not to Block the user from using bluetooth discoverable mode.
+ BluetoothBlockDiscoverableMode *bool `json:"bluetoothBlockDiscoverableMode,omitempty"`
+ // BluetoothBlockPrePairing Whether or not to block specific bundled Bluetooth peripherals to automatically pair with the host device.
+ BluetoothBlockPrePairing *bool `json:"bluetoothBlockPrePairing,omitempty"`
+ // EdgeBlockAutofill Indicates whether or not to block auto fill.
+ EdgeBlockAutofill *bool `json:"edgeBlockAutofill,omitempty"`
+ // EdgeBlocked Indicates whether or not to Block the user from using the Edge browser.
+ EdgeBlocked *bool `json:"edgeBlocked,omitempty"`
+ // EdgeCookiePolicy Indicates which cookies to block in the Edge browser.
+ EdgeCookiePolicy *EdgeCookiePolicy `json:"edgeCookiePolicy,omitempty"`
+ // EdgeBlockDeveloperTools Indicates whether or not to block developer tools in the Edge browser.
+ EdgeBlockDeveloperTools *bool `json:"edgeBlockDeveloperTools,omitempty"`
+ // EdgeBlockSendingDoNotTrackHeader Indicates whether or not to Block the user from sending the do not track header.
+ EdgeBlockSendingDoNotTrackHeader *bool `json:"edgeBlockSendingDoNotTrackHeader,omitempty"`
+ // EdgeBlockExtensions Indicates whether or not to block extensions in the Edge browser.
+ EdgeBlockExtensions *bool `json:"edgeBlockExtensions,omitempty"`
+ // EdgeBlockInPrivateBrowsing Indicates whether or not to block InPrivate browsing on corporate networks, in the Edge browser.
+ EdgeBlockInPrivateBrowsing *bool `json:"edgeBlockInPrivateBrowsing,omitempty"`
+ // EdgeBlockJavaScript Indicates whether or not to Block the user from using JavaScript.
+ EdgeBlockJavaScript *bool `json:"edgeBlockJavaScript,omitempty"`
+ // EdgeBlockPasswordManager Indicates whether or not to Block password manager.
+ EdgeBlockPasswordManager *bool `json:"edgeBlockPasswordManager,omitempty"`
+ // EdgeBlockAddressBarDropdown Block the address bar dropdown functionality in Microsoft Edge. Disable this settings to minimize network connections from Microsoft Edge to Microsoft services.
+ EdgeBlockAddressBarDropdown *bool `json:"edgeBlockAddressBarDropdown,omitempty"`
+ // EdgeBlockCompatibilityList Block Microsoft compatibility list in Microsoft Edge. This list from Microsoft helps Edge properly display sites with known compatibility issues.
+ EdgeBlockCompatibilityList *bool `json:"edgeBlockCompatibilityList,omitempty"`
+ // EdgeClearBrowsingDataOnExit Clear browsing data on exiting Microsoft Edge.
+ EdgeClearBrowsingDataOnExit *bool `json:"edgeClearBrowsingDataOnExit,omitempty"`
+ // EdgeAllowStartPagesModification Allow users to change Start pages on Edge. Use the EdgeHomepageUrls to specify the Start pages that the user would see by default when they open Edge.
+ EdgeAllowStartPagesModification *bool `json:"edgeAllowStartPagesModification,omitempty"`
+ // EdgeDisableFirstRunPage Block the Microsoft web page that opens on the first use of Microsoft Edge. This policy allows enterprises, like those enrolled in zero emissions configurations, to block this page.
+ EdgeDisableFirstRunPage *bool `json:"edgeDisableFirstRunPage,omitempty"`
+ // EdgeBlockLiveTileDataCollection Block the collection of information by Microsoft for live tile creation when users pin a site to Start from Microsoft Edge.
+ EdgeBlockLiveTileDataCollection *bool `json:"edgeBlockLiveTileDataCollection,omitempty"`
+ // EdgeSyncFavoritesWithInternetExplorer Enable favorites sync between Internet Explorer and Microsoft Edge. Additions, deletions, modifications and order changes to favorites are shared between browsers.
+ EdgeSyncFavoritesWithInternetExplorer *bool `json:"edgeSyncFavoritesWithInternetExplorer,omitempty"`
+ // EdgeFavoritesListLocation The location of the favorites list to provision. Could be a local file, local network or http location.
+ EdgeFavoritesListLocation *string `json:"edgeFavoritesListLocation,omitempty"`
+ // EdgeBlockEditFavorites Indicates whether or not to Block the user from making changes to Favorites.
+ EdgeBlockEditFavorites *bool `json:"edgeBlockEditFavorites,omitempty"`
+ // EdgeNewTabPageURL Specify the page opened when new tabs are created.
+ EdgeNewTabPageURL *string `json:"edgeNewTabPageURL,omitempty"`
+ // EdgeHomeButtonConfiguration Causes the Home button to either hide, load the default Start page, load a New tab page, or a custom URL
+ EdgeHomeButtonConfiguration *EdgeHomeButtonConfiguration `json:"edgeHomeButtonConfiguration,omitempty"`
+ // EdgeHomeButtonConfigurationEnabled Enable the Home button configuration.
+ EdgeHomeButtonConfigurationEnabled *bool `json:"edgeHomeButtonConfigurationEnabled,omitempty"`
+ // EdgeOpensWith Specify what kind of pages are open at start.
+ EdgeOpensWith *EdgeOpenOptions `json:"edgeOpensWith,omitempty"`
+ // EdgeBlockSideloadingExtensions Indicates whether the user can sideload extensions.
+ EdgeBlockSideloadingExtensions *bool `json:"edgeBlockSideloadingExtensions,omitempty"`
+ // EdgeRequiredExtensionPackageFamilyNames Specify the list of package family names of browser extensions that are required and cannot be turned off by the user.
+ EdgeRequiredExtensionPackageFamilyNames []string `json:"edgeRequiredExtensionPackageFamilyNames,omitempty"`
+ // EdgeBlockPrinting Configure Edge to allow or block printing.
+ EdgeBlockPrinting *bool `json:"edgeBlockPrinting,omitempty"`
+ // EdgeFavoritesBarVisibility Get or set a value that specifies whether to set the favorites bar to always be visible or hidden on any page.
+ EdgeFavoritesBarVisibility *VisibilitySetting `json:"edgeFavoritesBarVisibility,omitempty"`
+ // EdgeBlockSavingHistory Configure Edge to allow browsing history to be saved or to never save browsing history.
+ EdgeBlockSavingHistory *bool `json:"edgeBlockSavingHistory,omitempty"`
+ // EdgeBlockFullScreenMode Allow or prevent Edge from entering the full screen mode.
+ EdgeBlockFullScreenMode *bool `json:"edgeBlockFullScreenMode,omitempty"`
+ // EdgeBlockWebContentOnNewTabPage Configure to load a blank page in Edge instead of the default New tab page and prevent users from changing it.
+ EdgeBlockWebContentOnNewTabPage *bool `json:"edgeBlockWebContentOnNewTabPage,omitempty"`
+ // EdgeBlockTabPreloading Configure whether Edge preloads the new tab page at Windows startup.
+ EdgeBlockTabPreloading *bool `json:"edgeBlockTabPreloading,omitempty"`
+ // EdgeBlockPrelaunch Decide whether Microsoft Edge is prelaunched at Windows startup.
+ EdgeBlockPrelaunch *bool `json:"edgeBlockPrelaunch,omitempty"`
+ // EdgeShowMessageWhenOpeningInternetExplorerSites Controls the message displayed by Edge before switching to Internet Explorer.
+ EdgeShowMessageWhenOpeningInternetExplorerSites *InternetExplorerMessageSetting `json:"edgeShowMessageWhenOpeningInternetExplorerSites,omitempty"`
+ // EdgePreventCertificateErrorOverride Allow or prevent users from overriding certificate errors.
+ EdgePreventCertificateErrorOverride *bool `json:"edgePreventCertificateErrorOverride,omitempty"`
+ // EdgeKioskModeRestriction Controls how the Microsoft Edge settings are restricted based on the configure kiosk mode.
+ EdgeKioskModeRestriction *EdgeKioskModeRestrictionType `json:"edgeKioskModeRestriction,omitempty"`
+ // EdgeKioskResetAfterIdleTimeInMinutes Specifies the time in minutes from the last user activity before Microsoft Edge kiosk resets. Valid values are 0-1440. The default is 5. 0 indicates no reset. Valid values 0 to 1440
+ EdgeKioskResetAfterIdleTimeInMinutes *int `json:"edgeKioskResetAfterIdleTimeInMinutes,omitempty"`
+ // CellularBlockDataWhenRoaming Whether or not to Block the user from using data over cellular while roaming.
+ CellularBlockDataWhenRoaming *bool `json:"cellularBlockDataWhenRoaming,omitempty"`
+ // CellularBlockVPN Whether or not to Block the user from using VPN over cellular.
+ CellularBlockVPN *bool `json:"cellularBlockVpn,omitempty"`
+ // CellularBlockVPNWhenRoaming Whether or not to Block the user from using VPN when roaming over cellular.
+ CellularBlockVPNWhenRoaming *bool `json:"cellularBlockVpnWhenRoaming,omitempty"`
+ // CellularData Whether or not to allow the cellular data channel on the device. If not configured, the cellular data channel is allowed and the user can turn it off.
+ CellularData *ConfigurationUsage `json:"cellularData,omitempty"`
+ // DefenderBlockEndUserAccess Whether or not to block end user access to Defender.
+ DefenderBlockEndUserAccess *bool `json:"defenderBlockEndUserAccess,omitempty"`
+ // DefenderDaysBeforeDeletingQuarantinedMalware Number of days before deleting quarantined malware. Valid values 0 to 90
+ DefenderDaysBeforeDeletingQuarantinedMalware *int `json:"defenderDaysBeforeDeletingQuarantinedMalware,omitempty"`
+ // DefenderDetectedMalwareActions Gets or sets Defender’s actions to take on detected Malware per threat level.
+ DefenderDetectedMalwareActions *DefenderDetectedMalwareActions `json:"defenderDetectedMalwareActions,omitempty"`
+ // DefenderSystemScanSchedule Defender day of the week for the system scan.
+ DefenderSystemScanSchedule *WeeklySchedule `json:"defenderSystemScanSchedule,omitempty"`
+ // DefenderFilesAndFoldersToExclude Files and folder to exclude from scans and real time protection.
+ DefenderFilesAndFoldersToExclude []string `json:"defenderFilesAndFoldersToExclude,omitempty"`
+ // DefenderFileExtensionsToExclude File extensions to exclude from scans and real time protection.
+ DefenderFileExtensionsToExclude []string `json:"defenderFileExtensionsToExclude,omitempty"`
+ // DefenderScanMaxCPU Max CPU usage percentage during scan. Valid values 0 to 100
+ DefenderScanMaxCPU *int `json:"defenderScanMaxCpu,omitempty"`
+ // DefenderMonitorFileActivity Value for monitoring file activity.
+ DefenderMonitorFileActivity *DefenderMonitorFileActivity `json:"defenderMonitorFileActivity,omitempty"`
+ // DefenderPotentiallyUnwantedAppAction Gets or sets Defender’s action to take on Potentially Unwanted Application (PUA), which includes software with behaviors of ad-injection, software bundling, persistent solicitation for payment or subscription, etc. Defender alerts user when PUA is being downloaded or attempts to install itself. Added in Windows 10 for desktop.
+ DefenderPotentiallyUnwantedAppAction *DefenderPotentiallyUnwantedAppAction `json:"defenderPotentiallyUnwantedAppAction,omitempty"`
+ // DefenderPotentiallyUnwantedAppActionSetting Gets or sets Defender’s action to take on Potentially Unwanted Application (PUA), which includes software with behaviors of ad-injection, software bundling, persistent solicitation for payment or subscription, etc. Defender alerts user when PUA is being downloaded or attempts to install itself. Added in Windows 10 for desktop.
+ DefenderPotentiallyUnwantedAppActionSetting *DefenderProtectionType `json:"defenderPotentiallyUnwantedAppActionSetting,omitempty"`
+ // DefenderProcessesToExclude Processes to exclude from scans and real time protection.
+ DefenderProcessesToExclude []string `json:"defenderProcessesToExclude,omitempty"`
+ // DefenderPromptForSampleSubmission The configuration for how to prompt user for sample submission.
+ DefenderPromptForSampleSubmission *DefenderPromptForSampleSubmission `json:"defenderPromptForSampleSubmission,omitempty"`
+ // DefenderRequireBehaviorMonitoring Indicates whether or not to require behavior monitoring.
+ DefenderRequireBehaviorMonitoring *bool `json:"defenderRequireBehaviorMonitoring,omitempty"`
+ // DefenderRequireCloudProtection Indicates whether or not to require cloud protection.
+ DefenderRequireCloudProtection *bool `json:"defenderRequireCloudProtection,omitempty"`
+ // DefenderRequireNetworkInspectionSystem Indicates whether or not to require network inspection system.
+ DefenderRequireNetworkInspectionSystem *bool `json:"defenderRequireNetworkInspectionSystem,omitempty"`
+ // DefenderRequireRealTimeMonitoring Indicates whether or not to require real time monitoring.
+ DefenderRequireRealTimeMonitoring *bool `json:"defenderRequireRealTimeMonitoring,omitempty"`
+ // DefenderScanArchiveFiles Indicates whether or not to scan archive files.
+ DefenderScanArchiveFiles *bool `json:"defenderScanArchiveFiles,omitempty"`
+ // DefenderScanDownloads Indicates whether or not to scan downloads.
+ DefenderScanDownloads *bool `json:"defenderScanDownloads,omitempty"`
+ // DefenderScheduleScanEnableLowCPUPriority When enabled, low CPU priority will be used during scheduled scans.
+ DefenderScheduleScanEnableLowCPUPriority *bool `json:"defenderScheduleScanEnableLowCpuPriority,omitempty"`
+ // DefenderDisableCatchupQuickScan When blocked, catch-up scans for scheduled quick scans will be turned off.
+ DefenderDisableCatchupQuickScan *bool `json:"defenderDisableCatchupQuickScan,omitempty"`
+ // DefenderDisableCatchupFullScan When blocked, catch-up scans for scheduled full scans will be turned off.
+ DefenderDisableCatchupFullScan *bool `json:"defenderDisableCatchupFullScan,omitempty"`
+ // DefenderScanNetworkFiles Indicates whether or not to scan files opened from a network folder.
+ DefenderScanNetworkFiles *bool `json:"defenderScanNetworkFiles,omitempty"`
+ // DefenderScanIncomingMail Indicates whether or not to scan incoming mail messages.
+ DefenderScanIncomingMail *bool `json:"defenderScanIncomingMail,omitempty"`
+ // DefenderScanMappedNetworkDrivesDuringFullScan Indicates whether or not to scan mapped network drives during full scan.
+ DefenderScanMappedNetworkDrivesDuringFullScan *bool `json:"defenderScanMappedNetworkDrivesDuringFullScan,omitempty"`
+ // DefenderScanRemovableDrivesDuringFullScan Indicates whether or not to scan removable drives during full scan.
+ DefenderScanRemovableDrivesDuringFullScan *bool `json:"defenderScanRemovableDrivesDuringFullScan,omitempty"`
+ // DefenderScanScriptsLoadedInInternetExplorer Indicates whether or not to scan scripts loaded in Internet Explorer browser.
+ DefenderScanScriptsLoadedInInternetExplorer *bool `json:"defenderScanScriptsLoadedInInternetExplorer,omitempty"`
+ // DefenderSignatureUpdateIntervalInHours The signature update interval in hours. Specify 0 not to check. Valid values 0 to 24
+ DefenderSignatureUpdateIntervalInHours *int `json:"defenderSignatureUpdateIntervalInHours,omitempty"`
+ // DefenderScanType The defender system scan type.
+ DefenderScanType *DefenderScanType `json:"defenderScanType,omitempty"`
+ // DefenderScheduledScanTime The defender time for the system scan.
+ DefenderScheduledScanTime *TimeOfDay `json:"defenderScheduledScanTime,omitempty"`
+ // DefenderScheduledQuickScanTime The time to perform a daily quick scan.
+ DefenderScheduledQuickScanTime *TimeOfDay `json:"defenderScheduledQuickScanTime,omitempty"`
+ // DefenderCloudBlockLevel Specifies the level of cloud-delivered protection.
+ DefenderCloudBlockLevel *DefenderCloudBlockLevelType `json:"defenderCloudBlockLevel,omitempty"`
+ // DefenderCloudExtendedTimeout Timeout extension for file scanning by the cloud. Valid values 0 to 50
+ DefenderCloudExtendedTimeout *int `json:"defenderCloudExtendedTimeout,omitempty"`
+ // DefenderCloudExtendedTimeoutInSeconds Timeout extension for file scanning by the cloud. Valid values 0 to 50
+ DefenderCloudExtendedTimeoutInSeconds *int `json:"defenderCloudExtendedTimeoutInSeconds,omitempty"`
+ // DefenderBlockOnAccessProtection Allows or disallows Windows Defender On Access Protection functionality.
+ DefenderBlockOnAccessProtection *bool `json:"defenderBlockOnAccessProtection,omitempty"`
+ // DefenderSubmitSamplesConsentType Checks for the user consent level in Windows Defender to send data.
+ DefenderSubmitSamplesConsentType *DefenderSubmitSamplesConsentType `json:"defenderSubmitSamplesConsentType,omitempty"`
+ // LockScreenAllowTimeoutConfiguration Specify whether to show a user-configurable setting to control the screen timeout while on the lock screen of Windows 10 Mobile devices. If this policy is set to Allow, the value set by lockScreenTimeoutInSeconds is ignored.
+ LockScreenAllowTimeoutConfiguration *bool `json:"lockScreenAllowTimeoutConfiguration,omitempty"`
+ // LockScreenBlockActionCenterNotifications Indicates whether or not to block action center notifications over lock screen.
+ LockScreenBlockActionCenterNotifications *bool `json:"lockScreenBlockActionCenterNotifications,omitempty"`
+ // LockScreenBlockCortana Indicates whether or not the user can interact with Cortana using speech while the system is locked.
+ LockScreenBlockCortana *bool `json:"lockScreenBlockCortana,omitempty"`
+ // LockScreenBlockToastNotifications Indicates whether to allow toast notifications above the device lock screen.
+ LockScreenBlockToastNotifications *bool `json:"lockScreenBlockToastNotifications,omitempty"`
+ // LockScreenTimeoutInSeconds Set the duration (in seconds) from the screen locking to the screen turning off for Windows 10 Mobile devices. Supported values are 11-1800. Valid values 11 to 1800
+ LockScreenTimeoutInSeconds *int `json:"lockScreenTimeoutInSeconds,omitempty"`
+ // LockScreenActivateAppsWithVoice This policy setting specifies whether Windows apps can be activated by voice while the system is locked.
+ LockScreenActivateAppsWithVoice *Enablement `json:"lockScreenActivateAppsWithVoice,omitempty"`
+ // PasswordBlockSimple Specify whether PINs or passwords such as "1111" or "1234" are allowed. For Windows 10 desktops, it also controls the use of picture passwords.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays The password expiration in days. Valid values 0 to 730
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength The minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout The minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent reuse of. Valid values 0 to 50
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordRequired Indicates whether or not to require the user to have a password.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordRequireWhenResumeFromIdleState Indicates whether or not to require a password upon resuming from an idle state.
+ PasswordRequireWhenResumeFromIdleState *bool `json:"passwordRequireWhenResumeFromIdleState,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset The number of sign in failures before factory reset. Valid values 0 to 999
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // PasswordMinimumAgeInDays This security setting determines the period of time (in days) that a password must be used before the user can change it. Valid values 0 to 998
+ PasswordMinimumAgeInDays *int `json:"passwordMinimumAgeInDays,omitempty"`
+ // PrivacyAdvertisingID Enables or disables the use of advertising ID. Added in Windows 10, version 1607.
+ PrivacyAdvertisingID *StateManagementSetting `json:"privacyAdvertisingId,omitempty"`
+ // PrivacyAutoAcceptPairingAndConsentPrompts Indicates whether or not to allow the automatic acceptance of the pairing and privacy user consent dialog when launching apps.
+ PrivacyAutoAcceptPairingAndConsentPrompts *bool `json:"privacyAutoAcceptPairingAndConsentPrompts,omitempty"`
+ // PrivacyDisableLaunchExperience This policy prevents the privacy experience from launching during user logon for new and upgraded users.​
+ PrivacyDisableLaunchExperience *bool `json:"privacyDisableLaunchExperience,omitempty"`
+ // PrivacyBlockInputPersonalization Indicates whether or not to block the usage of cloud based speech services for Cortana, Dictation, or Store applications.
+ PrivacyBlockInputPersonalization *bool `json:"privacyBlockInputPersonalization,omitempty"`
+ // PrivacyBlockPublishUserActivities Blocks the shared experiences/discovery of recently used resources in task switcher etc.
+ PrivacyBlockPublishUserActivities *bool `json:"privacyBlockPublishUserActivities,omitempty"`
+ // PrivacyBlockActivityFeed Blocks the usage of cloud based speech services for Cortana, Dictation, or Store applications.
+ PrivacyBlockActivityFeed *bool `json:"privacyBlockActivityFeed,omitempty"`
+ // StartBlockUnpinningAppsFromTaskbar Indicates whether or not to block the user from unpinning apps from taskbar.
+ StartBlockUnpinningAppsFromTaskbar *bool `json:"startBlockUnpinningAppsFromTaskbar,omitempty"`
+ // StartMenuAppListVisibility Setting the value of this collapses the app list, removes the app list entirely, or disables the corresponding toggle in the Settings app.
+ StartMenuAppListVisibility *WindowsStartMenuAppListVisibilityType `json:"startMenuAppListVisibility,omitempty"`
+ // StartMenuHideChangeAccountSettings Enabling this policy hides the change account setting from appearing in the user tile in the start menu.
+ StartMenuHideChangeAccountSettings *bool `json:"startMenuHideChangeAccountSettings,omitempty"`
+ // StartMenuHideFrequentlyUsedApps Enabling this policy hides the most used apps from appearing on the start menu and disables the corresponding toggle in the Settings app.
+ StartMenuHideFrequentlyUsedApps *bool `json:"startMenuHideFrequentlyUsedApps,omitempty"`
+ // StartMenuHideHibernate Enabling this policy hides hibernate from appearing in the power button in the start menu.
+ StartMenuHideHibernate *bool `json:"startMenuHideHibernate,omitempty"`
+ // StartMenuHideLock Enabling this policy hides lock from appearing in the user tile in the start menu.
+ StartMenuHideLock *bool `json:"startMenuHideLock,omitempty"`
+ // StartMenuHidePowerButton Enabling this policy hides the power button from appearing in the start menu.
+ StartMenuHidePowerButton *bool `json:"startMenuHidePowerButton,omitempty"`
+ // StartMenuHideRecentJumpLists Enabling this policy hides recent jump lists from appearing on the start menu/taskbar and disables the corresponding toggle in the Settings app.
+ StartMenuHideRecentJumpLists *bool `json:"startMenuHideRecentJumpLists,omitempty"`
+ // StartMenuHideRecentlyAddedApps Enabling this policy hides recently added apps from appearing on the start menu and disables the corresponding toggle in the Settings app.
+ StartMenuHideRecentlyAddedApps *bool `json:"startMenuHideRecentlyAddedApps,omitempty"`
+ // StartMenuHideRestartOptions Enabling this policy hides “Restart/Update and Restart” from appearing in the power button in the start menu.
+ StartMenuHideRestartOptions *bool `json:"startMenuHideRestartOptions,omitempty"`
+ // StartMenuHideShutDown Enabling this policy hides shut down/update and shut down from appearing in the power button in the start menu.
+ StartMenuHideShutDown *bool `json:"startMenuHideShutDown,omitempty"`
+ // StartMenuHideSignOut Enabling this policy hides sign out from appearing in the user tile in the start menu.
+ StartMenuHideSignOut *bool `json:"startMenuHideSignOut,omitempty"`
+ // StartMenuHideSleep Enabling this policy hides sleep from appearing in the power button in the start menu.
+ StartMenuHideSleep *bool `json:"startMenuHideSleep,omitempty"`
+ // StartMenuHideSwitchAccount Enabling this policy hides switch account from appearing in the user tile in the start menu.
+ StartMenuHideSwitchAccount *bool `json:"startMenuHideSwitchAccount,omitempty"`
+ // StartMenuHideUserTile Enabling this policy hides the user tile from appearing in the start menu.
+ StartMenuHideUserTile *bool `json:"startMenuHideUserTile,omitempty"`
+ // StartMenuLayoutEdgeAssetsXML This policy setting allows you to import Edge assets to be used with startMenuLayoutXml policy. Start layout can contain secondary tile from Edge app which looks for Edge local asset file. Edge local asset would not exist and cause Edge secondary tile to appear empty in this case. This policy only gets applied when startMenuLayoutXml policy is modified. The value should be a UTF-8 Base64 encoded byte array.
+ StartMenuLayoutEdgeAssetsXML *Binary `json:"startMenuLayoutEdgeAssetsXml,omitempty"`
+ // StartMenuLayoutXML Allows admins to override the default Start menu layout and prevents the user from changing it. The layout is modified by specifying an XML file based on a layout modification schema. XML needs to be in a UTF8 encoded byte array format.
+ StartMenuLayoutXML *Binary `json:"startMenuLayoutXml,omitempty"`
+ // StartMenuMode Allows admins to decide how the Start menu is displayed.
+ StartMenuMode *WindowsStartMenuModeType `json:"startMenuMode,omitempty"`
+ // StartMenuPinnedFolderDocuments Enforces the visibility (Show/Hide) of the Documents folder shortcut on the Start menu.
+ StartMenuPinnedFolderDocuments *VisibilitySetting `json:"startMenuPinnedFolderDocuments,omitempty"`
+ // StartMenuPinnedFolderDownloads Enforces the visibility (Show/Hide) of the Downloads folder shortcut on the Start menu.
+ StartMenuPinnedFolderDownloads *VisibilitySetting `json:"startMenuPinnedFolderDownloads,omitempty"`
+ // StartMenuPinnedFolderFileExplorer Enforces the visibility (Show/Hide) of the FileExplorer shortcut on the Start menu.
+ StartMenuPinnedFolderFileExplorer *VisibilitySetting `json:"startMenuPinnedFolderFileExplorer,omitempty"`
+ // StartMenuPinnedFolderHomeGroup Enforces the visibility (Show/Hide) of the HomeGroup folder shortcut on the Start menu.
+ StartMenuPinnedFolderHomeGroup *VisibilitySetting `json:"startMenuPinnedFolderHomeGroup,omitempty"`
+ // StartMenuPinnedFolderMusic Enforces the visibility (Show/Hide) of the Music folder shortcut on the Start menu.
+ StartMenuPinnedFolderMusic *VisibilitySetting `json:"startMenuPinnedFolderMusic,omitempty"`
+ // StartMenuPinnedFolderNetwork Enforces the visibility (Show/Hide) of the Network folder shortcut on the Start menu.
+ StartMenuPinnedFolderNetwork *VisibilitySetting `json:"startMenuPinnedFolderNetwork,omitempty"`
+ // StartMenuPinnedFolderPersonalFolder Enforces the visibility (Show/Hide) of the PersonalFolder shortcut on the Start menu.
+ StartMenuPinnedFolderPersonalFolder *VisibilitySetting `json:"startMenuPinnedFolderPersonalFolder,omitempty"`
+ // StartMenuPinnedFolderPictures Enforces the visibility (Show/Hide) of the Pictures folder shortcut on the Start menu.
+ StartMenuPinnedFolderPictures *VisibilitySetting `json:"startMenuPinnedFolderPictures,omitempty"`
+ // StartMenuPinnedFolderSettings Enforces the visibility (Show/Hide) of the Settings folder shortcut on the Start menu.
+ StartMenuPinnedFolderSettings *VisibilitySetting `json:"startMenuPinnedFolderSettings,omitempty"`
+ // StartMenuPinnedFolderVideos Enforces the visibility (Show/Hide) of the Videos folder shortcut on the Start menu.
+ StartMenuPinnedFolderVideos *VisibilitySetting `json:"startMenuPinnedFolderVideos,omitempty"`
+ // SettingsBlockSettingsApp Indicates whether or not to block access to Settings app.
+ SettingsBlockSettingsApp *bool `json:"settingsBlockSettingsApp,omitempty"`
+ // SettingsBlockSystemPage Indicates whether or not to block access to System in Settings app.
+ SettingsBlockSystemPage *bool `json:"settingsBlockSystemPage,omitempty"`
+ // SettingsBlockDevicesPage Indicates whether or not to block access to Devices in Settings app.
+ SettingsBlockDevicesPage *bool `json:"settingsBlockDevicesPage,omitempty"`
+ // SettingsBlockNetworkInternetPage Indicates whether or not to block access to Network & Internet in Settings app.
+ SettingsBlockNetworkInternetPage *bool `json:"settingsBlockNetworkInternetPage,omitempty"`
+ // SettingsBlockPersonalizationPage Indicates whether or not to block access to Personalization in Settings app.
+ SettingsBlockPersonalizationPage *bool `json:"settingsBlockPersonalizationPage,omitempty"`
+ // SettingsBlockAccountsPage Indicates whether or not to block access to Accounts in Settings app.
+ SettingsBlockAccountsPage *bool `json:"settingsBlockAccountsPage,omitempty"`
+ // SettingsBlockTimeLanguagePage Indicates whether or not to block access to Time & Language in Settings app.
+ SettingsBlockTimeLanguagePage *bool `json:"settingsBlockTimeLanguagePage,omitempty"`
+ // SettingsBlockEaseOfAccessPage Indicates whether or not to block access to Ease of Access in Settings app.
+ SettingsBlockEaseOfAccessPage *bool `json:"settingsBlockEaseOfAccessPage,omitempty"`
+ // SettingsBlockPrivacyPage Indicates whether or not to block access to Privacy in Settings app.
+ SettingsBlockPrivacyPage *bool `json:"settingsBlockPrivacyPage,omitempty"`
+ // SettingsBlockUpdateSecurityPage Indicates whether or not to block access to Update & Security in Settings app.
+ SettingsBlockUpdateSecurityPage *bool `json:"settingsBlockUpdateSecurityPage,omitempty"`
+ // SettingsBlockAppsPage Indicates whether or not to block access to Apps in Settings app.
+ SettingsBlockAppsPage *bool `json:"settingsBlockAppsPage,omitempty"`
+ // SettingsBlockGamingPage Indicates whether or not to block access to Gaming in Settings app.
+ SettingsBlockGamingPage *bool `json:"settingsBlockGamingPage,omitempty"`
+ // WindowsSpotlightBlockConsumerSpecificFeatures Allows IT admins to block experiences that are typically for consumers only, such as Start suggestions, Membership notifications, Post-OOBE app install and redirect tiles.
+ WindowsSpotlightBlockConsumerSpecificFeatures *bool `json:"windowsSpotlightBlockConsumerSpecificFeatures,omitempty"`
+ // WindowsSpotlightBlocked Allows IT admins to turn off all Windows Spotlight features
+ WindowsSpotlightBlocked *bool `json:"windowsSpotlightBlocked,omitempty"`
+ // WindowsSpotlightBlockOnActionCenter Block suggestions from Microsoft that show after each OS clean install, upgrade or in an on-going basis to introduce users to what is new or changed
+ WindowsSpotlightBlockOnActionCenter *bool `json:"windowsSpotlightBlockOnActionCenter,omitempty"`
+ // WindowsSpotlightBlockTailoredExperiences Block personalized content in Windows spotlight based on user’s device usage.
+ WindowsSpotlightBlockTailoredExperiences *bool `json:"windowsSpotlightBlockTailoredExperiences,omitempty"`
+ // WindowsSpotlightBlockThirdPartyNotifications Block third party content delivered via Windows Spotlight
+ WindowsSpotlightBlockThirdPartyNotifications *bool `json:"windowsSpotlightBlockThirdPartyNotifications,omitempty"`
+ // WindowsSpotlightBlockWelcomeExperience Block Windows Spotlight Windows welcome experience
+ WindowsSpotlightBlockWelcomeExperience *bool `json:"windowsSpotlightBlockWelcomeExperience,omitempty"`
+ // WindowsSpotlightBlockWindowsTips Allows IT admins to turn off the popup of Windows Tips.
+ WindowsSpotlightBlockWindowsTips *bool `json:"windowsSpotlightBlockWindowsTips,omitempty"`
+ // WindowsSpotlightConfigureOnLockScreen Specifies the type of Spotlight
+ WindowsSpotlightConfigureOnLockScreen *WindowsSpotlightEnablementSettings `json:"windowsSpotlightConfigureOnLockScreen,omitempty"`
+ // NetworkProxyApplySettingsDeviceWide If set, proxy settings will be applied to all processes and accounts in the device. Otherwise, it will be applied to the user account that’s enrolled into MDM.
+ NetworkProxyApplySettingsDeviceWide *bool `json:"networkProxyApplySettingsDeviceWide,omitempty"`
+ // NetworkProxyDisableAutoDetect Disable automatic detection of settings. If enabled, the system will try to find the path to a proxy auto-config (PAC) script.
+ NetworkProxyDisableAutoDetect *bool `json:"networkProxyDisableAutoDetect,omitempty"`
+ // NetworkProxyAutomaticConfigurationURL Address to the proxy auto-config (PAC) script you want to use.
+ NetworkProxyAutomaticConfigurationURL *string `json:"networkProxyAutomaticConfigurationUrl,omitempty"`
+ // NetworkProxyServer Specifies manual proxy server settings.
+ NetworkProxyServer *Windows10NetworkProxyServer `json:"networkProxyServer,omitempty"`
+ // AccountsBlockAddingNonMicrosoftAccountEmail Indicates whether or not to Block the user from adding email accounts to the device that are not associated with a Microsoft account.
+ AccountsBlockAddingNonMicrosoftAccountEmail *bool `json:"accountsBlockAddingNonMicrosoftAccountEmail,omitempty"`
+ // AntiTheftModeBlocked Indicates whether or not to block the user from selecting an AntiTheft mode preference (Windows 10 Mobile only).
+ AntiTheftModeBlocked *bool `json:"antiTheftModeBlocked,omitempty"`
+ // BluetoothBlocked Whether or not to Block the user from using bluetooth.
+ BluetoothBlocked *bool `json:"bluetoothBlocked,omitempty"`
+ // CameraBlocked Whether or not to Block the user from accessing the camera of the device.
+ CameraBlocked *bool `json:"cameraBlocked,omitempty"`
+ // ConnectedDevicesServiceBlocked Whether or not to block Connected Devices Service which enables discovery and connection to other devices, remote messaging, remote app sessions and other cross-device experiences.
+ ConnectedDevicesServiceBlocked *bool `json:"connectedDevicesServiceBlocked,omitempty"`
+ // CertificatesBlockManualRootCertificateInstallation Whether or not to Block the user from doing manual root certificate installation.
+ CertificatesBlockManualRootCertificateInstallation *bool `json:"certificatesBlockManualRootCertificateInstallation,omitempty"`
+ // CopyPasteBlocked Whether or not to Block the user from using copy paste.
+ CopyPasteBlocked *bool `json:"copyPasteBlocked,omitempty"`
+ // CortanaBlocked Whether or not to Block the user from using Cortana.
+ CortanaBlocked *bool `json:"cortanaBlocked,omitempty"`
+ // DeviceManagementBlockFactoryResetOnMobile Indicates whether or not to Block the user from resetting their phone.
+ DeviceManagementBlockFactoryResetOnMobile *bool `json:"deviceManagementBlockFactoryResetOnMobile,omitempty"`
+ // DeviceManagementBlockManualUnenroll Indicates whether or not to Block the user from doing manual un-enrollment from device management.
+ DeviceManagementBlockManualUnenroll *bool `json:"deviceManagementBlockManualUnenroll,omitempty"`
+ // SafeSearchFilter Specifies what filter level of safe search is required.
+ SafeSearchFilter *SafeSearchFilterType `json:"safeSearchFilter,omitempty"`
+ // EdgeBlockPopups Indicates whether or not to block popups.
+ EdgeBlockPopups *bool `json:"edgeBlockPopups,omitempty"`
+ // EdgeBlockSearchSuggestions Indicates whether or not to block the user from using the search suggestions in the address bar.
+ EdgeBlockSearchSuggestions *bool `json:"edgeBlockSearchSuggestions,omitempty"`
+ // EdgeBlockSearchEngineCustomization Indicates whether or not to block the user from adding new search engine or changing the default search engine.
+ EdgeBlockSearchEngineCustomization *bool `json:"edgeBlockSearchEngineCustomization,omitempty"`
+ // EdgeBlockSendingIntranetTrafficToInternetExplorer Indicates whether or not to switch the intranet traffic from Edge to Internet Explorer. Note: the name of this property is misleading; the property is obsolete, use EdgeSendIntranetTrafficToInternetExplorer instead.
+ EdgeBlockSendingIntranetTrafficToInternetExplorer *bool `json:"edgeBlockSendingIntranetTrafficToInternetExplorer,omitempty"`
+ // EdgeSendIntranetTrafficToInternetExplorer Indicates whether or not to switch the intranet traffic from Edge to Internet Explorer.
+ EdgeSendIntranetTrafficToInternetExplorer *bool `json:"edgeSendIntranetTrafficToInternetExplorer,omitempty"`
+ // EdgeRequireSmartScreen Indicates whether or not to Require the user to use the smart screen filter.
+ EdgeRequireSmartScreen *bool `json:"edgeRequireSmartScreen,omitempty"`
+ // EdgeEnterpriseModeSiteListLocation Indicates the enterprise mode site list location. Could be a local file, local network or http location.
+ EdgeEnterpriseModeSiteListLocation *string `json:"edgeEnterpriseModeSiteListLocation,omitempty"`
+ // EdgeFirstRunURL The first run URL for when Edge browser is opened for the first time.
+ EdgeFirstRunURL *string `json:"edgeFirstRunUrl,omitempty"`
+ // EdgeSearchEngine Allows IT admins to set a default search engine for MDM-Controlled devices. Users can override this and change their default search engine provided the AllowSearchEngineCustomization policy is not set.
+ EdgeSearchEngine *EdgeSearchEngineBase `json:"edgeSearchEngine,omitempty"`
+ // EdgeHomepageUrls The list of URLs for homepages shodwn on MDM-enrolled devices on Edge browser.
+ EdgeHomepageUrls []string `json:"edgeHomepageUrls,omitempty"`
+ // EdgeBlockAccessToAboutFlags Indicates whether or not to prevent access to about flags on Edge browser.
+ EdgeBlockAccessToAboutFlags *bool `json:"edgeBlockAccessToAboutFlags,omitempty"`
+ // SmartScreenBlockPromptOverride Indicates whether or not users can override SmartScreen Filter warnings about potentially malicious websites.
+ SmartScreenBlockPromptOverride *bool `json:"smartScreenBlockPromptOverride,omitempty"`
+ // SmartScreenBlockPromptOverrideForFiles Indicates whether or not users can override the SmartScreen Filter warnings about downloading unverified files
+ SmartScreenBlockPromptOverrideForFiles *bool `json:"smartScreenBlockPromptOverrideForFiles,omitempty"`
+ // WebRtcBlockLocalhostIPAddress Indicates whether or not user's localhost IP address is displayed while making phone calls using the WebRTC
+ WebRtcBlockLocalhostIPAddress *bool `json:"webRtcBlockLocalhostIpAddress,omitempty"`
+ // InternetSharingBlocked Indicates whether or not to Block the user from using internet sharing.
+ InternetSharingBlocked *bool `json:"internetSharingBlocked,omitempty"`
+ // SettingsBlockAddProvisioningPackage Indicates whether or not to block the user from installing provisioning packages.
+ SettingsBlockAddProvisioningPackage *bool `json:"settingsBlockAddProvisioningPackage,omitempty"`
+ // SettingsBlockRemoveProvisioningPackage Indicates whether or not to block the runtime configuration agent from removing provisioning packages.
+ SettingsBlockRemoveProvisioningPackage *bool `json:"settingsBlockRemoveProvisioningPackage,omitempty"`
+ // SettingsBlockChangeSystemTime Indicates whether or not to block the user from changing date and time settings.
+ SettingsBlockChangeSystemTime *bool `json:"settingsBlockChangeSystemTime,omitempty"`
+ // SettingsBlockEditDeviceName Indicates whether or not to block the user from editing the device name.
+ SettingsBlockEditDeviceName *bool `json:"settingsBlockEditDeviceName,omitempty"`
+ // SettingsBlockChangeRegion Indicates whether or not to block the user from changing the region settings.
+ SettingsBlockChangeRegion *bool `json:"settingsBlockChangeRegion,omitempty"`
+ // SettingsBlockChangeLanguage Indicates whether or not to block the user from changing the language settings.
+ SettingsBlockChangeLanguage *bool `json:"settingsBlockChangeLanguage,omitempty"`
+ // SettingsBlockChangePowerSleep Indicates whether or not to block the user from changing power and sleep settings.
+ SettingsBlockChangePowerSleep *bool `json:"settingsBlockChangePowerSleep,omitempty"`
+ // LocationServicesBlocked Indicates whether or not to Block the user from location services.
+ LocationServicesBlocked *bool `json:"locationServicesBlocked,omitempty"`
+ // MicrosoftAccountBlocked Indicates whether or not to Block a Microsoft account.
+ MicrosoftAccountBlocked *bool `json:"microsoftAccountBlocked,omitempty"`
+ // MicrosoftAccountBlockSettingsSync Indicates whether or not to Block Microsoft account settings sync.
+ MicrosoftAccountBlockSettingsSync *bool `json:"microsoftAccountBlockSettingsSync,omitempty"`
+ // NfcBlocked Indicates whether or not to Block the user from using near field communication.
+ NfcBlocked *bool `json:"nfcBlocked,omitempty"`
+ // ResetProtectionModeBlocked Indicates whether or not to Block the user from reset protection mode.
+ ResetProtectionModeBlocked *bool `json:"resetProtectionModeBlocked,omitempty"`
+ // ScreenCaptureBlocked Indicates whether or not to Block the user from taking Screenshots.
+ ScreenCaptureBlocked *bool `json:"screenCaptureBlocked,omitempty"`
+ // StorageBlockRemovableStorage Indicates whether or not to Block the user from using removable storage.
+ StorageBlockRemovableStorage *bool `json:"storageBlockRemovableStorage,omitempty"`
+ // StorageRequireMobileDeviceEncryption Indicating whether or not to require encryption on a mobile device.
+ StorageRequireMobileDeviceEncryption *bool `json:"storageRequireMobileDeviceEncryption,omitempty"`
+ // UsbBlocked Indicates whether or not to Block the user from USB connection.
+ UsbBlocked *bool `json:"usbBlocked,omitempty"`
+ // VoiceRecordingBlocked Indicates whether or not to Block the user from voice recording.
+ VoiceRecordingBlocked *bool `json:"voiceRecordingBlocked,omitempty"`
+ // WiFiBlockAutomaticConnectHotspots Indicating whether or not to block automatically connecting to Wi-Fi hotspots. Has no impact if Wi-Fi is blocked.
+ WiFiBlockAutomaticConnectHotspots *bool `json:"wiFiBlockAutomaticConnectHotspots,omitempty"`
+ // WiFiBlocked Indicates whether or not to Block the user from using Wi-Fi.
+ WiFiBlocked *bool `json:"wiFiBlocked,omitempty"`
+ // WiFiBlockManualConfiguration Indicates whether or not to Block the user from using Wi-Fi manual configuration.
+ WiFiBlockManualConfiguration *bool `json:"wiFiBlockManualConfiguration,omitempty"`
+ // WiFiScanInterval Specify how often devices scan for Wi-Fi networks. Supported values are 1-500, where 100 = default, and 500 = low frequency. Valid values 1 to 500
+ WiFiScanInterval *int `json:"wiFiScanInterval,omitempty"`
+ // WirelessDisplayBlockProjectionToThisDevice Indicates whether or not to allow other devices from discovering this PC for projection.
+ WirelessDisplayBlockProjectionToThisDevice *bool `json:"wirelessDisplayBlockProjectionToThisDevice,omitempty"`
+ // WirelessDisplayBlockUserInputFromReceiver Indicates whether or not to allow user input from wireless display receiver.
+ WirelessDisplayBlockUserInputFromReceiver *bool `json:"wirelessDisplayBlockUserInputFromReceiver,omitempty"`
+ // WirelessDisplayRequirePinForPairing Indicates whether or not to require a PIN for new devices to initiate pairing.
+ WirelessDisplayRequirePinForPairing *bool `json:"wirelessDisplayRequirePinForPairing,omitempty"`
+ // WindowsStoreBlocked Indicates whether or not to Block the user from using the Windows store.
+ WindowsStoreBlocked *bool `json:"windowsStoreBlocked,omitempty"`
+ // AppsAllowTrustedAppsSideloading Indicates whether apps from AppX packages signed with a trusted certificate can be side loaded.
+ AppsAllowTrustedAppsSideloading *StateManagementSetting `json:"appsAllowTrustedAppsSideloading,omitempty"`
+ // WindowsStoreBlockAutoUpdate Indicates whether or not to block automatic update of apps from Windows Store.
+ WindowsStoreBlockAutoUpdate *bool `json:"windowsStoreBlockAutoUpdate,omitempty"`
+ // DeveloperUnlockSetting Indicates whether or not to allow developer unlock.
+ DeveloperUnlockSetting *StateManagementSetting `json:"developerUnlockSetting,omitempty"`
+ // SharedUserAppDataAllowed Indicates whether or not to block multiple users of the same app to share data.
+ SharedUserAppDataAllowed *bool `json:"sharedUserAppDataAllowed,omitempty"`
+ // AppsBlockWindowsStoreOriginatedApps Indicates whether or not to disable the launch of all apps from Windows Store that came pre-installed or were downloaded.
+ AppsBlockWindowsStoreOriginatedApps *bool `json:"appsBlockWindowsStoreOriginatedApps,omitempty"`
+ // WindowsStoreEnablePrivateStoreOnly Indicates whether or not to enable Private Store Only.
+ WindowsStoreEnablePrivateStoreOnly *bool `json:"windowsStoreEnablePrivateStoreOnly,omitempty"`
+ // StorageRestrictAppDataToSystemVolume Indicates whether application data is restricted to the system drive.
+ StorageRestrictAppDataToSystemVolume *bool `json:"storageRestrictAppDataToSystemVolume,omitempty"`
+ // StorageRestrictAppInstallToSystemVolume Indicates whether the installation of applications is restricted to the system drive.
+ StorageRestrictAppInstallToSystemVolume *bool `json:"storageRestrictAppInstallToSystemVolume,omitempty"`
+ // GameDvrBlocked Indicates whether or not to block DVR and broadcasting.
+ GameDvrBlocked *bool `json:"gameDvrBlocked,omitempty"`
+ // ExperienceBlockDeviceDiscovery Indicates whether or not to enable device discovery UX.
+ ExperienceBlockDeviceDiscovery *bool `json:"experienceBlockDeviceDiscovery,omitempty"`
+ // ExperienceBlockErrorDialogWhenNoSIM Indicates whether or not to allow the error dialog from displaying if no SIM card is detected.
+ ExperienceBlockErrorDialogWhenNoSIM *bool `json:"experienceBlockErrorDialogWhenNoSIM,omitempty"`
+ // ExperienceBlockTaskSwitcher Indicates whether or not to enable task switching on the device.
+ ExperienceBlockTaskSwitcher *bool `json:"experienceBlockTaskSwitcher,omitempty"`
+ // LogonBlockFastUserSwitching Disables the ability to quickly switch between users that are logged on simultaneously without logging off.
+ LogonBlockFastUserSwitching *bool `json:"logonBlockFastUserSwitching,omitempty"`
+ // TenantLockdownRequireNetworkDuringOutOfBoxExperience Whether the device is required to connect to the network.
+ TenantLockdownRequireNetworkDuringOutOfBoxExperience *bool `json:"tenantLockdownRequireNetworkDuringOutOfBoxExperience,omitempty"`
+ // AppManagementMSIAllowUserControlOverInstall This policy setting permits users to change installation options that typically are available only to system administrators.
+ AppManagementMSIAllowUserControlOverInstall *bool `json:"appManagementMSIAllowUserControlOverInstall,omitempty"`
+ // AppManagementMSIAlwaysInstallWithElevatedPrivileges This policy setting directs Windows Installer to use elevated permissions when it installs any program on the system.
+ AppManagementMSIAlwaysInstallWithElevatedPrivileges *bool `json:"appManagementMSIAlwaysInstallWithElevatedPrivileges,omitempty"`
+ // DataProtectionBlockDirectMemoryAccess This policy setting allows you to block direct memory access (DMA) for all hot pluggable PCI downstream ports until a user logs into Windows.
+ DataProtectionBlockDirectMemoryAccess *bool `json:"dataProtectionBlockDirectMemoryAccess,omitempty"`
+ // AppManagementPackageFamilyNamesToLaunchAfterLogOn List of semi-colon delimited Package Family Names of Windows apps. Listed Windows apps are to be launched after logon.​
+ AppManagementPackageFamilyNamesToLaunchAfterLogOn []string `json:"appManagementPackageFamilyNamesToLaunchAfterLogOn,omitempty"`
+ // PrivacyAccessControls undocumented
+ PrivacyAccessControls []WindowsPrivacyDataAccessControlItem `json:"privacyAccessControls,omitempty"`
+}
+
+// Windows10ImportedPFXCertificateProfile Windows 10 Desktop and Mobile PFX Import certificate profile
+type Windows10ImportedPFXCertificateProfile struct {
+ // WindowsCertificateProfileBase is the base model of Windows10ImportedPFXCertificateProfile
+ WindowsCertificateProfileBase
+ // IntendedPurpose Intended Purpose of the Certificate Profile - which could be Unassigned, SmimeEncryption, SmimeSigning etc.
+ IntendedPurpose *IntendedPurpose `json:"intendedPurpose,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// Windows10MobileCompliancePolicy This class contains compliance settings for Windows 10 Mobile.
+type Windows10MobileCompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of Windows10MobileCompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock Windows Phone device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordBlockSimple Whether or not to block syncing the calendar.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordMinimumLength Minimum password length. Valid values 4 to 16
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of.
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordExpirationDays Number of days before password expiration. Valid values 1 to 255
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordRequireToUnlockFromIdle Require a password to unlock an idle device.
+ PasswordRequireToUnlockFromIdle *bool `json:"passwordRequireToUnlockFromIdle,omitempty"`
+ // OsMinimumVersion Minimum Windows Phone version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Windows Phone version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // EarlyLaunchAntiMalwareDriverEnabled Require devices to be reported as healthy by Windows Device Health Attestation - early launch antimalware driver is enabled.
+ EarlyLaunchAntiMalwareDriverEnabled *bool `json:"earlyLaunchAntiMalwareDriverEnabled,omitempty"`
+ // BitLockerEnabled Require devices to be reported healthy by Windows Device Health Attestation - bit locker is enabled
+ BitLockerEnabled *bool `json:"bitLockerEnabled,omitempty"`
+ // SecureBootEnabled Require devices to be reported as healthy by Windows Device Health Attestation - secure boot is enabled.
+ SecureBootEnabled *bool `json:"secureBootEnabled,omitempty"`
+ // CodeIntegrityEnabled Require devices to be reported as healthy by Windows Device Health Attestation.
+ CodeIntegrityEnabled *bool `json:"codeIntegrityEnabled,omitempty"`
+ // StorageRequireEncryption Require encryption on windows devices.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+ // ActiveFirewallRequired Require active firewall on Windows devices.
+ ActiveFirewallRequired *bool `json:"activeFirewallRequired,omitempty"`
+ // ValidOperatingSystemBuildRanges The valid operating system build ranges on Windows devices. This collection can contain a maximum of 10000 elements.
+ ValidOperatingSystemBuildRanges []OperatingSystemVersionRange `json:"validOperatingSystemBuildRanges,omitempty"`
+}
+
+// Windows10NetworkBoundaryConfiguration Windows10 Network Boundary Configuration
+type Windows10NetworkBoundaryConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10NetworkBoundaryConfiguration
+ DeviceConfiguration
+ // WindowsNetworkIsolationPolicy Windows Network Isolation Policy
+ WindowsNetworkIsolationPolicy *WindowsNetworkIsolationPolicy `json:"windowsNetworkIsolationPolicy,omitempty"`
+}
+
+// Windows10NetworkProxyServer undocumented
+type Windows10NetworkProxyServer struct {
+ // Object is the base model of Windows10NetworkProxyServer
+ Object
+ // Address Address to the proxy server. Specify an address in the format <server>[“:”<port>]
+ Address *string `json:"address,omitempty"`
+ // Exceptions Addresses that should not use the proxy server. The system will not use the proxy server for addresses beginning with what is specified in this node.
+ Exceptions []string `json:"exceptions,omitempty"`
+ // UseForLocalAddresses Specifies whether the proxy server should be used for local (intranet) addresses.
+ UseForLocalAddresses *bool `json:"useForLocalAddresses,omitempty"`
+}
+
+// Windows10PFXImportCertificateProfile Deprecated
+type Windows10PFXImportCertificateProfile struct {
+ // DeviceConfiguration is the base model of Windows10PFXImportCertificateProfile
+ DeviceConfiguration
+ // KeyStorageProvider undocumented
+ KeyStorageProvider *KeyStorageProviderOption `json:"keyStorageProvider,omitempty"`
+}
+
+// Windows10PkcsCertificateProfile Windows 10 Desktop and Mobile PKCS certificate profile
+type Windows10PkcsCertificateProfile struct {
+ // Windows10CertificateProfileBase is the base model of Windows10PkcsCertificateProfile
+ Windows10CertificateProfileBase
+ // CertificationAuthority PKCS Certification Authority
+ CertificationAuthority *string `json:"certificationAuthority,omitempty"`
+ // CertificationAuthorityName PKCS Certification Authority Name
+ CertificationAuthorityName *string `json:"certificationAuthorityName,omitempty"`
+ // CertificateTemplateName PKCS Certificate Template Name
+ CertificateTemplateName *string `json:"certificateTemplateName,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// Windows10SecureAssessmentConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the secureAssessment resource.
+type Windows10SecureAssessmentConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10SecureAssessmentConfiguration
+ DeviceConfiguration
+ // LaunchURI Url link to an assessment that's automatically loaded when the secure assessment browser is launched. It has to be a valid Url (http[s]://msdn.microsoft.com/).
+ LaunchURI *string `json:"launchUri,omitempty"`
+ // ConfigurationAccount The account used to configure the Windows device for taking the test. The user can be a domain account (domain\user), an AAD account (username@tenant.com) or a local account (username).
+ ConfigurationAccount *string `json:"configurationAccount,omitempty"`
+ // ConfigurationAccountType The account type used to by ConfigurationAccount.
+ ConfigurationAccountType *SecureAssessmentAccountType `json:"configurationAccountType,omitempty"`
+ // AllowPrinting Indicates whether or not to allow the app from printing during the test.
+ AllowPrinting *bool `json:"allowPrinting,omitempty"`
+ // AllowScreenCapture Indicates whether or not to allow screen capture capability during a test.
+ AllowScreenCapture *bool `json:"allowScreenCapture,omitempty"`
+ // AllowTextSuggestion Indicates whether or not to allow text suggestions during the test.
+ AllowTextSuggestion *bool `json:"allowTextSuggestion,omitempty"`
+ // LocalGuestAccountName Specifies the display text for the local guest account shown on the sign-in screen. Typically is the name of an assessment. When the user clicks the local guest account on the sign-in screen, an assessment app is launched with a specified assessment URL. Secure assessments can only be configured with local guest account sign-in on devices running Windows 10, version 1903 or later. Important notice: this property must be set with assessmentAppUserModelID in order to make the local guest account sign-in experience work properly for secure assessments.
+ LocalGuestAccountName *string `json:"localGuestAccountName,omitempty"`
+ // AssessmentAppUserModelID Specifies the application user model ID of the assessment app launched when a user signs in to a secure assessment with a local guest account. Important notice: this property must be set with localGuestAccountName in order to make the local guest account sign-in experience work properly for secure assessments.
+ AssessmentAppUserModelID *string `json:"assessmentAppUserModelId,omitempty"`
+}
+
+// Windows10TeamGeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows10TeamGeneralConfiguration resource.
+type Windows10TeamGeneralConfiguration struct {
+ // DeviceConfiguration is the base model of Windows10TeamGeneralConfiguration
+ DeviceConfiguration
+ // AzureOperationalInsightsBlockTelemetry Indicates whether or not to Block Azure Operational Insights.
+ AzureOperationalInsightsBlockTelemetry *bool `json:"azureOperationalInsightsBlockTelemetry,omitempty"`
+ // AzureOperationalInsightsWorkspaceID The Azure Operational Insights workspace id.
+ AzureOperationalInsightsWorkspaceID *string `json:"azureOperationalInsightsWorkspaceId,omitempty"`
+ // AzureOperationalInsightsWorkspaceKey The Azure Operational Insights Workspace key.
+ AzureOperationalInsightsWorkspaceKey *string `json:"azureOperationalInsightsWorkspaceKey,omitempty"`
+ // ConnectAppBlockAutoLaunch Specifies whether to automatically launch the Connect app whenever a projection is initiated.
+ ConnectAppBlockAutoLaunch *bool `json:"connectAppBlockAutoLaunch,omitempty"`
+ // MaintenanceWindowBlocked Indicates whether or not to Block setting a maintenance window for device updates.
+ MaintenanceWindowBlocked *bool `json:"maintenanceWindowBlocked,omitempty"`
+ // MaintenanceWindowDurationInHours Maintenance window duration for device updates. Valid values 0 to 5
+ MaintenanceWindowDurationInHours *int `json:"maintenanceWindowDurationInHours,omitempty"`
+ // MaintenanceWindowStartTime Maintenance window start time for device updates.
+ MaintenanceWindowStartTime *TimeOfDay `json:"maintenanceWindowStartTime,omitempty"`
+ // MiracastChannel The channel.
+ MiracastChannel *MiracastChannel `json:"miracastChannel,omitempty"`
+ // MiracastBlocked Indicates whether or not to Block wireless projection.
+ MiracastBlocked *bool `json:"miracastBlocked,omitempty"`
+ // MiracastRequirePin Indicates whether or not to require a pin for wireless projection.
+ MiracastRequirePin *bool `json:"miracastRequirePin,omitempty"`
+ // SettingsBlockMyMeetingsAndFiles Specifies whether to disable the "My meetings and files" feature in the Start menu, which shows the signed-in user's meetings and files from Office 365.
+ SettingsBlockMyMeetingsAndFiles *bool `json:"settingsBlockMyMeetingsAndFiles,omitempty"`
+ // SettingsBlockSessionResume Specifies whether to allow the ability to resume a session when the session times out.
+ SettingsBlockSessionResume *bool `json:"settingsBlockSessionResume,omitempty"`
+ // SettingsBlockSigninSuggestions Specifies whether to disable auto-populating of the sign-in dialog with invitees from scheduled meetings.
+ SettingsBlockSigninSuggestions *bool `json:"settingsBlockSigninSuggestions,omitempty"`
+ // SettingsDefaultVolume Specifies the default volume value for a new session. Permitted values are 0-100. The default is 45. Valid values 0 to 100
+ SettingsDefaultVolume *int `json:"settingsDefaultVolume,omitempty"`
+ // SettingsScreenTimeoutInMinutes Specifies the number of minutes until the Hub screen turns off.
+ SettingsScreenTimeoutInMinutes *int `json:"settingsScreenTimeoutInMinutes,omitempty"`
+ // SettingsSessionTimeoutInMinutes Specifies the number of minutes until the session times out.
+ SettingsSessionTimeoutInMinutes *int `json:"settingsSessionTimeoutInMinutes,omitempty"`
+ // SettingsSleepTimeoutInMinutes Specifies the number of minutes until the Hub enters sleep mode.
+ SettingsSleepTimeoutInMinutes *int `json:"settingsSleepTimeoutInMinutes,omitempty"`
+ // WelcomeScreenBlockAutomaticWakeUp Indicates whether or not to Block the welcome screen from waking up automatically when someone enters the room.
+ WelcomeScreenBlockAutomaticWakeUp *bool `json:"welcomeScreenBlockAutomaticWakeUp,omitempty"`
+ // WelcomeScreenBackgroundImageURL The welcome screen background image URL. The URL must use the HTTPS protocol and return a PNG image.
+ WelcomeScreenBackgroundImageURL *string `json:"welcomeScreenBackgroundImageUrl,omitempty"`
+ // WelcomeScreenMeetingInformation The welcome screen meeting information shown.
+ WelcomeScreenMeetingInformation *WelcomeScreenMeetingInformation `json:"welcomeScreenMeetingInformation,omitempty"`
+}
+
+// Windows10VpnConfiguration By providing the configurations in this profile you can instruct the Windows 10 device (desktop or mobile) to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type Windows10VpnConfiguration struct {
+ // WindowsVPNConfiguration is the base model of Windows10VpnConfiguration
+ WindowsVPNConfiguration
+ // ProfileTarget Profile target type.
+ ProfileTarget *Windows10VpnProfileTarget `json:"profileTarget,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *Windows10VpnConnectionType `json:"connectionType,omitempty"`
+ // EnableSplitTunneling Enable split tunneling.
+ EnableSplitTunneling *bool `json:"enableSplitTunneling,omitempty"`
+ // EnableAlwaysOn Enable Always On mode.
+ EnableAlwaysOn *bool `json:"enableAlwaysOn,omitempty"`
+ // EnableDeviceTunnel Enable device tunnel.
+ EnableDeviceTunnel *bool `json:"enableDeviceTunnel,omitempty"`
+ // EnableDNSRegistration Enable IP address registration with internal DNS.
+ EnableDNSRegistration *bool `json:"enableDnsRegistration,omitempty"`
+ // DNSSuffixes Specify DNS suffixes to add to the DNS search list to properly route short names.
+ DNSSuffixes []string `json:"dnsSuffixes,omitempty"`
+ // AuthenticationMethod Authentication method.
+ AuthenticationMethod *Windows10VpnAuthenticationMethod `json:"authenticationMethod,omitempty"`
+ // RememberUserCredentials Remember user credentials.
+ RememberUserCredentials *bool `json:"rememberUserCredentials,omitempty"`
+ // EnableConditionalAccess Enable conditional access.
+ EnableConditionalAccess *bool `json:"enableConditionalAccess,omitempty"`
+ // EnableSingleSignOnWithAlternateCertificate Enable single sign-on (SSO) with alternate certificate.
+ EnableSingleSignOnWithAlternateCertificate *bool `json:"enableSingleSignOnWithAlternateCertificate,omitempty"`
+ // SingleSignOnEku Single sign-on Extended Key Usage (EKU).
+ SingleSignOnEku *ExtendedKeyUsage `json:"singleSignOnEku,omitempty"`
+ // SingleSignOnIssuerHash Single sign-on issuer hash.
+ SingleSignOnIssuerHash *string `json:"singleSignOnIssuerHash,omitempty"`
+ // EapXML Extensible Authentication Protocol (EAP) XML. (UTF8 encoded byte array)
+ EapXML *Binary `json:"eapXml,omitempty"`
+ // ProxyServer Proxy Server.
+ ProxyServer *Windows10VpnProxyServer `json:"proxyServer,omitempty"`
+ // AssociatedApps Associated Apps. This collection can contain a maximum of 10000 elements.
+ AssociatedApps []Windows10AssociatedApps `json:"associatedApps,omitempty"`
+ // OnlyAssociatedAppsCanUseConnection Only associated Apps can use connection (per-app VPN).
+ OnlyAssociatedAppsCanUseConnection *bool `json:"onlyAssociatedAppsCanUseConnection,omitempty"`
+ // WindowsInformationProtectionDomain Windows Information Protection (WIP) domain to associate with this connection.
+ WindowsInformationProtectionDomain *string `json:"windowsInformationProtectionDomain,omitempty"`
+ // TrafficRules Traffic rules. This collection can contain a maximum of 1000 elements.
+ TrafficRules []VPNTrafficRule `json:"trafficRules,omitempty"`
+ // Routes Routes (optional for third-party providers). This collection can contain a maximum of 1000 elements.
+ Routes []VPNRoute `json:"routes,omitempty"`
+ // DNSRules DNS rules. This collection can contain a maximum of 1000 elements.
+ DNSRules []VPNDNSRule `json:"dnsRules,omitempty"`
+ // TrustedNetworkDomains Trusted Network Domains
+ TrustedNetworkDomains []string `json:"trustedNetworkDomains,omitempty"`
+ // IdentityCertificate undocumented
+ IdentityCertificate *WindowsCertificateProfileBase `json:"identityCertificate,omitempty"`
+}
+
+// Windows10VpnProxyServer undocumented
+type Windows10VpnProxyServer struct {
+ // VPNProxyServer is the base model of Windows10VpnProxyServer
+ VPNProxyServer
+ // BypassProxyServerForLocalAddress Bypass proxy server for local address.
+ BypassProxyServerForLocalAddress *bool `json:"bypassProxyServerForLocalAddress,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows81.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows81.go
new file mode 100644
index 00000000..c499e4fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWindows81.go
@@ -0,0 +1,191 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// Windows81CertificateProfileBase Device Configuration.
+type Windows81CertificateProfileBase struct {
+ // WindowsCertificateProfileBase is the base model of Windows81CertificateProfileBase
+ WindowsCertificateProfileBase
+ // ExtendedKeyUsages Extended Key Usage (EKU) settings. This collection can contain a maximum of 500 elements.
+ ExtendedKeyUsages []ExtendedKeyUsage `json:"extendedKeyUsages,omitempty"`
+ // CustomSubjectAlternativeNames Custom Subject Alternative Name Settings. This collection can contain a maximum of 500 elements.
+ CustomSubjectAlternativeNames []CustomSubjectAlternativeName `json:"customSubjectAlternativeNames,omitempty"`
+}
+
+// Windows81CompliancePolicy This class contains compliance settings for Windows 8.1.
+type Windows81CompliancePolicy struct {
+ // DeviceCompliancePolicy is the base model of Windows81CompliancePolicy
+ DeviceCompliancePolicy
+ // PasswordRequired Require a password to unlock Windows device.
+ PasswordRequired *bool `json:"passwordRequired,omitempty"`
+ // PasswordBlockSimple Indicates whether or not to block simple password.
+ PasswordBlockSimple *bool `json:"passwordBlockSimple,omitempty"`
+ // PasswordExpirationDays Password expiration in days.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength The minimum password length.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeLock Minutes of inactivity before a password is required.
+ PasswordMinutesOfInactivityBeforeLock *int `json:"passwordMinutesOfInactivityBeforeLock,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // OsMinimumVersion Minimum Windows 8.1 version.
+ OsMinimumVersion *string `json:"osMinimumVersion,omitempty"`
+ // OsMaximumVersion Maximum Windows 8.1 version.
+ OsMaximumVersion *string `json:"osMaximumVersion,omitempty"`
+ // StorageRequireEncryption Indicates whether or not to require encryption on a windows 8.1 device.
+ StorageRequireEncryption *bool `json:"storageRequireEncryption,omitempty"`
+}
+
+// Windows81GeneralConfiguration This topic provides descriptions of the declared methods, properties and relationships exposed by the windows81GeneralConfiguration resource.
+type Windows81GeneralConfiguration struct {
+ // DeviceConfiguration is the base model of Windows81GeneralConfiguration
+ DeviceConfiguration
+ // AccountsBlockAddingNonMicrosoftAccountEmail Indicates whether or not to Block the user from adding email accounts to the device that are not associated with a Microsoft account.
+ AccountsBlockAddingNonMicrosoftAccountEmail *bool `json:"accountsBlockAddingNonMicrosoftAccountEmail,omitempty"`
+ // ApplyOnlyToWindows81 Value indicating whether this policy only applies to Windows 8.1. This property is read-only.
+ ApplyOnlyToWindows81 *bool `json:"applyOnlyToWindows81,omitempty"`
+ // BrowserBlockAutofill Indicates whether or not to block auto fill.
+ BrowserBlockAutofill *bool `json:"browserBlockAutofill,omitempty"`
+ // BrowserBlockAutomaticDetectionOfIntranetSites Indicates whether or not to block automatic detection of Intranet sites.
+ BrowserBlockAutomaticDetectionOfIntranetSites *bool `json:"browserBlockAutomaticDetectionOfIntranetSites,omitempty"`
+ // BrowserBlockEnterpriseModeAccess Indicates whether or not to block enterprise mode access.
+ BrowserBlockEnterpriseModeAccess *bool `json:"browserBlockEnterpriseModeAccess,omitempty"`
+ // BrowserBlockJavaScript Indicates whether or not to Block the user from using JavaScript.
+ BrowserBlockJavaScript *bool `json:"browserBlockJavaScript,omitempty"`
+ // BrowserBlockPlugins Indicates whether or not to block plug-ins.
+ BrowserBlockPlugins *bool `json:"browserBlockPlugins,omitempty"`
+ // BrowserBlockPopups Indicates whether or not to block popups.
+ BrowserBlockPopups *bool `json:"browserBlockPopups,omitempty"`
+ // BrowserBlockSendingDoNotTrackHeader Indicates whether or not to Block the user from sending the do not track header.
+ BrowserBlockSendingDoNotTrackHeader *bool `json:"browserBlockSendingDoNotTrackHeader,omitempty"`
+ // BrowserBlockSingleWordEntryOnIntranetSites Indicates whether or not to block a single word entry on Intranet sites.
+ BrowserBlockSingleWordEntryOnIntranetSites *bool `json:"browserBlockSingleWordEntryOnIntranetSites,omitempty"`
+ // BrowserRequireSmartScreen Indicates whether or not to require the user to use the smart screen filter.
+ BrowserRequireSmartScreen *bool `json:"browserRequireSmartScreen,omitempty"`
+ // BrowserEnterpriseModeSiteListLocation The enterprise mode site list location. Could be a local file, local network or http location.
+ BrowserEnterpriseModeSiteListLocation *string `json:"browserEnterpriseModeSiteListLocation,omitempty"`
+ // BrowserInternetSecurityLevel The internet security level.
+ BrowserInternetSecurityLevel *InternetSiteSecurityLevel `json:"browserInternetSecurityLevel,omitempty"`
+ // BrowserIntranetSecurityLevel The Intranet security level.
+ BrowserIntranetSecurityLevel *SiteSecurityLevel `json:"browserIntranetSecurityLevel,omitempty"`
+ // BrowserLoggingReportLocation The logging report location.
+ BrowserLoggingReportLocation *string `json:"browserLoggingReportLocation,omitempty"`
+ // BrowserRequireHighSecurityForRestrictedSites Indicates whether or not to require high security for restricted sites.
+ BrowserRequireHighSecurityForRestrictedSites *bool `json:"browserRequireHighSecurityForRestrictedSites,omitempty"`
+ // BrowserRequireFirewall Indicates whether or not to require a firewall.
+ BrowserRequireFirewall *bool `json:"browserRequireFirewall,omitempty"`
+ // BrowserRequireFraudWarning Indicates whether or not to require fraud warning.
+ BrowserRequireFraudWarning *bool `json:"browserRequireFraudWarning,omitempty"`
+ // BrowserTrustedSitesSecurityLevel The trusted sites security level.
+ BrowserTrustedSitesSecurityLevel *SiteSecurityLevel `json:"browserTrustedSitesSecurityLevel,omitempty"`
+ // CellularBlockDataRoaming Indicates whether or not to block data roaming.
+ CellularBlockDataRoaming *bool `json:"cellularBlockDataRoaming,omitempty"`
+ // DiagnosticsBlockDataSubmission Indicates whether or not to block diagnostic data submission.
+ DiagnosticsBlockDataSubmission *bool `json:"diagnosticsBlockDataSubmission,omitempty"`
+ // PasswordBlockPicturePasswordAndPin Indicates whether or not to Block the user from using a pictures password and pin.
+ PasswordBlockPicturePasswordAndPin *bool `json:"passwordBlockPicturePasswordAndPin,omitempty"`
+ // PasswordExpirationDays Password expiration in days.
+ PasswordExpirationDays *int `json:"passwordExpirationDays,omitempty"`
+ // PasswordMinimumLength The minimum password length.
+ PasswordMinimumLength *int `json:"passwordMinimumLength,omitempty"`
+ // PasswordMinutesOfInactivityBeforeScreenTimeout The minutes of inactivity before the screen times out.
+ PasswordMinutesOfInactivityBeforeScreenTimeout *int `json:"passwordMinutesOfInactivityBeforeScreenTimeout,omitempty"`
+ // PasswordMinimumCharacterSetCount The number of character sets required in the password.
+ PasswordMinimumCharacterSetCount *int `json:"passwordMinimumCharacterSetCount,omitempty"`
+ // PasswordPreviousPasswordBlockCount The number of previous passwords to prevent re-use of. Valid values 0 to 24
+ PasswordPreviousPasswordBlockCount *int `json:"passwordPreviousPasswordBlockCount,omitempty"`
+ // PasswordRequiredType The required password type.
+ PasswordRequiredType *RequiredPasswordType `json:"passwordRequiredType,omitempty"`
+ // PasswordSignInFailureCountBeforeFactoryReset The number of sign in failures before factory reset.
+ PasswordSignInFailureCountBeforeFactoryReset *int `json:"passwordSignInFailureCountBeforeFactoryReset,omitempty"`
+ // StorageRequireDeviceEncryption Indicates whether or not to require encryption on a mobile device.
+ StorageRequireDeviceEncryption *bool `json:"storageRequireDeviceEncryption,omitempty"`
+ // MinimumAutoInstallClassification The minimum update classification to install automatically.
+ MinimumAutoInstallClassification *UpdateClassification `json:"minimumAutoInstallClassification,omitempty"`
+ // UpdatesMinimumAutoInstallClassification The minimum update classification to install automatically.
+ UpdatesMinimumAutoInstallClassification *UpdateClassification `json:"updatesMinimumAutoInstallClassification,omitempty"`
+ // UpdatesRequireAutomaticUpdates Indicates whether or not to require automatic updates.
+ UpdatesRequireAutomaticUpdates *bool `json:"updatesRequireAutomaticUpdates,omitempty"`
+ // UserAccountControlSettings The user account control settings.
+ UserAccountControlSettings *WindowsUserAccountControlSettings `json:"userAccountControlSettings,omitempty"`
+ // WorkFoldersURL The work folders url.
+ WorkFoldersURL *string `json:"workFoldersUrl,omitempty"`
+}
+
+// Windows81SCEPCertificateProfile Windows 8.1+ SCEP certificate profile
+type Windows81SCEPCertificateProfile struct {
+ // Windows81CertificateProfileBase is the base model of Windows81SCEPCertificateProfile
+ Windows81CertificateProfileBase
+ // ScepServerUrls SCEP Server Url(s).
+ ScepServerUrls []string `json:"scepServerUrls,omitempty"`
+ // SubjectNameFormatString Custom format to use with SubjectNameFormat = Custom. Example: CN={{EmailAddress}},E={{EmailAddress}},OU=Enterprise Users,O=Contoso Corporation,L=Redmond,ST=WA,C=US
+ SubjectNameFormatString *string `json:"subjectNameFormatString,omitempty"`
+ // KeyUsage SCEP Key Usage.
+ KeyUsage *KeyUsages `json:"keyUsage,omitempty"`
+ // KeySize SCEP Key Size.
+ KeySize *KeySize `json:"keySize,omitempty"`
+ // HashAlgorithm SCEP Hash Algorithm.
+ HashAlgorithm *HashAlgorithms `json:"hashAlgorithm,omitempty"`
+ // SubjectAlternativeNameFormatString Custom String that defines the AAD Attribute.
+ SubjectAlternativeNameFormatString *string `json:"subjectAlternativeNameFormatString,omitempty"`
+ // CertificateStore Target store certificate
+ CertificateStore *CertificateStore `json:"certificateStore,omitempty"`
+ // RootCertificate undocumented
+ RootCertificate *Windows81TrustedRootCertificate `json:"rootCertificate,omitempty"`
+ // ManagedDeviceCertificateStates undocumented
+ ManagedDeviceCertificateStates []ManagedDeviceCertificateState `json:"managedDeviceCertificateStates,omitempty"`
+}
+
+// Windows81TrustedRootCertificate Windows 8.1 Trusted Certificate configuration profile
+type Windows81TrustedRootCertificate struct {
+ // DeviceConfiguration is the base model of Windows81TrustedRootCertificate
+ DeviceConfiguration
+ // TrustedRootCertificate Trusted Root Certificate
+ TrustedRootCertificate *Binary `json:"trustedRootCertificate,omitempty"`
+ // CertFileName File name to display in UI.
+ CertFileName *string `json:"certFileName,omitempty"`
+ // DestinationStore Destination store location for the Trusted Root Certificate.
+ DestinationStore *CertificateDestinationStore `json:"destinationStore,omitempty"`
+}
+
+// Windows81VpnConfiguration By providing the configurations in this profile you can instruct the Windows 8.1 (and later) devices to connect to desired VPN endpoint. By specifying the authentication method and security types expected by VPN endpoint you can make the VPN connection seamless for end user.
+type Windows81VpnConfiguration struct {
+ // WindowsVPNConfiguration is the base model of Windows81VpnConfiguration
+ WindowsVPNConfiguration
+ // ApplyOnlyToWindows81 Value indicating whether this policy only applies to Windows 8.1. This property is read-only.
+ ApplyOnlyToWindows81 *bool `json:"applyOnlyToWindows81,omitempty"`
+ // ConnectionType Connection type.
+ ConnectionType *WindowsVPNConnectionType `json:"connectionType,omitempty"`
+ // LoginGroupOrDomain Login group or domain when connection type is set to Dell SonicWALL Mobile Connection.
+ LoginGroupOrDomain *string `json:"loginGroupOrDomain,omitempty"`
+ // EnableSplitTunneling Enable split tunneling for the VPN.
+ EnableSplitTunneling *bool `json:"enableSplitTunneling,omitempty"`
+ // ProxyServer Proxy Server.
+ ProxyServer *Windows81VpnProxyServer `json:"proxyServer,omitempty"`
+}
+
+// Windows81VpnProxyServer undocumented
+type Windows81VpnProxyServer struct {
+ // VPNProxyServer is the base model of Windows81VpnProxyServer
+ VPNProxyServer
+ // AutomaticallyDetectProxySettings Automatically detect proxy settings.
+ AutomaticallyDetectProxySettings *bool `json:"automaticallyDetectProxySettings,omitempty"`
+ // BypassProxyServerForLocalAddress Bypass proxy server for local address.
+ BypassProxyServerForLocalAddress *bool `json:"bypassProxyServerForLocalAddress,omitempty"`
+}
+
+// Windows81WifiImportConfiguration Windows 8.1+ Wi-Fi import configuration. By configuring this profile you can instruct Windows 8.1 (and later) devices to connect to desired Wi-Fi endpoint. Connect a Windows 8.1 device to the desired Wi-Fi network and extract the XML from that device to later embed into this Wi-Fi profile.
+type Windows81WifiImportConfiguration struct {
+ // DeviceConfiguration is the base model of Windows81WifiImportConfiguration
+ DeviceConfiguration
+ // PayloadFileName Payload file name (*.xml).
+ PayloadFileName *string `json:"payloadFileName,omitempty"`
+ // ProfileName Profile name displayed in the UI.
+ ProfileName *string `json:"profileName,omitempty"`
+ // Payload Payload. (UTF8 encoded byte array). This is the XML file saved on the device you used to connect to the Wi-Fi endpoint.
+ Payload *Binary `json:"payload,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWork.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWork.go
new file mode 100644
index 00000000..767879ca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWork.go
@@ -0,0 +1,13 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkPosition undocumented
+type WorkPosition struct {
+ // ItemFacet is the base model of WorkPosition
+ ItemFacet
+ // Categories undocumented
+ Categories []string `json:"categories,omitempty"`
+ // Detail undocumented
+ Detail *PositionDetail `json:"detail,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkbook.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkbook.go
new file mode 100644
index 00000000..86361184
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkbook.go
@@ -0,0 +1,747 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "encoding/json"
+
+// Workbook undocumented
+type Workbook struct {
+ // Entity is the base model of Workbook
+ Entity
+ // Application undocumented
+ Application *WorkbookApplication `json:"application,omitempty"`
+ // Names undocumented
+ Names []WorkbookNamedItem `json:"names,omitempty"`
+ // Tables undocumented
+ Tables []WorkbookTable `json:"tables,omitempty"`
+ // Worksheets undocumented
+ Worksheets []WorkbookWorksheet `json:"worksheets,omitempty"`
+ // Comments undocumented
+ Comments []WorkbookComment `json:"comments,omitempty"`
+ // Functions undocumented
+ Functions *WorkbookFunctions `json:"functions,omitempty"`
+}
+
+// WorkbookApplication undocumented
+type WorkbookApplication struct {
+ // Entity is the base model of WorkbookApplication
+ Entity
+ // CalculationMode undocumented
+ CalculationMode *string `json:"calculationMode,omitempty"`
+}
+
+// WorkbookChart undocumented
+type WorkbookChart struct {
+ // Entity is the base model of WorkbookChart
+ Entity
+ // Height undocumented
+ Height *float64 `json:"height,omitempty"`
+ // Left undocumented
+ Left *float64 `json:"left,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Top undocumented
+ Top *float64 `json:"top,omitempty"`
+ // Width undocumented
+ Width *float64 `json:"width,omitempty"`
+ // Axes undocumented
+ Axes *WorkbookChartAxes `json:"axes,omitempty"`
+ // DataLabels undocumented
+ DataLabels *WorkbookChartDataLabels `json:"dataLabels,omitempty"`
+ // Format undocumented
+ Format *WorkbookChartAreaFormat `json:"format,omitempty"`
+ // Legend undocumented
+ Legend *WorkbookChartLegend `json:"legend,omitempty"`
+ // Series undocumented
+ Series []WorkbookChartSeries `json:"series,omitempty"`
+ // Title undocumented
+ Title *WorkbookChartTitle `json:"title,omitempty"`
+ // Worksheet undocumented
+ Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"`
+}
+
+// WorkbookChartAreaFormat undocumented
+type WorkbookChartAreaFormat struct {
+ // Entity is the base model of WorkbookChartAreaFormat
+ Entity
+ // Fill undocumented
+ Fill *WorkbookChartFill `json:"fill,omitempty"`
+ // Font undocumented
+ Font *WorkbookChartFont `json:"font,omitempty"`
+}
+
+// WorkbookChartAxes undocumented
+type WorkbookChartAxes struct {
+ // Entity is the base model of WorkbookChartAxes
+ Entity
+ // CategoryAxis undocumented
+ CategoryAxis *WorkbookChartAxis `json:"categoryAxis,omitempty"`
+ // SeriesAxis undocumented
+ SeriesAxis *WorkbookChartAxis `json:"seriesAxis,omitempty"`
+ // ValueAxis undocumented
+ ValueAxis *WorkbookChartAxis `json:"valueAxis,omitempty"`
+}
+
+// WorkbookChartAxis undocumented
+type WorkbookChartAxis struct {
+ // Entity is the base model of WorkbookChartAxis
+ Entity
+ // MajorUnit undocumented
+ MajorUnit json.RawMessage `json:"majorUnit,omitempty"`
+ // Maximum undocumented
+ Maximum json.RawMessage `json:"maximum,omitempty"`
+ // Minimum undocumented
+ Minimum json.RawMessage `json:"minimum,omitempty"`
+ // MinorUnit undocumented
+ MinorUnit json.RawMessage `json:"minorUnit,omitempty"`
+ // Format undocumented
+ Format *WorkbookChartAxisFormat `json:"format,omitempty"`
+ // MajorGridlines undocumented
+ MajorGridlines *WorkbookChartGridlines `json:"majorGridlines,omitempty"`
+ // MinorGridlines undocumented
+ MinorGridlines *WorkbookChartGridlines `json:"minorGridlines,omitempty"`
+ // Title undocumented
+ Title *WorkbookChartAxisTitle `json:"title,omitempty"`
+}
+
+// WorkbookChartAxisFormat undocumented
+type WorkbookChartAxisFormat struct {
+ // Entity is the base model of WorkbookChartAxisFormat
+ Entity
+ // Font undocumented
+ Font *WorkbookChartFont `json:"font,omitempty"`
+ // Line undocumented
+ Line *WorkbookChartLineFormat `json:"line,omitempty"`
+}
+
+// WorkbookChartAxisTitle undocumented
+type WorkbookChartAxisTitle struct {
+ // Entity is the base model of WorkbookChartAxisTitle
+ Entity
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // Visible undocumented
+ Visible *bool `json:"visible,omitempty"`
+ // Format undocumented
+ Format *WorkbookChartAxisTitleFormat `json:"format,omitempty"`
+}
+
+// WorkbookChartAxisTitleFormat undocumented
+type WorkbookChartAxisTitleFormat struct {
+ // Entity is the base model of WorkbookChartAxisTitleFormat
+ Entity
+ // Font undocumented
+ Font *WorkbookChartFont `json:"font,omitempty"`
+}
+
+// WorkbookChartDataLabelFormat undocumented
+type WorkbookChartDataLabelFormat struct {
+ // Entity is the base model of WorkbookChartDataLabelFormat
+ Entity
+ // Fill undocumented
+ Fill *WorkbookChartFill `json:"fill,omitempty"`
+ // Font undocumented
+ Font *WorkbookChartFont `json:"font,omitempty"`
+}
+
+// WorkbookChartDataLabels undocumented
+type WorkbookChartDataLabels struct {
+ // Entity is the base model of WorkbookChartDataLabels
+ Entity
+ // Position undocumented
+ Position *string `json:"position,omitempty"`
+ // Separator undocumented
+ Separator *string `json:"separator,omitempty"`
+ // ShowBubbleSize undocumented
+ ShowBubbleSize *bool `json:"showBubbleSize,omitempty"`
+ // ShowCategoryName undocumented
+ ShowCategoryName *bool `json:"showCategoryName,omitempty"`
+ // ShowLegendKey undocumented
+ ShowLegendKey *bool `json:"showLegendKey,omitempty"`
+ // ShowPercentage undocumented
+ ShowPercentage *bool `json:"showPercentage,omitempty"`
+ // ShowSeriesName undocumented
+ ShowSeriesName *bool `json:"showSeriesName,omitempty"`
+ // ShowValue undocumented
+ ShowValue *bool `json:"showValue,omitempty"`
+ // Format undocumented
+ Format *WorkbookChartDataLabelFormat `json:"format,omitempty"`
+}
+
+// WorkbookChartFill undocumented
+type WorkbookChartFill struct {
+ // Entity is the base model of WorkbookChartFill
+ Entity
+}
+
+// WorkbookChartFont undocumented
+type WorkbookChartFont struct {
+ // Entity is the base model of WorkbookChartFont
+ Entity
+ // Bold undocumented
+ Bold *bool `json:"bold,omitempty"`
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+ // Italic undocumented
+ Italic *bool `json:"italic,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Size undocumented
+ Size *float64 `json:"size,omitempty"`
+ // Underline undocumented
+ Underline *string `json:"underline,omitempty"`
+}
+
+// WorkbookChartGridlines undocumented
+type WorkbookChartGridlines struct {
+ // Entity is the base model of WorkbookChartGridlines
+ Entity
+ // Visible undocumented
+ Visible *bool `json:"visible,omitempty"`
+ // Format undocumented
+ Format *WorkbookChartGridlinesFormat `json:"format,omitempty"`
+}
+
+// WorkbookChartGridlinesFormat undocumented
+type WorkbookChartGridlinesFormat struct {
+ // Entity is the base model of WorkbookChartGridlinesFormat
+ Entity
+ // Line undocumented
+ Line *WorkbookChartLineFormat `json:"line,omitempty"`
+}
+
+// WorkbookChartLegend undocumented
+type WorkbookChartLegend struct {
+ // Entity is the base model of WorkbookChartLegend
+ Entity
+ // Overlay undocumented
+ Overlay *bool `json:"overlay,omitempty"`
+ // Position undocumented
+ Position *string `json:"position,omitempty"`
+ // Visible undocumented
+ Visible *bool `json:"visible,omitempty"`
+ // Format undocumented
+ Format *WorkbookChartLegendFormat `json:"format,omitempty"`
+}
+
+// WorkbookChartLegendFormat undocumented
+type WorkbookChartLegendFormat struct {
+ // Entity is the base model of WorkbookChartLegendFormat
+ Entity
+ // Fill undocumented
+ Fill *WorkbookChartFill `json:"fill,omitempty"`
+ // Font undocumented
+ Font *WorkbookChartFont `json:"font,omitempty"`
+}
+
+// WorkbookChartLineFormat undocumented
+type WorkbookChartLineFormat struct {
+ // Entity is the base model of WorkbookChartLineFormat
+ Entity
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+}
+
+// WorkbookChartPoint undocumented
+type WorkbookChartPoint struct {
+ // Entity is the base model of WorkbookChartPoint
+ Entity
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+ // Format undocumented
+ Format *WorkbookChartPointFormat `json:"format,omitempty"`
+}
+
+// WorkbookChartPointFormat undocumented
+type WorkbookChartPointFormat struct {
+ // Entity is the base model of WorkbookChartPointFormat
+ Entity
+ // Fill undocumented
+ Fill *WorkbookChartFill `json:"fill,omitempty"`
+}
+
+// WorkbookChartSeries undocumented
+type WorkbookChartSeries struct {
+ // Entity is the base model of WorkbookChartSeries
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Format undocumented
+ Format *WorkbookChartSeriesFormat `json:"format,omitempty"`
+ // Points undocumented
+ Points []WorkbookChartPoint `json:"points,omitempty"`
+}
+
+// WorkbookChartSeriesFormat undocumented
+type WorkbookChartSeriesFormat struct {
+ // Entity is the base model of WorkbookChartSeriesFormat
+ Entity
+ // Fill undocumented
+ Fill *WorkbookChartFill `json:"fill,omitempty"`
+ // Line undocumented
+ Line *WorkbookChartLineFormat `json:"line,omitempty"`
+}
+
+// WorkbookChartTitle undocumented
+type WorkbookChartTitle struct {
+ // Entity is the base model of WorkbookChartTitle
+ Entity
+ // Overlay undocumented
+ Overlay *bool `json:"overlay,omitempty"`
+ // Text undocumented
+ Text *string `json:"text,omitempty"`
+ // Visible undocumented
+ Visible *bool `json:"visible,omitempty"`
+ // Format undocumented
+ Format *WorkbookChartTitleFormat `json:"format,omitempty"`
+}
+
+// WorkbookChartTitleFormat undocumented
+type WorkbookChartTitleFormat struct {
+ // Entity is the base model of WorkbookChartTitleFormat
+ Entity
+ // Fill undocumented
+ Fill *WorkbookChartFill `json:"fill,omitempty"`
+ // Font undocumented
+ Font *WorkbookChartFont `json:"font,omitempty"`
+}
+
+// WorkbookComment undocumented
+type WorkbookComment struct {
+ // Entity is the base model of WorkbookComment
+ Entity
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+ // Replies undocumented
+ Replies []WorkbookCommentReply `json:"replies,omitempty"`
+}
+
+// WorkbookCommentReply undocumented
+type WorkbookCommentReply struct {
+ // Entity is the base model of WorkbookCommentReply
+ Entity
+ // Content undocumented
+ Content *string `json:"content,omitempty"`
+ // ContentType undocumented
+ ContentType *string `json:"contentType,omitempty"`
+}
+
+// WorkbookFilter undocumented
+type WorkbookFilter struct {
+ // Entity is the base model of WorkbookFilter
+ Entity
+ // Criteria undocumented
+ Criteria *WorkbookFilterCriteria `json:"criteria,omitempty"`
+}
+
+// WorkbookFilterCriteria undocumented
+type WorkbookFilterCriteria struct {
+ // Object is the base model of WorkbookFilterCriteria
+ Object
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+ // Criterion1 undocumented
+ Criterion1 *string `json:"criterion1,omitempty"`
+ // Criterion2 undocumented
+ Criterion2 *string `json:"criterion2,omitempty"`
+ // DynamicCriteria undocumented
+ DynamicCriteria *string `json:"dynamicCriteria,omitempty"`
+ // FilterOn undocumented
+ FilterOn *string `json:"filterOn,omitempty"`
+ // Icon undocumented
+ Icon *WorkbookIcon `json:"icon,omitempty"`
+ // Operator undocumented
+ Operator *string `json:"operator,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookFilterDatetime undocumented
+type WorkbookFilterDatetime struct {
+ // Object is the base model of WorkbookFilterDatetime
+ Object
+ // Date undocumented
+ Date *string `json:"date,omitempty"`
+ // Specificity undocumented
+ Specificity *string `json:"specificity,omitempty"`
+}
+
+// WorkbookFormatProtection undocumented
+type WorkbookFormatProtection struct {
+ // Entity is the base model of WorkbookFormatProtection
+ Entity
+ // FormulaHidden undocumented
+ FormulaHidden *bool `json:"formulaHidden,omitempty"`
+ // Locked undocumented
+ Locked *bool `json:"locked,omitempty"`
+}
+
+// WorkbookFunctionResult undocumented
+type WorkbookFunctionResult struct {
+ // Entity is the base model of WorkbookFunctionResult
+ Entity
+ // Error undocumented
+ Error *string `json:"error,omitempty"`
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+}
+
+// WorkbookFunctions undocumented
+type WorkbookFunctions struct {
+ // Entity is the base model of WorkbookFunctions
+ Entity
+}
+
+// WorkbookIcon undocumented
+type WorkbookIcon struct {
+ // Object is the base model of WorkbookIcon
+ Object
+ // Index undocumented
+ Index *int `json:"index,omitempty"`
+ // Set undocumented
+ Set *string `json:"set,omitempty"`
+}
+
+// WorkbookNamedItem undocumented
+type WorkbookNamedItem struct {
+ // Entity is the base model of WorkbookNamedItem
+ Entity
+ // Comment undocumented
+ Comment *string `json:"comment,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Scope undocumented
+ Scope *string `json:"scope,omitempty"`
+ // Type undocumented
+ Type *string `json:"type,omitempty"`
+ // Value undocumented
+ Value json.RawMessage `json:"value,omitempty"`
+ // Visible undocumented
+ Visible *bool `json:"visible,omitempty"`
+ // Worksheet undocumented
+ Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"`
+}
+
+// WorkbookPivotTable undocumented
+type WorkbookPivotTable struct {
+ // Entity is the base model of WorkbookPivotTable
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Worksheet undocumented
+ Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"`
+}
+
+// WorkbookRange undocumented
+type WorkbookRange struct {
+ // Entity is the base model of WorkbookRange
+ Entity
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+ // AddressLocal undocumented
+ AddressLocal *string `json:"addressLocal,omitempty"`
+ // CellCount undocumented
+ CellCount *int `json:"cellCount,omitempty"`
+ // ColumnCount undocumented
+ ColumnCount *int `json:"columnCount,omitempty"`
+ // ColumnHidden undocumented
+ ColumnHidden *bool `json:"columnHidden,omitempty"`
+ // ColumnIndex undocumented
+ ColumnIndex *int `json:"columnIndex,omitempty"`
+ // Formulas undocumented
+ Formulas json.RawMessage `json:"formulas,omitempty"`
+ // FormulasLocal undocumented
+ FormulasLocal json.RawMessage `json:"formulasLocal,omitempty"`
+ // FormulasR1C1 undocumented
+ FormulasR1C1 json.RawMessage `json:"formulasR1C1,omitempty"`
+ // Hidden undocumented
+ Hidden *bool `json:"hidden,omitempty"`
+ // NumberFormat undocumented
+ NumberFormat json.RawMessage `json:"numberFormat,omitempty"`
+ // RowCount undocumented
+ RowCount *int `json:"rowCount,omitempty"`
+ // RowHidden undocumented
+ RowHidden *bool `json:"rowHidden,omitempty"`
+ // RowIndex undocumented
+ RowIndex *int `json:"rowIndex,omitempty"`
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // ValueTypes undocumented
+ ValueTypes json.RawMessage `json:"valueTypes,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+ // Format undocumented
+ Format *WorkbookRangeFormat `json:"format,omitempty"`
+ // Sort undocumented
+ Sort *WorkbookRangeSort `json:"sort,omitempty"`
+ // Worksheet undocumented
+ Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"`
+}
+
+// WorkbookRangeBorder undocumented
+type WorkbookRangeBorder struct {
+ // Entity is the base model of WorkbookRangeBorder
+ Entity
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+ // SideIndex undocumented
+ SideIndex *string `json:"sideIndex,omitempty"`
+ // Style undocumented
+ Style *string `json:"style,omitempty"`
+ // Weight undocumented
+ Weight *string `json:"weight,omitempty"`
+}
+
+// WorkbookRangeFill undocumented
+type WorkbookRangeFill struct {
+ // Entity is the base model of WorkbookRangeFill
+ Entity
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+}
+
+// WorkbookRangeFont undocumented
+type WorkbookRangeFont struct {
+ // Entity is the base model of WorkbookRangeFont
+ Entity
+ // Bold undocumented
+ Bold *bool `json:"bold,omitempty"`
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+ // Italic undocumented
+ Italic *bool `json:"italic,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Size undocumented
+ Size *float64 `json:"size,omitempty"`
+ // Underline undocumented
+ Underline *string `json:"underline,omitempty"`
+}
+
+// WorkbookRangeFormat undocumented
+type WorkbookRangeFormat struct {
+ // Entity is the base model of WorkbookRangeFormat
+ Entity
+ // ColumnWidth undocumented
+ ColumnWidth *float64 `json:"columnWidth,omitempty"`
+ // HorizontalAlignment undocumented
+ HorizontalAlignment *string `json:"horizontalAlignment,omitempty"`
+ // RowHeight undocumented
+ RowHeight *float64 `json:"rowHeight,omitempty"`
+ // VerticalAlignment undocumented
+ VerticalAlignment *string `json:"verticalAlignment,omitempty"`
+ // WrapText undocumented
+ WrapText *bool `json:"wrapText,omitempty"`
+ // Borders undocumented
+ Borders []WorkbookRangeBorder `json:"borders,omitempty"`
+ // Fill undocumented
+ Fill *WorkbookRangeFill `json:"fill,omitempty"`
+ // Font undocumented
+ Font *WorkbookRangeFont `json:"font,omitempty"`
+ // Protection undocumented
+ Protection *WorkbookFormatProtection `json:"protection,omitempty"`
+}
+
+// WorkbookRangeReference undocumented
+type WorkbookRangeReference struct {
+ // Object is the base model of WorkbookRangeReference
+ Object
+ // Address undocumented
+ Address *string `json:"address,omitempty"`
+}
+
+// WorkbookRangeSort undocumented
+type WorkbookRangeSort struct {
+ // Entity is the base model of WorkbookRangeSort
+ Entity
+}
+
+// WorkbookRangeView undocumented
+type WorkbookRangeView struct {
+ // Entity is the base model of WorkbookRangeView
+ Entity
+ // CellAddresses undocumented
+ CellAddresses json.RawMessage `json:"cellAddresses,omitempty"`
+ // ColumnCount undocumented
+ ColumnCount *int `json:"columnCount,omitempty"`
+ // Formulas undocumented
+ Formulas json.RawMessage `json:"formulas,omitempty"`
+ // FormulasLocal undocumented
+ FormulasLocal json.RawMessage `json:"formulasLocal,omitempty"`
+ // FormulasR1C1 undocumented
+ FormulasR1C1 json.RawMessage `json:"formulasR1C1,omitempty"`
+ // Index undocumented
+ Index *int `json:"index,omitempty"`
+ // NumberFormat undocumented
+ NumberFormat json.RawMessage `json:"numberFormat,omitempty"`
+ // RowCount undocumented
+ RowCount *int `json:"rowCount,omitempty"`
+ // Text undocumented
+ Text json.RawMessage `json:"text,omitempty"`
+ // ValueTypes undocumented
+ ValueTypes json.RawMessage `json:"valueTypes,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+ // Rows undocumented
+ Rows []WorkbookRangeView `json:"rows,omitempty"`
+}
+
+// WorkbookSessionInfo undocumented
+type WorkbookSessionInfo struct {
+ // Object is the base model of WorkbookSessionInfo
+ Object
+ // ID undocumented
+ ID *string `json:"id,omitempty"`
+ // PersistChanges undocumented
+ PersistChanges *bool `json:"persistChanges,omitempty"`
+}
+
+// WorkbookSortField undocumented
+type WorkbookSortField struct {
+ // Object is the base model of WorkbookSortField
+ Object
+ // Ascending undocumented
+ Ascending *bool `json:"ascending,omitempty"`
+ // Color undocumented
+ Color *string `json:"color,omitempty"`
+ // DataOption undocumented
+ DataOption *string `json:"dataOption,omitempty"`
+ // Icon undocumented
+ Icon *WorkbookIcon `json:"icon,omitempty"`
+ // Key undocumented
+ Key *int `json:"key,omitempty"`
+ // SortOn undocumented
+ SortOn *string `json:"sortOn,omitempty"`
+}
+
+// WorkbookTable undocumented
+type WorkbookTable struct {
+ // Entity is the base model of WorkbookTable
+ Entity
+ // HighlightFirstColumn undocumented
+ HighlightFirstColumn *bool `json:"highlightFirstColumn,omitempty"`
+ // HighlightLastColumn undocumented
+ HighlightLastColumn *bool `json:"highlightLastColumn,omitempty"`
+ // LegacyID undocumented
+ LegacyID *string `json:"legacyId,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // ShowBandedColumns undocumented
+ ShowBandedColumns *bool `json:"showBandedColumns,omitempty"`
+ // ShowBandedRows undocumented
+ ShowBandedRows *bool `json:"showBandedRows,omitempty"`
+ // ShowFilterButton undocumented
+ ShowFilterButton *bool `json:"showFilterButton,omitempty"`
+ // ShowHeaders undocumented
+ ShowHeaders *bool `json:"showHeaders,omitempty"`
+ // ShowTotals undocumented
+ ShowTotals *bool `json:"showTotals,omitempty"`
+ // Style undocumented
+ Style *string `json:"style,omitempty"`
+ // Columns undocumented
+ Columns []WorkbookTableColumn `json:"columns,omitempty"`
+ // Rows undocumented
+ Rows []WorkbookTableRow `json:"rows,omitempty"`
+ // Sort undocumented
+ Sort *WorkbookTableSort `json:"sort,omitempty"`
+ // Worksheet undocumented
+ Worksheet *WorkbookWorksheet `json:"worksheet,omitempty"`
+}
+
+// WorkbookTableColumn undocumented
+type WorkbookTableColumn struct {
+ // Entity is the base model of WorkbookTableColumn
+ Entity
+ // Index undocumented
+ Index *int `json:"index,omitempty"`
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+ // Filter undocumented
+ Filter *WorkbookFilter `json:"filter,omitempty"`
+}
+
+// WorkbookTableRow undocumented
+type WorkbookTableRow struct {
+ // Entity is the base model of WorkbookTableRow
+ Entity
+ // Index undocumented
+ Index *int `json:"index,omitempty"`
+ // Values undocumented
+ Values json.RawMessage `json:"values,omitempty"`
+}
+
+// WorkbookTableSort undocumented
+type WorkbookTableSort struct {
+ // Entity is the base model of WorkbookTableSort
+ Entity
+ // Fields undocumented
+ Fields []WorkbookSortField `json:"fields,omitempty"`
+ // MatchCase undocumented
+ MatchCase *bool `json:"matchCase,omitempty"`
+ // Method undocumented
+ Method *string `json:"method,omitempty"`
+}
+
+// WorkbookWorksheet undocumented
+type WorkbookWorksheet struct {
+ // Entity is the base model of WorkbookWorksheet
+ Entity
+ // Name undocumented
+ Name *string `json:"name,omitempty"`
+ // Position undocumented
+ Position *int `json:"position,omitempty"`
+ // Visibility undocumented
+ Visibility *string `json:"visibility,omitempty"`
+ // Charts undocumented
+ Charts []WorkbookChart `json:"charts,omitempty"`
+ // Names undocumented
+ Names []WorkbookNamedItem `json:"names,omitempty"`
+ // PivotTables undocumented
+ PivotTables []WorkbookPivotTable `json:"pivotTables,omitempty"`
+ // Protection undocumented
+ Protection *WorkbookWorksheetProtection `json:"protection,omitempty"`
+ // Tables undocumented
+ Tables []WorkbookTable `json:"tables,omitempty"`
+}
+
+// WorkbookWorksheetProtection undocumented
+type WorkbookWorksheetProtection struct {
+ // Entity is the base model of WorkbookWorksheetProtection
+ Entity
+ // Options undocumented
+ Options *WorkbookWorksheetProtectionOptions `json:"options,omitempty"`
+ // Protected undocumented
+ Protected *bool `json:"protected,omitempty"`
+}
+
+// WorkbookWorksheetProtectionOptions undocumented
+type WorkbookWorksheetProtectionOptions struct {
+ // Object is the base model of WorkbookWorksheetProtectionOptions
+ Object
+ // AllowAutoFilter undocumented
+ AllowAutoFilter *bool `json:"allowAutoFilter,omitempty"`
+ // AllowDeleteColumns undocumented
+ AllowDeleteColumns *bool `json:"allowDeleteColumns,omitempty"`
+ // AllowDeleteRows undocumented
+ AllowDeleteRows *bool `json:"allowDeleteRows,omitempty"`
+ // AllowFormatCells undocumented
+ AllowFormatCells *bool `json:"allowFormatCells,omitempty"`
+ // AllowFormatColumns undocumented
+ AllowFormatColumns *bool `json:"allowFormatColumns,omitempty"`
+ // AllowFormatRows undocumented
+ AllowFormatRows *bool `json:"allowFormatRows,omitempty"`
+ // AllowInsertColumns undocumented
+ AllowInsertColumns *bool `json:"allowInsertColumns,omitempty"`
+ // AllowInsertHyperlinks undocumented
+ AllowInsertHyperlinks *bool `json:"allowInsertHyperlinks,omitempty"`
+ // AllowInsertRows undocumented
+ AllowInsertRows *bool `json:"allowInsertRows,omitempty"`
+ // AllowPivotTables undocumented
+ AllowPivotTables *bool `json:"allowPivotTables,omitempty"`
+ // AllowSort undocumented
+ AllowSort *bool `json:"allowSort,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkforce.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkforce.go
new file mode 100644
index 00000000..c07f9368
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorkforce.go
@@ -0,0 +1,31 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkforceIntegration undocumented
+type WorkforceIntegration struct {
+ // ChangeTrackedEntity is the base model of WorkforceIntegration
+ ChangeTrackedEntity
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // APIVersion undocumented
+ APIVersion *int `json:"apiVersion,omitempty"`
+ // Encryption undocumented
+ Encryption *WorkforceIntegrationEncryption `json:"encryption,omitempty"`
+ // IsActive undocumented
+ IsActive *bool `json:"isActive,omitempty"`
+ // URL undocumented
+ URL *string `json:"url,omitempty"`
+ // Supports undocumented
+ Supports *WorkforceIntegrationSupportedEntities `json:"supports,omitempty"`
+}
+
+// WorkforceIntegrationEncryption undocumented
+type WorkforceIntegrationEncryption struct {
+ // Object is the base model of WorkforceIntegrationEncryption
+ Object
+ // Protocol undocumented
+ Protocol *WorkforceIntegrationEncryptionProtocol `json:"protocol,omitempty"`
+ // Secret undocumented
+ Secret *string `json:"secret,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorking.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorking.go
new file mode 100644
index 00000000..3dc0c940
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelWorking.go
@@ -0,0 +1,17 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// WorkingHours undocumented
+type WorkingHours struct {
+ // Object is the base model of WorkingHours
+ Object
+ // DaysOfWeek undocumented
+ DaysOfWeek []DayOfWeek `json:"daysOfWeek,omitempty"`
+ // StartTime undocumented
+ StartTime *TimeOfDay `json:"startTime,omitempty"`
+ // EndTime undocumented
+ EndTime *TimeOfDay `json:"endTime,omitempty"`
+ // TimeZone undocumented
+ TimeZone *TimeZoneBase `json:"timeZone,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelYammer.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelYammer.go
new file mode 100644
index 00000000..b32ef25a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelYammer.go
@@ -0,0 +1,191 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// YammerActivitySummary undocumented
+type YammerActivitySummary struct {
+ // Entity is the base model of YammerActivitySummary
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Liked undocumented
+ Liked *int `json:"liked,omitempty"`
+ // Posted undocumented
+ Posted *int `json:"posted,omitempty"`
+ // Read undocumented
+ Read *int `json:"read,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// YammerActivityUserDetail undocumented
+type YammerActivityUserDetail struct {
+ // Entity is the base model of YammerActivityUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // UserState undocumented
+ UserState *string `json:"userState,omitempty"`
+ // StateChangeDate undocumented
+ StateChangeDate *Date `json:"stateChangeDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // PostedCount undocumented
+ PostedCount *int `json:"postedCount,omitempty"`
+ // ReadCount undocumented
+ ReadCount *int `json:"readCount,omitempty"`
+ // LikedCount undocumented
+ LikedCount *int `json:"likedCount,omitempty"`
+ // AssignedProducts undocumented
+ AssignedProducts []string `json:"assignedProducts,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// YammerDeviceUsageDistributionUserCounts undocumented
+type YammerDeviceUsageDistributionUserCounts struct {
+ // Entity is the base model of YammerDeviceUsageDistributionUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IPhone undocumented
+ IPhone *int `json:"iPhone,omitempty"`
+ // IPad undocumented
+ IPad *int `json:"iPad,omitempty"`
+ // Other undocumented
+ Other *int `json:"other,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// YammerDeviceUsageUserCounts undocumented
+type YammerDeviceUsageUserCounts struct {
+ // Entity is the base model of YammerDeviceUsageUserCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Web undocumented
+ Web *int `json:"web,omitempty"`
+ // WindowsPhone undocumented
+ WindowsPhone *int `json:"windowsPhone,omitempty"`
+ // AndroidPhone undocumented
+ AndroidPhone *int `json:"androidPhone,omitempty"`
+ // IPhone undocumented
+ IPhone *int `json:"iPhone,omitempty"`
+ // IPad undocumented
+ IPad *int `json:"iPad,omitempty"`
+ // Other undocumented
+ Other *int `json:"other,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// YammerDeviceUsageUserDetail undocumented
+type YammerDeviceUsageUserDetail struct {
+ // Entity is the base model of YammerDeviceUsageUserDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // UserPrincipalName undocumented
+ UserPrincipalName *string `json:"userPrincipalName,omitempty"`
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // UserState undocumented
+ UserState *string `json:"userState,omitempty"`
+ // StateChangeDate undocumented
+ StateChangeDate *Date `json:"stateChangeDate,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // UsedWeb undocumented
+ UsedWeb *bool `json:"usedWeb,omitempty"`
+ // UsedWindowsPhone undocumented
+ UsedWindowsPhone *bool `json:"usedWindowsPhone,omitempty"`
+ // UsedAndroidPhone undocumented
+ UsedAndroidPhone *bool `json:"usedAndroidPhone,omitempty"`
+ // UsediPhone undocumented
+ UsediPhone *bool `json:"usediPhone,omitempty"`
+ // UsediPad undocumented
+ UsediPad *bool `json:"usediPad,omitempty"`
+ // UsedOthers undocumented
+ UsedOthers *bool `json:"usedOthers,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// YammerGroupsActivityCounts undocumented
+type YammerGroupsActivityCounts struct {
+ // Entity is the base model of YammerGroupsActivityCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Liked undocumented
+ Liked *int `json:"liked,omitempty"`
+ // Posted undocumented
+ Posted *int `json:"posted,omitempty"`
+ // Read undocumented
+ Read *int `json:"read,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// YammerGroupsActivityDetail undocumented
+type YammerGroupsActivityDetail struct {
+ // Entity is the base model of YammerGroupsActivityDetail
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // GroupDisplayName undocumented
+ GroupDisplayName *string `json:"groupDisplayName,omitempty"`
+ // IsDeleted undocumented
+ IsDeleted *bool `json:"isDeleted,omitempty"`
+ // OwnerPrincipalName undocumented
+ OwnerPrincipalName *string `json:"ownerPrincipalName,omitempty"`
+ // LastActivityDate undocumented
+ LastActivityDate *Date `json:"lastActivityDate,omitempty"`
+ // GroupType undocumented
+ GroupType *string `json:"groupType,omitempty"`
+ // Office365Connected undocumented
+ Office365Connected *bool `json:"office365Connected,omitempty"`
+ // MemberCount undocumented
+ MemberCount *int `json:"memberCount,omitempty"`
+ // PostedCount undocumented
+ PostedCount *int `json:"postedCount,omitempty"`
+ // ReadCount undocumented
+ ReadCount *int `json:"readCount,omitempty"`
+ // LikedCount undocumented
+ LikedCount *int `json:"likedCount,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
+
+// YammerGroupsActivityGroupCounts undocumented
+type YammerGroupsActivityGroupCounts struct {
+ // Entity is the base model of YammerGroupsActivityGroupCounts
+ Entity
+ // ReportRefreshDate undocumented
+ ReportRefreshDate *Date `json:"reportRefreshDate,omitempty"`
+ // Total undocumented
+ Total *int `json:"total,omitempty"`
+ // Active undocumented
+ Active *int `json:"active,omitempty"`
+ // ReportDate undocumented
+ ReportDate *Date `json:"reportDate,omitempty"`
+ // ReportPeriod undocumented
+ ReportPeriod *string `json:"reportPeriod,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/ModelYomi.go b/vendor/github.com/yaegashi/msgraph.go/beta/ModelYomi.go
new file mode 100644
index 00000000..73eaa030
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/ModelYomi.go
@@ -0,0 +1,19 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+// YomiPersonName undocumented
+type YomiPersonName struct {
+ // Object is the base model of YomiPersonName
+ Object
+ // DisplayName undocumented
+ DisplayName *string `json:"displayName,omitempty"`
+ // First undocumented
+ First *string `json:"first,omitempty"`
+ // Maiden undocumented
+ Maiden *string `json:"maiden,omitempty"`
+ // Middle undocumented
+ Middle *string `json:"middle,omitempty"`
+ // Last undocumented
+ Last *string `json:"last,omitempty"`
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAad.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAad.go
new file mode 100644
index 00000000..37230e31
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAad.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AadUserConversationMemberRequestBuilder is request builder for AadUserConversationMember
+type AadUserConversationMemberRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AadUserConversationMemberRequest
+func (b *AadUserConversationMemberRequestBuilder) Request() *AadUserConversationMemberRequest {
+ return &AadUserConversationMemberRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AadUserConversationMemberRequest is request for AadUserConversationMember
+type AadUserConversationMemberRequest struct{ BaseRequest }
+
+// Get performs GET request for AadUserConversationMember
+func (r *AadUserConversationMemberRequest) Get(ctx context.Context) (resObj *AadUserConversationMember, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AadUserConversationMember
+func (r *AadUserConversationMemberRequest) Update(ctx context.Context, reqObj *AadUserConversationMember) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AadUserConversationMember
+func (r *AadUserConversationMemberRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccess.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccess.go
new file mode 100644
index 00000000..06ae52c0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccess.go
@@ -0,0 +1,630 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccessPackageRequestBuilder is request builder for AccessPackage
+type AccessPackageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageRequest
+func (b *AccessPackageRequestBuilder) Request() *AccessPackageRequest {
+ return &AccessPackageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageRequest is request for AccessPackage
+type AccessPackageRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackage
+func (r *AccessPackageRequest) Get(ctx context.Context) (resObj *AccessPackage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackage
+func (r *AccessPackageRequest) Update(ctx context.Context, reqObj *AccessPackage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackage
+func (r *AccessPackageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageAssignmentRequestBuilder is request builder for AccessPackageAssignment
+type AccessPackageAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageAssignmentRequest
+func (b *AccessPackageAssignmentRequestBuilder) Request() *AccessPackageAssignmentRequest {
+ return &AccessPackageAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageAssignmentRequest is request for AccessPackageAssignment
+type AccessPackageAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageAssignment
+func (r *AccessPackageAssignmentRequest) Get(ctx context.Context) (resObj *AccessPackageAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageAssignment
+func (r *AccessPackageAssignmentRequest) Update(ctx context.Context, reqObj *AccessPackageAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageAssignment
+func (r *AccessPackageAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageAssignmentPolicyRequestBuilder is request builder for AccessPackageAssignmentPolicy
+type AccessPackageAssignmentPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageAssignmentPolicyRequest
+func (b *AccessPackageAssignmentPolicyRequestBuilder) Request() *AccessPackageAssignmentPolicyRequest {
+ return &AccessPackageAssignmentPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageAssignmentPolicyRequest is request for AccessPackageAssignmentPolicy
+type AccessPackageAssignmentPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageAssignmentPolicy
+func (r *AccessPackageAssignmentPolicyRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageAssignmentPolicy
+func (r *AccessPackageAssignmentPolicyRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageAssignmentPolicy
+func (r *AccessPackageAssignmentPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageAssignmentRequestObjectRequestBuilder is request builder for AccessPackageAssignmentRequestObject
+type AccessPackageAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageAssignmentRequestObjectRequest
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Request() *AccessPackageAssignmentRequestObjectRequest {
+ return &AccessPackageAssignmentRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageAssignmentRequestObjectRequest is request for AccessPackageAssignmentRequestObject
+type AccessPackageAssignmentRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageAssignmentRequestObject
+func (r *AccessPackageAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageAssignmentRequestObject
+func (r *AccessPackageAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageAssignmentRequestObject
+func (r *AccessPackageAssignmentRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageAssignmentResourceRoleRequestBuilder is request builder for AccessPackageAssignmentResourceRole
+type AccessPackageAssignmentResourceRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageAssignmentResourceRoleRequest
+func (b *AccessPackageAssignmentResourceRoleRequestBuilder) Request() *AccessPackageAssignmentResourceRoleRequest {
+ return &AccessPackageAssignmentResourceRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageAssignmentResourceRoleRequest is request for AccessPackageAssignmentResourceRole
+type AccessPackageAssignmentResourceRoleRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageAssignmentResourceRole
+func (r *AccessPackageAssignmentResourceRoleRequest) Get(ctx context.Context) (resObj *AccessPackageAssignmentResourceRole, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageAssignmentResourceRole
+func (r *AccessPackageAssignmentResourceRoleRequest) Update(ctx context.Context, reqObj *AccessPackageAssignmentResourceRole) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageAssignmentResourceRole
+func (r *AccessPackageAssignmentResourceRoleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageCatalogRequestBuilder is request builder for AccessPackageCatalog
+type AccessPackageCatalogRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageCatalogRequest
+func (b *AccessPackageCatalogRequestBuilder) Request() *AccessPackageCatalogRequest {
+ return &AccessPackageCatalogRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageCatalogRequest is request for AccessPackageCatalog
+type AccessPackageCatalogRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageCatalog
+func (r *AccessPackageCatalogRequest) Get(ctx context.Context) (resObj *AccessPackageCatalog, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageCatalog
+func (r *AccessPackageCatalogRequest) Update(ctx context.Context, reqObj *AccessPackageCatalog) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageCatalog
+func (r *AccessPackageCatalogRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResourceRequestBuilder is request builder for AccessPackageResource
+type AccessPackageResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceRequest
+func (b *AccessPackageResourceRequestBuilder) Request() *AccessPackageResourceRequest {
+ return &AccessPackageResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceRequest is request for AccessPackageResource
+type AccessPackageResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResource
+func (r *AccessPackageResourceRequest) Get(ctx context.Context) (resObj *AccessPackageResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResource
+func (r *AccessPackageResourceRequest) Update(ctx context.Context, reqObj *AccessPackageResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResource
+func (r *AccessPackageResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResourceRequestObjectRequestBuilder is request builder for AccessPackageResourceRequestObject
+type AccessPackageResourceRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceRequestObjectRequest
+func (b *AccessPackageResourceRequestObjectRequestBuilder) Request() *AccessPackageResourceRequestObjectRequest {
+ return &AccessPackageResourceRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceRequestObjectRequest is request for AccessPackageResourceRequestObject
+type AccessPackageResourceRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResourceRequestObject
+func (r *AccessPackageResourceRequestObjectRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResourceRequestObject
+func (r *AccessPackageResourceRequestObjectRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResourceRequestObject
+func (r *AccessPackageResourceRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResourceRoleRequestBuilder is request builder for AccessPackageResourceRole
+type AccessPackageResourceRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceRoleRequest
+func (b *AccessPackageResourceRoleRequestBuilder) Request() *AccessPackageResourceRoleRequest {
+ return &AccessPackageResourceRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceRoleRequest is request for AccessPackageResourceRole
+type AccessPackageResourceRoleRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResourceRole
+func (r *AccessPackageResourceRoleRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRole, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResourceRole
+func (r *AccessPackageResourceRoleRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRole) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResourceRole
+func (r *AccessPackageResourceRoleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResourceRoleScopeRequestBuilder is request builder for AccessPackageResourceRoleScope
+type AccessPackageResourceRoleScopeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceRoleScopeRequest
+func (b *AccessPackageResourceRoleScopeRequestBuilder) Request() *AccessPackageResourceRoleScopeRequest {
+ return &AccessPackageResourceRoleScopeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceRoleScopeRequest is request for AccessPackageResourceRoleScope
+type AccessPackageResourceRoleScopeRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResourceRoleScope
+func (r *AccessPackageResourceRoleScopeRequest) Get(ctx context.Context) (resObj *AccessPackageResourceRoleScope, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResourceRoleScope
+func (r *AccessPackageResourceRoleScopeRequest) Update(ctx context.Context, reqObj *AccessPackageResourceRoleScope) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResourceRoleScope
+func (r *AccessPackageResourceRoleScopeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageResourceScopeRequestBuilder is request builder for AccessPackageResourceScope
+type AccessPackageResourceScopeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageResourceScopeRequest
+func (b *AccessPackageResourceScopeRequestBuilder) Request() *AccessPackageResourceScopeRequest {
+ return &AccessPackageResourceScopeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageResourceScopeRequest is request for AccessPackageResourceScope
+type AccessPackageResourceScopeRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageResourceScope
+func (r *AccessPackageResourceScopeRequest) Get(ctx context.Context) (resObj *AccessPackageResourceScope, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageResourceScope
+func (r *AccessPackageResourceScopeRequest) Update(ctx context.Context, reqObj *AccessPackageResourceScope) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageResourceScope
+func (r *AccessPackageResourceScopeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessPackageSubjectRequestBuilder is request builder for AccessPackageSubject
+type AccessPackageSubjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessPackageSubjectRequest
+func (b *AccessPackageSubjectRequestBuilder) Request() *AccessPackageSubjectRequest {
+ return &AccessPackageSubjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessPackageSubjectRequest is request for AccessPackageSubject
+type AccessPackageSubjectRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessPackageSubject
+func (r *AccessPackageSubjectRequest) Get(ctx context.Context) (resObj *AccessPackageSubject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessPackageSubject
+func (r *AccessPackageSubjectRequest) Update(ctx context.Context, reqObj *AccessPackageSubject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessPackageSubject
+func (r *AccessPackageSubjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessReviewRequestBuilder is request builder for AccessReview
+type AccessReviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessReviewRequest
+func (b *AccessReviewRequestBuilder) Request() *AccessReviewRequest {
+ return &AccessReviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessReviewRequest is request for AccessReview
+type AccessReviewRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessReview
+func (r *AccessReviewRequest) Get(ctx context.Context) (resObj *AccessReview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessReview
+func (r *AccessReviewRequest) Update(ctx context.Context, reqObj *AccessReview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessReview
+func (r *AccessReviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessReviewDecisionRequestBuilder is request builder for AccessReviewDecision
+type AccessReviewDecisionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessReviewDecisionRequest
+func (b *AccessReviewDecisionRequestBuilder) Request() *AccessReviewDecisionRequest {
+ return &AccessReviewDecisionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessReviewDecisionRequest is request for AccessReviewDecision
+type AccessReviewDecisionRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessReviewDecision
+func (r *AccessReviewDecisionRequest) Get(ctx context.Context) (resObj *AccessReviewDecision, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessReviewDecision
+func (r *AccessReviewDecisionRequest) Update(ctx context.Context, reqObj *AccessReviewDecision) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessReviewDecision
+func (r *AccessReviewDecisionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AccessReviewReviewerRequestBuilder is request builder for AccessReviewReviewer
+type AccessReviewReviewerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccessReviewReviewerRequest
+func (b *AccessReviewReviewerRequestBuilder) Request() *AccessReviewReviewerRequest {
+ return &AccessReviewReviewerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccessReviewReviewerRequest is request for AccessReviewReviewer
+type AccessReviewReviewerRequest struct{ BaseRequest }
+
+// Get performs GET request for AccessReviewReviewer
+func (r *AccessReviewReviewerRequest) Get(ctx context.Context) (resObj *AccessReviewReviewer, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AccessReviewReviewer
+func (r *AccessReviewReviewerRequest) Update(ctx context.Context, reqObj *AccessReviewReviewer) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AccessReviewReviewer
+func (r *AccessReviewReviewerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type AccessPackageAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *AccessPackageAssignmentRequestObjectRequestBuilder) Cancel(reqObj *AccessPackageAssignmentRequestObjectCancelRequestParameter) *AccessPackageAssignmentRequestObjectCancelRequestBuilder {
+ bb := &AccessPackageAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/Cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessPackageAssignmentRequestObjectCancelRequest struct{ BaseRequest }
+
+//
+func (b *AccessPackageAssignmentRequestObjectCancelRequestBuilder) Request() *AccessPackageAssignmentRequestObjectCancelRequest {
+ return &AccessPackageAssignmentRequestObjectCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessPackageAssignmentRequestObjectCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AccessReviewStopRequestBuilder struct{ BaseRequestBuilder }
+
+// Stop action undocumented
+func (b *AccessReviewRequestBuilder) Stop(reqObj *AccessReviewStopRequestParameter) *AccessReviewStopRequestBuilder {
+ bb := &AccessReviewStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stop"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessReviewStopRequest struct{ BaseRequest }
+
+//
+func (b *AccessReviewStopRequestBuilder) Request() *AccessReviewStopRequest {
+ return &AccessReviewStopRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessReviewStopRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AccessReviewSendReminderRequestBuilder struct{ BaseRequestBuilder }
+
+// SendReminder action undocumented
+func (b *AccessReviewRequestBuilder) SendReminder(reqObj *AccessReviewSendReminderRequestParameter) *AccessReviewSendReminderRequestBuilder {
+ bb := &AccessReviewSendReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendReminder"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessReviewSendReminderRequest struct{ BaseRequest }
+
+//
+func (b *AccessReviewSendReminderRequestBuilder) Request() *AccessReviewSendReminderRequest {
+ return &AccessReviewSendReminderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessReviewSendReminderRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AccessReviewResetDecisionsRequestBuilder struct{ BaseRequestBuilder }
+
+// ResetDecisions action undocumented
+func (b *AccessReviewRequestBuilder) ResetDecisions(reqObj *AccessReviewResetDecisionsRequestParameter) *AccessReviewResetDecisionsRequestBuilder {
+ bb := &AccessReviewResetDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/resetDecisions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessReviewResetDecisionsRequest struct{ BaseRequest }
+
+//
+func (b *AccessReviewResetDecisionsRequestBuilder) Request() *AccessReviewResetDecisionsRequest {
+ return &AccessReviewResetDecisionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessReviewResetDecisionsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AccessReviewApplyDecisionsRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyDecisions action undocumented
+func (b *AccessReviewRequestBuilder) ApplyDecisions(reqObj *AccessReviewApplyDecisionsRequestParameter) *AccessReviewApplyDecisionsRequestBuilder {
+ bb := &AccessReviewApplyDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyDecisions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AccessReviewApplyDecisionsRequest struct{ BaseRequest }
+
+//
+func (b *AccessReviewApplyDecisionsRequestBuilder) Request() *AccessReviewApplyDecisionsRequest {
+ return &AccessReviewApplyDecisionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AccessReviewApplyDecisionsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccount.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccount.go
new file mode 100644
index 00000000..8dcf76f6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAccount.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AccountRequestBuilder is request builder for Account
+type AccountRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AccountRequest
+func (b *AccountRequestBuilder) Request() *AccountRequest {
+ return &AccountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AccountRequest is request for Account
+type AccountRequest struct{ BaseRequest }
+
+// Get performs GET request for Account
+func (r *AccountRequest) Get(ctx context.Context) (resObj *Account, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Account
+func (r *AccountRequest) Update(ctx context.Context, reqObj *Account) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Account
+func (r *AccountRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestActive.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestActive.go
new file mode 100644
index 00000000..a4379831
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestActive.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder is request builder for ActiveDirectoryWindowsAutopilotDeploymentProfile
+type ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ActiveDirectoryWindowsAutopilotDeploymentProfileRequest
+func (b *ActiveDirectoryWindowsAutopilotDeploymentProfileRequestBuilder) Request() *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest {
+ return &ActiveDirectoryWindowsAutopilotDeploymentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ActiveDirectoryWindowsAutopilotDeploymentProfileRequest is request for ActiveDirectoryWindowsAutopilotDeploymentProfile
+type ActiveDirectoryWindowsAutopilotDeploymentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for ActiveDirectoryWindowsAutopilotDeploymentProfile
+func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Get(ctx context.Context) (resObj *ActiveDirectoryWindowsAutopilotDeploymentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ActiveDirectoryWindowsAutopilotDeploymentProfile
+func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Update(ctx context.Context, reqObj *ActiveDirectoryWindowsAutopilotDeploymentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ActiveDirectoryWindowsAutopilotDeploymentProfile
+func (r *ActiveDirectoryWindowsAutopilotDeploymentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestActivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestActivity.go
new file mode 100644
index 00000000..82a7a4b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestActivity.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ActivityHistoryItemRequestBuilder is request builder for ActivityHistoryItem
+type ActivityHistoryItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ActivityHistoryItemRequest
+func (b *ActivityHistoryItemRequestBuilder) Request() *ActivityHistoryItemRequest {
+ return &ActivityHistoryItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ActivityHistoryItemRequest is request for ActivityHistoryItem
+type ActivityHistoryItemRequest struct{ BaseRequest }
+
+// Get performs GET request for ActivityHistoryItem
+func (r *ActivityHistoryItemRequest) Get(ctx context.Context) (resObj *ActivityHistoryItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ActivityHistoryItem
+func (r *ActivityHistoryItemRequest) Update(ctx context.Context, reqObj *ActivityHistoryItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ActivityHistoryItem
+func (r *ActivityHistoryItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ActivityStatisticsRequestBuilder is request builder for ActivityStatistics
+type ActivityStatisticsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ActivityStatisticsRequest
+func (b *ActivityStatisticsRequestBuilder) Request() *ActivityStatisticsRequest {
+ return &ActivityStatisticsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ActivityStatisticsRequest is request for ActivityStatistics
+type ActivityStatisticsRequest struct{ BaseRequest }
+
+// Get performs GET request for ActivityStatistics
+func (r *ActivityStatisticsRequest) Get(ctx context.Context) (resObj *ActivityStatistics, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ActivityStatistics
+func (r *ActivityStatisticsRequest) Update(ctx context.Context, reqObj *ActivityStatistics) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ActivityStatistics
+func (r *ActivityStatisticsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdministrative.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdministrative.go
new file mode 100644
index 00000000..1cacdc94
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdministrative.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AdministrativeUnitRequestBuilder is request builder for AdministrativeUnit
+type AdministrativeUnitRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AdministrativeUnitRequest
+func (b *AdministrativeUnitRequestBuilder) Request() *AdministrativeUnitRequest {
+ return &AdministrativeUnitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AdministrativeUnitRequest is request for AdministrativeUnit
+type AdministrativeUnitRequest struct{ BaseRequest }
+
+// Get performs GET request for AdministrativeUnit
+func (r *AdministrativeUnitRequest) Get(ctx context.Context) (resObj *AdministrativeUnit, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AdministrativeUnit
+func (r *AdministrativeUnitRequest) Update(ctx context.Context, reqObj *AdministrativeUnit) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AdministrativeUnit
+func (r *AdministrativeUnitRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdvanced.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdvanced.go
new file mode 100644
index 00000000..ffa9fd12
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAdvanced.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder is request builder for AdvancedThreatProtectionOnboardingDeviceSettingState
+type AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AdvancedThreatProtectionOnboardingDeviceSettingStateRequest
+func (b *AdvancedThreatProtectionOnboardingDeviceSettingStateRequestBuilder) Request() *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest {
+ return &AdvancedThreatProtectionOnboardingDeviceSettingStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AdvancedThreatProtectionOnboardingDeviceSettingStateRequest is request for AdvancedThreatProtectionOnboardingDeviceSettingState
+type AdvancedThreatProtectionOnboardingDeviceSettingStateRequest struct{ BaseRequest }
+
+// Get performs GET request for AdvancedThreatProtectionOnboardingDeviceSettingState
+func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Get(ctx context.Context) (resObj *AdvancedThreatProtectionOnboardingDeviceSettingState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AdvancedThreatProtectionOnboardingDeviceSettingState
+func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Update(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingDeviceSettingState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AdvancedThreatProtectionOnboardingDeviceSettingState
+func (r *AdvancedThreatProtectionOnboardingDeviceSettingStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder is request builder for AdvancedThreatProtectionOnboardingStateSummary
+type AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AdvancedThreatProtectionOnboardingStateSummaryRequest
+func (b *AdvancedThreatProtectionOnboardingStateSummaryRequestBuilder) Request() *AdvancedThreatProtectionOnboardingStateSummaryRequest {
+ return &AdvancedThreatProtectionOnboardingStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AdvancedThreatProtectionOnboardingStateSummaryRequest is request for AdvancedThreatProtectionOnboardingStateSummary
+type AdvancedThreatProtectionOnboardingStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for AdvancedThreatProtectionOnboardingStateSummary
+func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Get(ctx context.Context) (resObj *AdvancedThreatProtectionOnboardingStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AdvancedThreatProtectionOnboardingStateSummary
+func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Update(ctx context.Context, reqObj *AdvancedThreatProtectionOnboardingStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AdvancedThreatProtectionOnboardingStateSummary
+func (r *AdvancedThreatProtectionOnboardingStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAged.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAged.go
new file mode 100644
index 00000000..46f9fc8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAged.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AgedAccountsPayableRequestBuilder is request builder for AgedAccountsPayable
+type AgedAccountsPayableRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgedAccountsPayableRequest
+func (b *AgedAccountsPayableRequestBuilder) Request() *AgedAccountsPayableRequest {
+ return &AgedAccountsPayableRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgedAccountsPayableRequest is request for AgedAccountsPayable
+type AgedAccountsPayableRequest struct{ BaseRequest }
+
+// Get performs GET request for AgedAccountsPayable
+func (r *AgedAccountsPayableRequest) Get(ctx context.Context) (resObj *AgedAccountsPayable, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AgedAccountsPayable
+func (r *AgedAccountsPayableRequest) Update(ctx context.Context, reqObj *AgedAccountsPayable) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AgedAccountsPayable
+func (r *AgedAccountsPayableRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AgedAccountsReceivableRequestBuilder is request builder for AgedAccountsReceivable
+type AgedAccountsReceivableRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgedAccountsReceivableRequest
+func (b *AgedAccountsReceivableRequestBuilder) Request() *AgedAccountsReceivableRequest {
+ return &AgedAccountsReceivableRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgedAccountsReceivableRequest is request for AgedAccountsReceivable
+type AgedAccountsReceivableRequest struct{ BaseRequest }
+
+// Get performs GET request for AgedAccountsReceivable
+func (r *AgedAccountsReceivableRequest) Get(ctx context.Context) (resObj *AgedAccountsReceivable, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AgedAccountsReceivable
+func (r *AgedAccountsReceivableRequest) Update(ctx context.Context, reqObj *AgedAccountsReceivable) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AgedAccountsReceivable
+func (r *AgedAccountsReceivableRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAgreement.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAgreement.go
new file mode 100644
index 00000000..647a2de5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAgreement.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AgreementRequestBuilder is request builder for Agreement
+type AgreementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgreementRequest
+func (b *AgreementRequestBuilder) Request() *AgreementRequest {
+ return &AgreementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgreementRequest is request for Agreement
+type AgreementRequest struct{ BaseRequest }
+
+// Get performs GET request for Agreement
+func (r *AgreementRequest) Get(ctx context.Context) (resObj *Agreement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Agreement
+func (r *AgreementRequest) Update(ctx context.Context, reqObj *Agreement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Agreement
+func (r *AgreementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AgreementAcceptanceRequestBuilder is request builder for AgreementAcceptance
+type AgreementAcceptanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgreementAcceptanceRequest
+func (b *AgreementAcceptanceRequestBuilder) Request() *AgreementAcceptanceRequest {
+ return &AgreementAcceptanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgreementAcceptanceRequest is request for AgreementAcceptance
+type AgreementAcceptanceRequest struct{ BaseRequest }
+
+// Get performs GET request for AgreementAcceptance
+func (r *AgreementAcceptanceRequest) Get(ctx context.Context) (resObj *AgreementAcceptance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AgreementAcceptance
+func (r *AgreementAcceptanceRequest) Update(ctx context.Context, reqObj *AgreementAcceptance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AgreementAcceptance
+func (r *AgreementAcceptanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AgreementFileRequestBuilder is request builder for AgreementFile
+type AgreementFileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AgreementFileRequest
+func (b *AgreementFileRequestBuilder) Request() *AgreementFileRequest {
+ return &AgreementFileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AgreementFileRequest is request for AgreementFile
+type AgreementFileRequest struct{ BaseRequest }
+
+// Get performs GET request for AgreementFile
+func (r *AgreementFileRequest) Get(ctx context.Context) (resObj *AgreementFile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AgreementFile
+func (r *AgreementFileRequest) Update(ctx context.Context, reqObj *AgreementFile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AgreementFile
+func (r *AgreementFileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAlert.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAlert.go
new file mode 100644
index 00000000..f43985de
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAlert.go
@@ -0,0 +1,131 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AlertRequestBuilder is request builder for Alert
+type AlertRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AlertRequest
+func (b *AlertRequestBuilder) Request() *AlertRequest {
+ return &AlertRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AlertRequest is request for Alert
+type AlertRequest struct{ BaseRequest }
+
+// Get performs GET request for Alert
+func (r *AlertRequest) Get(ctx context.Context) (resObj *Alert, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Alert
+func (r *AlertRequest) Update(ctx context.Context, reqObj *Alert) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Alert
+func (r *AlertRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type AlertCollectionUpdateAlertsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateAlerts action undocumented
+func (b *SecurityAlertsCollectionRequestBuilder) UpdateAlerts(reqObj *AlertCollectionUpdateAlertsRequestParameter) *AlertCollectionUpdateAlertsRequestBuilder {
+ bb := &AlertCollectionUpdateAlertsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateAlerts"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AlertCollectionUpdateAlertsRequest struct{ BaseRequest }
+
+//
+func (b *AlertCollectionUpdateAlertsRequestBuilder) Request() *AlertCollectionUpdateAlertsRequest {
+ return &AlertCollectionUpdateAlertsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AlertCollectionUpdateAlertsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Alert, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Alert
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Alert
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *AlertCollectionUpdateAlertsRequest) PostN(ctx context.Context, n int) ([]Alert, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *AlertCollectionUpdateAlertsRequest) Post(ctx context.Context) ([]Alert, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAllowed.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAllowed.go
new file mode 100644
index 00000000..ececc01e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAllowed.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AllowedDataLocationRequestBuilder is request builder for AllowedDataLocation
+type AllowedDataLocationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AllowedDataLocationRequest
+func (b *AllowedDataLocationRequestBuilder) Request() *AllowedDataLocationRequest {
+ return &AllowedDataLocationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AllowedDataLocationRequest is request for AllowedDataLocation
+type AllowedDataLocationRequest struct{ BaseRequest }
+
+// Get performs GET request for AllowedDataLocation
+func (r *AllowedDataLocationRequest) Get(ctx context.Context) (resObj *AllowedDataLocation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AllowedDataLocation
+func (r *AllowedDataLocationRequest) Update(ctx context.Context, reqObj *AllowedDataLocation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AllowedDataLocation
+func (r *AllowedDataLocationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAndroid.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAndroid.go
new file mode 100644
index 00000000..1323cbd0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAndroid.go
@@ -0,0 +1,1646 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// AndroidCertificateProfileBaseRequestBuilder is request builder for AndroidCertificateProfileBase
+type AndroidCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidCertificateProfileBaseRequest
+func (b *AndroidCertificateProfileBaseRequestBuilder) Request() *AndroidCertificateProfileBaseRequest {
+ return &AndroidCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidCertificateProfileBaseRequest is request for AndroidCertificateProfileBase
+type AndroidCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidCertificateProfileBase
+func (r *AndroidCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidCertificateProfileBase
+func (r *AndroidCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidCertificateProfileBase
+func (r *AndroidCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidDeviceOwnerCertificateProfileBaseRequestBuilder is request builder for AndroidDeviceOwnerCertificateProfileBase
+type AndroidDeviceOwnerCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerCertificateProfileBaseRequest
+func (b *AndroidDeviceOwnerCertificateProfileBaseRequestBuilder) Request() *AndroidDeviceOwnerCertificateProfileBaseRequest {
+ return &AndroidDeviceOwnerCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerCertificateProfileBaseRequest is request for AndroidDeviceOwnerCertificateProfileBase
+type AndroidDeviceOwnerCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerCertificateProfileBase
+func (r *AndroidDeviceOwnerCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerCertificateProfileBase
+func (r *AndroidDeviceOwnerCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerCertificateProfileBase
+func (r *AndroidDeviceOwnerCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidDeviceOwnerEnrollmentProfileRequestBuilder is request builder for AndroidDeviceOwnerEnrollmentProfile
+type AndroidDeviceOwnerEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerEnrollmentProfileRequest
+func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileRequest {
+ return &AndroidDeviceOwnerEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerEnrollmentProfileRequest is request for AndroidDeviceOwnerEnrollmentProfile
+type AndroidDeviceOwnerEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerEnrollmentProfile
+func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerEnrollmentProfile
+func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerEnrollmentProfile
+func (r *AndroidDeviceOwnerEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+type AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest
+func (b *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest {
+ return &AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest is request for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+type AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+func (r *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+func (r *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerEnterpriseWiFiConfiguration
+func (r *AndroidDeviceOwnerEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidDeviceOwnerScepCertificateProfileRequestBuilder is request builder for AndroidDeviceOwnerScepCertificateProfile
+type AndroidDeviceOwnerScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerScepCertificateProfileRequest
+func (b *AndroidDeviceOwnerScepCertificateProfileRequestBuilder) Request() *AndroidDeviceOwnerScepCertificateProfileRequest {
+ return &AndroidDeviceOwnerScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerScepCertificateProfileRequest is request for AndroidDeviceOwnerScepCertificateProfile
+type AndroidDeviceOwnerScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerScepCertificateProfile
+func (r *AndroidDeviceOwnerScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerScepCertificateProfile
+func (r *AndroidDeviceOwnerScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerScepCertificateProfile
+func (r *AndroidDeviceOwnerScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidDeviceOwnerTrustedRootCertificateRequestBuilder is request builder for AndroidDeviceOwnerTrustedRootCertificate
+type AndroidDeviceOwnerTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerTrustedRootCertificateRequest
+func (b *AndroidDeviceOwnerTrustedRootCertificateRequestBuilder) Request() *AndroidDeviceOwnerTrustedRootCertificateRequest {
+ return &AndroidDeviceOwnerTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerTrustedRootCertificateRequest is request for AndroidDeviceOwnerTrustedRootCertificate
+type AndroidDeviceOwnerTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerTrustedRootCertificate
+func (r *AndroidDeviceOwnerTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerTrustedRootCertificate
+func (r *AndroidDeviceOwnerTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerTrustedRootCertificate
+func (r *AndroidDeviceOwnerTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidDeviceOwnerVPNConfigurationRequestBuilder is request builder for AndroidDeviceOwnerVPNConfiguration
+type AndroidDeviceOwnerVPNConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidDeviceOwnerVPNConfigurationRequest
+func (b *AndroidDeviceOwnerVPNConfigurationRequestBuilder) Request() *AndroidDeviceOwnerVPNConfigurationRequest {
+ return &AndroidDeviceOwnerVPNConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidDeviceOwnerVPNConfigurationRequest is request for AndroidDeviceOwnerVPNConfiguration
+type AndroidDeviceOwnerVPNConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidDeviceOwnerVPNConfiguration
+func (r *AndroidDeviceOwnerVPNConfigurationRequest) Get(ctx context.Context) (resObj *AndroidDeviceOwnerVPNConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidDeviceOwnerVPNConfiguration
+func (r *AndroidDeviceOwnerVPNConfigurationRequest) Update(ctx context.Context, reqObj *AndroidDeviceOwnerVPNConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidDeviceOwnerVPNConfiguration
+func (r *AndroidDeviceOwnerVPNConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidEasEmailProfileConfigurationRequestBuilder is request builder for AndroidEasEmailProfileConfiguration
+type AndroidEasEmailProfileConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidEasEmailProfileConfigurationRequest
+func (b *AndroidEasEmailProfileConfigurationRequestBuilder) Request() *AndroidEasEmailProfileConfigurationRequest {
+ return &AndroidEasEmailProfileConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidEasEmailProfileConfigurationRequest is request for AndroidEasEmailProfileConfiguration
+type AndroidEasEmailProfileConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidEasEmailProfileConfiguration
+func (r *AndroidEasEmailProfileConfigurationRequest) Get(ctx context.Context) (resObj *AndroidEasEmailProfileConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidEasEmailProfileConfiguration
+func (r *AndroidEasEmailProfileConfigurationRequest) Update(ctx context.Context, reqObj *AndroidEasEmailProfileConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidEasEmailProfileConfiguration
+func (r *AndroidEasEmailProfileConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidEnterpriseWiFiConfiguration
+type AndroidEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidEnterpriseWiFiConfigurationRequest
+func (b *AndroidEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidEnterpriseWiFiConfigurationRequest {
+ return &AndroidEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidEnterpriseWiFiConfigurationRequest is request for AndroidEnterpriseWiFiConfiguration
+type AndroidEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidEnterpriseWiFiConfiguration
+func (r *AndroidEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidEnterpriseWiFiConfiguration
+func (r *AndroidEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidEnterpriseWiFiConfiguration
+func (r *AndroidEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkAppConfigurationSchemaRequestBuilder is request builder for AndroidForWorkAppConfigurationSchema
+type AndroidForWorkAppConfigurationSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkAppConfigurationSchemaRequest
+func (b *AndroidForWorkAppConfigurationSchemaRequestBuilder) Request() *AndroidForWorkAppConfigurationSchemaRequest {
+ return &AndroidForWorkAppConfigurationSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkAppConfigurationSchemaRequest is request for AndroidForWorkAppConfigurationSchema
+type AndroidForWorkAppConfigurationSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkAppConfigurationSchema
+func (r *AndroidForWorkAppConfigurationSchemaRequest) Get(ctx context.Context) (resObj *AndroidForWorkAppConfigurationSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkAppConfigurationSchema
+func (r *AndroidForWorkAppConfigurationSchemaRequest) Update(ctx context.Context, reqObj *AndroidForWorkAppConfigurationSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkAppConfigurationSchema
+func (r *AndroidForWorkAppConfigurationSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkCertificateProfileBaseRequestBuilder is request builder for AndroidForWorkCertificateProfileBase
+type AndroidForWorkCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkCertificateProfileBaseRequest
+func (b *AndroidForWorkCertificateProfileBaseRequestBuilder) Request() *AndroidForWorkCertificateProfileBaseRequest {
+ return &AndroidForWorkCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkCertificateProfileBaseRequest is request for AndroidForWorkCertificateProfileBase
+type AndroidForWorkCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkCertificateProfileBase
+func (r *AndroidForWorkCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidForWorkCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkCertificateProfileBase
+func (r *AndroidForWorkCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidForWorkCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkCertificateProfileBase
+func (r *AndroidForWorkCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkEasEmailProfileBaseRequestBuilder is request builder for AndroidForWorkEasEmailProfileBase
+type AndroidForWorkEasEmailProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkEasEmailProfileBaseRequest
+func (b *AndroidForWorkEasEmailProfileBaseRequestBuilder) Request() *AndroidForWorkEasEmailProfileBaseRequest {
+ return &AndroidForWorkEasEmailProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkEasEmailProfileBaseRequest is request for AndroidForWorkEasEmailProfileBase
+type AndroidForWorkEasEmailProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkEasEmailProfileBase
+func (r *AndroidForWorkEasEmailProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidForWorkEasEmailProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkEasEmailProfileBase
+func (r *AndroidForWorkEasEmailProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidForWorkEasEmailProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkEasEmailProfileBase
+func (r *AndroidForWorkEasEmailProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkEnrollmentProfileRequestBuilder is request builder for AndroidForWorkEnrollmentProfile
+type AndroidForWorkEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkEnrollmentProfileRequest
+func (b *AndroidForWorkEnrollmentProfileRequestBuilder) Request() *AndroidForWorkEnrollmentProfileRequest {
+ return &AndroidForWorkEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkEnrollmentProfileRequest is request for AndroidForWorkEnrollmentProfile
+type AndroidForWorkEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkEnrollmentProfile
+func (r *AndroidForWorkEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkEnrollmentProfile
+func (r *AndroidForWorkEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkEnrollmentProfile
+func (r *AndroidForWorkEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidForWorkEnterpriseWiFiConfiguration
+type AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkEnterpriseWiFiConfigurationRequest
+func (b *AndroidForWorkEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidForWorkEnterpriseWiFiConfigurationRequest {
+ return &AndroidForWorkEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkEnterpriseWiFiConfigurationRequest is request for AndroidForWorkEnterpriseWiFiConfiguration
+type AndroidForWorkEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkEnterpriseWiFiConfiguration
+func (r *AndroidForWorkEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidForWorkEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkEnterpriseWiFiConfiguration
+func (r *AndroidForWorkEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidForWorkEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkEnterpriseWiFiConfiguration
+func (r *AndroidForWorkEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkImportedPFXCertificateProfileRequestBuilder is request builder for AndroidForWorkImportedPFXCertificateProfile
+type AndroidForWorkImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkImportedPFXCertificateProfileRequest
+func (b *AndroidForWorkImportedPFXCertificateProfileRequestBuilder) Request() *AndroidForWorkImportedPFXCertificateProfileRequest {
+ return &AndroidForWorkImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkImportedPFXCertificateProfileRequest is request for AndroidForWorkImportedPFXCertificateProfile
+type AndroidForWorkImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkImportedPFXCertificateProfile
+func (r *AndroidForWorkImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkImportedPFXCertificateProfile
+func (r *AndroidForWorkImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkImportedPFXCertificateProfile
+func (r *AndroidForWorkImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkPkcsCertificateProfileRequestBuilder is request builder for AndroidForWorkPkcsCertificateProfile
+type AndroidForWorkPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkPkcsCertificateProfileRequest
+func (b *AndroidForWorkPkcsCertificateProfileRequestBuilder) Request() *AndroidForWorkPkcsCertificateProfileRequest {
+ return &AndroidForWorkPkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkPkcsCertificateProfileRequest is request for AndroidForWorkPkcsCertificateProfile
+type AndroidForWorkPkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkPkcsCertificateProfile
+func (r *AndroidForWorkPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkPkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkPkcsCertificateProfile
+func (r *AndroidForWorkPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkPkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkPkcsCertificateProfile
+func (r *AndroidForWorkPkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkScepCertificateProfileRequestBuilder is request builder for AndroidForWorkScepCertificateProfile
+type AndroidForWorkScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkScepCertificateProfileRequest
+func (b *AndroidForWorkScepCertificateProfileRequestBuilder) Request() *AndroidForWorkScepCertificateProfileRequest {
+ return &AndroidForWorkScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkScepCertificateProfileRequest is request for AndroidForWorkScepCertificateProfile
+type AndroidForWorkScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkScepCertificateProfile
+func (r *AndroidForWorkScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidForWorkScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkScepCertificateProfile
+func (r *AndroidForWorkScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidForWorkScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkScepCertificateProfile
+func (r *AndroidForWorkScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkSettingsRequestBuilder is request builder for AndroidForWorkSettings
+type AndroidForWorkSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkSettingsRequest
+func (b *AndroidForWorkSettingsRequestBuilder) Request() *AndroidForWorkSettingsRequest {
+ return &AndroidForWorkSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkSettingsRequest is request for AndroidForWorkSettings
+type AndroidForWorkSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkSettings
+func (r *AndroidForWorkSettingsRequest) Get(ctx context.Context) (resObj *AndroidForWorkSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkSettings
+func (r *AndroidForWorkSettingsRequest) Update(ctx context.Context, reqObj *AndroidForWorkSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkSettings
+func (r *AndroidForWorkSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkTrustedRootCertificateRequestBuilder is request builder for AndroidForWorkTrustedRootCertificate
+type AndroidForWorkTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkTrustedRootCertificateRequest
+func (b *AndroidForWorkTrustedRootCertificateRequestBuilder) Request() *AndroidForWorkTrustedRootCertificateRequest {
+ return &AndroidForWorkTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkTrustedRootCertificateRequest is request for AndroidForWorkTrustedRootCertificate
+type AndroidForWorkTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkTrustedRootCertificate
+func (r *AndroidForWorkTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidForWorkTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkTrustedRootCertificate
+func (r *AndroidForWorkTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidForWorkTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkTrustedRootCertificate
+func (r *AndroidForWorkTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidForWorkVPNConfigurationRequestBuilder is request builder for AndroidForWorkVPNConfiguration
+type AndroidForWorkVPNConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidForWorkVPNConfigurationRequest
+func (b *AndroidForWorkVPNConfigurationRequestBuilder) Request() *AndroidForWorkVPNConfigurationRequest {
+ return &AndroidForWorkVPNConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidForWorkVPNConfigurationRequest is request for AndroidForWorkVPNConfiguration
+type AndroidForWorkVPNConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidForWorkVPNConfiguration
+func (r *AndroidForWorkVPNConfigurationRequest) Get(ctx context.Context) (resObj *AndroidForWorkVPNConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidForWorkVPNConfiguration
+func (r *AndroidForWorkVPNConfigurationRequest) Update(ctx context.Context, reqObj *AndroidForWorkVPNConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidForWorkVPNConfiguration
+func (r *AndroidForWorkVPNConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidImportedPFXCertificateProfileRequestBuilder is request builder for AndroidImportedPFXCertificateProfile
+type AndroidImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidImportedPFXCertificateProfileRequest
+func (b *AndroidImportedPFXCertificateProfileRequestBuilder) Request() *AndroidImportedPFXCertificateProfileRequest {
+ return &AndroidImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidImportedPFXCertificateProfileRequest is request for AndroidImportedPFXCertificateProfile
+type AndroidImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidImportedPFXCertificateProfile
+func (r *AndroidImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidImportedPFXCertificateProfile
+func (r *AndroidImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidImportedPFXCertificateProfile
+func (r *AndroidImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidManagedAppProtectionRequestBuilder is request builder for AndroidManagedAppProtection
+type AndroidManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidManagedAppProtectionRequest
+func (b *AndroidManagedAppProtectionRequestBuilder) Request() *AndroidManagedAppProtectionRequest {
+ return &AndroidManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidManagedAppProtectionRequest is request for AndroidManagedAppProtection
+type AndroidManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidManagedAppProtection
+func (r *AndroidManagedAppProtectionRequest) Get(ctx context.Context) (resObj *AndroidManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidManagedAppProtection
+func (r *AndroidManagedAppProtectionRequest) Update(ctx context.Context, reqObj *AndroidManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidManagedAppProtection
+func (r *AndroidManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder is request builder for AndroidManagedStoreAccountEnterpriseSettings
+type AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidManagedStoreAccountEnterpriseSettingsRequest
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidManagedStoreAccountEnterpriseSettingsRequest is request for AndroidManagedStoreAccountEnterpriseSettings
+type AndroidManagedStoreAccountEnterpriseSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidManagedStoreAccountEnterpriseSettings
+func (r *AndroidManagedStoreAccountEnterpriseSettingsRequest) Get(ctx context.Context) (resObj *AndroidManagedStoreAccountEnterpriseSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidManagedStoreAccountEnterpriseSettings
+func (r *AndroidManagedStoreAccountEnterpriseSettingsRequest) Update(ctx context.Context, reqObj *AndroidManagedStoreAccountEnterpriseSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidManagedStoreAccountEnterpriseSettings
+func (r *AndroidManagedStoreAccountEnterpriseSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidManagedStoreAppConfigurationSchemaRequestBuilder is request builder for AndroidManagedStoreAppConfigurationSchema
+type AndroidManagedStoreAppConfigurationSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidManagedStoreAppConfigurationSchemaRequest
+func (b *AndroidManagedStoreAppConfigurationSchemaRequestBuilder) Request() *AndroidManagedStoreAppConfigurationSchemaRequest {
+ return &AndroidManagedStoreAppConfigurationSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidManagedStoreAppConfigurationSchemaRequest is request for AndroidManagedStoreAppConfigurationSchema
+type AndroidManagedStoreAppConfigurationSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidManagedStoreAppConfigurationSchema
+func (r *AndroidManagedStoreAppConfigurationSchemaRequest) Get(ctx context.Context) (resObj *AndroidManagedStoreAppConfigurationSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidManagedStoreAppConfigurationSchema
+func (r *AndroidManagedStoreAppConfigurationSchemaRequest) Update(ctx context.Context, reqObj *AndroidManagedStoreAppConfigurationSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidManagedStoreAppConfigurationSchema
+func (r *AndroidManagedStoreAppConfigurationSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidPkcsCertificateProfileRequestBuilder is request builder for AndroidPkcsCertificateProfile
+type AndroidPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidPkcsCertificateProfileRequest
+func (b *AndroidPkcsCertificateProfileRequestBuilder) Request() *AndroidPkcsCertificateProfileRequest {
+ return &AndroidPkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidPkcsCertificateProfileRequest is request for AndroidPkcsCertificateProfile
+type AndroidPkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidPkcsCertificateProfile
+func (r *AndroidPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidPkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidPkcsCertificateProfile
+func (r *AndroidPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidPkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidPkcsCertificateProfile
+func (r *AndroidPkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidScepCertificateProfileRequestBuilder is request builder for AndroidScepCertificateProfile
+type AndroidScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidScepCertificateProfileRequest
+func (b *AndroidScepCertificateProfileRequestBuilder) Request() *AndroidScepCertificateProfileRequest {
+ return &AndroidScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidScepCertificateProfileRequest is request for AndroidScepCertificateProfile
+type AndroidScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidScepCertificateProfile
+func (r *AndroidScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidScepCertificateProfile
+func (r *AndroidScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidScepCertificateProfile
+func (r *AndroidScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidTrustedRootCertificateRequestBuilder is request builder for AndroidTrustedRootCertificate
+type AndroidTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidTrustedRootCertificateRequest
+func (b *AndroidTrustedRootCertificateRequestBuilder) Request() *AndroidTrustedRootCertificateRequest {
+ return &AndroidTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidTrustedRootCertificateRequest is request for AndroidTrustedRootCertificate
+type AndroidTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidTrustedRootCertificate
+func (r *AndroidTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidTrustedRootCertificate
+func (r *AndroidTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidTrustedRootCertificate
+func (r *AndroidTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidVPNConfigurationRequestBuilder is request builder for AndroidVPNConfiguration
+type AndroidVPNConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidVPNConfigurationRequest
+func (b *AndroidVPNConfigurationRequestBuilder) Request() *AndroidVPNConfigurationRequest {
+ return &AndroidVPNConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidVPNConfigurationRequest is request for AndroidVPNConfiguration
+type AndroidVPNConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidVPNConfiguration
+func (r *AndroidVPNConfigurationRequest) Get(ctx context.Context) (resObj *AndroidVPNConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidVPNConfiguration
+func (r *AndroidVPNConfigurationRequest) Update(ctx context.Context, reqObj *AndroidVPNConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidVPNConfiguration
+func (r *AndroidVPNConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidWorkProfileCertificateProfileBaseRequestBuilder is request builder for AndroidWorkProfileCertificateProfileBase
+type AndroidWorkProfileCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileCertificateProfileBaseRequest
+func (b *AndroidWorkProfileCertificateProfileBaseRequestBuilder) Request() *AndroidWorkProfileCertificateProfileBaseRequest {
+ return &AndroidWorkProfileCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileCertificateProfileBaseRequest is request for AndroidWorkProfileCertificateProfileBase
+type AndroidWorkProfileCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileCertificateProfileBase
+func (r *AndroidWorkProfileCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileCertificateProfileBase
+func (r *AndroidWorkProfileCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileCertificateProfileBase
+func (r *AndroidWorkProfileCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidWorkProfileEasEmailProfileBaseRequestBuilder is request builder for AndroidWorkProfileEasEmailProfileBase
+type AndroidWorkProfileEasEmailProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileEasEmailProfileBaseRequest
+func (b *AndroidWorkProfileEasEmailProfileBaseRequestBuilder) Request() *AndroidWorkProfileEasEmailProfileBaseRequest {
+ return &AndroidWorkProfileEasEmailProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileEasEmailProfileBaseRequest is request for AndroidWorkProfileEasEmailProfileBase
+type AndroidWorkProfileEasEmailProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileEasEmailProfileBase
+func (r *AndroidWorkProfileEasEmailProfileBaseRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileEasEmailProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileEasEmailProfileBase
+func (r *AndroidWorkProfileEasEmailProfileBaseRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileEasEmailProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileEasEmailProfileBase
+func (r *AndroidWorkProfileEasEmailProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder is request builder for AndroidWorkProfileEnterpriseWiFiConfiguration
+type AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileEnterpriseWiFiConfigurationRequest
+func (b *AndroidWorkProfileEnterpriseWiFiConfigurationRequestBuilder) Request() *AndroidWorkProfileEnterpriseWiFiConfigurationRequest {
+ return &AndroidWorkProfileEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileEnterpriseWiFiConfigurationRequest is request for AndroidWorkProfileEnterpriseWiFiConfiguration
+type AndroidWorkProfileEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileEnterpriseWiFiConfiguration
+func (r *AndroidWorkProfileEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileEnterpriseWiFiConfiguration
+func (r *AndroidWorkProfileEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileEnterpriseWiFiConfiguration
+func (r *AndroidWorkProfileEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidWorkProfilePkcsCertificateProfileRequestBuilder is request builder for AndroidWorkProfilePkcsCertificateProfile
+type AndroidWorkProfilePkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfilePkcsCertificateProfileRequest
+func (b *AndroidWorkProfilePkcsCertificateProfileRequestBuilder) Request() *AndroidWorkProfilePkcsCertificateProfileRequest {
+ return &AndroidWorkProfilePkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfilePkcsCertificateProfileRequest is request for AndroidWorkProfilePkcsCertificateProfile
+type AndroidWorkProfilePkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfilePkcsCertificateProfile
+func (r *AndroidWorkProfilePkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidWorkProfilePkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfilePkcsCertificateProfile
+func (r *AndroidWorkProfilePkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidWorkProfilePkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfilePkcsCertificateProfile
+func (r *AndroidWorkProfilePkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidWorkProfileScepCertificateProfileRequestBuilder is request builder for AndroidWorkProfileScepCertificateProfile
+type AndroidWorkProfileScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileScepCertificateProfileRequest
+func (b *AndroidWorkProfileScepCertificateProfileRequestBuilder) Request() *AndroidWorkProfileScepCertificateProfileRequest {
+ return &AndroidWorkProfileScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileScepCertificateProfileRequest is request for AndroidWorkProfileScepCertificateProfile
+type AndroidWorkProfileScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileScepCertificateProfile
+func (r *AndroidWorkProfileScepCertificateProfileRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileScepCertificateProfile
+func (r *AndroidWorkProfileScepCertificateProfileRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileScepCertificateProfile
+func (r *AndroidWorkProfileScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidWorkProfileTrustedRootCertificateRequestBuilder is request builder for AndroidWorkProfileTrustedRootCertificate
+type AndroidWorkProfileTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileTrustedRootCertificateRequest
+func (b *AndroidWorkProfileTrustedRootCertificateRequestBuilder) Request() *AndroidWorkProfileTrustedRootCertificateRequest {
+ return &AndroidWorkProfileTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileTrustedRootCertificateRequest is request for AndroidWorkProfileTrustedRootCertificate
+type AndroidWorkProfileTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileTrustedRootCertificate
+func (r *AndroidWorkProfileTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileTrustedRootCertificate
+func (r *AndroidWorkProfileTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileTrustedRootCertificate
+func (r *AndroidWorkProfileTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AndroidWorkProfileVPNConfigurationRequestBuilder is request builder for AndroidWorkProfileVPNConfiguration
+type AndroidWorkProfileVPNConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AndroidWorkProfileVPNConfigurationRequest
+func (b *AndroidWorkProfileVPNConfigurationRequestBuilder) Request() *AndroidWorkProfileVPNConfigurationRequest {
+ return &AndroidWorkProfileVPNConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AndroidWorkProfileVPNConfigurationRequest is request for AndroidWorkProfileVPNConfiguration
+type AndroidWorkProfileVPNConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for AndroidWorkProfileVPNConfiguration
+func (r *AndroidWorkProfileVPNConfigurationRequest) Get(ctx context.Context) (resObj *AndroidWorkProfileVPNConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AndroidWorkProfileVPNConfiguration
+func (r *AndroidWorkProfileVPNConfigurationRequest) Update(ctx context.Context, reqObj *AndroidWorkProfileVPNConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AndroidWorkProfileVPNConfiguration
+func (r *AndroidWorkProfileVPNConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementAndroidManagedAppProtectionsCollectionRequestBuilder) HasPayloadLinks(reqObj *AndroidManagedAppProtectionCollectionHasPayloadLinksRequestParameter) *AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder {
+ bb := &AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedAppProtectionCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedAppProtectionCollectionHasPayloadLinksRequestBuilder) Request() *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest {
+ return &AndroidManagedAppProtectionCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *AndroidManagedAppProtectionCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeToken action undocumented
+func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) RevokeToken(reqObj *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestParameter) *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder {
+ bb := &AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest {
+ return &AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidDeviceOwnerEnrollmentProfileRevokeTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateToken action undocumented
+func (b *AndroidDeviceOwnerEnrollmentProfileRequestBuilder) CreateToken(reqObj *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestParameter) *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder {
+ bb := &AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequestBuilder) Request() *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest {
+ return &AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidDeviceOwnerEnrollmentProfileCreateTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeToken action undocumented
+func (b *AndroidForWorkEnrollmentProfileRequestBuilder) RevokeToken(reqObj *AndroidForWorkEnrollmentProfileRevokeTokenRequestParameter) *AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder {
+ bb := &AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkEnrollmentProfileRevokeTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkEnrollmentProfileRevokeTokenRequestBuilder) Request() *AndroidForWorkEnrollmentProfileRevokeTokenRequest {
+ return &AndroidForWorkEnrollmentProfileRevokeTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkEnrollmentProfileRevokeTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateToken action undocumented
+func (b *AndroidForWorkEnrollmentProfileRequestBuilder) CreateToken(reqObj *AndroidForWorkEnrollmentProfileCreateTokenRequestParameter) *AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder {
+ bb := &AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkEnrollmentProfileCreateTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkEnrollmentProfileCreateTokenRequestBuilder) Request() *AndroidForWorkEnrollmentProfileCreateTokenRequest {
+ return &AndroidForWorkEnrollmentProfileCreateTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkEnrollmentProfileCreateTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidForWorkSettingsRequestSignupURLRequestBuilder struct{ BaseRequestBuilder }
+
+// RequestSignupURL action undocumented
+func (b *AndroidForWorkSettingsRequestBuilder) RequestSignupURL(reqObj *AndroidForWorkSettingsRequestSignupURLRequestParameter) *AndroidForWorkSettingsRequestSignupURLRequestBuilder {
+ bb := &AndroidForWorkSettingsRequestSignupURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/requestSignupUrl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkSettingsRequestSignupURLRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkSettingsRequestSignupURLRequestBuilder) Request() *AndroidForWorkSettingsRequestSignupURLRequest {
+ return &AndroidForWorkSettingsRequestSignupURLRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkSettingsRequestSignupURLRequest) Post(ctx context.Context) (resObj *string, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type AndroidForWorkSettingsCompleteSignupRequestBuilder struct{ BaseRequestBuilder }
+
+// CompleteSignup action undocumented
+func (b *AndroidForWorkSettingsRequestBuilder) CompleteSignup(reqObj *AndroidForWorkSettingsCompleteSignupRequestParameter) *AndroidForWorkSettingsCompleteSignupRequestBuilder {
+ bb := &AndroidForWorkSettingsCompleteSignupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/completeSignup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkSettingsCompleteSignupRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkSettingsCompleteSignupRequestBuilder) Request() *AndroidForWorkSettingsCompleteSignupRequest {
+ return &AndroidForWorkSettingsCompleteSignupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkSettingsCompleteSignupRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidForWorkSettingsSyncAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncApps action undocumented
+func (b *AndroidForWorkSettingsRequestBuilder) SyncApps(reqObj *AndroidForWorkSettingsSyncAppsRequestParameter) *AndroidForWorkSettingsSyncAppsRequestBuilder {
+ bb := &AndroidForWorkSettingsSyncAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkSettingsSyncAppsRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkSettingsSyncAppsRequestBuilder) Request() *AndroidForWorkSettingsSyncAppsRequest {
+ return &AndroidForWorkSettingsSyncAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkSettingsSyncAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidForWorkSettingsUnbindRequestBuilder struct{ BaseRequestBuilder }
+
+// Unbind action undocumented
+func (b *AndroidForWorkSettingsRequestBuilder) Unbind(reqObj *AndroidForWorkSettingsUnbindRequestParameter) *AndroidForWorkSettingsUnbindRequestBuilder {
+ bb := &AndroidForWorkSettingsUnbindRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unbind"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidForWorkSettingsUnbindRequest struct{ BaseRequest }
+
+//
+func (b *AndroidForWorkSettingsUnbindRequestBuilder) Request() *AndroidForWorkSettingsUnbindRequest {
+ return &AndroidForWorkSettingsUnbindRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidForWorkSettingsUnbindRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// ApproveApps action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) ApproveApps(reqObj *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/approveApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsApproveAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder struct{ BaseRequestBuilder }
+
+// RequestSignupURL action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) RequestSignupURL(reqObj *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/requestSignupUrl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsRequestSignupURLRequest) Post(ctx context.Context) (resObj *string, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder struct{ BaseRequestBuilder }
+
+// CompleteSignup action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) CompleteSignup(reqObj *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/completeSignup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsCompleteSignupRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncApps action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) SyncApps(reqObj *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsSyncAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder struct{ BaseRequestBuilder }
+
+// Unbind action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) Unbind(reqObj *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unbind"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsUnbindRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateGooglePlayWebToken action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) CreateGooglePlayWebToken(reqObj *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createGooglePlayWebToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsCreateGooglePlayWebTokenRequest) Post(ctx context.Context) (resObj *string, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder struct{ BaseRequestBuilder }
+
+// SetAndroidDeviceOwnerFullyManagedEnrollmentState action undocumented
+func (b *AndroidManagedStoreAccountEnterpriseSettingsRequestBuilder) SetAndroidDeviceOwnerFullyManagedEnrollmentState(reqObj *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestParameter) *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder {
+ bb := &AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setAndroidDeviceOwnerFullyManagedEnrollmentState"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest struct{ BaseRequest }
+
+//
+func (b *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequestBuilder) Request() *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest {
+ return &AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AndroidManagedStoreAccountEnterpriseSettingsSetAndroidDeviceOwnerFullyManagedEnrollmentStateRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAnonymous.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAnonymous.go
new file mode 100644
index 00000000..4a23bb19
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAnonymous.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AnonymousIPRiskEventRequestBuilder is request builder for AnonymousIPRiskEvent
+type AnonymousIPRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AnonymousIPRiskEventRequest
+func (b *AnonymousIPRiskEventRequestBuilder) Request() *AnonymousIPRiskEventRequest {
+ return &AnonymousIPRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AnonymousIPRiskEventRequest is request for AnonymousIPRiskEvent
+type AnonymousIPRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for AnonymousIPRiskEvent
+func (r *AnonymousIPRiskEventRequest) Get(ctx context.Context) (resObj *AnonymousIPRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AnonymousIPRiskEvent
+func (r *AnonymousIPRiskEventRequest) Update(ctx context.Context, reqObj *AnonymousIPRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AnonymousIPRiskEvent
+func (r *AnonymousIPRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestApp.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApp.go
new file mode 100644
index 00000000..c63b0637
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApp.go
@@ -0,0 +1,230 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppCatalogsRequestBuilder is request builder for AppCatalogs
+type AppCatalogsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppCatalogsRequest
+func (b *AppCatalogsRequestBuilder) Request() *AppCatalogsRequest {
+ return &AppCatalogsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppCatalogsRequest is request for AppCatalogs
+type AppCatalogsRequest struct{ BaseRequest }
+
+// Get performs GET request for AppCatalogs
+func (r *AppCatalogsRequest) Get(ctx context.Context) (resObj *AppCatalogs, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppCatalogs
+func (r *AppCatalogsRequest) Update(ctx context.Context, reqObj *AppCatalogs) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppCatalogs
+func (r *AppCatalogsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppLogCollectionRequestObjectRequestBuilder is request builder for AppLogCollectionRequestObject
+type AppLogCollectionRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppLogCollectionRequestObjectRequest
+func (b *AppLogCollectionRequestObjectRequestBuilder) Request() *AppLogCollectionRequestObjectRequest {
+ return &AppLogCollectionRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppLogCollectionRequestObjectRequest is request for AppLogCollectionRequestObject
+type AppLogCollectionRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for AppLogCollectionRequestObject
+func (r *AppLogCollectionRequestObjectRequest) Get(ctx context.Context) (resObj *AppLogCollectionRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppLogCollectionRequestObject
+func (r *AppLogCollectionRequestObjectRequest) Update(ctx context.Context, reqObj *AppLogCollectionRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppLogCollectionRequestObject
+func (r *AppLogCollectionRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppRoleAssignmentRequestBuilder is request builder for AppRoleAssignment
+type AppRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppRoleAssignmentRequest
+func (b *AppRoleAssignmentRequestBuilder) Request() *AppRoleAssignmentRequest {
+ return &AppRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppRoleAssignmentRequest is request for AppRoleAssignment
+type AppRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for AppRoleAssignment
+func (r *AppRoleAssignmentRequest) Get(ctx context.Context) (resObj *AppRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppRoleAssignment
+func (r *AppRoleAssignmentRequest) Update(ctx context.Context, reqObj *AppRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppRoleAssignment
+func (r *AppRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppVulnerabilityManagedDeviceRequestBuilder is request builder for AppVulnerabilityManagedDevice
+type AppVulnerabilityManagedDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppVulnerabilityManagedDeviceRequest
+func (b *AppVulnerabilityManagedDeviceRequestBuilder) Request() *AppVulnerabilityManagedDeviceRequest {
+ return &AppVulnerabilityManagedDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppVulnerabilityManagedDeviceRequest is request for AppVulnerabilityManagedDevice
+type AppVulnerabilityManagedDeviceRequest struct{ BaseRequest }
+
+// Get performs GET request for AppVulnerabilityManagedDevice
+func (r *AppVulnerabilityManagedDeviceRequest) Get(ctx context.Context) (resObj *AppVulnerabilityManagedDevice, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppVulnerabilityManagedDevice
+func (r *AppVulnerabilityManagedDeviceRequest) Update(ctx context.Context, reqObj *AppVulnerabilityManagedDevice) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppVulnerabilityManagedDevice
+func (r *AppVulnerabilityManagedDeviceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppVulnerabilityMobileAppRequestBuilder is request builder for AppVulnerabilityMobileApp
+type AppVulnerabilityMobileAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppVulnerabilityMobileAppRequest
+func (b *AppVulnerabilityMobileAppRequestBuilder) Request() *AppVulnerabilityMobileAppRequest {
+ return &AppVulnerabilityMobileAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppVulnerabilityMobileAppRequest is request for AppVulnerabilityMobileApp
+type AppVulnerabilityMobileAppRequest struct{ BaseRequest }
+
+// Get performs GET request for AppVulnerabilityMobileApp
+func (r *AppVulnerabilityMobileAppRequest) Get(ctx context.Context) (resObj *AppVulnerabilityMobileApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppVulnerabilityMobileApp
+func (r *AppVulnerabilityMobileAppRequest) Update(ctx context.Context, reqObj *AppVulnerabilityMobileApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppVulnerabilityMobileApp
+func (r *AppVulnerabilityMobileAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppVulnerabilityTaskRequestBuilder is request builder for AppVulnerabilityTask
+type AppVulnerabilityTaskRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppVulnerabilityTaskRequest
+func (b *AppVulnerabilityTaskRequestBuilder) Request() *AppVulnerabilityTaskRequest {
+ return &AppVulnerabilityTaskRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppVulnerabilityTaskRequest is request for AppVulnerabilityTask
+type AppVulnerabilityTaskRequest struct{ BaseRequest }
+
+// Get performs GET request for AppVulnerabilityTask
+func (r *AppVulnerabilityTaskRequest) Get(ctx context.Context) (resObj *AppVulnerabilityTask, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppVulnerabilityTask
+func (r *AppVulnerabilityTaskRequest) Update(ctx context.Context, reqObj *AppVulnerabilityTask) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppVulnerabilityTask
+func (r *AppVulnerabilityTaskRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateDownloadURL action undocumented
+func (b *AppLogCollectionRequestObjectRequestBuilder) CreateDownloadURL(reqObj *AppLogCollectionRequestObjectCreateDownloadURLRequestParameter) *AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder {
+ bb := &AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createDownloadUrl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AppLogCollectionRequestObjectCreateDownloadURLRequest struct{ BaseRequest }
+
+//
+func (b *AppLogCollectionRequestObjectCreateDownloadURLRequestBuilder) Request() *AppLogCollectionRequestObjectCreateDownloadURLRequest {
+ return &AppLogCollectionRequestObjectCreateDownloadURLRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AppLogCollectionRequestObjectCreateDownloadURLRequest) Post(ctx context.Context) (resObj *AppLogCollectionDownloadDetails, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestApple.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApple.go
new file mode 100644
index 00000000..0fe8789d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApple.go
@@ -0,0 +1,130 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AppleEnrollmentProfileAssignmentRequestBuilder is request builder for AppleEnrollmentProfileAssignment
+type AppleEnrollmentProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppleEnrollmentProfileAssignmentRequest
+func (b *AppleEnrollmentProfileAssignmentRequestBuilder) Request() *AppleEnrollmentProfileAssignmentRequest {
+ return &AppleEnrollmentProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppleEnrollmentProfileAssignmentRequest is request for AppleEnrollmentProfileAssignment
+type AppleEnrollmentProfileAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for AppleEnrollmentProfileAssignment
+func (r *AppleEnrollmentProfileAssignmentRequest) Get(ctx context.Context) (resObj *AppleEnrollmentProfileAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppleEnrollmentProfileAssignment
+func (r *AppleEnrollmentProfileAssignmentRequest) Update(ctx context.Context, reqObj *AppleEnrollmentProfileAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppleEnrollmentProfileAssignment
+func (r *AppleEnrollmentProfileAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ApplePushNotificationCertificateRequestBuilder is request builder for ApplePushNotificationCertificate
+type ApplePushNotificationCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApplePushNotificationCertificateRequest
+func (b *ApplePushNotificationCertificateRequestBuilder) Request() *ApplePushNotificationCertificateRequest {
+ return &ApplePushNotificationCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApplePushNotificationCertificateRequest is request for ApplePushNotificationCertificate
+type ApplePushNotificationCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for ApplePushNotificationCertificate
+func (r *ApplePushNotificationCertificateRequest) Get(ctx context.Context) (resObj *ApplePushNotificationCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ApplePushNotificationCertificate
+func (r *ApplePushNotificationCertificateRequest) Update(ctx context.Context, reqObj *ApplePushNotificationCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ApplePushNotificationCertificate
+func (r *ApplePushNotificationCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AppleUserInitiatedEnrollmentProfileRequestBuilder is request builder for AppleUserInitiatedEnrollmentProfile
+type AppleUserInitiatedEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AppleUserInitiatedEnrollmentProfileRequest
+func (b *AppleUserInitiatedEnrollmentProfileRequestBuilder) Request() *AppleUserInitiatedEnrollmentProfileRequest {
+ return &AppleUserInitiatedEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AppleUserInitiatedEnrollmentProfileRequest is request for AppleUserInitiatedEnrollmentProfile
+type AppleUserInitiatedEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for AppleUserInitiatedEnrollmentProfile
+func (r *AppleUserInitiatedEnrollmentProfileRequest) Get(ctx context.Context) (resObj *AppleUserInitiatedEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AppleUserInitiatedEnrollmentProfile
+func (r *AppleUserInitiatedEnrollmentProfileRequest) Update(ctx context.Context, reqObj *AppleUserInitiatedEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AppleUserInitiatedEnrollmentProfile
+func (r *AppleUserInitiatedEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder struct{ BaseRequestBuilder }
+
+// SetPriority action undocumented
+func (b *AppleUserInitiatedEnrollmentProfileRequestBuilder) SetPriority(reqObj *AppleUserInitiatedEnrollmentProfileSetPriorityRequestParameter) *AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder {
+ bb := &AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setPriority"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AppleUserInitiatedEnrollmentProfileSetPriorityRequest struct{ BaseRequest }
+
+//
+func (b *AppleUserInitiatedEnrollmentProfileSetPriorityRequestBuilder) Request() *AppleUserInitiatedEnrollmentProfileSetPriorityRequest {
+ return &AppleUserInitiatedEnrollmentProfileSetPriorityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AppleUserInitiatedEnrollmentProfileSetPriorityRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestApplication.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApplication.go
new file mode 100644
index 00000000..a726375f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApplication.go
@@ -0,0 +1,237 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ApplicationRequestBuilder is request builder for Application
+type ApplicationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApplicationRequest
+func (b *ApplicationRequestBuilder) Request() *ApplicationRequest {
+ return &ApplicationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApplicationRequest is request for Application
+type ApplicationRequest struct{ BaseRequest }
+
+// Get performs GET request for Application
+func (r *ApplicationRequest) Get(ctx context.Context) (resObj *Application, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Application
+func (r *ApplicationRequest) Update(ctx context.Context, reqObj *Application) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Application
+func (r *ApplicationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ApplicationSignInDetailedSummaryRequestBuilder is request builder for ApplicationSignInDetailedSummary
+type ApplicationSignInDetailedSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApplicationSignInDetailedSummaryRequest
+func (b *ApplicationSignInDetailedSummaryRequestBuilder) Request() *ApplicationSignInDetailedSummaryRequest {
+ return &ApplicationSignInDetailedSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApplicationSignInDetailedSummaryRequest is request for ApplicationSignInDetailedSummary
+type ApplicationSignInDetailedSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ApplicationSignInDetailedSummary
+func (r *ApplicationSignInDetailedSummaryRequest) Get(ctx context.Context) (resObj *ApplicationSignInDetailedSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ApplicationSignInDetailedSummary
+func (r *ApplicationSignInDetailedSummaryRequest) Update(ctx context.Context, reqObj *ApplicationSignInDetailedSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ApplicationSignInDetailedSummary
+func (r *ApplicationSignInDetailedSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ApplicationTemplateRequestBuilder is request builder for ApplicationTemplate
+type ApplicationTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApplicationTemplateRequest
+func (b *ApplicationTemplateRequestBuilder) Request() *ApplicationTemplateRequest {
+ return &ApplicationTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApplicationTemplateRequest is request for ApplicationTemplate
+type ApplicationTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for ApplicationTemplate
+func (r *ApplicationTemplateRequest) Get(ctx context.Context) (resObj *ApplicationTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ApplicationTemplate
+func (r *ApplicationTemplateRequest) Update(ctx context.Context, reqObj *ApplicationTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ApplicationTemplate
+func (r *ApplicationTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type ApplicationAddKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// AddKey action undocumented
+func (b *ApplicationRequestBuilder) AddKey(reqObj *ApplicationAddKeyRequestParameter) *ApplicationAddKeyRequestBuilder {
+ bb := &ApplicationAddKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addKey"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationAddKeyRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationAddKeyRequestBuilder) Request() *ApplicationAddKeyRequest {
+ return &ApplicationAddKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationAddKeyRequest) Post(ctx context.Context) (resObj *KeyCredential, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ApplicationAddPasswordRequestBuilder struct{ BaseRequestBuilder }
+
+// AddPassword action undocumented
+func (b *ApplicationRequestBuilder) AddPassword(reqObj *ApplicationAddPasswordRequestParameter) *ApplicationAddPasswordRequestBuilder {
+ bb := &ApplicationAddPasswordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addPassword"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationAddPasswordRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationAddPasswordRequestBuilder) Request() *ApplicationAddPasswordRequest {
+ return &ApplicationAddPasswordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationAddPasswordRequest) Post(ctx context.Context) (resObj *PasswordCredential, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ApplicationRemoveKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoveKey action undocumented
+func (b *ApplicationRequestBuilder) RemoveKey(reqObj *ApplicationRemoveKeyRequestParameter) *ApplicationRemoveKeyRequestBuilder {
+ bb := &ApplicationRemoveKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removeKey"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationRemoveKeyRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationRemoveKeyRequestBuilder) Request() *ApplicationRemoveKeyRequest {
+ return &ApplicationRemoveKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationRemoveKeyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ApplicationRemovePasswordRequestBuilder struct{ BaseRequestBuilder }
+
+// RemovePassword action undocumented
+func (b *ApplicationRequestBuilder) RemovePassword(reqObj *ApplicationRemovePasswordRequestParameter) *ApplicationRemovePasswordRequestBuilder {
+ bb := &ApplicationRemovePasswordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removePassword"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationRemovePasswordRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationRemovePasswordRequestBuilder) Request() *ApplicationRemovePasswordRequest {
+ return &ApplicationRemovePasswordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationRemovePasswordRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ApplicationTemplateInstantiateRequestBuilder struct{ BaseRequestBuilder }
+
+// Instantiate action undocumented
+func (b *ApplicationTemplateRequestBuilder) Instantiate(reqObj *ApplicationTemplateInstantiateRequestParameter) *ApplicationTemplateInstantiateRequestBuilder {
+ bb := &ApplicationTemplateInstantiateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/instantiate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ApplicationTemplateInstantiateRequest struct{ BaseRequest }
+
+//
+func (b *ApplicationTemplateInstantiateRequestBuilder) Request() *ApplicationTemplateInstantiateRequest {
+ return &ApplicationTemplateInstantiateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ApplicationTemplateInstantiateRequest) Post(ctx context.Context) (resObj *ApplicationServicePrincipal, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestApproval.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApproval.go
new file mode 100644
index 00000000..ad5232c0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestApproval.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ApprovalWorkflowProviderRequestBuilder is request builder for ApprovalWorkflowProvider
+type ApprovalWorkflowProviderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ApprovalWorkflowProviderRequest
+func (b *ApprovalWorkflowProviderRequestBuilder) Request() *ApprovalWorkflowProviderRequest {
+ return &ApprovalWorkflowProviderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ApprovalWorkflowProviderRequest is request for ApprovalWorkflowProvider
+type ApprovalWorkflowProviderRequest struct{ BaseRequest }
+
+// Get performs GET request for ApprovalWorkflowProvider
+func (r *ApprovalWorkflowProviderRequest) Get(ctx context.Context) (resObj *ApprovalWorkflowProvider, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ApprovalWorkflowProvider
+func (r *ApprovalWorkflowProviderRequest) Update(ctx context.Context, reqObj *ApprovalWorkflowProvider) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ApprovalWorkflowProvider
+func (r *ApprovalWorkflowProviderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttachment.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttachment.go
new file mode 100644
index 00000000..1a42beb0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttachment.go
@@ -0,0 +1,89 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AttachmentRequestBuilder is request builder for Attachment
+type AttachmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AttachmentRequest
+func (b *AttachmentRequestBuilder) Request() *AttachmentRequest {
+ return &AttachmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AttachmentRequest is request for Attachment
+type AttachmentRequest struct{ BaseRequest }
+
+// Get performs GET request for Attachment
+func (r *AttachmentRequest) Get(ctx context.Context) (resObj *Attachment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Attachment
+func (r *AttachmentRequest) Update(ctx context.Context, reqObj *Attachment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Attachment
+func (r *AttachmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type AttachmentCollectionCreateUploadSessionRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateUploadSession action undocumented
+func (b *EventAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder {
+ bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// CreateUploadSession action undocumented
+func (b *MessageAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder {
+ bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// CreateUploadSession action undocumented
+func (b *OutlookTaskAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder {
+ bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// CreateUploadSession action undocumented
+func (b *PostAttachmentsCollectionRequestBuilder) CreateUploadSession(reqObj *AttachmentCollectionCreateUploadSessionRequestParameter) *AttachmentCollectionCreateUploadSessionRequestBuilder {
+ bb := &AttachmentCollectionCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type AttachmentCollectionCreateUploadSessionRequest struct{ BaseRequest }
+
+//
+func (b *AttachmentCollectionCreateUploadSessionRequestBuilder) Request() *AttachmentCollectionCreateUploadSessionRequest {
+ return &AttachmentCollectionCreateUploadSessionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *AttachmentCollectionCreateUploadSessionRequest) Post(ctx context.Context) (resObj *UploadSession, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttribute.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttribute.go
new file mode 100644
index 00000000..d548f6ef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAttribute.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AttributeMappingFunctionSchemaRequestBuilder is request builder for AttributeMappingFunctionSchema
+type AttributeMappingFunctionSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AttributeMappingFunctionSchemaRequest
+func (b *AttributeMappingFunctionSchemaRequestBuilder) Request() *AttributeMappingFunctionSchemaRequest {
+ return &AttributeMappingFunctionSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AttributeMappingFunctionSchemaRequest is request for AttributeMappingFunctionSchema
+type AttributeMappingFunctionSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for AttributeMappingFunctionSchema
+func (r *AttributeMappingFunctionSchemaRequest) Get(ctx context.Context) (resObj *AttributeMappingFunctionSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AttributeMappingFunctionSchema
+func (r *AttributeMappingFunctionSchemaRequest) Update(ctx context.Context, reqObj *AttributeMappingFunctionSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AttributeMappingFunctionSchema
+func (r *AttributeMappingFunctionSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudio.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudio.go
new file mode 100644
index 00000000..3c67b3a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudio.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AudioRoutingGroupRequestBuilder is request builder for AudioRoutingGroup
+type AudioRoutingGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AudioRoutingGroupRequest
+func (b *AudioRoutingGroupRequestBuilder) Request() *AudioRoutingGroupRequest {
+ return &AudioRoutingGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AudioRoutingGroupRequest is request for AudioRoutingGroup
+type AudioRoutingGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for AudioRoutingGroup
+func (r *AudioRoutingGroupRequest) Get(ctx context.Context) (resObj *AudioRoutingGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AudioRoutingGroup
+func (r *AudioRoutingGroupRequest) Update(ctx context.Context, reqObj *AudioRoutingGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AudioRoutingGroup
+func (r *AudioRoutingGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudit.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudit.go
new file mode 100644
index 00000000..461f4ff3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestAudit.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// AuditEventRequestBuilder is request builder for AuditEvent
+type AuditEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AuditEventRequest
+func (b *AuditEventRequestBuilder) Request() *AuditEventRequest {
+ return &AuditEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AuditEventRequest is request for AuditEvent
+type AuditEventRequest struct{ BaseRequest }
+
+// Get performs GET request for AuditEvent
+func (r *AuditEventRequest) Get(ctx context.Context) (resObj *AuditEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AuditEvent
+func (r *AuditEventRequest) Update(ctx context.Context, reqObj *AuditEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AuditEvent
+func (r *AuditEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// AuditLogRootRequestBuilder is request builder for AuditLogRoot
+type AuditLogRootRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns AuditLogRootRequest
+func (b *AuditLogRootRequestBuilder) Request() *AuditLogRootRequest {
+ return &AuditLogRootRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// AuditLogRootRequest is request for AuditLogRoot
+type AuditLogRootRequest struct{ BaseRequest }
+
+// Get performs GET request for AuditLogRoot
+func (r *AuditLogRootRequest) Get(ctx context.Context) (resObj *AuditLogRoot, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for AuditLogRoot
+func (r *AuditLogRootRequest) Update(ctx context.Context, reqObj *AuditLogRoot) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for AuditLogRoot
+func (r *AuditLogRootRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestBase.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBase.go
new file mode 100644
index 00000000..a699ed93
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBase.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BaseItemRequestBuilder is request builder for BaseItem
+type BaseItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BaseItemRequest
+func (b *BaseItemRequestBuilder) Request() *BaseItemRequest {
+ return &BaseItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BaseItemRequest is request for BaseItem
+type BaseItemRequest struct{ BaseRequest }
+
+// Get performs GET request for BaseItem
+func (r *BaseItemRequest) Get(ctx context.Context) (resObj *BaseItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BaseItem
+func (r *BaseItemRequest) Update(ctx context.Context, reqObj *BaseItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BaseItem
+func (r *BaseItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go
new file mode 100644
index 00000000..766f8f34
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBooking.go
@@ -0,0 +1,281 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BookingAppointmentRequestBuilder is request builder for BookingAppointment
+type BookingAppointmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingAppointmentRequest
+func (b *BookingAppointmentRequestBuilder) Request() *BookingAppointmentRequest {
+ return &BookingAppointmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingAppointmentRequest is request for BookingAppointment
+type BookingAppointmentRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingAppointment
+func (r *BookingAppointmentRequest) Get(ctx context.Context) (resObj *BookingAppointment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingAppointment
+func (r *BookingAppointmentRequest) Update(ctx context.Context, reqObj *BookingAppointment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingAppointment
+func (r *BookingAppointmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// BookingBusinessRequestBuilder is request builder for BookingBusiness
+type BookingBusinessRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingBusinessRequest
+func (b *BookingBusinessRequestBuilder) Request() *BookingBusinessRequest {
+ return &BookingBusinessRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingBusinessRequest is request for BookingBusiness
+type BookingBusinessRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingBusiness
+func (r *BookingBusinessRequest) Get(ctx context.Context) (resObj *BookingBusiness, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingBusiness
+func (r *BookingBusinessRequest) Update(ctx context.Context, reqObj *BookingBusiness) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingBusiness
+func (r *BookingBusinessRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// BookingCurrencyRequestBuilder is request builder for BookingCurrency
+type BookingCurrencyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingCurrencyRequest
+func (b *BookingCurrencyRequestBuilder) Request() *BookingCurrencyRequest {
+ return &BookingCurrencyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingCurrencyRequest is request for BookingCurrency
+type BookingCurrencyRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingCurrency
+func (r *BookingCurrencyRequest) Get(ctx context.Context) (resObj *BookingCurrency, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingCurrency
+func (r *BookingCurrencyRequest) Update(ctx context.Context, reqObj *BookingCurrency) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingCurrency
+func (r *BookingCurrencyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// BookingCustomerRequestBuilder is request builder for BookingCustomer
+type BookingCustomerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingCustomerRequest
+func (b *BookingCustomerRequestBuilder) Request() *BookingCustomerRequest {
+ return &BookingCustomerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingCustomerRequest is request for BookingCustomer
+type BookingCustomerRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingCustomer
+func (r *BookingCustomerRequest) Get(ctx context.Context) (resObj *BookingCustomer, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingCustomer
+func (r *BookingCustomerRequest) Update(ctx context.Context, reqObj *BookingCustomer) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingCustomer
+func (r *BookingCustomerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// BookingServiceRequestBuilder is request builder for BookingService
+type BookingServiceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingServiceRequest
+func (b *BookingServiceRequestBuilder) Request() *BookingServiceRequest {
+ return &BookingServiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingServiceRequest is request for BookingService
+type BookingServiceRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingService
+func (r *BookingServiceRequest) Get(ctx context.Context) (resObj *BookingService, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingService
+func (r *BookingServiceRequest) Update(ctx context.Context, reqObj *BookingService) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingService
+func (r *BookingServiceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// BookingStaffMemberRequestBuilder is request builder for BookingStaffMember
+type BookingStaffMemberRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BookingStaffMemberRequest
+func (b *BookingStaffMemberRequestBuilder) Request() *BookingStaffMemberRequest {
+ return &BookingStaffMemberRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BookingStaffMemberRequest is request for BookingStaffMember
+type BookingStaffMemberRequest struct{ BaseRequest }
+
+// Get performs GET request for BookingStaffMember
+func (r *BookingStaffMemberRequest) Get(ctx context.Context) (resObj *BookingStaffMember, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BookingStaffMember
+func (r *BookingStaffMemberRequest) Update(ctx context.Context, reqObj *BookingStaffMember) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BookingStaffMember
+func (r *BookingStaffMemberRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type BookingAppointmentCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *BookingAppointmentRequestBuilder) Cancel(reqObj *BookingAppointmentCancelRequestParameter) *BookingAppointmentCancelRequestBuilder {
+ bb := &BookingAppointmentCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type BookingAppointmentCancelRequest struct{ BaseRequest }
+
+//
+func (b *BookingAppointmentCancelRequestBuilder) Request() *BookingAppointmentCancelRequest {
+ return &BookingAppointmentCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *BookingAppointmentCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type BookingBusinessPublishRequestBuilder struct{ BaseRequestBuilder }
+
+// Publish action undocumented
+func (b *BookingBusinessRequestBuilder) Publish(reqObj *BookingBusinessPublishRequestParameter) *BookingBusinessPublishRequestBuilder {
+ bb := &BookingBusinessPublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/publish"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type BookingBusinessPublishRequest struct{ BaseRequest }
+
+//
+func (b *BookingBusinessPublishRequestBuilder) Request() *BookingBusinessPublishRequest {
+ return &BookingBusinessPublishRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *BookingBusinessPublishRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type BookingBusinessUnpublishRequestBuilder struct{ BaseRequestBuilder }
+
+// Unpublish action undocumented
+func (b *BookingBusinessRequestBuilder) Unpublish(reqObj *BookingBusinessUnpublishRequestParameter) *BookingBusinessUnpublishRequestBuilder {
+ bb := &BookingBusinessUnpublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unpublish"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type BookingBusinessUnpublishRequest struct{ BaseRequest }
+
+//
+func (b *BookingBusinessUnpublishRequestBuilder) Request() *BookingBusinessUnpublishRequest {
+ return &BookingBusinessUnpublishRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *BookingBusinessUnpublishRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestBusiness.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBusiness.go
new file mode 100644
index 00000000..ccf1209c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestBusiness.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// BusinessFlowRequestBuilder is request builder for BusinessFlow
+type BusinessFlowRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BusinessFlowRequest
+func (b *BusinessFlowRequestBuilder) Request() *BusinessFlowRequest {
+ return &BusinessFlowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BusinessFlowRequest is request for BusinessFlow
+type BusinessFlowRequest struct{ BaseRequest }
+
+// Get performs GET request for BusinessFlow
+func (r *BusinessFlowRequest) Get(ctx context.Context) (resObj *BusinessFlow, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BusinessFlow
+func (r *BusinessFlowRequest) Update(ctx context.Context, reqObj *BusinessFlow) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BusinessFlow
+func (r *BusinessFlowRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// BusinessFlowTemplateRequestBuilder is request builder for BusinessFlowTemplate
+type BusinessFlowTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns BusinessFlowTemplateRequest
+func (b *BusinessFlowTemplateRequestBuilder) Request() *BusinessFlowTemplateRequest {
+ return &BusinessFlowTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// BusinessFlowTemplateRequest is request for BusinessFlowTemplate
+type BusinessFlowTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for BusinessFlowTemplate
+func (r *BusinessFlowTemplateRequest) Get(ctx context.Context) (resObj *BusinessFlowTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for BusinessFlowTemplate
+func (r *BusinessFlowTemplateRequest) Update(ctx context.Context, reqObj *BusinessFlowTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for BusinessFlowTemplate
+func (r *BusinessFlowTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type BusinessFlowRecordDecisionsRequestBuilder struct{ BaseRequestBuilder }
+
+// RecordDecisions action undocumented
+func (b *BusinessFlowRequestBuilder) RecordDecisions(reqObj *BusinessFlowRecordDecisionsRequestParameter) *BusinessFlowRecordDecisionsRequestBuilder {
+ bb := &BusinessFlowRecordDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/recordDecisions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type BusinessFlowRecordDecisionsRequest struct{ BaseRequest }
+
+//
+func (b *BusinessFlowRecordDecisionsRequestBuilder) Request() *BusinessFlowRecordDecisionsRequest {
+ return &BusinessFlowRecordDecisionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *BusinessFlowRecordDecisionsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCalendar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCalendar.go
new file mode 100644
index 00000000..bef252ae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCalendar.go
@@ -0,0 +1,257 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CalendarRequestBuilder is request builder for Calendar
+type CalendarRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CalendarRequest
+func (b *CalendarRequestBuilder) Request() *CalendarRequest {
+ return &CalendarRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CalendarRequest is request for Calendar
+type CalendarRequest struct{ BaseRequest }
+
+// Get performs GET request for Calendar
+func (r *CalendarRequest) Get(ctx context.Context) (resObj *Calendar, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Calendar
+func (r *CalendarRequest) Update(ctx context.Context, reqObj *Calendar) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Calendar
+func (r *CalendarRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CalendarGroupRequestBuilder is request builder for CalendarGroup
+type CalendarGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CalendarGroupRequest
+func (b *CalendarGroupRequestBuilder) Request() *CalendarGroupRequest {
+ return &CalendarGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CalendarGroupRequest is request for CalendarGroup
+type CalendarGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for CalendarGroup
+func (r *CalendarGroupRequest) Get(ctx context.Context) (resObj *CalendarGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CalendarGroup
+func (r *CalendarGroupRequest) Update(ctx context.Context, reqObj *CalendarGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CalendarGroup
+func (r *CalendarGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CalendarPermissionRequestBuilder is request builder for CalendarPermission
+type CalendarPermissionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CalendarPermissionRequest
+func (b *CalendarPermissionRequestBuilder) Request() *CalendarPermissionRequest {
+ return &CalendarPermissionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CalendarPermissionRequest is request for CalendarPermission
+type CalendarPermissionRequest struct{ BaseRequest }
+
+// Get performs GET request for CalendarPermission
+func (r *CalendarPermissionRequest) Get(ctx context.Context) (resObj *CalendarPermission, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CalendarPermission
+func (r *CalendarPermissionRequest) Update(ctx context.Context, reqObj *CalendarPermission) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CalendarPermission
+func (r *CalendarPermissionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CalendarSharingMessageRequestBuilder is request builder for CalendarSharingMessage
+type CalendarSharingMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CalendarSharingMessageRequest
+func (b *CalendarSharingMessageRequestBuilder) Request() *CalendarSharingMessageRequest {
+ return &CalendarSharingMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CalendarSharingMessageRequest is request for CalendarSharingMessage
+type CalendarSharingMessageRequest struct{ BaseRequest }
+
+// Get performs GET request for CalendarSharingMessage
+func (r *CalendarSharingMessageRequest) Get(ctx context.Context) (resObj *CalendarSharingMessage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CalendarSharingMessage
+func (r *CalendarSharingMessageRequest) Update(ctx context.Context, reqObj *CalendarSharingMessage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CalendarSharingMessage
+func (r *CalendarSharingMessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type CalendarGetScheduleRequestBuilder struct{ BaseRequestBuilder }
+
+// GetSchedule action undocumented
+func (b *CalendarRequestBuilder) GetSchedule(reqObj *CalendarGetScheduleRequestParameter) *CalendarGetScheduleRequestBuilder {
+ bb := &CalendarGetScheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getSchedule"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CalendarGetScheduleRequest struct{ BaseRequest }
+
+//
+func (b *CalendarGetScheduleRequestBuilder) Request() *CalendarGetScheduleRequest {
+ return &CalendarGetScheduleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CalendarGetScheduleRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ScheduleInformation, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ScheduleInformation
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ScheduleInformation
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *CalendarGetScheduleRequest) PostN(ctx context.Context, n int) ([]ScheduleInformation, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *CalendarGetScheduleRequest) Post(ctx context.Context) ([]ScheduleInformation, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type CalendarSharingMessageAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// Accept action undocumented
+func (b *CalendarSharingMessageRequestBuilder) Accept(reqObj *CalendarSharingMessageAcceptRequestParameter) *CalendarSharingMessageAcceptRequestBuilder {
+ bb := &CalendarSharingMessageAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/accept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CalendarSharingMessageAcceptRequest struct{ BaseRequest }
+
+//
+func (b *CalendarSharingMessageAcceptRequestBuilder) Request() *CalendarSharingMessageAcceptRequest {
+ return &CalendarSharingMessageAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CalendarSharingMessageAcceptRequest) Post(ctx context.Context) (resObj *Calendar, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCall.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCall.go
new file mode 100644
index 00000000..41ebd8d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCall.go
@@ -0,0 +1,410 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CallRequestBuilder is request builder for Call
+type CallRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CallRequest
+func (b *CallRequestBuilder) Request() *CallRequest {
+ return &CallRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CallRequest is request for Call
+type CallRequest struct{ BaseRequest }
+
+// Get performs GET request for Call
+func (r *CallRequest) Get(ctx context.Context) (resObj *Call, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Call
+func (r *CallRequest) Update(ctx context.Context, reqObj *Call) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Call
+func (r *CallRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type CallAnswerRequestBuilder struct{ BaseRequestBuilder }
+
+// Answer action undocumented
+func (b *CallRequestBuilder) Answer(reqObj *CallAnswerRequestParameter) *CallAnswerRequestBuilder {
+ bb := &CallAnswerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/answer"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallAnswerRequest struct{ BaseRequest }
+
+//
+func (b *CallAnswerRequestBuilder) Request() *CallAnswerRequest {
+ return &CallAnswerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallAnswerRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallCancelMediaProcessingRequestBuilder struct{ BaseRequestBuilder }
+
+// CancelMediaProcessing action undocumented
+func (b *CallRequestBuilder) CancelMediaProcessing(reqObj *CallCancelMediaProcessingRequestParameter) *CallCancelMediaProcessingRequestBuilder {
+ bb := &CallCancelMediaProcessingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancelMediaProcessing"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallCancelMediaProcessingRequest struct{ BaseRequest }
+
+//
+func (b *CallCancelMediaProcessingRequestBuilder) Request() *CallCancelMediaProcessingRequest {
+ return &CallCancelMediaProcessingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallCancelMediaProcessingRequest) Post(ctx context.Context) (resObj *CancelMediaProcessingOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallChangeScreenSharingRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// ChangeScreenSharingRole action undocumented
+func (b *CallRequestBuilder) ChangeScreenSharingRole(reqObj *CallChangeScreenSharingRoleRequestParameter) *CallChangeScreenSharingRoleRequestBuilder {
+ bb := &CallChangeScreenSharingRoleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/changeScreenSharingRole"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallChangeScreenSharingRoleRequest struct{ BaseRequest }
+
+//
+func (b *CallChangeScreenSharingRoleRequestBuilder) Request() *CallChangeScreenSharingRoleRequest {
+ return &CallChangeScreenSharingRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallChangeScreenSharingRoleRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallKeepAliveRequestBuilder struct{ BaseRequestBuilder }
+
+// KeepAlive action undocumented
+func (b *CallRequestBuilder) KeepAlive(reqObj *CallKeepAliveRequestParameter) *CallKeepAliveRequestBuilder {
+ bb := &CallKeepAliveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/keepAlive"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallKeepAliveRequest struct{ BaseRequest }
+
+//
+func (b *CallKeepAliveRequestBuilder) Request() *CallKeepAliveRequest {
+ return &CallKeepAliveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallKeepAliveRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallMuteRequestBuilder struct{ BaseRequestBuilder }
+
+// Mute action undocumented
+func (b *CallRequestBuilder) Mute(reqObj *CallMuteRequestParameter) *CallMuteRequestBuilder {
+ bb := &CallMuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/mute"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallMuteRequest struct{ BaseRequest }
+
+//
+func (b *CallMuteRequestBuilder) Request() *CallMuteRequest {
+ return &CallMuteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallMuteRequest) Post(ctx context.Context) (resObj *MuteParticipantOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallPlayPromptRequestBuilder struct{ BaseRequestBuilder }
+
+// PlayPrompt action undocumented
+func (b *CallRequestBuilder) PlayPrompt(reqObj *CallPlayPromptRequestParameter) *CallPlayPromptRequestBuilder {
+ bb := &CallPlayPromptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/playPrompt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallPlayPromptRequest struct{ BaseRequest }
+
+//
+func (b *CallPlayPromptRequestBuilder) Request() *CallPlayPromptRequest {
+ return &CallPlayPromptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallPlayPromptRequest) Post(ctx context.Context) (resObj *PlayPromptOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallRecordRequestBuilder struct{ BaseRequestBuilder }
+
+// Record action undocumented
+func (b *CallRequestBuilder) Record(reqObj *CallRecordRequestParameter) *CallRecordRequestBuilder {
+ bb := &CallRecordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/record"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallRecordRequest struct{ BaseRequest }
+
+//
+func (b *CallRecordRequestBuilder) Request() *CallRecordRequest {
+ return &CallRecordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallRecordRequest) Post(ctx context.Context) (resObj *RecordOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallRecordResponseRequestBuilder struct{ BaseRequestBuilder }
+
+// RecordResponse action undocumented
+func (b *CallRequestBuilder) RecordResponse(reqObj *CallRecordResponseRequestParameter) *CallRecordResponseRequestBuilder {
+ bb := &CallRecordResponseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/recordResponse"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallRecordResponseRequest struct{ BaseRequest }
+
+//
+func (b *CallRecordResponseRequestBuilder) Request() *CallRecordResponseRequest {
+ return &CallRecordResponseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallRecordResponseRequest) Post(ctx context.Context) (resObj *RecordOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallRedirectRequestBuilder struct{ BaseRequestBuilder }
+
+// Redirect action undocumented
+func (b *CallRequestBuilder) Redirect(reqObj *CallRedirectRequestParameter) *CallRedirectRequestBuilder {
+ bb := &CallRedirectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/redirect"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallRedirectRequest struct{ BaseRequest }
+
+//
+func (b *CallRedirectRequestBuilder) Request() *CallRedirectRequest {
+ return &CallRedirectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallRedirectRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallRejectRequestBuilder struct{ BaseRequestBuilder }
+
+// Reject action undocumented
+func (b *CallRequestBuilder) Reject(reqObj *CallRejectRequestParameter) *CallRejectRequestBuilder {
+ bb := &CallRejectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reject"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallRejectRequest struct{ BaseRequest }
+
+//
+func (b *CallRejectRequestBuilder) Request() *CallRejectRequest {
+ return &CallRejectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallRejectRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallSubscribeToToneRequestBuilder struct{ BaseRequestBuilder }
+
+// SubscribeToTone action undocumented
+func (b *CallRequestBuilder) SubscribeToTone(reqObj *CallSubscribeToToneRequestParameter) *CallSubscribeToToneRequestBuilder {
+ bb := &CallSubscribeToToneRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/subscribeToTone"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallSubscribeToToneRequest struct{ BaseRequest }
+
+//
+func (b *CallSubscribeToToneRequestBuilder) Request() *CallSubscribeToToneRequest {
+ return &CallSubscribeToToneRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallSubscribeToToneRequest) Post(ctx context.Context) (resObj *SubscribeToToneOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallTransferRequestBuilder struct{ BaseRequestBuilder }
+
+// Transfer action undocumented
+func (b *CallRequestBuilder) Transfer(reqObj *CallTransferRequestParameter) *CallTransferRequestBuilder {
+ bb := &CallTransferRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/transfer"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallTransferRequest struct{ BaseRequest }
+
+//
+func (b *CallTransferRequestBuilder) Request() *CallTransferRequest {
+ return &CallTransferRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallTransferRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type CallUnmuteRequestBuilder struct{ BaseRequestBuilder }
+
+// Unmute action undocumented
+func (b *CallRequestBuilder) Unmute(reqObj *CallUnmuteRequestParameter) *CallUnmuteRequestBuilder {
+ bb := &CallUnmuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unmute"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallUnmuteRequest struct{ BaseRequest }
+
+//
+func (b *CallUnmuteRequestBuilder) Request() *CallUnmuteRequest {
+ return &CallUnmuteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallUnmuteRequest) Post(ctx context.Context) (resObj *UnmuteParticipantOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type CallUpdateRecordingStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateRecordingStatus action undocumented
+func (b *CallRequestBuilder) UpdateRecordingStatus(reqObj *CallUpdateRecordingStatusRequestParameter) *CallUpdateRecordingStatusRequestBuilder {
+ bb := &CallUpdateRecordingStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateRecordingStatus"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CallUpdateRecordingStatusRequest struct{ BaseRequest }
+
+//
+func (b *CallUpdateRecordingStatusRequestBuilder) Request() *CallUpdateRecordingStatusRequest {
+ return &CallUpdateRecordingStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CallUpdateRecordingStatusRequest) Post(ctx context.Context) (resObj *UpdateRecordingStatusOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCart.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCart.go
new file mode 100644
index 00000000..3e31d71e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCart.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CartToClassAssociationRequestBuilder is request builder for CartToClassAssociation
+type CartToClassAssociationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CartToClassAssociationRequest
+func (b *CartToClassAssociationRequestBuilder) Request() *CartToClassAssociationRequest {
+ return &CartToClassAssociationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CartToClassAssociationRequest is request for CartToClassAssociation
+type CartToClassAssociationRequest struct{ BaseRequest }
+
+// Get performs GET request for CartToClassAssociation
+func (r *CartToClassAssociationRequest) Get(ctx context.Context) (resObj *CartToClassAssociation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CartToClassAssociation
+func (r *CartToClassAssociationRequest) Update(ctx context.Context, reqObj *CartToClassAssociation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CartToClassAssociation
+func (r *CartToClassAssociationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCertificate.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCertificate.go
new file mode 100644
index 00000000..d5f5e4e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCertificate.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CertificateBasedAuthConfigurationRequestBuilder is request builder for CertificateBasedAuthConfiguration
+type CertificateBasedAuthConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CertificateBasedAuthConfigurationRequest
+func (b *CertificateBasedAuthConfigurationRequestBuilder) Request() *CertificateBasedAuthConfigurationRequest {
+ return &CertificateBasedAuthConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CertificateBasedAuthConfigurationRequest is request for CertificateBasedAuthConfiguration
+type CertificateBasedAuthConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for CertificateBasedAuthConfiguration
+func (r *CertificateBasedAuthConfigurationRequest) Get(ctx context.Context) (resObj *CertificateBasedAuthConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CertificateBasedAuthConfiguration
+func (r *CertificateBasedAuthConfigurationRequest) Update(ctx context.Context, reqObj *CertificateBasedAuthConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CertificateBasedAuthConfiguration
+func (r *CertificateBasedAuthConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestChannel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestChannel.go
new file mode 100644
index 00000000..36dfb0d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestChannel.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ChannelRequestBuilder is request builder for Channel
+type ChannelRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ChannelRequest
+func (b *ChannelRequestBuilder) Request() *ChannelRequest {
+ return &ChannelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ChannelRequest is request for Channel
+type ChannelRequest struct{ BaseRequest }
+
+// Get performs GET request for Channel
+func (r *ChannelRequest) Get(ctx context.Context) (resObj *Channel, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Channel
+func (r *ChannelRequest) Update(ctx context.Context, reqObj *Channel) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Channel
+func (r *ChannelRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestChat.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestChat.go
new file mode 100644
index 00000000..d872f014
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestChat.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ChatRequestBuilder is request builder for Chat
+type ChatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ChatRequest
+func (b *ChatRequestBuilder) Request() *ChatRequest {
+ return &ChatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ChatRequest is request for Chat
+type ChatRequest struct{ BaseRequest }
+
+// Get performs GET request for Chat
+func (r *ChatRequest) Get(ctx context.Context) (resObj *Chat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Chat
+func (r *ChatRequest) Update(ctx context.Context, reqObj *Chat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Chat
+func (r *ChatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ChatMessageRequestBuilder is request builder for ChatMessage
+type ChatMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ChatMessageRequest
+func (b *ChatMessageRequestBuilder) Request() *ChatMessageRequest {
+ return &ChatMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ChatMessageRequest is request for ChatMessage
+type ChatMessageRequest struct{ BaseRequest }
+
+// Get performs GET request for ChatMessage
+func (r *ChatMessageRequest) Get(ctx context.Context) (resObj *ChatMessage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ChatMessage
+func (r *ChatMessageRequest) Update(ctx context.Context, reqObj *ChatMessage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ChatMessage
+func (r *ChatMessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ChatMessageHostedContentRequestBuilder is request builder for ChatMessageHostedContent
+type ChatMessageHostedContentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ChatMessageHostedContentRequest
+func (b *ChatMessageHostedContentRequestBuilder) Request() *ChatMessageHostedContentRequest {
+ return &ChatMessageHostedContentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ChatMessageHostedContentRequest is request for ChatMessageHostedContent
+type ChatMessageHostedContentRequest struct{ BaseRequest }
+
+// Get performs GET request for ChatMessageHostedContent
+func (r *ChatMessageHostedContentRequest) Get(ctx context.Context) (resObj *ChatMessageHostedContent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ChatMessageHostedContent
+func (r *ChatMessageHostedContentRequest) Update(ctx context.Context, reqObj *ChatMessageHostedContent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ChatMessageHostedContent
+func (r *ChatMessageHostedContentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCloud.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCloud.go
new file mode 100644
index 00000000..a91f5876
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCloud.go
@@ -0,0 +1,164 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// CloudAppSecurityProfileRequestBuilder is request builder for CloudAppSecurityProfile
+type CloudAppSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CloudAppSecurityProfileRequest
+func (b *CloudAppSecurityProfileRequestBuilder) Request() *CloudAppSecurityProfileRequest {
+ return &CloudAppSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CloudAppSecurityProfileRequest is request for CloudAppSecurityProfile
+type CloudAppSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for CloudAppSecurityProfile
+func (r *CloudAppSecurityProfileRequest) Get(ctx context.Context) (resObj *CloudAppSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CloudAppSecurityProfile
+func (r *CloudAppSecurityProfileRequest) Update(ctx context.Context, reqObj *CloudAppSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CloudAppSecurityProfile
+func (r *CloudAppSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CloudCommunicationsRequestBuilder is request builder for CloudCommunications
+type CloudCommunicationsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CloudCommunicationsRequest
+func (b *CloudCommunicationsRequestBuilder) Request() *CloudCommunicationsRequest {
+ return &CloudCommunicationsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CloudCommunicationsRequest is request for CloudCommunications
+type CloudCommunicationsRequest struct{ BaseRequest }
+
+// Get performs GET request for CloudCommunications
+func (r *CloudCommunicationsRequest) Get(ctx context.Context) (resObj *CloudCommunications, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CloudCommunications
+func (r *CloudCommunicationsRequest) Update(ctx context.Context, reqObj *CloudCommunications) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CloudCommunications
+func (r *CloudCommunicationsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type CloudCommunicationsGetPresencesByUserIDRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPresencesByUserID action undocumented
+func (b *CloudCommunicationsRequestBuilder) GetPresencesByUserID(reqObj *CloudCommunicationsGetPresencesByUserIDRequestParameter) *CloudCommunicationsGetPresencesByUserIDRequestBuilder {
+ bb := &CloudCommunicationsGetPresencesByUserIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPresencesByUserId"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type CloudCommunicationsGetPresencesByUserIDRequest struct{ BaseRequest }
+
+//
+func (b *CloudCommunicationsGetPresencesByUserIDRequestBuilder) Request() *CloudCommunicationsGetPresencesByUserIDRequest {
+ return &CloudCommunicationsGetPresencesByUserIDRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *CloudCommunicationsGetPresencesByUserIDRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Presence, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Presence
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Presence
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *CloudCommunicationsGetPresencesByUserIDRequest) PostN(ctx context.Context, n int) ([]Presence, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *CloudCommunicationsGetPresencesByUserIDRequest) Post(ctx context.Context) ([]Presence, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestColumn.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestColumn.go
new file mode 100644
index 00000000..954062ed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestColumn.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ColumnDefinitionRequestBuilder is request builder for ColumnDefinition
+type ColumnDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ColumnDefinitionRequest
+func (b *ColumnDefinitionRequestBuilder) Request() *ColumnDefinitionRequest {
+ return &ColumnDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ColumnDefinitionRequest is request for ColumnDefinition
+type ColumnDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for ColumnDefinition
+func (r *ColumnDefinitionRequest) Get(ctx context.Context) (resObj *ColumnDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ColumnDefinition
+func (r *ColumnDefinitionRequest) Update(ctx context.Context, reqObj *ColumnDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ColumnDefinition
+func (r *ColumnDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ColumnLinkRequestBuilder is request builder for ColumnLink
+type ColumnLinkRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ColumnLinkRequest
+func (b *ColumnLinkRequestBuilder) Request() *ColumnLinkRequest {
+ return &ColumnLinkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ColumnLinkRequest is request for ColumnLink
+type ColumnLinkRequest struct{ BaseRequest }
+
+// Get performs GET request for ColumnLink
+func (r *ColumnLinkRequest) Get(ctx context.Context) (resObj *ColumnLink, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ColumnLink
+func (r *ColumnLinkRequest) Update(ctx context.Context, reqObj *ColumnLink) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ColumnLink
+func (r *ColumnLinkRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCommand.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCommand.go
new file mode 100644
index 00000000..9339a987
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCommand.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CommandRequestBuilder is request builder for Command
+type CommandRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CommandRequest
+func (b *CommandRequestBuilder) Request() *CommandRequest {
+ return &CommandRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CommandRequest is request for Command
+type CommandRequest struct{ BaseRequest }
+
+// Get performs GET request for Command
+func (r *CommandRequest) Get(ctx context.Context) (resObj *Command, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Command
+func (r *CommandRequest) Update(ctx context.Context, reqObj *Command) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Command
+func (r *CommandRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestComms.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestComms.go
new file mode 100644
index 00000000..48a826a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestComms.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CommsApplicationRequestBuilder is request builder for CommsApplication
+type CommsApplicationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CommsApplicationRequest
+func (b *CommsApplicationRequestBuilder) Request() *CommsApplicationRequest {
+ return &CommsApplicationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CommsApplicationRequest is request for CommsApplication
+type CommsApplicationRequest struct{ BaseRequest }
+
+// Get performs GET request for CommsApplication
+func (r *CommsApplicationRequest) Get(ctx context.Context) (resObj *CommsApplication, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CommsApplication
+func (r *CommsApplicationRequest) Update(ctx context.Context, reqObj *CommsApplication) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CommsApplication
+func (r *CommsApplicationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CommsOperationRequestBuilder is request builder for CommsOperation
+type CommsOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CommsOperationRequest
+func (b *CommsOperationRequestBuilder) Request() *CommsOperationRequest {
+ return &CommsOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CommsOperationRequest is request for CommsOperation
+type CommsOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for CommsOperation
+func (r *CommsOperationRequest) Get(ctx context.Context) (resObj *CommsOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CommsOperation
+func (r *CommsOperationRequest) Update(ctx context.Context, reqObj *CommsOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CommsOperation
+func (r *CommsOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompany.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompany.go
new file mode 100644
index 00000000..30aec000
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompany.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CompanyRequestBuilder is request builder for Company
+type CompanyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CompanyRequest
+func (b *CompanyRequestBuilder) Request() *CompanyRequest {
+ return &CompanyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CompanyRequest is request for Company
+type CompanyRequest struct{ BaseRequest }
+
+// Get performs GET request for Company
+func (r *CompanyRequest) Get(ctx context.Context) (resObj *Company, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Company
+func (r *CompanyRequest) Update(ctx context.Context, reqObj *Company) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Company
+func (r *CompanyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CompanyInformationRequestBuilder is request builder for CompanyInformation
+type CompanyInformationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CompanyInformationRequest
+func (b *CompanyInformationRequestBuilder) Request() *CompanyInformationRequest {
+ return &CompanyInformationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CompanyInformationRequest is request for CompanyInformation
+type CompanyInformationRequest struct{ BaseRequest }
+
+// Get performs GET request for CompanyInformation
+func (r *CompanyInformationRequest) Get(ctx context.Context) (resObj *CompanyInformation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CompanyInformation
+func (r *CompanyInformationRequest) Update(ctx context.Context, reqObj *CompanyInformation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CompanyInformation
+func (r *CompanyInformationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompliance.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompliance.go
new file mode 100644
index 00000000..1b2d8ded
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCompliance.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ComplianceManagementPartnerRequestBuilder is request builder for ComplianceManagementPartner
+type ComplianceManagementPartnerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ComplianceManagementPartnerRequest
+func (b *ComplianceManagementPartnerRequestBuilder) Request() *ComplianceManagementPartnerRequest {
+ return &ComplianceManagementPartnerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ComplianceManagementPartnerRequest is request for ComplianceManagementPartner
+type ComplianceManagementPartnerRequest struct{ BaseRequest }
+
+// Get performs GET request for ComplianceManagementPartner
+func (r *ComplianceManagementPartnerRequest) Get(ctx context.Context) (resObj *ComplianceManagementPartner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ComplianceManagementPartner
+func (r *ComplianceManagementPartnerRequest) Update(ctx context.Context, reqObj *ComplianceManagementPartner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ComplianceManagementPartner
+func (r *ComplianceManagementPartnerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestConditional.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConditional.go
new file mode 100644
index 00000000..c9a83b10
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConditional.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ConditionalAccessPolicyRequestBuilder is request builder for ConditionalAccessPolicy
+type ConditionalAccessPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConditionalAccessPolicyRequest
+func (b *ConditionalAccessPolicyRequestBuilder) Request() *ConditionalAccessPolicyRequest {
+ return &ConditionalAccessPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConditionalAccessPolicyRequest is request for ConditionalAccessPolicy
+type ConditionalAccessPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for ConditionalAccessPolicy
+func (r *ConditionalAccessPolicyRequest) Get(ctx context.Context) (resObj *ConditionalAccessPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConditionalAccessPolicy
+func (r *ConditionalAccessPolicyRequest) Update(ctx context.Context, reqObj *ConditionalAccessPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConditionalAccessPolicy
+func (r *ConditionalAccessPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ConditionalAccessRootRequestBuilder is request builder for ConditionalAccessRoot
+type ConditionalAccessRootRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConditionalAccessRootRequest
+func (b *ConditionalAccessRootRequestBuilder) Request() *ConditionalAccessRootRequest {
+ return &ConditionalAccessRootRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConditionalAccessRootRequest is request for ConditionalAccessRoot
+type ConditionalAccessRootRequest struct{ BaseRequest }
+
+// Get performs GET request for ConditionalAccessRoot
+func (r *ConditionalAccessRootRequest) Get(ctx context.Context) (resObj *ConditionalAccessRoot, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConditionalAccessRoot
+func (r *ConditionalAccessRootRequest) Update(ctx context.Context, reqObj *ConditionalAccessRoot) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConditionalAccessRoot
+func (r *ConditionalAccessRootRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestConnection.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConnection.go
new file mode 100644
index 00000000..8d975eff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConnection.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ConnectionOperationRequestBuilder is request builder for ConnectionOperation
+type ConnectionOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConnectionOperationRequest
+func (b *ConnectionOperationRequestBuilder) Request() *ConnectionOperationRequest {
+ return &ConnectionOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConnectionOperationRequest is request for ConnectionOperation
+type ConnectionOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for ConnectionOperation
+func (r *ConnectionOperationRequest) Get(ctx context.Context) (resObj *ConnectionOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConnectionOperation
+func (r *ConnectionOperationRequest) Update(ctx context.Context, reqObj *ConnectionOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConnectionOperation
+func (r *ConnectionOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestContact.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContact.go
new file mode 100644
index 00000000..540be8e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContact.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ContactRequestBuilder is request builder for Contact
+type ContactRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ContactRequest
+func (b *ContactRequestBuilder) Request() *ContactRequest {
+ return &ContactRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ContactRequest is request for Contact
+type ContactRequest struct{ BaseRequest }
+
+// Get performs GET request for Contact
+func (r *ContactRequest) Get(ctx context.Context) (resObj *Contact, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Contact
+func (r *ContactRequest) Update(ctx context.Context, reqObj *Contact) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Contact
+func (r *ContactRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ContactFolderRequestBuilder is request builder for ContactFolder
+type ContactFolderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ContactFolderRequest
+func (b *ContactFolderRequestBuilder) Request() *ContactFolderRequest {
+ return &ContactFolderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ContactFolderRequest is request for ContactFolder
+type ContactFolderRequest struct{ BaseRequest }
+
+// Get performs GET request for ContactFolder
+func (r *ContactFolderRequest) Get(ctx context.Context) (resObj *ContactFolder, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ContactFolder
+func (r *ContactFolderRequest) Update(ctx context.Context, reqObj *ContactFolder) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ContactFolder
+func (r *ContactFolderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestContent.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContent.go
new file mode 100644
index 00000000..b30ebd65
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContent.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ContentTypeRequestBuilder is request builder for ContentType
+type ContentTypeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ContentTypeRequest
+func (b *ContentTypeRequestBuilder) Request() *ContentTypeRequest {
+ return &ContentTypeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ContentTypeRequest is request for ContentType
+type ContentTypeRequest struct{ BaseRequest }
+
+// Get performs GET request for ContentType
+func (r *ContentTypeRequest) Get(ctx context.Context) (resObj *ContentType, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ContentType
+func (r *ContentTypeRequest) Update(ctx context.Context, reqObj *ContentType) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ContentType
+func (r *ContentTypeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestContract.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContract.go
new file mode 100644
index 00000000..d8465c8f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestContract.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ContractRequestBuilder is request builder for Contract
+type ContractRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ContractRequest
+func (b *ContractRequestBuilder) Request() *ContractRequest {
+ return &ContractRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ContractRequest is request for Contract
+type ContractRequest struct{ BaseRequest }
+
+// Get performs GET request for Contract
+func (r *ContractRequest) Get(ctx context.Context) (resObj *Contract, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Contract
+func (r *ContractRequest) Update(ctx context.Context, reqObj *Contract) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Contract
+func (r *ContractRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestConversation.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConversation.go
new file mode 100644
index 00000000..d3405b7b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestConversation.go
@@ -0,0 +1,130 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ConversationRequestBuilder is request builder for Conversation
+type ConversationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConversationRequest
+func (b *ConversationRequestBuilder) Request() *ConversationRequest {
+ return &ConversationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConversationRequest is request for Conversation
+type ConversationRequest struct{ BaseRequest }
+
+// Get performs GET request for Conversation
+func (r *ConversationRequest) Get(ctx context.Context) (resObj *Conversation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Conversation
+func (r *ConversationRequest) Update(ctx context.Context, reqObj *Conversation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Conversation
+func (r *ConversationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ConversationMemberRequestBuilder is request builder for ConversationMember
+type ConversationMemberRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConversationMemberRequest
+func (b *ConversationMemberRequestBuilder) Request() *ConversationMemberRequest {
+ return &ConversationMemberRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConversationMemberRequest is request for ConversationMember
+type ConversationMemberRequest struct{ BaseRequest }
+
+// Get performs GET request for ConversationMember
+func (r *ConversationMemberRequest) Get(ctx context.Context) (resObj *ConversationMember, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConversationMember
+func (r *ConversationMemberRequest) Update(ctx context.Context, reqObj *ConversationMember) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConversationMember
+func (r *ConversationMemberRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ConversationThreadRequestBuilder is request builder for ConversationThread
+type ConversationThreadRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ConversationThreadRequest
+func (b *ConversationThreadRequestBuilder) Request() *ConversationThreadRequest {
+ return &ConversationThreadRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ConversationThreadRequest is request for ConversationThread
+type ConversationThreadRequest struct{ BaseRequest }
+
+// Get performs GET request for ConversationThread
+func (r *ConversationThreadRequest) Get(ctx context.Context) (resObj *ConversationThread, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ConversationThread
+func (r *ConversationThreadRequest) Update(ctx context.Context, reqObj *ConversationThread) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ConversationThread
+func (r *ConversationThreadRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type ConversationThreadReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Reply action undocumented
+func (b *ConversationThreadRequestBuilder) Reply(reqObj *ConversationThreadReplyRequestParameter) *ConversationThreadReplyRequestBuilder {
+ bb := &ConversationThreadReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ConversationThreadReplyRequest struct{ BaseRequest }
+
+//
+func (b *ConversationThreadReplyRequestBuilder) Request() *ConversationThreadReplyRequest {
+ return &ConversationThreadReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ConversationThreadReplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCountry.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCountry.go
new file mode 100644
index 00000000..1a37db72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCountry.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CountryRegionRequestBuilder is request builder for CountryRegion
+type CountryRegionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CountryRegionRequest
+func (b *CountryRegionRequestBuilder) Request() *CountryRegionRequest {
+ return &CountryRegionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CountryRegionRequest is request for CountryRegion
+type CountryRegionRequest struct{ BaseRequest }
+
+// Get performs GET request for CountryRegion
+func (r *CountryRegionRequest) Get(ctx context.Context) (resObj *CountryRegion, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CountryRegion
+func (r *CountryRegionRequest) Update(ctx context.Context, reqObj *CountryRegion) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CountryRegion
+func (r *CountryRegionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCredential.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCredential.go
new file mode 100644
index 00000000..3e2a29f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCredential.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CredentialUserRegistrationDetailsRequestBuilder is request builder for CredentialUserRegistrationDetails
+type CredentialUserRegistrationDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CredentialUserRegistrationDetailsRequest
+func (b *CredentialUserRegistrationDetailsRequestBuilder) Request() *CredentialUserRegistrationDetailsRequest {
+ return &CredentialUserRegistrationDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CredentialUserRegistrationDetailsRequest is request for CredentialUserRegistrationDetails
+type CredentialUserRegistrationDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for CredentialUserRegistrationDetails
+func (r *CredentialUserRegistrationDetailsRequest) Get(ctx context.Context) (resObj *CredentialUserRegistrationDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CredentialUserRegistrationDetails
+func (r *CredentialUserRegistrationDetailsRequest) Update(ctx context.Context, reqObj *CredentialUserRegistrationDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CredentialUserRegistrationDetails
+func (r *CredentialUserRegistrationDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCurrency.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCurrency.go
new file mode 100644
index 00000000..3605e038
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCurrency.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CurrencyRequestBuilder is request builder for Currency
+type CurrencyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CurrencyRequest
+func (b *CurrencyRequestBuilder) Request() *CurrencyRequest {
+ return &CurrencyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CurrencyRequest is request for Currency
+type CurrencyRequest struct{ BaseRequest }
+
+// Get performs GET request for Currency
+func (r *CurrencyRequest) Get(ctx context.Context) (resObj *Currency, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Currency
+func (r *CurrencyRequest) Update(ctx context.Context, reqObj *Currency) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Currency
+func (r *CurrencyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestCustomer.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCustomer.go
new file mode 100644
index 00000000..d0787d29
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestCustomer.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// CustomerRequestBuilder is request builder for Customer
+type CustomerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CustomerRequest
+func (b *CustomerRequestBuilder) Request() *CustomerRequest {
+ return &CustomerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CustomerRequest is request for Customer
+type CustomerRequest struct{ BaseRequest }
+
+// Get performs GET request for Customer
+func (r *CustomerRequest) Get(ctx context.Context) (resObj *Customer, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Customer
+func (r *CustomerRequest) Update(ctx context.Context, reqObj *Customer) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Customer
+func (r *CustomerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CustomerPaymentRequestBuilder is request builder for CustomerPayment
+type CustomerPaymentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CustomerPaymentRequest
+func (b *CustomerPaymentRequestBuilder) Request() *CustomerPaymentRequest {
+ return &CustomerPaymentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CustomerPaymentRequest is request for CustomerPayment
+type CustomerPaymentRequest struct{ BaseRequest }
+
+// Get performs GET request for CustomerPayment
+func (r *CustomerPaymentRequest) Get(ctx context.Context) (resObj *CustomerPayment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CustomerPayment
+func (r *CustomerPaymentRequest) Update(ctx context.Context, reqObj *CustomerPayment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CustomerPayment
+func (r *CustomerPaymentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// CustomerPaymentJournalRequestBuilder is request builder for CustomerPaymentJournal
+type CustomerPaymentJournalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns CustomerPaymentJournalRequest
+func (b *CustomerPaymentJournalRequestBuilder) Request() *CustomerPaymentJournalRequest {
+ return &CustomerPaymentJournalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// CustomerPaymentJournalRequest is request for CustomerPaymentJournal
+type CustomerPaymentJournalRequest struct{ BaseRequest }
+
+// Get performs GET request for CustomerPaymentJournal
+func (r *CustomerPaymentJournalRequest) Get(ctx context.Context) (resObj *CustomerPaymentJournal, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for CustomerPaymentJournal
+func (r *CustomerPaymentJournalRequest) Update(ctx context.Context, reqObj *CustomerPaymentJournal) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for CustomerPaymentJournal
+func (r *CustomerPaymentJournalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestData.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestData.go
new file mode 100644
index 00000000..8a5f8500
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestData.go
@@ -0,0 +1,191 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DataClassificationServiceRequestBuilder is request builder for DataClassificationService
+type DataClassificationServiceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DataClassificationServiceRequest
+func (b *DataClassificationServiceRequestBuilder) Request() *DataClassificationServiceRequest {
+ return &DataClassificationServiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DataClassificationServiceRequest is request for DataClassificationService
+type DataClassificationServiceRequest struct{ BaseRequest }
+
+// Get performs GET request for DataClassificationService
+func (r *DataClassificationServiceRequest) Get(ctx context.Context) (resObj *DataClassificationService, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DataClassificationService
+func (r *DataClassificationServiceRequest) Update(ctx context.Context, reqObj *DataClassificationService) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DataClassificationService
+func (r *DataClassificationServiceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DataLossPreventionPolicyRequestBuilder is request builder for DataLossPreventionPolicy
+type DataLossPreventionPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DataLossPreventionPolicyRequest
+func (b *DataLossPreventionPolicyRequestBuilder) Request() *DataLossPreventionPolicyRequest {
+ return &DataLossPreventionPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DataLossPreventionPolicyRequest is request for DataLossPreventionPolicy
+type DataLossPreventionPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for DataLossPreventionPolicy
+func (r *DataLossPreventionPolicyRequest) Get(ctx context.Context) (resObj *DataLossPreventionPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DataLossPreventionPolicy
+func (r *DataLossPreventionPolicyRequest) Update(ctx context.Context, reqObj *DataLossPreventionPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DataLossPreventionPolicy
+func (r *DataLossPreventionPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DataPolicyOperationRequestBuilder is request builder for DataPolicyOperation
+type DataPolicyOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DataPolicyOperationRequest
+func (b *DataPolicyOperationRequestBuilder) Request() *DataPolicyOperationRequest {
+ return &DataPolicyOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DataPolicyOperationRequest is request for DataPolicyOperation
+type DataPolicyOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for DataPolicyOperation
+func (r *DataPolicyOperationRequest) Get(ctx context.Context) (resObj *DataPolicyOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DataPolicyOperation
+func (r *DataPolicyOperationRequest) Update(ctx context.Context, reqObj *DataPolicyOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DataPolicyOperation
+func (r *DataPolicyOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DataSharingConsentRequestBuilder is request builder for DataSharingConsent
+type DataSharingConsentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DataSharingConsentRequest
+func (b *DataSharingConsentRequestBuilder) Request() *DataSharingConsentRequest {
+ return &DataSharingConsentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DataSharingConsentRequest is request for DataSharingConsent
+type DataSharingConsentRequest struct{ BaseRequest }
+
+// Get performs GET request for DataSharingConsent
+func (r *DataSharingConsentRequest) Get(ctx context.Context) (resObj *DataSharingConsent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DataSharingConsent
+func (r *DataSharingConsentRequest) Update(ctx context.Context, reqObj *DataSharingConsent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DataSharingConsent
+func (r *DataSharingConsentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type DataLossPreventionPolicyCollectionEvaluateRequestBuilder struct{ BaseRequestBuilder }
+
+// Evaluate action undocumented
+func (b *InformationProtectionDataLossPreventionPoliciesCollectionRequestBuilder) Evaluate(reqObj *DataLossPreventionPolicyCollectionEvaluateRequestParameter) *DataLossPreventionPolicyCollectionEvaluateRequestBuilder {
+ bb := &DataLossPreventionPolicyCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DataLossPreventionPolicyCollectionEvaluateRequest struct{ BaseRequest }
+
+//
+func (b *DataLossPreventionPolicyCollectionEvaluateRequestBuilder) Request() *DataLossPreventionPolicyCollectionEvaluateRequest {
+ return &DataLossPreventionPolicyCollectionEvaluateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DataLossPreventionPolicyCollectionEvaluateRequest) Post(ctx context.Context) (resObj *DlpEvaluatePoliciesJobResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DataSharingConsentConsentToDataSharingRequestBuilder struct{ BaseRequestBuilder }
+
+// ConsentToDataSharing action undocumented
+func (b *DataSharingConsentRequestBuilder) ConsentToDataSharing(reqObj *DataSharingConsentConsentToDataSharingRequestParameter) *DataSharingConsentConsentToDataSharingRequestBuilder {
+ bb := &DataSharingConsentConsentToDataSharingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/consentToDataSharing"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DataSharingConsentConsentToDataSharingRequest struct{ BaseRequest }
+
+//
+func (b *DataSharingConsentConsentToDataSharingRequestBuilder) Request() *DataSharingConsentConsentToDataSharingRequest {
+ return &DataSharingConsentConsentToDataSharingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DataSharingConsentConsentToDataSharingRequest) Post(ctx context.Context) (resObj *DataSharingConsent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDefault.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDefault.go
new file mode 100644
index 00000000..800f2c39
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDefault.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DefaultManagedAppProtectionRequestBuilder is request builder for DefaultManagedAppProtection
+type DefaultManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DefaultManagedAppProtectionRequest
+func (b *DefaultManagedAppProtectionRequestBuilder) Request() *DefaultManagedAppProtectionRequest {
+ return &DefaultManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DefaultManagedAppProtectionRequest is request for DefaultManagedAppProtection
+type DefaultManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for DefaultManagedAppProtection
+func (r *DefaultManagedAppProtectionRequest) Get(ctx context.Context) (resObj *DefaultManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DefaultManagedAppProtection
+func (r *DefaultManagedAppProtectionRequest) Update(ctx context.Context, reqObj *DefaultManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DefaultManagedAppProtection
+func (r *DefaultManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDep.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDep.go
new file mode 100644
index 00000000..72da7e40
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDep.go
@@ -0,0 +1,208 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DepIOSEnrollmentProfileRequestBuilder is request builder for DepIOSEnrollmentProfile
+type DepIOSEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DepIOSEnrollmentProfileRequest
+func (b *DepIOSEnrollmentProfileRequestBuilder) Request() *DepIOSEnrollmentProfileRequest {
+ return &DepIOSEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DepIOSEnrollmentProfileRequest is request for DepIOSEnrollmentProfile
+type DepIOSEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for DepIOSEnrollmentProfile
+func (r *DepIOSEnrollmentProfileRequest) Get(ctx context.Context) (resObj *DepIOSEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DepIOSEnrollmentProfile
+func (r *DepIOSEnrollmentProfileRequest) Update(ctx context.Context, reqObj *DepIOSEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DepIOSEnrollmentProfile
+func (r *DepIOSEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DepMacOSEnrollmentProfileRequestBuilder is request builder for DepMacOSEnrollmentProfile
+type DepMacOSEnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DepMacOSEnrollmentProfileRequest
+func (b *DepMacOSEnrollmentProfileRequestBuilder) Request() *DepMacOSEnrollmentProfileRequest {
+ return &DepMacOSEnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DepMacOSEnrollmentProfileRequest is request for DepMacOSEnrollmentProfile
+type DepMacOSEnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for DepMacOSEnrollmentProfile
+func (r *DepMacOSEnrollmentProfileRequest) Get(ctx context.Context) (resObj *DepMacOSEnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DepMacOSEnrollmentProfile
+func (r *DepMacOSEnrollmentProfileRequest) Update(ctx context.Context, reqObj *DepMacOSEnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DepMacOSEnrollmentProfile
+func (r *DepMacOSEnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DepOnboardingSettingRequestBuilder is request builder for DepOnboardingSetting
+type DepOnboardingSettingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DepOnboardingSettingRequest
+func (b *DepOnboardingSettingRequestBuilder) Request() *DepOnboardingSettingRequest {
+ return &DepOnboardingSettingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DepOnboardingSettingRequest is request for DepOnboardingSetting
+type DepOnboardingSettingRequest struct{ BaseRequest }
+
+// Get performs GET request for DepOnboardingSetting
+func (r *DepOnboardingSettingRequest) Get(ctx context.Context) (resObj *DepOnboardingSetting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DepOnboardingSetting
+func (r *DepOnboardingSettingRequest) Update(ctx context.Context, reqObj *DepOnboardingSetting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DepOnboardingSetting
+func (r *DepOnboardingSettingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type DepOnboardingSettingUploadDepTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// UploadDepToken action undocumented
+func (b *DepOnboardingSettingRequestBuilder) UploadDepToken(reqObj *DepOnboardingSettingUploadDepTokenRequestParameter) *DepOnboardingSettingUploadDepTokenRequestBuilder {
+ bb := &DepOnboardingSettingUploadDepTokenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/uploadDepToken"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DepOnboardingSettingUploadDepTokenRequest struct{ BaseRequest }
+
+//
+func (b *DepOnboardingSettingUploadDepTokenRequestBuilder) Request() *DepOnboardingSettingUploadDepTokenRequest {
+ return &DepOnboardingSettingUploadDepTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DepOnboardingSettingUploadDepTokenRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncWithAppleDeviceEnrollmentProgram action undocumented
+func (b *DepOnboardingSettingRequestBuilder) SyncWithAppleDeviceEnrollmentProgram(reqObj *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestParameter) *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder {
+ bb := &DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncWithAppleDeviceEnrollmentProgram"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest struct{ BaseRequest }
+
+//
+func (b *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequestBuilder) Request() *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest {
+ return &DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DepOnboardingSettingSyncWithAppleDeviceEnrollmentProgramRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder struct{ BaseRequestBuilder }
+
+// ShareForSchoolDataSyncService action undocumented
+func (b *DepOnboardingSettingRequestBuilder) ShareForSchoolDataSyncService(reqObj *DepOnboardingSettingShareForSchoolDataSyncServiceRequestParameter) *DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder {
+ bb := &DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/shareForSchoolDataSyncService"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DepOnboardingSettingShareForSchoolDataSyncServiceRequest struct{ BaseRequest }
+
+//
+func (b *DepOnboardingSettingShareForSchoolDataSyncServiceRequestBuilder) Request() *DepOnboardingSettingShareForSchoolDataSyncServiceRequest {
+ return &DepOnboardingSettingShareForSchoolDataSyncServiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DepOnboardingSettingShareForSchoolDataSyncServiceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder struct{ BaseRequestBuilder }
+
+// UnshareForSchoolDataSyncService action undocumented
+func (b *DepOnboardingSettingRequestBuilder) UnshareForSchoolDataSyncService(reqObj *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestParameter) *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder {
+ bb := &DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unshareForSchoolDataSyncService"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest struct{ BaseRequest }
+
+//
+func (b *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequestBuilder) Request() *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest {
+ return &DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DepOnboardingSettingUnshareForSchoolDataSyncServiceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDetected.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDetected.go
new file mode 100644
index 00000000..9513c445
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDetected.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DetectedAppRequestBuilder is request builder for DetectedApp
+type DetectedAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DetectedAppRequest
+func (b *DetectedAppRequestBuilder) Request() *DetectedAppRequest {
+ return &DetectedAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DetectedAppRequest is request for DetectedApp
+type DetectedAppRequest struct{ BaseRequest }
+
+// Get performs GET request for DetectedApp
+func (r *DetectedAppRequest) Get(ctx context.Context) (resObj *DetectedApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DetectedApp
+func (r *DetectedAppRequest) Update(ctx context.Context, reqObj *DetectedApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DetectedApp
+func (r *DetectedAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go
new file mode 100644
index 00000000..6eef9117
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDevice.go
@@ -0,0 +1,3519 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DeviceRequestBuilder is request builder for Device
+type DeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceRequest
+func (b *DeviceRequestBuilder) Request() *DeviceRequest {
+ return &DeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceRequest is request for Device
+type DeviceRequest struct{ BaseRequest }
+
+// Get performs GET request for Device
+func (r *DeviceRequest) Get(ctx context.Context) (resObj *Device, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Device
+func (r *DeviceRequest) Update(ctx context.Context, reqObj *Device) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Device
+func (r *DeviceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceAndAppManagementRoleAssignmentRequestBuilder is request builder for DeviceAndAppManagementRoleAssignment
+type DeviceAndAppManagementRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceAndAppManagementRoleAssignmentRequest
+func (b *DeviceAndAppManagementRoleAssignmentRequestBuilder) Request() *DeviceAndAppManagementRoleAssignmentRequest {
+ return &DeviceAndAppManagementRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceAndAppManagementRoleAssignmentRequest is request for DeviceAndAppManagementRoleAssignment
+type DeviceAndAppManagementRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceAndAppManagementRoleAssignment
+func (r *DeviceAndAppManagementRoleAssignmentRequest) Get(ctx context.Context) (resObj *DeviceAndAppManagementRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceAndAppManagementRoleAssignment
+func (r *DeviceAndAppManagementRoleAssignmentRequest) Update(ctx context.Context, reqObj *DeviceAndAppManagementRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceAndAppManagementRoleAssignment
+func (r *DeviceAndAppManagementRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceAppManagementRequestBuilder is request builder for DeviceAppManagement
+type DeviceAppManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceAppManagementRequest
+func (b *DeviceAppManagementRequestBuilder) Request() *DeviceAppManagementRequest {
+ return &DeviceAppManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceAppManagementRequest is request for DeviceAppManagement
+type DeviceAppManagementRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceAppManagement
+func (r *DeviceAppManagementRequest) Get(ctx context.Context) (resObj *DeviceAppManagement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceAppManagement
+func (r *DeviceAppManagementRequest) Update(ctx context.Context, reqObj *DeviceAppManagement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceAppManagement
+func (r *DeviceAppManagementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceAppManagementTaskRequestBuilder is request builder for DeviceAppManagementTask
+type DeviceAppManagementTaskRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceAppManagementTaskRequest
+func (b *DeviceAppManagementTaskRequestBuilder) Request() *DeviceAppManagementTaskRequest {
+ return &DeviceAppManagementTaskRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceAppManagementTaskRequest is request for DeviceAppManagementTask
+type DeviceAppManagementTaskRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceAppManagementTask
+func (r *DeviceAppManagementTaskRequest) Get(ctx context.Context) (resObj *DeviceAppManagementTask, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceAppManagementTask
+func (r *DeviceAppManagementTaskRequest) Update(ctx context.Context, reqObj *DeviceAppManagementTask) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceAppManagementTask
+func (r *DeviceAppManagementTaskRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceCategoryRequestBuilder is request builder for DeviceCategory
+type DeviceCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCategoryRequest
+func (b *DeviceCategoryRequestBuilder) Request() *DeviceCategoryRequest {
+ return &DeviceCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCategoryRequest is request for DeviceCategory
+type DeviceCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCategory
+func (r *DeviceCategoryRequest) Get(ctx context.Context) (resObj *DeviceCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCategory
+func (r *DeviceCategoryRequest) Update(ctx context.Context, reqObj *DeviceCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCategory
+func (r *DeviceCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceComplianceActionItemRequestBuilder is request builder for DeviceComplianceActionItem
+type DeviceComplianceActionItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceActionItemRequest
+func (b *DeviceComplianceActionItemRequestBuilder) Request() *DeviceComplianceActionItemRequest {
+ return &DeviceComplianceActionItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceActionItemRequest is request for DeviceComplianceActionItem
+type DeviceComplianceActionItemRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceActionItem
+func (r *DeviceComplianceActionItemRequest) Get(ctx context.Context) (resObj *DeviceComplianceActionItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceActionItem
+func (r *DeviceComplianceActionItemRequest) Update(ctx context.Context, reqObj *DeviceComplianceActionItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceActionItem
+func (r *DeviceComplianceActionItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceComplianceDeviceOverviewRequestBuilder is request builder for DeviceComplianceDeviceOverview
+type DeviceComplianceDeviceOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceDeviceOverviewRequest
+func (b *DeviceComplianceDeviceOverviewRequestBuilder) Request() *DeviceComplianceDeviceOverviewRequest {
+ return &DeviceComplianceDeviceOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceDeviceOverviewRequest is request for DeviceComplianceDeviceOverview
+type DeviceComplianceDeviceOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceDeviceOverview
+func (r *DeviceComplianceDeviceOverviewRequest) Get(ctx context.Context) (resObj *DeviceComplianceDeviceOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceDeviceOverview
+func (r *DeviceComplianceDeviceOverviewRequest) Update(ctx context.Context, reqObj *DeviceComplianceDeviceOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceDeviceOverview
+func (r *DeviceComplianceDeviceOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceComplianceDeviceStatusRequestBuilder is request builder for DeviceComplianceDeviceStatus
+type DeviceComplianceDeviceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceDeviceStatusRequest
+func (b *DeviceComplianceDeviceStatusRequestBuilder) Request() *DeviceComplianceDeviceStatusRequest {
+ return &DeviceComplianceDeviceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceDeviceStatusRequest is request for DeviceComplianceDeviceStatus
+type DeviceComplianceDeviceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceDeviceStatus
+func (r *DeviceComplianceDeviceStatusRequest) Get(ctx context.Context) (resObj *DeviceComplianceDeviceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceDeviceStatus
+func (r *DeviceComplianceDeviceStatusRequest) Update(ctx context.Context, reqObj *DeviceComplianceDeviceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceDeviceStatus
+func (r *DeviceComplianceDeviceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceCompliancePolicyRequestBuilder is request builder for DeviceCompliancePolicy
+type DeviceCompliancePolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyRequest
+func (b *DeviceCompliancePolicyRequestBuilder) Request() *DeviceCompliancePolicyRequest {
+ return &DeviceCompliancePolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyRequest is request for DeviceCompliancePolicy
+type DeviceCompliancePolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicy
+func (r *DeviceCompliancePolicyRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicy
+func (r *DeviceCompliancePolicyRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicy
+func (r *DeviceCompliancePolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceCompliancePolicyAssignmentRequestBuilder is request builder for DeviceCompliancePolicyAssignment
+type DeviceCompliancePolicyAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyAssignmentRequest
+func (b *DeviceCompliancePolicyAssignmentRequestBuilder) Request() *DeviceCompliancePolicyAssignmentRequest {
+ return &DeviceCompliancePolicyAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyAssignmentRequest is request for DeviceCompliancePolicyAssignment
+type DeviceCompliancePolicyAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicyAssignment
+func (r *DeviceCompliancePolicyAssignmentRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicyAssignment
+func (r *DeviceCompliancePolicyAssignmentRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicyAssignment
+func (r *DeviceCompliancePolicyAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceCompliancePolicyDeviceStateSummaryRequestBuilder is request builder for DeviceCompliancePolicyDeviceStateSummary
+type DeviceCompliancePolicyDeviceStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyDeviceStateSummaryRequest
+func (b *DeviceCompliancePolicyDeviceStateSummaryRequestBuilder) Request() *DeviceCompliancePolicyDeviceStateSummaryRequest {
+ return &DeviceCompliancePolicyDeviceStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyDeviceStateSummaryRequest is request for DeviceCompliancePolicyDeviceStateSummary
+type DeviceCompliancePolicyDeviceStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicyDeviceStateSummary
+func (r *DeviceCompliancePolicyDeviceStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyDeviceStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicyDeviceStateSummary
+func (r *DeviceCompliancePolicyDeviceStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyDeviceStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicyDeviceStateSummary
+func (r *DeviceCompliancePolicyDeviceStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceCompliancePolicyGroupAssignmentRequestBuilder is request builder for DeviceCompliancePolicyGroupAssignment
+type DeviceCompliancePolicyGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyGroupAssignmentRequest
+func (b *DeviceCompliancePolicyGroupAssignmentRequestBuilder) Request() *DeviceCompliancePolicyGroupAssignmentRequest {
+ return &DeviceCompliancePolicyGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyGroupAssignmentRequest is request for DeviceCompliancePolicyGroupAssignment
+type DeviceCompliancePolicyGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicyGroupAssignment
+func (r *DeviceCompliancePolicyGroupAssignmentRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicyGroupAssignment
+func (r *DeviceCompliancePolicyGroupAssignmentRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicyGroupAssignment
+func (r *DeviceCompliancePolicyGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceCompliancePolicySettingStateSummaryRequestBuilder is request builder for DeviceCompliancePolicySettingStateSummary
+type DeviceCompliancePolicySettingStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicySettingStateSummaryRequest
+func (b *DeviceCompliancePolicySettingStateSummaryRequestBuilder) Request() *DeviceCompliancePolicySettingStateSummaryRequest {
+ return &DeviceCompliancePolicySettingStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicySettingStateSummaryRequest is request for DeviceCompliancePolicySettingStateSummary
+type DeviceCompliancePolicySettingStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicySettingStateSummary
+func (r *DeviceCompliancePolicySettingStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicySettingStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicySettingStateSummary
+func (r *DeviceCompliancePolicySettingStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicySettingStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicySettingStateSummary
+func (r *DeviceCompliancePolicySettingStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceCompliancePolicyStateRequestBuilder is request builder for DeviceCompliancePolicyState
+type DeviceCompliancePolicyStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceCompliancePolicyStateRequest
+func (b *DeviceCompliancePolicyStateRequestBuilder) Request() *DeviceCompliancePolicyStateRequest {
+ return &DeviceCompliancePolicyStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceCompliancePolicyStateRequest is request for DeviceCompliancePolicyState
+type DeviceCompliancePolicyStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceCompliancePolicyState
+func (r *DeviceCompliancePolicyStateRequest) Get(ctx context.Context) (resObj *DeviceCompliancePolicyState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceCompliancePolicyState
+func (r *DeviceCompliancePolicyStateRequest) Update(ctx context.Context, reqObj *DeviceCompliancePolicyState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceCompliancePolicyState
+func (r *DeviceCompliancePolicyStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceComplianceScheduledActionForRuleRequestBuilder is request builder for DeviceComplianceScheduledActionForRule
+type DeviceComplianceScheduledActionForRuleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceScheduledActionForRuleRequest
+func (b *DeviceComplianceScheduledActionForRuleRequestBuilder) Request() *DeviceComplianceScheduledActionForRuleRequest {
+ return &DeviceComplianceScheduledActionForRuleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceScheduledActionForRuleRequest is request for DeviceComplianceScheduledActionForRule
+type DeviceComplianceScheduledActionForRuleRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceScheduledActionForRule
+func (r *DeviceComplianceScheduledActionForRuleRequest) Get(ctx context.Context) (resObj *DeviceComplianceScheduledActionForRule, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceScheduledActionForRule
+func (r *DeviceComplianceScheduledActionForRuleRequest) Update(ctx context.Context, reqObj *DeviceComplianceScheduledActionForRule) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceScheduledActionForRule
+func (r *DeviceComplianceScheduledActionForRuleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceComplianceSettingStateRequestBuilder is request builder for DeviceComplianceSettingState
+type DeviceComplianceSettingStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceSettingStateRequest
+func (b *DeviceComplianceSettingStateRequestBuilder) Request() *DeviceComplianceSettingStateRequest {
+ return &DeviceComplianceSettingStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceSettingStateRequest is request for DeviceComplianceSettingState
+type DeviceComplianceSettingStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceSettingState
+func (r *DeviceComplianceSettingStateRequest) Get(ctx context.Context) (resObj *DeviceComplianceSettingState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceSettingState
+func (r *DeviceComplianceSettingStateRequest) Update(ctx context.Context, reqObj *DeviceComplianceSettingState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceSettingState
+func (r *DeviceComplianceSettingStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceComplianceUserOverviewRequestBuilder is request builder for DeviceComplianceUserOverview
+type DeviceComplianceUserOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceUserOverviewRequest
+func (b *DeviceComplianceUserOverviewRequestBuilder) Request() *DeviceComplianceUserOverviewRequest {
+ return &DeviceComplianceUserOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceUserOverviewRequest is request for DeviceComplianceUserOverview
+type DeviceComplianceUserOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceUserOverview
+func (r *DeviceComplianceUserOverviewRequest) Get(ctx context.Context) (resObj *DeviceComplianceUserOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceUserOverview
+func (r *DeviceComplianceUserOverviewRequest) Update(ctx context.Context, reqObj *DeviceComplianceUserOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceUserOverview
+func (r *DeviceComplianceUserOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceComplianceUserStatusRequestBuilder is request builder for DeviceComplianceUserStatus
+type DeviceComplianceUserStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceComplianceUserStatusRequest
+func (b *DeviceComplianceUserStatusRequestBuilder) Request() *DeviceComplianceUserStatusRequest {
+ return &DeviceComplianceUserStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceComplianceUserStatusRequest is request for DeviceComplianceUserStatus
+type DeviceComplianceUserStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceComplianceUserStatus
+func (r *DeviceComplianceUserStatusRequest) Get(ctx context.Context) (resObj *DeviceComplianceUserStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceComplianceUserStatus
+func (r *DeviceComplianceUserStatusRequest) Update(ctx context.Context, reqObj *DeviceComplianceUserStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceComplianceUserStatus
+func (r *DeviceComplianceUserStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationRequestBuilder is request builder for DeviceConfiguration
+type DeviceConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationRequest
+func (b *DeviceConfigurationRequestBuilder) Request() *DeviceConfigurationRequest {
+ return &DeviceConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationRequest is request for DeviceConfiguration
+type DeviceConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfiguration
+func (r *DeviceConfigurationRequest) Get(ctx context.Context) (resObj *DeviceConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfiguration
+func (r *DeviceConfigurationRequest) Update(ctx context.Context, reqObj *DeviceConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfiguration
+func (r *DeviceConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationAssignmentRequestBuilder is request builder for DeviceConfigurationAssignment
+type DeviceConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationAssignmentRequest
+func (b *DeviceConfigurationAssignmentRequestBuilder) Request() *DeviceConfigurationAssignmentRequest {
+ return &DeviceConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationAssignmentRequest is request for DeviceConfigurationAssignment
+type DeviceConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationAssignment
+func (r *DeviceConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *DeviceConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationAssignment
+func (r *DeviceConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *DeviceConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationAssignment
+func (r *DeviceConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationConflictSummaryRequestBuilder is request builder for DeviceConfigurationConflictSummary
+type DeviceConfigurationConflictSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationConflictSummaryRequest
+func (b *DeviceConfigurationConflictSummaryRequestBuilder) Request() *DeviceConfigurationConflictSummaryRequest {
+ return &DeviceConfigurationConflictSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationConflictSummaryRequest is request for DeviceConfigurationConflictSummary
+type DeviceConfigurationConflictSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationConflictSummary
+func (r *DeviceConfigurationConflictSummaryRequest) Get(ctx context.Context) (resObj *DeviceConfigurationConflictSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationConflictSummary
+func (r *DeviceConfigurationConflictSummaryRequest) Update(ctx context.Context, reqObj *DeviceConfigurationConflictSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationConflictSummary
+func (r *DeviceConfigurationConflictSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationDeviceOverviewRequestBuilder is request builder for DeviceConfigurationDeviceOverview
+type DeviceConfigurationDeviceOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationDeviceOverviewRequest
+func (b *DeviceConfigurationDeviceOverviewRequestBuilder) Request() *DeviceConfigurationDeviceOverviewRequest {
+ return &DeviceConfigurationDeviceOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationDeviceOverviewRequest is request for DeviceConfigurationDeviceOverview
+type DeviceConfigurationDeviceOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationDeviceOverview
+func (r *DeviceConfigurationDeviceOverviewRequest) Get(ctx context.Context) (resObj *DeviceConfigurationDeviceOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationDeviceOverview
+func (r *DeviceConfigurationDeviceOverviewRequest) Update(ctx context.Context, reqObj *DeviceConfigurationDeviceOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationDeviceOverview
+func (r *DeviceConfigurationDeviceOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationDeviceStateSummaryRequestBuilder is request builder for DeviceConfigurationDeviceStateSummary
+type DeviceConfigurationDeviceStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationDeviceStateSummaryRequest
+func (b *DeviceConfigurationDeviceStateSummaryRequestBuilder) Request() *DeviceConfigurationDeviceStateSummaryRequest {
+ return &DeviceConfigurationDeviceStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationDeviceStateSummaryRequest is request for DeviceConfigurationDeviceStateSummary
+type DeviceConfigurationDeviceStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationDeviceStateSummary
+func (r *DeviceConfigurationDeviceStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceConfigurationDeviceStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationDeviceStateSummary
+func (r *DeviceConfigurationDeviceStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceConfigurationDeviceStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationDeviceStateSummary
+func (r *DeviceConfigurationDeviceStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationDeviceStatusRequestBuilder is request builder for DeviceConfigurationDeviceStatus
+type DeviceConfigurationDeviceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationDeviceStatusRequest
+func (b *DeviceConfigurationDeviceStatusRequestBuilder) Request() *DeviceConfigurationDeviceStatusRequest {
+ return &DeviceConfigurationDeviceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationDeviceStatusRequest is request for DeviceConfigurationDeviceStatus
+type DeviceConfigurationDeviceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationDeviceStatus
+func (r *DeviceConfigurationDeviceStatusRequest) Get(ctx context.Context) (resObj *DeviceConfigurationDeviceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationDeviceStatus
+func (r *DeviceConfigurationDeviceStatusRequest) Update(ctx context.Context, reqObj *DeviceConfigurationDeviceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationDeviceStatus
+func (r *DeviceConfigurationDeviceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationGroupAssignmentRequestBuilder is request builder for DeviceConfigurationGroupAssignment
+type DeviceConfigurationGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationGroupAssignmentRequest
+func (b *DeviceConfigurationGroupAssignmentRequestBuilder) Request() *DeviceConfigurationGroupAssignmentRequest {
+ return &DeviceConfigurationGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationGroupAssignmentRequest is request for DeviceConfigurationGroupAssignment
+type DeviceConfigurationGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationGroupAssignment
+func (r *DeviceConfigurationGroupAssignmentRequest) Get(ctx context.Context) (resObj *DeviceConfigurationGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationGroupAssignment
+func (r *DeviceConfigurationGroupAssignmentRequest) Update(ctx context.Context, reqObj *DeviceConfigurationGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationGroupAssignment
+func (r *DeviceConfigurationGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationStateRequestBuilder is request builder for DeviceConfigurationState
+type DeviceConfigurationStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationStateRequest
+func (b *DeviceConfigurationStateRequestBuilder) Request() *DeviceConfigurationStateRequest {
+ return &DeviceConfigurationStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationStateRequest is request for DeviceConfigurationState
+type DeviceConfigurationStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationState
+func (r *DeviceConfigurationStateRequest) Get(ctx context.Context) (resObj *DeviceConfigurationState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationState
+func (r *DeviceConfigurationStateRequest) Update(ctx context.Context, reqObj *DeviceConfigurationState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationState
+func (r *DeviceConfigurationStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationUserOverviewRequestBuilder is request builder for DeviceConfigurationUserOverview
+type DeviceConfigurationUserOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationUserOverviewRequest
+func (b *DeviceConfigurationUserOverviewRequestBuilder) Request() *DeviceConfigurationUserOverviewRequest {
+ return &DeviceConfigurationUserOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationUserOverviewRequest is request for DeviceConfigurationUserOverview
+type DeviceConfigurationUserOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationUserOverview
+func (r *DeviceConfigurationUserOverviewRequest) Get(ctx context.Context) (resObj *DeviceConfigurationUserOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationUserOverview
+func (r *DeviceConfigurationUserOverviewRequest) Update(ctx context.Context, reqObj *DeviceConfigurationUserOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationUserOverview
+func (r *DeviceConfigurationUserOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationUserStateSummaryRequestBuilder is request builder for DeviceConfigurationUserStateSummary
+type DeviceConfigurationUserStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationUserStateSummaryRequest
+func (b *DeviceConfigurationUserStateSummaryRequestBuilder) Request() *DeviceConfigurationUserStateSummaryRequest {
+ return &DeviceConfigurationUserStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationUserStateSummaryRequest is request for DeviceConfigurationUserStateSummary
+type DeviceConfigurationUserStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationUserStateSummary
+func (r *DeviceConfigurationUserStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceConfigurationUserStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationUserStateSummary
+func (r *DeviceConfigurationUserStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceConfigurationUserStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationUserStateSummary
+func (r *DeviceConfigurationUserStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceConfigurationUserStatusRequestBuilder is request builder for DeviceConfigurationUserStatus
+type DeviceConfigurationUserStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceConfigurationUserStatusRequest
+func (b *DeviceConfigurationUserStatusRequestBuilder) Request() *DeviceConfigurationUserStatusRequest {
+ return &DeviceConfigurationUserStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceConfigurationUserStatusRequest is request for DeviceConfigurationUserStatus
+type DeviceConfigurationUserStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceConfigurationUserStatus
+func (r *DeviceConfigurationUserStatusRequest) Get(ctx context.Context) (resObj *DeviceConfigurationUserStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceConfigurationUserStatus
+func (r *DeviceConfigurationUserStatusRequest) Update(ctx context.Context, reqObj *DeviceConfigurationUserStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceConfigurationUserStatus
+func (r *DeviceConfigurationUserStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceEnrollmentConfigurationRequestBuilder is request builder for DeviceEnrollmentConfiguration
+type DeviceEnrollmentConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceEnrollmentConfigurationRequest
+func (b *DeviceEnrollmentConfigurationRequestBuilder) Request() *DeviceEnrollmentConfigurationRequest {
+ return &DeviceEnrollmentConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceEnrollmentConfigurationRequest is request for DeviceEnrollmentConfiguration
+type DeviceEnrollmentConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceEnrollmentConfiguration
+func (r *DeviceEnrollmentConfigurationRequest) Get(ctx context.Context) (resObj *DeviceEnrollmentConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceEnrollmentConfiguration
+func (r *DeviceEnrollmentConfigurationRequest) Update(ctx context.Context, reqObj *DeviceEnrollmentConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceEnrollmentConfiguration
+func (r *DeviceEnrollmentConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceHealthScriptRequestBuilder is request builder for DeviceHealthScript
+type DeviceHealthScriptRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceHealthScriptRequest
+func (b *DeviceHealthScriptRequestBuilder) Request() *DeviceHealthScriptRequest {
+ return &DeviceHealthScriptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceHealthScriptRequest is request for DeviceHealthScript
+type DeviceHealthScriptRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceHealthScript
+func (r *DeviceHealthScriptRequest) Get(ctx context.Context) (resObj *DeviceHealthScript, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceHealthScript
+func (r *DeviceHealthScriptRequest) Update(ctx context.Context, reqObj *DeviceHealthScript) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceHealthScript
+func (r *DeviceHealthScriptRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceHealthScriptAssignmentRequestBuilder is request builder for DeviceHealthScriptAssignment
+type DeviceHealthScriptAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceHealthScriptAssignmentRequest
+func (b *DeviceHealthScriptAssignmentRequestBuilder) Request() *DeviceHealthScriptAssignmentRequest {
+ return &DeviceHealthScriptAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceHealthScriptAssignmentRequest is request for DeviceHealthScriptAssignment
+type DeviceHealthScriptAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceHealthScriptAssignment
+func (r *DeviceHealthScriptAssignmentRequest) Get(ctx context.Context) (resObj *DeviceHealthScriptAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceHealthScriptAssignment
+func (r *DeviceHealthScriptAssignmentRequest) Update(ctx context.Context, reqObj *DeviceHealthScriptAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceHealthScriptAssignment
+func (r *DeviceHealthScriptAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceHealthScriptDeviceStateRequestBuilder is request builder for DeviceHealthScriptDeviceState
+type DeviceHealthScriptDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceHealthScriptDeviceStateRequest
+func (b *DeviceHealthScriptDeviceStateRequestBuilder) Request() *DeviceHealthScriptDeviceStateRequest {
+ return &DeviceHealthScriptDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceHealthScriptDeviceStateRequest is request for DeviceHealthScriptDeviceState
+type DeviceHealthScriptDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceHealthScriptDeviceState
+func (r *DeviceHealthScriptDeviceStateRequest) Get(ctx context.Context) (resObj *DeviceHealthScriptDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceHealthScriptDeviceState
+func (r *DeviceHealthScriptDeviceStateRequest) Update(ctx context.Context, reqObj *DeviceHealthScriptDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceHealthScriptDeviceState
+func (r *DeviceHealthScriptDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceHealthScriptRunSummaryRequestBuilder is request builder for DeviceHealthScriptRunSummary
+type DeviceHealthScriptRunSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceHealthScriptRunSummaryRequest
+func (b *DeviceHealthScriptRunSummaryRequestBuilder) Request() *DeviceHealthScriptRunSummaryRequest {
+ return &DeviceHealthScriptRunSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceHealthScriptRunSummaryRequest is request for DeviceHealthScriptRunSummary
+type DeviceHealthScriptRunSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceHealthScriptRunSummary
+func (r *DeviceHealthScriptRunSummaryRequest) Get(ctx context.Context) (resObj *DeviceHealthScriptRunSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceHealthScriptRunSummary
+func (r *DeviceHealthScriptRunSummaryRequest) Update(ctx context.Context, reqObj *DeviceHealthScriptRunSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceHealthScriptRunSummary
+func (r *DeviceHealthScriptRunSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceInstallStateRequestBuilder is request builder for DeviceInstallState
+type DeviceInstallStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceInstallStateRequest
+func (b *DeviceInstallStateRequestBuilder) Request() *DeviceInstallStateRequest {
+ return &DeviceInstallStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceInstallStateRequest is request for DeviceInstallState
+type DeviceInstallStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceInstallState
+func (r *DeviceInstallStateRequest) Get(ctx context.Context) (resObj *DeviceInstallState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceInstallState
+func (r *DeviceInstallStateRequest) Update(ctx context.Context, reqObj *DeviceInstallState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceInstallState
+func (r *DeviceInstallStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementRequestBuilder is request builder for DeviceManagement
+type DeviceManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementRequest
+func (b *DeviceManagementRequestBuilder) Request() *DeviceManagementRequest {
+ return &DeviceManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementRequest is request for DeviceManagement
+type DeviceManagementRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagement
+func (r *DeviceManagementRequest) Get(ctx context.Context) (resObj *DeviceManagement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagement
+func (r *DeviceManagementRequest) Update(ctx context.Context, reqObj *DeviceManagement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagement
+func (r *DeviceManagementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementAbstractComplexSettingInstanceRequestBuilder is request builder for DeviceManagementAbstractComplexSettingInstance
+type DeviceManagementAbstractComplexSettingInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementAbstractComplexSettingInstanceRequest
+func (b *DeviceManagementAbstractComplexSettingInstanceRequestBuilder) Request() *DeviceManagementAbstractComplexSettingInstanceRequest {
+ return &DeviceManagementAbstractComplexSettingInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementAbstractComplexSettingInstanceRequest is request for DeviceManagementAbstractComplexSettingInstance
+type DeviceManagementAbstractComplexSettingInstanceRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementAbstractComplexSettingInstance
+func (r *DeviceManagementAbstractComplexSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementAbstractComplexSettingInstance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementAbstractComplexSettingInstance
+func (r *DeviceManagementAbstractComplexSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementAbstractComplexSettingInstance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementAbstractComplexSettingInstance
+func (r *DeviceManagementAbstractComplexSettingInstanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementAutopilotEventRequestBuilder is request builder for DeviceManagementAutopilotEvent
+type DeviceManagementAutopilotEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementAutopilotEventRequest
+func (b *DeviceManagementAutopilotEventRequestBuilder) Request() *DeviceManagementAutopilotEventRequest {
+ return &DeviceManagementAutopilotEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementAutopilotEventRequest is request for DeviceManagementAutopilotEvent
+type DeviceManagementAutopilotEventRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementAutopilotEvent
+func (r *DeviceManagementAutopilotEventRequest) Get(ctx context.Context) (resObj *DeviceManagementAutopilotEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementAutopilotEvent
+func (r *DeviceManagementAutopilotEventRequest) Update(ctx context.Context, reqObj *DeviceManagementAutopilotEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementAutopilotEvent
+func (r *DeviceManagementAutopilotEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementCachedReportConfigurationRequestBuilder is request builder for DeviceManagementCachedReportConfiguration
+type DeviceManagementCachedReportConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementCachedReportConfigurationRequest
+func (b *DeviceManagementCachedReportConfigurationRequestBuilder) Request() *DeviceManagementCachedReportConfigurationRequest {
+ return &DeviceManagementCachedReportConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementCachedReportConfigurationRequest is request for DeviceManagementCachedReportConfiguration
+type DeviceManagementCachedReportConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementCachedReportConfiguration
+func (r *DeviceManagementCachedReportConfigurationRequest) Get(ctx context.Context) (resObj *DeviceManagementCachedReportConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementCachedReportConfiguration
+func (r *DeviceManagementCachedReportConfigurationRequest) Update(ctx context.Context, reqObj *DeviceManagementCachedReportConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementCachedReportConfiguration
+func (r *DeviceManagementCachedReportConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementCollectionSettingInstanceRequestBuilder is request builder for DeviceManagementCollectionSettingInstance
+type DeviceManagementCollectionSettingInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementCollectionSettingInstanceRequest
+func (b *DeviceManagementCollectionSettingInstanceRequestBuilder) Request() *DeviceManagementCollectionSettingInstanceRequest {
+ return &DeviceManagementCollectionSettingInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementCollectionSettingInstanceRequest is request for DeviceManagementCollectionSettingInstance
+type DeviceManagementCollectionSettingInstanceRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementCollectionSettingInstance
+func (r *DeviceManagementCollectionSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementCollectionSettingInstance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementCollectionSettingInstance
+func (r *DeviceManagementCollectionSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementCollectionSettingInstance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementCollectionSettingInstance
+func (r *DeviceManagementCollectionSettingInstanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementComplexSettingInstanceRequestBuilder is request builder for DeviceManagementComplexSettingInstance
+type DeviceManagementComplexSettingInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementComplexSettingInstanceRequest
+func (b *DeviceManagementComplexSettingInstanceRequestBuilder) Request() *DeviceManagementComplexSettingInstanceRequest {
+ return &DeviceManagementComplexSettingInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementComplexSettingInstanceRequest is request for DeviceManagementComplexSettingInstance
+type DeviceManagementComplexSettingInstanceRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementComplexSettingInstance
+func (r *DeviceManagementComplexSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementComplexSettingInstance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementComplexSettingInstance
+func (r *DeviceManagementComplexSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementComplexSettingInstance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementComplexSettingInstance
+func (r *DeviceManagementComplexSettingInstanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementDerivedCredentialSettingsRequestBuilder is request builder for DeviceManagementDerivedCredentialSettings
+type DeviceManagementDerivedCredentialSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementDerivedCredentialSettingsRequest
+func (b *DeviceManagementDerivedCredentialSettingsRequestBuilder) Request() *DeviceManagementDerivedCredentialSettingsRequest {
+ return &DeviceManagementDerivedCredentialSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementDerivedCredentialSettingsRequest is request for DeviceManagementDerivedCredentialSettings
+type DeviceManagementDerivedCredentialSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementDerivedCredentialSettings
+func (r *DeviceManagementDerivedCredentialSettingsRequest) Get(ctx context.Context) (resObj *DeviceManagementDerivedCredentialSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementDerivedCredentialSettings
+func (r *DeviceManagementDerivedCredentialSettingsRequest) Update(ctx context.Context, reqObj *DeviceManagementDerivedCredentialSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementDerivedCredentialSettings
+func (r *DeviceManagementDerivedCredentialSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementDomainJoinConnectorRequestBuilder is request builder for DeviceManagementDomainJoinConnector
+type DeviceManagementDomainJoinConnectorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementDomainJoinConnectorRequest
+func (b *DeviceManagementDomainJoinConnectorRequestBuilder) Request() *DeviceManagementDomainJoinConnectorRequest {
+ return &DeviceManagementDomainJoinConnectorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementDomainJoinConnectorRequest is request for DeviceManagementDomainJoinConnector
+type DeviceManagementDomainJoinConnectorRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementDomainJoinConnector
+func (r *DeviceManagementDomainJoinConnectorRequest) Get(ctx context.Context) (resObj *DeviceManagementDomainJoinConnector, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementDomainJoinConnector
+func (r *DeviceManagementDomainJoinConnectorRequest) Update(ctx context.Context, reqObj *DeviceManagementDomainJoinConnector) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementDomainJoinConnector
+func (r *DeviceManagementDomainJoinConnectorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementExchangeConnectorRequestBuilder is request builder for DeviceManagementExchangeConnector
+type DeviceManagementExchangeConnectorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementExchangeConnectorRequest
+func (b *DeviceManagementExchangeConnectorRequestBuilder) Request() *DeviceManagementExchangeConnectorRequest {
+ return &DeviceManagementExchangeConnectorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementExchangeConnectorRequest is request for DeviceManagementExchangeConnector
+type DeviceManagementExchangeConnectorRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementExchangeConnector
+func (r *DeviceManagementExchangeConnectorRequest) Get(ctx context.Context) (resObj *DeviceManagementExchangeConnector, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementExchangeConnector
+func (r *DeviceManagementExchangeConnectorRequest) Update(ctx context.Context, reqObj *DeviceManagementExchangeConnector) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementExchangeConnector
+func (r *DeviceManagementExchangeConnectorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementExchangeOnPremisesPolicyRequestBuilder is request builder for DeviceManagementExchangeOnPremisesPolicy
+type DeviceManagementExchangeOnPremisesPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementExchangeOnPremisesPolicyRequest
+func (b *DeviceManagementExchangeOnPremisesPolicyRequestBuilder) Request() *DeviceManagementExchangeOnPremisesPolicyRequest {
+ return &DeviceManagementExchangeOnPremisesPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementExchangeOnPremisesPolicyRequest is request for DeviceManagementExchangeOnPremisesPolicy
+type DeviceManagementExchangeOnPremisesPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementExchangeOnPremisesPolicy
+func (r *DeviceManagementExchangeOnPremisesPolicyRequest) Get(ctx context.Context) (resObj *DeviceManagementExchangeOnPremisesPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementExchangeOnPremisesPolicy
+func (r *DeviceManagementExchangeOnPremisesPolicyRequest) Update(ctx context.Context, reqObj *DeviceManagementExchangeOnPremisesPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementExchangeOnPremisesPolicy
+func (r *DeviceManagementExchangeOnPremisesPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementExportJobRequestBuilder is request builder for DeviceManagementExportJob
+type DeviceManagementExportJobRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementExportJobRequest
+func (b *DeviceManagementExportJobRequestBuilder) Request() *DeviceManagementExportJobRequest {
+ return &DeviceManagementExportJobRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementExportJobRequest is request for DeviceManagementExportJob
+type DeviceManagementExportJobRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementExportJob
+func (r *DeviceManagementExportJobRequest) Get(ctx context.Context) (resObj *DeviceManagementExportJob, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementExportJob
+func (r *DeviceManagementExportJobRequest) Update(ctx context.Context, reqObj *DeviceManagementExportJob) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementExportJob
+func (r *DeviceManagementExportJobRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementIntentRequestBuilder is request builder for DeviceManagementIntent
+type DeviceManagementIntentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentRequest
+func (b *DeviceManagementIntentRequestBuilder) Request() *DeviceManagementIntentRequest {
+ return &DeviceManagementIntentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentRequest is request for DeviceManagementIntent
+type DeviceManagementIntentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntent
+func (r *DeviceManagementIntentRequest) Get(ctx context.Context) (resObj *DeviceManagementIntent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntent
+func (r *DeviceManagementIntentRequest) Update(ctx context.Context, reqObj *DeviceManagementIntent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntent
+func (r *DeviceManagementIntentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementIntentAssignmentRequestBuilder is request builder for DeviceManagementIntentAssignment
+type DeviceManagementIntentAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentAssignmentRequest
+func (b *DeviceManagementIntentAssignmentRequestBuilder) Request() *DeviceManagementIntentAssignmentRequest {
+ return &DeviceManagementIntentAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentAssignmentRequest is request for DeviceManagementIntentAssignment
+type DeviceManagementIntentAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentAssignment
+func (r *DeviceManagementIntentAssignmentRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentAssignment
+func (r *DeviceManagementIntentAssignmentRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentAssignment
+func (r *DeviceManagementIntentAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder is request builder for DeviceManagementIntentDeviceSettingStateSummary
+type DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentDeviceSettingStateSummaryRequest
+func (b *DeviceManagementIntentDeviceSettingStateSummaryRequestBuilder) Request() *DeviceManagementIntentDeviceSettingStateSummaryRequest {
+ return &DeviceManagementIntentDeviceSettingStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentDeviceSettingStateSummaryRequest is request for DeviceManagementIntentDeviceSettingStateSummary
+type DeviceManagementIntentDeviceSettingStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentDeviceSettingStateSummary
+func (r *DeviceManagementIntentDeviceSettingStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentDeviceSettingStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentDeviceSettingStateSummary
+func (r *DeviceManagementIntentDeviceSettingStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentDeviceSettingStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentDeviceSettingStateSummary
+func (r *DeviceManagementIntentDeviceSettingStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementIntentDeviceStateRequestBuilder is request builder for DeviceManagementIntentDeviceState
+type DeviceManagementIntentDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentDeviceStateRequest
+func (b *DeviceManagementIntentDeviceStateRequestBuilder) Request() *DeviceManagementIntentDeviceStateRequest {
+ return &DeviceManagementIntentDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentDeviceStateRequest is request for DeviceManagementIntentDeviceState
+type DeviceManagementIntentDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentDeviceState
+func (r *DeviceManagementIntentDeviceStateRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentDeviceState
+func (r *DeviceManagementIntentDeviceStateRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentDeviceState
+func (r *DeviceManagementIntentDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementIntentDeviceStateSummaryRequestBuilder is request builder for DeviceManagementIntentDeviceStateSummary
+type DeviceManagementIntentDeviceStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentDeviceStateSummaryRequest
+func (b *DeviceManagementIntentDeviceStateSummaryRequestBuilder) Request() *DeviceManagementIntentDeviceStateSummaryRequest {
+ return &DeviceManagementIntentDeviceStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentDeviceStateSummaryRequest is request for DeviceManagementIntentDeviceStateSummary
+type DeviceManagementIntentDeviceStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentDeviceStateSummary
+func (r *DeviceManagementIntentDeviceStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentDeviceStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentDeviceStateSummary
+func (r *DeviceManagementIntentDeviceStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentDeviceStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentDeviceStateSummary
+func (r *DeviceManagementIntentDeviceStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementIntentSettingCategoryRequestBuilder is request builder for DeviceManagementIntentSettingCategory
+type DeviceManagementIntentSettingCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentSettingCategoryRequest
+func (b *DeviceManagementIntentSettingCategoryRequestBuilder) Request() *DeviceManagementIntentSettingCategoryRequest {
+ return &DeviceManagementIntentSettingCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentSettingCategoryRequest is request for DeviceManagementIntentSettingCategory
+type DeviceManagementIntentSettingCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentSettingCategory
+func (r *DeviceManagementIntentSettingCategoryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentSettingCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentSettingCategory
+func (r *DeviceManagementIntentSettingCategoryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentSettingCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentSettingCategory
+func (r *DeviceManagementIntentSettingCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementIntentUserStateRequestBuilder is request builder for DeviceManagementIntentUserState
+type DeviceManagementIntentUserStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentUserStateRequest
+func (b *DeviceManagementIntentUserStateRequestBuilder) Request() *DeviceManagementIntentUserStateRequest {
+ return &DeviceManagementIntentUserStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentUserStateRequest is request for DeviceManagementIntentUserState
+type DeviceManagementIntentUserStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentUserState
+func (r *DeviceManagementIntentUserStateRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentUserState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentUserState
+func (r *DeviceManagementIntentUserStateRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentUserState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentUserState
+func (r *DeviceManagementIntentUserStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementIntentUserStateSummaryRequestBuilder is request builder for DeviceManagementIntentUserStateSummary
+type DeviceManagementIntentUserStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementIntentUserStateSummaryRequest
+func (b *DeviceManagementIntentUserStateSummaryRequestBuilder) Request() *DeviceManagementIntentUserStateSummaryRequest {
+ return &DeviceManagementIntentUserStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementIntentUserStateSummaryRequest is request for DeviceManagementIntentUserStateSummary
+type DeviceManagementIntentUserStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementIntentUserStateSummary
+func (r *DeviceManagementIntentUserStateSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementIntentUserStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementIntentUserStateSummary
+func (r *DeviceManagementIntentUserStateSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementIntentUserStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementIntentUserStateSummary
+func (r *DeviceManagementIntentUserStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementPartnerRequestBuilder is request builder for DeviceManagementPartner
+type DeviceManagementPartnerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementPartnerRequest
+func (b *DeviceManagementPartnerRequestBuilder) Request() *DeviceManagementPartnerRequest {
+ return &DeviceManagementPartnerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementPartnerRequest is request for DeviceManagementPartner
+type DeviceManagementPartnerRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementPartner
+func (r *DeviceManagementPartnerRequest) Get(ctx context.Context) (resObj *DeviceManagementPartner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementPartner
+func (r *DeviceManagementPartnerRequest) Update(ctx context.Context, reqObj *DeviceManagementPartner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementPartner
+func (r *DeviceManagementPartnerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementReportScheduleRequestBuilder is request builder for DeviceManagementReportSchedule
+type DeviceManagementReportScheduleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementReportScheduleRequest
+func (b *DeviceManagementReportScheduleRequestBuilder) Request() *DeviceManagementReportScheduleRequest {
+ return &DeviceManagementReportScheduleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementReportScheduleRequest is request for DeviceManagementReportSchedule
+type DeviceManagementReportScheduleRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementReportSchedule
+func (r *DeviceManagementReportScheduleRequest) Get(ctx context.Context) (resObj *DeviceManagementReportSchedule, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementReportSchedule
+func (r *DeviceManagementReportScheduleRequest) Update(ctx context.Context, reqObj *DeviceManagementReportSchedule) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementReportSchedule
+func (r *DeviceManagementReportScheduleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementReportsRequestBuilder is request builder for DeviceManagementReports
+type DeviceManagementReportsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementReportsRequest
+func (b *DeviceManagementReportsRequestBuilder) Request() *DeviceManagementReportsRequest {
+ return &DeviceManagementReportsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementReportsRequest is request for DeviceManagementReports
+type DeviceManagementReportsRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementReports
+func (r *DeviceManagementReportsRequest) Get(ctx context.Context) (resObj *DeviceManagementReports, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementReports
+func (r *DeviceManagementReportsRequest) Update(ctx context.Context, reqObj *DeviceManagementReports) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementReports
+func (r *DeviceManagementReportsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementScriptRequestBuilder is request builder for DeviceManagementScript
+type DeviceManagementScriptRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptRequest
+func (b *DeviceManagementScriptRequestBuilder) Request() *DeviceManagementScriptRequest {
+ return &DeviceManagementScriptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptRequest is request for DeviceManagementScript
+type DeviceManagementScriptRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScript
+func (r *DeviceManagementScriptRequest) Get(ctx context.Context) (resObj *DeviceManagementScript, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScript
+func (r *DeviceManagementScriptRequest) Update(ctx context.Context, reqObj *DeviceManagementScript) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScript
+func (r *DeviceManagementScriptRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementScriptAssignmentRequestBuilder is request builder for DeviceManagementScriptAssignment
+type DeviceManagementScriptAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptAssignmentRequest
+func (b *DeviceManagementScriptAssignmentRequestBuilder) Request() *DeviceManagementScriptAssignmentRequest {
+ return &DeviceManagementScriptAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptAssignmentRequest is request for DeviceManagementScriptAssignment
+type DeviceManagementScriptAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptAssignment
+func (r *DeviceManagementScriptAssignmentRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptAssignment
+func (r *DeviceManagementScriptAssignmentRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptAssignment
+func (r *DeviceManagementScriptAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementScriptDeviceStateRequestBuilder is request builder for DeviceManagementScriptDeviceState
+type DeviceManagementScriptDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptDeviceStateRequest
+func (b *DeviceManagementScriptDeviceStateRequestBuilder) Request() *DeviceManagementScriptDeviceStateRequest {
+ return &DeviceManagementScriptDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptDeviceStateRequest is request for DeviceManagementScriptDeviceState
+type DeviceManagementScriptDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptDeviceState
+func (r *DeviceManagementScriptDeviceStateRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptDeviceState
+func (r *DeviceManagementScriptDeviceStateRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptDeviceState
+func (r *DeviceManagementScriptDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementScriptGroupAssignmentRequestBuilder is request builder for DeviceManagementScriptGroupAssignment
+type DeviceManagementScriptGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptGroupAssignmentRequest
+func (b *DeviceManagementScriptGroupAssignmentRequestBuilder) Request() *DeviceManagementScriptGroupAssignmentRequest {
+ return &DeviceManagementScriptGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptGroupAssignmentRequest is request for DeviceManagementScriptGroupAssignment
+type DeviceManagementScriptGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptGroupAssignment
+func (r *DeviceManagementScriptGroupAssignmentRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptGroupAssignment
+func (r *DeviceManagementScriptGroupAssignmentRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptGroupAssignment
+func (r *DeviceManagementScriptGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementScriptRunSummaryRequestBuilder is request builder for DeviceManagementScriptRunSummary
+type DeviceManagementScriptRunSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptRunSummaryRequest
+func (b *DeviceManagementScriptRunSummaryRequestBuilder) Request() *DeviceManagementScriptRunSummaryRequest {
+ return &DeviceManagementScriptRunSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptRunSummaryRequest is request for DeviceManagementScriptRunSummary
+type DeviceManagementScriptRunSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptRunSummary
+func (r *DeviceManagementScriptRunSummaryRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptRunSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptRunSummary
+func (r *DeviceManagementScriptRunSummaryRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptRunSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptRunSummary
+func (r *DeviceManagementScriptRunSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementScriptUserStateRequestBuilder is request builder for DeviceManagementScriptUserState
+type DeviceManagementScriptUserStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementScriptUserStateRequest
+func (b *DeviceManagementScriptUserStateRequestBuilder) Request() *DeviceManagementScriptUserStateRequest {
+ return &DeviceManagementScriptUserStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementScriptUserStateRequest is request for DeviceManagementScriptUserState
+type DeviceManagementScriptUserStateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementScriptUserState
+func (r *DeviceManagementScriptUserStateRequest) Get(ctx context.Context) (resObj *DeviceManagementScriptUserState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementScriptUserState
+func (r *DeviceManagementScriptUserStateRequest) Update(ctx context.Context, reqObj *DeviceManagementScriptUserState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementScriptUserState
+func (r *DeviceManagementScriptUserStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementSettingCategoryRequestBuilder is request builder for DeviceManagementSettingCategory
+type DeviceManagementSettingCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementSettingCategoryRequest
+func (b *DeviceManagementSettingCategoryRequestBuilder) Request() *DeviceManagementSettingCategoryRequest {
+ return &DeviceManagementSettingCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementSettingCategoryRequest is request for DeviceManagementSettingCategory
+type DeviceManagementSettingCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementSettingCategory
+func (r *DeviceManagementSettingCategoryRequest) Get(ctx context.Context) (resObj *DeviceManagementSettingCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementSettingCategory
+func (r *DeviceManagementSettingCategoryRequest) Update(ctx context.Context, reqObj *DeviceManagementSettingCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementSettingCategory
+func (r *DeviceManagementSettingCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementSettingDefinitionRequestBuilder is request builder for DeviceManagementSettingDefinition
+type DeviceManagementSettingDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementSettingDefinitionRequest
+func (b *DeviceManagementSettingDefinitionRequestBuilder) Request() *DeviceManagementSettingDefinitionRequest {
+ return &DeviceManagementSettingDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementSettingDefinitionRequest is request for DeviceManagementSettingDefinition
+type DeviceManagementSettingDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementSettingDefinition
+func (r *DeviceManagementSettingDefinitionRequest) Get(ctx context.Context) (resObj *DeviceManagementSettingDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementSettingDefinition
+func (r *DeviceManagementSettingDefinitionRequest) Update(ctx context.Context, reqObj *DeviceManagementSettingDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementSettingDefinition
+func (r *DeviceManagementSettingDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementSettingInstanceRequestBuilder is request builder for DeviceManagementSettingInstance
+type DeviceManagementSettingInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementSettingInstanceRequest
+func (b *DeviceManagementSettingInstanceRequestBuilder) Request() *DeviceManagementSettingInstanceRequest {
+ return &DeviceManagementSettingInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementSettingInstanceRequest is request for DeviceManagementSettingInstance
+type DeviceManagementSettingInstanceRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementSettingInstance
+func (r *DeviceManagementSettingInstanceRequest) Get(ctx context.Context) (resObj *DeviceManagementSettingInstance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementSettingInstance
+func (r *DeviceManagementSettingInstanceRequest) Update(ctx context.Context, reqObj *DeviceManagementSettingInstance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementSettingInstance
+func (r *DeviceManagementSettingInstanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementTemplateRequestBuilder is request builder for DeviceManagementTemplate
+type DeviceManagementTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementTemplateRequest
+func (b *DeviceManagementTemplateRequestBuilder) Request() *DeviceManagementTemplateRequest {
+ return &DeviceManagementTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementTemplateRequest is request for DeviceManagementTemplate
+type DeviceManagementTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementTemplate
+func (r *DeviceManagementTemplateRequest) Get(ctx context.Context) (resObj *DeviceManagementTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementTemplate
+func (r *DeviceManagementTemplateRequest) Update(ctx context.Context, reqObj *DeviceManagementTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementTemplate
+func (r *DeviceManagementTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementTemplateSettingCategoryRequestBuilder is request builder for DeviceManagementTemplateSettingCategory
+type DeviceManagementTemplateSettingCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementTemplateSettingCategoryRequest
+func (b *DeviceManagementTemplateSettingCategoryRequestBuilder) Request() *DeviceManagementTemplateSettingCategoryRequest {
+ return &DeviceManagementTemplateSettingCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementTemplateSettingCategoryRequest is request for DeviceManagementTemplateSettingCategory
+type DeviceManagementTemplateSettingCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementTemplateSettingCategory
+func (r *DeviceManagementTemplateSettingCategoryRequest) Get(ctx context.Context) (resObj *DeviceManagementTemplateSettingCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementTemplateSettingCategory
+func (r *DeviceManagementTemplateSettingCategoryRequest) Update(ctx context.Context, reqObj *DeviceManagementTemplateSettingCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementTemplateSettingCategory
+func (r *DeviceManagementTemplateSettingCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DeviceManagementTroubleshootingEventRequestBuilder is request builder for DeviceManagementTroubleshootingEvent
+type DeviceManagementTroubleshootingEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DeviceManagementTroubleshootingEventRequest
+func (b *DeviceManagementTroubleshootingEventRequestBuilder) Request() *DeviceManagementTroubleshootingEventRequest {
+ return &DeviceManagementTroubleshootingEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DeviceManagementTroubleshootingEventRequest is request for DeviceManagementTroubleshootingEvent
+type DeviceManagementTroubleshootingEventRequest struct{ BaseRequest }
+
+// Get performs GET request for DeviceManagementTroubleshootingEvent
+func (r *DeviceManagementTroubleshootingEventRequest) Get(ctx context.Context) (resObj *DeviceManagementTroubleshootingEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DeviceManagementTroubleshootingEvent
+func (r *DeviceManagementTroubleshootingEventRequest) Update(ctx context.Context, reqObj *DeviceManagementTroubleshootingEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DeviceManagementTroubleshootingEvent
+func (r *DeviceManagementTroubleshootingEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceCompliancePolicyCollectionHasPayloadLinksRequestParameter) *DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceCompliancePolicyCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *DeviceCompliancePolicyCollectionHasPayloadLinksRequestBuilder) Request() *DeviceCompliancePolicyCollectionHasPayloadLinksRequest {
+ return &DeviceCompliancePolicyCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DeviceCompliancePolicyCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder struct{ BaseRequestBuilder }
+
+// RefreshDeviceComplianceReportSummarization action undocumented
+func (b *DeviceManagementDeviceCompliancePoliciesCollectionRequestBuilder) RefreshDeviceComplianceReportSummarization(reqObj *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestParameter) *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder {
+ bb := &DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/refreshDeviceComplianceReportSummarization"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest struct{ BaseRequest }
+
+//
+func (b *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequestBuilder) Request() *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest {
+ return &DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyCollectionRefreshDeviceComplianceReportSummarizationRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// HasPayloadLinks action undocumented
+func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *DeviceConfigurationCollectionHasPayloadLinksRequest {
+ return &DeviceConfigurationCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DeviceConfigurationCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder struct{ BaseRequestBuilder }
+
+// GetTargetedUsersAndDevices action undocumented
+func (b *DeviceManagementDeviceConfigurationsCollectionRequestBuilder) GetTargetedUsersAndDevices(reqObj *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter) *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder {
+ bb := &DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getTargetedUsersAndDevices"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetTargetedUsersAndDevices action undocumented
+func (b *WindowsDomainJoinConfigurationNetworkAccessConfigurationsCollectionRequestBuilder) GetTargetedUsersAndDevices(reqObj *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestParameter) *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder {
+ bb := &DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getTargetedUsersAndDevices"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequestBuilder) Request() *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest {
+ return &DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationTargetedUserAndDevice, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationTargetedUserAndDevice
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationTargetedUserAndDevice
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) PostN(ctx context.Context, n int) ([]DeviceConfigurationTargetedUserAndDevice, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DeviceConfigurationCollectionGetTargetedUsersAndDevicesRequest) Post(ctx context.Context) ([]DeviceConfigurationTargetedUserAndDevice, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementDeviceEnrollmentConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// HasPayloadLinks action undocumented
+func (b *UserDeviceEnrollmentConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestParameter) *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest {
+ return &DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DeviceEnrollmentConfigurationCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementDeviceManagementScriptsCollectionRequestBuilder) HasPayloadLinks(reqObj *DeviceManagementScriptCollectionHasPayloadLinksRequestParameter) *DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder {
+ bb := &DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementScriptCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementScriptCollectionHasPayloadLinksRequestBuilder) Request() *DeviceManagementScriptCollectionHasPayloadLinksRequest {
+ return &DeviceManagementScriptCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DeviceManagementScriptCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncMicrosoftStoreForBusinessApps action undocumented
+func (b *DeviceAppManagementRequestBuilder) SyncMicrosoftStoreForBusinessApps(reqObj *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestParameter) *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder {
+ bb := &DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncMicrosoftStoreForBusinessApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest struct{ BaseRequest }
+
+//
+func (b *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequestBuilder) Request() *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest {
+ return &DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceAppManagementSyncMicrosoftStoreForBusinessAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceAppManagementTaskUpdateStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateStatus action undocumented
+func (b *DeviceAppManagementTaskRequestBuilder) UpdateStatus(reqObj *DeviceAppManagementTaskUpdateStatusRequestParameter) *DeviceAppManagementTaskUpdateStatusRequestBuilder {
+ bb := &DeviceAppManagementTaskUpdateStatusRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateStatus"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceAppManagementTaskUpdateStatusRequest struct{ BaseRequest }
+
+//
+func (b *DeviceAppManagementTaskUpdateStatusRequestBuilder) Request() *DeviceAppManagementTaskUpdateStatusRequest {
+ return &DeviceAppManagementTaskUpdateStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceAppManagementTaskUpdateStatusRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceCompliancePolicyAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceCompliancePolicyRequestBuilder) Assign(reqObj *DeviceCompliancePolicyAssignRequestParameter) *DeviceCompliancePolicyAssignRequestBuilder {
+ bb := &DeviceCompliancePolicyAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceCompliancePolicyAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceCompliancePolicyAssignRequestBuilder) Request() *DeviceCompliancePolicyAssignRequest {
+ return &DeviceCompliancePolicyAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceCompliancePolicyAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceCompliancePolicyAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceCompliancePolicyAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyAssignRequest) PostN(ctx context.Context, n int) ([]DeviceCompliancePolicyAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DeviceCompliancePolicyAssignRequest) Post(ctx context.Context) ([]DeviceCompliancePolicyAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder struct{ BaseRequestBuilder }
+
+// ScheduleActionsForRules action undocumented
+func (b *DeviceCompliancePolicyRequestBuilder) ScheduleActionsForRules(reqObj *DeviceCompliancePolicyScheduleActionsForRulesRequestParameter) *DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder {
+ bb := &DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/scheduleActionsForRules"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceCompliancePolicyScheduleActionsForRulesRequest struct{ BaseRequest }
+
+//
+func (b *DeviceCompliancePolicyScheduleActionsForRulesRequestBuilder) Request() *DeviceCompliancePolicyScheduleActionsForRulesRequest {
+ return &DeviceCompliancePolicyScheduleActionsForRulesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceCompliancePolicyScheduleActionsForRulesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceConfigurationRequestBuilder) Assign(reqObj *DeviceConfigurationAssignRequestParameter) *DeviceConfigurationAssignRequestBuilder {
+ bb := &DeviceConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationAssignRequestBuilder) Request() *DeviceConfigurationAssignRequest {
+ return &DeviceConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DeviceConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DeviceConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DeviceConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DeviceConfigurationAssignRequest) PostN(ctx context.Context, n int) ([]DeviceConfigurationAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DeviceConfigurationAssignRequest) Post(ctx context.Context) ([]DeviceConfigurationAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder struct{ BaseRequestBuilder }
+
+// WindowsPrivacyAccessControls action undocumented
+func (b *DeviceConfigurationRequestBuilder) WindowsPrivacyAccessControls(reqObj *DeviceConfigurationWindowsPrivacyAccessControlsRequestParameter) *DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder {
+ bb := &DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/windowsPrivacyAccessControls"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationWindowsPrivacyAccessControlsRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationWindowsPrivacyAccessControlsRequestBuilder) Request() *DeviceConfigurationWindowsPrivacyAccessControlsRequest {
+ return &DeviceConfigurationWindowsPrivacyAccessControlsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationWindowsPrivacyAccessControlsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignedAccessMultiModeProfiles action undocumented
+func (b *DeviceConfigurationRequestBuilder) AssignedAccessMultiModeProfiles(reqObj *DeviceConfigurationAssignedAccessMultiModeProfilesRequestParameter) *DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder {
+ bb := &DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignedAccessMultiModeProfiles"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceConfigurationAssignedAccessMultiModeProfilesRequest struct{ BaseRequest }
+
+//
+func (b *DeviceConfigurationAssignedAccessMultiModeProfilesRequestBuilder) Request() *DeviceConfigurationAssignedAccessMultiModeProfilesRequest {
+ return &DeviceConfigurationAssignedAccessMultiModeProfilesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceConfigurationAssignedAccessMultiModeProfilesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceEnrollmentConfigurationSetPriorityRequestBuilder struct{ BaseRequestBuilder }
+
+// SetPriority action undocumented
+func (b *DeviceEnrollmentConfigurationRequestBuilder) SetPriority(reqObj *DeviceEnrollmentConfigurationSetPriorityRequestParameter) *DeviceEnrollmentConfigurationSetPriorityRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationSetPriorityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setPriority"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceEnrollmentConfigurationSetPriorityRequest struct{ BaseRequest }
+
+//
+func (b *DeviceEnrollmentConfigurationSetPriorityRequestBuilder) Request() *DeviceEnrollmentConfigurationSetPriorityRequest {
+ return &DeviceEnrollmentConfigurationSetPriorityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceEnrollmentConfigurationSetPriorityRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceEnrollmentConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceEnrollmentConfigurationRequestBuilder) Assign(reqObj *DeviceEnrollmentConfigurationAssignRequestParameter) *DeviceEnrollmentConfigurationAssignRequestBuilder {
+ bb := &DeviceEnrollmentConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceEnrollmentConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceEnrollmentConfigurationAssignRequestBuilder) Request() *DeviceEnrollmentConfigurationAssignRequest {
+ return &DeviceEnrollmentConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceEnrollmentConfigurationAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceHealthScriptAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceHealthScriptRequestBuilder) Assign(reqObj *DeviceHealthScriptAssignRequestParameter) *DeviceHealthScriptAssignRequestBuilder {
+ bb := &DeviceHealthScriptAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceHealthScriptAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceHealthScriptAssignRequestBuilder) Request() *DeviceHealthScriptAssignRequest {
+ return &DeviceHealthScriptAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceHealthScriptAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementEnableLegacyPcManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// EnableLegacyPcManagement action undocumented
+func (b *DeviceManagementRequestBuilder) EnableLegacyPcManagement(reqObj *DeviceManagementEnableLegacyPcManagementRequestParameter) *DeviceManagementEnableLegacyPcManagementRequestBuilder {
+ bb := &DeviceManagementEnableLegacyPcManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/enableLegacyPcManagement"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementEnableLegacyPcManagementRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementEnableLegacyPcManagementRequestBuilder) Request() *DeviceManagementEnableLegacyPcManagementRequest {
+ return &DeviceManagementEnableLegacyPcManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementEnableLegacyPcManagementRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder struct{ BaseRequestBuilder }
+
+// EnableAndroidDeviceAdministratorEnrollment action undocumented
+func (b *DeviceManagementRequestBuilder) EnableAndroidDeviceAdministratorEnrollment(reqObj *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestParameter) *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder {
+ bb := &DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/enableAndroidDeviceAdministratorEnrollment"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequestBuilder) Request() *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest {
+ return &DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementEnableAndroidDeviceAdministratorEnrollmentRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder struct{ BaseRequestBuilder }
+
+// SendCustomNotificationToCompanyPortal action undocumented
+func (b *DeviceManagementRequestBuilder) SendCustomNotificationToCompanyPortal(reqObj *DeviceManagementSendCustomNotificationToCompanyPortalRequestParameter) *DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder {
+ bb := &DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendCustomNotificationToCompanyPortal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementSendCustomNotificationToCompanyPortalRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementSendCustomNotificationToCompanyPortalRequestBuilder) Request() *DeviceManagementSendCustomNotificationToCompanyPortalRequest {
+ return &DeviceManagementSendCustomNotificationToCompanyPortalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementSendCustomNotificationToCompanyPortalRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementExchangeConnectorSyncRequestBuilder struct{ BaseRequestBuilder }
+
+// Sync action undocumented
+func (b *DeviceManagementExchangeConnectorRequestBuilder) Sync(reqObj *DeviceManagementExchangeConnectorSyncRequestParameter) *DeviceManagementExchangeConnectorSyncRequestBuilder {
+ bb := &DeviceManagementExchangeConnectorSyncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sync"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementExchangeConnectorSyncRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementExchangeConnectorSyncRequestBuilder) Request() *DeviceManagementExchangeConnectorSyncRequest {
+ return &DeviceManagementExchangeConnectorSyncRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementExchangeConnectorSyncRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementIntentUpdateSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateSettings action undocumented
+func (b *DeviceManagementIntentRequestBuilder) UpdateSettings(reqObj *DeviceManagementIntentUpdateSettingsRequestParameter) *DeviceManagementIntentUpdateSettingsRequestBuilder {
+ bb := &DeviceManagementIntentUpdateSettingsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateSettings"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementIntentUpdateSettingsRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementIntentUpdateSettingsRequestBuilder) Request() *DeviceManagementIntentUpdateSettingsRequest {
+ return &DeviceManagementIntentUpdateSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementIntentUpdateSettingsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementIntentMigrateToTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// MigrateToTemplate action undocumented
+func (b *DeviceManagementIntentRequestBuilder) MigrateToTemplate(reqObj *DeviceManagementIntentMigrateToTemplateRequestParameter) *DeviceManagementIntentMigrateToTemplateRequestBuilder {
+ bb := &DeviceManagementIntentMigrateToTemplateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/migrateToTemplate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementIntentMigrateToTemplateRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementIntentMigrateToTemplateRequestBuilder) Request() *DeviceManagementIntentMigrateToTemplateRequest {
+ return &DeviceManagementIntentMigrateToTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementIntentMigrateToTemplateRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementIntentAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceManagementIntentRequestBuilder) Assign(reqObj *DeviceManagementIntentAssignRequestParameter) *DeviceManagementIntentAssignRequestBuilder {
+ bb := &DeviceManagementIntentAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementIntentAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementIntentAssignRequestBuilder) Request() *DeviceManagementIntentAssignRequest {
+ return &DeviceManagementIntentAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementIntentAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder struct{ BaseRequestBuilder }
+
+// GetDeviceNonComplianceReport action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetDeviceNonComplianceReport(reqObj *DeviceManagementReportsGetDeviceNonComplianceReportRequestParameter) *DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder {
+ bb := &DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getDeviceNonComplianceReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetDeviceNonComplianceReportRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetDeviceNonComplianceReportRequestBuilder) Request() *DeviceManagementReportsGetDeviceNonComplianceReportRequest {
+ return &DeviceManagementReportsGetDeviceNonComplianceReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetDeviceNonComplianceReportRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPolicyNonComplianceReport action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetPolicyNonComplianceReport(reqObj *DeviceManagementReportsGetPolicyNonComplianceReportRequestParameter) *DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder {
+ bb := &DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPolicyNonComplianceReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetPolicyNonComplianceReportRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetPolicyNonComplianceReportRequestBuilder) Request() *DeviceManagementReportsGetPolicyNonComplianceReportRequest {
+ return &DeviceManagementReportsGetPolicyNonComplianceReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetPolicyNonComplianceReportRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPolicyNonComplianceMetadata action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetPolicyNonComplianceMetadata(reqObj *DeviceManagementReportsGetPolicyNonComplianceMetadataRequestParameter) *DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder {
+ bb := &DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPolicyNonComplianceMetadata"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetPolicyNonComplianceMetadataRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetPolicyNonComplianceMetadataRequestBuilder) Request() *DeviceManagementReportsGetPolicyNonComplianceMetadataRequest {
+ return &DeviceManagementReportsGetPolicyNonComplianceMetadataRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetPolicyNonComplianceMetadataRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DeviceManagementReportsGetHistoricalReportRequestBuilder struct{ BaseRequestBuilder }
+
+// GetHistoricalReport action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetHistoricalReport(reqObj *DeviceManagementReportsGetHistoricalReportRequestParameter) *DeviceManagementReportsGetHistoricalReportRequestBuilder {
+ bb := &DeviceManagementReportsGetHistoricalReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getHistoricalReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetHistoricalReportRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetHistoricalReportRequestBuilder) Request() *DeviceManagementReportsGetHistoricalReportRequest {
+ return &DeviceManagementReportsGetHistoricalReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetHistoricalReportRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DeviceManagementReportsGetCachedReportRequestBuilder struct{ BaseRequestBuilder }
+
+// GetCachedReport action undocumented
+func (b *DeviceManagementReportsRequestBuilder) GetCachedReport(reqObj *DeviceManagementReportsGetCachedReportRequestParameter) *DeviceManagementReportsGetCachedReportRequestBuilder {
+ bb := &DeviceManagementReportsGetCachedReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getCachedReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementReportsGetCachedReportRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementReportsGetCachedReportRequestBuilder) Request() *DeviceManagementReportsGetCachedReportRequest {
+ return &DeviceManagementReportsGetCachedReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementReportsGetCachedReportRequest) Post(ctx context.Context) (resObj *Stream, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DeviceManagementScriptAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *DeviceManagementScriptRequestBuilder) Assign(reqObj *DeviceManagementScriptAssignRequestParameter) *DeviceManagementScriptAssignRequestBuilder {
+ bb := &DeviceManagementScriptAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementScriptAssignRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementScriptAssignRequestBuilder) Request() *DeviceManagementScriptAssignRequest {
+ return &DeviceManagementScriptAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementScriptAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DeviceManagementTemplateCreateInstanceRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateInstance action undocumented
+func (b *DeviceManagementTemplateRequestBuilder) CreateInstance(reqObj *DeviceManagementTemplateCreateInstanceRequestParameter) *DeviceManagementTemplateCreateInstanceRequestBuilder {
+ bb := &DeviceManagementTemplateCreateInstanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createInstance"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DeviceManagementTemplateCreateInstanceRequest struct{ BaseRequest }
+
+//
+func (b *DeviceManagementTemplateCreateInstanceRequestBuilder) Request() *DeviceManagementTemplateCreateInstanceRequest {
+ return &DeviceManagementTemplateCreateInstanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DeviceManagementTemplateCreateInstanceRequest) Post(ctx context.Context) (resObj *DeviceManagementIntent, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDimension.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDimension.go
new file mode 100644
index 00000000..cd0afa8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDimension.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DimensionRequestBuilder is request builder for Dimension
+type DimensionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DimensionRequest
+func (b *DimensionRequestBuilder) Request() *DimensionRequest {
+ return &DimensionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DimensionRequest is request for Dimension
+type DimensionRequest struct{ BaseRequest }
+
+// Get performs GET request for Dimension
+func (r *DimensionRequest) Get(ctx context.Context) (resObj *Dimension, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Dimension
+func (r *DimensionRequest) Update(ctx context.Context, reqObj *Dimension) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Dimension
+func (r *DimensionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DimensionValueRequestBuilder is request builder for DimensionValue
+type DimensionValueRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DimensionValueRequest
+func (b *DimensionValueRequestBuilder) Request() *DimensionValueRequest {
+ return &DimensionValueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DimensionValueRequest is request for DimensionValue
+type DimensionValueRequest struct{ BaseRequest }
+
+// Get performs GET request for DimensionValue
+func (r *DimensionValueRequest) Get(ctx context.Context) (resObj *DimensionValue, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DimensionValue
+func (r *DimensionValueRequest) Update(ctx context.Context, reqObj *DimensionValue) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DimensionValue
+func (r *DimensionValueRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDirectory.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDirectory.go
new file mode 100644
index 00000000..3b17c5d5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDirectory.go
@@ -0,0 +1,1653 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DirectoryRequestBuilder is request builder for Directory
+type DirectoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryRequest
+func (b *DirectoryRequestBuilder) Request() *DirectoryRequest {
+ return &DirectoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryRequest is request for Directory
+type DirectoryRequest struct{ BaseRequest }
+
+// Get performs GET request for Directory
+func (r *DirectoryRequest) Get(ctx context.Context) (resObj *Directory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Directory
+func (r *DirectoryRequest) Update(ctx context.Context, reqObj *Directory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Directory
+func (r *DirectoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DirectoryAuditRequestBuilder is request builder for DirectoryAudit
+type DirectoryAuditRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryAuditRequest
+func (b *DirectoryAuditRequestBuilder) Request() *DirectoryAuditRequest {
+ return &DirectoryAuditRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryAuditRequest is request for DirectoryAudit
+type DirectoryAuditRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryAudit
+func (r *DirectoryAuditRequest) Get(ctx context.Context) (resObj *DirectoryAudit, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryAudit
+func (r *DirectoryAuditRequest) Update(ctx context.Context, reqObj *DirectoryAudit) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryAudit
+func (r *DirectoryAuditRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DirectoryDefinitionRequestBuilder is request builder for DirectoryDefinition
+type DirectoryDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryDefinitionRequest
+func (b *DirectoryDefinitionRequestBuilder) Request() *DirectoryDefinitionRequest {
+ return &DirectoryDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryDefinitionRequest is request for DirectoryDefinition
+type DirectoryDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryDefinition
+func (r *DirectoryDefinitionRequest) Get(ctx context.Context) (resObj *DirectoryDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryDefinition
+func (r *DirectoryDefinitionRequest) Update(ctx context.Context, reqObj *DirectoryDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryDefinition
+func (r *DirectoryDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DirectoryObjectRequestBuilder is request builder for DirectoryObject
+type DirectoryObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryObjectRequest
+func (b *DirectoryObjectRequestBuilder) Request() *DirectoryObjectRequest {
+ return &DirectoryObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryObjectRequest is request for DirectoryObject
+type DirectoryObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryObject
+func (r *DirectoryObjectRequest) Get(ctx context.Context) (resObj *DirectoryObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryObject
+func (r *DirectoryObjectRequest) Update(ctx context.Context, reqObj *DirectoryObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryObject
+func (r *DirectoryObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DirectoryRoleRequestBuilder is request builder for DirectoryRole
+type DirectoryRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryRoleRequest
+func (b *DirectoryRoleRequestBuilder) Request() *DirectoryRoleRequest {
+ return &DirectoryRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryRoleRequest is request for DirectoryRole
+type DirectoryRoleRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryRole
+func (r *DirectoryRoleRequest) Get(ctx context.Context) (resObj *DirectoryRole, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryRole
+func (r *DirectoryRoleRequest) Update(ctx context.Context, reqObj *DirectoryRole) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryRole
+func (r *DirectoryRoleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DirectoryRoleTemplateRequestBuilder is request builder for DirectoryRoleTemplate
+type DirectoryRoleTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectoryRoleTemplateRequest
+func (b *DirectoryRoleTemplateRequestBuilder) Request() *DirectoryRoleTemplateRequest {
+ return &DirectoryRoleTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectoryRoleTemplateRequest is request for DirectoryRoleTemplate
+type DirectoryRoleTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectoryRoleTemplate
+func (r *DirectoryRoleTemplateRequest) Get(ctx context.Context) (resObj *DirectoryRoleTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectoryRoleTemplate
+func (r *DirectoryRoleTemplateRequest) Update(ctx context.Context, reqObj *DirectoryRoleTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectoryRoleTemplate
+func (r *DirectoryRoleTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DirectorySettingRequestBuilder is request builder for DirectorySetting
+type DirectorySettingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectorySettingRequest
+func (b *DirectorySettingRequestBuilder) Request() *DirectorySettingRequest {
+ return &DirectorySettingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectorySettingRequest is request for DirectorySetting
+type DirectorySettingRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectorySetting
+func (r *DirectorySettingRequest) Get(ctx context.Context) (resObj *DirectorySetting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectorySetting
+func (r *DirectorySettingRequest) Update(ctx context.Context, reqObj *DirectorySetting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectorySetting
+func (r *DirectorySettingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DirectorySettingTemplateRequestBuilder is request builder for DirectorySettingTemplate
+type DirectorySettingTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DirectorySettingTemplateRequest
+func (b *DirectorySettingTemplateRequestBuilder) Request() *DirectorySettingTemplateRequest {
+ return &DirectorySettingTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DirectorySettingTemplateRequest is request for DirectorySettingTemplate
+type DirectorySettingTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for DirectorySettingTemplate
+func (r *DirectorySettingTemplateRequest) Get(ctx context.Context) (resObj *DirectorySettingTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DirectorySettingTemplate
+func (r *DirectorySettingTemplateRequest) Update(ctx context.Context, reqObj *DirectorySettingTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DirectorySettingTemplate
+func (r *DirectorySettingTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type DirectoryObjectCollectionGetByIDsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetByIDs action undocumented
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ApplicationOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ApplicationPoliciesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DeviceMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DirectoryRoleMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupAcceptedSendersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupRejectedSendersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *GroupTransitiveMembersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *OrgContactDirectReportsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *OrgContactMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *PolicyAppliesToCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserCreatedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserDirectReportsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserOwnedDevicesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserOwnedObjectsCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserRegisteredDevicesCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetByIDs action undocumented
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) GetByIDs(reqObj *DirectoryObjectCollectionGetByIDsRequestParameter) *DirectoryObjectCollectionGetByIDsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetByIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getByIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCollectionGetByIDsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCollectionGetByIDsRequestBuilder) Request() *DirectoryObjectCollectionGetByIDsRequest {
+ return &DirectoryObjectCollectionGetByIDsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCollectionGetByIDsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]DirectoryObject, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []DirectoryObject
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []DirectoryObject
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectCollectionGetByIDsRequest) PostN(ctx context.Context, n int) ([]DirectoryObject, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DirectoryObjectCollectionGetByIDsRequest) Post(ctx context.Context) ([]DirectoryObject, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DirectoryObjectCollectionValidatePropertiesRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidateProperties action undocumented
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ApplicationOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ApplicationPoliciesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DeviceMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DirectoryRoleMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupAcceptedSendersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupRejectedSendersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *GroupTransitiveMembersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *OrgContactDirectReportsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *OrgContactMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *PolicyAppliesToCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserCreatedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserDirectReportsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserOwnedDevicesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserOwnedObjectsCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserRegisteredDevicesCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ValidateProperties action undocumented
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) ValidateProperties(reqObj *DirectoryObjectCollectionValidatePropertiesRequestParameter) *DirectoryObjectCollectionValidatePropertiesRequestBuilder {
+ bb := &DirectoryObjectCollectionValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCollectionValidatePropertiesRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCollectionValidatePropertiesRequestBuilder) Request() *DirectoryObjectCollectionValidatePropertiesRequest {
+ return &DirectoryObjectCollectionValidatePropertiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCollectionValidatePropertiesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetUserOwnedObjects action undocumented
+func (b *AdministrativeUnitMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ApplicationOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ApplicationPoliciesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DeviceMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DeviceRegisteredOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DeviceRegisteredUsersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DeviceTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DirectoryDeletedItemsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DirectoryRoleMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *DomainDomainNameReferencesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *FeatureRolloutPolicyAppliesToCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupAcceptedSendersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupMembersWithLicenseErrorsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupRejectedSendersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *GroupTransitiveMembersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *OrgContactDirectReportsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *OrgContactMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *OrgContactTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *PolicyAppliesToCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalCreatedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalOwnedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalOwnersCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalPoliciesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *ServicePrincipalTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserCreatedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserDirectReportsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserOwnedDevicesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserOwnedObjectsCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserRegisteredDevicesCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetUserOwnedObjects action undocumented
+func (b *UserTransitiveMemberOfCollectionRequestBuilder) GetUserOwnedObjects(reqObj *DirectoryObjectCollectionGetUserOwnedObjectsRequestParameter) *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder {
+ bb := &DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getUserOwnedObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCollectionGetUserOwnedObjectsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCollectionGetUserOwnedObjectsRequestBuilder) Request() *DirectoryObjectCollectionGetUserOwnedObjectsRequest {
+ return &DirectoryObjectCollectionGetUserOwnedObjectsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCollectionGetUserOwnedObjectsRequest) Post(ctx context.Context) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DirectoryDefinitionDiscoverRequestBuilder struct{ BaseRequestBuilder }
+
+// Discover action undocumented
+func (b *DirectoryDefinitionRequestBuilder) Discover(reqObj *DirectoryDefinitionDiscoverRequestParameter) *DirectoryDefinitionDiscoverRequestBuilder {
+ bb := &DirectoryDefinitionDiscoverRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/discover"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryDefinitionDiscoverRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryDefinitionDiscoverRequestBuilder) Request() *DirectoryDefinitionDiscoverRequest {
+ return &DirectoryDefinitionDiscoverRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryDefinitionDiscoverRequest) Post(ctx context.Context) (resObj *DirectoryDefinition, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DirectoryObjectCheckMemberGroupsRequestBuilder struct{ BaseRequestBuilder }
+
+// CheckMemberGroups action undocumented
+func (b *DirectoryObjectRequestBuilder) CheckMemberGroups(reqObj *DirectoryObjectCheckMemberGroupsRequestParameter) *DirectoryObjectCheckMemberGroupsRequestBuilder {
+ bb := &DirectoryObjectCheckMemberGroupsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkMemberGroups"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCheckMemberGroupsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCheckMemberGroupsRequestBuilder) Request() *DirectoryObjectCheckMemberGroupsRequest {
+ return &DirectoryObjectCheckMemberGroupsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCheckMemberGroupsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectCheckMemberGroupsRequest) PostN(ctx context.Context, n int) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DirectoryObjectCheckMemberGroupsRequest) Post(ctx context.Context) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DirectoryObjectCheckMemberObjectsRequestBuilder struct{ BaseRequestBuilder }
+
+// CheckMemberObjects action undocumented
+func (b *DirectoryObjectRequestBuilder) CheckMemberObjects(reqObj *DirectoryObjectCheckMemberObjectsRequestParameter) *DirectoryObjectCheckMemberObjectsRequestBuilder {
+ bb := &DirectoryObjectCheckMemberObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkMemberObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectCheckMemberObjectsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectCheckMemberObjectsRequestBuilder) Request() *DirectoryObjectCheckMemberObjectsRequest {
+ return &DirectoryObjectCheckMemberObjectsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectCheckMemberObjectsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectCheckMemberObjectsRequest) PostN(ctx context.Context, n int) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DirectoryObjectCheckMemberObjectsRequest) Post(ctx context.Context) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DirectoryObjectGetMemberGroupsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetMemberGroups action undocumented
+func (b *DirectoryObjectRequestBuilder) GetMemberGroups(reqObj *DirectoryObjectGetMemberGroupsRequestParameter) *DirectoryObjectGetMemberGroupsRequestBuilder {
+ bb := &DirectoryObjectGetMemberGroupsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getMemberGroups"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectGetMemberGroupsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectGetMemberGroupsRequestBuilder) Request() *DirectoryObjectGetMemberGroupsRequest {
+ return &DirectoryObjectGetMemberGroupsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectGetMemberGroupsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectGetMemberGroupsRequest) PostN(ctx context.Context, n int) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DirectoryObjectGetMemberGroupsRequest) Post(ctx context.Context) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DirectoryObjectGetMemberObjectsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetMemberObjects action undocumented
+func (b *DirectoryObjectRequestBuilder) GetMemberObjects(reqObj *DirectoryObjectGetMemberObjectsRequestParameter) *DirectoryObjectGetMemberObjectsRequestBuilder {
+ bb := &DirectoryObjectGetMemberObjectsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getMemberObjects"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectGetMemberObjectsRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectGetMemberObjectsRequestBuilder) Request() *DirectoryObjectGetMemberObjectsRequest {
+ return &DirectoryObjectGetMemberObjectsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectGetMemberObjectsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DirectoryObjectGetMemberObjectsRequest) PostN(ctx context.Context, n int) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DirectoryObjectGetMemberObjectsRequest) Post(ctx context.Context) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DirectoryObjectRestoreRequestBuilder struct{ BaseRequestBuilder }
+
+// Restore action undocumented
+func (b *DirectoryObjectRequestBuilder) Restore(reqObj *DirectoryObjectRestoreRequestParameter) *DirectoryObjectRestoreRequestBuilder {
+ bb := &DirectoryObjectRestoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restore"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DirectoryObjectRestoreRequest struct{ BaseRequest }
+
+//
+func (b *DirectoryObjectRestoreRequestBuilder) Request() *DirectoryObjectRestoreRequest {
+ return &DirectoryObjectRestoreRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DirectoryObjectRestoreRequest) Post(ctx context.Context) (resObj *DirectoryObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDocument.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDocument.go
new file mode 100644
index 00000000..d236a730
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDocument.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DocumentRequestBuilder is request builder for Document
+type DocumentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DocumentRequest
+func (b *DocumentRequestBuilder) Request() *DocumentRequest {
+ return &DocumentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DocumentRequest is request for Document
+type DocumentRequest struct{ BaseRequest }
+
+// Get performs GET request for Document
+func (r *DocumentRequest) Get(ctx context.Context) (resObj *Document, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Document
+func (r *DocumentRequest) Update(ctx context.Context, reqObj *Document) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Document
+func (r *DocumentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DocumentCommentRequestBuilder is request builder for DocumentComment
+type DocumentCommentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DocumentCommentRequest
+func (b *DocumentCommentRequestBuilder) Request() *DocumentCommentRequest {
+ return &DocumentCommentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DocumentCommentRequest is request for DocumentComment
+type DocumentCommentRequest struct{ BaseRequest }
+
+// Get performs GET request for DocumentComment
+func (r *DocumentCommentRequest) Get(ctx context.Context) (resObj *DocumentComment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DocumentComment
+func (r *DocumentCommentRequest) Update(ctx context.Context, reqObj *DocumentComment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DocumentComment
+func (r *DocumentCommentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DocumentCommentReplyRequestBuilder is request builder for DocumentCommentReply
+type DocumentCommentReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DocumentCommentReplyRequest
+func (b *DocumentCommentReplyRequestBuilder) Request() *DocumentCommentReplyRequest {
+ return &DocumentCommentReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DocumentCommentReplyRequest is request for DocumentCommentReply
+type DocumentCommentReplyRequest struct{ BaseRequest }
+
+// Get performs GET request for DocumentCommentReply
+func (r *DocumentCommentReplyRequest) Get(ctx context.Context) (resObj *DocumentCommentReply, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DocumentCommentReply
+func (r *DocumentCommentReplyRequest) Update(ctx context.Context, reqObj *DocumentCommentReply) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DocumentCommentReply
+func (r *DocumentCommentReplyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDomain.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDomain.go
new file mode 100644
index 00000000..37a926ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDomain.go
@@ -0,0 +1,157 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// DomainRequestBuilder is request builder for Domain
+type DomainRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DomainRequest
+func (b *DomainRequestBuilder) Request() *DomainRequest {
+ return &DomainRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DomainRequest is request for Domain
+type DomainRequest struct{ BaseRequest }
+
+// Get performs GET request for Domain
+func (r *DomainRequest) Get(ctx context.Context) (resObj *Domain, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Domain
+func (r *DomainRequest) Update(ctx context.Context, reqObj *Domain) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Domain
+func (r *DomainRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DomainDNSRecordRequestBuilder is request builder for DomainDNSRecord
+type DomainDNSRecordRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DomainDNSRecordRequest
+func (b *DomainDNSRecordRequestBuilder) Request() *DomainDNSRecordRequest {
+ return &DomainDNSRecordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DomainDNSRecordRequest is request for DomainDNSRecord
+type DomainDNSRecordRequest struct{ BaseRequest }
+
+// Get performs GET request for DomainDNSRecord
+func (r *DomainDNSRecordRequest) Get(ctx context.Context) (resObj *DomainDNSRecord, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DomainDNSRecord
+func (r *DomainDNSRecordRequest) Update(ctx context.Context, reqObj *DomainDNSRecord) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DomainDNSRecord
+func (r *DomainDNSRecordRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DomainSecurityProfileRequestBuilder is request builder for DomainSecurityProfile
+type DomainSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DomainSecurityProfileRequest
+func (b *DomainSecurityProfileRequestBuilder) Request() *DomainSecurityProfileRequest {
+ return &DomainSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DomainSecurityProfileRequest is request for DomainSecurityProfile
+type DomainSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for DomainSecurityProfile
+func (r *DomainSecurityProfileRequest) Get(ctx context.Context) (resObj *DomainSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DomainSecurityProfile
+func (r *DomainSecurityProfileRequest) Update(ctx context.Context, reqObj *DomainSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DomainSecurityProfile
+func (r *DomainSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type DomainForceDeleteRequestBuilder struct{ BaseRequestBuilder }
+
+// ForceDelete action undocumented
+func (b *DomainRequestBuilder) ForceDelete(reqObj *DomainForceDeleteRequestParameter) *DomainForceDeleteRequestBuilder {
+ bb := &DomainForceDeleteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/forceDelete"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DomainForceDeleteRequest struct{ BaseRequest }
+
+//
+func (b *DomainForceDeleteRequestBuilder) Request() *DomainForceDeleteRequest {
+ return &DomainForceDeleteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DomainForceDeleteRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DomainVerifyRequestBuilder struct{ BaseRequestBuilder }
+
+// Verify action undocumented
+func (b *DomainRequestBuilder) Verify(reqObj *DomainVerifyRequestParameter) *DomainVerifyRequestBuilder {
+ bb := &DomainVerifyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/verify"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DomainVerifyRequest struct{ BaseRequest }
+
+//
+func (b *DomainVerifyRequestBuilder) Request() *DomainVerifyRequest {
+ return &DomainVerifyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DomainVerifyRequest) Post(ctx context.Context) (resObj *Domain, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestDrive.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDrive.go
new file mode 100644
index 00000000..20a48500
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestDrive.go
@@ -0,0 +1,489 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// DriveRequestBuilder is request builder for Drive
+type DriveRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DriveRequest
+func (b *DriveRequestBuilder) Request() *DriveRequest {
+ return &DriveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DriveRequest is request for Drive
+type DriveRequest struct{ BaseRequest }
+
+// Get performs GET request for Drive
+func (r *DriveRequest) Get(ctx context.Context) (resObj *Drive, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Drive
+func (r *DriveRequest) Update(ctx context.Context, reqObj *Drive) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Drive
+func (r *DriveRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DriveItemRequestBuilder is request builder for DriveItem
+type DriveItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DriveItemRequest
+func (b *DriveItemRequestBuilder) Request() *DriveItemRequest {
+ return &DriveItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DriveItemRequest is request for DriveItem
+type DriveItemRequest struct{ BaseRequest }
+
+// Get performs GET request for DriveItem
+func (r *DriveItemRequest) Get(ctx context.Context) (resObj *DriveItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DriveItem
+func (r *DriveItemRequest) Update(ctx context.Context, reqObj *DriveItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DriveItem
+func (r *DriveItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// DriveItemVersionRequestBuilder is request builder for DriveItemVersion
+type DriveItemVersionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns DriveItemVersionRequest
+func (b *DriveItemVersionRequestBuilder) Request() *DriveItemVersionRequest {
+ return &DriveItemVersionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// DriveItemVersionRequest is request for DriveItemVersion
+type DriveItemVersionRequest struct{ BaseRequest }
+
+// Get performs GET request for DriveItemVersion
+func (r *DriveItemVersionRequest) Get(ctx context.Context) (resObj *DriveItemVersion, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for DriveItemVersion
+func (r *DriveItemVersionRequest) Update(ctx context.Context, reqObj *DriveItemVersion) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for DriveItemVersion
+func (r *DriveItemVersionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type DriveItemCheckinRequestBuilder struct{ BaseRequestBuilder }
+
+// Checkin action undocumented
+func (b *DriveItemRequestBuilder) Checkin(reqObj *DriveItemCheckinRequestParameter) *DriveItemCheckinRequestBuilder {
+ bb := &DriveItemCheckinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCheckinRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCheckinRequestBuilder) Request() *DriveItemCheckinRequest {
+ return &DriveItemCheckinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCheckinRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DriveItemCheckoutRequestBuilder struct{ BaseRequestBuilder }
+
+// Checkout action undocumented
+func (b *DriveItemRequestBuilder) Checkout(reqObj *DriveItemCheckoutRequestParameter) *DriveItemCheckoutRequestBuilder {
+ bb := &DriveItemCheckoutRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkout"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCheckoutRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCheckoutRequestBuilder) Request() *DriveItemCheckoutRequest {
+ return &DriveItemCheckoutRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCheckoutRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DriveItemCopyRequestBuilder struct{ BaseRequestBuilder }
+
+// Copy action undocumented
+func (b *DriveItemRequestBuilder) Copy(reqObj *DriveItemCopyRequestParameter) *DriveItemCopyRequestBuilder {
+ bb := &DriveItemCopyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copy"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCopyRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCopyRequestBuilder) Request() *DriveItemCopyRequest {
+ return &DriveItemCopyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCopyRequest) Post(ctx context.Context) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemCreateLinkRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateLink action undocumented
+func (b *DriveItemRequestBuilder) CreateLink(reqObj *DriveItemCreateLinkRequestParameter) *DriveItemCreateLinkRequestBuilder {
+ bb := &DriveItemCreateLinkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createLink"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCreateLinkRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCreateLinkRequestBuilder) Request() *DriveItemCreateLinkRequest {
+ return &DriveItemCreateLinkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCreateLinkRequest) Post(ctx context.Context) (resObj *Permission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemCreateUploadSessionRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateUploadSession action undocumented
+func (b *DriveItemRequestBuilder) CreateUploadSession(reqObj *DriveItemCreateUploadSessionRequestParameter) *DriveItemCreateUploadSessionRequestBuilder {
+ bb := &DriveItemCreateUploadSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createUploadSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemCreateUploadSessionRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemCreateUploadSessionRequestBuilder) Request() *DriveItemCreateUploadSessionRequest {
+ return &DriveItemCreateUploadSessionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemCreateUploadSessionRequest) Post(ctx context.Context) (resObj *UploadSession, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemFollowRequestBuilder struct{ BaseRequestBuilder }
+
+// Follow action undocumented
+func (b *DriveItemRequestBuilder) Follow(reqObj *DriveItemFollowRequestParameter) *DriveItemFollowRequestBuilder {
+ bb := &DriveItemFollowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/follow"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemFollowRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemFollowRequestBuilder) Request() *DriveItemFollowRequest {
+ return &DriveItemFollowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemFollowRequest) Post(ctx context.Context) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemUnfollowRequestBuilder struct{ BaseRequestBuilder }
+
+// Unfollow action undocumented
+func (b *DriveItemRequestBuilder) Unfollow(reqObj *DriveItemUnfollowRequestParameter) *DriveItemUnfollowRequestBuilder {
+ bb := &DriveItemUnfollowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unfollow"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemUnfollowRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemUnfollowRequestBuilder) Request() *DriveItemUnfollowRequest {
+ return &DriveItemUnfollowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemUnfollowRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DriveItemInviteRequestBuilder struct{ BaseRequestBuilder }
+
+// Invite action undocumented
+func (b *DriveItemRequestBuilder) Invite(reqObj *DriveItemInviteRequestParameter) *DriveItemInviteRequestBuilder {
+ bb := &DriveItemInviteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/invite"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemInviteRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemInviteRequestBuilder) Request() *DriveItemInviteRequest {
+ return &DriveItemInviteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemInviteRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Permission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Permission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Permission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *DriveItemInviteRequest) PostN(ctx context.Context, n int) ([]Permission, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *DriveItemInviteRequest) Post(ctx context.Context) ([]Permission, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type DriveItemPreviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Preview action undocumented
+func (b *DriveItemRequestBuilder) Preview(reqObj *DriveItemPreviewRequestParameter) *DriveItemPreviewRequestBuilder {
+ bb := &DriveItemPreviewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/preview"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemPreviewRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemPreviewRequestBuilder) Request() *DriveItemPreviewRequest {
+ return &DriveItemPreviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemPreviewRequest) Post(ctx context.Context) (resObj *ItemPreviewInfo, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemRestoreRequestBuilder struct{ BaseRequestBuilder }
+
+// Restore action undocumented
+func (b *DriveItemRequestBuilder) Restore(reqObj *DriveItemRestoreRequestParameter) *DriveItemRestoreRequestBuilder {
+ bb := &DriveItemRestoreRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restore"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemRestoreRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemRestoreRequestBuilder) Request() *DriveItemRestoreRequest {
+ return &DriveItemRestoreRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemRestoreRequest) Post(ctx context.Context) (resObj *DriveItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type DriveItemValidatePermissionRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidatePermission action undocumented
+func (b *DriveItemRequestBuilder) ValidatePermission(reqObj *DriveItemValidatePermissionRequestParameter) *DriveItemValidatePermissionRequestBuilder {
+ bb := &DriveItemValidatePermissionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validatePermission"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemValidatePermissionRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemValidatePermissionRequestBuilder) Request() *DriveItemValidatePermissionRequest {
+ return &DriveItemValidatePermissionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemValidatePermissionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type DriveItemVersionRestoreVersionRequestBuilder struct{ BaseRequestBuilder }
+
+// RestoreVersion action undocumented
+func (b *DriveItemVersionRequestBuilder) RestoreVersion(reqObj *DriveItemVersionRestoreVersionRequestParameter) *DriveItemVersionRestoreVersionRequestBuilder {
+ bb := &DriveItemVersionRestoreVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restoreVersion"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type DriveItemVersionRestoreVersionRequest struct{ BaseRequest }
+
+//
+func (b *DriveItemVersionRestoreVersionRequestBuilder) Request() *DriveItemVersionRestoreVersionRequest {
+ return &DriveItemVersionRestoreVersionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *DriveItemVersionRestoreVersionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestE.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestE.go
new file mode 100644
index 00000000..a656df11
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestE.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EBookInstallSummaryRequestBuilder is request builder for EBookInstallSummary
+type EBookInstallSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EBookInstallSummaryRequest
+func (b *EBookInstallSummaryRequestBuilder) Request() *EBookInstallSummaryRequest {
+ return &EBookInstallSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EBookInstallSummaryRequest is request for EBookInstallSummary
+type EBookInstallSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for EBookInstallSummary
+func (r *EBookInstallSummaryRequest) Get(ctx context.Context) (resObj *EBookInstallSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EBookInstallSummary
+func (r *EBookInstallSummaryRequest) Update(ctx context.Context, reqObj *EBookInstallSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EBookInstallSummary
+func (r *EBookInstallSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducation.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducation.go
new file mode 100644
index 00000000..4d546e57
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducation.go
@@ -0,0 +1,746 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EducationAssignmentRequestBuilder is request builder for EducationAssignment
+type EducationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationAssignmentRequest
+func (b *EducationAssignmentRequestBuilder) Request() *EducationAssignmentRequest {
+ return &EducationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationAssignmentRequest is request for EducationAssignment
+type EducationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationAssignment
+func (r *EducationAssignmentRequest) Get(ctx context.Context) (resObj *EducationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationAssignment
+func (r *EducationAssignmentRequest) Update(ctx context.Context, reqObj *EducationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationAssignment
+func (r *EducationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationAssignmentResourceRequestBuilder is request builder for EducationAssignmentResource
+type EducationAssignmentResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationAssignmentResourceRequest
+func (b *EducationAssignmentResourceRequestBuilder) Request() *EducationAssignmentResourceRequest {
+ return &EducationAssignmentResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationAssignmentResourceRequest is request for EducationAssignmentResource
+type EducationAssignmentResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationAssignmentResource
+func (r *EducationAssignmentResourceRequest) Get(ctx context.Context) (resObj *EducationAssignmentResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationAssignmentResource
+func (r *EducationAssignmentResourceRequest) Update(ctx context.Context, reqObj *EducationAssignmentResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationAssignmentResource
+func (r *EducationAssignmentResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationCategoryRequestBuilder is request builder for EducationCategory
+type EducationCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationCategoryRequest
+func (b *EducationCategoryRequestBuilder) Request() *EducationCategoryRequest {
+ return &EducationCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationCategoryRequest is request for EducationCategory
+type EducationCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationCategory
+func (r *EducationCategoryRequest) Get(ctx context.Context) (resObj *EducationCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationCategory
+func (r *EducationCategoryRequest) Update(ctx context.Context, reqObj *EducationCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationCategory
+func (r *EducationCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationClassRequestBuilder is request builder for EducationClass
+type EducationClassRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationClassRequest
+func (b *EducationClassRequestBuilder) Request() *EducationClassRequest {
+ return &EducationClassRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationClassRequest is request for EducationClass
+type EducationClassRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationClass
+func (r *EducationClassRequest) Get(ctx context.Context) (resObj *EducationClass, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationClass
+func (r *EducationClassRequest) Update(ctx context.Context, reqObj *EducationClass) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationClass
+func (r *EducationClassRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationOutcomeRequestBuilder is request builder for EducationOutcome
+type EducationOutcomeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationOutcomeRequest
+func (b *EducationOutcomeRequestBuilder) Request() *EducationOutcomeRequest {
+ return &EducationOutcomeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationOutcomeRequest is request for EducationOutcome
+type EducationOutcomeRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationOutcome
+func (r *EducationOutcomeRequest) Get(ctx context.Context) (resObj *EducationOutcome, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationOutcome
+func (r *EducationOutcomeRequest) Update(ctx context.Context, reqObj *EducationOutcome) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationOutcome
+func (r *EducationOutcomeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationRootRequestBuilder is request builder for EducationRoot
+type EducationRootRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationRootRequest
+func (b *EducationRootRequestBuilder) Request() *EducationRootRequest {
+ return &EducationRootRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationRootRequest is request for EducationRoot
+type EducationRootRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationRoot
+func (r *EducationRootRequest) Get(ctx context.Context) (resObj *EducationRoot, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationRoot
+func (r *EducationRootRequest) Update(ctx context.Context, reqObj *EducationRoot) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationRoot
+func (r *EducationRootRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationRubricRequestBuilder is request builder for EducationRubric
+type EducationRubricRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationRubricRequest
+func (b *EducationRubricRequestBuilder) Request() *EducationRubricRequest {
+ return &EducationRubricRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationRubricRequest is request for EducationRubric
+type EducationRubricRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationRubric
+func (r *EducationRubricRequest) Get(ctx context.Context) (resObj *EducationRubric, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationRubric
+func (r *EducationRubricRequest) Update(ctx context.Context, reqObj *EducationRubric) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationRubric
+func (r *EducationRubricRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationSchoolRequestBuilder is request builder for EducationSchool
+type EducationSchoolRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSchoolRequest
+func (b *EducationSchoolRequestBuilder) Request() *EducationSchoolRequest {
+ return &EducationSchoolRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSchoolRequest is request for EducationSchool
+type EducationSchoolRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSchool
+func (r *EducationSchoolRequest) Get(ctx context.Context) (resObj *EducationSchool, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSchool
+func (r *EducationSchoolRequest) Update(ctx context.Context, reqObj *EducationSchool) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSchool
+func (r *EducationSchoolRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationSubmissionRequestBuilder is request builder for EducationSubmission
+type EducationSubmissionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSubmissionRequest
+func (b *EducationSubmissionRequestBuilder) Request() *EducationSubmissionRequest {
+ return &EducationSubmissionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSubmissionRequest is request for EducationSubmission
+type EducationSubmissionRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSubmission
+func (r *EducationSubmissionRequest) Get(ctx context.Context) (resObj *EducationSubmission, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSubmission
+func (r *EducationSubmissionRequest) Update(ctx context.Context, reqObj *EducationSubmission) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSubmission
+func (r *EducationSubmissionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationSubmissionResourceRequestBuilder is request builder for EducationSubmissionResource
+type EducationSubmissionResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSubmissionResourceRequest
+func (b *EducationSubmissionResourceRequestBuilder) Request() *EducationSubmissionResourceRequest {
+ return &EducationSubmissionResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSubmissionResourceRequest is request for EducationSubmissionResource
+type EducationSubmissionResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSubmissionResource
+func (r *EducationSubmissionResourceRequest) Get(ctx context.Context) (resObj *EducationSubmissionResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSubmissionResource
+func (r *EducationSubmissionResourceRequest) Update(ctx context.Context, reqObj *EducationSubmissionResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSubmissionResource
+func (r *EducationSubmissionResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationSynchronizationErrorRequestBuilder is request builder for EducationSynchronizationError
+type EducationSynchronizationErrorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSynchronizationErrorRequest
+func (b *EducationSynchronizationErrorRequestBuilder) Request() *EducationSynchronizationErrorRequest {
+ return &EducationSynchronizationErrorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSynchronizationErrorRequest is request for EducationSynchronizationError
+type EducationSynchronizationErrorRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSynchronizationError
+func (r *EducationSynchronizationErrorRequest) Get(ctx context.Context) (resObj *EducationSynchronizationError, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSynchronizationError
+func (r *EducationSynchronizationErrorRequest) Update(ctx context.Context, reqObj *EducationSynchronizationError) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSynchronizationError
+func (r *EducationSynchronizationErrorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationSynchronizationProfileRequestBuilder is request builder for EducationSynchronizationProfile
+type EducationSynchronizationProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSynchronizationProfileRequest
+func (b *EducationSynchronizationProfileRequestBuilder) Request() *EducationSynchronizationProfileRequest {
+ return &EducationSynchronizationProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSynchronizationProfileRequest is request for EducationSynchronizationProfile
+type EducationSynchronizationProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSynchronizationProfile
+func (r *EducationSynchronizationProfileRequest) Get(ctx context.Context) (resObj *EducationSynchronizationProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSynchronizationProfile
+func (r *EducationSynchronizationProfileRequest) Update(ctx context.Context, reqObj *EducationSynchronizationProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSynchronizationProfile
+func (r *EducationSynchronizationProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationSynchronizationProfileStatusRequestBuilder is request builder for EducationSynchronizationProfileStatus
+type EducationSynchronizationProfileStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationSynchronizationProfileStatusRequest
+func (b *EducationSynchronizationProfileStatusRequestBuilder) Request() *EducationSynchronizationProfileStatusRequest {
+ return &EducationSynchronizationProfileStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationSynchronizationProfileStatusRequest is request for EducationSynchronizationProfileStatus
+type EducationSynchronizationProfileStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationSynchronizationProfileStatus
+func (r *EducationSynchronizationProfileStatusRequest) Get(ctx context.Context) (resObj *EducationSynchronizationProfileStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationSynchronizationProfileStatus
+func (r *EducationSynchronizationProfileStatusRequest) Update(ctx context.Context, reqObj *EducationSynchronizationProfileStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationSynchronizationProfileStatus
+func (r *EducationSynchronizationProfileStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EducationUserRequestBuilder is request builder for EducationUser
+type EducationUserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationUserRequest
+func (b *EducationUserRequestBuilder) Request() *EducationUserRequest {
+ return &EducationUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationUserRequest is request for EducationUser
+type EducationUserRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationUser
+func (r *EducationUserRequest) Get(ctx context.Context) (resObj *EducationUser, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationUser
+func (r *EducationUserRequest) Update(ctx context.Context, reqObj *EducationUser) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationUser
+func (r *EducationUserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type EducationAssignmentPublishRequestBuilder struct{ BaseRequestBuilder }
+
+// Publish action undocumented
+func (b *EducationAssignmentRequestBuilder) Publish(reqObj *EducationAssignmentPublishRequestParameter) *EducationAssignmentPublishRequestBuilder {
+ bb := &EducationAssignmentPublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/publish"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationAssignmentPublishRequest struct{ BaseRequest }
+
+//
+func (b *EducationAssignmentPublishRequestBuilder) Request() *EducationAssignmentPublishRequest {
+ return &EducationAssignmentPublishRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationAssignmentPublishRequest) Post(ctx context.Context) (resObj *EducationAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type EducationSubmissionReturnRequestBuilder struct{ BaseRequestBuilder }
+
+// Return action undocumented
+func (b *EducationSubmissionRequestBuilder) Return(reqObj *EducationSubmissionReturnRequestParameter) *EducationSubmissionReturnRequestBuilder {
+ bb := &EducationSubmissionReturnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/return"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSubmissionReturnRequest struct{ BaseRequest }
+
+//
+func (b *EducationSubmissionReturnRequestBuilder) Request() *EducationSubmissionReturnRequest {
+ return &EducationSubmissionReturnRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSubmissionReturnRequest) Post(ctx context.Context) (resObj *EducationSubmission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type EducationSubmissionSubmitRequestBuilder struct{ BaseRequestBuilder }
+
+// Submit action undocumented
+func (b *EducationSubmissionRequestBuilder) Submit(reqObj *EducationSubmissionSubmitRequestParameter) *EducationSubmissionSubmitRequestBuilder {
+ bb := &EducationSubmissionSubmitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/submit"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSubmissionSubmitRequest struct{ BaseRequest }
+
+//
+func (b *EducationSubmissionSubmitRequestBuilder) Request() *EducationSubmissionSubmitRequest {
+ return &EducationSubmissionSubmitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSubmissionSubmitRequest) Post(ctx context.Context) (resObj *EducationSubmission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type EducationSubmissionUnsubmitRequestBuilder struct{ BaseRequestBuilder }
+
+// Unsubmit action undocumented
+func (b *EducationSubmissionRequestBuilder) Unsubmit(reqObj *EducationSubmissionUnsubmitRequestParameter) *EducationSubmissionUnsubmitRequestBuilder {
+ bb := &EducationSubmissionUnsubmitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unsubmit"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSubmissionUnsubmitRequest struct{ BaseRequest }
+
+//
+func (b *EducationSubmissionUnsubmitRequestBuilder) Request() *EducationSubmissionUnsubmitRequest {
+ return &EducationSubmissionUnsubmitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSubmissionUnsubmitRequest) Post(ctx context.Context) (resObj *EducationSubmission, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type EducationSynchronizationProfileResumeRequestBuilder struct{ BaseRequestBuilder }
+
+// Resume action undocumented
+func (b *EducationSynchronizationProfileRequestBuilder) Resume(reqObj *EducationSynchronizationProfileResumeRequestParameter) *EducationSynchronizationProfileResumeRequestBuilder {
+ bb := &EducationSynchronizationProfileResumeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/resume"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSynchronizationProfileResumeRequest struct{ BaseRequest }
+
+//
+func (b *EducationSynchronizationProfileResumeRequestBuilder) Request() *EducationSynchronizationProfileResumeRequest {
+ return &EducationSynchronizationProfileResumeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSynchronizationProfileResumeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EducationSynchronizationProfilePauseRequestBuilder struct{ BaseRequestBuilder }
+
+// Pause action undocumented
+func (b *EducationSynchronizationProfileRequestBuilder) Pause(reqObj *EducationSynchronizationProfilePauseRequestParameter) *EducationSynchronizationProfilePauseRequestBuilder {
+ bb := &EducationSynchronizationProfilePauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/pause"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSynchronizationProfilePauseRequest struct{ BaseRequest }
+
+//
+func (b *EducationSynchronizationProfilePauseRequestBuilder) Request() *EducationSynchronizationProfilePauseRequest {
+ return &EducationSynchronizationProfilePauseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSynchronizationProfilePauseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EducationSynchronizationProfileResetRequestBuilder struct{ BaseRequestBuilder }
+
+// Reset action undocumented
+func (b *EducationSynchronizationProfileRequestBuilder) Reset(reqObj *EducationSynchronizationProfileResetRequestParameter) *EducationSynchronizationProfileResetRequestBuilder {
+ bb := &EducationSynchronizationProfileResetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reset"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSynchronizationProfileResetRequest struct{ BaseRequest }
+
+//
+func (b *EducationSynchronizationProfileResetRequestBuilder) Request() *EducationSynchronizationProfileResetRequest {
+ return &EducationSynchronizationProfileResetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSynchronizationProfileResetRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EducationSynchronizationProfileStartRequestBuilder struct{ BaseRequestBuilder }
+
+// Start action undocumented
+func (b *EducationSynchronizationProfileRequestBuilder) Start(reqObj *EducationSynchronizationProfileStartRequestParameter) *EducationSynchronizationProfileStartRequestBuilder {
+ bb := &EducationSynchronizationProfileStartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/start"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EducationSynchronizationProfileStartRequest struct{ BaseRequest }
+
+//
+func (b *EducationSynchronizationProfileStartRequestBuilder) Request() *EducationSynchronizationProfileStartRequest {
+ return &EducationSynchronizationProfileStartRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EducationSynchronizationProfileStartRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EducationFileSynchronizationVerificationMessage, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EducationFileSynchronizationVerificationMessage
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EducationFileSynchronizationVerificationMessage
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *EducationSynchronizationProfileStartRequest) PostN(ctx context.Context, n int) ([]EducationFileSynchronizationVerificationMessage, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *EducationSynchronizationProfileStartRequest) Post(ctx context.Context) ([]EducationFileSynchronizationVerificationMessage, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducational.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducational.go
new file mode 100644
index 00000000..d378bfed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEducational.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EducationalActivityRequestBuilder is request builder for EducationalActivity
+type EducationalActivityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EducationalActivityRequest
+func (b *EducationalActivityRequestBuilder) Request() *EducationalActivityRequest {
+ return &EducationalActivityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EducationalActivityRequest is request for EducationalActivity
+type EducationalActivityRequest struct{ BaseRequest }
+
+// Get performs GET request for EducationalActivity
+func (r *EducationalActivityRequest) Get(ctx context.Context) (resObj *EducationalActivity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EducationalActivity
+func (r *EducationalActivityRequest) Update(ctx context.Context, reqObj *EducationalActivity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EducationalActivity
+func (r *EducationalActivityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmbedded.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmbedded.go
new file mode 100644
index 00000000..625aa25f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmbedded.go
@@ -0,0 +1,197 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// EmbeddedSIMActivationCodePoolRequestBuilder is request builder for EmbeddedSIMActivationCodePool
+type EmbeddedSIMActivationCodePoolRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EmbeddedSIMActivationCodePoolRequest
+func (b *EmbeddedSIMActivationCodePoolRequestBuilder) Request() *EmbeddedSIMActivationCodePoolRequest {
+ return &EmbeddedSIMActivationCodePoolRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EmbeddedSIMActivationCodePoolRequest is request for EmbeddedSIMActivationCodePool
+type EmbeddedSIMActivationCodePoolRequest struct{ BaseRequest }
+
+// Get performs GET request for EmbeddedSIMActivationCodePool
+func (r *EmbeddedSIMActivationCodePoolRequest) Get(ctx context.Context) (resObj *EmbeddedSIMActivationCodePool, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EmbeddedSIMActivationCodePool
+func (r *EmbeddedSIMActivationCodePoolRequest) Update(ctx context.Context, reqObj *EmbeddedSIMActivationCodePool) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EmbeddedSIMActivationCodePool
+func (r *EmbeddedSIMActivationCodePoolRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EmbeddedSIMActivationCodePoolAssignmentRequestBuilder is request builder for EmbeddedSIMActivationCodePoolAssignment
+type EmbeddedSIMActivationCodePoolAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EmbeddedSIMActivationCodePoolAssignmentRequest
+func (b *EmbeddedSIMActivationCodePoolAssignmentRequestBuilder) Request() *EmbeddedSIMActivationCodePoolAssignmentRequest {
+ return &EmbeddedSIMActivationCodePoolAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EmbeddedSIMActivationCodePoolAssignmentRequest is request for EmbeddedSIMActivationCodePoolAssignment
+type EmbeddedSIMActivationCodePoolAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for EmbeddedSIMActivationCodePoolAssignment
+func (r *EmbeddedSIMActivationCodePoolAssignmentRequest) Get(ctx context.Context) (resObj *EmbeddedSIMActivationCodePoolAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EmbeddedSIMActivationCodePoolAssignment
+func (r *EmbeddedSIMActivationCodePoolAssignmentRequest) Update(ctx context.Context, reqObj *EmbeddedSIMActivationCodePoolAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EmbeddedSIMActivationCodePoolAssignment
+func (r *EmbeddedSIMActivationCodePoolAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EmbeddedSIMDeviceStateRequestBuilder is request builder for EmbeddedSIMDeviceState
+type EmbeddedSIMDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EmbeddedSIMDeviceStateRequest
+func (b *EmbeddedSIMDeviceStateRequestBuilder) Request() *EmbeddedSIMDeviceStateRequest {
+ return &EmbeddedSIMDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EmbeddedSIMDeviceStateRequest is request for EmbeddedSIMDeviceState
+type EmbeddedSIMDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for EmbeddedSIMDeviceState
+func (r *EmbeddedSIMDeviceStateRequest) Get(ctx context.Context) (resObj *EmbeddedSIMDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EmbeddedSIMDeviceState
+func (r *EmbeddedSIMDeviceStateRequest) Update(ctx context.Context, reqObj *EmbeddedSIMDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EmbeddedSIMDeviceState
+func (r *EmbeddedSIMDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type EmbeddedSIMActivationCodePoolAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *EmbeddedSIMActivationCodePoolRequestBuilder) Assign(reqObj *EmbeddedSIMActivationCodePoolAssignRequestParameter) *EmbeddedSIMActivationCodePoolAssignRequestBuilder {
+ bb := &EmbeddedSIMActivationCodePoolAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EmbeddedSIMActivationCodePoolAssignRequest struct{ BaseRequest }
+
+//
+func (b *EmbeddedSIMActivationCodePoolAssignRequestBuilder) Request() *EmbeddedSIMActivationCodePoolAssignRequest {
+ return &EmbeddedSIMActivationCodePoolAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EmbeddedSIMActivationCodePoolAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]EmbeddedSIMActivationCodePoolAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []EmbeddedSIMActivationCodePoolAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []EmbeddedSIMActivationCodePoolAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *EmbeddedSIMActivationCodePoolAssignRequest) PostN(ctx context.Context, n int) ([]EmbeddedSIMActivationCodePoolAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *EmbeddedSIMActivationCodePoolAssignRequest) Post(ctx context.Context) ([]EmbeddedSIMActivationCodePoolAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmployee.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmployee.go
new file mode 100644
index 00000000..fbad90f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEmployee.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EmployeeRequestBuilder is request builder for Employee
+type EmployeeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EmployeeRequest
+func (b *EmployeeRequestBuilder) Request() *EmployeeRequest {
+ return &EmployeeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EmployeeRequest is request for Employee
+type EmployeeRequest struct{ BaseRequest }
+
+// Get performs GET request for Employee
+func (r *EmployeeRequest) Get(ctx context.Context) (resObj *Employee, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Employee
+func (r *EmployeeRequest) Update(ctx context.Context, reqObj *Employee) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Employee
+func (r *EmployeeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEndpoint.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEndpoint.go
new file mode 100644
index 00000000..2565686b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEndpoint.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EndpointRequestBuilder is request builder for Endpoint
+type EndpointRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EndpointRequest
+func (b *EndpointRequestBuilder) Request() *EndpointRequest {
+ return &EndpointRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EndpointRequest is request for Endpoint
+type EndpointRequest struct{ BaseRequest }
+
+// Get performs GET request for Endpoint
+func (r *EndpointRequest) Get(ctx context.Context) (resObj *Endpoint, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Endpoint
+func (r *EndpointRequest) Update(ctx context.Context, reqObj *Endpoint) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Endpoint
+func (r *EndpointRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnrollment.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnrollment.go
new file mode 100644
index 00000000..631378d7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnrollment.go
@@ -0,0 +1,123 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EnrollmentConfigurationAssignmentRequestBuilder is request builder for EnrollmentConfigurationAssignment
+type EnrollmentConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EnrollmentConfigurationAssignmentRequest
+func (b *EnrollmentConfigurationAssignmentRequestBuilder) Request() *EnrollmentConfigurationAssignmentRequest {
+ return &EnrollmentConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EnrollmentConfigurationAssignmentRequest is request for EnrollmentConfigurationAssignment
+type EnrollmentConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for EnrollmentConfigurationAssignment
+func (r *EnrollmentConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *EnrollmentConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EnrollmentConfigurationAssignment
+func (r *EnrollmentConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *EnrollmentConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EnrollmentConfigurationAssignment
+func (r *EnrollmentConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EnrollmentProfileRequestBuilder is request builder for EnrollmentProfile
+type EnrollmentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EnrollmentProfileRequest
+func (b *EnrollmentProfileRequestBuilder) Request() *EnrollmentProfileRequest {
+ return &EnrollmentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EnrollmentProfileRequest is request for EnrollmentProfile
+type EnrollmentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for EnrollmentProfile
+func (r *EnrollmentProfileRequest) Get(ctx context.Context) (resObj *EnrollmentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EnrollmentProfile
+func (r *EnrollmentProfileRequest) Update(ctx context.Context, reqObj *EnrollmentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EnrollmentProfile
+func (r *EnrollmentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type EnrollmentProfileSetDefaultProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// SetDefaultProfile action undocumented
+func (b *EnrollmentProfileRequestBuilder) SetDefaultProfile(reqObj *EnrollmentProfileSetDefaultProfileRequestParameter) *EnrollmentProfileSetDefaultProfileRequestBuilder {
+ bb := &EnrollmentProfileSetDefaultProfileRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setDefaultProfile"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EnrollmentProfileSetDefaultProfileRequest struct{ BaseRequest }
+
+//
+func (b *EnrollmentProfileSetDefaultProfileRequestBuilder) Request() *EnrollmentProfileSetDefaultProfileRequest {
+ return &EnrollmentProfileSetDefaultProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EnrollmentProfileSetDefaultProfileRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateDeviceProfileAssignment action undocumented
+func (b *EnrollmentProfileRequestBuilder) UpdateDeviceProfileAssignment(reqObj *EnrollmentProfileUpdateDeviceProfileAssignmentRequestParameter) *EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder {
+ bb := &EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateDeviceProfileAssignment"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EnrollmentProfileUpdateDeviceProfileAssignmentRequest struct{ BaseRequest }
+
+//
+func (b *EnrollmentProfileUpdateDeviceProfileAssignmentRequestBuilder) Request() *EnrollmentProfileUpdateDeviceProfileAssignmentRequest {
+ return &EnrollmentProfileUpdateDeviceProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EnrollmentProfileUpdateDeviceProfileAssignmentRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnterprise.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnterprise.go
new file mode 100644
index 00000000..7489fb8b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEnterprise.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EnterpriseCodeSigningCertificateRequestBuilder is request builder for EnterpriseCodeSigningCertificate
+type EnterpriseCodeSigningCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EnterpriseCodeSigningCertificateRequest
+func (b *EnterpriseCodeSigningCertificateRequestBuilder) Request() *EnterpriseCodeSigningCertificateRequest {
+ return &EnterpriseCodeSigningCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EnterpriseCodeSigningCertificateRequest is request for EnterpriseCodeSigningCertificate
+type EnterpriseCodeSigningCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for EnterpriseCodeSigningCertificate
+func (r *EnterpriseCodeSigningCertificateRequest) Get(ctx context.Context) (resObj *EnterpriseCodeSigningCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EnterpriseCodeSigningCertificate
+func (r *EnterpriseCodeSigningCertificateRequest) Update(ctx context.Context, reqObj *EnterpriseCodeSigningCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EnterpriseCodeSigningCertificate
+func (r *EnterpriseCodeSigningCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntitlement.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntitlement.go
new file mode 100644
index 00000000..01378829
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntitlement.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EntitlementManagementRequestBuilder is request builder for EntitlementManagement
+type EntitlementManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EntitlementManagementRequest
+func (b *EntitlementManagementRequestBuilder) Request() *EntitlementManagementRequest {
+ return &EntitlementManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EntitlementManagementRequest is request for EntitlementManagement
+type EntitlementManagementRequest struct{ BaseRequest }
+
+// Get performs GET request for EntitlementManagement
+func (r *EntitlementManagementRequest) Get(ctx context.Context) (resObj *EntitlementManagement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EntitlementManagement
+func (r *EntitlementManagementRequest) Update(ctx context.Context, reqObj *EntitlementManagement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EntitlementManagement
+func (r *EntitlementManagementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntity.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntity.go
new file mode 100644
index 00000000..6ec06098
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEntity.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EntityRequestBuilder is request builder for Entity
+type EntityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EntityRequest
+func (b *EntityRequestBuilder) Request() *EntityRequest {
+ return &EntityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EntityRequest is request for Entity
+type EntityRequest struct{ BaseRequest }
+
+// Get performs GET request for Entity
+func (r *EntityRequest) Get(ctx context.Context) (resObj *Entity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Entity
+func (r *EntityRequest) Update(ctx context.Context, reqObj *Entity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Entity
+func (r *EntityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestEvent.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEvent.go
new file mode 100644
index 00000000..5c149336
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestEvent.go
@@ -0,0 +1,364 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// EventRequestBuilder is request builder for Event
+type EventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EventRequest
+func (b *EventRequestBuilder) Request() *EventRequest {
+ return &EventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EventRequest is request for Event
+type EventRequest struct{ BaseRequest }
+
+// Get performs GET request for Event
+func (r *EventRequest) Get(ctx context.Context) (resObj *Event, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Event
+func (r *EventRequest) Update(ctx context.Context, reqObj *Event) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Event
+func (r *EventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EventMessageRequestBuilder is request builder for EventMessage
+type EventMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EventMessageRequest
+func (b *EventMessageRequestBuilder) Request() *EventMessageRequest {
+ return &EventMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EventMessageRequest is request for EventMessage
+type EventMessageRequest struct{ BaseRequest }
+
+// Get performs GET request for EventMessage
+func (r *EventMessageRequest) Get(ctx context.Context) (resObj *EventMessage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EventMessage
+func (r *EventMessageRequest) Update(ctx context.Context, reqObj *EventMessage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EventMessage
+func (r *EventMessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// EventMessageRequestObjectRequestBuilder is request builder for EventMessageRequestObject
+type EventMessageRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns EventMessageRequestObjectRequest
+func (b *EventMessageRequestObjectRequestBuilder) Request() *EventMessageRequestObjectRequest {
+ return &EventMessageRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// EventMessageRequestObjectRequest is request for EventMessageRequestObject
+type EventMessageRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for EventMessageRequestObject
+func (r *EventMessageRequestObjectRequest) Get(ctx context.Context) (resObj *EventMessageRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for EventMessageRequestObject
+func (r *EventMessageRequestObjectRequest) Update(ctx context.Context, reqObj *EventMessageRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for EventMessageRequestObject
+func (r *EventMessageRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type EventDismissReminderRequestBuilder struct{ BaseRequestBuilder }
+
+// DismissReminder action undocumented
+func (b *EventRequestBuilder) DismissReminder(reqObj *EventDismissReminderRequestParameter) *EventDismissReminderRequestBuilder {
+ bb := &EventDismissReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dismissReminder"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventDismissReminderRequest struct{ BaseRequest }
+
+//
+func (b *EventDismissReminderRequestBuilder) Request() *EventDismissReminderRequest {
+ return &EventDismissReminderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventDismissReminderRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventSnoozeReminderRequestBuilder struct{ BaseRequestBuilder }
+
+// SnoozeReminder action undocumented
+func (b *EventRequestBuilder) SnoozeReminder(reqObj *EventSnoozeReminderRequestParameter) *EventSnoozeReminderRequestBuilder {
+ bb := &EventSnoozeReminderRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/snoozeReminder"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventSnoozeReminderRequest struct{ BaseRequest }
+
+//
+func (b *EventSnoozeReminderRequestBuilder) Request() *EventSnoozeReminderRequest {
+ return &EventSnoozeReminderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventSnoozeReminderRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventForwardRequestBuilder struct{ BaseRequestBuilder }
+
+// Forward action undocumented
+func (b *EventRequestBuilder) Forward(reqObj *EventForwardRequestParameter) *EventForwardRequestBuilder {
+ bb := &EventForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/forward"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventForwardRequest struct{ BaseRequest }
+
+//
+func (b *EventForwardRequestBuilder) Request() *EventForwardRequest {
+ return &EventForwardRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventForwardRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// Accept action undocumented
+func (b *EventRequestBuilder) Accept(reqObj *EventAcceptRequestParameter) *EventAcceptRequestBuilder {
+ bb := &EventAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/accept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventAcceptRequest struct{ BaseRequest }
+
+//
+func (b *EventAcceptRequestBuilder) Request() *EventAcceptRequest {
+ return &EventAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventAcceptRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventDeclineRequestBuilder struct{ BaseRequestBuilder }
+
+// Decline action undocumented
+func (b *EventRequestBuilder) Decline(reqObj *EventDeclineRequestParameter) *EventDeclineRequestBuilder {
+ bb := &EventDeclineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/decline"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventDeclineRequest struct{ BaseRequest }
+
+//
+func (b *EventDeclineRequestBuilder) Request() *EventDeclineRequest {
+ return &EventDeclineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventDeclineRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventTentativelyAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// TentativelyAccept action undocumented
+func (b *EventRequestBuilder) TentativelyAccept(reqObj *EventTentativelyAcceptRequestParameter) *EventTentativelyAcceptRequestBuilder {
+ bb := &EventTentativelyAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/tentativelyAccept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventTentativelyAcceptRequest struct{ BaseRequest }
+
+//
+func (b *EventTentativelyAcceptRequestBuilder) Request() *EventTentativelyAcceptRequest {
+ return &EventTentativelyAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventTentativelyAcceptRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *EventRequestBuilder) Cancel(reqObj *EventCancelRequestParameter) *EventCancelRequestBuilder {
+ bb := &EventCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventCancelRequest struct{ BaseRequest }
+
+//
+func (b *EventCancelRequestBuilder) Request() *EventCancelRequest {
+ return &EventCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventMessageRequestObjectAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// Accept action undocumented
+func (b *EventMessageRequestObjectRequestBuilder) Accept(reqObj *EventMessageRequestObjectAcceptRequestParameter) *EventMessageRequestObjectAcceptRequestBuilder {
+ bb := &EventMessageRequestObjectAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/accept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventMessageRequestObjectAcceptRequest struct{ BaseRequest }
+
+//
+func (b *EventMessageRequestObjectAcceptRequestBuilder) Request() *EventMessageRequestObjectAcceptRequest {
+ return &EventMessageRequestObjectAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventMessageRequestObjectAcceptRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventMessageRequestObjectDeclineRequestBuilder struct{ BaseRequestBuilder }
+
+// Decline action undocumented
+func (b *EventMessageRequestObjectRequestBuilder) Decline(reqObj *EventMessageRequestObjectDeclineRequestParameter) *EventMessageRequestObjectDeclineRequestBuilder {
+ bb := &EventMessageRequestObjectDeclineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/decline"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventMessageRequestObjectDeclineRequest struct{ BaseRequest }
+
+//
+func (b *EventMessageRequestObjectDeclineRequestBuilder) Request() *EventMessageRequestObjectDeclineRequest {
+ return &EventMessageRequestObjectDeclineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventMessageRequestObjectDeclineRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type EventMessageRequestObjectTentativelyAcceptRequestBuilder struct{ BaseRequestBuilder }
+
+// TentativelyAccept action undocumented
+func (b *EventMessageRequestObjectRequestBuilder) TentativelyAccept(reqObj *EventMessageRequestObjectTentativelyAcceptRequestParameter) *EventMessageRequestObjectTentativelyAcceptRequestBuilder {
+ bb := &EventMessageRequestObjectTentativelyAcceptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/tentativelyAccept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type EventMessageRequestObjectTentativelyAcceptRequest struct{ BaseRequest }
+
+//
+func (b *EventMessageRequestObjectTentativelyAcceptRequestBuilder) Request() *EventMessageRequestObjectTentativelyAcceptRequest {
+ return &EventMessageRequestObjectTentativelyAcceptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *EventMessageRequestObjectTentativelyAcceptRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestExact.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExact.go
new file mode 100644
index 00000000..bec6bbc1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExact.go
@@ -0,0 +1,309 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ExactMatchDataStoreRequestBuilder is request builder for ExactMatchDataStore
+type ExactMatchDataStoreRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExactMatchDataStoreRequest
+func (b *ExactMatchDataStoreRequestBuilder) Request() *ExactMatchDataStoreRequest {
+ return &ExactMatchDataStoreRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExactMatchDataStoreRequest is request for ExactMatchDataStore
+type ExactMatchDataStoreRequest struct{ BaseRequest }
+
+// Get performs GET request for ExactMatchDataStore
+func (r *ExactMatchDataStoreRequest) Get(ctx context.Context) (resObj *ExactMatchDataStore, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExactMatchDataStore
+func (r *ExactMatchDataStoreRequest) Update(ctx context.Context, reqObj *ExactMatchDataStore) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExactMatchDataStore
+func (r *ExactMatchDataStoreRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ExactMatchLookupJobRequestBuilder is request builder for ExactMatchLookupJob
+type ExactMatchLookupJobRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExactMatchLookupJobRequest
+func (b *ExactMatchLookupJobRequestBuilder) Request() *ExactMatchLookupJobRequest {
+ return &ExactMatchLookupJobRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExactMatchLookupJobRequest is request for ExactMatchLookupJob
+type ExactMatchLookupJobRequest struct{ BaseRequest }
+
+// Get performs GET request for ExactMatchLookupJob
+func (r *ExactMatchLookupJobRequest) Get(ctx context.Context) (resObj *ExactMatchLookupJob, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExactMatchLookupJob
+func (r *ExactMatchLookupJobRequest) Update(ctx context.Context, reqObj *ExactMatchLookupJob) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExactMatchLookupJob
+func (r *ExactMatchLookupJobRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ExactMatchSessionRequestBuilder is request builder for ExactMatchSession
+type ExactMatchSessionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExactMatchSessionRequest
+func (b *ExactMatchSessionRequestBuilder) Request() *ExactMatchSessionRequest {
+ return &ExactMatchSessionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExactMatchSessionRequest is request for ExactMatchSession
+type ExactMatchSessionRequest struct{ BaseRequest }
+
+// Get performs GET request for ExactMatchSession
+func (r *ExactMatchSessionRequest) Get(ctx context.Context) (resObj *ExactMatchSession, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExactMatchSession
+func (r *ExactMatchSessionRequest) Update(ctx context.Context, reqObj *ExactMatchSession) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExactMatchSession
+func (r *ExactMatchSessionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ExactMatchUploadAgentRequestBuilder is request builder for ExactMatchUploadAgent
+type ExactMatchUploadAgentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExactMatchUploadAgentRequest
+func (b *ExactMatchUploadAgentRequestBuilder) Request() *ExactMatchUploadAgentRequest {
+ return &ExactMatchUploadAgentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExactMatchUploadAgentRequest is request for ExactMatchUploadAgent
+type ExactMatchUploadAgentRequest struct{ BaseRequest }
+
+// Get performs GET request for ExactMatchUploadAgent
+func (r *ExactMatchUploadAgentRequest) Get(ctx context.Context) (resObj *ExactMatchUploadAgent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExactMatchUploadAgent
+func (r *ExactMatchUploadAgentRequest) Update(ctx context.Context, reqObj *ExactMatchUploadAgent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExactMatchUploadAgent
+func (r *ExactMatchUploadAgentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type ExactMatchDataStoreLookupRequestBuilder struct{ BaseRequestBuilder }
+
+// Lookup action undocumented
+func (b *ExactMatchDataStoreRequestBuilder) Lookup(reqObj *ExactMatchDataStoreLookupRequestParameter) *ExactMatchDataStoreLookupRequestBuilder {
+ bb := &ExactMatchDataStoreLookupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/lookup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ExactMatchDataStoreLookupRequest struct{ BaseRequest }
+
+//
+func (b *ExactMatchDataStoreLookupRequestBuilder) Request() *ExactMatchDataStoreLookupRequest {
+ return &ExactMatchDataStoreLookupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ExactMatchDataStoreLookupRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]string, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []string
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []string
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ExactMatchDataStoreLookupRequest) PostN(ctx context.Context, n int) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *ExactMatchDataStoreLookupRequest) Post(ctx context.Context) ([]string, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type ExactMatchSessionCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *ExactMatchSessionRequestBuilder) Cancel(reqObj *ExactMatchSessionCancelRequestParameter) *ExactMatchSessionCancelRequestBuilder {
+ bb := &ExactMatchSessionCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ExactMatchSessionCancelRequest struct{ BaseRequest }
+
+//
+func (b *ExactMatchSessionCancelRequestBuilder) Request() *ExactMatchSessionCancelRequest {
+ return &ExactMatchSessionCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ExactMatchSessionCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ExactMatchSessionCommitRequestBuilder struct{ BaseRequestBuilder }
+
+// Commit action undocumented
+func (b *ExactMatchSessionRequestBuilder) Commit(reqObj *ExactMatchSessionCommitRequestParameter) *ExactMatchSessionCommitRequestBuilder {
+ bb := &ExactMatchSessionCommitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/commit"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ExactMatchSessionCommitRequest struct{ BaseRequest }
+
+//
+func (b *ExactMatchSessionCommitRequestBuilder) Request() *ExactMatchSessionCommitRequest {
+ return &ExactMatchSessionCommitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ExactMatchSessionCommitRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ExactMatchSessionRenewRequestBuilder struct{ BaseRequestBuilder }
+
+// Renew action undocumented
+func (b *ExactMatchSessionRequestBuilder) Renew(reqObj *ExactMatchSessionRenewRequestParameter) *ExactMatchSessionRenewRequestBuilder {
+ bb := &ExactMatchSessionRenewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/renew"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ExactMatchSessionRenewRequest struct{ BaseRequest }
+
+//
+func (b *ExactMatchSessionRenewRequestBuilder) Request() *ExactMatchSessionRenewRequest {
+ return &ExactMatchSessionRenewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ExactMatchSessionRenewRequest) Post(ctx context.Context) (resObj *ExactMatchSession, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestExtension.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExtension.go
new file mode 100644
index 00000000..1eb20dba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExtension.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ExtensionRequestBuilder is request builder for Extension
+type ExtensionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExtensionRequest
+func (b *ExtensionRequestBuilder) Request() *ExtensionRequest {
+ return &ExtensionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExtensionRequest is request for Extension
+type ExtensionRequest struct{ BaseRequest }
+
+// Get performs GET request for Extension
+func (r *ExtensionRequest) Get(ctx context.Context) (resObj *Extension, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Extension
+func (r *ExtensionRequest) Update(ctx context.Context, reqObj *Extension) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Extension
+func (r *ExtensionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ExtensionPropertyRequestBuilder is request builder for ExtensionProperty
+type ExtensionPropertyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExtensionPropertyRequest
+func (b *ExtensionPropertyRequestBuilder) Request() *ExtensionPropertyRequest {
+ return &ExtensionPropertyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExtensionPropertyRequest is request for ExtensionProperty
+type ExtensionPropertyRequest struct{ BaseRequest }
+
+// Get performs GET request for ExtensionProperty
+func (r *ExtensionPropertyRequest) Get(ctx context.Context) (resObj *ExtensionProperty, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExtensionProperty
+func (r *ExtensionPropertyRequest) Update(ctx context.Context, reqObj *ExtensionProperty) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExtensionProperty
+func (r *ExtensionPropertyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestExternal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExternal.go
new file mode 100644
index 00000000..75ebe1dd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestExternal.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ExternalRequestBuilder is request builder for External
+type ExternalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExternalRequest
+func (b *ExternalRequestBuilder) Request() *ExternalRequest {
+ return &ExternalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExternalRequest is request for External
+type ExternalRequest struct{ BaseRequest }
+
+// Get performs GET request for External
+func (r *ExternalRequest) Get(ctx context.Context) (resObj *External, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for External
+func (r *ExternalRequest) Update(ctx context.Context, reqObj *External) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for External
+func (r *ExternalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ExternalConnectionRequestBuilder is request builder for ExternalConnection
+type ExternalConnectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExternalConnectionRequest
+func (b *ExternalConnectionRequestBuilder) Request() *ExternalConnectionRequest {
+ return &ExternalConnectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExternalConnectionRequest is request for ExternalConnection
+type ExternalConnectionRequest struct{ BaseRequest }
+
+// Get performs GET request for ExternalConnection
+func (r *ExternalConnectionRequest) Get(ctx context.Context) (resObj *ExternalConnection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExternalConnection
+func (r *ExternalConnectionRequest) Update(ctx context.Context, reqObj *ExternalConnection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExternalConnection
+func (r *ExternalConnectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ExternalItemRequestBuilder is request builder for ExternalItem
+type ExternalItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ExternalItemRequest
+func (b *ExternalItemRequestBuilder) Request() *ExternalItemRequest {
+ return &ExternalItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ExternalItemRequest is request for ExternalItem
+type ExternalItemRequest struct{ BaseRequest }
+
+// Get performs GET request for ExternalItem
+func (r *ExternalItemRequest) Get(ctx context.Context) (resObj *ExternalItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ExternalItem
+func (r *ExternalItemRequest) Update(ctx context.Context, reqObj *ExternalItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ExternalItem
+func (r *ExternalItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestFeature.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFeature.go
new file mode 100644
index 00000000..53d0e533
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFeature.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// FeatureRolloutPolicyRequestBuilder is request builder for FeatureRolloutPolicy
+type FeatureRolloutPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FeatureRolloutPolicyRequest
+func (b *FeatureRolloutPolicyRequestBuilder) Request() *FeatureRolloutPolicyRequest {
+ return &FeatureRolloutPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FeatureRolloutPolicyRequest is request for FeatureRolloutPolicy
+type FeatureRolloutPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for FeatureRolloutPolicy
+func (r *FeatureRolloutPolicyRequest) Get(ctx context.Context) (resObj *FeatureRolloutPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FeatureRolloutPolicy
+func (r *FeatureRolloutPolicyRequest) Update(ctx context.Context, reqObj *FeatureRolloutPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FeatureRolloutPolicy
+func (r *FeatureRolloutPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestField.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestField.go
new file mode 100644
index 00000000..94498be5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestField.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// FieldValueSetRequestBuilder is request builder for FieldValueSet
+type FieldValueSetRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FieldValueSetRequest
+func (b *FieldValueSetRequestBuilder) Request() *FieldValueSetRequest {
+ return &FieldValueSetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FieldValueSetRequest is request for FieldValueSet
+type FieldValueSetRequest struct{ BaseRequest }
+
+// Get performs GET request for FieldValueSet
+func (r *FieldValueSetRequest) Get(ctx context.Context) (resObj *FieldValueSet, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FieldValueSet
+func (r *FieldValueSetRequest) Update(ctx context.Context, reqObj *FieldValueSet) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FieldValueSet
+func (r *FieldValueSetRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestFile.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFile.go
new file mode 100644
index 00000000..f9820c89
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFile.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// FileClassificationRequestObjectRequestBuilder is request builder for FileClassificationRequestObject
+type FileClassificationRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FileClassificationRequestObjectRequest
+func (b *FileClassificationRequestObjectRequestBuilder) Request() *FileClassificationRequestObjectRequest {
+ return &FileClassificationRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FileClassificationRequestObjectRequest is request for FileClassificationRequestObject
+type FileClassificationRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for FileClassificationRequestObject
+func (r *FileClassificationRequestObjectRequest) Get(ctx context.Context) (resObj *FileClassificationRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FileClassificationRequestObject
+func (r *FileClassificationRequestObjectRequest) Update(ctx context.Context, reqObj *FileClassificationRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FileClassificationRequestObject
+func (r *FileClassificationRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// FileSecurityProfileRequestBuilder is request builder for FileSecurityProfile
+type FileSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FileSecurityProfileRequest
+func (b *FileSecurityProfileRequestBuilder) Request() *FileSecurityProfileRequest {
+ return &FileSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FileSecurityProfileRequest is request for FileSecurityProfile
+type FileSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for FileSecurityProfile
+func (r *FileSecurityProfileRequest) Get(ctx context.Context) (resObj *FileSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FileSecurityProfile
+func (r *FileSecurityProfileRequest) Update(ctx context.Context, reqObj *FileSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FileSecurityProfile
+func (r *FileSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestFilter.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFilter.go
new file mode 100644
index 00000000..a660d5be
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFilter.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// FilterOperatorSchemaRequestBuilder is request builder for FilterOperatorSchema
+type FilterOperatorSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FilterOperatorSchemaRequest
+func (b *FilterOperatorSchemaRequestBuilder) Request() *FilterOperatorSchemaRequest {
+ return &FilterOperatorSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FilterOperatorSchemaRequest is request for FilterOperatorSchema
+type FilterOperatorSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for FilterOperatorSchema
+func (r *FilterOperatorSchemaRequest) Get(ctx context.Context) (resObj *FilterOperatorSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for FilterOperatorSchema
+func (r *FilterOperatorSchemaRequest) Update(ctx context.Context, reqObj *FilterOperatorSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for FilterOperatorSchema
+func (r *FilterOperatorSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestFinancials.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFinancials.go
new file mode 100644
index 00000000..bd252376
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestFinancials.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// FinancialsRequestBuilder is request builder for Financials
+type FinancialsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns FinancialsRequest
+func (b *FinancialsRequestBuilder) Request() *FinancialsRequest {
+ return &FinancialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// FinancialsRequest is request for Financials
+type FinancialsRequest struct{ BaseRequest }
+
+// Get performs GET request for Financials
+func (r *FinancialsRequest) Get(ctx context.Context) (resObj *Financials, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Financials
+func (r *FinancialsRequest) Update(ctx context.Context, reqObj *Financials) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Financials
+func (r *FinancialsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestGeneral.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGeneral.go
new file mode 100644
index 00000000..ef24a378
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGeneral.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GeneralLedgerEntryRequestBuilder is request builder for GeneralLedgerEntry
+type GeneralLedgerEntryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GeneralLedgerEntryRequest
+func (b *GeneralLedgerEntryRequestBuilder) Request() *GeneralLedgerEntryRequest {
+ return &GeneralLedgerEntryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GeneralLedgerEntryRequest is request for GeneralLedgerEntry
+type GeneralLedgerEntryRequest struct{ BaseRequest }
+
+// Get performs GET request for GeneralLedgerEntry
+func (r *GeneralLedgerEntryRequest) Get(ctx context.Context) (resObj *GeneralLedgerEntry, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GeneralLedgerEntry
+func (r *GeneralLedgerEntryRequest) Update(ctx context.Context, reqObj *GeneralLedgerEntry) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GeneralLedgerEntry
+func (r *GeneralLedgerEntryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestGovernance.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGovernance.go
new file mode 100644
index 00000000..d4a886e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGovernance.go
@@ -0,0 +1,315 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// GovernancePolicyTemplateRequestBuilder is request builder for GovernancePolicyTemplate
+type GovernancePolicyTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernancePolicyTemplateRequest
+func (b *GovernancePolicyTemplateRequestBuilder) Request() *GovernancePolicyTemplateRequest {
+ return &GovernancePolicyTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernancePolicyTemplateRequest is request for GovernancePolicyTemplate
+type GovernancePolicyTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernancePolicyTemplate
+func (r *GovernancePolicyTemplateRequest) Get(ctx context.Context) (resObj *GovernancePolicyTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernancePolicyTemplate
+func (r *GovernancePolicyTemplateRequest) Update(ctx context.Context, reqObj *GovernancePolicyTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernancePolicyTemplate
+func (r *GovernancePolicyTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GovernanceResourceRequestBuilder is request builder for GovernanceResource
+type GovernanceResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceResourceRequest
+func (b *GovernanceResourceRequestBuilder) Request() *GovernanceResourceRequest {
+ return &GovernanceResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceResourceRequest is request for GovernanceResource
+type GovernanceResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceResource
+func (r *GovernanceResourceRequest) Get(ctx context.Context) (resObj *GovernanceResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceResource
+func (r *GovernanceResourceRequest) Update(ctx context.Context, reqObj *GovernanceResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceResource
+func (r *GovernanceResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GovernanceRoleAssignmentRequestBuilder is request builder for GovernanceRoleAssignment
+type GovernanceRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceRoleAssignmentRequest
+func (b *GovernanceRoleAssignmentRequestBuilder) Request() *GovernanceRoleAssignmentRequest {
+ return &GovernanceRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceRoleAssignmentRequest is request for GovernanceRoleAssignment
+type GovernanceRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceRoleAssignment
+func (r *GovernanceRoleAssignmentRequest) Get(ctx context.Context) (resObj *GovernanceRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceRoleAssignment
+func (r *GovernanceRoleAssignmentRequest) Update(ctx context.Context, reqObj *GovernanceRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceRoleAssignment
+func (r *GovernanceRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GovernanceRoleAssignmentRequestObjectRequestBuilder is request builder for GovernanceRoleAssignmentRequestObject
+type GovernanceRoleAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceRoleAssignmentRequestObjectRequest
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Request() *GovernanceRoleAssignmentRequestObjectRequest {
+ return &GovernanceRoleAssignmentRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceRoleAssignmentRequestObjectRequest is request for GovernanceRoleAssignmentRequestObject
+type GovernanceRoleAssignmentRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceRoleAssignmentRequestObject
+func (r *GovernanceRoleAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceRoleAssignmentRequestObject
+func (r *GovernanceRoleAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *GovernanceRoleAssignmentRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceRoleAssignmentRequestObject
+func (r *GovernanceRoleAssignmentRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GovernanceRoleDefinitionRequestBuilder is request builder for GovernanceRoleDefinition
+type GovernanceRoleDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceRoleDefinitionRequest
+func (b *GovernanceRoleDefinitionRequestBuilder) Request() *GovernanceRoleDefinitionRequest {
+ return &GovernanceRoleDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceRoleDefinitionRequest is request for GovernanceRoleDefinition
+type GovernanceRoleDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceRoleDefinition
+func (r *GovernanceRoleDefinitionRequest) Get(ctx context.Context) (resObj *GovernanceRoleDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceRoleDefinition
+func (r *GovernanceRoleDefinitionRequest) Update(ctx context.Context, reqObj *GovernanceRoleDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceRoleDefinition
+func (r *GovernanceRoleDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GovernanceRoleSettingRequestBuilder is request builder for GovernanceRoleSetting
+type GovernanceRoleSettingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceRoleSettingRequest
+func (b *GovernanceRoleSettingRequestBuilder) Request() *GovernanceRoleSettingRequest {
+ return &GovernanceRoleSettingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceRoleSettingRequest is request for GovernanceRoleSetting
+type GovernanceRoleSettingRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceRoleSetting
+func (r *GovernanceRoleSettingRequest) Get(ctx context.Context) (resObj *GovernanceRoleSetting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceRoleSetting
+func (r *GovernanceRoleSettingRequest) Update(ctx context.Context, reqObj *GovernanceRoleSetting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceRoleSetting
+func (r *GovernanceRoleSettingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GovernanceSubjectRequestBuilder is request builder for GovernanceSubject
+type GovernanceSubjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GovernanceSubjectRequest
+func (b *GovernanceSubjectRequestBuilder) Request() *GovernanceSubjectRequest {
+ return &GovernanceSubjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GovernanceSubjectRequest is request for GovernanceSubject
+type GovernanceSubjectRequest struct{ BaseRequest }
+
+// Get performs GET request for GovernanceSubject
+func (r *GovernanceSubjectRequest) Get(ctx context.Context) (resObj *GovernanceSubject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GovernanceSubject
+func (r *GovernanceSubjectRequest) Update(ctx context.Context, reqObj *GovernanceSubject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GovernanceSubject
+func (r *GovernanceSubjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type GovernanceResourceCollectionRegisterRequestBuilder struct{ BaseRequestBuilder }
+
+// Register action undocumented
+func (b *PrivilegedAccessResourcesCollectionRequestBuilder) Register(reqObj *GovernanceResourceCollectionRegisterRequestParameter) *GovernanceResourceCollectionRegisterRequestBuilder {
+ bb := &GovernanceResourceCollectionRegisterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/register"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GovernanceResourceCollectionRegisterRequest struct{ BaseRequest }
+
+//
+func (b *GovernanceResourceCollectionRegisterRequestBuilder) Request() *GovernanceResourceCollectionRegisterRequest {
+ return &GovernanceResourceCollectionRegisterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GovernanceResourceCollectionRegisterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GovernanceRoleAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) Cancel(reqObj *GovernanceRoleAssignmentRequestObjectCancelRequestParameter) *GovernanceRoleAssignmentRequestObjectCancelRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GovernanceRoleAssignmentRequestObjectCancelRequest struct{ BaseRequest }
+
+//
+func (b *GovernanceRoleAssignmentRequestObjectCancelRequestBuilder) Request() *GovernanceRoleAssignmentRequestObjectCancelRequest {
+ return &GovernanceRoleAssignmentRequestObjectCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GovernanceRoleAssignmentRequestObjectCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateRequestAction action undocumented
+func (b *GovernanceRoleAssignmentRequestObjectRequestBuilder) UpdateRequestAction(reqObj *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestParameter) *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder {
+ bb := &GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateRequest"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest struct{ BaseRequest }
+
+//
+func (b *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequestBuilder) Request() *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest {
+ return &GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GovernanceRoleAssignmentRequestObjectUpdateRequestActionRequest) Post(ctx context.Context) (resObj *GovernanceRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestGroup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGroup.go
new file mode 100644
index 00000000..cb875491
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestGroup.go
@@ -0,0 +1,944 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// GroupRequestBuilder is request builder for Group
+type GroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupRequest
+func (b *GroupRequestBuilder) Request() *GroupRequest {
+ return &GroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupRequest is request for Group
+type GroupRequest struct{ BaseRequest }
+
+// Get performs GET request for Group
+func (r *GroupRequest) Get(ctx context.Context) (resObj *Group, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Group
+func (r *GroupRequest) Update(ctx context.Context, reqObj *Group) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Group
+func (r *GroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupLifecyclePolicyRequestBuilder is request builder for GroupLifecyclePolicy
+type GroupLifecyclePolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupLifecyclePolicyRequest
+func (b *GroupLifecyclePolicyRequestBuilder) Request() *GroupLifecyclePolicyRequest {
+ return &GroupLifecyclePolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupLifecyclePolicyRequest is request for GroupLifecyclePolicy
+type GroupLifecyclePolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupLifecyclePolicy
+func (r *GroupLifecyclePolicyRequest) Get(ctx context.Context) (resObj *GroupLifecyclePolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupLifecyclePolicy
+func (r *GroupLifecyclePolicyRequest) Update(ctx context.Context, reqObj *GroupLifecyclePolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupLifecyclePolicy
+func (r *GroupLifecyclePolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicyConfigurationRequestBuilder is request builder for GroupPolicyConfiguration
+type GroupPolicyConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyConfigurationRequest
+func (b *GroupPolicyConfigurationRequestBuilder) Request() *GroupPolicyConfigurationRequest {
+ return &GroupPolicyConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyConfigurationRequest is request for GroupPolicyConfiguration
+type GroupPolicyConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyConfiguration
+func (r *GroupPolicyConfigurationRequest) Get(ctx context.Context) (resObj *GroupPolicyConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyConfiguration
+func (r *GroupPolicyConfigurationRequest) Update(ctx context.Context, reqObj *GroupPolicyConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyConfiguration
+func (r *GroupPolicyConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicyConfigurationAssignmentRequestBuilder is request builder for GroupPolicyConfigurationAssignment
+type GroupPolicyConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyConfigurationAssignmentRequest
+func (b *GroupPolicyConfigurationAssignmentRequestBuilder) Request() *GroupPolicyConfigurationAssignmentRequest {
+ return &GroupPolicyConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyConfigurationAssignmentRequest is request for GroupPolicyConfigurationAssignment
+type GroupPolicyConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyConfigurationAssignment
+func (r *GroupPolicyConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *GroupPolicyConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyConfigurationAssignment
+func (r *GroupPolicyConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *GroupPolicyConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyConfigurationAssignment
+func (r *GroupPolicyConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicyDefinitionRequestBuilder is request builder for GroupPolicyDefinition
+type GroupPolicyDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyDefinitionRequest
+func (b *GroupPolicyDefinitionRequestBuilder) Request() *GroupPolicyDefinitionRequest {
+ return &GroupPolicyDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyDefinitionRequest is request for GroupPolicyDefinition
+type GroupPolicyDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyDefinition
+func (r *GroupPolicyDefinitionRequest) Get(ctx context.Context) (resObj *GroupPolicyDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyDefinition
+func (r *GroupPolicyDefinitionRequest) Update(ctx context.Context, reqObj *GroupPolicyDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyDefinition
+func (r *GroupPolicyDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicyDefinitionFileRequestBuilder is request builder for GroupPolicyDefinitionFile
+type GroupPolicyDefinitionFileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyDefinitionFileRequest
+func (b *GroupPolicyDefinitionFileRequestBuilder) Request() *GroupPolicyDefinitionFileRequest {
+ return &GroupPolicyDefinitionFileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyDefinitionFileRequest is request for GroupPolicyDefinitionFile
+type GroupPolicyDefinitionFileRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyDefinitionFile
+func (r *GroupPolicyDefinitionFileRequest) Get(ctx context.Context) (resObj *GroupPolicyDefinitionFile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyDefinitionFile
+func (r *GroupPolicyDefinitionFileRequest) Update(ctx context.Context, reqObj *GroupPolicyDefinitionFile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyDefinitionFile
+func (r *GroupPolicyDefinitionFileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicyDefinitionValueRequestBuilder is request builder for GroupPolicyDefinitionValue
+type GroupPolicyDefinitionValueRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyDefinitionValueRequest
+func (b *GroupPolicyDefinitionValueRequestBuilder) Request() *GroupPolicyDefinitionValueRequest {
+ return &GroupPolicyDefinitionValueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyDefinitionValueRequest is request for GroupPolicyDefinitionValue
+type GroupPolicyDefinitionValueRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyDefinitionValue
+func (r *GroupPolicyDefinitionValueRequest) Get(ctx context.Context) (resObj *GroupPolicyDefinitionValue, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyDefinitionValue
+func (r *GroupPolicyDefinitionValueRequest) Update(ctx context.Context, reqObj *GroupPolicyDefinitionValue) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyDefinitionValue
+func (r *GroupPolicyDefinitionValueRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicyMigrationReportRequestBuilder is request builder for GroupPolicyMigrationReport
+type GroupPolicyMigrationReportRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyMigrationReportRequest
+func (b *GroupPolicyMigrationReportRequestBuilder) Request() *GroupPolicyMigrationReportRequest {
+ return &GroupPolicyMigrationReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyMigrationReportRequest is request for GroupPolicyMigrationReport
+type GroupPolicyMigrationReportRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyMigrationReport
+func (r *GroupPolicyMigrationReportRequest) Get(ctx context.Context) (resObj *GroupPolicyMigrationReport, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyMigrationReport
+func (r *GroupPolicyMigrationReportRequest) Update(ctx context.Context, reqObj *GroupPolicyMigrationReport) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyMigrationReport
+func (r *GroupPolicyMigrationReportRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicyPresentationRequestBuilder is request builder for GroupPolicyPresentation
+type GroupPolicyPresentationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyPresentationRequest
+func (b *GroupPolicyPresentationRequestBuilder) Request() *GroupPolicyPresentationRequest {
+ return &GroupPolicyPresentationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyPresentationRequest is request for GroupPolicyPresentation
+type GroupPolicyPresentationRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyPresentation
+func (r *GroupPolicyPresentationRequest) Get(ctx context.Context) (resObj *GroupPolicyPresentation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyPresentation
+func (r *GroupPolicyPresentationRequest) Update(ctx context.Context, reqObj *GroupPolicyPresentation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyPresentation
+func (r *GroupPolicyPresentationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicyPresentationValueRequestBuilder is request builder for GroupPolicyPresentationValue
+type GroupPolicyPresentationValueRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicyPresentationValueRequest
+func (b *GroupPolicyPresentationValueRequestBuilder) Request() *GroupPolicyPresentationValueRequest {
+ return &GroupPolicyPresentationValueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicyPresentationValueRequest is request for GroupPolicyPresentationValue
+type GroupPolicyPresentationValueRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicyPresentationValue
+func (r *GroupPolicyPresentationValueRequest) Get(ctx context.Context) (resObj *GroupPolicyPresentationValue, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicyPresentationValue
+func (r *GroupPolicyPresentationValueRequest) Update(ctx context.Context, reqObj *GroupPolicyPresentationValue) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicyPresentationValue
+func (r *GroupPolicyPresentationValueRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// GroupPolicySettingMappingRequestBuilder is request builder for GroupPolicySettingMapping
+type GroupPolicySettingMappingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns GroupPolicySettingMappingRequest
+func (b *GroupPolicySettingMappingRequestBuilder) Request() *GroupPolicySettingMappingRequest {
+ return &GroupPolicySettingMappingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// GroupPolicySettingMappingRequest is request for GroupPolicySettingMapping
+type GroupPolicySettingMappingRequest struct{ BaseRequest }
+
+// Get performs GET request for GroupPolicySettingMapping
+func (r *GroupPolicySettingMappingRequest) Get(ctx context.Context) (resObj *GroupPolicySettingMapping, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for GroupPolicySettingMapping
+func (r *GroupPolicySettingMappingRequest) Update(ctx context.Context, reqObj *GroupPolicySettingMapping) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for GroupPolicySettingMapping
+func (r *GroupPolicySettingMappingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type GroupCollectionEvaluateDynamicMembershipRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateDynamicMembership action undocumented
+func (b *UserJoinedGroupsCollectionRequestBuilder) EvaluateDynamicMembership(reqObj *GroupCollectionEvaluateDynamicMembershipRequestParameter) *GroupCollectionEvaluateDynamicMembershipRequestBuilder {
+ bb := &GroupCollectionEvaluateDynamicMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateDynamicMembership"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupCollectionEvaluateDynamicMembershipRequest struct{ BaseRequest }
+
+//
+func (b *GroupCollectionEvaluateDynamicMembershipRequestBuilder) Request() *GroupCollectionEvaluateDynamicMembershipRequest {
+ return &GroupCollectionEvaluateDynamicMembershipRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupCollectionEvaluateDynamicMembershipRequest) Post(ctx context.Context) (resObj *EvaluateDynamicMembershipResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupLifecyclePolicyCollectionRenewGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// RenewGroup action undocumented
+func (b *GroupGroupLifecyclePoliciesCollectionRequestBuilder) RenewGroup(reqObj *GroupLifecyclePolicyCollectionRenewGroupRequestParameter) *GroupLifecyclePolicyCollectionRenewGroupRequestBuilder {
+ bb := &GroupLifecyclePolicyCollectionRenewGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/renewGroup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupLifecyclePolicyCollectionRenewGroupRequest struct{ BaseRequest }
+
+//
+func (b *GroupLifecyclePolicyCollectionRenewGroupRequestBuilder) Request() *GroupLifecyclePolicyCollectionRenewGroupRequest {
+ return &GroupLifecyclePolicyCollectionRenewGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupLifecyclePolicyCollectionRenewGroupRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateMigrationReport action undocumented
+func (b *DeviceManagementGroupPolicyMigrationReportsCollectionRequestBuilder) CreateMigrationReport(reqObj *GroupPolicyMigrationReportCollectionCreateMigrationReportRequestParameter) *GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder {
+ bb := &GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createMigrationReport"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupPolicyMigrationReportCollectionCreateMigrationReportRequest struct{ BaseRequest }
+
+//
+func (b *GroupPolicyMigrationReportCollectionCreateMigrationReportRequestBuilder) Request() *GroupPolicyMigrationReportCollectionCreateMigrationReportRequest {
+ return &GroupPolicyMigrationReportCollectionCreateMigrationReportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupPolicyMigrationReportCollectionCreateMigrationReportRequest) Post(ctx context.Context) (resObj *string, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupValidatePropertiesRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidateProperties action undocumented
+func (b *GroupRequestBuilder) ValidateProperties(reqObj *GroupValidatePropertiesRequestParameter) *GroupValidatePropertiesRequestBuilder {
+ bb := &GroupValidatePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupValidatePropertiesRequest struct{ BaseRequest }
+
+//
+func (b *GroupValidatePropertiesRequestBuilder) Request() *GroupValidatePropertiesRequest {
+ return &GroupValidatePropertiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupValidatePropertiesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupCheckGrantedPermissionsForAppRequestBuilder struct{ BaseRequestBuilder }
+
+// CheckGrantedPermissionsForApp action undocumented
+func (b *GroupRequestBuilder) CheckGrantedPermissionsForApp(reqObj *GroupCheckGrantedPermissionsForAppRequestParameter) *GroupCheckGrantedPermissionsForAppRequestBuilder {
+ bb := &GroupCheckGrantedPermissionsForAppRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/checkGrantedPermissionsForApp"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupCheckGrantedPermissionsForAppRequest struct{ BaseRequest }
+
+//
+func (b *GroupCheckGrantedPermissionsForAppRequestBuilder) Request() *GroupCheckGrantedPermissionsForAppRequest {
+ return &GroupCheckGrantedPermissionsForAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupCheckGrantedPermissionsForAppRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResourceSpecificPermissionGrant, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ResourceSpecificPermissionGrant
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ResourceSpecificPermissionGrant
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *GroupCheckGrantedPermissionsForAppRequest) PostN(ctx context.Context, n int) ([]ResourceSpecificPermissionGrant, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *GroupCheckGrantedPermissionsForAppRequest) Post(ctx context.Context) ([]ResourceSpecificPermissionGrant, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type GroupAssignLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignLicense action undocumented
+func (b *GroupRequestBuilder) AssignLicense(reqObj *GroupAssignLicenseRequestParameter) *GroupAssignLicenseRequestBuilder {
+ bb := &GroupAssignLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignLicense"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupAssignLicenseRequest struct{ BaseRequest }
+
+//
+func (b *GroupAssignLicenseRequestBuilder) Request() *GroupAssignLicenseRequest {
+ return &GroupAssignLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupAssignLicenseRequest) Post(ctx context.Context) (resObj *Group, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupSubscribeByMailRequestBuilder struct{ BaseRequestBuilder }
+
+// SubscribeByMail action undocumented
+func (b *GroupRequestBuilder) SubscribeByMail(reqObj *GroupSubscribeByMailRequestParameter) *GroupSubscribeByMailRequestBuilder {
+ bb := &GroupSubscribeByMailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/subscribeByMail"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupSubscribeByMailRequest struct{ BaseRequest }
+
+//
+func (b *GroupSubscribeByMailRequestBuilder) Request() *GroupSubscribeByMailRequest {
+ return &GroupSubscribeByMailRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupSubscribeByMailRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupUnsubscribeByMailRequestBuilder struct{ BaseRequestBuilder }
+
+// UnsubscribeByMail action undocumented
+func (b *GroupRequestBuilder) UnsubscribeByMail(reqObj *GroupUnsubscribeByMailRequestParameter) *GroupUnsubscribeByMailRequestBuilder {
+ bb := &GroupUnsubscribeByMailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unsubscribeByMail"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupUnsubscribeByMailRequest struct{ BaseRequest }
+
+//
+func (b *GroupUnsubscribeByMailRequestBuilder) Request() *GroupUnsubscribeByMailRequest {
+ return &GroupUnsubscribeByMailRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupUnsubscribeByMailRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupAddFavoriteRequestBuilder struct{ BaseRequestBuilder }
+
+// AddFavorite action undocumented
+func (b *GroupRequestBuilder) AddFavorite(reqObj *GroupAddFavoriteRequestParameter) *GroupAddFavoriteRequestBuilder {
+ bb := &GroupAddFavoriteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addFavorite"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupAddFavoriteRequest struct{ BaseRequest }
+
+//
+func (b *GroupAddFavoriteRequestBuilder) Request() *GroupAddFavoriteRequest {
+ return &GroupAddFavoriteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupAddFavoriteRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupRemoveFavoriteRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoveFavorite action undocumented
+func (b *GroupRequestBuilder) RemoveFavorite(reqObj *GroupRemoveFavoriteRequestParameter) *GroupRemoveFavoriteRequestBuilder {
+ bb := &GroupRemoveFavoriteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removeFavorite"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupRemoveFavoriteRequest struct{ BaseRequest }
+
+//
+func (b *GroupRemoveFavoriteRequestBuilder) Request() *GroupRemoveFavoriteRequest {
+ return &GroupRemoveFavoriteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupRemoveFavoriteRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupResetUnseenCountRequestBuilder struct{ BaseRequestBuilder }
+
+// ResetUnseenCount action undocumented
+func (b *GroupRequestBuilder) ResetUnseenCount(reqObj *GroupResetUnseenCountRequestParameter) *GroupResetUnseenCountRequestBuilder {
+ bb := &GroupResetUnseenCountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/resetUnseenCount"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupResetUnseenCountRequest struct{ BaseRequest }
+
+//
+func (b *GroupResetUnseenCountRequestBuilder) Request() *GroupResetUnseenCountRequest {
+ return &GroupResetUnseenCountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupResetUnseenCountRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupRenewRequestBuilder struct{ BaseRequestBuilder }
+
+// Renew action undocumented
+func (b *GroupRequestBuilder) Renew(reqObj *GroupRenewRequestParameter) *GroupRenewRequestBuilder {
+ bb := &GroupRenewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/renew"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupRenewRequest struct{ BaseRequest }
+
+//
+func (b *GroupRenewRequestBuilder) Request() *GroupRenewRequest {
+ return &GroupRenewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupRenewRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type GroupEvaluateDynamicMembershipRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateDynamicMembership action undocumented
+func (b *GroupRequestBuilder) EvaluateDynamicMembership(reqObj *GroupEvaluateDynamicMembershipRequestParameter) *GroupEvaluateDynamicMembershipRequestBuilder {
+ bb := &GroupEvaluateDynamicMembershipRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateDynamicMembership"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupEvaluateDynamicMembershipRequest struct{ BaseRequest }
+
+//
+func (b *GroupEvaluateDynamicMembershipRequestBuilder) Request() *GroupEvaluateDynamicMembershipRequest {
+ return &GroupEvaluateDynamicMembershipRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupEvaluateDynamicMembershipRequest) Post(ctx context.Context) (resObj *EvaluateDynamicMembershipResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupLifecyclePolicyAddGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// AddGroup action undocumented
+func (b *GroupLifecyclePolicyRequestBuilder) AddGroup(reqObj *GroupLifecyclePolicyAddGroupRequestParameter) *GroupLifecyclePolicyAddGroupRequestBuilder {
+ bb := &GroupLifecyclePolicyAddGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addGroup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupLifecyclePolicyAddGroupRequest struct{ BaseRequest }
+
+//
+func (b *GroupLifecyclePolicyAddGroupRequestBuilder) Request() *GroupLifecyclePolicyAddGroupRequest {
+ return &GroupLifecyclePolicyAddGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupLifecyclePolicyAddGroupRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupLifecyclePolicyRemoveGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoveGroup action undocumented
+func (b *GroupLifecyclePolicyRequestBuilder) RemoveGroup(reqObj *GroupLifecyclePolicyRemoveGroupRequestParameter) *GroupLifecyclePolicyRemoveGroupRequestBuilder {
+ bb := &GroupLifecyclePolicyRemoveGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removeGroup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupLifecyclePolicyRemoveGroupRequest struct{ BaseRequest }
+
+//
+func (b *GroupLifecyclePolicyRemoveGroupRequestBuilder) Request() *GroupLifecyclePolicyRemoveGroupRequest {
+ return &GroupLifecyclePolicyRemoveGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupLifecyclePolicyRemoveGroupRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type GroupPolicyConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *GroupPolicyConfigurationRequestBuilder) Assign(reqObj *GroupPolicyConfigurationAssignRequestParameter) *GroupPolicyConfigurationAssignRequestBuilder {
+ bb := &GroupPolicyConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupPolicyConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *GroupPolicyConfigurationAssignRequestBuilder) Request() *GroupPolicyConfigurationAssignRequest {
+ return &GroupPolicyConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupPolicyConfigurationAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]GroupPolicyConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []GroupPolicyConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []GroupPolicyConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *GroupPolicyConfigurationAssignRequest) PostN(ctx context.Context, n int) ([]GroupPolicyConfigurationAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *GroupPolicyConfigurationAssignRequest) Post(ctx context.Context) ([]GroupPolicyConfigurationAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateDefinitionValues action undocumented
+func (b *GroupPolicyConfigurationRequestBuilder) UpdateDefinitionValues(reqObj *GroupPolicyConfigurationUpdateDefinitionValuesRequestParameter) *GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder {
+ bb := &GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateDefinitionValues"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type GroupPolicyConfigurationUpdateDefinitionValuesRequest struct{ BaseRequest }
+
+//
+func (b *GroupPolicyConfigurationUpdateDefinitionValuesRequestBuilder) Request() *GroupPolicyConfigurationUpdateDefinitionValuesRequest {
+ return &GroupPolicyConfigurationUpdateDefinitionValuesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *GroupPolicyConfigurationUpdateDefinitionValuesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestHost.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestHost.go
new file mode 100644
index 00000000..89d8b576
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestHost.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// HostSecurityProfileRequestBuilder is request builder for HostSecurityProfile
+type HostSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns HostSecurityProfileRequest
+func (b *HostSecurityProfileRequestBuilder) Request() *HostSecurityProfileRequest {
+ return &HostSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// HostSecurityProfileRequest is request for HostSecurityProfile
+type HostSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for HostSecurityProfile
+func (r *HostSecurityProfileRequest) Get(ctx context.Context) (resObj *HostSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for HostSecurityProfile
+func (r *HostSecurityProfileRequest) Update(ctx context.Context, reqObj *HostSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for HostSecurityProfile
+func (r *HostSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestIOS.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIOS.go
new file mode 100644
index 00000000..8e4d7ca2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIOS.go
@@ -0,0 +1,849 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// IOSCertificateProfileRequestBuilder is request builder for IOSCertificateProfile
+type IOSCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSCertificateProfileRequest
+func (b *IOSCertificateProfileRequestBuilder) Request() *IOSCertificateProfileRequest {
+ return &IOSCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSCertificateProfileRequest is request for IOSCertificateProfile
+type IOSCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSCertificateProfile
+func (r *IOSCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSCertificateProfile
+func (r *IOSCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSCertificateProfile
+func (r *IOSCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSCertificateProfileBaseRequestBuilder is request builder for IOSCertificateProfileBase
+type IOSCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSCertificateProfileBaseRequest
+func (b *IOSCertificateProfileBaseRequestBuilder) Request() *IOSCertificateProfileBaseRequest {
+ return &IOSCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSCertificateProfileBaseRequest is request for IOSCertificateProfileBase
+type IOSCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSCertificateProfileBase
+func (r *IOSCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *IOSCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSCertificateProfileBase
+func (r *IOSCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *IOSCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSCertificateProfileBase
+func (r *IOSCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSDerivedCredentialAuthenticationConfigurationRequestBuilder is request builder for IOSDerivedCredentialAuthenticationConfiguration
+type IOSDerivedCredentialAuthenticationConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSDerivedCredentialAuthenticationConfigurationRequest
+func (b *IOSDerivedCredentialAuthenticationConfigurationRequestBuilder) Request() *IOSDerivedCredentialAuthenticationConfigurationRequest {
+ return &IOSDerivedCredentialAuthenticationConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSDerivedCredentialAuthenticationConfigurationRequest is request for IOSDerivedCredentialAuthenticationConfiguration
+type IOSDerivedCredentialAuthenticationConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSDerivedCredentialAuthenticationConfiguration
+func (r *IOSDerivedCredentialAuthenticationConfigurationRequest) Get(ctx context.Context) (resObj *IOSDerivedCredentialAuthenticationConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSDerivedCredentialAuthenticationConfiguration
+func (r *IOSDerivedCredentialAuthenticationConfigurationRequest) Update(ctx context.Context, reqObj *IOSDerivedCredentialAuthenticationConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSDerivedCredentialAuthenticationConfiguration
+func (r *IOSDerivedCredentialAuthenticationConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSDeviceFeaturesConfigurationRequestBuilder is request builder for IOSDeviceFeaturesConfiguration
+type IOSDeviceFeaturesConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSDeviceFeaturesConfigurationRequest
+func (b *IOSDeviceFeaturesConfigurationRequestBuilder) Request() *IOSDeviceFeaturesConfigurationRequest {
+ return &IOSDeviceFeaturesConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSDeviceFeaturesConfigurationRequest is request for IOSDeviceFeaturesConfiguration
+type IOSDeviceFeaturesConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSDeviceFeaturesConfiguration
+func (r *IOSDeviceFeaturesConfigurationRequest) Get(ctx context.Context) (resObj *IOSDeviceFeaturesConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSDeviceFeaturesConfiguration
+func (r *IOSDeviceFeaturesConfigurationRequest) Update(ctx context.Context, reqObj *IOSDeviceFeaturesConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSDeviceFeaturesConfiguration
+func (r *IOSDeviceFeaturesConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSEasEmailProfileConfigurationRequestBuilder is request builder for IOSEasEmailProfileConfiguration
+type IOSEasEmailProfileConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSEasEmailProfileConfigurationRequest
+func (b *IOSEasEmailProfileConfigurationRequestBuilder) Request() *IOSEasEmailProfileConfigurationRequest {
+ return &IOSEasEmailProfileConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSEasEmailProfileConfigurationRequest is request for IOSEasEmailProfileConfiguration
+type IOSEasEmailProfileConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSEasEmailProfileConfiguration
+func (r *IOSEasEmailProfileConfigurationRequest) Get(ctx context.Context) (resObj *IOSEasEmailProfileConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSEasEmailProfileConfiguration
+func (r *IOSEasEmailProfileConfigurationRequest) Update(ctx context.Context, reqObj *IOSEasEmailProfileConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSEasEmailProfileConfiguration
+func (r *IOSEasEmailProfileConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSEnterpriseWiFiConfigurationRequestBuilder is request builder for IOSEnterpriseWiFiConfiguration
+type IOSEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSEnterpriseWiFiConfigurationRequest
+func (b *IOSEnterpriseWiFiConfigurationRequestBuilder) Request() *IOSEnterpriseWiFiConfigurationRequest {
+ return &IOSEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSEnterpriseWiFiConfigurationRequest is request for IOSEnterpriseWiFiConfiguration
+type IOSEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSEnterpriseWiFiConfiguration
+func (r *IOSEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *IOSEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSEnterpriseWiFiConfiguration
+func (r *IOSEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *IOSEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSEnterpriseWiFiConfiguration
+func (r *IOSEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSImportedPFXCertificateProfileRequestBuilder is request builder for IOSImportedPFXCertificateProfile
+type IOSImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSImportedPFXCertificateProfileRequest
+func (b *IOSImportedPFXCertificateProfileRequestBuilder) Request() *IOSImportedPFXCertificateProfileRequest {
+ return &IOSImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSImportedPFXCertificateProfileRequest is request for IOSImportedPFXCertificateProfile
+type IOSImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSImportedPFXCertificateProfile
+func (r *IOSImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSImportedPFXCertificateProfile
+func (r *IOSImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSImportedPFXCertificateProfile
+func (r *IOSImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSLobAppProvisioningConfigurationRequestBuilder is request builder for IOSLobAppProvisioningConfiguration
+type IOSLobAppProvisioningConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSLobAppProvisioningConfigurationRequest
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) Request() *IOSLobAppProvisioningConfigurationRequest {
+ return &IOSLobAppProvisioningConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSLobAppProvisioningConfigurationRequest is request for IOSLobAppProvisioningConfiguration
+type IOSLobAppProvisioningConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSLobAppProvisioningConfiguration
+func (r *IOSLobAppProvisioningConfigurationRequest) Get(ctx context.Context) (resObj *IOSLobAppProvisioningConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSLobAppProvisioningConfiguration
+func (r *IOSLobAppProvisioningConfigurationRequest) Update(ctx context.Context, reqObj *IOSLobAppProvisioningConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSLobAppProvisioningConfiguration
+func (r *IOSLobAppProvisioningConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSLobAppProvisioningConfigurationAssignmentRequestBuilder is request builder for IOSLobAppProvisioningConfigurationAssignment
+type IOSLobAppProvisioningConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSLobAppProvisioningConfigurationAssignmentRequest
+func (b *IOSLobAppProvisioningConfigurationAssignmentRequestBuilder) Request() *IOSLobAppProvisioningConfigurationAssignmentRequest {
+ return &IOSLobAppProvisioningConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSLobAppProvisioningConfigurationAssignmentRequest is request for IOSLobAppProvisioningConfigurationAssignment
+type IOSLobAppProvisioningConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSLobAppProvisioningConfigurationAssignment
+func (r *IOSLobAppProvisioningConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *IOSLobAppProvisioningConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSLobAppProvisioningConfigurationAssignment
+func (r *IOSLobAppProvisioningConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *IOSLobAppProvisioningConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSLobAppProvisioningConfigurationAssignment
+func (r *IOSLobAppProvisioningConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSManagedAppProtectionRequestBuilder is request builder for IOSManagedAppProtection
+type IOSManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSManagedAppProtectionRequest
+func (b *IOSManagedAppProtectionRequestBuilder) Request() *IOSManagedAppProtectionRequest {
+ return &IOSManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSManagedAppProtectionRequest is request for IOSManagedAppProtection
+type IOSManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSManagedAppProtection
+func (r *IOSManagedAppProtectionRequest) Get(ctx context.Context) (resObj *IOSManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSManagedAppProtection
+func (r *IOSManagedAppProtectionRequest) Update(ctx context.Context, reqObj *IOSManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSManagedAppProtection
+func (r *IOSManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSPkcsCertificateProfileRequestBuilder is request builder for IOSPkcsCertificateProfile
+type IOSPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSPkcsCertificateProfileRequest
+func (b *IOSPkcsCertificateProfileRequestBuilder) Request() *IOSPkcsCertificateProfileRequest {
+ return &IOSPkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSPkcsCertificateProfileRequest is request for IOSPkcsCertificateProfile
+type IOSPkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSPkcsCertificateProfile
+func (r *IOSPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSPkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSPkcsCertificateProfile
+func (r *IOSPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSPkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSPkcsCertificateProfile
+func (r *IOSPkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSScepCertificateProfileRequestBuilder is request builder for IOSScepCertificateProfile
+type IOSScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSScepCertificateProfileRequest
+func (b *IOSScepCertificateProfileRequestBuilder) Request() *IOSScepCertificateProfileRequest {
+ return &IOSScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSScepCertificateProfileRequest is request for IOSScepCertificateProfile
+type IOSScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSScepCertificateProfile
+func (r *IOSScepCertificateProfileRequest) Get(ctx context.Context) (resObj *IOSScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSScepCertificateProfile
+func (r *IOSScepCertificateProfileRequest) Update(ctx context.Context, reqObj *IOSScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSScepCertificateProfile
+func (r *IOSScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSTrustedRootCertificateRequestBuilder is request builder for IOSTrustedRootCertificate
+type IOSTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSTrustedRootCertificateRequest
+func (b *IOSTrustedRootCertificateRequestBuilder) Request() *IOSTrustedRootCertificateRequest {
+ return &IOSTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSTrustedRootCertificateRequest is request for IOSTrustedRootCertificate
+type IOSTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSTrustedRootCertificate
+func (r *IOSTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *IOSTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSTrustedRootCertificate
+func (r *IOSTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *IOSTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSTrustedRootCertificate
+func (r *IOSTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSUpdateDeviceStatusRequestBuilder is request builder for IOSUpdateDeviceStatus
+type IOSUpdateDeviceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSUpdateDeviceStatusRequest
+func (b *IOSUpdateDeviceStatusRequestBuilder) Request() *IOSUpdateDeviceStatusRequest {
+ return &IOSUpdateDeviceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSUpdateDeviceStatusRequest is request for IOSUpdateDeviceStatus
+type IOSUpdateDeviceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSUpdateDeviceStatus
+func (r *IOSUpdateDeviceStatusRequest) Get(ctx context.Context) (resObj *IOSUpdateDeviceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSUpdateDeviceStatus
+func (r *IOSUpdateDeviceStatusRequest) Update(ctx context.Context, reqObj *IOSUpdateDeviceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSUpdateDeviceStatus
+func (r *IOSUpdateDeviceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSVPNConfigurationRequestBuilder is request builder for IOSVPNConfiguration
+type IOSVPNConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSVPNConfigurationRequest
+func (b *IOSVPNConfigurationRequestBuilder) Request() *IOSVPNConfigurationRequest {
+ return &IOSVPNConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSVPNConfigurationRequest is request for IOSVPNConfiguration
+type IOSVPNConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSVPNConfiguration
+func (r *IOSVPNConfigurationRequest) Get(ctx context.Context) (resObj *IOSVPNConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSVPNConfiguration
+func (r *IOSVPNConfigurationRequest) Update(ctx context.Context, reqObj *IOSVPNConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSVPNConfiguration
+func (r *IOSVPNConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSVPPAppRequestBuilder is request builder for IOSVPPApp
+type IOSVPPAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSVPPAppRequest
+func (b *IOSVPPAppRequestBuilder) Request() *IOSVPPAppRequest {
+ return &IOSVPPAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSVPPAppRequest is request for IOSVPPApp
+type IOSVPPAppRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSVPPApp
+func (r *IOSVPPAppRequest) Get(ctx context.Context) (resObj *IOSVPPApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSVPPApp
+func (r *IOSVPPAppRequest) Update(ctx context.Context, reqObj *IOSVPPApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSVPPApp
+func (r *IOSVPPAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IOSVPPAppAssignedLicenseRequestBuilder is request builder for IOSVPPAppAssignedLicense
+type IOSVPPAppAssignedLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IOSVPPAppAssignedLicenseRequest
+func (b *IOSVPPAppAssignedLicenseRequestBuilder) Request() *IOSVPPAppAssignedLicenseRequest {
+ return &IOSVPPAppAssignedLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IOSVPPAppAssignedLicenseRequest is request for IOSVPPAppAssignedLicense
+type IOSVPPAppAssignedLicenseRequest struct{ BaseRequest }
+
+// Get performs GET request for IOSVPPAppAssignedLicense
+func (r *IOSVPPAppAssignedLicenseRequest) Get(ctx context.Context) (resObj *IOSVPPAppAssignedLicense, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IOSVPPAppAssignedLicense
+func (r *IOSVPPAppAssignedLicenseRequest) Update(ctx context.Context, reqObj *IOSVPPAppAssignedLicense) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IOSVPPAppAssignedLicense
+func (r *IOSVPPAppAssignedLicenseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementIOSLobAppProvisioningConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestParameter) *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest {
+ return &IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *IOSLobAppProvisioningConfigurationCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementIOSManagedAppProtectionsCollectionRequestBuilder) HasPayloadLinks(reqObj *IOSManagedAppProtectionCollectionHasPayloadLinksRequestParameter) *IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder {
+ bb := &IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSManagedAppProtectionCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *IOSManagedAppProtectionCollectionHasPayloadLinksRequestBuilder) Request() *IOSManagedAppProtectionCollectionHasPayloadLinksRequest {
+ return &IOSManagedAppProtectionCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSManagedAppProtectionCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *IOSManagedAppProtectionCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *IOSManagedAppProtectionCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type IOSLobAppProvisioningConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *IOSLobAppProvisioningConfigurationRequestBuilder) Assign(reqObj *IOSLobAppProvisioningConfigurationAssignRequestParameter) *IOSLobAppProvisioningConfigurationAssignRequestBuilder {
+ bb := &IOSLobAppProvisioningConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSLobAppProvisioningConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *IOSLobAppProvisioningConfigurationAssignRequestBuilder) Request() *IOSLobAppProvisioningConfigurationAssignRequest {
+ return &IOSLobAppProvisioningConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSLobAppProvisioningConfigurationAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type IOSVPPAppRevokeAllLicensesRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeAllLicenses action undocumented
+func (b *IOSVPPAppRequestBuilder) RevokeAllLicenses(reqObj *IOSVPPAppRevokeAllLicensesRequestParameter) *IOSVPPAppRevokeAllLicensesRequestBuilder {
+ bb := &IOSVPPAppRevokeAllLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeAllLicenses"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSVPPAppRevokeAllLicensesRequest struct{ BaseRequest }
+
+//
+func (b *IOSVPPAppRevokeAllLicensesRequestBuilder) Request() *IOSVPPAppRevokeAllLicensesRequest {
+ return &IOSVPPAppRevokeAllLicensesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSVPPAppRevokeAllLicensesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type IOSVPPAppRevokeUserLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeUserLicense action undocumented
+func (b *IOSVPPAppRequestBuilder) RevokeUserLicense(reqObj *IOSVPPAppRevokeUserLicenseRequestParameter) *IOSVPPAppRevokeUserLicenseRequestBuilder {
+ bb := &IOSVPPAppRevokeUserLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeUserLicense"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSVPPAppRevokeUserLicenseRequest struct{ BaseRequest }
+
+//
+func (b *IOSVPPAppRevokeUserLicenseRequestBuilder) Request() *IOSVPPAppRevokeUserLicenseRequest {
+ return &IOSVPPAppRevokeUserLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSVPPAppRevokeUserLicenseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type IOSVPPAppRevokeDeviceLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeDeviceLicense action undocumented
+func (b *IOSVPPAppRequestBuilder) RevokeDeviceLicense(reqObj *IOSVPPAppRevokeDeviceLicenseRequestParameter) *IOSVPPAppRevokeDeviceLicenseRequestBuilder {
+ bb := &IOSVPPAppRevokeDeviceLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeDeviceLicense"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IOSVPPAppRevokeDeviceLicenseRequest struct{ BaseRequest }
+
+//
+func (b *IOSVPPAppRevokeDeviceLicenseRequestBuilder) Request() *IOSVPPAppRevokeDeviceLicenseRequest {
+ return &IOSVPPAppRevokeDeviceLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IOSVPPAppRevokeDeviceLicenseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestIP.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIP.go
new file mode 100644
index 00000000..4c946ccd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIP.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IPSecurityProfileRequestBuilder is request builder for IPSecurityProfile
+type IPSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IPSecurityProfileRequest
+func (b *IPSecurityProfileRequestBuilder) Request() *IPSecurityProfileRequest {
+ return &IPSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IPSecurityProfileRequest is request for IPSecurityProfile
+type IPSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IPSecurityProfile
+func (r *IPSecurityProfileRequest) Get(ctx context.Context) (resObj *IPSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IPSecurityProfile
+func (r *IPSecurityProfileRequest) Update(ctx context.Context, reqObj *IPSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IPSecurityProfile
+func (r *IPSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestIdentity.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIdentity.go
new file mode 100644
index 00000000..8cd8c14a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIdentity.go
@@ -0,0 +1,170 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IdentityContainerRequestBuilder is request builder for IdentityContainer
+type IdentityContainerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityContainerRequest
+func (b *IdentityContainerRequestBuilder) Request() *IdentityContainerRequest {
+ return &IdentityContainerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityContainerRequest is request for IdentityContainer
+type IdentityContainerRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityContainer
+func (r *IdentityContainerRequest) Get(ctx context.Context) (resObj *IdentityContainer, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityContainer
+func (r *IdentityContainerRequest) Update(ctx context.Context, reqObj *IdentityContainer) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityContainer
+func (r *IdentityContainerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityGovernanceRequestBuilder is request builder for IdentityGovernance
+type IdentityGovernanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityGovernanceRequest
+func (b *IdentityGovernanceRequestBuilder) Request() *IdentityGovernanceRequest {
+ return &IdentityGovernanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityGovernanceRequest is request for IdentityGovernance
+type IdentityGovernanceRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityGovernance
+func (r *IdentityGovernanceRequest) Get(ctx context.Context) (resObj *IdentityGovernance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityGovernance
+func (r *IdentityGovernanceRequest) Update(ctx context.Context, reqObj *IdentityGovernance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityGovernance
+func (r *IdentityGovernanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityProviderRequestBuilder is request builder for IdentityProvider
+type IdentityProviderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityProviderRequest
+func (b *IdentityProviderRequestBuilder) Request() *IdentityProviderRequest {
+ return &IdentityProviderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityProviderRequest is request for IdentityProvider
+type IdentityProviderRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityProvider
+func (r *IdentityProviderRequest) Get(ctx context.Context) (resObj *IdentityProvider, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityProvider
+func (r *IdentityProviderRequest) Update(ctx context.Context, reqObj *IdentityProvider) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityProvider
+func (r *IdentityProviderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityRiskEventRequestBuilder is request builder for IdentityRiskEvent
+type IdentityRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityRiskEventRequest
+func (b *IdentityRiskEventRequestBuilder) Request() *IdentityRiskEventRequest {
+ return &IdentityRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityRiskEventRequest is request for IdentityRiskEvent
+type IdentityRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityRiskEvent
+func (r *IdentityRiskEventRequest) Get(ctx context.Context) (resObj *IdentityRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityRiskEvent
+func (r *IdentityRiskEventRequest) Update(ctx context.Context, reqObj *IdentityRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityRiskEvent
+func (r *IdentityRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IdentityUserFlowRequestBuilder is request builder for IdentityUserFlow
+type IdentityUserFlowRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IdentityUserFlowRequest
+func (b *IdentityUserFlowRequestBuilder) Request() *IdentityUserFlowRequest {
+ return &IdentityUserFlowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IdentityUserFlowRequest is request for IdentityUserFlow
+type IdentityUserFlowRequest struct{ BaseRequest }
+
+// Get performs GET request for IdentityUserFlow
+func (r *IdentityUserFlowRequest) Get(ctx context.Context) (resObj *IdentityUserFlow, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IdentityUserFlow
+func (r *IdentityUserFlowRequest) Update(ctx context.Context, reqObj *IdentityUserFlow) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IdentityUserFlow
+func (r *IdentityUserFlowRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestImported.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestImported.go
new file mode 100644
index 00000000..35ba4339
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestImported.go
@@ -0,0 +1,496 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// ImportedAppleDeviceIdentityRequestBuilder is request builder for ImportedAppleDeviceIdentity
+type ImportedAppleDeviceIdentityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImportedAppleDeviceIdentityRequest
+func (b *ImportedAppleDeviceIdentityRequestBuilder) Request() *ImportedAppleDeviceIdentityRequest {
+ return &ImportedAppleDeviceIdentityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImportedAppleDeviceIdentityRequest is request for ImportedAppleDeviceIdentity
+type ImportedAppleDeviceIdentityRequest struct{ BaseRequest }
+
+// Get performs GET request for ImportedAppleDeviceIdentity
+func (r *ImportedAppleDeviceIdentityRequest) Get(ctx context.Context) (resObj *ImportedAppleDeviceIdentity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImportedAppleDeviceIdentity
+func (r *ImportedAppleDeviceIdentityRequest) Update(ctx context.Context, reqObj *ImportedAppleDeviceIdentity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImportedAppleDeviceIdentity
+func (r *ImportedAppleDeviceIdentityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ImportedDeviceIdentityRequestBuilder is request builder for ImportedDeviceIdentity
+type ImportedDeviceIdentityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImportedDeviceIdentityRequest
+func (b *ImportedDeviceIdentityRequestBuilder) Request() *ImportedDeviceIdentityRequest {
+ return &ImportedDeviceIdentityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImportedDeviceIdentityRequest is request for ImportedDeviceIdentity
+type ImportedDeviceIdentityRequest struct{ BaseRequest }
+
+// Get performs GET request for ImportedDeviceIdentity
+func (r *ImportedDeviceIdentityRequest) Get(ctx context.Context) (resObj *ImportedDeviceIdentity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImportedDeviceIdentity
+func (r *ImportedDeviceIdentityRequest) Update(ctx context.Context, reqObj *ImportedDeviceIdentity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImportedDeviceIdentity
+func (r *ImportedDeviceIdentityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ImportedWindowsAutopilotDeviceIdentityRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentity
+type ImportedWindowsAutopilotDeviceIdentityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImportedWindowsAutopilotDeviceIdentityRequest
+func (b *ImportedWindowsAutopilotDeviceIdentityRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityRequest {
+ return &ImportedWindowsAutopilotDeviceIdentityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImportedWindowsAutopilotDeviceIdentityRequest is request for ImportedWindowsAutopilotDeviceIdentity
+type ImportedWindowsAutopilotDeviceIdentityRequest struct{ BaseRequest }
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentity
+func (r *ImportedWindowsAutopilotDeviceIdentityRequest) Get(ctx context.Context) (resObj *ImportedWindowsAutopilotDeviceIdentity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImportedWindowsAutopilotDeviceIdentity
+func (r *ImportedWindowsAutopilotDeviceIdentityRequest) Update(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImportedWindowsAutopilotDeviceIdentity
+func (r *ImportedWindowsAutopilotDeviceIdentityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder is request builder for ImportedWindowsAutopilotDeviceIdentityUpload
+type ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImportedWindowsAutopilotDeviceIdentityUploadRequest
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityUploadRequest {
+ return &ImportedWindowsAutopilotDeviceIdentityUploadRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImportedWindowsAutopilotDeviceIdentityUploadRequest is request for ImportedWindowsAutopilotDeviceIdentityUpload
+type ImportedWindowsAutopilotDeviceIdentityUploadRequest struct{ BaseRequest }
+
+// Get performs GET request for ImportedWindowsAutopilotDeviceIdentityUpload
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadRequest) Get(ctx context.Context) (resObj *ImportedWindowsAutopilotDeviceIdentityUpload, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImportedWindowsAutopilotDeviceIdentityUpload
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadRequest) Update(ctx context.Context, reqObj *ImportedWindowsAutopilotDeviceIdentityUpload) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImportedWindowsAutopilotDeviceIdentityUpload
+func (r *ImportedWindowsAutopilotDeviceIdentityUploadRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder struct{ BaseRequestBuilder }
+
+// ImportAppleDeviceIdentityList action undocumented
+func (b *DepOnboardingSettingImportedAppleDeviceIdentitiesCollectionRequestBuilder) ImportAppleDeviceIdentityList(reqObj *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestParameter) *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder {
+ bb := &ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/importAppleDeviceIdentityList"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest struct{ BaseRequest }
+
+//
+func (b *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequestBuilder) Request() *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest {
+ return &ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedAppleDeviceIdentityResult, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedAppleDeviceIdentityResult
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedAppleDeviceIdentityResult
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest) PostN(ctx context.Context, n int) ([]ImportedAppleDeviceIdentityResult, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *ImportedAppleDeviceIdentityCollectionImportAppleDeviceIdentityListRequest) Post(ctx context.Context) ([]ImportedAppleDeviceIdentityResult, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder struct{ BaseRequestBuilder }
+
+// ImportDeviceIdentityList action undocumented
+func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) ImportDeviceIdentityList(reqObj *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestParameter) *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder {
+ bb := &ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/importDeviceIdentityList"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest struct{ BaseRequest }
+
+//
+func (b *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequestBuilder) Request() *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest {
+ return &ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedDeviceIdentityResult, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedDeviceIdentityResult
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedDeviceIdentityResult
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest) PostN(ctx context.Context, n int) ([]ImportedDeviceIdentityResult, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionImportDeviceIdentityListRequest) Post(ctx context.Context) ([]ImportedDeviceIdentityResult, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder struct{ BaseRequestBuilder }
+
+// SearchExistingIdentities action undocumented
+func (b *DeviceManagementImportedDeviceIdentitiesCollectionRequestBuilder) SearchExistingIdentities(reqObj *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestParameter) *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder {
+ bb := &ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/searchExistingIdentities"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest struct{ BaseRequest }
+
+//
+func (b *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequestBuilder) Request() *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest {
+ return &ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest) PostN(ctx context.Context, n int) ([]ImportedDeviceIdentity, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *ImportedDeviceIdentityCollectionSearchExistingIdentitiesRequest) Post(ctx context.Context) ([]ImportedDeviceIdentity, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder struct{ BaseRequestBuilder }
+
+// Import action undocumented
+func (b *DeviceManagementImportedWindowsAutopilotDeviceIdentitiesCollectionRequestBuilder) Import(reqObj *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter) *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/import"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Import action undocumented
+func (b *ImportedWindowsAutopilotDeviceIdentityUploadDeviceIdentitiesCollectionRequestBuilder) Import(reqObj *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestParameter) *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder {
+ bb := &ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/import"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest struct{ BaseRequest }
+
+//
+func (b *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequestBuilder) Request() *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest {
+ return &ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ImportedWindowsAutopilotDeviceIdentity
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ImportedWindowsAutopilotDeviceIdentity
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest) PostN(ctx context.Context, n int) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *ImportedWindowsAutopilotDeviceIdentityCollectionImportRequest) Post(ctx context.Context) ([]ImportedWindowsAutopilotDeviceIdentity, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestImpossible.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestImpossible.go
new file mode 100644
index 00000000..e4e07d70
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestImpossible.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ImpossibleTravelRiskEventRequestBuilder is request builder for ImpossibleTravelRiskEvent
+type ImpossibleTravelRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ImpossibleTravelRiskEventRequest
+func (b *ImpossibleTravelRiskEventRequestBuilder) Request() *ImpossibleTravelRiskEventRequest {
+ return &ImpossibleTravelRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ImpossibleTravelRiskEventRequest is request for ImpossibleTravelRiskEvent
+type ImpossibleTravelRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for ImpossibleTravelRiskEvent
+func (r *ImpossibleTravelRiskEventRequest) Get(ctx context.Context) (resObj *ImpossibleTravelRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ImpossibleTravelRiskEvent
+func (r *ImpossibleTravelRiskEventRequest) Update(ctx context.Context, reqObj *ImpossibleTravelRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ImpossibleTravelRiskEvent
+func (r *ImpossibleTravelRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestInference.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInference.go
new file mode 100644
index 00000000..31c365c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInference.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// InferenceClassificationRequestBuilder is request builder for InferenceClassification
+type InferenceClassificationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InferenceClassificationRequest
+func (b *InferenceClassificationRequestBuilder) Request() *InferenceClassificationRequest {
+ return &InferenceClassificationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InferenceClassificationRequest is request for InferenceClassification
+type InferenceClassificationRequest struct{ BaseRequest }
+
+// Get performs GET request for InferenceClassification
+func (r *InferenceClassificationRequest) Get(ctx context.Context) (resObj *InferenceClassification, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InferenceClassification
+func (r *InferenceClassificationRequest) Update(ctx context.Context, reqObj *InferenceClassification) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InferenceClassification
+func (r *InferenceClassificationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// InferenceClassificationOverrideRequestBuilder is request builder for InferenceClassificationOverride
+type InferenceClassificationOverrideRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InferenceClassificationOverrideRequest
+func (b *InferenceClassificationOverrideRequestBuilder) Request() *InferenceClassificationOverrideRequest {
+ return &InferenceClassificationOverrideRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InferenceClassificationOverrideRequest is request for InferenceClassificationOverride
+type InferenceClassificationOverrideRequest struct{ BaseRequest }
+
+// Get performs GET request for InferenceClassificationOverride
+func (r *InferenceClassificationOverrideRequest) Get(ctx context.Context) (resObj *InferenceClassificationOverride, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InferenceClassificationOverride
+func (r *InferenceClassificationOverrideRequest) Update(ctx context.Context, reqObj *InferenceClassificationOverride) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InferenceClassificationOverride
+func (r *InferenceClassificationOverrideRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestInformation.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInformation.go
new file mode 100644
index 00000000..0aae5f7d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInformation.go
@@ -0,0 +1,423 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// InformationProtectionRequestBuilder is request builder for InformationProtection
+type InformationProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InformationProtectionRequest
+func (b *InformationProtectionRequestBuilder) Request() *InformationProtectionRequest {
+ return &InformationProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InformationProtectionRequest is request for InformationProtection
+type InformationProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for InformationProtection
+func (r *InformationProtectionRequest) Get(ctx context.Context) (resObj *InformationProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InformationProtection
+func (r *InformationProtectionRequest) Update(ctx context.Context, reqObj *InformationProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InformationProtection
+func (r *InformationProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// InformationProtectionLabelRequestBuilder is request builder for InformationProtectionLabel
+type InformationProtectionLabelRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InformationProtectionLabelRequest
+func (b *InformationProtectionLabelRequestBuilder) Request() *InformationProtectionLabelRequest {
+ return &InformationProtectionLabelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InformationProtectionLabelRequest is request for InformationProtectionLabel
+type InformationProtectionLabelRequest struct{ BaseRequest }
+
+// Get performs GET request for InformationProtectionLabel
+func (r *InformationProtectionLabelRequest) Get(ctx context.Context) (resObj *InformationProtectionLabel, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InformationProtectionLabel
+func (r *InformationProtectionLabelRequest) Update(ctx context.Context, reqObj *InformationProtectionLabel) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InformationProtectionLabel
+func (r *InformationProtectionLabelRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// InformationProtectionPolicyRequestBuilder is request builder for InformationProtectionPolicy
+type InformationProtectionPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InformationProtectionPolicyRequest
+func (b *InformationProtectionPolicyRequestBuilder) Request() *InformationProtectionPolicyRequest {
+ return &InformationProtectionPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InformationProtectionPolicyRequest is request for InformationProtectionPolicy
+type InformationProtectionPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for InformationProtectionPolicy
+func (r *InformationProtectionPolicyRequest) Get(ctx context.Context) (resObj *InformationProtectionPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for InformationProtectionPolicy
+func (r *InformationProtectionPolicyRequest) Update(ctx context.Context, reqObj *InformationProtectionPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for InformationProtectionPolicy
+func (r *InformationProtectionPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type InformationProtectionLabelCollectionExtractLabelRequestBuilder struct{ BaseRequestBuilder }
+
+// ExtractLabel action undocumented
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) ExtractLabel(reqObj *InformationProtectionLabelCollectionExtractLabelRequestParameter) *InformationProtectionLabelCollectionExtractLabelRequestBuilder {
+ bb := &InformationProtectionLabelCollectionExtractLabelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/extractLabel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionLabelCollectionExtractLabelRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionLabelCollectionExtractLabelRequestBuilder) Request() *InformationProtectionLabelCollectionExtractLabelRequest {
+ return &InformationProtectionLabelCollectionExtractLabelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionExtractLabelRequest) Post(ctx context.Context) (resObj *InformationProtectionContentLabel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateApplication action undocumented
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) EvaluateApplication(reqObj *InformationProtectionLabelCollectionEvaluateApplicationRequestParameter) *InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder {
+ bb := &InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateApplication"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateApplicationRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionLabelCollectionEvaluateApplicationRequestBuilder) Request() *InformationProtectionLabelCollectionEvaluateApplicationRequest {
+ return &InformationProtectionLabelCollectionEvaluateApplicationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateApplicationRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InformationProtectionAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []InformationProtectionAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []InformationProtectionAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateApplicationRequest) PostN(ctx context.Context, n int) ([]InformationProtectionAction, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateApplicationRequest) Post(ctx context.Context) ([]InformationProtectionAction, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateRemoval action undocumented
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) EvaluateRemoval(reqObj *InformationProtectionLabelCollectionEvaluateRemovalRequestParameter) *InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder {
+ bb := &InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateRemoval"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateRemovalRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionLabelCollectionEvaluateRemovalRequestBuilder) Request() *InformationProtectionLabelCollectionEvaluateRemovalRequest {
+ return &InformationProtectionLabelCollectionEvaluateRemovalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateRemovalRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InformationProtectionAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []InformationProtectionAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []InformationProtectionAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateRemovalRequest) PostN(ctx context.Context, n int) ([]InformationProtectionAction, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateRemovalRequest) Post(ctx context.Context) ([]InformationProtectionAction, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateClassificationResults action undocumented
+func (b *InformationProtectionPolicyLabelsCollectionRequestBuilder) EvaluateClassificationResults(reqObj *InformationProtectionLabelCollectionEvaluateClassificationResultsRequestParameter) *InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder {
+ bb := &InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateClassificationResults"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionLabelCollectionEvaluateClassificationResultsRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionLabelCollectionEvaluateClassificationResultsRequestBuilder) Request() *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest {
+ return &InformationProtectionLabelCollectionEvaluateClassificationResultsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]InformationProtectionAction, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []InformationProtectionAction
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []InformationProtectionAction
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest) PostN(ctx context.Context, n int) ([]InformationProtectionAction, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *InformationProtectionLabelCollectionEvaluateClassificationResultsRequest) Post(ctx context.Context) ([]InformationProtectionAction, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder struct{ BaseRequestBuilder }
+
+// EvaluateLabelsAndPolicies action undocumented
+func (b *InformationProtectionRequestBuilder) EvaluateLabelsAndPolicies(reqObj *InformationProtectionEvaluateLabelsAndPoliciesRequestParameter) *InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder {
+ bb := &InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluateLabelsAndPolicies"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type InformationProtectionEvaluateLabelsAndPoliciesRequest struct{ BaseRequest }
+
+//
+func (b *InformationProtectionEvaluateLabelsAndPoliciesRequestBuilder) Request() *InformationProtectionEvaluateLabelsAndPoliciesRequest {
+ return &InformationProtectionEvaluateLabelsAndPoliciesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *InformationProtectionEvaluateLabelsAndPoliciesRequest) Post(ctx context.Context) (resObj *EvaluateLabelsAndPoliciesJobResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestIntune.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIntune.go
new file mode 100644
index 00000000..f62b0841
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestIntune.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// IntuneBrandingProfileRequestBuilder is request builder for IntuneBrandingProfile
+type IntuneBrandingProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IntuneBrandingProfileRequest
+func (b *IntuneBrandingProfileRequestBuilder) Request() *IntuneBrandingProfileRequest {
+ return &IntuneBrandingProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IntuneBrandingProfileRequest is request for IntuneBrandingProfile
+type IntuneBrandingProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for IntuneBrandingProfile
+func (r *IntuneBrandingProfileRequest) Get(ctx context.Context) (resObj *IntuneBrandingProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IntuneBrandingProfile
+func (r *IntuneBrandingProfileRequest) Update(ctx context.Context, reqObj *IntuneBrandingProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IntuneBrandingProfile
+func (r *IntuneBrandingProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// IntuneBrandingProfileAssignmentRequestBuilder is request builder for IntuneBrandingProfileAssignment
+type IntuneBrandingProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns IntuneBrandingProfileAssignmentRequest
+func (b *IntuneBrandingProfileAssignmentRequestBuilder) Request() *IntuneBrandingProfileAssignmentRequest {
+ return &IntuneBrandingProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// IntuneBrandingProfileAssignmentRequest is request for IntuneBrandingProfileAssignment
+type IntuneBrandingProfileAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for IntuneBrandingProfileAssignment
+func (r *IntuneBrandingProfileAssignmentRequest) Get(ctx context.Context) (resObj *IntuneBrandingProfileAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for IntuneBrandingProfileAssignment
+func (r *IntuneBrandingProfileAssignmentRequest) Update(ctx context.Context, reqObj *IntuneBrandingProfileAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for IntuneBrandingProfileAssignment
+func (r *IntuneBrandingProfileAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type IntuneBrandingProfileAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *IntuneBrandingProfileRequestBuilder) Assign(reqObj *IntuneBrandingProfileAssignRequestParameter) *IntuneBrandingProfileAssignRequestBuilder {
+ bb := &IntuneBrandingProfileAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type IntuneBrandingProfileAssignRequest struct{ BaseRequest }
+
+//
+func (b *IntuneBrandingProfileAssignRequestBuilder) Request() *IntuneBrandingProfileAssignRequest {
+ return &IntuneBrandingProfileAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *IntuneBrandingProfileAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestInvitation.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInvitation.go
new file mode 100644
index 00000000..bc48af95
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestInvitation.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// InvitationRequestBuilder is request builder for Invitation
+type InvitationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns InvitationRequest
+func (b *InvitationRequestBuilder) Request() *InvitationRequest {
+ return &InvitationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// InvitationRequest is request for Invitation
+type InvitationRequest struct{ BaseRequest }
+
+// Get performs GET request for Invitation
+func (r *InvitationRequest) Get(ctx context.Context) (resObj *Invitation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Invitation
+func (r *InvitationRequest) Update(ctx context.Context, reqObj *Invitation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Invitation
+func (r *InvitationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go
new file mode 100644
index 00000000..a5fc97de
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestItem.go
@@ -0,0 +1,302 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ItemRequestBuilder is request builder for Item
+type ItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemRequest
+func (b *ItemRequestBuilder) Request() *ItemRequest {
+ return &ItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemRequest is request for Item
+type ItemRequest struct{ BaseRequest }
+
+// Get performs GET request for Item
+func (r *ItemRequest) Get(ctx context.Context) (resObj *Item, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Item
+func (r *ItemRequest) Update(ctx context.Context, reqObj *Item) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Item
+func (r *ItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ItemActivityRequestBuilder is request builder for ItemActivity
+type ItemActivityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemActivityRequest
+func (b *ItemActivityRequestBuilder) Request() *ItemActivityRequest {
+ return &ItemActivityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemActivityRequest is request for ItemActivity
+type ItemActivityRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemActivity
+func (r *ItemActivityRequest) Get(ctx context.Context) (resObj *ItemActivity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemActivity
+func (r *ItemActivityRequest) Update(ctx context.Context, reqObj *ItemActivity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemActivity
+func (r *ItemActivityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ItemActivityOLDRequestBuilder is request builder for ItemActivityOLD
+type ItemActivityOLDRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemActivityOLDRequest
+func (b *ItemActivityOLDRequestBuilder) Request() *ItemActivityOLDRequest {
+ return &ItemActivityOLDRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemActivityOLDRequest is request for ItemActivityOLD
+type ItemActivityOLDRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemActivityOLD
+func (r *ItemActivityOLDRequest) Get(ctx context.Context) (resObj *ItemActivityOLD, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemActivityOLD
+func (r *ItemActivityOLDRequest) Update(ctx context.Context, reqObj *ItemActivityOLD) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemActivityOLD
+func (r *ItemActivityOLDRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ItemActivityStatRequestBuilder is request builder for ItemActivityStat
+type ItemActivityStatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemActivityStatRequest
+func (b *ItemActivityStatRequestBuilder) Request() *ItemActivityStatRequest {
+ return &ItemActivityStatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemActivityStatRequest is request for ItemActivityStat
+type ItemActivityStatRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemActivityStat
+func (r *ItemActivityStatRequest) Get(ctx context.Context) (resObj *ItemActivityStat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemActivityStat
+func (r *ItemActivityStatRequest) Update(ctx context.Context, reqObj *ItemActivityStat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemActivityStat
+func (r *ItemActivityStatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ItemAnalyticsRequestBuilder is request builder for ItemAnalytics
+type ItemAnalyticsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemAnalyticsRequest
+func (b *ItemAnalyticsRequestBuilder) Request() *ItemAnalyticsRequest {
+ return &ItemAnalyticsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemAnalyticsRequest is request for ItemAnalytics
+type ItemAnalyticsRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemAnalytics
+func (r *ItemAnalyticsRequest) Get(ctx context.Context) (resObj *ItemAnalytics, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemAnalytics
+func (r *ItemAnalyticsRequest) Update(ctx context.Context, reqObj *ItemAnalytics) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemAnalytics
+func (r *ItemAnalyticsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ItemAttachmentRequestBuilder is request builder for ItemAttachment
+type ItemAttachmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemAttachmentRequest
+func (b *ItemAttachmentRequestBuilder) Request() *ItemAttachmentRequest {
+ return &ItemAttachmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemAttachmentRequest is request for ItemAttachment
+type ItemAttachmentRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemAttachment
+func (r *ItemAttachmentRequest) Get(ctx context.Context) (resObj *ItemAttachment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemAttachment
+func (r *ItemAttachmentRequest) Update(ctx context.Context, reqObj *ItemAttachment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemAttachment
+func (r *ItemAttachmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ItemCategoryRequestBuilder is request builder for ItemCategory
+type ItemCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemCategoryRequest
+func (b *ItemCategoryRequestBuilder) Request() *ItemCategoryRequest {
+ return &ItemCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemCategoryRequest is request for ItemCategory
+type ItemCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemCategory
+func (r *ItemCategoryRequest) Get(ctx context.Context) (resObj *ItemCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemCategory
+func (r *ItemCategoryRequest) Update(ctx context.Context, reqObj *ItemCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemCategory
+func (r *ItemCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ItemEmailRequestBuilder is request builder for ItemEmail
+type ItemEmailRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemEmailRequest
+func (b *ItemEmailRequestBuilder) Request() *ItemEmailRequest {
+ return &ItemEmailRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemEmailRequest is request for ItemEmail
+type ItemEmailRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemEmail
+func (r *ItemEmailRequest) Get(ctx context.Context) (resObj *ItemEmail, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemEmail
+func (r *ItemEmailRequest) Update(ctx context.Context, reqObj *ItemEmail) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemEmail
+func (r *ItemEmailRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ItemPhoneRequestBuilder is request builder for ItemPhone
+type ItemPhoneRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ItemPhoneRequest
+func (b *ItemPhoneRequestBuilder) Request() *ItemPhoneRequest {
+ return &ItemPhoneRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ItemPhoneRequest is request for ItemPhone
+type ItemPhoneRequest struct{ BaseRequest }
+
+// Get performs GET request for ItemPhone
+func (r *ItemPhoneRequest) Get(ctx context.Context) (resObj *ItemPhone, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ItemPhone
+func (r *ItemPhoneRequest) Update(ctx context.Context, reqObj *ItemPhone) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ItemPhone
+func (r *ItemPhoneRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestJob.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestJob.go
new file mode 100644
index 00000000..bdc5ffa9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestJob.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// JobResponseBaseRequestBuilder is request builder for JobResponseBase
+type JobResponseBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns JobResponseBaseRequest
+func (b *JobResponseBaseRequestBuilder) Request() *JobResponseBaseRequest {
+ return &JobResponseBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// JobResponseBaseRequest is request for JobResponseBase
+type JobResponseBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for JobResponseBase
+func (r *JobResponseBaseRequest) Get(ctx context.Context) (resObj *JobResponseBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for JobResponseBase
+func (r *JobResponseBaseRequest) Update(ctx context.Context, reqObj *JobResponseBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for JobResponseBase
+func (r *JobResponseBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestJournal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestJournal.go
new file mode 100644
index 00000000..63eb391b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestJournal.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// JournalRequestBuilder is request builder for Journal
+type JournalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns JournalRequest
+func (b *JournalRequestBuilder) Request() *JournalRequest {
+ return &JournalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// JournalRequest is request for Journal
+type JournalRequest struct{ BaseRequest }
+
+// Get performs GET request for Journal
+func (r *JournalRequest) Get(ctx context.Context) (resObj *Journal, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Journal
+func (r *JournalRequest) Update(ctx context.Context, reqObj *Journal) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Journal
+func (r *JournalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// JournalLineRequestBuilder is request builder for JournalLine
+type JournalLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns JournalLineRequest
+func (b *JournalLineRequestBuilder) Request() *JournalLineRequest {
+ return &JournalLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// JournalLineRequest is request for JournalLine
+type JournalLineRequest struct{ BaseRequest }
+
+// Get performs GET request for JournalLine
+func (r *JournalLineRequest) Get(ctx context.Context) (resObj *JournalLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for JournalLine
+func (r *JournalLineRequest) Update(ctx context.Context, reqObj *JournalLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for JournalLine
+func (r *JournalLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type JournalPostRequestBuilder struct{ BaseRequestBuilder }
+
+// Post action undocumented
+func (b *JournalRequestBuilder) Post(reqObj *JournalPostRequestParameter) *JournalPostRequestBuilder {
+ bb := &JournalPostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/post"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type JournalPostRequest struct{ BaseRequest }
+
+//
+func (b *JournalPostRequestBuilder) Request() *JournalPostRequest {
+ return &JournalPostRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *JournalPostRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestLanguage.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLanguage.go
new file mode 100644
index 00000000..e16707c6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLanguage.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LanguageProficiencyRequestBuilder is request builder for LanguageProficiency
+type LanguageProficiencyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LanguageProficiencyRequest
+func (b *LanguageProficiencyRequestBuilder) Request() *LanguageProficiencyRequest {
+ return &LanguageProficiencyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LanguageProficiencyRequest is request for LanguageProficiency
+type LanguageProficiencyRequest struct{ BaseRequest }
+
+// Get performs GET request for LanguageProficiency
+func (r *LanguageProficiencyRequest) Get(ctx context.Context) (resObj *LanguageProficiency, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LanguageProficiency
+func (r *LanguageProficiencyRequest) Update(ctx context.Context, reqObj *LanguageProficiency) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LanguageProficiency
+func (r *LanguageProficiencyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestLeaked.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLeaked.go
new file mode 100644
index 00000000..74784d7d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLeaked.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LeakedCredentialsRiskEventRequestBuilder is request builder for LeakedCredentialsRiskEvent
+type LeakedCredentialsRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LeakedCredentialsRiskEventRequest
+func (b *LeakedCredentialsRiskEventRequestBuilder) Request() *LeakedCredentialsRiskEventRequest {
+ return &LeakedCredentialsRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LeakedCredentialsRiskEventRequest is request for LeakedCredentialsRiskEvent
+type LeakedCredentialsRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for LeakedCredentialsRiskEvent
+func (r *LeakedCredentialsRiskEventRequest) Get(ctx context.Context) (resObj *LeakedCredentialsRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LeakedCredentialsRiskEvent
+func (r *LeakedCredentialsRiskEventRequest) Update(ctx context.Context, reqObj *LeakedCredentialsRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LeakedCredentialsRiskEvent
+func (r *LeakedCredentialsRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestLicense.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLicense.go
new file mode 100644
index 00000000..50430177
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLicense.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LicenseDetailsRequestBuilder is request builder for LicenseDetails
+type LicenseDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LicenseDetailsRequest
+func (b *LicenseDetailsRequestBuilder) Request() *LicenseDetailsRequest {
+ return &LicenseDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LicenseDetailsRequest is request for LicenseDetails
+type LicenseDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for LicenseDetails
+func (r *LicenseDetailsRequest) Get(ctx context.Context) (resObj *LicenseDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LicenseDetails
+func (r *LicenseDetailsRequest) Update(ctx context.Context, reqObj *LicenseDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LicenseDetails
+func (r *LicenseDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestList.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestList.go
new file mode 100644
index 00000000..921ce37d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestList.go
@@ -0,0 +1,130 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ListRequestBuilder is request builder for List
+type ListRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ListRequest
+func (b *ListRequestBuilder) Request() *ListRequest {
+ return &ListRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ListRequest is request for List
+type ListRequest struct{ BaseRequest }
+
+// Get performs GET request for List
+func (r *ListRequest) Get(ctx context.Context) (resObj *List, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for List
+func (r *ListRequest) Update(ctx context.Context, reqObj *List) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for List
+func (r *ListRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ListItemRequestBuilder is request builder for ListItem
+type ListItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ListItemRequest
+func (b *ListItemRequestBuilder) Request() *ListItemRequest {
+ return &ListItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ListItemRequest is request for ListItem
+type ListItemRequest struct{ BaseRequest }
+
+// Get performs GET request for ListItem
+func (r *ListItemRequest) Get(ctx context.Context) (resObj *ListItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ListItem
+func (r *ListItemRequest) Update(ctx context.Context, reqObj *ListItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ListItem
+func (r *ListItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ListItemVersionRequestBuilder is request builder for ListItemVersion
+type ListItemVersionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ListItemVersionRequest
+func (b *ListItemVersionRequestBuilder) Request() *ListItemVersionRequest {
+ return &ListItemVersionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ListItemVersionRequest is request for ListItemVersion
+type ListItemVersionRequest struct{ BaseRequest }
+
+// Get performs GET request for ListItemVersion
+func (r *ListItemVersionRequest) Get(ctx context.Context) (resObj *ListItemVersion, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ListItemVersion
+func (r *ListItemVersionRequest) Update(ctx context.Context, reqObj *ListItemVersion) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ListItemVersion
+func (r *ListItemVersionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type ListItemVersionRestoreVersionRequestBuilder struct{ BaseRequestBuilder }
+
+// RestoreVersion action undocumented
+func (b *ListItemVersionRequestBuilder) RestoreVersion(reqObj *ListItemVersionRestoreVersionRequestParameter) *ListItemVersionRestoreVersionRequestBuilder {
+ bb := &ListItemVersionRestoreVersionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restoreVersion"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ListItemVersionRestoreVersionRequest struct{ BaseRequest }
+
+//
+func (b *ListItemVersionRestoreVersionRequestBuilder) Request() *ListItemVersionRestoreVersionRequest {
+ return &ListItemVersionRestoreVersionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ListItemVersionRestoreVersionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestLocalized.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLocalized.go
new file mode 100644
index 00000000..424d3c2f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLocalized.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LocalizedNotificationMessageRequestBuilder is request builder for LocalizedNotificationMessage
+type LocalizedNotificationMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LocalizedNotificationMessageRequest
+func (b *LocalizedNotificationMessageRequestBuilder) Request() *LocalizedNotificationMessageRequest {
+ return &LocalizedNotificationMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LocalizedNotificationMessageRequest is request for LocalizedNotificationMessage
+type LocalizedNotificationMessageRequest struct{ BaseRequest }
+
+// Get performs GET request for LocalizedNotificationMessage
+func (r *LocalizedNotificationMessageRequest) Get(ctx context.Context) (resObj *LocalizedNotificationMessage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LocalizedNotificationMessage
+func (r *LocalizedNotificationMessageRequest) Update(ctx context.Context, reqObj *LocalizedNotificationMessage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LocalizedNotificationMessage
+func (r *LocalizedNotificationMessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestLookup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLookup.go
new file mode 100644
index 00000000..880c399c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestLookup.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// LookupResultRowRequestBuilder is request builder for LookupResultRow
+type LookupResultRowRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns LookupResultRowRequest
+func (b *LookupResultRowRequestBuilder) Request() *LookupResultRowRequest {
+ return &LookupResultRowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// LookupResultRowRequest is request for LookupResultRow
+type LookupResultRowRequest struct{ BaseRequest }
+
+// Get performs GET request for LookupResultRow
+func (r *LookupResultRowRequest) Get(ctx context.Context) (resObj *LookupResultRow, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for LookupResultRow
+func (r *LookupResultRowRequest) Update(ctx context.Context, reqObj *LookupResultRow) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for LookupResultRow
+func (r *LookupResultRowRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMDM.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMDM.go
new file mode 100644
index 00000000..3769bff8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMDM.go
@@ -0,0 +1,131 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MDMWindowsInformationProtectionPolicyRequestBuilder is request builder for MDMWindowsInformationProtectionPolicy
+type MDMWindowsInformationProtectionPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MDMWindowsInformationProtectionPolicyRequest
+func (b *MDMWindowsInformationProtectionPolicyRequestBuilder) Request() *MDMWindowsInformationProtectionPolicyRequest {
+ return &MDMWindowsInformationProtectionPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MDMWindowsInformationProtectionPolicyRequest is request for MDMWindowsInformationProtectionPolicy
+type MDMWindowsInformationProtectionPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for MDMWindowsInformationProtectionPolicy
+func (r *MDMWindowsInformationProtectionPolicyRequest) Get(ctx context.Context) (resObj *MDMWindowsInformationProtectionPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MDMWindowsInformationProtectionPolicy
+func (r *MDMWindowsInformationProtectionPolicyRequest) Update(ctx context.Context, reqObj *MDMWindowsInformationProtectionPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MDMWindowsInformationProtectionPolicy
+func (r *MDMWindowsInformationProtectionPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementMDMWindowsInformationProtectionPoliciesCollectionRequestBuilder) HasPayloadLinks(reqObj *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestParameter) *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder {
+ bb := &MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequestBuilder) Request() *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest {
+ return &MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *MDMWindowsInformationProtectionPolicyCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMac.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMac.go
new file mode 100644
index 00000000..733a457b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMac.go
@@ -0,0 +1,401 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MacManagedAppProtectionRequestBuilder is request builder for MacManagedAppProtection
+type MacManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacManagedAppProtectionRequest
+func (b *MacManagedAppProtectionRequestBuilder) Request() *MacManagedAppProtectionRequest {
+ return &MacManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacManagedAppProtectionRequest is request for MacManagedAppProtection
+type MacManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for MacManagedAppProtection
+func (r *MacManagedAppProtectionRequest) Get(ctx context.Context) (resObj *MacManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacManagedAppProtection
+func (r *MacManagedAppProtectionRequest) Update(ctx context.Context, reqObj *MacManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacManagedAppProtection
+func (r *MacManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOSCertificateProfileBaseRequestBuilder is request builder for MacOSCertificateProfileBase
+type MacOSCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSCertificateProfileBaseRequest
+func (b *MacOSCertificateProfileBaseRequestBuilder) Request() *MacOSCertificateProfileBaseRequest {
+ return &MacOSCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSCertificateProfileBaseRequest is request for MacOSCertificateProfileBase
+type MacOSCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSCertificateProfileBase
+func (r *MacOSCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *MacOSCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSCertificateProfileBase
+func (r *MacOSCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *MacOSCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSCertificateProfileBase
+func (r *MacOSCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOSDeviceFeaturesConfigurationRequestBuilder is request builder for MacOSDeviceFeaturesConfiguration
+type MacOSDeviceFeaturesConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSDeviceFeaturesConfigurationRequest
+func (b *MacOSDeviceFeaturesConfigurationRequestBuilder) Request() *MacOSDeviceFeaturesConfigurationRequest {
+ return &MacOSDeviceFeaturesConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSDeviceFeaturesConfigurationRequest is request for MacOSDeviceFeaturesConfiguration
+type MacOSDeviceFeaturesConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSDeviceFeaturesConfiguration
+func (r *MacOSDeviceFeaturesConfigurationRequest) Get(ctx context.Context) (resObj *MacOSDeviceFeaturesConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSDeviceFeaturesConfiguration
+func (r *MacOSDeviceFeaturesConfigurationRequest) Update(ctx context.Context, reqObj *MacOSDeviceFeaturesConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSDeviceFeaturesConfiguration
+func (r *MacOSDeviceFeaturesConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOSEnterpriseWiFiConfigurationRequestBuilder is request builder for MacOSEnterpriseWiFiConfiguration
+type MacOSEnterpriseWiFiConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSEnterpriseWiFiConfigurationRequest
+func (b *MacOSEnterpriseWiFiConfigurationRequestBuilder) Request() *MacOSEnterpriseWiFiConfigurationRequest {
+ return &MacOSEnterpriseWiFiConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSEnterpriseWiFiConfigurationRequest is request for MacOSEnterpriseWiFiConfiguration
+type MacOSEnterpriseWiFiConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSEnterpriseWiFiConfiguration
+func (r *MacOSEnterpriseWiFiConfigurationRequest) Get(ctx context.Context) (resObj *MacOSEnterpriseWiFiConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSEnterpriseWiFiConfiguration
+func (r *MacOSEnterpriseWiFiConfigurationRequest) Update(ctx context.Context, reqObj *MacOSEnterpriseWiFiConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSEnterpriseWiFiConfiguration
+func (r *MacOSEnterpriseWiFiConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOSImportedPFXCertificateProfileRequestBuilder is request builder for MacOSImportedPFXCertificateProfile
+type MacOSImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSImportedPFXCertificateProfileRequest
+func (b *MacOSImportedPFXCertificateProfileRequestBuilder) Request() *MacOSImportedPFXCertificateProfileRequest {
+ return &MacOSImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSImportedPFXCertificateProfileRequest is request for MacOSImportedPFXCertificateProfile
+type MacOSImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSImportedPFXCertificateProfile
+func (r *MacOSImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *MacOSImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSImportedPFXCertificateProfile
+func (r *MacOSImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *MacOSImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSImportedPFXCertificateProfile
+func (r *MacOSImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOSPkcsCertificateProfileRequestBuilder is request builder for MacOSPkcsCertificateProfile
+type MacOSPkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSPkcsCertificateProfileRequest
+func (b *MacOSPkcsCertificateProfileRequestBuilder) Request() *MacOSPkcsCertificateProfileRequest {
+ return &MacOSPkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSPkcsCertificateProfileRequest is request for MacOSPkcsCertificateProfile
+type MacOSPkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSPkcsCertificateProfile
+func (r *MacOSPkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *MacOSPkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSPkcsCertificateProfile
+func (r *MacOSPkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *MacOSPkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSPkcsCertificateProfile
+func (r *MacOSPkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOSScepCertificateProfileRequestBuilder is request builder for MacOSScepCertificateProfile
+type MacOSScepCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSScepCertificateProfileRequest
+func (b *MacOSScepCertificateProfileRequestBuilder) Request() *MacOSScepCertificateProfileRequest {
+ return &MacOSScepCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSScepCertificateProfileRequest is request for MacOSScepCertificateProfile
+type MacOSScepCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSScepCertificateProfile
+func (r *MacOSScepCertificateProfileRequest) Get(ctx context.Context) (resObj *MacOSScepCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSScepCertificateProfile
+func (r *MacOSScepCertificateProfileRequest) Update(ctx context.Context, reqObj *MacOSScepCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSScepCertificateProfile
+func (r *MacOSScepCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOSTrustedRootCertificateRequestBuilder is request builder for MacOSTrustedRootCertificate
+type MacOSTrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSTrustedRootCertificateRequest
+func (b *MacOSTrustedRootCertificateRequestBuilder) Request() *MacOSTrustedRootCertificateRequest {
+ return &MacOSTrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSTrustedRootCertificateRequest is request for MacOSTrustedRootCertificate
+type MacOSTrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSTrustedRootCertificate
+func (r *MacOSTrustedRootCertificateRequest) Get(ctx context.Context) (resObj *MacOSTrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSTrustedRootCertificate
+func (r *MacOSTrustedRootCertificateRequest) Update(ctx context.Context, reqObj *MacOSTrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSTrustedRootCertificate
+func (r *MacOSTrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOSVpnConfigurationRequestBuilder is request builder for MacOSVpnConfiguration
+type MacOSVpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSVpnConfigurationRequest
+func (b *MacOSVpnConfigurationRequestBuilder) Request() *MacOSVpnConfigurationRequest {
+ return &MacOSVpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSVpnConfigurationRequest is request for MacOSVpnConfiguration
+type MacOSVpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSVpnConfiguration
+func (r *MacOSVpnConfigurationRequest) Get(ctx context.Context) (resObj *MacOSVpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSVpnConfiguration
+func (r *MacOSVpnConfigurationRequest) Update(ctx context.Context, reqObj *MacOSVpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSVpnConfiguration
+func (r *MacOSVpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOSWiredNetworkConfigurationRequestBuilder is request builder for MacOSWiredNetworkConfiguration
+type MacOSWiredNetworkConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOSWiredNetworkConfigurationRequest
+func (b *MacOSWiredNetworkConfigurationRequestBuilder) Request() *MacOSWiredNetworkConfigurationRequest {
+ return &MacOSWiredNetworkConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOSWiredNetworkConfigurationRequest is request for MacOSWiredNetworkConfiguration
+type MacOSWiredNetworkConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOSWiredNetworkConfiguration
+func (r *MacOSWiredNetworkConfigurationRequest) Get(ctx context.Context) (resObj *MacOSWiredNetworkConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOSWiredNetworkConfiguration
+func (r *MacOSWiredNetworkConfigurationRequest) Update(ctx context.Context, reqObj *MacOSWiredNetworkConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOSWiredNetworkConfiguration
+func (r *MacOSWiredNetworkConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOsVPPAppRequestBuilder is request builder for MacOsVPPApp
+type MacOsVPPAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOsVPPAppRequest
+func (b *MacOsVPPAppRequestBuilder) Request() *MacOsVPPAppRequest {
+ return &MacOsVPPAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOsVPPAppRequest is request for MacOsVPPApp
+type MacOsVPPAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOsVPPApp
+func (r *MacOsVPPAppRequest) Get(ctx context.Context) (resObj *MacOsVPPApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOsVPPApp
+func (r *MacOsVPPAppRequest) Update(ctx context.Context, reqObj *MacOsVPPApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOsVPPApp
+func (r *MacOsVPPAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MacOsVPPAppAssignedLicenseRequestBuilder is request builder for MacOsVPPAppAssignedLicense
+type MacOsVPPAppAssignedLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MacOsVPPAppAssignedLicenseRequest
+func (b *MacOsVPPAppAssignedLicenseRequestBuilder) Request() *MacOsVPPAppAssignedLicenseRequest {
+ return &MacOsVPPAppAssignedLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MacOsVPPAppAssignedLicenseRequest is request for MacOsVPPAppAssignedLicense
+type MacOsVPPAppAssignedLicenseRequest struct{ BaseRequest }
+
+// Get performs GET request for MacOsVPPAppAssignedLicense
+func (r *MacOsVPPAppAssignedLicenseRequest) Get(ctx context.Context) (resObj *MacOsVPPAppAssignedLicense, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MacOsVPPAppAssignedLicense
+func (r *MacOsVPPAppAssignedLicenseRequest) Update(ctx context.Context, reqObj *MacOsVPPAppAssignedLicense) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MacOsVPPAppAssignedLicense
+func (r *MacOsVPPAppAssignedLicenseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMail.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMail.go
new file mode 100644
index 00000000..aa743184
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMail.go
@@ -0,0 +1,92 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MailFolderRequestBuilder is request builder for MailFolder
+type MailFolderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MailFolderRequest
+func (b *MailFolderRequestBuilder) Request() *MailFolderRequest {
+ return &MailFolderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MailFolderRequest is request for MailFolder
+type MailFolderRequest struct{ BaseRequest }
+
+// Get performs GET request for MailFolder
+func (r *MailFolderRequest) Get(ctx context.Context) (resObj *MailFolder, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MailFolder
+func (r *MailFolderRequest) Update(ctx context.Context, reqObj *MailFolder) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MailFolder
+func (r *MailFolderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type MailFolderCopyRequestBuilder struct{ BaseRequestBuilder }
+
+// Copy action undocumented
+func (b *MailFolderRequestBuilder) Copy(reqObj *MailFolderCopyRequestParameter) *MailFolderCopyRequestBuilder {
+ bb := &MailFolderCopyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copy"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MailFolderCopyRequest struct{ BaseRequest }
+
+//
+func (b *MailFolderCopyRequestBuilder) Request() *MailFolderCopyRequest {
+ return &MailFolderCopyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MailFolderCopyRequest) Post(ctx context.Context) (resObj *MailFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MailFolderMoveRequestBuilder struct{ BaseRequestBuilder }
+
+// Move action undocumented
+func (b *MailFolderRequestBuilder) Move(reqObj *MailFolderMoveRequestParameter) *MailFolderMoveRequestBuilder {
+ bb := &MailFolderMoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/move"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MailFolderMoveRequest struct{ BaseRequest }
+
+//
+func (b *MailFolderMoveRequestBuilder) Request() *MailFolderMoveRequest {
+ return &MailFolderMoveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MailFolderMoveRequest) Post(ctx context.Context) (resObj *MailFolder, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMalware.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMalware.go
new file mode 100644
index 00000000..52e0aa9c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMalware.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MalwareRiskEventRequestBuilder is request builder for MalwareRiskEvent
+type MalwareRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MalwareRiskEventRequest
+func (b *MalwareRiskEventRequestBuilder) Request() *MalwareRiskEventRequest {
+ return &MalwareRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MalwareRiskEventRequest is request for MalwareRiskEvent
+type MalwareRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for MalwareRiskEvent
+func (r *MalwareRiskEventRequest) Get(ctx context.Context) (resObj *MalwareRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MalwareRiskEvent
+func (r *MalwareRiskEventRequest) Update(ctx context.Context, reqObj *MalwareRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MalwareRiskEvent
+func (r *MalwareRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestManaged.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestManaged.go
new file mode 100644
index 00000000..57a7bf8c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestManaged.go
@@ -0,0 +1,1613 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagedAllDeviceCertificateStateRequestBuilder is request builder for ManagedAllDeviceCertificateState
+type ManagedAllDeviceCertificateStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAllDeviceCertificateStateRequest
+func (b *ManagedAllDeviceCertificateStateRequestBuilder) Request() *ManagedAllDeviceCertificateStateRequest {
+ return &ManagedAllDeviceCertificateStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAllDeviceCertificateStateRequest is request for ManagedAllDeviceCertificateState
+type ManagedAllDeviceCertificateStateRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAllDeviceCertificateState
+func (r *ManagedAllDeviceCertificateStateRequest) Get(ctx context.Context) (resObj *ManagedAllDeviceCertificateState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAllDeviceCertificateState
+func (r *ManagedAllDeviceCertificateStateRequest) Update(ctx context.Context, reqObj *ManagedAllDeviceCertificateState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAllDeviceCertificateState
+func (r *ManagedAllDeviceCertificateStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedAppOperationRequestBuilder is request builder for ManagedAppOperation
+type ManagedAppOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppOperationRequest
+func (b *ManagedAppOperationRequestBuilder) Request() *ManagedAppOperationRequest {
+ return &ManagedAppOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppOperationRequest is request for ManagedAppOperation
+type ManagedAppOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppOperation
+func (r *ManagedAppOperationRequest) Get(ctx context.Context) (resObj *ManagedAppOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppOperation
+func (r *ManagedAppOperationRequest) Update(ctx context.Context, reqObj *ManagedAppOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppOperation
+func (r *ManagedAppOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedAppPolicyRequestBuilder is request builder for ManagedAppPolicy
+type ManagedAppPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppPolicyRequest
+func (b *ManagedAppPolicyRequestBuilder) Request() *ManagedAppPolicyRequest {
+ return &ManagedAppPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppPolicyRequest is request for ManagedAppPolicy
+type ManagedAppPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppPolicy
+func (r *ManagedAppPolicyRequest) Get(ctx context.Context) (resObj *ManagedAppPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppPolicy
+func (r *ManagedAppPolicyRequest) Update(ctx context.Context, reqObj *ManagedAppPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppPolicy
+func (r *ManagedAppPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedAppPolicyDeploymentSummaryRequestBuilder is request builder for ManagedAppPolicyDeploymentSummary
+type ManagedAppPolicyDeploymentSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppPolicyDeploymentSummaryRequest
+func (b *ManagedAppPolicyDeploymentSummaryRequestBuilder) Request() *ManagedAppPolicyDeploymentSummaryRequest {
+ return &ManagedAppPolicyDeploymentSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppPolicyDeploymentSummaryRequest is request for ManagedAppPolicyDeploymentSummary
+type ManagedAppPolicyDeploymentSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppPolicyDeploymentSummary
+func (r *ManagedAppPolicyDeploymentSummaryRequest) Get(ctx context.Context) (resObj *ManagedAppPolicyDeploymentSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppPolicyDeploymentSummary
+func (r *ManagedAppPolicyDeploymentSummaryRequest) Update(ctx context.Context, reqObj *ManagedAppPolicyDeploymentSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppPolicyDeploymentSummary
+func (r *ManagedAppPolicyDeploymentSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedAppProtectionRequestBuilder is request builder for ManagedAppProtection
+type ManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppProtectionRequest
+func (b *ManagedAppProtectionRequestBuilder) Request() *ManagedAppProtectionRequest {
+ return &ManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppProtectionRequest is request for ManagedAppProtection
+type ManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppProtection
+func (r *ManagedAppProtectionRequest) Get(ctx context.Context) (resObj *ManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppProtection
+func (r *ManagedAppProtectionRequest) Update(ctx context.Context, reqObj *ManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppProtection
+func (r *ManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedAppRegistrationRequestBuilder is request builder for ManagedAppRegistration
+type ManagedAppRegistrationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppRegistrationRequest
+func (b *ManagedAppRegistrationRequestBuilder) Request() *ManagedAppRegistrationRequest {
+ return &ManagedAppRegistrationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppRegistrationRequest is request for ManagedAppRegistration
+type ManagedAppRegistrationRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppRegistration
+func (r *ManagedAppRegistrationRequest) Get(ctx context.Context) (resObj *ManagedAppRegistration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppRegistration
+func (r *ManagedAppRegistrationRequest) Update(ctx context.Context, reqObj *ManagedAppRegistration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppRegistration
+func (r *ManagedAppRegistrationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedAppStatusRequestBuilder is request builder for ManagedAppStatus
+type ManagedAppStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedAppStatusRequest
+func (b *ManagedAppStatusRequestBuilder) Request() *ManagedAppStatusRequest {
+ return &ManagedAppStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedAppStatusRequest is request for ManagedAppStatus
+type ManagedAppStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedAppStatus
+func (r *ManagedAppStatusRequest) Get(ctx context.Context) (resObj *ManagedAppStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedAppStatus
+func (r *ManagedAppStatusRequest) Update(ctx context.Context, reqObj *ManagedAppStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedAppStatus
+func (r *ManagedAppStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceRequestBuilder is request builder for ManagedDevice
+type ManagedDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceRequest
+func (b *ManagedDeviceRequestBuilder) Request() *ManagedDeviceRequest {
+ return &ManagedDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceRequest is request for ManagedDevice
+type ManagedDeviceRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDevice
+func (r *ManagedDeviceRequest) Get(ctx context.Context) (resObj *ManagedDevice, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDevice
+func (r *ManagedDeviceRequest) Update(ctx context.Context, reqObj *ManagedDevice) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDevice
+func (r *ManagedDeviceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceCertificateStateRequestBuilder is request builder for ManagedDeviceCertificateState
+type ManagedDeviceCertificateStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceCertificateStateRequest
+func (b *ManagedDeviceCertificateStateRequestBuilder) Request() *ManagedDeviceCertificateStateRequest {
+ return &ManagedDeviceCertificateStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceCertificateStateRequest is request for ManagedDeviceCertificateState
+type ManagedDeviceCertificateStateRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceCertificateState
+func (r *ManagedDeviceCertificateStateRequest) Get(ctx context.Context) (resObj *ManagedDeviceCertificateState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceCertificateState
+func (r *ManagedDeviceCertificateStateRequest) Update(ctx context.Context, reqObj *ManagedDeviceCertificateState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceCertificateState
+func (r *ManagedDeviceCertificateStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceEncryptionStateRequestBuilder is request builder for ManagedDeviceEncryptionState
+type ManagedDeviceEncryptionStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceEncryptionStateRequest
+func (b *ManagedDeviceEncryptionStateRequestBuilder) Request() *ManagedDeviceEncryptionStateRequest {
+ return &ManagedDeviceEncryptionStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceEncryptionStateRequest is request for ManagedDeviceEncryptionState
+type ManagedDeviceEncryptionStateRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceEncryptionState
+func (r *ManagedDeviceEncryptionStateRequest) Get(ctx context.Context) (resObj *ManagedDeviceEncryptionState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceEncryptionState
+func (r *ManagedDeviceEncryptionStateRequest) Update(ctx context.Context, reqObj *ManagedDeviceEncryptionState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceEncryptionState
+func (r *ManagedDeviceEncryptionStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceMobileAppConfigurationRequestBuilder is request builder for ManagedDeviceMobileAppConfiguration
+type ManagedDeviceMobileAppConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationRequest
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationRequest {
+ return &ManagedDeviceMobileAppConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationRequest is request for ManagedDeviceMobileAppConfiguration
+type ManagedDeviceMobileAppConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfiguration
+func (r *ManagedDeviceMobileAppConfigurationRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfiguration
+func (r *ManagedDeviceMobileAppConfigurationRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfiguration
+func (r *ManagedDeviceMobileAppConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationAssignment
+type ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationAssignmentRequest
+func (b *ManagedDeviceMobileAppConfigurationAssignmentRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationAssignmentRequest {
+ return &ManagedDeviceMobileAppConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationAssignmentRequest is request for ManagedDeviceMobileAppConfigurationAssignment
+type ManagedDeviceMobileAppConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationAssignment
+func (r *ManagedDeviceMobileAppConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationAssignment
+func (r *ManagedDeviceMobileAppConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationAssignment
+func (r *ManagedDeviceMobileAppConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceStatus
+type ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationDeviceStatusRequest
+func (b *ManagedDeviceMobileAppConfigurationDeviceStatusRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationDeviceStatusRequest {
+ return &ManagedDeviceMobileAppConfigurationDeviceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceStatusRequest is request for ManagedDeviceMobileAppConfigurationDeviceStatus
+type ManagedDeviceMobileAppConfigurationDeviceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceStatus
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationDeviceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationDeviceStatus
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationDeviceStatus
+func (r *ManagedDeviceMobileAppConfigurationDeviceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationDeviceSummary
+type ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationDeviceSummaryRequest
+func (b *ManagedDeviceMobileAppConfigurationDeviceSummaryRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest {
+ return &ManagedDeviceMobileAppConfigurationDeviceSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationDeviceSummaryRequest is request for ManagedDeviceMobileAppConfigurationDeviceSummary
+type ManagedDeviceMobileAppConfigurationDeviceSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationDeviceSummary
+func (r *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationDeviceSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationDeviceSummary
+func (r *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationDeviceSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationDeviceSummary
+func (r *ManagedDeviceMobileAppConfigurationDeviceSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceMobileAppConfigurationStateRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationState
+type ManagedDeviceMobileAppConfigurationStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationStateRequest
+func (b *ManagedDeviceMobileAppConfigurationStateRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationStateRequest {
+ return &ManagedDeviceMobileAppConfigurationStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationStateRequest is request for ManagedDeviceMobileAppConfigurationState
+type ManagedDeviceMobileAppConfigurationStateRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationState
+func (r *ManagedDeviceMobileAppConfigurationStateRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationState
+func (r *ManagedDeviceMobileAppConfigurationStateRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationState
+func (r *ManagedDeviceMobileAppConfigurationStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserStatus
+type ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationUserStatusRequest
+func (b *ManagedDeviceMobileAppConfigurationUserStatusRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationUserStatusRequest {
+ return &ManagedDeviceMobileAppConfigurationUserStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationUserStatusRequest is request for ManagedDeviceMobileAppConfigurationUserStatus
+type ManagedDeviceMobileAppConfigurationUserStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserStatus
+func (r *ManagedDeviceMobileAppConfigurationUserStatusRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationUserStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationUserStatus
+func (r *ManagedDeviceMobileAppConfigurationUserStatusRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationUserStatus
+func (r *ManagedDeviceMobileAppConfigurationUserStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder is request builder for ManagedDeviceMobileAppConfigurationUserSummary
+type ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceMobileAppConfigurationUserSummaryRequest
+func (b *ManagedDeviceMobileAppConfigurationUserSummaryRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationUserSummaryRequest {
+ return &ManagedDeviceMobileAppConfigurationUserSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceMobileAppConfigurationUserSummaryRequest is request for ManagedDeviceMobileAppConfigurationUserSummary
+type ManagedDeviceMobileAppConfigurationUserSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceMobileAppConfigurationUserSummary
+func (r *ManagedDeviceMobileAppConfigurationUserSummaryRequest) Get(ctx context.Context) (resObj *ManagedDeviceMobileAppConfigurationUserSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceMobileAppConfigurationUserSummary
+func (r *ManagedDeviceMobileAppConfigurationUserSummaryRequest) Update(ctx context.Context, reqObj *ManagedDeviceMobileAppConfigurationUserSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceMobileAppConfigurationUserSummary
+func (r *ManagedDeviceMobileAppConfigurationUserSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedDeviceOverviewRequestBuilder is request builder for ManagedDeviceOverview
+type ManagedDeviceOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedDeviceOverviewRequest
+func (b *ManagedDeviceOverviewRequestBuilder) Request() *ManagedDeviceOverviewRequest {
+ return &ManagedDeviceOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedDeviceOverviewRequest is request for ManagedDeviceOverview
+type ManagedDeviceOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedDeviceOverview
+func (r *ManagedDeviceOverviewRequest) Get(ctx context.Context) (resObj *ManagedDeviceOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedDeviceOverview
+func (r *ManagedDeviceOverviewRequest) Update(ctx context.Context, reqObj *ManagedDeviceOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedDeviceOverview
+func (r *ManagedDeviceOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedEBookRequestBuilder is request builder for ManagedEBook
+type ManagedEBookRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedEBookRequest
+func (b *ManagedEBookRequestBuilder) Request() *ManagedEBookRequest {
+ return &ManagedEBookRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedEBookRequest is request for ManagedEBook
+type ManagedEBookRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedEBook
+func (r *ManagedEBookRequest) Get(ctx context.Context) (resObj *ManagedEBook, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedEBook
+func (r *ManagedEBookRequest) Update(ctx context.Context, reqObj *ManagedEBook) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedEBook
+func (r *ManagedEBookRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedEBookAssignmentRequestBuilder is request builder for ManagedEBookAssignment
+type ManagedEBookAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedEBookAssignmentRequest
+func (b *ManagedEBookAssignmentRequestBuilder) Request() *ManagedEBookAssignmentRequest {
+ return &ManagedEBookAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedEBookAssignmentRequest is request for ManagedEBookAssignment
+type ManagedEBookAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedEBookAssignment
+func (r *ManagedEBookAssignmentRequest) Get(ctx context.Context) (resObj *ManagedEBookAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedEBookAssignment
+func (r *ManagedEBookAssignmentRequest) Update(ctx context.Context, reqObj *ManagedEBookAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedEBookAssignment
+func (r *ManagedEBookAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedEBookCategoryRequestBuilder is request builder for ManagedEBookCategory
+type ManagedEBookCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedEBookCategoryRequest
+func (b *ManagedEBookCategoryRequestBuilder) Request() *ManagedEBookCategoryRequest {
+ return &ManagedEBookCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedEBookCategoryRequest is request for ManagedEBookCategory
+type ManagedEBookCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedEBookCategory
+func (r *ManagedEBookCategoryRequest) Get(ctx context.Context) (resObj *ManagedEBookCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedEBookCategory
+func (r *ManagedEBookCategoryRequest) Update(ctx context.Context, reqObj *ManagedEBookCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedEBookCategory
+func (r *ManagedEBookCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedMobileAppRequestBuilder is request builder for ManagedMobileApp
+type ManagedMobileAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedMobileAppRequest
+func (b *ManagedMobileAppRequestBuilder) Request() *ManagedMobileAppRequest {
+ return &ManagedMobileAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedMobileAppRequest is request for ManagedMobileApp
+type ManagedMobileAppRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedMobileApp
+func (r *ManagedMobileAppRequest) Get(ctx context.Context) (resObj *ManagedMobileApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedMobileApp
+func (r *ManagedMobileAppRequest) Update(ctx context.Context, reqObj *ManagedMobileApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedMobileApp
+func (r *ManagedMobileAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagedMobileLobAppRequestBuilder is request builder for ManagedMobileLobApp
+type ManagedMobileLobAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagedMobileLobAppRequest
+func (b *ManagedMobileLobAppRequestBuilder) Request() *ManagedMobileLobAppRequest {
+ return &ManagedMobileLobAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagedMobileLobAppRequest is request for ManagedMobileLobApp
+type ManagedMobileLobAppRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagedMobileLobApp
+func (r *ManagedMobileLobAppRequest) Get(ctx context.Context) (resObj *ManagedMobileLobApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagedMobileLobApp
+func (r *ManagedMobileLobAppRequest) Update(ctx context.Context, reqObj *ManagedMobileLobApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagedMobileLobApp
+func (r *ManagedMobileLobAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type ManagedDeviceCollectionExecuteActionRequestBuilder struct{ BaseRequestBuilder }
+
+// ExecuteAction action undocumented
+func (b *DetectedAppManagedDevicesCollectionRequestBuilder) ExecuteAction(reqObj *ManagedDeviceCollectionExecuteActionRequestParameter) *ManagedDeviceCollectionExecuteActionRequestBuilder {
+ bb := &ManagedDeviceCollectionExecuteActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/executeAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ExecuteAction action undocumented
+func (b *DeviceManagementManagedDevicesCollectionRequestBuilder) ExecuteAction(reqObj *ManagedDeviceCollectionExecuteActionRequestParameter) *ManagedDeviceCollectionExecuteActionRequestBuilder {
+ bb := &ManagedDeviceCollectionExecuteActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/executeAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// ExecuteAction action undocumented
+func (b *UserManagedDevicesCollectionRequestBuilder) ExecuteAction(reqObj *ManagedDeviceCollectionExecuteActionRequestParameter) *ManagedDeviceCollectionExecuteActionRequestBuilder {
+ bb := &ManagedDeviceCollectionExecuteActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/executeAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceCollectionExecuteActionRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceCollectionExecuteActionRequestBuilder) Request() *ManagedDeviceCollectionExecuteActionRequest {
+ return &ManagedDeviceCollectionExecuteActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceCollectionExecuteActionRequest) Post(ctx context.Context) (resObj *BulkManagedDeviceActionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ManagedAppPolicyTargetAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// TargetApps action undocumented
+func (b *ManagedAppPolicyRequestBuilder) TargetApps(reqObj *ManagedAppPolicyTargetAppsRequestParameter) *ManagedAppPolicyTargetAppsRequestBuilder {
+ bb := &ManagedAppPolicyTargetAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/targetApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedAppPolicyTargetAppsRequest struct{ BaseRequest }
+
+//
+func (b *ManagedAppPolicyTargetAppsRequestBuilder) Request() *ManagedAppPolicyTargetAppsRequest {
+ return &ManagedAppPolicyTargetAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedAppPolicyTargetAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedAppProtectionTargetAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// TargetApps action undocumented
+func (b *ManagedAppProtectionRequestBuilder) TargetApps(reqObj *ManagedAppProtectionTargetAppsRequestParameter) *ManagedAppProtectionTargetAppsRequestBuilder {
+ bb := &ManagedAppProtectionTargetAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/targetApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedAppProtectionTargetAppsRequest struct{ BaseRequest }
+
+//
+func (b *ManagedAppProtectionTargetAppsRequestBuilder) Request() *ManagedAppProtectionTargetAppsRequest {
+ return &ManagedAppProtectionTargetAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedAppProtectionTargetAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceOverrideComplianceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// OverrideComplianceState action undocumented
+func (b *ManagedDeviceRequestBuilder) OverrideComplianceState(reqObj *ManagedDeviceOverrideComplianceStateRequestParameter) *ManagedDeviceOverrideComplianceStateRequestBuilder {
+ bb := &ManagedDeviceOverrideComplianceStateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/overrideComplianceState"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceOverrideComplianceStateRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceOverrideComplianceStateRequestBuilder) Request() *ManagedDeviceOverrideComplianceStateRequest {
+ return &ManagedDeviceOverrideComplianceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceOverrideComplianceStateRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceEnableLostModeRequestBuilder struct{ BaseRequestBuilder }
+
+// EnableLostMode action undocumented
+func (b *ManagedDeviceRequestBuilder) EnableLostMode(reqObj *ManagedDeviceEnableLostModeRequestParameter) *ManagedDeviceEnableLostModeRequestBuilder {
+ bb := &ManagedDeviceEnableLostModeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/enableLostMode"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceEnableLostModeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceEnableLostModeRequestBuilder) Request() *ManagedDeviceEnableLostModeRequest {
+ return &ManagedDeviceEnableLostModeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceEnableLostModeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDevicePlayLostModeSoundRequestBuilder struct{ BaseRequestBuilder }
+
+// PlayLostModeSound action undocumented
+func (b *ManagedDeviceRequestBuilder) PlayLostModeSound(reqObj *ManagedDevicePlayLostModeSoundRequestParameter) *ManagedDevicePlayLostModeSoundRequestBuilder {
+ bb := &ManagedDevicePlayLostModeSoundRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/playLostModeSound"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDevicePlayLostModeSoundRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDevicePlayLostModeSoundRequestBuilder) Request() *ManagedDevicePlayLostModeSoundRequest {
+ return &ManagedDevicePlayLostModeSoundRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDevicePlayLostModeSoundRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceSetDeviceNameRequestBuilder struct{ BaseRequestBuilder }
+
+// SetDeviceName action undocumented
+func (b *ManagedDeviceRequestBuilder) SetDeviceName(reqObj *ManagedDeviceSetDeviceNameRequestParameter) *ManagedDeviceSetDeviceNameRequestBuilder {
+ bb := &ManagedDeviceSetDeviceNameRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setDeviceName"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceSetDeviceNameRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceSetDeviceNameRequestBuilder) Request() *ManagedDeviceSetDeviceNameRequest {
+ return &ManagedDeviceSetDeviceNameRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceSetDeviceNameRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRotateFileVaultKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// RotateFileVaultKey action undocumented
+func (b *ManagedDeviceRequestBuilder) RotateFileVaultKey(reqObj *ManagedDeviceRotateFileVaultKeyRequestParameter) *ManagedDeviceRotateFileVaultKeyRequestBuilder {
+ bb := &ManagedDeviceRotateFileVaultKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rotateFileVaultKey"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRotateFileVaultKeyRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRotateFileVaultKeyRequestBuilder) Request() *ManagedDeviceRotateFileVaultKeyRequest {
+ return &ManagedDeviceRotateFileVaultKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRotateFileVaultKeyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRetireRequestBuilder struct{ BaseRequestBuilder }
+
+// Retire action undocumented
+func (b *ManagedDeviceRequestBuilder) Retire(reqObj *ManagedDeviceRetireRequestParameter) *ManagedDeviceRetireRequestBuilder {
+ bb := &ManagedDeviceRetireRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/retire"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRetireRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRetireRequestBuilder) Request() *ManagedDeviceRetireRequest {
+ return &ManagedDeviceRetireRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRetireRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceWipeRequestBuilder struct{ BaseRequestBuilder }
+
+// Wipe action undocumented
+func (b *ManagedDeviceRequestBuilder) Wipe(reqObj *ManagedDeviceWipeRequestParameter) *ManagedDeviceWipeRequestBuilder {
+ bb := &ManagedDeviceWipeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/wipe"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceWipeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceWipeRequestBuilder) Request() *ManagedDeviceWipeRequest {
+ return &ManagedDeviceWipeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceWipeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceResetPasscodeRequestBuilder struct{ BaseRequestBuilder }
+
+// ResetPasscode action undocumented
+func (b *ManagedDeviceRequestBuilder) ResetPasscode(reqObj *ManagedDeviceResetPasscodeRequestParameter) *ManagedDeviceResetPasscodeRequestBuilder {
+ bb := &ManagedDeviceResetPasscodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/resetPasscode"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceResetPasscodeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceResetPasscodeRequestBuilder) Request() *ManagedDeviceResetPasscodeRequest {
+ return &ManagedDeviceResetPasscodeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceResetPasscodeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRemoteLockRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoteLock action undocumented
+func (b *ManagedDeviceRequestBuilder) RemoteLock(reqObj *ManagedDeviceRemoteLockRequestParameter) *ManagedDeviceRemoteLockRequestBuilder {
+ bb := &ManagedDeviceRemoteLockRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/remoteLock"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRemoteLockRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRemoteLockRequestBuilder) Request() *ManagedDeviceRemoteLockRequest {
+ return &ManagedDeviceRemoteLockRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRemoteLockRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRequestRemoteAssistanceRequestBuilder struct{ BaseRequestBuilder }
+
+// RequestRemoteAssistance action undocumented
+func (b *ManagedDeviceRequestBuilder) RequestRemoteAssistance(reqObj *ManagedDeviceRequestRemoteAssistanceRequestParameter) *ManagedDeviceRequestRemoteAssistanceRequestBuilder {
+ bb := &ManagedDeviceRequestRemoteAssistanceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/requestRemoteAssistance"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRequestRemoteAssistanceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRequestRemoteAssistanceRequestBuilder) Request() *ManagedDeviceRequestRemoteAssistanceRequest {
+ return &ManagedDeviceRequestRemoteAssistanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRequestRemoteAssistanceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceDisableLostModeRequestBuilder struct{ BaseRequestBuilder }
+
+// DisableLostMode action undocumented
+func (b *ManagedDeviceRequestBuilder) DisableLostMode(reqObj *ManagedDeviceDisableLostModeRequestParameter) *ManagedDeviceDisableLostModeRequestBuilder {
+ bb := &ManagedDeviceDisableLostModeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/disableLostMode"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceDisableLostModeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceDisableLostModeRequestBuilder) Request() *ManagedDeviceDisableLostModeRequest {
+ return &ManagedDeviceDisableLostModeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceDisableLostModeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceLocateDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// LocateDevice action undocumented
+func (b *ManagedDeviceRequestBuilder) LocateDevice(reqObj *ManagedDeviceLocateDeviceRequestParameter) *ManagedDeviceLocateDeviceRequestBuilder {
+ bb := &ManagedDeviceLocateDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/locateDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceLocateDeviceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceLocateDeviceRequestBuilder) Request() *ManagedDeviceLocateDeviceRequest {
+ return &ManagedDeviceLocateDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceLocateDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceBypassActivationLockRequestBuilder struct{ BaseRequestBuilder }
+
+// BypassActivationLock action undocumented
+func (b *ManagedDeviceRequestBuilder) BypassActivationLock(reqObj *ManagedDeviceBypassActivationLockRequestParameter) *ManagedDeviceBypassActivationLockRequestBuilder {
+ bb := &ManagedDeviceBypassActivationLockRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bypassActivationLock"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceBypassActivationLockRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceBypassActivationLockRequestBuilder) Request() *ManagedDeviceBypassActivationLockRequest {
+ return &ManagedDeviceBypassActivationLockRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceBypassActivationLockRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRebootNowRequestBuilder struct{ BaseRequestBuilder }
+
+// RebootNow action undocumented
+func (b *ManagedDeviceRequestBuilder) RebootNow(reqObj *ManagedDeviceRebootNowRequestParameter) *ManagedDeviceRebootNowRequestBuilder {
+ bb := &ManagedDeviceRebootNowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rebootNow"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRebootNowRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRebootNowRequestBuilder) Request() *ManagedDeviceRebootNowRequest {
+ return &ManagedDeviceRebootNowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRebootNowRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceShutDownRequestBuilder struct{ BaseRequestBuilder }
+
+// ShutDown action undocumented
+func (b *ManagedDeviceRequestBuilder) ShutDown(reqObj *ManagedDeviceShutDownRequestParameter) *ManagedDeviceShutDownRequestBuilder {
+ bb := &ManagedDeviceShutDownRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/shutDown"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceShutDownRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceShutDownRequestBuilder) Request() *ManagedDeviceShutDownRequest {
+ return &ManagedDeviceShutDownRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceShutDownRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRecoverPasscodeRequestBuilder struct{ BaseRequestBuilder }
+
+// RecoverPasscode action undocumented
+func (b *ManagedDeviceRequestBuilder) RecoverPasscode(reqObj *ManagedDeviceRecoverPasscodeRequestParameter) *ManagedDeviceRecoverPasscodeRequestBuilder {
+ bb := &ManagedDeviceRecoverPasscodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/recoverPasscode"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRecoverPasscodeRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRecoverPasscodeRequestBuilder) Request() *ManagedDeviceRecoverPasscodeRequest {
+ return &ManagedDeviceRecoverPasscodeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRecoverPasscodeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceCleanWindowsDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// CleanWindowsDevice action undocumented
+func (b *ManagedDeviceRequestBuilder) CleanWindowsDevice(reqObj *ManagedDeviceCleanWindowsDeviceRequestParameter) *ManagedDeviceCleanWindowsDeviceRequestBuilder {
+ bb := &ManagedDeviceCleanWindowsDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cleanWindowsDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceCleanWindowsDeviceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceCleanWindowsDeviceRequestBuilder) Request() *ManagedDeviceCleanWindowsDeviceRequest {
+ return &ManagedDeviceCleanWindowsDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceCleanWindowsDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder struct{ BaseRequestBuilder }
+
+// LogoutSharedAppleDeviceActiveUser action undocumented
+func (b *ManagedDeviceRequestBuilder) LogoutSharedAppleDeviceActiveUser(reqObj *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestParameter) *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder {
+ bb := &ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/logoutSharedAppleDeviceActiveUser"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequestBuilder) Request() *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest {
+ return &ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceLogoutSharedAppleDeviceActiveUserRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// DeleteUserFromSharedAppleDevice action undocumented
+func (b *ManagedDeviceRequestBuilder) DeleteUserFromSharedAppleDevice(reqObj *ManagedDeviceDeleteUserFromSharedAppleDeviceRequestParameter) *ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder {
+ bb := &ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/deleteUserFromSharedAppleDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceDeleteUserFromSharedAppleDeviceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceDeleteUserFromSharedAppleDeviceRequestBuilder) Request() *ManagedDeviceDeleteUserFromSharedAppleDeviceRequest {
+ return &ManagedDeviceDeleteUserFromSharedAppleDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceDeleteUserFromSharedAppleDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceSyncDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncDevice action undocumented
+func (b *ManagedDeviceRequestBuilder) SyncDevice(reqObj *ManagedDeviceSyncDeviceRequestParameter) *ManagedDeviceSyncDeviceRequestBuilder {
+ bb := &ManagedDeviceSyncDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceSyncDeviceRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceSyncDeviceRequestBuilder) Request() *ManagedDeviceSyncDeviceRequest {
+ return &ManagedDeviceSyncDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceSyncDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceWindowsDefenderScanRequestBuilder struct{ BaseRequestBuilder }
+
+// WindowsDefenderScan action undocumented
+func (b *ManagedDeviceRequestBuilder) WindowsDefenderScan(reqObj *ManagedDeviceWindowsDefenderScanRequestParameter) *ManagedDeviceWindowsDefenderScanRequestBuilder {
+ bb := &ManagedDeviceWindowsDefenderScanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/windowsDefenderScan"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceWindowsDefenderScanRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceWindowsDefenderScanRequestBuilder) Request() *ManagedDeviceWindowsDefenderScanRequest {
+ return &ManagedDeviceWindowsDefenderScanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceWindowsDefenderScanRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder struct{ BaseRequestBuilder }
+
+// WindowsDefenderUpdateSignatures action undocumented
+func (b *ManagedDeviceRequestBuilder) WindowsDefenderUpdateSignatures(reqObj *ManagedDeviceWindowsDefenderUpdateSignaturesRequestParameter) *ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder {
+ bb := &ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/windowsDefenderUpdateSignatures"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceWindowsDefenderUpdateSignaturesRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceWindowsDefenderUpdateSignaturesRequestBuilder) Request() *ManagedDeviceWindowsDefenderUpdateSignaturesRequest {
+ return &ManagedDeviceWindowsDefenderUpdateSignaturesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceWindowsDefenderUpdateSignaturesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateWindowsDeviceAccount action undocumented
+func (b *ManagedDeviceRequestBuilder) UpdateWindowsDeviceAccount(reqObj *ManagedDeviceUpdateWindowsDeviceAccountRequestParameter) *ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder {
+ bb := &ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateWindowsDeviceAccount"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceUpdateWindowsDeviceAccountRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceUpdateWindowsDeviceAccountRequestBuilder) Request() *ManagedDeviceUpdateWindowsDeviceAccountRequest {
+ return &ManagedDeviceUpdateWindowsDeviceAccountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceUpdateWindowsDeviceAccountRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRevokeAppleVPPLicensesRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeAppleVPPLicenses action undocumented
+func (b *ManagedDeviceRequestBuilder) RevokeAppleVPPLicenses(reqObj *ManagedDeviceRevokeAppleVPPLicensesRequestParameter) *ManagedDeviceRevokeAppleVPPLicensesRequestBuilder {
+ bb := &ManagedDeviceRevokeAppleVPPLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeAppleVppLicenses"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRevokeAppleVPPLicensesRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRevokeAppleVPPLicensesRequestBuilder) Request() *ManagedDeviceRevokeAppleVPPLicensesRequest {
+ return &ManagedDeviceRevokeAppleVPPLicensesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRevokeAppleVPPLicensesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceRotateBitLockerKeysRequestBuilder struct{ BaseRequestBuilder }
+
+// RotateBitLockerKeys action undocumented
+func (b *ManagedDeviceRequestBuilder) RotateBitLockerKeys(reqObj *ManagedDeviceRotateBitLockerKeysRequestParameter) *ManagedDeviceRotateBitLockerKeysRequestBuilder {
+ bb := &ManagedDeviceRotateBitLockerKeysRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rotateBitLockerKeys"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceRotateBitLockerKeysRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceRotateBitLockerKeysRequestBuilder) Request() *ManagedDeviceRotateBitLockerKeysRequest {
+ return &ManagedDeviceRotateBitLockerKeysRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceRotateBitLockerKeysRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder struct{ BaseRequestBuilder }
+
+// SendCustomNotificationToCompanyPortal action undocumented
+func (b *ManagedDeviceRequestBuilder) SendCustomNotificationToCompanyPortal(reqObj *ManagedDeviceSendCustomNotificationToCompanyPortalRequestParameter) *ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder {
+ bb := &ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendCustomNotificationToCompanyPortal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceSendCustomNotificationToCompanyPortalRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceSendCustomNotificationToCompanyPortalRequestBuilder) Request() *ManagedDeviceSendCustomNotificationToCompanyPortalRequest {
+ return &ManagedDeviceSendCustomNotificationToCompanyPortalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceSendCustomNotificationToCompanyPortalRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceTriggerConfigurationManagerActionRequestBuilder struct{ BaseRequestBuilder }
+
+// TriggerConfigurationManagerAction action undocumented
+func (b *ManagedDeviceRequestBuilder) TriggerConfigurationManagerAction(reqObj *ManagedDeviceTriggerConfigurationManagerActionRequestParameter) *ManagedDeviceTriggerConfigurationManagerActionRequestBuilder {
+ bb := &ManagedDeviceTriggerConfigurationManagerActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/triggerConfigurationManagerAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceTriggerConfigurationManagerActionRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceTriggerConfigurationManagerActionRequestBuilder) Request() *ManagedDeviceTriggerConfigurationManagerActionRequest {
+ return &ManagedDeviceTriggerConfigurationManagerActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceTriggerConfigurationManagerActionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedDeviceMobileAppConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *ManagedDeviceMobileAppConfigurationRequestBuilder) Assign(reqObj *ManagedDeviceMobileAppConfigurationAssignRequestParameter) *ManagedDeviceMobileAppConfigurationAssignRequestBuilder {
+ bb := &ManagedDeviceMobileAppConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedDeviceMobileAppConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *ManagedDeviceMobileAppConfigurationAssignRequestBuilder) Request() *ManagedDeviceMobileAppConfigurationAssignRequest {
+ return &ManagedDeviceMobileAppConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedDeviceMobileAppConfigurationAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ManagedEBookAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *ManagedEBookRequestBuilder) Assign(reqObj *ManagedEBookAssignRequestParameter) *ManagedEBookAssignRequestBuilder {
+ bb := &ManagedEBookAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ManagedEBookAssignRequest struct{ BaseRequest }
+
+//
+func (b *ManagedEBookAssignRequestBuilder) Request() *ManagedEBookAssignRequest {
+ return &ManagedEBookAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ManagedEBookAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go
new file mode 100644
index 00000000..90231821
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestManagement.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ManagementConditionRequestBuilder is request builder for ManagementCondition
+type ManagementConditionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagementConditionRequest
+func (b *ManagementConditionRequestBuilder) Request() *ManagementConditionRequest {
+ return &ManagementConditionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagementConditionRequest is request for ManagementCondition
+type ManagementConditionRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagementCondition
+func (r *ManagementConditionRequest) Get(ctx context.Context) (resObj *ManagementCondition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagementCondition
+func (r *ManagementConditionRequest) Update(ctx context.Context, reqObj *ManagementCondition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagementCondition
+func (r *ManagementConditionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ManagementConditionStatementRequestBuilder is request builder for ManagementConditionStatement
+type ManagementConditionStatementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ManagementConditionStatementRequest
+func (b *ManagementConditionStatementRequestBuilder) Request() *ManagementConditionStatementRequest {
+ return &ManagementConditionStatementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ManagementConditionStatementRequest is request for ManagementConditionStatement
+type ManagementConditionStatementRequest struct{ BaseRequest }
+
+// Get performs GET request for ManagementConditionStatement
+func (r *ManagementConditionStatementRequest) Get(ctx context.Context) (resObj *ManagementConditionStatement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ManagementConditionStatement
+func (r *ManagementConditionStatementRequest) Update(ctx context.Context, reqObj *ManagementConditionStatement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ManagementConditionStatement
+func (r *ManagementConditionStatementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMention.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMention.go
new file mode 100644
index 00000000..c29b2084
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMention.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MentionRequestBuilder is request builder for Mention
+type MentionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MentionRequest
+func (b *MentionRequestBuilder) Request() *MentionRequest {
+ return &MentionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MentionRequest is request for Mention
+type MentionRequest struct{ BaseRequest }
+
+// Get performs GET request for Mention
+func (r *MentionRequest) Get(ctx context.Context) (resObj *Mention, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Mention
+func (r *MentionRequest) Update(ctx context.Context, reqObj *Mention) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Mention
+func (r *MentionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMessage.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMessage.go
new file mode 100644
index 00000000..9b24b207
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMessage.go
@@ -0,0 +1,336 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MessageRequestBuilder is request builder for Message
+type MessageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MessageRequest
+func (b *MessageRequestBuilder) Request() *MessageRequest {
+ return &MessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MessageRequest is request for Message
+type MessageRequest struct{ BaseRequest }
+
+// Get performs GET request for Message
+func (r *MessageRequest) Get(ctx context.Context) (resObj *Message, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Message
+func (r *MessageRequest) Update(ctx context.Context, reqObj *Message) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Message
+func (r *MessageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MessageRuleRequestBuilder is request builder for MessageRule
+type MessageRuleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MessageRuleRequest
+func (b *MessageRuleRequestBuilder) Request() *MessageRuleRequest {
+ return &MessageRuleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MessageRuleRequest is request for MessageRule
+type MessageRuleRequest struct{ BaseRequest }
+
+// Get performs GET request for MessageRule
+func (r *MessageRuleRequest) Get(ctx context.Context) (resObj *MessageRule, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MessageRule
+func (r *MessageRuleRequest) Update(ctx context.Context, reqObj *MessageRule) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MessageRule
+func (r *MessageRuleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type MessageCreateReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateReply action undocumented
+func (b *MessageRequestBuilder) CreateReply(reqObj *MessageCreateReplyRequestParameter) *MessageCreateReplyRequestBuilder {
+ bb := &MessageCreateReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createReply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageCreateReplyRequest struct{ BaseRequest }
+
+//
+func (b *MessageCreateReplyRequestBuilder) Request() *MessageCreateReplyRequest {
+ return &MessageCreateReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageCreateReplyRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageCreateReplyAllRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateReplyAll action undocumented
+func (b *MessageRequestBuilder) CreateReplyAll(reqObj *MessageCreateReplyAllRequestParameter) *MessageCreateReplyAllRequestBuilder {
+ bb := &MessageCreateReplyAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createReplyAll"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageCreateReplyAllRequest struct{ BaseRequest }
+
+//
+func (b *MessageCreateReplyAllRequestBuilder) Request() *MessageCreateReplyAllRequest {
+ return &MessageCreateReplyAllRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageCreateReplyAllRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageCreateForwardRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateForward action undocumented
+func (b *MessageRequestBuilder) CreateForward(reqObj *MessageCreateForwardRequestParameter) *MessageCreateForwardRequestBuilder {
+ bb := &MessageCreateForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createForward"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageCreateForwardRequest struct{ BaseRequest }
+
+//
+func (b *MessageCreateForwardRequestBuilder) Request() *MessageCreateForwardRequest {
+ return &MessageCreateForwardRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageCreateForwardRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageSendRequestBuilder struct{ BaseRequestBuilder }
+
+// Send action undocumented
+func (b *MessageRequestBuilder) Send(reqObj *MessageSendRequestParameter) *MessageSendRequestBuilder {
+ bb := &MessageSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/send"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageSendRequest struct{ BaseRequest }
+
+//
+func (b *MessageSendRequestBuilder) Request() *MessageSendRequest {
+ return &MessageSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MessageCopyRequestBuilder struct{ BaseRequestBuilder }
+
+// Copy action undocumented
+func (b *MessageRequestBuilder) Copy(reqObj *MessageCopyRequestParameter) *MessageCopyRequestBuilder {
+ bb := &MessageCopyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copy"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageCopyRequest struct{ BaseRequest }
+
+//
+func (b *MessageCopyRequestBuilder) Request() *MessageCopyRequest {
+ return &MessageCopyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageCopyRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageMoveRequestBuilder struct{ BaseRequestBuilder }
+
+// Move action undocumented
+func (b *MessageRequestBuilder) Move(reqObj *MessageMoveRequestParameter) *MessageMoveRequestBuilder {
+ bb := &MessageMoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/move"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageMoveRequest struct{ BaseRequest }
+
+//
+func (b *MessageMoveRequestBuilder) Request() *MessageMoveRequest {
+ return &MessageMoveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageMoveRequest) Post(ctx context.Context) (resObj *Message, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type MessageReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Reply action undocumented
+func (b *MessageRequestBuilder) Reply(reqObj *MessageReplyRequestParameter) *MessageReplyRequestBuilder {
+ bb := &MessageReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageReplyRequest struct{ BaseRequest }
+
+//
+func (b *MessageReplyRequestBuilder) Request() *MessageReplyRequest {
+ return &MessageReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageReplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MessageReplyAllRequestBuilder struct{ BaseRequestBuilder }
+
+// ReplyAll action undocumented
+func (b *MessageRequestBuilder) ReplyAll(reqObj *MessageReplyAllRequestParameter) *MessageReplyAllRequestBuilder {
+ bb := &MessageReplyAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/replyAll"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageReplyAllRequest struct{ BaseRequest }
+
+//
+func (b *MessageReplyAllRequestBuilder) Request() *MessageReplyAllRequest {
+ return &MessageReplyAllRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageReplyAllRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MessageForwardRequestBuilder struct{ BaseRequestBuilder }
+
+// Forward action undocumented
+func (b *MessageRequestBuilder) Forward(reqObj *MessageForwardRequestParameter) *MessageForwardRequestBuilder {
+ bb := &MessageForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/forward"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageForwardRequest struct{ BaseRequest }
+
+//
+func (b *MessageForwardRequestBuilder) Request() *MessageForwardRequest {
+ return &MessageForwardRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageForwardRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MessageUnsubscribeRequestBuilder struct{ BaseRequestBuilder }
+
+// Unsubscribe action undocumented
+func (b *MessageRequestBuilder) Unsubscribe(reqObj *MessageUnsubscribeRequestParameter) *MessageUnsubscribeRequestBuilder {
+ bb := &MessageUnsubscribeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unsubscribe"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MessageUnsubscribeRequest struct{ BaseRequest }
+
+//
+func (b *MessageUnsubscribeRequestBuilder) Request() *MessageUnsubscribeRequest {
+ return &MessageUnsubscribeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MessageUnsubscribeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMicrosoft.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMicrosoft.go
new file mode 100644
index 00000000..54c9a9b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMicrosoft.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MicrosoftStoreForBusinessAppRequestBuilder is request builder for MicrosoftStoreForBusinessApp
+type MicrosoftStoreForBusinessAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MicrosoftStoreForBusinessAppRequest
+func (b *MicrosoftStoreForBusinessAppRequestBuilder) Request() *MicrosoftStoreForBusinessAppRequest {
+ return &MicrosoftStoreForBusinessAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MicrosoftStoreForBusinessAppRequest is request for MicrosoftStoreForBusinessApp
+type MicrosoftStoreForBusinessAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MicrosoftStoreForBusinessApp
+func (r *MicrosoftStoreForBusinessAppRequest) Get(ctx context.Context) (resObj *MicrosoftStoreForBusinessApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MicrosoftStoreForBusinessApp
+func (r *MicrosoftStoreForBusinessAppRequest) Update(ctx context.Context, reqObj *MicrosoftStoreForBusinessApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MicrosoftStoreForBusinessApp
+func (r *MicrosoftStoreForBusinessAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMobile.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMobile.go
new file mode 100644
index 00000000..62d153f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMobile.go
@@ -0,0 +1,664 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// MobileAppRequestBuilder is request builder for MobileApp
+type MobileAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppRequest
+func (b *MobileAppRequestBuilder) Request() *MobileAppRequest {
+ return &MobileAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppRequest is request for MobileApp
+type MobileAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileApp
+func (r *MobileAppRequest) Get(ctx context.Context) (resObj *MobileApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileApp
+func (r *MobileAppRequest) Update(ctx context.Context, reqObj *MobileApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileApp
+func (r *MobileAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppAssignmentRequestBuilder is request builder for MobileAppAssignment
+type MobileAppAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppAssignmentRequest
+func (b *MobileAppAssignmentRequestBuilder) Request() *MobileAppAssignmentRequest {
+ return &MobileAppAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppAssignmentRequest is request for MobileAppAssignment
+type MobileAppAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppAssignment
+func (r *MobileAppAssignmentRequest) Get(ctx context.Context) (resObj *MobileAppAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppAssignment
+func (r *MobileAppAssignmentRequest) Update(ctx context.Context, reqObj *MobileAppAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppAssignment
+func (r *MobileAppAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppCategoryRequestBuilder is request builder for MobileAppCategory
+type MobileAppCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppCategoryRequest
+func (b *MobileAppCategoryRequestBuilder) Request() *MobileAppCategoryRequest {
+ return &MobileAppCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppCategoryRequest is request for MobileAppCategory
+type MobileAppCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppCategory
+func (r *MobileAppCategoryRequest) Get(ctx context.Context) (resObj *MobileAppCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppCategory
+func (r *MobileAppCategoryRequest) Update(ctx context.Context, reqObj *MobileAppCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppCategory
+func (r *MobileAppCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppContentRequestBuilder is request builder for MobileAppContent
+type MobileAppContentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppContentRequest
+func (b *MobileAppContentRequestBuilder) Request() *MobileAppContentRequest {
+ return &MobileAppContentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppContentRequest is request for MobileAppContent
+type MobileAppContentRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppContent
+func (r *MobileAppContentRequest) Get(ctx context.Context) (resObj *MobileAppContent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppContent
+func (r *MobileAppContentRequest) Update(ctx context.Context, reqObj *MobileAppContent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppContent
+func (r *MobileAppContentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppContentFileRequestBuilder is request builder for MobileAppContentFile
+type MobileAppContentFileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppContentFileRequest
+func (b *MobileAppContentFileRequestBuilder) Request() *MobileAppContentFileRequest {
+ return &MobileAppContentFileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppContentFileRequest is request for MobileAppContentFile
+type MobileAppContentFileRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppContentFile
+func (r *MobileAppContentFileRequest) Get(ctx context.Context) (resObj *MobileAppContentFile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppContentFile
+func (r *MobileAppContentFileRequest) Update(ctx context.Context, reqObj *MobileAppContentFile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppContentFile
+func (r *MobileAppContentFileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppInstallStatusRequestBuilder is request builder for MobileAppInstallStatus
+type MobileAppInstallStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppInstallStatusRequest
+func (b *MobileAppInstallStatusRequestBuilder) Request() *MobileAppInstallStatusRequest {
+ return &MobileAppInstallStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppInstallStatusRequest is request for MobileAppInstallStatus
+type MobileAppInstallStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppInstallStatus
+func (r *MobileAppInstallStatusRequest) Get(ctx context.Context) (resObj *MobileAppInstallStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppInstallStatus
+func (r *MobileAppInstallStatusRequest) Update(ctx context.Context, reqObj *MobileAppInstallStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppInstallStatus
+func (r *MobileAppInstallStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppInstallSummaryRequestBuilder is request builder for MobileAppInstallSummary
+type MobileAppInstallSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppInstallSummaryRequest
+func (b *MobileAppInstallSummaryRequestBuilder) Request() *MobileAppInstallSummaryRequest {
+ return &MobileAppInstallSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppInstallSummaryRequest is request for MobileAppInstallSummary
+type MobileAppInstallSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppInstallSummary
+func (r *MobileAppInstallSummaryRequest) Get(ctx context.Context) (resObj *MobileAppInstallSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppInstallSummary
+func (r *MobileAppInstallSummaryRequest) Update(ctx context.Context, reqObj *MobileAppInstallSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppInstallSummary
+func (r *MobileAppInstallSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppIntentAndStateRequestBuilder is request builder for MobileAppIntentAndState
+type MobileAppIntentAndStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppIntentAndStateRequest
+func (b *MobileAppIntentAndStateRequestBuilder) Request() *MobileAppIntentAndStateRequest {
+ return &MobileAppIntentAndStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppIntentAndStateRequest is request for MobileAppIntentAndState
+type MobileAppIntentAndStateRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppIntentAndState
+func (r *MobileAppIntentAndStateRequest) Get(ctx context.Context) (resObj *MobileAppIntentAndState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppIntentAndState
+func (r *MobileAppIntentAndStateRequest) Update(ctx context.Context, reqObj *MobileAppIntentAndState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppIntentAndState
+func (r *MobileAppIntentAndStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppProvisioningConfigGroupAssignmentRequestBuilder is request builder for MobileAppProvisioningConfigGroupAssignment
+type MobileAppProvisioningConfigGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppProvisioningConfigGroupAssignmentRequest
+func (b *MobileAppProvisioningConfigGroupAssignmentRequestBuilder) Request() *MobileAppProvisioningConfigGroupAssignmentRequest {
+ return &MobileAppProvisioningConfigGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppProvisioningConfigGroupAssignmentRequest is request for MobileAppProvisioningConfigGroupAssignment
+type MobileAppProvisioningConfigGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppProvisioningConfigGroupAssignment
+func (r *MobileAppProvisioningConfigGroupAssignmentRequest) Get(ctx context.Context) (resObj *MobileAppProvisioningConfigGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppProvisioningConfigGroupAssignment
+func (r *MobileAppProvisioningConfigGroupAssignmentRequest) Update(ctx context.Context, reqObj *MobileAppProvisioningConfigGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppProvisioningConfigGroupAssignment
+func (r *MobileAppProvisioningConfigGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppRelationshipRequestBuilder is request builder for MobileAppRelationship
+type MobileAppRelationshipRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppRelationshipRequest
+func (b *MobileAppRelationshipRequestBuilder) Request() *MobileAppRelationshipRequest {
+ return &MobileAppRelationshipRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppRelationshipRequest is request for MobileAppRelationship
+type MobileAppRelationshipRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppRelationship
+func (r *MobileAppRelationshipRequest) Get(ctx context.Context) (resObj *MobileAppRelationship, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppRelationship
+func (r *MobileAppRelationshipRequest) Update(ctx context.Context, reqObj *MobileAppRelationship) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppRelationship
+func (r *MobileAppRelationshipRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileAppTroubleshootingEventRequestBuilder is request builder for MobileAppTroubleshootingEvent
+type MobileAppTroubleshootingEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileAppTroubleshootingEventRequest
+func (b *MobileAppTroubleshootingEventRequestBuilder) Request() *MobileAppTroubleshootingEventRequest {
+ return &MobileAppTroubleshootingEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileAppTroubleshootingEventRequest is request for MobileAppTroubleshootingEvent
+type MobileAppTroubleshootingEventRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileAppTroubleshootingEvent
+func (r *MobileAppTroubleshootingEventRequest) Get(ctx context.Context) (resObj *MobileAppTroubleshootingEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileAppTroubleshootingEvent
+func (r *MobileAppTroubleshootingEventRequest) Update(ctx context.Context, reqObj *MobileAppTroubleshootingEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileAppTroubleshootingEvent
+func (r *MobileAppTroubleshootingEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileContainedAppRequestBuilder is request builder for MobileContainedApp
+type MobileContainedAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileContainedAppRequest
+func (b *MobileContainedAppRequestBuilder) Request() *MobileContainedAppRequest {
+ return &MobileContainedAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileContainedAppRequest is request for MobileContainedApp
+type MobileContainedAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileContainedApp
+func (r *MobileContainedAppRequest) Get(ctx context.Context) (resObj *MobileContainedApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileContainedApp
+func (r *MobileContainedAppRequest) Update(ctx context.Context, reqObj *MobileContainedApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileContainedApp
+func (r *MobileContainedAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileLobAppRequestBuilder is request builder for MobileLobApp
+type MobileLobAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileLobAppRequest
+func (b *MobileLobAppRequestBuilder) Request() *MobileLobAppRequest {
+ return &MobileLobAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileLobAppRequest is request for MobileLobApp
+type MobileLobAppRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileLobApp
+func (r *MobileLobAppRequest) Get(ctx context.Context) (resObj *MobileLobApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileLobApp
+func (r *MobileLobAppRequest) Update(ctx context.Context, reqObj *MobileLobApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileLobApp
+func (r *MobileLobAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// MobileThreatDefenseConnectorRequestBuilder is request builder for MobileThreatDefenseConnector
+type MobileThreatDefenseConnectorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MobileThreatDefenseConnectorRequest
+func (b *MobileThreatDefenseConnectorRequestBuilder) Request() *MobileThreatDefenseConnectorRequest {
+ return &MobileThreatDefenseConnectorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MobileThreatDefenseConnectorRequest is request for MobileThreatDefenseConnector
+type MobileThreatDefenseConnectorRequest struct{ BaseRequest }
+
+// Get performs GET request for MobileThreatDefenseConnector
+func (r *MobileThreatDefenseConnectorRequest) Get(ctx context.Context) (resObj *MobileThreatDefenseConnector, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MobileThreatDefenseConnector
+func (r *MobileThreatDefenseConnectorRequest) Update(ctx context.Context, reqObj *MobileThreatDefenseConnector) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MobileThreatDefenseConnector
+func (r *MobileThreatDefenseConnectorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type MobileAppCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementMobileAppsCollectionRequestBuilder) HasPayloadLinks(reqObj *MobileAppCollectionHasPayloadLinksRequestParameter) *MobileAppCollectionHasPayloadLinksRequestBuilder {
+ bb := &MobileAppCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppCollectionHasPayloadLinksRequestBuilder) Request() *MobileAppCollectionHasPayloadLinksRequest {
+ return &MobileAppCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *MobileAppCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *MobileAppCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type MobileAppAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *MobileAppRequestBuilder) Assign(reqObj *MobileAppAssignRequestParameter) *MobileAppAssignRequestBuilder {
+ bb := &MobileAppAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppAssignRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppAssignRequestBuilder) Request() *MobileAppAssignRequest {
+ return &MobileAppAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MobileAppUpdateRelationshipsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateRelationships action undocumented
+func (b *MobileAppRequestBuilder) UpdateRelationships(reqObj *MobileAppUpdateRelationshipsRequestParameter) *MobileAppUpdateRelationshipsRequestBuilder {
+ bb := &MobileAppUpdateRelationshipsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateRelationships"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppUpdateRelationshipsRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppUpdateRelationshipsRequestBuilder) Request() *MobileAppUpdateRelationshipsRequest {
+ return &MobileAppUpdateRelationshipsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppUpdateRelationshipsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MobileAppContentFileCommitRequestBuilder struct{ BaseRequestBuilder }
+
+// Commit action undocumented
+func (b *MobileAppContentFileRequestBuilder) Commit(reqObj *MobileAppContentFileCommitRequestParameter) *MobileAppContentFileCommitRequestBuilder {
+ bb := &MobileAppContentFileCommitRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/commit"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppContentFileCommitRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppContentFileCommitRequestBuilder) Request() *MobileAppContentFileCommitRequest {
+ return &MobileAppContentFileCommitRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppContentFileCommitRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type MobileAppContentFileRenewUploadRequestBuilder struct{ BaseRequestBuilder }
+
+// RenewUpload action undocumented
+func (b *MobileAppContentFileRequestBuilder) RenewUpload(reqObj *MobileAppContentFileRenewUploadRequestParameter) *MobileAppContentFileRenewUploadRequestBuilder {
+ bb := &MobileAppContentFileRenewUploadRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/renewUpload"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type MobileAppContentFileRenewUploadRequest struct{ BaseRequest }
+
+//
+func (b *MobileAppContentFileRenewUploadRequestBuilder) Request() *MobileAppContentFileRenewUploadRequest {
+ return &MobileAppContentFileRenewUploadRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *MobileAppContentFileRenewUploadRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestMulti.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMulti.go
new file mode 100644
index 00000000..e5adca48
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestMulti.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// MultiValueLegacyExtendedPropertyRequestBuilder is request builder for MultiValueLegacyExtendedProperty
+type MultiValueLegacyExtendedPropertyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns MultiValueLegacyExtendedPropertyRequest
+func (b *MultiValueLegacyExtendedPropertyRequestBuilder) Request() *MultiValueLegacyExtendedPropertyRequest {
+ return &MultiValueLegacyExtendedPropertyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// MultiValueLegacyExtendedPropertyRequest is request for MultiValueLegacyExtendedProperty
+type MultiValueLegacyExtendedPropertyRequest struct{ BaseRequest }
+
+// Get performs GET request for MultiValueLegacyExtendedProperty
+func (r *MultiValueLegacyExtendedPropertyRequest) Get(ctx context.Context) (resObj *MultiValueLegacyExtendedProperty, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for MultiValueLegacyExtendedProperty
+func (r *MultiValueLegacyExtendedPropertyRequest) Update(ctx context.Context, reqObj *MultiValueLegacyExtendedProperty) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for MultiValueLegacyExtendedProperty
+func (r *MultiValueLegacyExtendedPropertyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestNDES.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNDES.go
new file mode 100644
index 00000000..41be05da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNDES.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NDESConnectorRequestBuilder is request builder for NDESConnector
+type NDESConnectorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NDESConnectorRequest
+func (b *NDESConnectorRequestBuilder) Request() *NDESConnectorRequest {
+ return &NDESConnectorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NDESConnectorRequest is request for NDESConnector
+type NDESConnectorRequest struct{ BaseRequest }
+
+// Get performs GET request for NDESConnector
+func (r *NDESConnectorRequest) Get(ctx context.Context) (resObj *NDESConnector, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for NDESConnector
+func (r *NDESConnectorRequest) Update(ctx context.Context, reqObj *NDESConnector) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for NDESConnector
+func (r *NDESConnectorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestNamed.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNamed.go
new file mode 100644
index 00000000..1028c430
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNamed.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NamedLocationRequestBuilder is request builder for NamedLocation
+type NamedLocationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NamedLocationRequest
+func (b *NamedLocationRequestBuilder) Request() *NamedLocationRequest {
+ return &NamedLocationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NamedLocationRequest is request for NamedLocation
+type NamedLocationRequest struct{ BaseRequest }
+
+// Get performs GET request for NamedLocation
+func (r *NamedLocationRequest) Get(ctx context.Context) (resObj *NamedLocation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for NamedLocation
+func (r *NamedLocationRequest) Update(ctx context.Context, reqObj *NamedLocation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for NamedLocation
+func (r *NamedLocationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotebook.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotebook.go
new file mode 100644
index 00000000..9059a609
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotebook.go
@@ -0,0 +1,92 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NotebookRequestBuilder is request builder for Notebook
+type NotebookRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NotebookRequest
+func (b *NotebookRequestBuilder) Request() *NotebookRequest {
+ return &NotebookRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NotebookRequest is request for Notebook
+type NotebookRequest struct{ BaseRequest }
+
+// Get performs GET request for Notebook
+func (r *NotebookRequest) Get(ctx context.Context) (resObj *Notebook, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Notebook
+func (r *NotebookRequest) Update(ctx context.Context, reqObj *Notebook) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Notebook
+func (r *NotebookRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type NotebookCollectionGetNotebookFromWebURLRequestBuilder struct{ BaseRequestBuilder }
+
+// GetNotebookFromWebURL action undocumented
+func (b *OnenoteNotebooksCollectionRequestBuilder) GetNotebookFromWebURL(reqObj *NotebookCollectionGetNotebookFromWebURLRequestParameter) *NotebookCollectionGetNotebookFromWebURLRequestBuilder {
+ bb := &NotebookCollectionGetNotebookFromWebURLRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getNotebookFromWebUrl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type NotebookCollectionGetNotebookFromWebURLRequest struct{ BaseRequest }
+
+//
+func (b *NotebookCollectionGetNotebookFromWebURLRequestBuilder) Request() *NotebookCollectionGetNotebookFromWebURLRequest {
+ return &NotebookCollectionGetNotebookFromWebURLRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *NotebookCollectionGetNotebookFromWebURLRequest) Post(ctx context.Context) (resObj *CopyNotebookModel, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type NotebookCopyNotebookRequestBuilder struct{ BaseRequestBuilder }
+
+// CopyNotebook action undocumented
+func (b *NotebookRequestBuilder) CopyNotebook(reqObj *NotebookCopyNotebookRequestParameter) *NotebookCopyNotebookRequestBuilder {
+ bb := &NotebookCopyNotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copyNotebook"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type NotebookCopyNotebookRequest struct{ BaseRequest }
+
+//
+func (b *NotebookCopyNotebookRequestBuilder) Request() *NotebookCopyNotebookRequest {
+ return &NotebookCopyNotebookRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *NotebookCopyNotebookRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotification.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotification.go
new file mode 100644
index 00000000..0ddaeb8e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestNotification.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// NotificationRequestBuilder is request builder for Notification
+type NotificationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NotificationRequest
+func (b *NotificationRequestBuilder) Request() *NotificationRequest {
+ return &NotificationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NotificationRequest is request for Notification
+type NotificationRequest struct{ BaseRequest }
+
+// Get performs GET request for Notification
+func (r *NotificationRequest) Get(ctx context.Context) (resObj *Notification, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Notification
+func (r *NotificationRequest) Update(ctx context.Context, reqObj *Notification) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Notification
+func (r *NotificationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// NotificationMessageTemplateRequestBuilder is request builder for NotificationMessageTemplate
+type NotificationMessageTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns NotificationMessageTemplateRequest
+func (b *NotificationMessageTemplateRequestBuilder) Request() *NotificationMessageTemplateRequest {
+ return &NotificationMessageTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// NotificationMessageTemplateRequest is request for NotificationMessageTemplate
+type NotificationMessageTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for NotificationMessageTemplate
+func (r *NotificationMessageTemplateRequest) Get(ctx context.Context) (resObj *NotificationMessageTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for NotificationMessageTemplate
+func (r *NotificationMessageTemplateRequest) Update(ctx context.Context, reqObj *NotificationMessageTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for NotificationMessageTemplate
+func (r *NotificationMessageTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type NotificationMessageTemplateSendTestMessageRequestBuilder struct{ BaseRequestBuilder }
+
+// SendTestMessage action undocumented
+func (b *NotificationMessageTemplateRequestBuilder) SendTestMessage(reqObj *NotificationMessageTemplateSendTestMessageRequestParameter) *NotificationMessageTemplateSendTestMessageRequestBuilder {
+ bb := &NotificationMessageTemplateSendTestMessageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendTestMessage"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type NotificationMessageTemplateSendTestMessageRequest struct{ BaseRequest }
+
+//
+func (b *NotificationMessageTemplateSendTestMessageRequestBuilder) Request() *NotificationMessageTemplateSendTestMessageRequest {
+ return &NotificationMessageTemplateSendTestMessageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *NotificationMessageTemplateSendTestMessageRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOAuth2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOAuth2.go
new file mode 100644
index 00000000..26aeaae2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOAuth2.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OAuth2PermissionGrantRequestBuilder is request builder for OAuth2PermissionGrant
+type OAuth2PermissionGrantRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OAuth2PermissionGrantRequest
+func (b *OAuth2PermissionGrantRequestBuilder) Request() *OAuth2PermissionGrantRequest {
+ return &OAuth2PermissionGrantRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OAuth2PermissionGrantRequest is request for OAuth2PermissionGrant
+type OAuth2PermissionGrantRequest struct{ BaseRequest }
+
+// Get performs GET request for OAuth2PermissionGrant
+func (r *OAuth2PermissionGrantRequest) Get(ctx context.Context) (resObj *OAuth2PermissionGrant, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OAuth2PermissionGrant
+func (r *OAuth2PermissionGrantRequest) Update(ctx context.Context, reqObj *OAuth2PermissionGrant) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OAuth2PermissionGrant
+func (r *OAuth2PermissionGrantRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOffice.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOffice.go
new file mode 100644
index 00000000..d8947a58
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOffice.go
@@ -0,0 +1,256 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OfficeClientConfigurationRequestBuilder is request builder for OfficeClientConfiguration
+type OfficeClientConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OfficeClientConfigurationRequest
+func (b *OfficeClientConfigurationRequestBuilder) Request() *OfficeClientConfigurationRequest {
+ return &OfficeClientConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OfficeClientConfigurationRequest is request for OfficeClientConfiguration
+type OfficeClientConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for OfficeClientConfiguration
+func (r *OfficeClientConfigurationRequest) Get(ctx context.Context) (resObj *OfficeClientConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OfficeClientConfiguration
+func (r *OfficeClientConfigurationRequest) Update(ctx context.Context, reqObj *OfficeClientConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OfficeClientConfiguration
+func (r *OfficeClientConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OfficeClientConfigurationAssignmentRequestBuilder is request builder for OfficeClientConfigurationAssignment
+type OfficeClientConfigurationAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OfficeClientConfigurationAssignmentRequest
+func (b *OfficeClientConfigurationAssignmentRequestBuilder) Request() *OfficeClientConfigurationAssignmentRequest {
+ return &OfficeClientConfigurationAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OfficeClientConfigurationAssignmentRequest is request for OfficeClientConfigurationAssignment
+type OfficeClientConfigurationAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for OfficeClientConfigurationAssignment
+func (r *OfficeClientConfigurationAssignmentRequest) Get(ctx context.Context) (resObj *OfficeClientConfigurationAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OfficeClientConfigurationAssignment
+func (r *OfficeClientConfigurationAssignmentRequest) Update(ctx context.Context, reqObj *OfficeClientConfigurationAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OfficeClientConfigurationAssignment
+func (r *OfficeClientConfigurationAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OfficeConfigurationRequestBuilder is request builder for OfficeConfiguration
+type OfficeConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OfficeConfigurationRequest
+func (b *OfficeConfigurationRequestBuilder) Request() *OfficeConfigurationRequest {
+ return &OfficeConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OfficeConfigurationRequest is request for OfficeConfiguration
+type OfficeConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for OfficeConfiguration
+func (r *OfficeConfigurationRequest) Get(ctx context.Context) (resObj *OfficeConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OfficeConfiguration
+func (r *OfficeConfigurationRequest) Update(ctx context.Context, reqObj *OfficeConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OfficeConfiguration
+func (r *OfficeConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OfficeGraphInsightsRequestBuilder is request builder for OfficeGraphInsights
+type OfficeGraphInsightsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OfficeGraphInsightsRequest
+func (b *OfficeGraphInsightsRequestBuilder) Request() *OfficeGraphInsightsRequest {
+ return &OfficeGraphInsightsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OfficeGraphInsightsRequest is request for OfficeGraphInsights
+type OfficeGraphInsightsRequest struct{ BaseRequest }
+
+// Get performs GET request for OfficeGraphInsights
+func (r *OfficeGraphInsightsRequest) Get(ctx context.Context) (resObj *OfficeGraphInsights, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OfficeGraphInsights
+func (r *OfficeGraphInsightsRequest) Update(ctx context.Context, reqObj *OfficeGraphInsights) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OfficeGraphInsights
+func (r *OfficeGraphInsightsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdatePriorities action undocumented
+func (b *OfficeConfigurationClientConfigurationsCollectionRequestBuilder) UpdatePriorities(reqObj *OfficeClientConfigurationCollectionUpdatePrioritiesRequestParameter) *OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder {
+ bb := &OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updatePriorities"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OfficeClientConfigurationCollectionUpdatePrioritiesRequest struct{ BaseRequest }
+
+//
+func (b *OfficeClientConfigurationCollectionUpdatePrioritiesRequestBuilder) Request() *OfficeClientConfigurationCollectionUpdatePrioritiesRequest {
+ return &OfficeClientConfigurationCollectionUpdatePrioritiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OfficeClientConfigurationCollectionUpdatePrioritiesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type OfficeClientConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *OfficeClientConfigurationRequestBuilder) Assign(reqObj *OfficeClientConfigurationAssignRequestParameter) *OfficeClientConfigurationAssignRequestBuilder {
+ bb := &OfficeClientConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OfficeClientConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *OfficeClientConfigurationAssignRequestBuilder) Request() *OfficeClientConfigurationAssignRequest {
+ return &OfficeClientConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OfficeClientConfigurationAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OfficeClientConfigurationAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OfficeClientConfigurationAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OfficeClientConfigurationAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *OfficeClientConfigurationAssignRequest) PostN(ctx context.Context, n int) ([]OfficeClientConfigurationAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *OfficeClientConfigurationAssignRequest) Post(ctx context.Context) ([]OfficeClientConfigurationAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOn.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOn.go
new file mode 100644
index 00000000..3404da12
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOn.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnPremisesAgentRequestBuilder is request builder for OnPremisesAgent
+type OnPremisesAgentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnPremisesAgentRequest
+func (b *OnPremisesAgentRequestBuilder) Request() *OnPremisesAgentRequest {
+ return &OnPremisesAgentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnPremisesAgentRequest is request for OnPremisesAgent
+type OnPremisesAgentRequest struct{ BaseRequest }
+
+// Get performs GET request for OnPremisesAgent
+func (r *OnPremisesAgentRequest) Get(ctx context.Context) (resObj *OnPremisesAgent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnPremisesAgent
+func (r *OnPremisesAgentRequest) Update(ctx context.Context, reqObj *OnPremisesAgent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnPremisesAgent
+func (r *OnPremisesAgentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OnPremisesAgentGroupRequestBuilder is request builder for OnPremisesAgentGroup
+type OnPremisesAgentGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnPremisesAgentGroupRequest
+func (b *OnPremisesAgentGroupRequestBuilder) Request() *OnPremisesAgentGroupRequest {
+ return &OnPremisesAgentGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnPremisesAgentGroupRequest is request for OnPremisesAgentGroup
+type OnPremisesAgentGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for OnPremisesAgentGroup
+func (r *OnPremisesAgentGroupRequest) Get(ctx context.Context) (resObj *OnPremisesAgentGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnPremisesAgentGroup
+func (r *OnPremisesAgentGroupRequest) Update(ctx context.Context, reqObj *OnPremisesAgentGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnPremisesAgentGroup
+func (r *OnPremisesAgentGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OnPremisesConditionalAccessSettingsRequestBuilder is request builder for OnPremisesConditionalAccessSettings
+type OnPremisesConditionalAccessSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnPremisesConditionalAccessSettingsRequest
+func (b *OnPremisesConditionalAccessSettingsRequestBuilder) Request() *OnPremisesConditionalAccessSettingsRequest {
+ return &OnPremisesConditionalAccessSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnPremisesConditionalAccessSettingsRequest is request for OnPremisesConditionalAccessSettings
+type OnPremisesConditionalAccessSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for OnPremisesConditionalAccessSettings
+func (r *OnPremisesConditionalAccessSettingsRequest) Get(ctx context.Context) (resObj *OnPremisesConditionalAccessSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnPremisesConditionalAccessSettings
+func (r *OnPremisesConditionalAccessSettingsRequest) Update(ctx context.Context, reqObj *OnPremisesConditionalAccessSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnPremisesConditionalAccessSettings
+func (r *OnPremisesConditionalAccessSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OnPremisesPublishingProfileRequestBuilder is request builder for OnPremisesPublishingProfile
+type OnPremisesPublishingProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnPremisesPublishingProfileRequest
+func (b *OnPremisesPublishingProfileRequestBuilder) Request() *OnPremisesPublishingProfileRequest {
+ return &OnPremisesPublishingProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnPremisesPublishingProfileRequest is request for OnPremisesPublishingProfile
+type OnPremisesPublishingProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for OnPremisesPublishingProfile
+func (r *OnPremisesPublishingProfileRequest) Get(ctx context.Context) (resObj *OnPremisesPublishingProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnPremisesPublishingProfile
+func (r *OnPremisesPublishingProfileRequest) Update(ctx context.Context, reqObj *OnPremisesPublishingProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnPremisesPublishingProfile
+func (r *OnPremisesPublishingProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnenote.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnenote.go
new file mode 100644
index 00000000..f9d52484
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnenote.go
@@ -0,0 +1,277 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnenoteRequestBuilder is request builder for Onenote
+type OnenoteRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenoteRequest
+func (b *OnenoteRequestBuilder) Request() *OnenoteRequest {
+ return &OnenoteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenoteRequest is request for Onenote
+type OnenoteRequest struct{ BaseRequest }
+
+// Get performs GET request for Onenote
+func (r *OnenoteRequest) Get(ctx context.Context) (resObj *Onenote, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Onenote
+func (r *OnenoteRequest) Update(ctx context.Context, reqObj *Onenote) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Onenote
+func (r *OnenoteRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OnenoteOperationRequestBuilder is request builder for OnenoteOperation
+type OnenoteOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenoteOperationRequest
+func (b *OnenoteOperationRequestBuilder) Request() *OnenoteOperationRequest {
+ return &OnenoteOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenoteOperationRequest is request for OnenoteOperation
+type OnenoteOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for OnenoteOperation
+func (r *OnenoteOperationRequest) Get(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnenoteOperation
+func (r *OnenoteOperationRequest) Update(ctx context.Context, reqObj *OnenoteOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnenoteOperation
+func (r *OnenoteOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OnenotePageRequestBuilder is request builder for OnenotePage
+type OnenotePageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenotePageRequest
+func (b *OnenotePageRequestBuilder) Request() *OnenotePageRequest {
+ return &OnenotePageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenotePageRequest is request for OnenotePage
+type OnenotePageRequest struct{ BaseRequest }
+
+// Get performs GET request for OnenotePage
+func (r *OnenotePageRequest) Get(ctx context.Context) (resObj *OnenotePage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnenotePage
+func (r *OnenotePageRequest) Update(ctx context.Context, reqObj *OnenotePage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnenotePage
+func (r *OnenotePageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OnenoteResourceRequestBuilder is request builder for OnenoteResource
+type OnenoteResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenoteResourceRequest
+func (b *OnenoteResourceRequestBuilder) Request() *OnenoteResourceRequest {
+ return &OnenoteResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenoteResourceRequest is request for OnenoteResource
+type OnenoteResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for OnenoteResource
+func (r *OnenoteResourceRequest) Get(ctx context.Context) (resObj *OnenoteResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnenoteResource
+func (r *OnenoteResourceRequest) Update(ctx context.Context, reqObj *OnenoteResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnenoteResource
+func (r *OnenoteResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OnenoteSectionRequestBuilder is request builder for OnenoteSection
+type OnenoteSectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnenoteSectionRequest
+func (b *OnenoteSectionRequestBuilder) Request() *OnenoteSectionRequest {
+ return &OnenoteSectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnenoteSectionRequest is request for OnenoteSection
+type OnenoteSectionRequest struct{ BaseRequest }
+
+// Get performs GET request for OnenoteSection
+func (r *OnenoteSectionRequest) Get(ctx context.Context) (resObj *OnenoteSection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnenoteSection
+func (r *OnenoteSectionRequest) Update(ctx context.Context, reqObj *OnenoteSection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnenoteSection
+func (r *OnenoteSectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type OnenotePageOnenotePatchContentRequestBuilder struct{ BaseRequestBuilder }
+
+// OnenotePatchContent action undocumented
+func (b *OnenotePageRequestBuilder) OnenotePatchContent(reqObj *OnenotePageOnenotePatchContentRequestParameter) *OnenotePageOnenotePatchContentRequestBuilder {
+ bb := &OnenotePageOnenotePatchContentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/onenotePatchContent"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OnenotePageOnenotePatchContentRequest struct{ BaseRequest }
+
+//
+func (b *OnenotePageOnenotePatchContentRequestBuilder) Request() *OnenotePageOnenotePatchContentRequest {
+ return &OnenotePageOnenotePatchContentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OnenotePageOnenotePatchContentRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type OnenotePageCopyToSectionRequestBuilder struct{ BaseRequestBuilder }
+
+// CopyToSection action undocumented
+func (b *OnenotePageRequestBuilder) CopyToSection(reqObj *OnenotePageCopyToSectionRequestParameter) *OnenotePageCopyToSectionRequestBuilder {
+ bb := &OnenotePageCopyToSectionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copyToSection"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OnenotePageCopyToSectionRequest struct{ BaseRequest }
+
+//
+func (b *OnenotePageCopyToSectionRequestBuilder) Request() *OnenotePageCopyToSectionRequest {
+ return &OnenotePageCopyToSectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OnenotePageCopyToSectionRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type OnenoteSectionCopyToNotebookRequestBuilder struct{ BaseRequestBuilder }
+
+// CopyToNotebook action undocumented
+func (b *OnenoteSectionRequestBuilder) CopyToNotebook(reqObj *OnenoteSectionCopyToNotebookRequestParameter) *OnenoteSectionCopyToNotebookRequestBuilder {
+ bb := &OnenoteSectionCopyToNotebookRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copyToNotebook"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OnenoteSectionCopyToNotebookRequest struct{ BaseRequest }
+
+//
+func (b *OnenoteSectionCopyToNotebookRequestBuilder) Request() *OnenoteSectionCopyToNotebookRequest {
+ return &OnenoteSectionCopyToNotebookRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OnenoteSectionCopyToNotebookRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type OnenoteSectionCopyToSectionGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// CopyToSectionGroup action undocumented
+func (b *OnenoteSectionRequestBuilder) CopyToSectionGroup(reqObj *OnenoteSectionCopyToSectionGroupRequestParameter) *OnenoteSectionCopyToSectionGroupRequestBuilder {
+ bb := &OnenoteSectionCopyToSectionGroupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/copyToSectionGroup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OnenoteSectionCopyToSectionGroupRequest struct{ BaseRequest }
+
+//
+func (b *OnenoteSectionCopyToSectionGroupRequestBuilder) Request() *OnenoteSectionCopyToSectionGroupRequest {
+ return &OnenoteSectionCopyToSectionGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OnenoteSectionCopyToSectionGroupRequest) Post(ctx context.Context) (resObj *OnenoteOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnline.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnline.go
new file mode 100644
index 00000000..badf6bff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOnline.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OnlineMeetingRequestBuilder is request builder for OnlineMeeting
+type OnlineMeetingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OnlineMeetingRequest
+func (b *OnlineMeetingRequestBuilder) Request() *OnlineMeetingRequest {
+ return &OnlineMeetingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OnlineMeetingRequest is request for OnlineMeeting
+type OnlineMeetingRequest struct{ BaseRequest }
+
+// Get performs GET request for OnlineMeeting
+func (r *OnlineMeetingRequest) Get(ctx context.Context) (resObj *OnlineMeeting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OnlineMeeting
+func (r *OnlineMeetingRequest) Update(ctx context.Context, reqObj *OnlineMeeting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OnlineMeeting
+func (r *OnlineMeetingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOpen.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOpen.go
new file mode 100644
index 00000000..35f7be1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOpen.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OpenShiftRequestBuilder is request builder for OpenShift
+type OpenShiftRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OpenShiftRequest
+func (b *OpenShiftRequestBuilder) Request() *OpenShiftRequest {
+ return &OpenShiftRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OpenShiftRequest is request for OpenShift
+type OpenShiftRequest struct{ BaseRequest }
+
+// Get performs GET request for OpenShift
+func (r *OpenShiftRequest) Get(ctx context.Context) (resObj *OpenShift, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OpenShift
+func (r *OpenShiftRequest) Update(ctx context.Context, reqObj *OpenShift) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OpenShift
+func (r *OpenShiftRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OpenShiftChangeRequestObjectRequestBuilder is request builder for OpenShiftChangeRequestObject
+type OpenShiftChangeRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OpenShiftChangeRequestObjectRequest
+func (b *OpenShiftChangeRequestObjectRequestBuilder) Request() *OpenShiftChangeRequestObjectRequest {
+ return &OpenShiftChangeRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OpenShiftChangeRequestObjectRequest is request for OpenShiftChangeRequestObject
+type OpenShiftChangeRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for OpenShiftChangeRequestObject
+func (r *OpenShiftChangeRequestObjectRequest) Get(ctx context.Context) (resObj *OpenShiftChangeRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OpenShiftChangeRequestObject
+func (r *OpenShiftChangeRequestObjectRequest) Update(ctx context.Context, reqObj *OpenShiftChangeRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OpenShiftChangeRequestObject
+func (r *OpenShiftChangeRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrg.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrg.go
new file mode 100644
index 00000000..958b619d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrg.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OrgContactRequestBuilder is request builder for OrgContact
+type OrgContactRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OrgContactRequest
+func (b *OrgContactRequestBuilder) Request() *OrgContactRequest {
+ return &OrgContactRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OrgContactRequest is request for OrgContact
+type OrgContactRequest struct{ BaseRequest }
+
+// Get performs GET request for OrgContact
+func (r *OrgContactRequest) Get(ctx context.Context) (resObj *OrgContact, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OrgContact
+func (r *OrgContactRequest) Update(ctx context.Context, reqObj *OrgContact) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OrgContact
+func (r *OrgContactRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganization.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganization.go
new file mode 100644
index 00000000..2294428c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganization.go
@@ -0,0 +1,65 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OrganizationRequestBuilder is request builder for Organization
+type OrganizationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OrganizationRequest
+func (b *OrganizationRequestBuilder) Request() *OrganizationRequest {
+ return &OrganizationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OrganizationRequest is request for Organization
+type OrganizationRequest struct{ BaseRequest }
+
+// Get performs GET request for Organization
+func (r *OrganizationRequest) Get(ctx context.Context) (resObj *Organization, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Organization
+func (r *OrganizationRequest) Update(ctx context.Context, reqObj *Organization) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Organization
+func (r *OrganizationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type OrganizationSetMobileDeviceManagementAuthorityRequestBuilder struct{ BaseRequestBuilder }
+
+// SetMobileDeviceManagementAuthority action undocumented
+func (b *OrganizationRequestBuilder) SetMobileDeviceManagementAuthority(reqObj *OrganizationSetMobileDeviceManagementAuthorityRequestParameter) *OrganizationSetMobileDeviceManagementAuthorityRequestBuilder {
+ bb := &OrganizationSetMobileDeviceManagementAuthorityRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setMobileDeviceManagementAuthority"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OrganizationSetMobileDeviceManagementAuthorityRequest struct{ BaseRequest }
+
+//
+func (b *OrganizationSetMobileDeviceManagementAuthorityRequestBuilder) Request() *OrganizationSetMobileDeviceManagementAuthorityRequest {
+ return &OrganizationSetMobileDeviceManagementAuthorityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OrganizationSetMobileDeviceManagementAuthorityRequest) Post(ctx context.Context) (resObj *int, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganizational.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganizational.go
new file mode 100644
index 00000000..640fc926
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOrganizational.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// OrganizationalBrandingRequestBuilder is request builder for OrganizationalBranding
+type OrganizationalBrandingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OrganizationalBrandingRequest
+func (b *OrganizationalBrandingRequestBuilder) Request() *OrganizationalBrandingRequest {
+ return &OrganizationalBrandingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OrganizationalBrandingRequest is request for OrganizationalBranding
+type OrganizationalBrandingRequest struct{ BaseRequest }
+
+// Get performs GET request for OrganizationalBranding
+func (r *OrganizationalBrandingRequest) Get(ctx context.Context) (resObj *OrganizationalBranding, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OrganizationalBranding
+func (r *OrganizationalBrandingRequest) Update(ctx context.Context, reqObj *OrganizationalBranding) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OrganizationalBranding
+func (r *OrganizationalBrandingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestOutlook.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOutlook.go
new file mode 100644
index 00000000..8d0985f3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestOutlook.go
@@ -0,0 +1,296 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// OutlookCategoryRequestBuilder is request builder for OutlookCategory
+type OutlookCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookCategoryRequest
+func (b *OutlookCategoryRequestBuilder) Request() *OutlookCategoryRequest {
+ return &OutlookCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookCategoryRequest is request for OutlookCategory
+type OutlookCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookCategory
+func (r *OutlookCategoryRequest) Get(ctx context.Context) (resObj *OutlookCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookCategory
+func (r *OutlookCategoryRequest) Update(ctx context.Context, reqObj *OutlookCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookCategory
+func (r *OutlookCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OutlookItemRequestBuilder is request builder for OutlookItem
+type OutlookItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookItemRequest
+func (b *OutlookItemRequestBuilder) Request() *OutlookItemRequest {
+ return &OutlookItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookItemRequest is request for OutlookItem
+type OutlookItemRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookItem
+func (r *OutlookItemRequest) Get(ctx context.Context) (resObj *OutlookItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookItem
+func (r *OutlookItemRequest) Update(ctx context.Context, reqObj *OutlookItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookItem
+func (r *OutlookItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OutlookTaskRequestBuilder is request builder for OutlookTask
+type OutlookTaskRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookTaskRequest
+func (b *OutlookTaskRequestBuilder) Request() *OutlookTaskRequest {
+ return &OutlookTaskRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookTaskRequest is request for OutlookTask
+type OutlookTaskRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookTask
+func (r *OutlookTaskRequest) Get(ctx context.Context) (resObj *OutlookTask, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookTask
+func (r *OutlookTaskRequest) Update(ctx context.Context, reqObj *OutlookTask) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookTask
+func (r *OutlookTaskRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OutlookTaskFolderRequestBuilder is request builder for OutlookTaskFolder
+type OutlookTaskFolderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookTaskFolderRequest
+func (b *OutlookTaskFolderRequestBuilder) Request() *OutlookTaskFolderRequest {
+ return &OutlookTaskFolderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookTaskFolderRequest is request for OutlookTaskFolder
+type OutlookTaskFolderRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookTaskFolder
+func (r *OutlookTaskFolderRequest) Get(ctx context.Context) (resObj *OutlookTaskFolder, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookTaskFolder
+func (r *OutlookTaskFolderRequest) Update(ctx context.Context, reqObj *OutlookTaskFolder) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookTaskFolder
+func (r *OutlookTaskFolderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OutlookTaskGroupRequestBuilder is request builder for OutlookTaskGroup
+type OutlookTaskGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookTaskGroupRequest
+func (b *OutlookTaskGroupRequestBuilder) Request() *OutlookTaskGroupRequest {
+ return &OutlookTaskGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookTaskGroupRequest is request for OutlookTaskGroup
+type OutlookTaskGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookTaskGroup
+func (r *OutlookTaskGroupRequest) Get(ctx context.Context) (resObj *OutlookTaskGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookTaskGroup
+func (r *OutlookTaskGroupRequest) Update(ctx context.Context, reqObj *OutlookTaskGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookTaskGroup
+func (r *OutlookTaskGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// OutlookUserRequestBuilder is request builder for OutlookUser
+type OutlookUserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns OutlookUserRequest
+func (b *OutlookUserRequestBuilder) Request() *OutlookUserRequest {
+ return &OutlookUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// OutlookUserRequest is request for OutlookUser
+type OutlookUserRequest struct{ BaseRequest }
+
+// Get performs GET request for OutlookUser
+func (r *OutlookUserRequest) Get(ctx context.Context) (resObj *OutlookUser, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for OutlookUser
+func (r *OutlookUserRequest) Update(ctx context.Context, reqObj *OutlookUser) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for OutlookUser
+func (r *OutlookUserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type OutlookTaskCompleteRequestBuilder struct{ BaseRequestBuilder }
+
+// Complete action undocumented
+func (b *OutlookTaskRequestBuilder) Complete(reqObj *OutlookTaskCompleteRequestParameter) *OutlookTaskCompleteRequestBuilder {
+ bb := &OutlookTaskCompleteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/complete"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type OutlookTaskCompleteRequest struct{ BaseRequest }
+
+//
+func (b *OutlookTaskCompleteRequestBuilder) Request() *OutlookTaskCompleteRequest {
+ return &OutlookTaskCompleteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *OutlookTaskCompleteRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]OutlookTask, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []OutlookTask
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []OutlookTask
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *OutlookTaskCompleteRequest) PostN(ctx context.Context, n int) ([]OutlookTask, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *OutlookTaskCompleteRequest) Post(ctx context.Context) ([]OutlookTask, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestParticipant.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestParticipant.go
new file mode 100644
index 00000000..65a87c50
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestParticipant.go
@@ -0,0 +1,119 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ParticipantRequestBuilder is request builder for Participant
+type ParticipantRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ParticipantRequest
+func (b *ParticipantRequestBuilder) Request() *ParticipantRequest {
+ return &ParticipantRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ParticipantRequest is request for Participant
+type ParticipantRequest struct{ BaseRequest }
+
+// Get performs GET request for Participant
+func (r *ParticipantRequest) Get(ctx context.Context) (resObj *Participant, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Participant
+func (r *ParticipantRequest) Update(ctx context.Context, reqObj *Participant) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Participant
+func (r *ParticipantRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type ParticipantCollectionInviteRequestBuilder struct{ BaseRequestBuilder }
+
+// Invite action undocumented
+func (b *CallParticipantsCollectionRequestBuilder) Invite(reqObj *ParticipantCollectionInviteRequestParameter) *ParticipantCollectionInviteRequestBuilder {
+ bb := &ParticipantCollectionInviteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/invite"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ParticipantCollectionInviteRequest struct{ BaseRequest }
+
+//
+func (b *ParticipantCollectionInviteRequestBuilder) Request() *ParticipantCollectionInviteRequest {
+ return &ParticipantCollectionInviteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ParticipantCollectionInviteRequest) Post(ctx context.Context) (resObj *InviteParticipantsOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ParticipantCollectionMuteAllRequestBuilder struct{ BaseRequestBuilder }
+
+// MuteAll action undocumented
+func (b *CallParticipantsCollectionRequestBuilder) MuteAll(reqObj *ParticipantCollectionMuteAllRequestParameter) *ParticipantCollectionMuteAllRequestBuilder {
+ bb := &ParticipantCollectionMuteAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/muteAll"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ParticipantCollectionMuteAllRequest struct{ BaseRequest }
+
+//
+func (b *ParticipantCollectionMuteAllRequestBuilder) Request() *ParticipantCollectionMuteAllRequest {
+ return &ParticipantCollectionMuteAllRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ParticipantCollectionMuteAllRequest) Post(ctx context.Context) (resObj *MuteParticipantsOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ParticipantMuteRequestBuilder struct{ BaseRequestBuilder }
+
+// Mute action undocumented
+func (b *ParticipantRequestBuilder) Mute(reqObj *ParticipantMuteRequestParameter) *ParticipantMuteRequestBuilder {
+ bb := &ParticipantMuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/mute"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ParticipantMuteRequest struct{ BaseRequest }
+
+//
+func (b *ParticipantMuteRequestBuilder) Request() *ParticipantMuteRequest {
+ return &ParticipantMuteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ParticipantMuteRequest) Post(ctx context.Context) (resObj *MuteParticipantOperation, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayload.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayload.go
new file mode 100644
index 00000000..e31fbddd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayload.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PayloadResponseRequestBuilder is request builder for PayloadResponse
+type PayloadResponseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PayloadResponseRequest
+func (b *PayloadResponseRequestBuilder) Request() *PayloadResponseRequest {
+ return &PayloadResponseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PayloadResponseRequest is request for PayloadResponse
+type PayloadResponseRequest struct{ BaseRequest }
+
+// Get performs GET request for PayloadResponse
+func (r *PayloadResponseRequest) Get(ctx context.Context) (resObj *PayloadResponse, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PayloadResponse
+func (r *PayloadResponseRequest) Update(ctx context.Context, reqObj *PayloadResponse) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PayloadResponse
+func (r *PayloadResponseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayment.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayment.go
new file mode 100644
index 00000000..58bdbebc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPayment.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PaymentMethodRequestBuilder is request builder for PaymentMethod
+type PaymentMethodRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PaymentMethodRequest
+func (b *PaymentMethodRequestBuilder) Request() *PaymentMethodRequest {
+ return &PaymentMethodRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PaymentMethodRequest is request for PaymentMethod
+type PaymentMethodRequest struct{ BaseRequest }
+
+// Get performs GET request for PaymentMethod
+func (r *PaymentMethodRequest) Get(ctx context.Context) (resObj *PaymentMethod, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PaymentMethod
+func (r *PaymentMethodRequest) Update(ctx context.Context, reqObj *PaymentMethod) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PaymentMethod
+func (r *PaymentMethodRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PaymentTermRequestBuilder is request builder for PaymentTerm
+type PaymentTermRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PaymentTermRequest
+func (b *PaymentTermRequestBuilder) Request() *PaymentTermRequest {
+ return &PaymentTermRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PaymentTermRequest is request for PaymentTerm
+type PaymentTermRequest struct{ BaseRequest }
+
+// Get performs GET request for PaymentTerm
+func (r *PaymentTermRequest) Get(ctx context.Context) (resObj *PaymentTerm, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PaymentTerm
+func (r *PaymentTermRequest) Update(ctx context.Context, reqObj *PaymentTerm) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PaymentTerm
+func (r *PaymentTermRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPermission.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPermission.go
new file mode 100644
index 00000000..4b745a95
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPermission.go
@@ -0,0 +1,131 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PermissionRequestBuilder is request builder for Permission
+type PermissionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PermissionRequest
+func (b *PermissionRequestBuilder) Request() *PermissionRequest {
+ return &PermissionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PermissionRequest is request for Permission
+type PermissionRequest struct{ BaseRequest }
+
+// Get performs GET request for Permission
+func (r *PermissionRequest) Get(ctx context.Context) (resObj *Permission, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Permission
+func (r *PermissionRequest) Update(ctx context.Context, reqObj *Permission) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Permission
+func (r *PermissionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type PermissionGrantRequestBuilder struct{ BaseRequestBuilder }
+
+// Grant action undocumented
+func (b *PermissionRequestBuilder) Grant(reqObj *PermissionGrantRequestParameter) *PermissionGrantRequestBuilder {
+ bb := &PermissionGrantRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/grant"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PermissionGrantRequest struct{ BaseRequest }
+
+//
+func (b *PermissionGrantRequestBuilder) Request() *PermissionGrantRequest {
+ return &PermissionGrantRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PermissionGrantRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Permission, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Permission
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Permission
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *PermissionGrantRequest) PostN(ctx context.Context, n int) ([]Permission, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *PermissionGrantRequest) Post(ctx context.Context) ([]Permission, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPerson.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPerson.go
new file mode 100644
index 00000000..ed29abd3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPerson.go
@@ -0,0 +1,170 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PersonRequestBuilder is request builder for Person
+type PersonRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonRequest
+func (b *PersonRequestBuilder) Request() *PersonRequest {
+ return &PersonRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonRequest is request for Person
+type PersonRequest struct{ BaseRequest }
+
+// Get performs GET request for Person
+func (r *PersonRequest) Get(ctx context.Context) (resObj *Person, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Person
+func (r *PersonRequest) Update(ctx context.Context, reqObj *Person) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Person
+func (r *PersonRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PersonAnniversaryRequestBuilder is request builder for PersonAnniversary
+type PersonAnniversaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonAnniversaryRequest
+func (b *PersonAnniversaryRequestBuilder) Request() *PersonAnniversaryRequest {
+ return &PersonAnniversaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonAnniversaryRequest is request for PersonAnniversary
+type PersonAnniversaryRequest struct{ BaseRequest }
+
+// Get performs GET request for PersonAnniversary
+func (r *PersonAnniversaryRequest) Get(ctx context.Context) (resObj *PersonAnniversary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PersonAnniversary
+func (r *PersonAnniversaryRequest) Update(ctx context.Context, reqObj *PersonAnniversary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PersonAnniversary
+func (r *PersonAnniversaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PersonInterestRequestBuilder is request builder for PersonInterest
+type PersonInterestRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonInterestRequest
+func (b *PersonInterestRequestBuilder) Request() *PersonInterestRequest {
+ return &PersonInterestRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonInterestRequest is request for PersonInterest
+type PersonInterestRequest struct{ BaseRequest }
+
+// Get performs GET request for PersonInterest
+func (r *PersonInterestRequest) Get(ctx context.Context) (resObj *PersonInterest, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PersonInterest
+func (r *PersonInterestRequest) Update(ctx context.Context, reqObj *PersonInterest) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PersonInterest
+func (r *PersonInterestRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PersonNameRequestBuilder is request builder for PersonName
+type PersonNameRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonNameRequest
+func (b *PersonNameRequestBuilder) Request() *PersonNameRequest {
+ return &PersonNameRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonNameRequest is request for PersonName
+type PersonNameRequest struct{ BaseRequest }
+
+// Get performs GET request for PersonName
+func (r *PersonNameRequest) Get(ctx context.Context) (resObj *PersonName, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PersonName
+func (r *PersonNameRequest) Update(ctx context.Context, reqObj *PersonName) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PersonName
+func (r *PersonNameRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PersonWebsiteRequestBuilder is request builder for PersonWebsite
+type PersonWebsiteRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PersonWebsiteRequest
+func (b *PersonWebsiteRequestBuilder) Request() *PersonWebsiteRequest {
+ return &PersonWebsiteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PersonWebsiteRequest is request for PersonWebsite
+type PersonWebsiteRequest struct{ BaseRequest }
+
+// Get performs GET request for PersonWebsite
+func (r *PersonWebsiteRequest) Get(ctx context.Context) (resObj *PersonWebsite, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PersonWebsite
+func (r *PersonWebsiteRequest) Update(ctx context.Context, reqObj *PersonWebsite) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PersonWebsite
+func (r *PersonWebsiteRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPicture.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPicture.go
new file mode 100644
index 00000000..c26f120f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPicture.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PictureRequestBuilder is request builder for Picture
+type PictureRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PictureRequest
+func (b *PictureRequestBuilder) Request() *PictureRequest {
+ return &PictureRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PictureRequest is request for Picture
+type PictureRequest struct{ BaseRequest }
+
+// Get performs GET request for Picture
+func (r *PictureRequest) Get(ctx context.Context) (resObj *Picture, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Picture
+func (r *PictureRequest) Update(ctx context.Context, reqObj *Picture) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Picture
+func (r *PictureRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlace.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlace.go
new file mode 100644
index 00000000..b69def77
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlace.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlaceRequestBuilder is request builder for Place
+type PlaceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlaceRequest
+func (b *PlaceRequestBuilder) Request() *PlaceRequest {
+ return &PlaceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlaceRequest is request for Place
+type PlaceRequest struct{ BaseRequest }
+
+// Get performs GET request for Place
+func (r *PlaceRequest) Get(ctx context.Context) (resObj *Place, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Place
+func (r *PlaceRequest) Update(ctx context.Context, reqObj *Place) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Place
+func (r *PlaceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlanner.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlanner.go
new file mode 100644
index 00000000..2b352565
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPlanner.go
@@ -0,0 +1,401 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PlannerRequestBuilder is request builder for Planner
+type PlannerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerRequest
+func (b *PlannerRequestBuilder) Request() *PlannerRequest {
+ return &PlannerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerRequest is request for Planner
+type PlannerRequest struct{ BaseRequest }
+
+// Get performs GET request for Planner
+func (r *PlannerRequest) Get(ctx context.Context) (resObj *Planner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Planner
+func (r *PlannerRequest) Update(ctx context.Context, reqObj *Planner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Planner
+func (r *PlannerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerAssignedToTaskBoardTaskFormatRequestBuilder is request builder for PlannerAssignedToTaskBoardTaskFormat
+type PlannerAssignedToTaskBoardTaskFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerAssignedToTaskBoardTaskFormatRequest
+func (b *PlannerAssignedToTaskBoardTaskFormatRequestBuilder) Request() *PlannerAssignedToTaskBoardTaskFormatRequest {
+ return &PlannerAssignedToTaskBoardTaskFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerAssignedToTaskBoardTaskFormatRequest is request for PlannerAssignedToTaskBoardTaskFormat
+type PlannerAssignedToTaskBoardTaskFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerAssignedToTaskBoardTaskFormat
+func (r *PlannerAssignedToTaskBoardTaskFormatRequest) Get(ctx context.Context) (resObj *PlannerAssignedToTaskBoardTaskFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerAssignedToTaskBoardTaskFormat
+func (r *PlannerAssignedToTaskBoardTaskFormatRequest) Update(ctx context.Context, reqObj *PlannerAssignedToTaskBoardTaskFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerAssignedToTaskBoardTaskFormat
+func (r *PlannerAssignedToTaskBoardTaskFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerBucketRequestBuilder is request builder for PlannerBucket
+type PlannerBucketRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerBucketRequest
+func (b *PlannerBucketRequestBuilder) Request() *PlannerBucketRequest {
+ return &PlannerBucketRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerBucketRequest is request for PlannerBucket
+type PlannerBucketRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerBucket
+func (r *PlannerBucketRequest) Get(ctx context.Context) (resObj *PlannerBucket, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerBucket
+func (r *PlannerBucketRequest) Update(ctx context.Context, reqObj *PlannerBucket) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerBucket
+func (r *PlannerBucketRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerBucketTaskBoardTaskFormatRequestBuilder is request builder for PlannerBucketTaskBoardTaskFormat
+type PlannerBucketTaskBoardTaskFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerBucketTaskBoardTaskFormatRequest
+func (b *PlannerBucketTaskBoardTaskFormatRequestBuilder) Request() *PlannerBucketTaskBoardTaskFormatRequest {
+ return &PlannerBucketTaskBoardTaskFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerBucketTaskBoardTaskFormatRequest is request for PlannerBucketTaskBoardTaskFormat
+type PlannerBucketTaskBoardTaskFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerBucketTaskBoardTaskFormat
+func (r *PlannerBucketTaskBoardTaskFormatRequest) Get(ctx context.Context) (resObj *PlannerBucketTaskBoardTaskFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerBucketTaskBoardTaskFormat
+func (r *PlannerBucketTaskBoardTaskFormatRequest) Update(ctx context.Context, reqObj *PlannerBucketTaskBoardTaskFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerBucketTaskBoardTaskFormat
+func (r *PlannerBucketTaskBoardTaskFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerDeltaRequestBuilder is request builder for PlannerDelta
+type PlannerDeltaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerDeltaRequest
+func (b *PlannerDeltaRequestBuilder) Request() *PlannerDeltaRequest {
+ return &PlannerDeltaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerDeltaRequest is request for PlannerDelta
+type PlannerDeltaRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerDelta
+func (r *PlannerDeltaRequest) Get(ctx context.Context) (resObj *PlannerDelta, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerDelta
+func (r *PlannerDeltaRequest) Update(ctx context.Context, reqObj *PlannerDelta) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerDelta
+func (r *PlannerDeltaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerGroupRequestBuilder is request builder for PlannerGroup
+type PlannerGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerGroupRequest
+func (b *PlannerGroupRequestBuilder) Request() *PlannerGroupRequest {
+ return &PlannerGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerGroupRequest is request for PlannerGroup
+type PlannerGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerGroup
+func (r *PlannerGroupRequest) Get(ctx context.Context) (resObj *PlannerGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerGroup
+func (r *PlannerGroupRequest) Update(ctx context.Context, reqObj *PlannerGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerGroup
+func (r *PlannerGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerPlanRequestBuilder is request builder for PlannerPlan
+type PlannerPlanRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerPlanRequest
+func (b *PlannerPlanRequestBuilder) Request() *PlannerPlanRequest {
+ return &PlannerPlanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerPlanRequest is request for PlannerPlan
+type PlannerPlanRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerPlan
+func (r *PlannerPlanRequest) Get(ctx context.Context) (resObj *PlannerPlan, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerPlan
+func (r *PlannerPlanRequest) Update(ctx context.Context, reqObj *PlannerPlan) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerPlan
+func (r *PlannerPlanRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerPlanDetailsRequestBuilder is request builder for PlannerPlanDetails
+type PlannerPlanDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerPlanDetailsRequest
+func (b *PlannerPlanDetailsRequestBuilder) Request() *PlannerPlanDetailsRequest {
+ return &PlannerPlanDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerPlanDetailsRequest is request for PlannerPlanDetails
+type PlannerPlanDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerPlanDetails
+func (r *PlannerPlanDetailsRequest) Get(ctx context.Context) (resObj *PlannerPlanDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerPlanDetails
+func (r *PlannerPlanDetailsRequest) Update(ctx context.Context, reqObj *PlannerPlanDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerPlanDetails
+func (r *PlannerPlanDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerProgressTaskBoardTaskFormatRequestBuilder is request builder for PlannerProgressTaskBoardTaskFormat
+type PlannerProgressTaskBoardTaskFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerProgressTaskBoardTaskFormatRequest
+func (b *PlannerProgressTaskBoardTaskFormatRequestBuilder) Request() *PlannerProgressTaskBoardTaskFormatRequest {
+ return &PlannerProgressTaskBoardTaskFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerProgressTaskBoardTaskFormatRequest is request for PlannerProgressTaskBoardTaskFormat
+type PlannerProgressTaskBoardTaskFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerProgressTaskBoardTaskFormat
+func (r *PlannerProgressTaskBoardTaskFormatRequest) Get(ctx context.Context) (resObj *PlannerProgressTaskBoardTaskFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerProgressTaskBoardTaskFormat
+func (r *PlannerProgressTaskBoardTaskFormatRequest) Update(ctx context.Context, reqObj *PlannerProgressTaskBoardTaskFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerProgressTaskBoardTaskFormat
+func (r *PlannerProgressTaskBoardTaskFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerTaskRequestBuilder is request builder for PlannerTask
+type PlannerTaskRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerTaskRequest
+func (b *PlannerTaskRequestBuilder) Request() *PlannerTaskRequest {
+ return &PlannerTaskRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerTaskRequest is request for PlannerTask
+type PlannerTaskRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerTask
+func (r *PlannerTaskRequest) Get(ctx context.Context) (resObj *PlannerTask, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerTask
+func (r *PlannerTaskRequest) Update(ctx context.Context, reqObj *PlannerTask) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerTask
+func (r *PlannerTaskRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerTaskDetailsRequestBuilder is request builder for PlannerTaskDetails
+type PlannerTaskDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerTaskDetailsRequest
+func (b *PlannerTaskDetailsRequestBuilder) Request() *PlannerTaskDetailsRequest {
+ return &PlannerTaskDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerTaskDetailsRequest is request for PlannerTaskDetails
+type PlannerTaskDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerTaskDetails
+func (r *PlannerTaskDetailsRequest) Get(ctx context.Context) (resObj *PlannerTaskDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerTaskDetails
+func (r *PlannerTaskDetailsRequest) Update(ctx context.Context, reqObj *PlannerTaskDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerTaskDetails
+func (r *PlannerTaskDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PlannerUserRequestBuilder is request builder for PlannerUser
+type PlannerUserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PlannerUserRequest
+func (b *PlannerUserRequestBuilder) Request() *PlannerUserRequest {
+ return &PlannerUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PlannerUserRequest is request for PlannerUser
+type PlannerUserRequest struct{ BaseRequest }
+
+// Get performs GET request for PlannerUser
+func (r *PlannerUserRequest) Get(ctx context.Context) (resObj *PlannerUser, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PlannerUser
+func (r *PlannerUserRequest) Update(ctx context.Context, reqObj *PlannerUser) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PlannerUser
+func (r *PlannerUserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPolicy.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPolicy.go
new file mode 100644
index 00000000..c18de810
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPolicy.go
@@ -0,0 +1,256 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// PolicyRequestBuilder is request builder for Policy
+type PolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PolicyRequest
+func (b *PolicyRequestBuilder) Request() *PolicyRequest {
+ return &PolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PolicyRequest is request for Policy
+type PolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for Policy
+func (r *PolicyRequest) Get(ctx context.Context) (resObj *Policy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Policy
+func (r *PolicyRequest) Update(ctx context.Context, reqObj *Policy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Policy
+func (r *PolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PolicySetRequestBuilder is request builder for PolicySet
+type PolicySetRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PolicySetRequest
+func (b *PolicySetRequestBuilder) Request() *PolicySetRequest {
+ return &PolicySetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PolicySetRequest is request for PolicySet
+type PolicySetRequest struct{ BaseRequest }
+
+// Get performs GET request for PolicySet
+func (r *PolicySetRequest) Get(ctx context.Context) (resObj *PolicySet, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PolicySet
+func (r *PolicySetRequest) Update(ctx context.Context, reqObj *PolicySet) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PolicySet
+func (r *PolicySetRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PolicySetAssignmentRequestBuilder is request builder for PolicySetAssignment
+type PolicySetAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PolicySetAssignmentRequest
+func (b *PolicySetAssignmentRequestBuilder) Request() *PolicySetAssignmentRequest {
+ return &PolicySetAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PolicySetAssignmentRequest is request for PolicySetAssignment
+type PolicySetAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for PolicySetAssignment
+func (r *PolicySetAssignmentRequest) Get(ctx context.Context) (resObj *PolicySetAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PolicySetAssignment
+func (r *PolicySetAssignmentRequest) Update(ctx context.Context, reqObj *PolicySetAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PolicySetAssignment
+func (r *PolicySetAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PolicySetItemRequestBuilder is request builder for PolicySetItem
+type PolicySetItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PolicySetItemRequest
+func (b *PolicySetItemRequestBuilder) Request() *PolicySetItemRequest {
+ return &PolicySetItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PolicySetItemRequest is request for PolicySetItem
+type PolicySetItemRequest struct{ BaseRequest }
+
+// Get performs GET request for PolicySetItem
+func (r *PolicySetItemRequest) Get(ctx context.Context) (resObj *PolicySetItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PolicySetItem
+func (r *PolicySetItemRequest) Update(ctx context.Context, reqObj *PolicySetItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PolicySetItem
+func (r *PolicySetItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type PolicySetCollectionGetPolicySetsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPolicySets action undocumented
+func (b *DeviceAppManagementPolicySetsCollectionRequestBuilder) GetPolicySets(reqObj *PolicySetCollectionGetPolicySetsRequestParameter) *PolicySetCollectionGetPolicySetsRequestBuilder {
+ bb := &PolicySetCollectionGetPolicySetsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPolicySets"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PolicySetCollectionGetPolicySetsRequest struct{ BaseRequest }
+
+//
+func (b *PolicySetCollectionGetPolicySetsRequestBuilder) Request() *PolicySetCollectionGetPolicySetsRequest {
+ return &PolicySetCollectionGetPolicySetsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PolicySetCollectionGetPolicySetsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]PolicySet, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []PolicySet
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []PolicySet
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *PolicySetCollectionGetPolicySetsRequest) PostN(ctx context.Context, n int) ([]PolicySet, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *PolicySetCollectionGetPolicySetsRequest) Post(ctx context.Context) ([]PolicySet, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type PolicySetUpdateRequestBuilder struct{ BaseRequestBuilder }
+
+// Update action undocumented
+func (b *PolicySetRequestBuilder) Update(reqObj *PolicySetUpdateRequestParameter) *PolicySetUpdateRequestBuilder {
+ bb := &PolicySetUpdateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/update"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PolicySetUpdateRequest struct{ BaseRequest }
+
+//
+func (b *PolicySetUpdateRequestBuilder) Request() *PolicySetUpdateRequest {
+ return &PolicySetUpdateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PolicySetUpdateRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPost.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPost.go
new file mode 100644
index 00000000..654ea0ff
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPost.go
@@ -0,0 +1,90 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PostRequestBuilder is request builder for Post
+type PostRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PostRequest
+func (b *PostRequestBuilder) Request() *PostRequest {
+ return &PostRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PostRequest is request for Post
+type PostRequest struct{ BaseRequest }
+
+// Get performs GET request for Post
+func (r *PostRequest) Get(ctx context.Context) (resObj *Post, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Post
+func (r *PostRequest) Update(ctx context.Context, reqObj *Post) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Post
+func (r *PostRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type PostReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Reply action undocumented
+func (b *PostRequestBuilder) Reply(reqObj *PostReplyRequestParameter) *PostReplyRequestBuilder {
+ bb := &PostReplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PostReplyRequest struct{ BaseRequest }
+
+//
+func (b *PostReplyRequestBuilder) Request() *PostReplyRequest {
+ return &PostReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PostReplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type PostForwardRequestBuilder struct{ BaseRequestBuilder }
+
+// Forward action undocumented
+func (b *PostRequestBuilder) Forward(reqObj *PostForwardRequestParameter) *PostForwardRequestBuilder {
+ bb := &PostForwardRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/forward"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PostForwardRequest struct{ BaseRequest }
+
+//
+func (b *PostForwardRequestBuilder) Request() *PostForwardRequest {
+ return &PostForwardRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PostForwardRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPresence.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPresence.go
new file mode 100644
index 00000000..5363317c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPresence.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PresenceRequestBuilder is request builder for Presence
+type PresenceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PresenceRequest
+func (b *PresenceRequestBuilder) Request() *PresenceRequest {
+ return &PresenceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PresenceRequest is request for Presence
+type PresenceRequest struct{ BaseRequest }
+
+// Get performs GET request for Presence
+func (r *PresenceRequest) Get(ctx context.Context) (resObj *Presence, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Presence
+func (r *PresenceRequest) Update(ctx context.Context, reqObj *Presence) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Presence
+func (r *PresenceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPrivileged.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPrivileged.go
new file mode 100644
index 00000000..6964f237
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPrivileged.go
@@ -0,0 +1,437 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PrivilegedAccessRequestBuilder is request builder for PrivilegedAccess
+type PrivilegedAccessRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedAccessRequest
+func (b *PrivilegedAccessRequestBuilder) Request() *PrivilegedAccessRequest {
+ return &PrivilegedAccessRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedAccessRequest is request for PrivilegedAccess
+type PrivilegedAccessRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedAccess
+func (r *PrivilegedAccessRequest) Get(ctx context.Context) (resObj *PrivilegedAccess, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedAccess
+func (r *PrivilegedAccessRequest) Update(ctx context.Context, reqObj *PrivilegedAccess) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedAccess
+func (r *PrivilegedAccessRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PrivilegedApprovalRequestBuilder is request builder for PrivilegedApproval
+type PrivilegedApprovalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedApprovalRequest
+func (b *PrivilegedApprovalRequestBuilder) Request() *PrivilegedApprovalRequest {
+ return &PrivilegedApprovalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedApprovalRequest is request for PrivilegedApproval
+type PrivilegedApprovalRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedApproval
+func (r *PrivilegedApprovalRequest) Get(ctx context.Context) (resObj *PrivilegedApproval, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedApproval
+func (r *PrivilegedApprovalRequest) Update(ctx context.Context, reqObj *PrivilegedApproval) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedApproval
+func (r *PrivilegedApprovalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PrivilegedOperationEventRequestBuilder is request builder for PrivilegedOperationEvent
+type PrivilegedOperationEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedOperationEventRequest
+func (b *PrivilegedOperationEventRequestBuilder) Request() *PrivilegedOperationEventRequest {
+ return &PrivilegedOperationEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedOperationEventRequest is request for PrivilegedOperationEvent
+type PrivilegedOperationEventRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedOperationEvent
+func (r *PrivilegedOperationEventRequest) Get(ctx context.Context) (resObj *PrivilegedOperationEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedOperationEvent
+func (r *PrivilegedOperationEventRequest) Update(ctx context.Context, reqObj *PrivilegedOperationEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedOperationEvent
+func (r *PrivilegedOperationEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PrivilegedRoleRequestBuilder is request builder for PrivilegedRole
+type PrivilegedRoleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleRequest
+func (b *PrivilegedRoleRequestBuilder) Request() *PrivilegedRoleRequest {
+ return &PrivilegedRoleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleRequest is request for PrivilegedRole
+type PrivilegedRoleRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRole
+func (r *PrivilegedRoleRequest) Get(ctx context.Context) (resObj *PrivilegedRole, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRole
+func (r *PrivilegedRoleRequest) Update(ctx context.Context, reqObj *PrivilegedRole) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRole
+func (r *PrivilegedRoleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PrivilegedRoleAssignmentRequestBuilder is request builder for PrivilegedRoleAssignment
+type PrivilegedRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleAssignmentRequest
+func (b *PrivilegedRoleAssignmentRequestBuilder) Request() *PrivilegedRoleAssignmentRequest {
+ return &PrivilegedRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleAssignmentRequest is request for PrivilegedRoleAssignment
+type PrivilegedRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRoleAssignment
+func (r *PrivilegedRoleAssignmentRequest) Get(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRoleAssignment
+func (r *PrivilegedRoleAssignmentRequest) Update(ctx context.Context, reqObj *PrivilegedRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRoleAssignment
+func (r *PrivilegedRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PrivilegedRoleAssignmentRequestObjectRequestBuilder is request builder for PrivilegedRoleAssignmentRequestObject
+type PrivilegedRoleAssignmentRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleAssignmentRequestObjectRequest
+func (b *PrivilegedRoleAssignmentRequestObjectRequestBuilder) Request() *PrivilegedRoleAssignmentRequestObjectRequest {
+ return &PrivilegedRoleAssignmentRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleAssignmentRequestObjectRequest is request for PrivilegedRoleAssignmentRequestObject
+type PrivilegedRoleAssignmentRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRoleAssignmentRequestObject
+func (r *PrivilegedRoleAssignmentRequestObjectRequest) Get(ctx context.Context) (resObj *PrivilegedRoleAssignmentRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRoleAssignmentRequestObject
+func (r *PrivilegedRoleAssignmentRequestObjectRequest) Update(ctx context.Context, reqObj *PrivilegedRoleAssignmentRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRoleAssignmentRequestObject
+func (r *PrivilegedRoleAssignmentRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PrivilegedRoleSettingsRequestBuilder is request builder for PrivilegedRoleSettings
+type PrivilegedRoleSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleSettingsRequest
+func (b *PrivilegedRoleSettingsRequestBuilder) Request() *PrivilegedRoleSettingsRequest {
+ return &PrivilegedRoleSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleSettingsRequest is request for PrivilegedRoleSettings
+type PrivilegedRoleSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRoleSettings
+func (r *PrivilegedRoleSettingsRequest) Get(ctx context.Context) (resObj *PrivilegedRoleSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRoleSettings
+func (r *PrivilegedRoleSettingsRequest) Update(ctx context.Context, reqObj *PrivilegedRoleSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRoleSettings
+func (r *PrivilegedRoleSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PrivilegedRoleSummaryRequestBuilder is request builder for PrivilegedRoleSummary
+type PrivilegedRoleSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedRoleSummaryRequest
+func (b *PrivilegedRoleSummaryRequestBuilder) Request() *PrivilegedRoleSummaryRequest {
+ return &PrivilegedRoleSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedRoleSummaryRequest is request for PrivilegedRoleSummary
+type PrivilegedRoleSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedRoleSummary
+func (r *PrivilegedRoleSummaryRequest) Get(ctx context.Context) (resObj *PrivilegedRoleSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedRoleSummary
+func (r *PrivilegedRoleSummaryRequest) Update(ctx context.Context, reqObj *PrivilegedRoleSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedRoleSummary
+func (r *PrivilegedRoleSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PrivilegedSignupStatusRequestBuilder is request builder for PrivilegedSignupStatus
+type PrivilegedSignupStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PrivilegedSignupStatusRequest
+func (b *PrivilegedSignupStatusRequestBuilder) Request() *PrivilegedSignupStatusRequest {
+ return &PrivilegedSignupStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PrivilegedSignupStatusRequest is request for PrivilegedSignupStatus
+type PrivilegedSignupStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for PrivilegedSignupStatus
+func (r *PrivilegedSignupStatusRequest) Get(ctx context.Context) (resObj *PrivilegedSignupStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PrivilegedSignupStatus
+func (r *PrivilegedSignupStatusRequest) Update(ctx context.Context, reqObj *PrivilegedSignupStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PrivilegedSignupStatus
+func (r *PrivilegedSignupStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type PrivilegedRoleSelfActivateRequestBuilder struct{ BaseRequestBuilder }
+
+// SelfActivate action undocumented
+func (b *PrivilegedRoleRequestBuilder) SelfActivate(reqObj *PrivilegedRoleSelfActivateRequestParameter) *PrivilegedRoleSelfActivateRequestBuilder {
+ bb := &PrivilegedRoleSelfActivateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/selfActivate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleSelfActivateRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleSelfActivateRequestBuilder) Request() *PrivilegedRoleSelfActivateRequest {
+ return &PrivilegedRoleSelfActivateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleSelfActivateRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type PrivilegedRoleSelfDeactivateRequestBuilder struct{ BaseRequestBuilder }
+
+// SelfDeactivate action undocumented
+func (b *PrivilegedRoleRequestBuilder) SelfDeactivate(reqObj *PrivilegedRoleSelfDeactivateRequestParameter) *PrivilegedRoleSelfDeactivateRequestBuilder {
+ bb := &PrivilegedRoleSelfDeactivateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/selfDeactivate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleSelfDeactivateRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleSelfDeactivateRequestBuilder) Request() *PrivilegedRoleSelfDeactivateRequest {
+ return &PrivilegedRoleSelfDeactivateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleSelfDeactivateRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type PrivilegedRoleAssignmentMakePermanentRequestBuilder struct{ BaseRequestBuilder }
+
+// MakePermanent action undocumented
+func (b *PrivilegedRoleAssignmentRequestBuilder) MakePermanent(reqObj *PrivilegedRoleAssignmentMakePermanentRequestParameter) *PrivilegedRoleAssignmentMakePermanentRequestBuilder {
+ bb := &PrivilegedRoleAssignmentMakePermanentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/makePermanent"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleAssignmentMakePermanentRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleAssignmentMakePermanentRequestBuilder) Request() *PrivilegedRoleAssignmentMakePermanentRequest {
+ return &PrivilegedRoleAssignmentMakePermanentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleAssignmentMakePermanentRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type PrivilegedRoleAssignmentMakeEligibleRequestBuilder struct{ BaseRequestBuilder }
+
+// MakeEligible action undocumented
+func (b *PrivilegedRoleAssignmentRequestBuilder) MakeEligible(reqObj *PrivilegedRoleAssignmentMakeEligibleRequestParameter) *PrivilegedRoleAssignmentMakeEligibleRequestBuilder {
+ bb := &PrivilegedRoleAssignmentMakeEligibleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/makeEligible"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleAssignmentMakeEligibleRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleAssignmentMakeEligibleRequestBuilder) Request() *PrivilegedRoleAssignmentMakeEligibleRequest {
+ return &PrivilegedRoleAssignmentMakeEligibleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleAssignmentMakeEligibleRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignment, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *PrivilegedRoleAssignmentRequestObjectRequestBuilder) Cancel(reqObj *PrivilegedRoleAssignmentRequestObjectCancelRequestParameter) *PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder {
+ bb := &PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PrivilegedRoleAssignmentRequestObjectCancelRequest struct{ BaseRequest }
+
+//
+func (b *PrivilegedRoleAssignmentRequestObjectCancelRequestBuilder) Request() *PrivilegedRoleAssignmentRequestObjectCancelRequest {
+ return &PrivilegedRoleAssignmentRequestObjectCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PrivilegedRoleAssignmentRequestObjectCancelRequest) Post(ctx context.Context) (resObj *PrivilegedRoleAssignmentRequestObject, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go
new file mode 100644
index 00000000..5648bc5c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProfile.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProfileRequestBuilder is request builder for Profile
+type ProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProfileRequest
+func (b *ProfileRequestBuilder) Request() *ProfileRequest {
+ return &ProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProfileRequest is request for Profile
+type ProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for Profile
+func (r *ProfileRequest) Get(ctx context.Context) (resObj *Profile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Profile
+func (r *ProfileRequest) Update(ctx context.Context, reqObj *Profile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Profile
+func (r *ProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ProfilePhotoRequestBuilder is request builder for ProfilePhoto
+type ProfilePhotoRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProfilePhotoRequest
+func (b *ProfilePhotoRequestBuilder) Request() *ProfilePhotoRequest {
+ return &ProfilePhotoRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProfilePhotoRequest is request for ProfilePhoto
+type ProfilePhotoRequest struct{ BaseRequest }
+
+// Get performs GET request for ProfilePhoto
+func (r *ProfilePhotoRequest) Get(ctx context.Context) (resObj *ProfilePhoto, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProfilePhoto
+func (r *ProfilePhotoRequest) Update(ctx context.Context, reqObj *ProfilePhoto) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProfilePhoto
+func (r *ProfilePhotoRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestProgram.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProgram.go
new file mode 100644
index 00000000..028e303c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProgram.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProgramRequestBuilder is request builder for Program
+type ProgramRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProgramRequest
+func (b *ProgramRequestBuilder) Request() *ProgramRequest {
+ return &ProgramRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProgramRequest is request for Program
+type ProgramRequest struct{ BaseRequest }
+
+// Get performs GET request for Program
+func (r *ProgramRequest) Get(ctx context.Context) (resObj *Program, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Program
+func (r *ProgramRequest) Update(ctx context.Context, reqObj *Program) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Program
+func (r *ProgramRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ProgramControlRequestBuilder is request builder for ProgramControl
+type ProgramControlRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProgramControlRequest
+func (b *ProgramControlRequestBuilder) Request() *ProgramControlRequest {
+ return &ProgramControlRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProgramControlRequest is request for ProgramControl
+type ProgramControlRequest struct{ BaseRequest }
+
+// Get performs GET request for ProgramControl
+func (r *ProgramControlRequest) Get(ctx context.Context) (resObj *ProgramControl, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProgramControl
+func (r *ProgramControlRequest) Update(ctx context.Context, reqObj *ProgramControl) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProgramControl
+func (r *ProgramControlRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ProgramControlTypeRequestBuilder is request builder for ProgramControlType
+type ProgramControlTypeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProgramControlTypeRequest
+func (b *ProgramControlTypeRequestBuilder) Request() *ProgramControlTypeRequest {
+ return &ProgramControlTypeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProgramControlTypeRequest is request for ProgramControlType
+type ProgramControlTypeRequest struct{ BaseRequest }
+
+// Get performs GET request for ProgramControlType
+func (r *ProgramControlTypeRequest) Get(ctx context.Context) (resObj *ProgramControlType, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProgramControlType
+func (r *ProgramControlTypeRequest) Update(ctx context.Context, reqObj *ProgramControlType) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProgramControlType
+func (r *ProgramControlTypeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestProject.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProject.go
new file mode 100644
index 00000000..ab6911bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProject.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProjectParticipationRequestBuilder is request builder for ProjectParticipation
+type ProjectParticipationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProjectParticipationRequest
+func (b *ProjectParticipationRequestBuilder) Request() *ProjectParticipationRequest {
+ return &ProjectParticipationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProjectParticipationRequest is request for ProjectParticipation
+type ProjectParticipationRequest struct{ BaseRequest }
+
+// Get performs GET request for ProjectParticipation
+func (r *ProjectParticipationRequest) Get(ctx context.Context) (resObj *ProjectParticipation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProjectParticipation
+func (r *ProjectParticipationRequest) Update(ctx context.Context, reqObj *ProjectParticipation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProjectParticipation
+func (r *ProjectParticipationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestProvider.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProvider.go
new file mode 100644
index 00000000..0425dcbb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProvider.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProviderTenantSettingRequestBuilder is request builder for ProviderTenantSetting
+type ProviderTenantSettingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProviderTenantSettingRequest
+func (b *ProviderTenantSettingRequestBuilder) Request() *ProviderTenantSettingRequest {
+ return &ProviderTenantSettingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProviderTenantSettingRequest is request for ProviderTenantSetting
+type ProviderTenantSettingRequest struct{ BaseRequest }
+
+// Get performs GET request for ProviderTenantSetting
+func (r *ProviderTenantSettingRequest) Get(ctx context.Context) (resObj *ProviderTenantSetting, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProviderTenantSetting
+func (r *ProviderTenantSettingRequest) Update(ctx context.Context, reqObj *ProviderTenantSetting) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProviderTenantSetting
+func (r *ProviderTenantSettingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestProvisioning.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProvisioning.go
new file mode 100644
index 00000000..e5bb5bde
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestProvisioning.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ProvisioningObjectSummaryRequestBuilder is request builder for ProvisioningObjectSummary
+type ProvisioningObjectSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ProvisioningObjectSummaryRequest
+func (b *ProvisioningObjectSummaryRequestBuilder) Request() *ProvisioningObjectSummaryRequest {
+ return &ProvisioningObjectSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ProvisioningObjectSummaryRequest is request for ProvisioningObjectSummary
+type ProvisioningObjectSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for ProvisioningObjectSummary
+func (r *ProvisioningObjectSummaryRequest) Get(ctx context.Context) (resObj *ProvisioningObjectSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ProvisioningObjectSummary
+func (r *ProvisioningObjectSummaryRequest) Update(ctx context.Context, reqObj *ProvisioningObjectSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ProvisioningObjectSummary
+func (r *ProvisioningObjectSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPublished.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPublished.go
new file mode 100644
index 00000000..350c43ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPublished.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PublishedResourceRequestBuilder is request builder for PublishedResource
+type PublishedResourceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PublishedResourceRequest
+func (b *PublishedResourceRequestBuilder) Request() *PublishedResourceRequest {
+ return &PublishedResourceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PublishedResourceRequest is request for PublishedResource
+type PublishedResourceRequest struct{ BaseRequest }
+
+// Get performs GET request for PublishedResource
+func (r *PublishedResourceRequest) Get(ctx context.Context) (resObj *PublishedResource, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PublishedResource
+func (r *PublishedResourceRequest) Update(ctx context.Context, reqObj *PublishedResource) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PublishedResource
+func (r *PublishedResourceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestPurchase.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPurchase.go
new file mode 100644
index 00000000..196b3886
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestPurchase.go
@@ -0,0 +1,97 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// PurchaseInvoiceRequestBuilder is request builder for PurchaseInvoice
+type PurchaseInvoiceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PurchaseInvoiceRequest
+func (b *PurchaseInvoiceRequestBuilder) Request() *PurchaseInvoiceRequest {
+ return &PurchaseInvoiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PurchaseInvoiceRequest is request for PurchaseInvoice
+type PurchaseInvoiceRequest struct{ BaseRequest }
+
+// Get performs GET request for PurchaseInvoice
+func (r *PurchaseInvoiceRequest) Get(ctx context.Context) (resObj *PurchaseInvoice, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PurchaseInvoice
+func (r *PurchaseInvoiceRequest) Update(ctx context.Context, reqObj *PurchaseInvoice) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PurchaseInvoice
+func (r *PurchaseInvoiceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// PurchaseInvoiceLineRequestBuilder is request builder for PurchaseInvoiceLine
+type PurchaseInvoiceLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns PurchaseInvoiceLineRequest
+func (b *PurchaseInvoiceLineRequestBuilder) Request() *PurchaseInvoiceLineRequest {
+ return &PurchaseInvoiceLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// PurchaseInvoiceLineRequest is request for PurchaseInvoiceLine
+type PurchaseInvoiceLineRequest struct{ BaseRequest }
+
+// Get performs GET request for PurchaseInvoiceLine
+func (r *PurchaseInvoiceLineRequest) Get(ctx context.Context) (resObj *PurchaseInvoiceLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for PurchaseInvoiceLine
+func (r *PurchaseInvoiceLineRequest) Update(ctx context.Context, reqObj *PurchaseInvoiceLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for PurchaseInvoiceLine
+func (r *PurchaseInvoiceLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type PurchaseInvoicePostRequestBuilder struct{ BaseRequestBuilder }
+
+// Post action undocumented
+func (b *PurchaseInvoiceRequestBuilder) Post(reqObj *PurchaseInvoicePostRequestParameter) *PurchaseInvoicePostRequestBuilder {
+ bb := &PurchaseInvoicePostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/post"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type PurchaseInvoicePostRequest struct{ BaseRequest }
+
+//
+func (b *PurchaseInvoicePostRequestBuilder) Request() *PurchaseInvoicePostRequest {
+ return &PurchaseInvoicePostRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *PurchaseInvoicePostRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRbac.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRbac.go
new file mode 100644
index 00000000..4312d5a7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRbac.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RbacApplicationRequestBuilder is request builder for RbacApplication
+type RbacApplicationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RbacApplicationRequest
+func (b *RbacApplicationRequestBuilder) Request() *RbacApplicationRequest {
+ return &RbacApplicationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RbacApplicationRequest is request for RbacApplication
+type RbacApplicationRequest struct{ BaseRequest }
+
+// Get performs GET request for RbacApplication
+func (r *RbacApplicationRequest) Get(ctx context.Context) (resObj *RbacApplication, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RbacApplication
+func (r *RbacApplicationRequest) Update(ctx context.Context, reqObj *RbacApplication) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RbacApplication
+func (r *RbacApplicationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRemote.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRemote.go
new file mode 100644
index 00000000..0b77c8e0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRemote.go
@@ -0,0 +1,123 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RemoteActionAuditRequestBuilder is request builder for RemoteActionAudit
+type RemoteActionAuditRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RemoteActionAuditRequest
+func (b *RemoteActionAuditRequestBuilder) Request() *RemoteActionAuditRequest {
+ return &RemoteActionAuditRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RemoteActionAuditRequest is request for RemoteActionAudit
+type RemoteActionAuditRequest struct{ BaseRequest }
+
+// Get performs GET request for RemoteActionAudit
+func (r *RemoteActionAuditRequest) Get(ctx context.Context) (resObj *RemoteActionAudit, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RemoteActionAudit
+func (r *RemoteActionAuditRequest) Update(ctx context.Context, reqObj *RemoteActionAudit) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RemoteActionAudit
+func (r *RemoteActionAuditRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RemoteAssistancePartnerRequestBuilder is request builder for RemoteAssistancePartner
+type RemoteAssistancePartnerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RemoteAssistancePartnerRequest
+func (b *RemoteAssistancePartnerRequestBuilder) Request() *RemoteAssistancePartnerRequest {
+ return &RemoteAssistancePartnerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RemoteAssistancePartnerRequest is request for RemoteAssistancePartner
+type RemoteAssistancePartnerRequest struct{ BaseRequest }
+
+// Get performs GET request for RemoteAssistancePartner
+func (r *RemoteAssistancePartnerRequest) Get(ctx context.Context) (resObj *RemoteAssistancePartner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RemoteAssistancePartner
+func (r *RemoteAssistancePartnerRequest) Update(ctx context.Context, reqObj *RemoteAssistancePartner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RemoteAssistancePartner
+func (r *RemoteAssistancePartnerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type RemoteAssistancePartnerBeginOnboardingRequestBuilder struct{ BaseRequestBuilder }
+
+// BeginOnboarding action undocumented
+func (b *RemoteAssistancePartnerRequestBuilder) BeginOnboarding(reqObj *RemoteAssistancePartnerBeginOnboardingRequestParameter) *RemoteAssistancePartnerBeginOnboardingRequestBuilder {
+ bb := &RemoteAssistancePartnerBeginOnboardingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/beginOnboarding"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RemoteAssistancePartnerBeginOnboardingRequest struct{ BaseRequest }
+
+//
+func (b *RemoteAssistancePartnerBeginOnboardingRequestBuilder) Request() *RemoteAssistancePartnerBeginOnboardingRequest {
+ return &RemoteAssistancePartnerBeginOnboardingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RemoteAssistancePartnerBeginOnboardingRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type RemoteAssistancePartnerDisconnectRequestBuilder struct{ BaseRequestBuilder }
+
+// Disconnect action undocumented
+func (b *RemoteAssistancePartnerRequestBuilder) Disconnect(reqObj *RemoteAssistancePartnerDisconnectRequestParameter) *RemoteAssistancePartnerDisconnectRequestBuilder {
+ bb := &RemoteAssistancePartnerDisconnectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/disconnect"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RemoteAssistancePartnerDisconnectRequest struct{ BaseRequest }
+
+//
+func (b *RemoteAssistancePartnerDisconnectRequestBuilder) Request() *RemoteAssistancePartnerDisconnectRequest {
+ return &RemoteAssistancePartnerDisconnectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RemoteAssistancePartnerDisconnectRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestReport.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestReport.go
new file mode 100644
index 00000000..5cf07e9d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestReport.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ReportRootRequestBuilder is request builder for ReportRoot
+type ReportRootRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ReportRootRequest
+func (b *ReportRootRequestBuilder) Request() *ReportRootRequest {
+ return &ReportRootRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ReportRootRequest is request for ReportRoot
+type ReportRootRequest struct{ BaseRequest }
+
+// Get performs GET request for ReportRoot
+func (r *ReportRootRequest) Get(ctx context.Context) (resObj *ReportRoot, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ReportRoot
+func (r *ReportRootRequest) Update(ctx context.Context, reqObj *ReportRoot) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ReportRoot
+func (r *ReportRootRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRequest.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRequest.go
new file mode 100644
index 00000000..7238961b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRequest.go
@@ -0,0 +1,90 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RequestObjectRequestBuilder is request builder for RequestObject
+type RequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RequestObjectRequest
+func (b *RequestObjectRequestBuilder) Request() *RequestObjectRequest {
+ return &RequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RequestObjectRequest is request for RequestObject
+type RequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for RequestObject
+func (r *RequestObjectRequest) Get(ctx context.Context) (resObj *RequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RequestObject
+func (r *RequestObjectRequest) Update(ctx context.Context, reqObj *RequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RequestObject
+func (r *RequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type RequestObjectStopRequestBuilder struct{ BaseRequestBuilder }
+
+// Stop action undocumented
+func (b *RequestObjectRequestBuilder) Stop(reqObj *RequestObjectStopRequestParameter) *RequestObjectStopRequestBuilder {
+ bb := &RequestObjectStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stop"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RequestObjectStopRequest struct{ BaseRequest }
+
+//
+func (b *RequestObjectStopRequestBuilder) Request() *RequestObjectStopRequest {
+ return &RequestObjectStopRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RequestObjectStopRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type RequestObjectRecordDecisionsRequestBuilder struct{ BaseRequestBuilder }
+
+// RecordDecisions action undocumented
+func (b *RequestObjectRequestBuilder) RecordDecisions(reqObj *RequestObjectRecordDecisionsRequestParameter) *RequestObjectRecordDecisionsRequestBuilder {
+ bb := &RequestObjectRecordDecisionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/recordDecisions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RequestObjectRecordDecisionsRequest struct{ BaseRequest }
+
+//
+func (b *RequestObjectRecordDecisionsRequestBuilder) Request() *RequestObjectRecordDecisionsRequest {
+ return &RequestObjectRecordDecisionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RequestObjectRecordDecisionsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestResource.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestResource.go
new file mode 100644
index 00000000..66984dc9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestResource.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ResourceOperationRequestBuilder is request builder for ResourceOperation
+type ResourceOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ResourceOperationRequest
+func (b *ResourceOperationRequestBuilder) Request() *ResourceOperationRequest {
+ return &ResourceOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ResourceOperationRequest is request for ResourceOperation
+type ResourceOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for ResourceOperation
+func (r *ResourceOperationRequest) Get(ctx context.Context) (resObj *ResourceOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ResourceOperation
+func (r *ResourceOperationRequest) Update(ctx context.Context, reqObj *ResourceOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ResourceOperation
+func (r *ResourceOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ResourceSpecificPermissionGrantRequestBuilder is request builder for ResourceSpecificPermissionGrant
+type ResourceSpecificPermissionGrantRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ResourceSpecificPermissionGrantRequest
+func (b *ResourceSpecificPermissionGrantRequestBuilder) Request() *ResourceSpecificPermissionGrantRequest {
+ return &ResourceSpecificPermissionGrantRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ResourceSpecificPermissionGrantRequest is request for ResourceSpecificPermissionGrant
+type ResourceSpecificPermissionGrantRequest struct{ BaseRequest }
+
+// Get performs GET request for ResourceSpecificPermissionGrant
+func (r *ResourceSpecificPermissionGrantRequest) Get(ctx context.Context) (resObj *ResourceSpecificPermissionGrant, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ResourceSpecificPermissionGrant
+func (r *ResourceSpecificPermissionGrantRequest) Update(ctx context.Context, reqObj *ResourceSpecificPermissionGrant) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ResourceSpecificPermissionGrant
+func (r *ResourceSpecificPermissionGrantRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRestricted.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRestricted.go
new file mode 100644
index 00000000..9170ff2d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRestricted.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RestrictedAppsViolationRequestBuilder is request builder for RestrictedAppsViolation
+type RestrictedAppsViolationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RestrictedAppsViolationRequest
+func (b *RestrictedAppsViolationRequestBuilder) Request() *RestrictedAppsViolationRequest {
+ return &RestrictedAppsViolationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RestrictedAppsViolationRequest is request for RestrictedAppsViolation
+type RestrictedAppsViolationRequest struct{ BaseRequest }
+
+// Get performs GET request for RestrictedAppsViolation
+func (r *RestrictedAppsViolationRequest) Get(ctx context.Context) (resObj *RestrictedAppsViolation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RestrictedAppsViolation
+func (r *RestrictedAppsViolationRequest) Update(ctx context.Context, reqObj *RestrictedAppsViolation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RestrictedAppsViolation
+func (r *RestrictedAppsViolationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RestrictedSignInRequestBuilder is request builder for RestrictedSignIn
+type RestrictedSignInRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RestrictedSignInRequest
+func (b *RestrictedSignInRequestBuilder) Request() *RestrictedSignInRequest {
+ return &RestrictedSignInRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RestrictedSignInRequest is request for RestrictedSignIn
+type RestrictedSignInRequest struct{ BaseRequest }
+
+// Get performs GET request for RestrictedSignIn
+func (r *RestrictedSignInRequest) Get(ctx context.Context) (resObj *RestrictedSignIn, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RestrictedSignIn
+func (r *RestrictedSignInRequest) Update(ctx context.Context, reqObj *RestrictedSignIn) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RestrictedSignIn
+func (r *RestrictedSignInRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisk.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisk.go
new file mode 100644
index 00000000..1fe8f7e1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisk.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RiskDetectionRequestBuilder is request builder for RiskDetection
+type RiskDetectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RiskDetectionRequest
+func (b *RiskDetectionRequestBuilder) Request() *RiskDetectionRequest {
+ return &RiskDetectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RiskDetectionRequest is request for RiskDetection
+type RiskDetectionRequest struct{ BaseRequest }
+
+// Get performs GET request for RiskDetection
+func (r *RiskDetectionRequest) Get(ctx context.Context) (resObj *RiskDetection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RiskDetection
+func (r *RiskDetectionRequest) Update(ctx context.Context, reqObj *RiskDetection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RiskDetection
+func (r *RiskDetectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisky.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisky.go
new file mode 100644
index 00000000..9095f794
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRisky.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RiskyUserRequestBuilder is request builder for RiskyUser
+type RiskyUserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RiskyUserRequest
+func (b *RiskyUserRequestBuilder) Request() *RiskyUserRequest {
+ return &RiskyUserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RiskyUserRequest is request for RiskyUser
+type RiskyUserRequest struct{ BaseRequest }
+
+// Get performs GET request for RiskyUser
+func (r *RiskyUserRequest) Get(ctx context.Context) (resObj *RiskyUser, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RiskyUser
+func (r *RiskyUserRequest) Update(ctx context.Context, reqObj *RiskyUser) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RiskyUser
+func (r *RiskyUserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RiskyUserHistoryItemRequestBuilder is request builder for RiskyUserHistoryItem
+type RiskyUserHistoryItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RiskyUserHistoryItemRequest
+func (b *RiskyUserHistoryItemRequestBuilder) Request() *RiskyUserHistoryItemRequest {
+ return &RiskyUserHistoryItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RiskyUserHistoryItemRequest is request for RiskyUserHistoryItem
+type RiskyUserHistoryItemRequest struct{ BaseRequest }
+
+// Get performs GET request for RiskyUserHistoryItem
+func (r *RiskyUserHistoryItemRequest) Get(ctx context.Context) (resObj *RiskyUserHistoryItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RiskyUserHistoryItem
+func (r *RiskyUserHistoryItemRequest) Update(ctx context.Context, reqObj *RiskyUserHistoryItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RiskyUserHistoryItem
+func (r *RiskyUserHistoryItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRole.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRole.go
new file mode 100644
index 00000000..b0f4b9a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRole.go
@@ -0,0 +1,357 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// RoleAssignmentRequestBuilder is request builder for RoleAssignment
+type RoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleAssignmentRequest
+func (b *RoleAssignmentRequestBuilder) Request() *RoleAssignmentRequest {
+ return &RoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleAssignmentRequest is request for RoleAssignment
+type RoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleAssignment
+func (r *RoleAssignmentRequest) Get(ctx context.Context) (resObj *RoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleAssignment
+func (r *RoleAssignmentRequest) Update(ctx context.Context, reqObj *RoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleAssignment
+func (r *RoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleDefinitionRequestBuilder is request builder for RoleDefinition
+type RoleDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleDefinitionRequest
+func (b *RoleDefinitionRequestBuilder) Request() *RoleDefinitionRequest {
+ return &RoleDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleDefinitionRequest is request for RoleDefinition
+type RoleDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleDefinition
+func (r *RoleDefinitionRequest) Get(ctx context.Context) (resObj *RoleDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleDefinition
+func (r *RoleDefinitionRequest) Update(ctx context.Context, reqObj *RoleDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleDefinition
+func (r *RoleDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleManagementRequestBuilder is request builder for RoleManagement
+type RoleManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleManagementRequest
+func (b *RoleManagementRequestBuilder) Request() *RoleManagementRequest {
+ return &RoleManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleManagementRequest is request for RoleManagement
+type RoleManagementRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleManagement
+func (r *RoleManagementRequest) Get(ctx context.Context) (resObj *RoleManagement, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleManagement
+func (r *RoleManagementRequest) Update(ctx context.Context, reqObj *RoleManagement) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleManagement
+func (r *RoleManagementRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleScopeTagRequestBuilder is request builder for RoleScopeTag
+type RoleScopeTagRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleScopeTagRequest
+func (b *RoleScopeTagRequestBuilder) Request() *RoleScopeTagRequest {
+ return &RoleScopeTagRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleScopeTagRequest is request for RoleScopeTag
+type RoleScopeTagRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleScopeTag
+func (r *RoleScopeTagRequest) Get(ctx context.Context) (resObj *RoleScopeTag, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleScopeTag
+func (r *RoleScopeTagRequest) Update(ctx context.Context, reqObj *RoleScopeTag) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleScopeTag
+func (r *RoleScopeTagRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoleScopeTagAutoAssignmentRequestBuilder is request builder for RoleScopeTagAutoAssignment
+type RoleScopeTagAutoAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoleScopeTagAutoAssignmentRequest
+func (b *RoleScopeTagAutoAssignmentRequestBuilder) Request() *RoleScopeTagAutoAssignmentRequest {
+ return &RoleScopeTagAutoAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoleScopeTagAutoAssignmentRequest is request for RoleScopeTagAutoAssignment
+type RoleScopeTagAutoAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for RoleScopeTagAutoAssignment
+func (r *RoleScopeTagAutoAssignmentRequest) Get(ctx context.Context) (resObj *RoleScopeTagAutoAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoleScopeTagAutoAssignment
+func (r *RoleScopeTagAutoAssignmentRequest) Update(ctx context.Context, reqObj *RoleScopeTagAutoAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoleScopeTagAutoAssignment
+func (r *RoleScopeTagAutoAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder struct{ BaseRequestBuilder }
+
+// GetRoleScopeTagsByID action undocumented
+func (b *DeviceAndAppManagementRoleAssignmentRoleScopeTagsCollectionRequestBuilder) GetRoleScopeTagsByID(reqObj *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter) *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder {
+ bb := &RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getRoleScopeTagsById"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// GetRoleScopeTagsByID action undocumented
+func (b *DeviceManagementRoleScopeTagsCollectionRequestBuilder) GetRoleScopeTagsByID(reqObj *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestParameter) *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder {
+ bb := &RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getRoleScopeTagsById"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RoleScopeTagCollectionGetRoleScopeTagsByIDRequest struct{ BaseRequest }
+
+//
+func (b *RoleScopeTagCollectionGetRoleScopeTagsByIDRequestBuilder) Request() *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest {
+ return &RoleScopeTagCollectionGetRoleScopeTagsByIDRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTag, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleScopeTag
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleScopeTag
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest) PostN(ctx context.Context, n int) ([]RoleScopeTag, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *RoleScopeTagCollectionGetRoleScopeTagsByIDRequest) Post(ctx context.Context) ([]RoleScopeTag, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type RoleScopeTagAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *RoleScopeTagRequestBuilder) Assign(reqObj *RoleScopeTagAssignRequestParameter) *RoleScopeTagAssignRequestBuilder {
+ bb := &RoleScopeTagAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type RoleScopeTagAssignRequest struct{ BaseRequest }
+
+//
+func (b *RoleScopeTagAssignRequestBuilder) Request() *RoleScopeTagAssignRequest {
+ return &RoleScopeTagAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *RoleScopeTagAssignRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]RoleScopeTagAutoAssignment, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []RoleScopeTagAutoAssignment
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []RoleScopeTagAutoAssignment
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *RoleScopeTagAssignRequest) PostN(ctx context.Context, n int) ([]RoleScopeTagAutoAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *RoleScopeTagAssignRequest) Post(ctx context.Context) ([]RoleScopeTagAutoAssignment, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestRoom.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRoom.go
new file mode 100644
index 00000000..f3d50146
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestRoom.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// RoomRequestBuilder is request builder for Room
+type RoomRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoomRequest
+func (b *RoomRequestBuilder) Request() *RoomRequest {
+ return &RoomRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoomRequest is request for Room
+type RoomRequest struct{ BaseRequest }
+
+// Get performs GET request for Room
+func (r *RoomRequest) Get(ctx context.Context) (resObj *Room, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Room
+func (r *RoomRequest) Update(ctx context.Context, reqObj *Room) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Room
+func (r *RoomRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// RoomListRequestBuilder is request builder for RoomList
+type RoomListRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns RoomListRequest
+func (b *RoomListRequestBuilder) Request() *RoomListRequest {
+ return &RoomListRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// RoomListRequest is request for RoomList
+type RoomListRequest struct{ BaseRequest }
+
+// Get performs GET request for RoomList
+func (r *RoomListRequest) Get(ctx context.Context) (resObj *RoomList, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for RoomList
+func (r *RoomListRequest) Update(ctx context.Context, reqObj *RoomList) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for RoomList
+func (r *RoomListRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSales.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSales.go
new file mode 100644
index 00000000..d559478c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSales.go
@@ -0,0 +1,451 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SalesCreditMemoRequestBuilder is request builder for SalesCreditMemo
+type SalesCreditMemoRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesCreditMemoRequest
+func (b *SalesCreditMemoRequestBuilder) Request() *SalesCreditMemoRequest {
+ return &SalesCreditMemoRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesCreditMemoRequest is request for SalesCreditMemo
+type SalesCreditMemoRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesCreditMemo
+func (r *SalesCreditMemoRequest) Get(ctx context.Context) (resObj *SalesCreditMemo, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesCreditMemo
+func (r *SalesCreditMemoRequest) Update(ctx context.Context, reqObj *SalesCreditMemo) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesCreditMemo
+func (r *SalesCreditMemoRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SalesCreditMemoLineRequestBuilder is request builder for SalesCreditMemoLine
+type SalesCreditMemoLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesCreditMemoLineRequest
+func (b *SalesCreditMemoLineRequestBuilder) Request() *SalesCreditMemoLineRequest {
+ return &SalesCreditMemoLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesCreditMemoLineRequest is request for SalesCreditMemoLine
+type SalesCreditMemoLineRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesCreditMemoLine
+func (r *SalesCreditMemoLineRequest) Get(ctx context.Context) (resObj *SalesCreditMemoLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesCreditMemoLine
+func (r *SalesCreditMemoLineRequest) Update(ctx context.Context, reqObj *SalesCreditMemoLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesCreditMemoLine
+func (r *SalesCreditMemoLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SalesInvoiceRequestBuilder is request builder for SalesInvoice
+type SalesInvoiceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesInvoiceRequest
+func (b *SalesInvoiceRequestBuilder) Request() *SalesInvoiceRequest {
+ return &SalesInvoiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesInvoiceRequest is request for SalesInvoice
+type SalesInvoiceRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesInvoice
+func (r *SalesInvoiceRequest) Get(ctx context.Context) (resObj *SalesInvoice, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesInvoice
+func (r *SalesInvoiceRequest) Update(ctx context.Context, reqObj *SalesInvoice) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesInvoice
+func (r *SalesInvoiceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SalesInvoiceLineRequestBuilder is request builder for SalesInvoiceLine
+type SalesInvoiceLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesInvoiceLineRequest
+func (b *SalesInvoiceLineRequestBuilder) Request() *SalesInvoiceLineRequest {
+ return &SalesInvoiceLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesInvoiceLineRequest is request for SalesInvoiceLine
+type SalesInvoiceLineRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesInvoiceLine
+func (r *SalesInvoiceLineRequest) Get(ctx context.Context) (resObj *SalesInvoiceLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesInvoiceLine
+func (r *SalesInvoiceLineRequest) Update(ctx context.Context, reqObj *SalesInvoiceLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesInvoiceLine
+func (r *SalesInvoiceLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SalesOrderRequestBuilder is request builder for SalesOrder
+type SalesOrderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesOrderRequest
+func (b *SalesOrderRequestBuilder) Request() *SalesOrderRequest {
+ return &SalesOrderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesOrderRequest is request for SalesOrder
+type SalesOrderRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesOrder
+func (r *SalesOrderRequest) Get(ctx context.Context) (resObj *SalesOrder, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesOrder
+func (r *SalesOrderRequest) Update(ctx context.Context, reqObj *SalesOrder) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesOrder
+func (r *SalesOrderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SalesOrderLineRequestBuilder is request builder for SalesOrderLine
+type SalesOrderLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesOrderLineRequest
+func (b *SalesOrderLineRequestBuilder) Request() *SalesOrderLineRequest {
+ return &SalesOrderLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesOrderLineRequest is request for SalesOrderLine
+type SalesOrderLineRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesOrderLine
+func (r *SalesOrderLineRequest) Get(ctx context.Context) (resObj *SalesOrderLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesOrderLine
+func (r *SalesOrderLineRequest) Update(ctx context.Context, reqObj *SalesOrderLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesOrderLine
+func (r *SalesOrderLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SalesQuoteRequestBuilder is request builder for SalesQuote
+type SalesQuoteRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesQuoteRequest
+func (b *SalesQuoteRequestBuilder) Request() *SalesQuoteRequest {
+ return &SalesQuoteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesQuoteRequest is request for SalesQuote
+type SalesQuoteRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesQuote
+func (r *SalesQuoteRequest) Get(ctx context.Context) (resObj *SalesQuote, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesQuote
+func (r *SalesQuoteRequest) Update(ctx context.Context, reqObj *SalesQuote) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesQuote
+func (r *SalesQuoteRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SalesQuoteLineRequestBuilder is request builder for SalesQuoteLine
+type SalesQuoteLineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SalesQuoteLineRequest
+func (b *SalesQuoteLineRequestBuilder) Request() *SalesQuoteLineRequest {
+ return &SalesQuoteLineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SalesQuoteLineRequest is request for SalesQuoteLine
+type SalesQuoteLineRequest struct{ BaseRequest }
+
+// Get performs GET request for SalesQuoteLine
+func (r *SalesQuoteLineRequest) Get(ctx context.Context) (resObj *SalesQuoteLine, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SalesQuoteLine
+func (r *SalesQuoteLineRequest) Update(ctx context.Context, reqObj *SalesQuoteLine) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SalesQuoteLine
+func (r *SalesQuoteLineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type SalesInvoiceCancelAndSendRequestBuilder struct{ BaseRequestBuilder }
+
+// CancelAndSend action undocumented
+func (b *SalesInvoiceRequestBuilder) CancelAndSend(reqObj *SalesInvoiceCancelAndSendRequestParameter) *SalesInvoiceCancelAndSendRequestBuilder {
+ bb := &SalesInvoiceCancelAndSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancelAndSend"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoiceCancelAndSendRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoiceCancelAndSendRequestBuilder) Request() *SalesInvoiceCancelAndSendRequest {
+ return &SalesInvoiceCancelAndSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoiceCancelAndSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesInvoiceCancelRequestBuilder struct{ BaseRequestBuilder }
+
+// Cancel action undocumented
+func (b *SalesInvoiceRequestBuilder) Cancel(reqObj *SalesInvoiceCancelRequestParameter) *SalesInvoiceCancelRequestBuilder {
+ bb := &SalesInvoiceCancelRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancel"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoiceCancelRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoiceCancelRequestBuilder) Request() *SalesInvoiceCancelRequest {
+ return &SalesInvoiceCancelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoiceCancelRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesInvoicePostAndSendRequestBuilder struct{ BaseRequestBuilder }
+
+// PostAndSend action undocumented
+func (b *SalesInvoiceRequestBuilder) PostAndSend(reqObj *SalesInvoicePostAndSendRequestParameter) *SalesInvoicePostAndSendRequestBuilder {
+ bb := &SalesInvoicePostAndSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/postAndSend"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoicePostAndSendRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoicePostAndSendRequestBuilder) Request() *SalesInvoicePostAndSendRequest {
+ return &SalesInvoicePostAndSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoicePostAndSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesInvoicePostRequestBuilder struct{ BaseRequestBuilder }
+
+// Post action undocumented
+func (b *SalesInvoiceRequestBuilder) Post(reqObj *SalesInvoicePostRequestParameter) *SalesInvoicePostRequestBuilder {
+ bb := &SalesInvoicePostRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/post"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoicePostRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoicePostRequestBuilder) Request() *SalesInvoicePostRequest {
+ return &SalesInvoicePostRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoicePostRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesInvoiceSendRequestBuilder struct{ BaseRequestBuilder }
+
+// Send action undocumented
+func (b *SalesInvoiceRequestBuilder) Send(reqObj *SalesInvoiceSendRequestParameter) *SalesInvoiceSendRequestBuilder {
+ bb := &SalesInvoiceSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/send"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesInvoiceSendRequest struct{ BaseRequest }
+
+//
+func (b *SalesInvoiceSendRequestBuilder) Request() *SalesInvoiceSendRequest {
+ return &SalesInvoiceSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesInvoiceSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesQuoteMakeInvoiceRequestBuilder struct{ BaseRequestBuilder }
+
+// MakeInvoice action undocumented
+func (b *SalesQuoteRequestBuilder) MakeInvoice(reqObj *SalesQuoteMakeInvoiceRequestParameter) *SalesQuoteMakeInvoiceRequestBuilder {
+ bb := &SalesQuoteMakeInvoiceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/makeInvoice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesQuoteMakeInvoiceRequest struct{ BaseRequest }
+
+//
+func (b *SalesQuoteMakeInvoiceRequestBuilder) Request() *SalesQuoteMakeInvoiceRequest {
+ return &SalesQuoteMakeInvoiceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesQuoteMakeInvoiceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SalesQuoteSendRequestBuilder struct{ BaseRequestBuilder }
+
+// Send action undocumented
+func (b *SalesQuoteRequestBuilder) Send(reqObj *SalesQuoteSendRequestParameter) *SalesQuoteSendRequestBuilder {
+ bb := &SalesQuoteSendRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/send"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SalesQuoteSendRequest struct{ BaseRequest }
+
+//
+func (b *SalesQuoteSendRequestBuilder) Request() *SalesQuoteSendRequest {
+ return &SalesQuoteSendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SalesQuoteSendRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchedule.go
new file mode 100644
index 00000000..6d708728
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchedule.go
@@ -0,0 +1,149 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ScheduleRequestBuilder is request builder for Schedule
+type ScheduleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ScheduleRequest
+func (b *ScheduleRequestBuilder) Request() *ScheduleRequest {
+ return &ScheduleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ScheduleRequest is request for Schedule
+type ScheduleRequest struct{ BaseRequest }
+
+// Get performs GET request for Schedule
+func (r *ScheduleRequest) Get(ctx context.Context) (resObj *Schedule, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Schedule
+func (r *ScheduleRequest) Update(ctx context.Context, reqObj *Schedule) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Schedule
+func (r *ScheduleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ScheduleChangeRequestObjectRequestBuilder is request builder for ScheduleChangeRequestObject
+type ScheduleChangeRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ScheduleChangeRequestObjectRequest
+func (b *ScheduleChangeRequestObjectRequestBuilder) Request() *ScheduleChangeRequestObjectRequest {
+ return &ScheduleChangeRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ScheduleChangeRequestObjectRequest is request for ScheduleChangeRequestObject
+type ScheduleChangeRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for ScheduleChangeRequestObject
+func (r *ScheduleChangeRequestObjectRequest) Get(ctx context.Context) (resObj *ScheduleChangeRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ScheduleChangeRequestObject
+func (r *ScheduleChangeRequestObjectRequest) Update(ctx context.Context, reqObj *ScheduleChangeRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ScheduleChangeRequestObject
+func (r *ScheduleChangeRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type ScheduleShareRequestBuilder struct{ BaseRequestBuilder }
+
+// Share action undocumented
+func (b *ScheduleRequestBuilder) Share(reqObj *ScheduleShareRequestParameter) *ScheduleShareRequestBuilder {
+ bb := &ScheduleShareRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/share"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ScheduleShareRequest struct{ BaseRequest }
+
+//
+func (b *ScheduleShareRequestBuilder) Request() *ScheduleShareRequest {
+ return &ScheduleShareRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ScheduleShareRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ScheduleChangeRequestObjectApproveRequestBuilder struct{ BaseRequestBuilder }
+
+// Approve action undocumented
+func (b *ScheduleChangeRequestObjectRequestBuilder) Approve(reqObj *ScheduleChangeRequestObjectApproveRequestParameter) *ScheduleChangeRequestObjectApproveRequestBuilder {
+ bb := &ScheduleChangeRequestObjectApproveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/approve"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ScheduleChangeRequestObjectApproveRequest struct{ BaseRequest }
+
+//
+func (b *ScheduleChangeRequestObjectApproveRequestBuilder) Request() *ScheduleChangeRequestObjectApproveRequest {
+ return &ScheduleChangeRequestObjectApproveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ScheduleChangeRequestObjectApproveRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ScheduleChangeRequestObjectDeclineRequestBuilder struct{ BaseRequestBuilder }
+
+// Decline action undocumented
+func (b *ScheduleChangeRequestObjectRequestBuilder) Decline(reqObj *ScheduleChangeRequestObjectDeclineRequestParameter) *ScheduleChangeRequestObjectDeclineRequestBuilder {
+ bb := &ScheduleChangeRequestObjectDeclineRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/decline"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ScheduleChangeRequestObjectDeclineRequest struct{ BaseRequest }
+
+//
+func (b *ScheduleChangeRequestObjectDeclineRequestBuilder) Request() *ScheduleChangeRequestObjectDeclineRequest {
+ return &ScheduleChangeRequestObjectDeclineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ScheduleChangeRequestObjectDeclineRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestScheduling.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestScheduling.go
new file mode 100644
index 00000000..4fba8a73
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestScheduling.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SchedulingGroupRequestBuilder is request builder for SchedulingGroup
+type SchedulingGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SchedulingGroupRequest
+func (b *SchedulingGroupRequestBuilder) Request() *SchedulingGroupRequest {
+ return &SchedulingGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SchedulingGroupRequest is request for SchedulingGroup
+type SchedulingGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for SchedulingGroup
+func (r *SchedulingGroupRequest) Get(ctx context.Context) (resObj *SchedulingGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SchedulingGroup
+func (r *SchedulingGroupRequest) Update(ctx context.Context, reqObj *SchedulingGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SchedulingGroup
+func (r *SchedulingGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchema.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchema.go
new file mode 100644
index 00000000..74099e42
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSchema.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SchemaRequestBuilder is request builder for Schema
+type SchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SchemaRequest
+func (b *SchemaRequestBuilder) Request() *SchemaRequest {
+ return &SchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SchemaRequest is request for Schema
+type SchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for Schema
+func (r *SchemaRequest) Get(ctx context.Context) (resObj *Schema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Schema
+func (r *SchemaRequest) Update(ctx context.Context, reqObj *Schema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Schema
+func (r *SchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SchemaExtensionRequestBuilder is request builder for SchemaExtension
+type SchemaExtensionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SchemaExtensionRequest
+func (b *SchemaExtensionRequestBuilder) Request() *SchemaExtensionRequest {
+ return &SchemaExtensionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SchemaExtensionRequest is request for SchemaExtension
+type SchemaExtensionRequest struct{ BaseRequest }
+
+// Get performs GET request for SchemaExtension
+func (r *SchemaExtensionRequest) Get(ctx context.Context) (resObj *SchemaExtension, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SchemaExtension
+func (r *SchemaExtensionRequest) Update(ctx context.Context, reqObj *SchemaExtension) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SchemaExtension
+func (r *SchemaExtensionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestScoped.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestScoped.go
new file mode 100644
index 00000000..b1852f1e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestScoped.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ScopedRoleMembershipRequestBuilder is request builder for ScopedRoleMembership
+type ScopedRoleMembershipRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ScopedRoleMembershipRequest
+func (b *ScopedRoleMembershipRequestBuilder) Request() *ScopedRoleMembershipRequest {
+ return &ScopedRoleMembershipRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ScopedRoleMembershipRequest is request for ScopedRoleMembership
+type ScopedRoleMembershipRequest struct{ BaseRequest }
+
+// Get performs GET request for ScopedRoleMembership
+func (r *ScopedRoleMembershipRequest) Get(ctx context.Context) (resObj *ScopedRoleMembership, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ScopedRoleMembership
+func (r *ScopedRoleMembershipRequest) Update(ctx context.Context, reqObj *ScopedRoleMembership) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ScopedRoleMembership
+func (r *ScopedRoleMembershipRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSearch.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSearch.go
new file mode 100644
index 00000000..43787114
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSearch.go
@@ -0,0 +1,131 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SearchRequestBuilder is request builder for Search
+type SearchRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SearchRequest
+func (b *SearchRequestBuilder) Request() *SearchRequest {
+ return &SearchRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SearchRequest is request for Search
+type SearchRequest struct{ BaseRequest }
+
+// Get performs GET request for Search
+func (r *SearchRequest) Get(ctx context.Context) (resObj *Search, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Search
+func (r *SearchRequest) Update(ctx context.Context, reqObj *Search) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Search
+func (r *SearchRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type SearchQueryRequestBuilder struct{ BaseRequestBuilder }
+
+// Query action undocumented
+func (b *SearchRequestBuilder) Query(reqObj *SearchQueryRequestParameter) *SearchQueryRequestBuilder {
+ bb := &SearchQueryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/query"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SearchQueryRequest struct{ BaseRequest }
+
+//
+func (b *SearchQueryRequestBuilder) Request() *SearchQueryRequest {
+ return &SearchQueryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SearchQueryRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]SearchResponse, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []SearchResponse
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []SearchResponse
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *SearchQueryRequest) PostN(ctx context.Context, n int) ([]SearchResponse, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *SearchQueryRequest) Post(ctx context.Context) ([]SearchResponse, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSection.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSection.go
new file mode 100644
index 00000000..838b11c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSection.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SectionGroupRequestBuilder is request builder for SectionGroup
+type SectionGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SectionGroupRequest
+func (b *SectionGroupRequestBuilder) Request() *SectionGroupRequest {
+ return &SectionGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SectionGroupRequest is request for SectionGroup
+type SectionGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for SectionGroup
+func (r *SectionGroupRequest) Get(ctx context.Context) (resObj *SectionGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SectionGroup
+func (r *SectionGroupRequest) Update(ctx context.Context, reqObj *SectionGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SectionGroup
+func (r *SectionGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecure.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecure.go
new file mode 100644
index 00000000..a56a96b9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecure.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecureScoreRequestBuilder is request builder for SecureScore
+type SecureScoreRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecureScoreRequest
+func (b *SecureScoreRequestBuilder) Request() *SecureScoreRequest {
+ return &SecureScoreRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecureScoreRequest is request for SecureScore
+type SecureScoreRequest struct{ BaseRequest }
+
+// Get performs GET request for SecureScore
+func (r *SecureScoreRequest) Get(ctx context.Context) (resObj *SecureScore, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecureScore
+func (r *SecureScoreRequest) Update(ctx context.Context, reqObj *SecureScore) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecureScore
+func (r *SecureScoreRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SecureScoreControlProfileRequestBuilder is request builder for SecureScoreControlProfile
+type SecureScoreControlProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecureScoreControlProfileRequest
+func (b *SecureScoreControlProfileRequestBuilder) Request() *SecureScoreControlProfileRequest {
+ return &SecureScoreControlProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecureScoreControlProfileRequest is request for SecureScoreControlProfile
+type SecureScoreControlProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for SecureScoreControlProfile
+func (r *SecureScoreControlProfileRequest) Get(ctx context.Context) (resObj *SecureScoreControlProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecureScoreControlProfile
+func (r *SecureScoreControlProfileRequest) Update(ctx context.Context, reqObj *SecureScoreControlProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecureScoreControlProfile
+func (r *SecureScoreControlProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecurity.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecurity.go
new file mode 100644
index 00000000..a45d616d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSecurity.go
@@ -0,0 +1,295 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SecurityRequestBuilder is request builder for Security
+type SecurityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityRequest
+func (b *SecurityRequestBuilder) Request() *SecurityRequest {
+ return &SecurityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityRequest is request for Security
+type SecurityRequest struct{ BaseRequest }
+
+// Get performs GET request for Security
+func (r *SecurityRequest) Get(ctx context.Context) (resObj *Security, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Security
+func (r *SecurityRequest) Update(ctx context.Context, reqObj *Security) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Security
+func (r *SecurityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SecurityActionRequestBuilder is request builder for SecurityAction
+type SecurityActionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityActionRequest
+func (b *SecurityActionRequestBuilder) Request() *SecurityActionRequest {
+ return &SecurityActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityActionRequest is request for SecurityAction
+type SecurityActionRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityAction
+func (r *SecurityActionRequest) Get(ctx context.Context) (resObj *SecurityAction, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityAction
+func (r *SecurityActionRequest) Update(ctx context.Context, reqObj *SecurityAction) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityAction
+func (r *SecurityActionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SecurityBaselineCategoryStateSummaryRequestBuilder is request builder for SecurityBaselineCategoryStateSummary
+type SecurityBaselineCategoryStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineCategoryStateSummaryRequest
+func (b *SecurityBaselineCategoryStateSummaryRequestBuilder) Request() *SecurityBaselineCategoryStateSummaryRequest {
+ return &SecurityBaselineCategoryStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineCategoryStateSummaryRequest is request for SecurityBaselineCategoryStateSummary
+type SecurityBaselineCategoryStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineCategoryStateSummary
+func (r *SecurityBaselineCategoryStateSummaryRequest) Get(ctx context.Context) (resObj *SecurityBaselineCategoryStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineCategoryStateSummary
+func (r *SecurityBaselineCategoryStateSummaryRequest) Update(ctx context.Context, reqObj *SecurityBaselineCategoryStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineCategoryStateSummary
+func (r *SecurityBaselineCategoryStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SecurityBaselineDeviceStateRequestBuilder is request builder for SecurityBaselineDeviceState
+type SecurityBaselineDeviceStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineDeviceStateRequest
+func (b *SecurityBaselineDeviceStateRequestBuilder) Request() *SecurityBaselineDeviceStateRequest {
+ return &SecurityBaselineDeviceStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineDeviceStateRequest is request for SecurityBaselineDeviceState
+type SecurityBaselineDeviceStateRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineDeviceState
+func (r *SecurityBaselineDeviceStateRequest) Get(ctx context.Context) (resObj *SecurityBaselineDeviceState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineDeviceState
+func (r *SecurityBaselineDeviceStateRequest) Update(ctx context.Context, reqObj *SecurityBaselineDeviceState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineDeviceState
+func (r *SecurityBaselineDeviceStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SecurityBaselineSettingStateRequestBuilder is request builder for SecurityBaselineSettingState
+type SecurityBaselineSettingStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineSettingStateRequest
+func (b *SecurityBaselineSettingStateRequestBuilder) Request() *SecurityBaselineSettingStateRequest {
+ return &SecurityBaselineSettingStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineSettingStateRequest is request for SecurityBaselineSettingState
+type SecurityBaselineSettingStateRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineSettingState
+func (r *SecurityBaselineSettingStateRequest) Get(ctx context.Context) (resObj *SecurityBaselineSettingState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineSettingState
+func (r *SecurityBaselineSettingStateRequest) Update(ctx context.Context, reqObj *SecurityBaselineSettingState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineSettingState
+func (r *SecurityBaselineSettingStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SecurityBaselineStateRequestBuilder is request builder for SecurityBaselineState
+type SecurityBaselineStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineStateRequest
+func (b *SecurityBaselineStateRequestBuilder) Request() *SecurityBaselineStateRequest {
+ return &SecurityBaselineStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineStateRequest is request for SecurityBaselineState
+type SecurityBaselineStateRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineState
+func (r *SecurityBaselineStateRequest) Get(ctx context.Context) (resObj *SecurityBaselineState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineState
+func (r *SecurityBaselineStateRequest) Update(ctx context.Context, reqObj *SecurityBaselineState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineState
+func (r *SecurityBaselineStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SecurityBaselineStateSummaryRequestBuilder is request builder for SecurityBaselineStateSummary
+type SecurityBaselineStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineStateSummaryRequest
+func (b *SecurityBaselineStateSummaryRequestBuilder) Request() *SecurityBaselineStateSummaryRequest {
+ return &SecurityBaselineStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineStateSummaryRequest is request for SecurityBaselineStateSummary
+type SecurityBaselineStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineStateSummary
+func (r *SecurityBaselineStateSummaryRequest) Get(ctx context.Context) (resObj *SecurityBaselineStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineStateSummary
+func (r *SecurityBaselineStateSummaryRequest) Update(ctx context.Context, reqObj *SecurityBaselineStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineStateSummary
+func (r *SecurityBaselineStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SecurityBaselineTemplateRequestBuilder is request builder for SecurityBaselineTemplate
+type SecurityBaselineTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SecurityBaselineTemplateRequest
+func (b *SecurityBaselineTemplateRequestBuilder) Request() *SecurityBaselineTemplateRequest {
+ return &SecurityBaselineTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SecurityBaselineTemplateRequest is request for SecurityBaselineTemplate
+type SecurityBaselineTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for SecurityBaselineTemplate
+func (r *SecurityBaselineTemplateRequest) Get(ctx context.Context) (resObj *SecurityBaselineTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SecurityBaselineTemplate
+func (r *SecurityBaselineTemplateRequest) Update(ctx context.Context, reqObj *SecurityBaselineTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SecurityBaselineTemplate
+func (r *SecurityBaselineTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type SecurityActionCancelSecurityActionRequestBuilder struct{ BaseRequestBuilder }
+
+// CancelSecurityAction action undocumented
+func (b *SecurityActionRequestBuilder) CancelSecurityAction(reqObj *SecurityActionCancelSecurityActionRequestParameter) *SecurityActionCancelSecurityActionRequestBuilder {
+ bb := &SecurityActionCancelSecurityActionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cancelSecurityAction"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SecurityActionCancelSecurityActionRequest struct{ BaseRequest }
+
+//
+func (b *SecurityActionCancelSecurityActionRequestBuilder) Request() *SecurityActionCancelSecurityActionRequest {
+ return &SecurityActionCancelSecurityActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SecurityActionCancelSecurityActionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitive.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitive.go
new file mode 100644
index 00000000..45ad6a70
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitive.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SensitiveTypeRequestBuilder is request builder for SensitiveType
+type SensitiveTypeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SensitiveTypeRequest
+func (b *SensitiveTypeRequestBuilder) Request() *SensitiveTypeRequest {
+ return &SensitiveTypeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SensitiveTypeRequest is request for SensitiveType
+type SensitiveTypeRequest struct{ BaseRequest }
+
+// Get performs GET request for SensitiveType
+func (r *SensitiveTypeRequest) Get(ctx context.Context) (resObj *SensitiveType, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SensitiveType
+func (r *SensitiveTypeRequest) Update(ctx context.Context, reqObj *SensitiveType) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SensitiveType
+func (r *SensitiveTypeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitivity.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitivity.go
new file mode 100644
index 00000000..1c9fab29
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSensitivity.go
@@ -0,0 +1,114 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SensitivityLabelRequestBuilder is request builder for SensitivityLabel
+type SensitivityLabelRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SensitivityLabelRequest
+func (b *SensitivityLabelRequestBuilder) Request() *SensitivityLabelRequest {
+ return &SensitivityLabelRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SensitivityLabelRequest is request for SensitivityLabel
+type SensitivityLabelRequest struct{ BaseRequest }
+
+// Get performs GET request for SensitivityLabel
+func (r *SensitivityLabelRequest) Get(ctx context.Context) (resObj *SensitivityLabel, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SensitivityLabel
+func (r *SensitivityLabelRequest) Update(ctx context.Context, reqObj *SensitivityLabel) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SensitivityLabel
+func (r *SensitivityLabelRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SensitivityPolicySettingsRequestBuilder is request builder for SensitivityPolicySettings
+type SensitivityPolicySettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SensitivityPolicySettingsRequest
+func (b *SensitivityPolicySettingsRequestBuilder) Request() *SensitivityPolicySettingsRequest {
+ return &SensitivityPolicySettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SensitivityPolicySettingsRequest is request for SensitivityPolicySettings
+type SensitivityPolicySettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for SensitivityPolicySettings
+func (r *SensitivityPolicySettingsRequest) Get(ctx context.Context) (resObj *SensitivityPolicySettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SensitivityPolicySettings
+func (r *SensitivityPolicySettingsRequest) Update(ctx context.Context, reqObj *SensitivityPolicySettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SensitivityPolicySettings
+func (r *SensitivityPolicySettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type SensitivityLabelCollectionEvaluateRequestBuilder struct{ BaseRequestBuilder }
+
+// Evaluate action undocumented
+func (b *DataClassificationServiceSensitivityLabelsCollectionRequestBuilder) Evaluate(reqObj *SensitivityLabelCollectionEvaluateRequestParameter) *SensitivityLabelCollectionEvaluateRequestBuilder {
+ bb := &SensitivityLabelCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Evaluate action undocumented
+func (b *InformationProtectionSensitivityLabelsCollectionRequestBuilder) Evaluate(reqObj *SensitivityLabelCollectionEvaluateRequestParameter) *SensitivityLabelCollectionEvaluateRequestBuilder {
+ bb := &SensitivityLabelCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Evaluate action undocumented
+func (b *SensitivityLabelSublabelsCollectionRequestBuilder) Evaluate(reqObj *SensitivityLabelCollectionEvaluateRequestParameter) *SensitivityLabelCollectionEvaluateRequestBuilder {
+ bb := &SensitivityLabelCollectionEvaluateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/evaluate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SensitivityLabelCollectionEvaluateRequest struct{ BaseRequest }
+
+//
+func (b *SensitivityLabelCollectionEvaluateRequestBuilder) Request() *SensitivityLabelCollectionEvaluateRequest {
+ return &SensitivityLabelCollectionEvaluateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SensitivityLabelCollectionEvaluateRequest) Post(ctx context.Context) (resObj *EvaluateLabelJobResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestService.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestService.go
new file mode 100644
index 00000000..d014f7f2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestService.go
@@ -0,0 +1,144 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ServicePrincipalRequestBuilder is request builder for ServicePrincipal
+type ServicePrincipalRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ServicePrincipalRequest
+func (b *ServicePrincipalRequestBuilder) Request() *ServicePrincipalRequest {
+ return &ServicePrincipalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ServicePrincipalRequest is request for ServicePrincipal
+type ServicePrincipalRequest struct{ BaseRequest }
+
+// Get performs GET request for ServicePrincipal
+func (r *ServicePrincipalRequest) Get(ctx context.Context) (resObj *ServicePrincipal, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ServicePrincipal
+func (r *ServicePrincipalRequest) Update(ctx context.Context, reqObj *ServicePrincipal) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ServicePrincipal
+func (r *ServicePrincipalRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// CreatePasswordSingleSignOnCredentials action undocumented
+func (b *ServicePrincipalRequestBuilder) CreatePasswordSingleSignOnCredentials(reqObj *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder {
+ bb := &ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createPasswordSingleSignOnCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest {
+ return &ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ServicePrincipalCreatePasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) (resObj *PasswordSingleSignOnCredentialSet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetPasswordSingleSignOnCredentials action undocumented
+func (b *ServicePrincipalRequestBuilder) GetPasswordSingleSignOnCredentials(reqObj *ServicePrincipalGetPasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder {
+ bb := &ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getPasswordSingleSignOnCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ServicePrincipalGetPasswordSingleSignOnCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *ServicePrincipalGetPasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalGetPasswordSingleSignOnCredentialsRequest {
+ return &ServicePrincipalGetPasswordSingleSignOnCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ServicePrincipalGetPasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) (resObj *PasswordSingleSignOnCredentialSet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// DeletePasswordSingleSignOnCredentials action undocumented
+func (b *ServicePrincipalRequestBuilder) DeletePasswordSingleSignOnCredentials(reqObj *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder {
+ bb := &ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/deletePasswordSingleSignOnCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest {
+ return &ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ServicePrincipalDeletePasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdatePasswordSingleSignOnCredentials action undocumented
+func (b *ServicePrincipalRequestBuilder) UpdatePasswordSingleSignOnCredentials(reqObj *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestParameter) *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder {
+ bb := &ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updatePasswordSingleSignOnCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequestBuilder) Request() *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest {
+ return &ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *ServicePrincipalUpdatePasswordSingleSignOnCredentialsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSetting.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSetting.go
new file mode 100644
index 00000000..f7612727
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSetting.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SettingStateDeviceSummaryRequestBuilder is request builder for SettingStateDeviceSummary
+type SettingStateDeviceSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SettingStateDeviceSummaryRequest
+func (b *SettingStateDeviceSummaryRequestBuilder) Request() *SettingStateDeviceSummaryRequest {
+ return &SettingStateDeviceSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SettingStateDeviceSummaryRequest is request for SettingStateDeviceSummary
+type SettingStateDeviceSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for SettingStateDeviceSummary
+func (r *SettingStateDeviceSummaryRequest) Get(ctx context.Context) (resObj *SettingStateDeviceSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SettingStateDeviceSummary
+func (r *SettingStateDeviceSummaryRequest) Update(ctx context.Context, reqObj *SettingStateDeviceSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SettingStateDeviceSummary
+func (r *SettingStateDeviceSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestShared.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShared.go
new file mode 100644
index 00000000..20848dee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShared.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SharedDriveItemRequestBuilder is request builder for SharedDriveItem
+type SharedDriveItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SharedDriveItemRequest
+func (b *SharedDriveItemRequestBuilder) Request() *SharedDriveItemRequest {
+ return &SharedDriveItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SharedDriveItemRequest is request for SharedDriveItem
+type SharedDriveItemRequest struct{ BaseRequest }
+
+// Get performs GET request for SharedDriveItem
+func (r *SharedDriveItemRequest) Get(ctx context.Context) (resObj *SharedDriveItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SharedDriveItem
+func (r *SharedDriveItemRequest) Update(ctx context.Context, reqObj *SharedDriveItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SharedDriveItem
+func (r *SharedDriveItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SharedInsightRequestBuilder is request builder for SharedInsight
+type SharedInsightRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SharedInsightRequest
+func (b *SharedInsightRequestBuilder) Request() *SharedInsightRequest {
+ return &SharedInsightRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SharedInsightRequest is request for SharedInsight
+type SharedInsightRequest struct{ BaseRequest }
+
+// Get performs GET request for SharedInsight
+func (r *SharedInsightRequest) Get(ctx context.Context) (resObj *SharedInsight, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SharedInsight
+func (r *SharedInsightRequest) Update(ctx context.Context, reqObj *SharedInsight) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SharedInsight
+func (r *SharedInsightRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestShift.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShift.go
new file mode 100644
index 00000000..efe3a1ba
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShift.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ShiftRequestBuilder is request builder for Shift
+type ShiftRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ShiftRequest
+func (b *ShiftRequestBuilder) Request() *ShiftRequest {
+ return &ShiftRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ShiftRequest is request for Shift
+type ShiftRequest struct{ BaseRequest }
+
+// Get performs GET request for Shift
+func (r *ShiftRequest) Get(ctx context.Context) (resObj *Shift, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Shift
+func (r *ShiftRequest) Update(ctx context.Context, reqObj *Shift) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Shift
+func (r *ShiftRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestShipment.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShipment.go
new file mode 100644
index 00000000..a9c6c10c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestShipment.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ShipmentMethodRequestBuilder is request builder for ShipmentMethod
+type ShipmentMethodRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ShipmentMethodRequest
+func (b *ShipmentMethodRequestBuilder) Request() *ShipmentMethodRequest {
+ return &ShipmentMethodRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ShipmentMethodRequest is request for ShipmentMethod
+type ShipmentMethodRequest struct{ BaseRequest }
+
+// Get performs GET request for ShipmentMethod
+func (r *ShipmentMethodRequest) Get(ctx context.Context) (resObj *ShipmentMethod, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ShipmentMethod
+func (r *ShipmentMethodRequest) Update(ctx context.Context, reqObj *ShipmentMethod) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ShipmentMethod
+func (r *ShipmentMethodRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSide.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSide.go
new file mode 100644
index 00000000..9bc07030
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSide.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SideLoadingKeyRequestBuilder is request builder for SideLoadingKey
+type SideLoadingKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SideLoadingKeyRequest
+func (b *SideLoadingKeyRequestBuilder) Request() *SideLoadingKeyRequest {
+ return &SideLoadingKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SideLoadingKeyRequest is request for SideLoadingKey
+type SideLoadingKeyRequest struct{ BaseRequest }
+
+// Get performs GET request for SideLoadingKey
+func (r *SideLoadingKeyRequest) Get(ctx context.Context) (resObj *SideLoadingKey, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SideLoadingKey
+func (r *SideLoadingKeyRequest) Update(ctx context.Context, reqObj *SideLoadingKey) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SideLoadingKey
+func (r *SideLoadingKeyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSign.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSign.go
new file mode 100644
index 00000000..9e0df0a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSign.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SignInRequestBuilder is request builder for SignIn
+type SignInRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SignInRequest
+func (b *SignInRequestBuilder) Request() *SignInRequest {
+ return &SignInRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SignInRequest is request for SignIn
+type SignInRequest struct{ BaseRequest }
+
+// Get performs GET request for SignIn
+func (r *SignInRequest) Get(ctx context.Context) (resObj *SignIn, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SignIn
+func (r *SignInRequest) Update(ctx context.Context, reqObj *SignIn) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SignIn
+func (r *SignInRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSingle.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSingle.go
new file mode 100644
index 00000000..f5659f59
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSingle.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SingleValueLegacyExtendedPropertyRequestBuilder is request builder for SingleValueLegacyExtendedProperty
+type SingleValueLegacyExtendedPropertyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SingleValueLegacyExtendedPropertyRequest
+func (b *SingleValueLegacyExtendedPropertyRequestBuilder) Request() *SingleValueLegacyExtendedPropertyRequest {
+ return &SingleValueLegacyExtendedPropertyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SingleValueLegacyExtendedPropertyRequest is request for SingleValueLegacyExtendedProperty
+type SingleValueLegacyExtendedPropertyRequest struct{ BaseRequest }
+
+// Get performs GET request for SingleValueLegacyExtendedProperty
+func (r *SingleValueLegacyExtendedPropertyRequest) Get(ctx context.Context) (resObj *SingleValueLegacyExtendedProperty, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SingleValueLegacyExtendedProperty
+func (r *SingleValueLegacyExtendedPropertyRequest) Update(ctx context.Context, reqObj *SingleValueLegacyExtendedProperty) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SingleValueLegacyExtendedProperty
+func (r *SingleValueLegacyExtendedPropertyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSite.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSite.go
new file mode 100644
index 00000000..d8cb8ab0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSite.go
@@ -0,0 +1,308 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// SiteRequestBuilder is request builder for Site
+type SiteRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SiteRequest
+func (b *SiteRequestBuilder) Request() *SiteRequest {
+ return &SiteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SiteRequest is request for Site
+type SiteRequest struct{ BaseRequest }
+
+// Get performs GET request for Site
+func (r *SiteRequest) Get(ctx context.Context) (resObj *Site, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Site
+func (r *SiteRequest) Update(ctx context.Context, reqObj *Site) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Site
+func (r *SiteRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SitePageRequestBuilder is request builder for SitePage
+type SitePageRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SitePageRequest
+func (b *SitePageRequestBuilder) Request() *SitePageRequest {
+ return &SitePageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SitePageRequest is request for SitePage
+type SitePageRequest struct{ BaseRequest }
+
+// Get performs GET request for SitePage
+func (r *SitePageRequest) Get(ctx context.Context) (resObj *SitePage, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SitePage
+func (r *SitePageRequest) Update(ctx context.Context, reqObj *SitePage) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SitePage
+func (r *SitePageRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type SiteCollectionAddRequestBuilder struct{ BaseRequestBuilder }
+
+// Add action undocumented
+func (b *GroupSitesCollectionRequestBuilder) Add(reqObj *SiteCollectionAddRequestParameter) *SiteCollectionAddRequestBuilder {
+ bb := &SiteCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Add action undocumented
+func (b *SiteSitesCollectionRequestBuilder) Add(reqObj *SiteCollectionAddRequestParameter) *SiteCollectionAddRequestBuilder {
+ bb := &SiteCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Add action undocumented
+func (b *UserFollowedSitesCollectionRequestBuilder) Add(reqObj *SiteCollectionAddRequestParameter) *SiteCollectionAddRequestBuilder {
+ bb := &SiteCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SiteCollectionAddRequest struct{ BaseRequest }
+
+//
+func (b *SiteCollectionAddRequestBuilder) Request() *SiteCollectionAddRequest {
+ return &SiteCollectionAddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SiteCollectionAddRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *SiteCollectionAddRequest) PostN(ctx context.Context, n int) ([]Site, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *SiteCollectionAddRequest) Post(ctx context.Context) ([]Site, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type SiteCollectionRemoveRequestBuilder struct{ BaseRequestBuilder }
+
+// Remove action undocumented
+func (b *GroupSitesCollectionRequestBuilder) Remove(reqObj *SiteCollectionRemoveRequestParameter) *SiteCollectionRemoveRequestBuilder {
+ bb := &SiteCollectionRemoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/remove"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Remove action undocumented
+func (b *SiteSitesCollectionRequestBuilder) Remove(reqObj *SiteCollectionRemoveRequestParameter) *SiteCollectionRemoveRequestBuilder {
+ bb := &SiteCollectionRemoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/remove"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Remove action undocumented
+func (b *UserFollowedSitesCollectionRequestBuilder) Remove(reqObj *SiteCollectionRemoveRequestParameter) *SiteCollectionRemoveRequestBuilder {
+ bb := &SiteCollectionRemoveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/remove"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SiteCollectionRemoveRequest struct{ BaseRequest }
+
+//
+func (b *SiteCollectionRemoveRequestBuilder) Request() *SiteCollectionRemoveRequest {
+ return &SiteCollectionRemoveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SiteCollectionRemoveRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]Site, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []Site
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []Site
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *SiteCollectionRemoveRequest) PostN(ctx context.Context, n int) ([]Site, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *SiteCollectionRemoveRequest) Post(ctx context.Context) ([]Site, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type SitePagePublishRequestBuilder struct{ BaseRequestBuilder }
+
+// Publish action undocumented
+func (b *SitePageRequestBuilder) Publish(reqObj *SitePagePublishRequestParameter) *SitePagePublishRequestBuilder {
+ bb := &SitePagePublishRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/publish"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SitePagePublishRequest struct{ BaseRequest }
+
+//
+func (b *SitePagePublishRequestBuilder) Request() *SitePagePublishRequest {
+ return &SitePagePublishRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SitePagePublishRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSkill.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSkill.go
new file mode 100644
index 00000000..44f4462e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSkill.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SkillProficiencyRequestBuilder is request builder for SkillProficiency
+type SkillProficiencyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SkillProficiencyRequest
+func (b *SkillProficiencyRequestBuilder) Request() *SkillProficiencyRequest {
+ return &SkillProficiencyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SkillProficiencyRequest is request for SkillProficiency
+type SkillProficiencyRequest struct{ BaseRequest }
+
+// Get performs GET request for SkillProficiency
+func (r *SkillProficiencyRequest) Get(ctx context.Context) (resObj *SkillProficiency, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SkillProficiency
+func (r *SkillProficiencyRequest) Update(ctx context.Context, reqObj *SkillProficiency) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SkillProficiency
+func (r *SkillProficiencyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go
new file mode 100644
index 00000000..5e20be15
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSoftware.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SoftwareUpdateStatusSummaryRequestBuilder is request builder for SoftwareUpdateStatusSummary
+type SoftwareUpdateStatusSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SoftwareUpdateStatusSummaryRequest
+func (b *SoftwareUpdateStatusSummaryRequestBuilder) Request() *SoftwareUpdateStatusSummaryRequest {
+ return &SoftwareUpdateStatusSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SoftwareUpdateStatusSummaryRequest is request for SoftwareUpdateStatusSummary
+type SoftwareUpdateStatusSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for SoftwareUpdateStatusSummary
+func (r *SoftwareUpdateStatusSummaryRequest) Get(ctx context.Context) (resObj *SoftwareUpdateStatusSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SoftwareUpdateStatusSummary
+func (r *SoftwareUpdateStatusSummaryRequest) Update(ctx context.Context, reqObj *SoftwareUpdateStatusSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SoftwareUpdateStatusSummary
+func (r *SoftwareUpdateStatusSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscribed.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscribed.go
new file mode 100644
index 00000000..2f446f06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscribed.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SubscribedSKURequestBuilder is request builder for SubscribedSKU
+type SubscribedSKURequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SubscribedSKURequest
+func (b *SubscribedSKURequestBuilder) Request() *SubscribedSKURequest {
+ return &SubscribedSKURequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SubscribedSKURequest is request for SubscribedSKU
+type SubscribedSKURequest struct{ BaseRequest }
+
+// Get performs GET request for SubscribedSKU
+func (r *SubscribedSKURequest) Get(ctx context.Context) (resObj *SubscribedSKU, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SubscribedSKU
+func (r *SubscribedSKURequest) Update(ctx context.Context, reqObj *SubscribedSKU) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SubscribedSKU
+func (r *SubscribedSKURequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscription.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscription.go
new file mode 100644
index 00000000..8cc22431
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSubscription.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SubscriptionRequestBuilder is request builder for Subscription
+type SubscriptionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SubscriptionRequest
+func (b *SubscriptionRequestBuilder) Request() *SubscriptionRequest {
+ return &SubscriptionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SubscriptionRequest is request for Subscription
+type SubscriptionRequest struct{ BaseRequest }
+
+// Get performs GET request for Subscription
+func (r *SubscriptionRequest) Get(ctx context.Context) (resObj *Subscription, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Subscription
+func (r *SubscriptionRequest) Update(ctx context.Context, reqObj *Subscription) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Subscription
+func (r *SubscriptionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSuspicious.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSuspicious.go
new file mode 100644
index 00000000..e79d0d72
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSuspicious.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SuspiciousIPRiskEventRequestBuilder is request builder for SuspiciousIPRiskEvent
+type SuspiciousIPRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SuspiciousIPRiskEventRequest
+func (b *SuspiciousIPRiskEventRequestBuilder) Request() *SuspiciousIPRiskEventRequest {
+ return &SuspiciousIPRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SuspiciousIPRiskEventRequest is request for SuspiciousIPRiskEvent
+type SuspiciousIPRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for SuspiciousIPRiskEvent
+func (r *SuspiciousIPRiskEventRequest) Get(ctx context.Context) (resObj *SuspiciousIPRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SuspiciousIPRiskEvent
+func (r *SuspiciousIPRiskEventRequest) Update(ctx context.Context, reqObj *SuspiciousIPRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SuspiciousIPRiskEvent
+func (r *SuspiciousIPRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSwap.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSwap.go
new file mode 100644
index 00000000..717cc288
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSwap.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SwapShiftsChangeRequestObjectRequestBuilder is request builder for SwapShiftsChangeRequestObject
+type SwapShiftsChangeRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SwapShiftsChangeRequestObjectRequest
+func (b *SwapShiftsChangeRequestObjectRequestBuilder) Request() *SwapShiftsChangeRequestObjectRequest {
+ return &SwapShiftsChangeRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SwapShiftsChangeRequestObjectRequest is request for SwapShiftsChangeRequestObject
+type SwapShiftsChangeRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for SwapShiftsChangeRequestObject
+func (r *SwapShiftsChangeRequestObjectRequest) Get(ctx context.Context) (resObj *SwapShiftsChangeRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SwapShiftsChangeRequestObject
+func (r *SwapShiftsChangeRequestObjectRequest) Update(ctx context.Context, reqObj *SwapShiftsChangeRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SwapShiftsChangeRequestObject
+func (r *SwapShiftsChangeRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSymantec.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSymantec.go
new file mode 100644
index 00000000..acd23845
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSymantec.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SymantecCodeSigningCertificateRequestBuilder is request builder for SymantecCodeSigningCertificate
+type SymantecCodeSigningCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SymantecCodeSigningCertificateRequest
+func (b *SymantecCodeSigningCertificateRequestBuilder) Request() *SymantecCodeSigningCertificateRequest {
+ return &SymantecCodeSigningCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SymantecCodeSigningCertificateRequest is request for SymantecCodeSigningCertificate
+type SymantecCodeSigningCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for SymantecCodeSigningCertificate
+func (r *SymantecCodeSigningCertificateRequest) Get(ctx context.Context) (resObj *SymantecCodeSigningCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SymantecCodeSigningCertificate
+func (r *SymantecCodeSigningCertificateRequest) Update(ctx context.Context, reqObj *SymantecCodeSigningCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SymantecCodeSigningCertificate
+func (r *SymantecCodeSigningCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestSynchronization.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSynchronization.go
new file mode 100644
index 00000000..39f93af3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestSynchronization.go
@@ -0,0 +1,346 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// SynchronizationRequestBuilder is request builder for Synchronization
+type SynchronizationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SynchronizationRequest
+func (b *SynchronizationRequestBuilder) Request() *SynchronizationRequest {
+ return &SynchronizationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SynchronizationRequest is request for Synchronization
+type SynchronizationRequest struct{ BaseRequest }
+
+// Get performs GET request for Synchronization
+func (r *SynchronizationRequest) Get(ctx context.Context) (resObj *Synchronization, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Synchronization
+func (r *SynchronizationRequest) Update(ctx context.Context, reqObj *Synchronization) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Synchronization
+func (r *SynchronizationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SynchronizationJobRequestBuilder is request builder for SynchronizationJob
+type SynchronizationJobRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SynchronizationJobRequest
+func (b *SynchronizationJobRequestBuilder) Request() *SynchronizationJobRequest {
+ return &SynchronizationJobRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SynchronizationJobRequest is request for SynchronizationJob
+type SynchronizationJobRequest struct{ BaseRequest }
+
+// Get performs GET request for SynchronizationJob
+func (r *SynchronizationJobRequest) Get(ctx context.Context) (resObj *SynchronizationJob, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SynchronizationJob
+func (r *SynchronizationJobRequest) Update(ctx context.Context, reqObj *SynchronizationJob) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SynchronizationJob
+func (r *SynchronizationJobRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SynchronizationSchemaRequestBuilder is request builder for SynchronizationSchema
+type SynchronizationSchemaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SynchronizationSchemaRequest
+func (b *SynchronizationSchemaRequestBuilder) Request() *SynchronizationSchemaRequest {
+ return &SynchronizationSchemaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SynchronizationSchemaRequest is request for SynchronizationSchema
+type SynchronizationSchemaRequest struct{ BaseRequest }
+
+// Get performs GET request for SynchronizationSchema
+func (r *SynchronizationSchemaRequest) Get(ctx context.Context) (resObj *SynchronizationSchema, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SynchronizationSchema
+func (r *SynchronizationSchemaRequest) Update(ctx context.Context, reqObj *SynchronizationSchema) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SynchronizationSchema
+func (r *SynchronizationSchemaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// SynchronizationTemplateRequestBuilder is request builder for SynchronizationTemplate
+type SynchronizationTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns SynchronizationTemplateRequest
+func (b *SynchronizationTemplateRequestBuilder) Request() *SynchronizationTemplateRequest {
+ return &SynchronizationTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// SynchronizationTemplateRequest is request for SynchronizationTemplate
+type SynchronizationTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for SynchronizationTemplate
+func (r *SynchronizationTemplateRequest) Get(ctx context.Context) (resObj *SynchronizationTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for SynchronizationTemplate
+func (r *SynchronizationTemplateRequest) Update(ctx context.Context, reqObj *SynchronizationTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for SynchronizationTemplate
+func (r *SynchronizationTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type SynchronizationJobCollectionValidateCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidateCredentials action undocumented
+func (b *SynchronizationJobsCollectionRequestBuilder) ValidateCredentials(reqObj *SynchronizationJobCollectionValidateCredentialsRequestParameter) *SynchronizationJobCollectionValidateCredentialsRequestBuilder {
+ bb := &SynchronizationJobCollectionValidateCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobCollectionValidateCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobCollectionValidateCredentialsRequestBuilder) Request() *SynchronizationJobCollectionValidateCredentialsRequest {
+ return &SynchronizationJobCollectionValidateCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobCollectionValidateCredentialsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobPauseRequestBuilder struct{ BaseRequestBuilder }
+
+// Pause action undocumented
+func (b *SynchronizationJobRequestBuilder) Pause(reqObj *SynchronizationJobPauseRequestParameter) *SynchronizationJobPauseRequestBuilder {
+ bb := &SynchronizationJobPauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/pause"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobPauseRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobPauseRequestBuilder) Request() *SynchronizationJobPauseRequest {
+ return &SynchronizationJobPauseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobPauseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobStartRequestBuilder struct{ BaseRequestBuilder }
+
+// Start action undocumented
+func (b *SynchronizationJobRequestBuilder) Start(reqObj *SynchronizationJobStartRequestParameter) *SynchronizationJobStartRequestBuilder {
+ bb := &SynchronizationJobStartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/start"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobStartRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobStartRequestBuilder) Request() *SynchronizationJobStartRequest {
+ return &SynchronizationJobStartRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobStartRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobStopRequestBuilder struct{ BaseRequestBuilder }
+
+// Stop action undocumented
+func (b *SynchronizationJobRequestBuilder) Stop(reqObj *SynchronizationJobStopRequestParameter) *SynchronizationJobStopRequestBuilder {
+ bb := &SynchronizationJobStopRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stop"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobStopRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobStopRequestBuilder) Request() *SynchronizationJobStopRequest {
+ return &SynchronizationJobStopRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobStopRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobApplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Apply action undocumented
+func (b *SynchronizationJobRequestBuilder) Apply(reqObj *SynchronizationJobApplyRequestParameter) *SynchronizationJobApplyRequestBuilder {
+ bb := &SynchronizationJobApplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/apply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobApplyRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobApplyRequestBuilder) Request() *SynchronizationJobApplyRequest {
+ return &SynchronizationJobApplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobApplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobRestartRequestBuilder struct{ BaseRequestBuilder }
+
+// Restart action undocumented
+func (b *SynchronizationJobRequestBuilder) Restart(reqObj *SynchronizationJobRestartRequestParameter) *SynchronizationJobRestartRequestBuilder {
+ bb := &SynchronizationJobRestartRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/restart"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobRestartRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobRestartRequestBuilder) Request() *SynchronizationJobRestartRequest {
+ return &SynchronizationJobRestartRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobRestartRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationJobValidateCredentialsRequestBuilder struct{ BaseRequestBuilder }
+
+// ValidateCredentials action undocumented
+func (b *SynchronizationJobRequestBuilder) ValidateCredentials(reqObj *SynchronizationJobValidateCredentialsRequestParameter) *SynchronizationJobValidateCredentialsRequestBuilder {
+ bb := &SynchronizationJobValidateCredentialsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/validateCredentials"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationJobValidateCredentialsRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationJobValidateCredentialsRequestBuilder) Request() *SynchronizationJobValidateCredentialsRequest {
+ return &SynchronizationJobValidateCredentialsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationJobValidateCredentialsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type SynchronizationSchemaParseExpressionRequestBuilder struct{ BaseRequestBuilder }
+
+// ParseExpression action undocumented
+func (b *SynchronizationSchemaRequestBuilder) ParseExpression(reqObj *SynchronizationSchemaParseExpressionRequestParameter) *SynchronizationSchemaParseExpressionRequestBuilder {
+ bb := &SynchronizationSchemaParseExpressionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/parseExpression"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type SynchronizationSchemaParseExpressionRequest struct{ BaseRequest }
+
+//
+func (b *SynchronizationSchemaParseExpressionRequestBuilder) Request() *SynchronizationSchemaParseExpressionRequest {
+ return &SynchronizationSchemaParseExpressionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *SynchronizationSchemaParseExpressionRequest) Post(ctx context.Context) (resObj *ParseExpressionResponse, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTargeted.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTargeted.go
new file mode 100644
index 00000000..847bf1da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTargeted.go
@@ -0,0 +1,275 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TargetedManagedAppConfigurationRequestBuilder is request builder for TargetedManagedAppConfiguration
+type TargetedManagedAppConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TargetedManagedAppConfigurationRequest
+func (b *TargetedManagedAppConfigurationRequestBuilder) Request() *TargetedManagedAppConfigurationRequest {
+ return &TargetedManagedAppConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TargetedManagedAppConfigurationRequest is request for TargetedManagedAppConfiguration
+type TargetedManagedAppConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for TargetedManagedAppConfiguration
+func (r *TargetedManagedAppConfigurationRequest) Get(ctx context.Context) (resObj *TargetedManagedAppConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TargetedManagedAppConfiguration
+func (r *TargetedManagedAppConfigurationRequest) Update(ctx context.Context, reqObj *TargetedManagedAppConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TargetedManagedAppConfiguration
+func (r *TargetedManagedAppConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TargetedManagedAppPolicyAssignmentRequestBuilder is request builder for TargetedManagedAppPolicyAssignment
+type TargetedManagedAppPolicyAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TargetedManagedAppPolicyAssignmentRequest
+func (b *TargetedManagedAppPolicyAssignmentRequestBuilder) Request() *TargetedManagedAppPolicyAssignmentRequest {
+ return &TargetedManagedAppPolicyAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TargetedManagedAppPolicyAssignmentRequest is request for TargetedManagedAppPolicyAssignment
+type TargetedManagedAppPolicyAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for TargetedManagedAppPolicyAssignment
+func (r *TargetedManagedAppPolicyAssignmentRequest) Get(ctx context.Context) (resObj *TargetedManagedAppPolicyAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TargetedManagedAppPolicyAssignment
+func (r *TargetedManagedAppPolicyAssignmentRequest) Update(ctx context.Context, reqObj *TargetedManagedAppPolicyAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TargetedManagedAppPolicyAssignment
+func (r *TargetedManagedAppPolicyAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TargetedManagedAppProtectionRequestBuilder is request builder for TargetedManagedAppProtection
+type TargetedManagedAppProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TargetedManagedAppProtectionRequest
+func (b *TargetedManagedAppProtectionRequestBuilder) Request() *TargetedManagedAppProtectionRequest {
+ return &TargetedManagedAppProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TargetedManagedAppProtectionRequest is request for TargetedManagedAppProtection
+type TargetedManagedAppProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for TargetedManagedAppProtection
+func (r *TargetedManagedAppProtectionRequest) Get(ctx context.Context) (resObj *TargetedManagedAppProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TargetedManagedAppProtection
+func (r *TargetedManagedAppProtectionRequest) Update(ctx context.Context, reqObj *TargetedManagedAppProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TargetedManagedAppProtection
+func (r *TargetedManagedAppProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceAppManagementTargetedManagedAppConfigurationsCollectionRequestBuilder) HasPayloadLinks(reqObj *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestParameter) *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder {
+ bb := &TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequestBuilder) Request() *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest {
+ return &TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *TargetedManagedAppConfigurationCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type TargetedManagedAppConfigurationAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *TargetedManagedAppConfigurationRequestBuilder) Assign(reqObj *TargetedManagedAppConfigurationAssignRequestParameter) *TargetedManagedAppConfigurationAssignRequestBuilder {
+ bb := &TargetedManagedAppConfigurationAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TargetedManagedAppConfigurationAssignRequest struct{ BaseRequest }
+
+//
+func (b *TargetedManagedAppConfigurationAssignRequestBuilder) Request() *TargetedManagedAppConfigurationAssignRequest {
+ return &TargetedManagedAppConfigurationAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TargetedManagedAppConfigurationAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type TargetedManagedAppConfigurationTargetAppsRequestBuilder struct{ BaseRequestBuilder }
+
+// TargetApps action undocumented
+func (b *TargetedManagedAppConfigurationRequestBuilder) TargetApps(reqObj *TargetedManagedAppConfigurationTargetAppsRequestParameter) *TargetedManagedAppConfigurationTargetAppsRequestBuilder {
+ bb := &TargetedManagedAppConfigurationTargetAppsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/targetApps"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TargetedManagedAppConfigurationTargetAppsRequest struct{ BaseRequest }
+
+//
+func (b *TargetedManagedAppConfigurationTargetAppsRequestBuilder) Request() *TargetedManagedAppConfigurationTargetAppsRequest {
+ return &TargetedManagedAppConfigurationTargetAppsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TargetedManagedAppConfigurationTargetAppsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type TargetedManagedAppProtectionAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *TargetedManagedAppProtectionRequestBuilder) Assign(reqObj *TargetedManagedAppProtectionAssignRequestParameter) *TargetedManagedAppProtectionAssignRequestBuilder {
+ bb := &TargetedManagedAppProtectionAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TargetedManagedAppProtectionAssignRequest struct{ BaseRequest }
+
+//
+func (b *TargetedManagedAppProtectionAssignRequestBuilder) Request() *TargetedManagedAppProtectionAssignRequest {
+ return &TargetedManagedAppProtectionAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TargetedManagedAppProtectionAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTax.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTax.go
new file mode 100644
index 00000000..7a965faf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTax.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TaxAreaRequestBuilder is request builder for TaxArea
+type TaxAreaRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TaxAreaRequest
+func (b *TaxAreaRequestBuilder) Request() *TaxAreaRequest {
+ return &TaxAreaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TaxAreaRequest is request for TaxArea
+type TaxAreaRequest struct{ BaseRequest }
+
+// Get performs GET request for TaxArea
+func (r *TaxAreaRequest) Get(ctx context.Context) (resObj *TaxArea, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TaxArea
+func (r *TaxAreaRequest) Update(ctx context.Context, reqObj *TaxArea) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TaxArea
+func (r *TaxAreaRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TaxGroupRequestBuilder is request builder for TaxGroup
+type TaxGroupRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TaxGroupRequest
+func (b *TaxGroupRequestBuilder) Request() *TaxGroupRequest {
+ return &TaxGroupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TaxGroupRequest is request for TaxGroup
+type TaxGroupRequest struct{ BaseRequest }
+
+// Get performs GET request for TaxGroup
+func (r *TaxGroupRequest) Get(ctx context.Context) (resObj *TaxGroup, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TaxGroup
+func (r *TaxGroupRequest) Update(ctx context.Context, reqObj *TaxGroup) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TaxGroup
+func (r *TaxGroupRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeam.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeam.go
new file mode 100644
index 00000000..d58b2404
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeam.go
@@ -0,0 +1,116 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamRequestBuilder is request builder for Team
+type TeamRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamRequest
+func (b *TeamRequestBuilder) Request() *TeamRequest {
+ return &TeamRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamRequest is request for Team
+type TeamRequest struct{ BaseRequest }
+
+// Get performs GET request for Team
+func (r *TeamRequest) Get(ctx context.Context) (resObj *Team, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Team
+func (r *TeamRequest) Update(ctx context.Context, reqObj *Team) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Team
+func (r *TeamRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type TeamCloneRequestBuilder struct{ BaseRequestBuilder }
+
+// Clone action undocumented
+func (b *TeamRequestBuilder) Clone(reqObj *TeamCloneRequestParameter) *TeamCloneRequestBuilder {
+ bb := &TeamCloneRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clone"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TeamCloneRequest struct{ BaseRequest }
+
+//
+func (b *TeamCloneRequestBuilder) Request() *TeamCloneRequest {
+ return &TeamCloneRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TeamCloneRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type TeamArchiveRequestBuilder struct{ BaseRequestBuilder }
+
+// Archive action undocumented
+func (b *TeamRequestBuilder) Archive(reqObj *TeamArchiveRequestParameter) *TeamArchiveRequestBuilder {
+ bb := &TeamArchiveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/archive"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TeamArchiveRequest struct{ BaseRequest }
+
+//
+func (b *TeamArchiveRequestBuilder) Request() *TeamArchiveRequest {
+ return &TeamArchiveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TeamArchiveRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type TeamUnarchiveRequestBuilder struct{ BaseRequestBuilder }
+
+// Unarchive action undocumented
+func (b *TeamRequestBuilder) Unarchive(reqObj *TeamUnarchiveRequestParameter) *TeamUnarchiveRequestBuilder {
+ bb := &TeamUnarchiveRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unarchive"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TeamUnarchiveRequest struct{ BaseRequest }
+
+//
+func (b *TeamUnarchiveRequestBuilder) Request() *TeamUnarchiveRequest {
+ return &TeamUnarchiveRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TeamUnarchiveRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeams.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeams.go
new file mode 100644
index 00000000..550f2bed
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeams.go
@@ -0,0 +1,262 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamsAppRequestBuilder is request builder for TeamsApp
+type TeamsAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsAppRequest
+func (b *TeamsAppRequestBuilder) Request() *TeamsAppRequest {
+ return &TeamsAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsAppRequest is request for TeamsApp
+type TeamsAppRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsApp
+func (r *TeamsAppRequest) Get(ctx context.Context) (resObj *TeamsApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsApp
+func (r *TeamsAppRequest) Update(ctx context.Context, reqObj *TeamsApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsApp
+func (r *TeamsAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TeamsAppDefinitionRequestBuilder is request builder for TeamsAppDefinition
+type TeamsAppDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsAppDefinitionRequest
+func (b *TeamsAppDefinitionRequestBuilder) Request() *TeamsAppDefinitionRequest {
+ return &TeamsAppDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsAppDefinitionRequest is request for TeamsAppDefinition
+type TeamsAppDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsAppDefinition
+func (r *TeamsAppDefinitionRequest) Get(ctx context.Context) (resObj *TeamsAppDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsAppDefinition
+func (r *TeamsAppDefinitionRequest) Update(ctx context.Context, reqObj *TeamsAppDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsAppDefinition
+func (r *TeamsAppDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TeamsAppInstallationRequestBuilder is request builder for TeamsAppInstallation
+type TeamsAppInstallationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsAppInstallationRequest
+func (b *TeamsAppInstallationRequestBuilder) Request() *TeamsAppInstallationRequest {
+ return &TeamsAppInstallationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsAppInstallationRequest is request for TeamsAppInstallation
+type TeamsAppInstallationRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsAppInstallation
+func (r *TeamsAppInstallationRequest) Get(ctx context.Context) (resObj *TeamsAppInstallation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsAppInstallation
+func (r *TeamsAppInstallationRequest) Update(ctx context.Context, reqObj *TeamsAppInstallation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsAppInstallation
+func (r *TeamsAppInstallationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TeamsAsyncOperationRequestBuilder is request builder for TeamsAsyncOperation
+type TeamsAsyncOperationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsAsyncOperationRequest
+func (b *TeamsAsyncOperationRequestBuilder) Request() *TeamsAsyncOperationRequest {
+ return &TeamsAsyncOperationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsAsyncOperationRequest is request for TeamsAsyncOperation
+type TeamsAsyncOperationRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsAsyncOperation
+func (r *TeamsAsyncOperationRequest) Get(ctx context.Context) (resObj *TeamsAsyncOperation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsAsyncOperation
+func (r *TeamsAsyncOperationRequest) Update(ctx context.Context, reqObj *TeamsAsyncOperation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsAsyncOperation
+func (r *TeamsAsyncOperationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TeamsCatalogAppRequestBuilder is request builder for TeamsCatalogApp
+type TeamsCatalogAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsCatalogAppRequest
+func (b *TeamsCatalogAppRequestBuilder) Request() *TeamsCatalogAppRequest {
+ return &TeamsCatalogAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsCatalogAppRequest is request for TeamsCatalogApp
+type TeamsCatalogAppRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsCatalogApp
+func (r *TeamsCatalogAppRequest) Get(ctx context.Context) (resObj *TeamsCatalogApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsCatalogApp
+func (r *TeamsCatalogAppRequest) Update(ctx context.Context, reqObj *TeamsCatalogApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsCatalogApp
+func (r *TeamsCatalogAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TeamsTabRequestBuilder is request builder for TeamsTab
+type TeamsTabRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsTabRequest
+func (b *TeamsTabRequestBuilder) Request() *TeamsTabRequest {
+ return &TeamsTabRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsTabRequest is request for TeamsTab
+type TeamsTabRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsTab
+func (r *TeamsTabRequest) Get(ctx context.Context) (resObj *TeamsTab, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsTab
+func (r *TeamsTabRequest) Update(ctx context.Context, reqObj *TeamsTab) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsTab
+func (r *TeamsTabRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TeamsTemplateRequestBuilder is request builder for TeamsTemplate
+type TeamsTemplateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamsTemplateRequest
+func (b *TeamsTemplateRequestBuilder) Request() *TeamsTemplateRequest {
+ return &TeamsTemplateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamsTemplateRequest is request for TeamsTemplate
+type TeamsTemplateRequest struct{ BaseRequest }
+
+// Get performs GET request for TeamsTemplate
+func (r *TeamsTemplateRequest) Get(ctx context.Context) (resObj *TeamsTemplate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TeamsTemplate
+func (r *TeamsTemplateRequest) Update(ctx context.Context, reqObj *TeamsTemplate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TeamsTemplate
+func (r *TeamsTemplateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type TeamsAppInstallationUpgradeRequestBuilder struct{ BaseRequestBuilder }
+
+// Upgrade action undocumented
+func (b *TeamsAppInstallationRequestBuilder) Upgrade(reqObj *TeamsAppInstallationUpgradeRequestParameter) *TeamsAppInstallationUpgradeRequestBuilder {
+ bb := &TeamsAppInstallationUpgradeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/upgrade"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TeamsAppInstallationUpgradeRequest struct{ BaseRequest }
+
+//
+func (b *TeamsAppInstallationUpgradeRequestBuilder) Request() *TeamsAppInstallationUpgradeRequest {
+ return &TeamsAppInstallationUpgradeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TeamsAppInstallationUpgradeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeamwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeamwork.go
new file mode 100644
index 00000000..eed0fadc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTeamwork.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TeamworkRequestBuilder is request builder for Teamwork
+type TeamworkRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TeamworkRequest
+func (b *TeamworkRequestBuilder) Request() *TeamworkRequest {
+ return &TeamworkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TeamworkRequest is request for Teamwork
+type TeamworkRequest struct{ BaseRequest }
+
+// Get performs GET request for Teamwork
+func (r *TeamworkRequest) Get(ctx context.Context) (resObj *Teamwork, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Teamwork
+func (r *TeamworkRequest) Update(ctx context.Context, reqObj *Teamwork) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Teamwork
+func (r *TeamworkRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTelecom.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTelecom.go
new file mode 100644
index 00000000..d2523408
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTelecom.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TelecomExpenseManagementPartnerRequestBuilder is request builder for TelecomExpenseManagementPartner
+type TelecomExpenseManagementPartnerRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TelecomExpenseManagementPartnerRequest
+func (b *TelecomExpenseManagementPartnerRequestBuilder) Request() *TelecomExpenseManagementPartnerRequest {
+ return &TelecomExpenseManagementPartnerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TelecomExpenseManagementPartnerRequest is request for TelecomExpenseManagementPartner
+type TelecomExpenseManagementPartnerRequest struct{ BaseRequest }
+
+// Get performs GET request for TelecomExpenseManagementPartner
+func (r *TelecomExpenseManagementPartnerRequest) Get(ctx context.Context) (resObj *TelecomExpenseManagementPartner, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TelecomExpenseManagementPartner
+func (r *TelecomExpenseManagementPartnerRequest) Update(ctx context.Context, reqObj *TelecomExpenseManagementPartner) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TelecomExpenseManagementPartner
+func (r *TelecomExpenseManagementPartnerRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTenant.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTenant.go
new file mode 100644
index 00000000..0b1e6a4f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTenant.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TenantSetupInfoRequestBuilder is request builder for TenantSetupInfo
+type TenantSetupInfoRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TenantSetupInfoRequest
+func (b *TenantSetupInfoRequestBuilder) Request() *TenantSetupInfoRequest {
+ return &TenantSetupInfoRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TenantSetupInfoRequest is request for TenantSetupInfo
+type TenantSetupInfoRequest struct{ BaseRequest }
+
+// Get performs GET request for TenantSetupInfo
+func (r *TenantSetupInfoRequest) Get(ctx context.Context) (resObj *TenantSetupInfo, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TenantSetupInfo
+func (r *TenantSetupInfoRequest) Update(ctx context.Context, reqObj *TenantSetupInfo) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TenantSetupInfo
+func (r *TenantSetupInfoRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTerms.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTerms.go
new file mode 100644
index 00000000..ea6ab90e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTerms.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TermsAndConditionsRequestBuilder is request builder for TermsAndConditions
+type TermsAndConditionsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TermsAndConditionsRequest
+func (b *TermsAndConditionsRequestBuilder) Request() *TermsAndConditionsRequest {
+ return &TermsAndConditionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TermsAndConditionsRequest is request for TermsAndConditions
+type TermsAndConditionsRequest struct{ BaseRequest }
+
+// Get performs GET request for TermsAndConditions
+func (r *TermsAndConditionsRequest) Get(ctx context.Context) (resObj *TermsAndConditions, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TermsAndConditions
+func (r *TermsAndConditionsRequest) Update(ctx context.Context, reqObj *TermsAndConditions) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TermsAndConditions
+func (r *TermsAndConditionsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TermsAndConditionsAcceptanceStatusRequestBuilder is request builder for TermsAndConditionsAcceptanceStatus
+type TermsAndConditionsAcceptanceStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TermsAndConditionsAcceptanceStatusRequest
+func (b *TermsAndConditionsAcceptanceStatusRequestBuilder) Request() *TermsAndConditionsAcceptanceStatusRequest {
+ return &TermsAndConditionsAcceptanceStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TermsAndConditionsAcceptanceStatusRequest is request for TermsAndConditionsAcceptanceStatus
+type TermsAndConditionsAcceptanceStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for TermsAndConditionsAcceptanceStatus
+func (r *TermsAndConditionsAcceptanceStatusRequest) Get(ctx context.Context) (resObj *TermsAndConditionsAcceptanceStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TermsAndConditionsAcceptanceStatus
+func (r *TermsAndConditionsAcceptanceStatusRequest) Update(ctx context.Context, reqObj *TermsAndConditionsAcceptanceStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TermsAndConditionsAcceptanceStatus
+func (r *TermsAndConditionsAcceptanceStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TermsAndConditionsAssignmentRequestBuilder is request builder for TermsAndConditionsAssignment
+type TermsAndConditionsAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TermsAndConditionsAssignmentRequest
+func (b *TermsAndConditionsAssignmentRequestBuilder) Request() *TermsAndConditionsAssignmentRequest {
+ return &TermsAndConditionsAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TermsAndConditionsAssignmentRequest is request for TermsAndConditionsAssignment
+type TermsAndConditionsAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for TermsAndConditionsAssignment
+func (r *TermsAndConditionsAssignmentRequest) Get(ctx context.Context) (resObj *TermsAndConditionsAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TermsAndConditionsAssignment
+func (r *TermsAndConditionsAssignmentRequest) Update(ctx context.Context, reqObj *TermsAndConditionsAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TermsAndConditionsAssignment
+func (r *TermsAndConditionsAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TermsAndConditionsGroupAssignmentRequestBuilder is request builder for TermsAndConditionsGroupAssignment
+type TermsAndConditionsGroupAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TermsAndConditionsGroupAssignmentRequest
+func (b *TermsAndConditionsGroupAssignmentRequestBuilder) Request() *TermsAndConditionsGroupAssignmentRequest {
+ return &TermsAndConditionsGroupAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TermsAndConditionsGroupAssignmentRequest is request for TermsAndConditionsGroupAssignment
+type TermsAndConditionsGroupAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for TermsAndConditionsGroupAssignment
+func (r *TermsAndConditionsGroupAssignmentRequest) Get(ctx context.Context) (resObj *TermsAndConditionsGroupAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TermsAndConditionsGroupAssignment
+func (r *TermsAndConditionsGroupAssignmentRequest) Update(ctx context.Context, reqObj *TermsAndConditionsGroupAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TermsAndConditionsGroupAssignment
+func (r *TermsAndConditionsGroupAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestText.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestText.go
new file mode 100644
index 00000000..b0954e8e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestText.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TextClassificationRequestObjectRequestBuilder is request builder for TextClassificationRequestObject
+type TextClassificationRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TextClassificationRequestObjectRequest
+func (b *TextClassificationRequestObjectRequestBuilder) Request() *TextClassificationRequestObjectRequest {
+ return &TextClassificationRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TextClassificationRequestObjectRequest is request for TextClassificationRequestObject
+type TextClassificationRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for TextClassificationRequestObject
+func (r *TextClassificationRequestObjectRequest) Get(ctx context.Context) (resObj *TextClassificationRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TextClassificationRequestObject
+func (r *TextClassificationRequestObjectRequest) Update(ctx context.Context, reqObj *TextClassificationRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TextClassificationRequestObject
+func (r *TextClassificationRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestThreat.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestThreat.go
new file mode 100644
index 00000000..2e8fa2da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestThreat.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ThreatAssessmentRequestObjectRequestBuilder is request builder for ThreatAssessmentRequestObject
+type ThreatAssessmentRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ThreatAssessmentRequestObjectRequest
+func (b *ThreatAssessmentRequestObjectRequestBuilder) Request() *ThreatAssessmentRequestObjectRequest {
+ return &ThreatAssessmentRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ThreatAssessmentRequestObjectRequest is request for ThreatAssessmentRequestObject
+type ThreatAssessmentRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for ThreatAssessmentRequestObject
+func (r *ThreatAssessmentRequestObjectRequest) Get(ctx context.Context) (resObj *ThreatAssessmentRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ThreatAssessmentRequestObject
+func (r *ThreatAssessmentRequestObjectRequest) Update(ctx context.Context, reqObj *ThreatAssessmentRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ThreatAssessmentRequestObject
+func (r *ThreatAssessmentRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// ThreatAssessmentResultRequestBuilder is request builder for ThreatAssessmentResult
+type ThreatAssessmentResultRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ThreatAssessmentResultRequest
+func (b *ThreatAssessmentResultRequestBuilder) Request() *ThreatAssessmentResultRequest {
+ return &ThreatAssessmentResultRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ThreatAssessmentResultRequest is request for ThreatAssessmentResult
+type ThreatAssessmentResultRequest struct{ BaseRequest }
+
+// Get performs GET request for ThreatAssessmentResult
+func (r *ThreatAssessmentResultRequest) Get(ctx context.Context) (resObj *ThreatAssessmentResult, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ThreatAssessmentResult
+func (r *ThreatAssessmentResultRequest) Update(ctx context.Context, reqObj *ThreatAssessmentResult) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ThreatAssessmentResult
+func (r *ThreatAssessmentResultRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestThumbnail.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestThumbnail.go
new file mode 100644
index 00000000..d028a8d6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestThumbnail.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// ThumbnailSetRequestBuilder is request builder for ThumbnailSet
+type ThumbnailSetRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns ThumbnailSetRequest
+func (b *ThumbnailSetRequestBuilder) Request() *ThumbnailSetRequest {
+ return &ThumbnailSetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// ThumbnailSetRequest is request for ThumbnailSet
+type ThumbnailSetRequest struct{ BaseRequest }
+
+// Get performs GET request for ThumbnailSet
+func (r *ThumbnailSetRequest) Get(ctx context.Context) (resObj *ThumbnailSet, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for ThumbnailSet
+func (r *ThumbnailSetRequest) Update(ctx context.Context, reqObj *ThumbnailSet) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for ThumbnailSet
+func (r *ThumbnailSetRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTi.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTi.go
new file mode 100644
index 00000000..cb821cfd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTi.go
@@ -0,0 +1,389 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// TiIndicatorRequestBuilder is request builder for TiIndicator
+type TiIndicatorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TiIndicatorRequest
+func (b *TiIndicatorRequestBuilder) Request() *TiIndicatorRequest {
+ return &TiIndicatorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TiIndicatorRequest is request for TiIndicator
+type TiIndicatorRequest struct{ BaseRequest }
+
+// Get performs GET request for TiIndicator
+func (r *TiIndicatorRequest) Get(ctx context.Context) (resObj *TiIndicator, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TiIndicator
+func (r *TiIndicatorRequest) Update(ctx context.Context, reqObj *TiIndicator) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TiIndicator
+func (r *TiIndicatorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder struct{ BaseRequestBuilder }
+
+// SubmitTiIndicators action undocumented
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) SubmitTiIndicators(reqObj *TiIndicatorCollectionSubmitTiIndicatorsRequestParameter) *TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder {
+ bb := &TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/submitTiIndicators"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TiIndicatorCollectionSubmitTiIndicatorsRequest struct{ BaseRequest }
+
+//
+func (b *TiIndicatorCollectionSubmitTiIndicatorsRequestBuilder) Request() *TiIndicatorCollectionSubmitTiIndicatorsRequest {
+ return &TiIndicatorCollectionSubmitTiIndicatorsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TiIndicatorCollectionSubmitTiIndicatorsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TiIndicator, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TiIndicator
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TiIndicator
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TiIndicatorCollectionSubmitTiIndicatorsRequest) PostN(ctx context.Context, n int) ([]TiIndicator, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *TiIndicatorCollectionSubmitTiIndicatorsRequest) Post(ctx context.Context) ([]TiIndicator, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateTiIndicators action undocumented
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) UpdateTiIndicators(reqObj *TiIndicatorCollectionUpdateTiIndicatorsRequestParameter) *TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder {
+ bb := &TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateTiIndicators"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TiIndicatorCollectionUpdateTiIndicatorsRequest struct{ BaseRequest }
+
+//
+func (b *TiIndicatorCollectionUpdateTiIndicatorsRequestBuilder) Request() *TiIndicatorCollectionUpdateTiIndicatorsRequest {
+ return &TiIndicatorCollectionUpdateTiIndicatorsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TiIndicatorCollectionUpdateTiIndicatorsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]TiIndicator, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []TiIndicator
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []TiIndicator
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TiIndicatorCollectionUpdateTiIndicatorsRequest) PostN(ctx context.Context, n int) ([]TiIndicator, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *TiIndicatorCollectionUpdateTiIndicatorsRequest) Post(ctx context.Context) ([]TiIndicator, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder struct{ BaseRequestBuilder }
+
+// DeleteTiIndicators action undocumented
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) DeleteTiIndicators(reqObj *TiIndicatorCollectionDeleteTiIndicatorsRequestParameter) *TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder {
+ bb := &TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/deleteTiIndicators"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TiIndicatorCollectionDeleteTiIndicatorsRequest struct{ BaseRequest }
+
+//
+func (b *TiIndicatorCollectionDeleteTiIndicatorsRequestBuilder) Request() *TiIndicatorCollectionDeleteTiIndicatorsRequest {
+ return &TiIndicatorCollectionDeleteTiIndicatorsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResultInfo, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ResultInfo
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ResultInfo
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsRequest) PostN(ctx context.Context, n int) ([]ResultInfo, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsRequest) Post(ctx context.Context) ([]ResultInfo, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder struct{ BaseRequestBuilder }
+
+// DeleteTiIndicatorsByExternalID action undocumented
+func (b *SecurityTiIndicatorsCollectionRequestBuilder) DeleteTiIndicatorsByExternalID(reqObj *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestParameter) *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder {
+ bb := &TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/deleteTiIndicatorsByExternalId"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest struct{ BaseRequest }
+
+//
+func (b *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequestBuilder) Request() *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest {
+ return &TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ResultInfo, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ResultInfo
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ResultInfo
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest) PostN(ctx context.Context, n int) ([]ResultInfo, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *TiIndicatorCollectionDeleteTiIndicatorsByExternalIDRequest) Post(ctx context.Context) ([]ResultInfo, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTime.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTime.go
new file mode 100644
index 00000000..ef3a04c9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTime.go
@@ -0,0 +1,104 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TimeOffRequestBuilder is request builder for TimeOff
+type TimeOffRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TimeOffRequest
+func (b *TimeOffRequestBuilder) Request() *TimeOffRequest {
+ return &TimeOffRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TimeOffRequest is request for TimeOff
+type TimeOffRequest struct{ BaseRequest }
+
+// Get performs GET request for TimeOff
+func (r *TimeOffRequest) Get(ctx context.Context) (resObj *TimeOff, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TimeOff
+func (r *TimeOffRequest) Update(ctx context.Context, reqObj *TimeOff) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TimeOff
+func (r *TimeOffRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TimeOffReasonRequestBuilder is request builder for TimeOffReason
+type TimeOffReasonRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TimeOffReasonRequest
+func (b *TimeOffReasonRequestBuilder) Request() *TimeOffReasonRequest {
+ return &TimeOffReasonRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TimeOffReasonRequest is request for TimeOffReason
+type TimeOffReasonRequest struct{ BaseRequest }
+
+// Get performs GET request for TimeOffReason
+func (r *TimeOffReasonRequest) Get(ctx context.Context) (resObj *TimeOffReason, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TimeOffReason
+func (r *TimeOffReasonRequest) Update(ctx context.Context, reqObj *TimeOffReason) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TimeOffReason
+func (r *TimeOffReasonRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TimeOffRequestObjectRequestBuilder is request builder for TimeOffRequestObject
+type TimeOffRequestObjectRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TimeOffRequestObjectRequest
+func (b *TimeOffRequestObjectRequestBuilder) Request() *TimeOffRequestObjectRequest {
+ return &TimeOffRequestObjectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TimeOffRequestObjectRequest is request for TimeOffRequestObject
+type TimeOffRequestObjectRequest struct{ BaseRequest }
+
+// Get performs GET request for TimeOffRequestObject
+func (r *TimeOffRequestObjectRequest) Get(ctx context.Context) (resObj *TimeOffRequestObject, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TimeOffRequestObject
+func (r *TimeOffRequestObjectRequest) Update(ctx context.Context, reqObj *TimeOffRequestObject) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TimeOffRequestObject
+func (r *TimeOffRequestObjectRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrending.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrending.go
new file mode 100644
index 00000000..ccea21bf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrending.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TrendingRequestBuilder is request builder for Trending
+type TrendingRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TrendingRequest
+func (b *TrendingRequestBuilder) Request() *TrendingRequest {
+ return &TrendingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TrendingRequest is request for Trending
+type TrendingRequest struct{ BaseRequest }
+
+// Get performs GET request for Trending
+func (r *TrendingRequest) Get(ctx context.Context) (resObj *Trending, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Trending
+func (r *TrendingRequest) Update(ctx context.Context, reqObj *Trending) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Trending
+func (r *TrendingRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrust.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrust.go
new file mode 100644
index 00000000..7d3e61e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestTrust.go
@@ -0,0 +1,212 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// TrustFrameworkRequestBuilder is request builder for TrustFramework
+type TrustFrameworkRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TrustFrameworkRequest
+func (b *TrustFrameworkRequestBuilder) Request() *TrustFrameworkRequest {
+ return &TrustFrameworkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TrustFrameworkRequest is request for TrustFramework
+type TrustFrameworkRequest struct{ BaseRequest }
+
+// Get performs GET request for TrustFramework
+func (r *TrustFrameworkRequest) Get(ctx context.Context) (resObj *TrustFramework, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TrustFramework
+func (r *TrustFrameworkRequest) Update(ctx context.Context, reqObj *TrustFramework) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TrustFramework
+func (r *TrustFrameworkRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TrustFrameworkKeySetRequestBuilder is request builder for TrustFrameworkKeySet
+type TrustFrameworkKeySetRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TrustFrameworkKeySetRequest
+func (b *TrustFrameworkKeySetRequestBuilder) Request() *TrustFrameworkKeySetRequest {
+ return &TrustFrameworkKeySetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TrustFrameworkKeySetRequest is request for TrustFrameworkKeySet
+type TrustFrameworkKeySetRequest struct{ BaseRequest }
+
+// Get performs GET request for TrustFrameworkKeySet
+func (r *TrustFrameworkKeySetRequest) Get(ctx context.Context) (resObj *TrustFrameworkKeySet, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TrustFrameworkKeySet
+func (r *TrustFrameworkKeySetRequest) Update(ctx context.Context, reqObj *TrustFrameworkKeySet) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TrustFrameworkKeySet
+func (r *TrustFrameworkKeySetRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// TrustFrameworkPolicyRequestBuilder is request builder for TrustFrameworkPolicy
+type TrustFrameworkPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns TrustFrameworkPolicyRequest
+func (b *TrustFrameworkPolicyRequestBuilder) Request() *TrustFrameworkPolicyRequest {
+ return &TrustFrameworkPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// TrustFrameworkPolicyRequest is request for TrustFrameworkPolicy
+type TrustFrameworkPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for TrustFrameworkPolicy
+func (r *TrustFrameworkPolicyRequest) Get(ctx context.Context) (resObj *TrustFrameworkPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for TrustFrameworkPolicy
+func (r *TrustFrameworkPolicyRequest) Update(ctx context.Context, reqObj *TrustFrameworkPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for TrustFrameworkPolicy
+func (r *TrustFrameworkPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type TrustFrameworkKeySetGenerateKeyRequestBuilder struct{ BaseRequestBuilder }
+
+// GenerateKey action undocumented
+func (b *TrustFrameworkKeySetRequestBuilder) GenerateKey(reqObj *TrustFrameworkKeySetGenerateKeyRequestParameter) *TrustFrameworkKeySetGenerateKeyRequestBuilder {
+ bb := &TrustFrameworkKeySetGenerateKeyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/generateKey"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TrustFrameworkKeySetGenerateKeyRequest struct{ BaseRequest }
+
+//
+func (b *TrustFrameworkKeySetGenerateKeyRequestBuilder) Request() *TrustFrameworkKeySetGenerateKeyRequest {
+ return &TrustFrameworkKeySetGenerateKeyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TrustFrameworkKeySetGenerateKeyRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type TrustFrameworkKeySetUploadSecretRequestBuilder struct{ BaseRequestBuilder }
+
+// UploadSecret action undocumented
+func (b *TrustFrameworkKeySetRequestBuilder) UploadSecret(reqObj *TrustFrameworkKeySetUploadSecretRequestParameter) *TrustFrameworkKeySetUploadSecretRequestBuilder {
+ bb := &TrustFrameworkKeySetUploadSecretRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/uploadSecret"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TrustFrameworkKeySetUploadSecretRequest struct{ BaseRequest }
+
+//
+func (b *TrustFrameworkKeySetUploadSecretRequestBuilder) Request() *TrustFrameworkKeySetUploadSecretRequest {
+ return &TrustFrameworkKeySetUploadSecretRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TrustFrameworkKeySetUploadSecretRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type TrustFrameworkKeySetUploadCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// UploadCertificate action undocumented
+func (b *TrustFrameworkKeySetRequestBuilder) UploadCertificate(reqObj *TrustFrameworkKeySetUploadCertificateRequestParameter) *TrustFrameworkKeySetUploadCertificateRequestBuilder {
+ bb := &TrustFrameworkKeySetUploadCertificateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/uploadCertificate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TrustFrameworkKeySetUploadCertificateRequest struct{ BaseRequest }
+
+//
+func (b *TrustFrameworkKeySetUploadCertificateRequestBuilder) Request() *TrustFrameworkKeySetUploadCertificateRequest {
+ return &TrustFrameworkKeySetUploadCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TrustFrameworkKeySetUploadCertificateRequest) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type TrustFrameworkKeySetUploadPkcs12RequestBuilder struct{ BaseRequestBuilder }
+
+// UploadPkcs12 action undocumented
+func (b *TrustFrameworkKeySetRequestBuilder) UploadPkcs12(reqObj *TrustFrameworkKeySetUploadPkcs12RequestParameter) *TrustFrameworkKeySetUploadPkcs12RequestBuilder {
+ bb := &TrustFrameworkKeySetUploadPkcs12RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/uploadPkcs12"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type TrustFrameworkKeySetUploadPkcs12Request struct{ BaseRequest }
+
+//
+func (b *TrustFrameworkKeySetUploadPkcs12RequestBuilder) Request() *TrustFrameworkKeySetUploadPkcs12Request {
+ return &TrustFrameworkKeySetUploadPkcs12Request{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *TrustFrameworkKeySetUploadPkcs12Request) Post(ctx context.Context) (resObj *TrustFrameworkKey, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnfamiliar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnfamiliar.go
new file mode 100644
index 00000000..52cea47e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnfamiliar.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UnfamiliarLocationRiskEventRequestBuilder is request builder for UnfamiliarLocationRiskEvent
+type UnfamiliarLocationRiskEventRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UnfamiliarLocationRiskEventRequest
+func (b *UnfamiliarLocationRiskEventRequestBuilder) Request() *UnfamiliarLocationRiskEventRequest {
+ return &UnfamiliarLocationRiskEventRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UnfamiliarLocationRiskEventRequest is request for UnfamiliarLocationRiskEvent
+type UnfamiliarLocationRiskEventRequest struct{ BaseRequest }
+
+// Get performs GET request for UnfamiliarLocationRiskEvent
+func (r *UnfamiliarLocationRiskEventRequest) Get(ctx context.Context) (resObj *UnfamiliarLocationRiskEvent, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UnfamiliarLocationRiskEvent
+func (r *UnfamiliarLocationRiskEventRequest) Update(ctx context.Context, reqObj *UnfamiliarLocationRiskEvent) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UnfamiliarLocationRiskEvent
+func (r *UnfamiliarLocationRiskEventRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnified.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnified.go
new file mode 100644
index 00000000..a7b67a05
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnified.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UnifiedRoleAssignmentRequestBuilder is request builder for UnifiedRoleAssignment
+type UnifiedRoleAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UnifiedRoleAssignmentRequest
+func (b *UnifiedRoleAssignmentRequestBuilder) Request() *UnifiedRoleAssignmentRequest {
+ return &UnifiedRoleAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UnifiedRoleAssignmentRequest is request for UnifiedRoleAssignment
+type UnifiedRoleAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for UnifiedRoleAssignment
+func (r *UnifiedRoleAssignmentRequest) Get(ctx context.Context) (resObj *UnifiedRoleAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UnifiedRoleAssignment
+func (r *UnifiedRoleAssignmentRequest) Update(ctx context.Context, reqObj *UnifiedRoleAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UnifiedRoleAssignment
+func (r *UnifiedRoleAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UnifiedRoleDefinitionRequestBuilder is request builder for UnifiedRoleDefinition
+type UnifiedRoleDefinitionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UnifiedRoleDefinitionRequest
+func (b *UnifiedRoleDefinitionRequestBuilder) Request() *UnifiedRoleDefinitionRequest {
+ return &UnifiedRoleDefinitionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UnifiedRoleDefinitionRequest is request for UnifiedRoleDefinition
+type UnifiedRoleDefinitionRequest struct{ BaseRequest }
+
+// Get performs GET request for UnifiedRoleDefinition
+func (r *UnifiedRoleDefinitionRequest) Get(ctx context.Context) (resObj *UnifiedRoleDefinition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UnifiedRoleDefinition
+func (r *UnifiedRoleDefinitionRequest) Update(ctx context.Context, reqObj *UnifiedRoleDefinition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UnifiedRoleDefinition
+func (r *UnifiedRoleDefinitionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnit.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnit.go
new file mode 100644
index 00000000..1cbf4f70
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUnit.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UnitOfMeasureRequestBuilder is request builder for UnitOfMeasure
+type UnitOfMeasureRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UnitOfMeasureRequest
+func (b *UnitOfMeasureRequestBuilder) Request() *UnitOfMeasureRequest {
+ return &UnitOfMeasureRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UnitOfMeasureRequest is request for UnitOfMeasure
+type UnitOfMeasureRequest struct{ BaseRequest }
+
+// Get performs GET request for UnitOfMeasure
+func (r *UnitOfMeasureRequest) Get(ctx context.Context) (resObj *UnitOfMeasure, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UnitOfMeasure
+func (r *UnitOfMeasureRequest) Update(ctx context.Context, reqObj *UnitOfMeasure) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UnitOfMeasure
+func (r *UnitOfMeasureRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestUsed.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUsed.go
new file mode 100644
index 00000000..236599c0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUsed.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// UsedInsightRequestBuilder is request builder for UsedInsight
+type UsedInsightRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UsedInsightRequest
+func (b *UsedInsightRequestBuilder) Request() *UsedInsightRequest {
+ return &UsedInsightRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UsedInsightRequest is request for UsedInsight
+type UsedInsightRequest struct{ BaseRequest }
+
+// Get performs GET request for UsedInsight
+func (r *UsedInsightRequest) Get(ctx context.Context) (resObj *UsedInsight, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UsedInsight
+func (r *UsedInsightRequest) Update(ctx context.Context, reqObj *UsedInsight) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UsedInsight
+func (r *UsedInsightRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestUser.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUser.go
new file mode 100644
index 00000000..d4639284
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestUser.go
@@ -0,0 +1,1102 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// UserRequestBuilder is request builder for User
+type UserRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserRequest
+func (b *UserRequestBuilder) Request() *UserRequest {
+ return &UserRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserRequest is request for User
+type UserRequest struct{ BaseRequest }
+
+// Get performs GET request for User
+func (r *UserRequest) Get(ctx context.Context) (resObj *User, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for User
+func (r *UserRequest) Update(ctx context.Context, reqObj *User) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for User
+func (r *UserRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserAccountInformationRequestBuilder is request builder for UserAccountInformation
+type UserAccountInformationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserAccountInformationRequest
+func (b *UserAccountInformationRequestBuilder) Request() *UserAccountInformationRequest {
+ return &UserAccountInformationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserAccountInformationRequest is request for UserAccountInformation
+type UserAccountInformationRequest struct{ BaseRequest }
+
+// Get performs GET request for UserAccountInformation
+func (r *UserAccountInformationRequest) Get(ctx context.Context) (resObj *UserAccountInformation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserAccountInformation
+func (r *UserAccountInformationRequest) Update(ctx context.Context, reqObj *UserAccountInformation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserAccountInformation
+func (r *UserAccountInformationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserActivityRequestBuilder is request builder for UserActivity
+type UserActivityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserActivityRequest
+func (b *UserActivityRequestBuilder) Request() *UserActivityRequest {
+ return &UserActivityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserActivityRequest is request for UserActivity
+type UserActivityRequest struct{ BaseRequest }
+
+// Get performs GET request for UserActivity
+func (r *UserActivityRequest) Get(ctx context.Context) (resObj *UserActivity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserActivity
+func (r *UserActivityRequest) Update(ctx context.Context, reqObj *UserActivity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserActivity
+func (r *UserActivityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserAnalyticsRequestBuilder is request builder for UserAnalytics
+type UserAnalyticsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserAnalyticsRequest
+func (b *UserAnalyticsRequestBuilder) Request() *UserAnalyticsRequest {
+ return &UserAnalyticsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserAnalyticsRequest is request for UserAnalytics
+type UserAnalyticsRequest struct{ BaseRequest }
+
+// Get performs GET request for UserAnalytics
+func (r *UserAnalyticsRequest) Get(ctx context.Context) (resObj *UserAnalytics, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserAnalytics
+func (r *UserAnalyticsRequest) Update(ctx context.Context, reqObj *UserAnalytics) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserAnalytics
+func (r *UserAnalyticsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserAppInstallStatusRequestBuilder is request builder for UserAppInstallStatus
+type UserAppInstallStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserAppInstallStatusRequest
+func (b *UserAppInstallStatusRequestBuilder) Request() *UserAppInstallStatusRequest {
+ return &UserAppInstallStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserAppInstallStatusRequest is request for UserAppInstallStatus
+type UserAppInstallStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for UserAppInstallStatus
+func (r *UserAppInstallStatusRequest) Get(ctx context.Context) (resObj *UserAppInstallStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserAppInstallStatus
+func (r *UserAppInstallStatusRequest) Update(ctx context.Context, reqObj *UserAppInstallStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserAppInstallStatus
+func (r *UserAppInstallStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserConfigurationRequestBuilder is request builder for UserConfiguration
+type UserConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserConfigurationRequest
+func (b *UserConfigurationRequestBuilder) Request() *UserConfigurationRequest {
+ return &UserConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserConfigurationRequest is request for UserConfiguration
+type UserConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for UserConfiguration
+func (r *UserConfigurationRequest) Get(ctx context.Context) (resObj *UserConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserConfiguration
+func (r *UserConfigurationRequest) Update(ctx context.Context, reqObj *UserConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserConfiguration
+func (r *UserConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserCredentialUsageDetailsRequestBuilder is request builder for UserCredentialUsageDetails
+type UserCredentialUsageDetailsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserCredentialUsageDetailsRequest
+func (b *UserCredentialUsageDetailsRequestBuilder) Request() *UserCredentialUsageDetailsRequest {
+ return &UserCredentialUsageDetailsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserCredentialUsageDetailsRequest is request for UserCredentialUsageDetails
+type UserCredentialUsageDetailsRequest struct{ BaseRequest }
+
+// Get performs GET request for UserCredentialUsageDetails
+func (r *UserCredentialUsageDetailsRequest) Get(ctx context.Context) (resObj *UserCredentialUsageDetails, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserCredentialUsageDetails
+func (r *UserCredentialUsageDetailsRequest) Update(ctx context.Context, reqObj *UserCredentialUsageDetails) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserCredentialUsageDetails
+func (r *UserCredentialUsageDetailsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserExperienceAnalyticsBaselineRequestBuilder is request builder for UserExperienceAnalyticsBaseline
+type UserExperienceAnalyticsBaselineRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsBaselineRequest
+func (b *UserExperienceAnalyticsBaselineRequestBuilder) Request() *UserExperienceAnalyticsBaselineRequest {
+ return &UserExperienceAnalyticsBaselineRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsBaselineRequest is request for UserExperienceAnalyticsBaseline
+type UserExperienceAnalyticsBaselineRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsBaseline
+func (r *UserExperienceAnalyticsBaselineRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsBaseline, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsBaseline
+func (r *UserExperienceAnalyticsBaselineRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsBaseline) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsBaseline
+func (r *UserExperienceAnalyticsBaselineRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserExperienceAnalyticsCategoryRequestBuilder is request builder for UserExperienceAnalyticsCategory
+type UserExperienceAnalyticsCategoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsCategoryRequest
+func (b *UserExperienceAnalyticsCategoryRequestBuilder) Request() *UserExperienceAnalyticsCategoryRequest {
+ return &UserExperienceAnalyticsCategoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsCategoryRequest is request for UserExperienceAnalyticsCategory
+type UserExperienceAnalyticsCategoryRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsCategory
+func (r *UserExperienceAnalyticsCategoryRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsCategory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsCategory
+func (r *UserExperienceAnalyticsCategoryRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsCategory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsCategory
+func (r *UserExperienceAnalyticsCategoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserExperienceAnalyticsDevicePerformanceRequestBuilder is request builder for UserExperienceAnalyticsDevicePerformance
+type UserExperienceAnalyticsDevicePerformanceRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsDevicePerformanceRequest
+func (b *UserExperienceAnalyticsDevicePerformanceRequestBuilder) Request() *UserExperienceAnalyticsDevicePerformanceRequest {
+ return &UserExperienceAnalyticsDevicePerformanceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsDevicePerformanceRequest is request for UserExperienceAnalyticsDevicePerformance
+type UserExperienceAnalyticsDevicePerformanceRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsDevicePerformance
+func (r *UserExperienceAnalyticsDevicePerformanceRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsDevicePerformance, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsDevicePerformance
+func (r *UserExperienceAnalyticsDevicePerformanceRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsDevicePerformance) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsDevicePerformance
+func (r *UserExperienceAnalyticsDevicePerformanceRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder is request builder for UserExperienceAnalyticsDeviceStartupHistory
+type UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsDeviceStartupHistoryRequest
+func (b *UserExperienceAnalyticsDeviceStartupHistoryRequestBuilder) Request() *UserExperienceAnalyticsDeviceStartupHistoryRequest {
+ return &UserExperienceAnalyticsDeviceStartupHistoryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsDeviceStartupHistoryRequest is request for UserExperienceAnalyticsDeviceStartupHistory
+type UserExperienceAnalyticsDeviceStartupHistoryRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsDeviceStartupHistory
+func (r *UserExperienceAnalyticsDeviceStartupHistoryRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsDeviceStartupHistory, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsDeviceStartupHistory
+func (r *UserExperienceAnalyticsDeviceStartupHistoryRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsDeviceStartupHistory) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsDeviceStartupHistory
+func (r *UserExperienceAnalyticsDeviceStartupHistoryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserExperienceAnalyticsMetricRequestBuilder is request builder for UserExperienceAnalyticsMetric
+type UserExperienceAnalyticsMetricRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsMetricRequest
+func (b *UserExperienceAnalyticsMetricRequestBuilder) Request() *UserExperienceAnalyticsMetricRequest {
+ return &UserExperienceAnalyticsMetricRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsMetricRequest is request for UserExperienceAnalyticsMetric
+type UserExperienceAnalyticsMetricRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsMetric
+func (r *UserExperienceAnalyticsMetricRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsMetric, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsMetric
+func (r *UserExperienceAnalyticsMetricRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsMetric) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsMetric
+func (r *UserExperienceAnalyticsMetricRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserExperienceAnalyticsOverviewRequestBuilder is request builder for UserExperienceAnalyticsOverview
+type UserExperienceAnalyticsOverviewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsOverviewRequest
+func (b *UserExperienceAnalyticsOverviewRequestBuilder) Request() *UserExperienceAnalyticsOverviewRequest {
+ return &UserExperienceAnalyticsOverviewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsOverviewRequest is request for UserExperienceAnalyticsOverview
+type UserExperienceAnalyticsOverviewRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsOverview
+func (r *UserExperienceAnalyticsOverviewRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsOverview, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsOverview
+func (r *UserExperienceAnalyticsOverviewRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsOverview) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsOverview
+func (r *UserExperienceAnalyticsOverviewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserExperienceAnalyticsRegressionSummaryRequestBuilder is request builder for UserExperienceAnalyticsRegressionSummary
+type UserExperienceAnalyticsRegressionSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserExperienceAnalyticsRegressionSummaryRequest
+func (b *UserExperienceAnalyticsRegressionSummaryRequestBuilder) Request() *UserExperienceAnalyticsRegressionSummaryRequest {
+ return &UserExperienceAnalyticsRegressionSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserExperienceAnalyticsRegressionSummaryRequest is request for UserExperienceAnalyticsRegressionSummary
+type UserExperienceAnalyticsRegressionSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for UserExperienceAnalyticsRegressionSummary
+func (r *UserExperienceAnalyticsRegressionSummaryRequest) Get(ctx context.Context) (resObj *UserExperienceAnalyticsRegressionSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserExperienceAnalyticsRegressionSummary
+func (r *UserExperienceAnalyticsRegressionSummaryRequest) Update(ctx context.Context, reqObj *UserExperienceAnalyticsRegressionSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserExperienceAnalyticsRegressionSummary
+func (r *UserExperienceAnalyticsRegressionSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserInstallStateSummaryRequestBuilder is request builder for UserInstallStateSummary
+type UserInstallStateSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserInstallStateSummaryRequest
+func (b *UserInstallStateSummaryRequestBuilder) Request() *UserInstallStateSummaryRequest {
+ return &UserInstallStateSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserInstallStateSummaryRequest is request for UserInstallStateSummary
+type UserInstallStateSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for UserInstallStateSummary
+func (r *UserInstallStateSummaryRequest) Get(ctx context.Context) (resObj *UserInstallStateSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserInstallStateSummary
+func (r *UserInstallStateSummaryRequest) Update(ctx context.Context, reqObj *UserInstallStateSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserInstallStateSummary
+func (r *UserInstallStateSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserPFXCertificateRequestBuilder is request builder for UserPFXCertificate
+type UserPFXCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserPFXCertificateRequest
+func (b *UserPFXCertificateRequestBuilder) Request() *UserPFXCertificateRequest {
+ return &UserPFXCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserPFXCertificateRequest is request for UserPFXCertificate
+type UserPFXCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for UserPFXCertificate
+func (r *UserPFXCertificateRequest) Get(ctx context.Context) (resObj *UserPFXCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserPFXCertificate
+func (r *UserPFXCertificateRequest) Update(ctx context.Context, reqObj *UserPFXCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserPFXCertificate
+func (r *UserPFXCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserSecurityProfileRequestBuilder is request builder for UserSecurityProfile
+type UserSecurityProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserSecurityProfileRequest
+func (b *UserSecurityProfileRequestBuilder) Request() *UserSecurityProfileRequest {
+ return &UserSecurityProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserSecurityProfileRequest is request for UserSecurityProfile
+type UserSecurityProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for UserSecurityProfile
+func (r *UserSecurityProfileRequest) Get(ctx context.Context) (resObj *UserSecurityProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserSecurityProfile
+func (r *UserSecurityProfileRequest) Update(ctx context.Context, reqObj *UserSecurityProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserSecurityProfile
+func (r *UserSecurityProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserSettingsRequestBuilder is request builder for UserSettings
+type UserSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserSettingsRequest
+func (b *UserSettingsRequestBuilder) Request() *UserSettingsRequest {
+ return &UserSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserSettingsRequest is request for UserSettings
+type UserSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for UserSettings
+func (r *UserSettingsRequest) Get(ctx context.Context) (resObj *UserSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserSettings
+func (r *UserSettingsRequest) Update(ctx context.Context, reqObj *UserSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserSettings
+func (r *UserSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// UserTeamworkRequestBuilder is request builder for UserTeamwork
+type UserTeamworkRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns UserTeamworkRequest
+func (b *UserTeamworkRequestBuilder) Request() *UserTeamworkRequest {
+ return &UserTeamworkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// UserTeamworkRequest is request for UserTeamwork
+type UserTeamworkRequest struct{ BaseRequest }
+
+// Get performs GET request for UserTeamwork
+func (r *UserTeamworkRequest) Get(ctx context.Context) (resObj *UserTeamwork, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for UserTeamwork
+func (r *UserTeamworkRequest) Update(ctx context.Context, reqObj *UserTeamwork) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for UserTeamwork
+func (r *UserTeamworkRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type UserAssignLicenseRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignLicense action undocumented
+func (b *UserRequestBuilder) AssignLicense(reqObj *UserAssignLicenseRequestParameter) *UserAssignLicenseRequestBuilder {
+ bb := &UserAssignLicenseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignLicense"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserAssignLicenseRequest struct{ BaseRequest }
+
+//
+func (b *UserAssignLicenseRequestBuilder) Request() *UserAssignLicenseRequest {
+ return &UserAssignLicenseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserAssignLicenseRequest) Post(ctx context.Context) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserChangePasswordRequestBuilder struct{ BaseRequestBuilder }
+
+// ChangePassword action undocumented
+func (b *UserRequestBuilder) ChangePassword(reqObj *UserChangePasswordRequestParameter) *UserChangePasswordRequestBuilder {
+ bb := &UserChangePasswordRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/changePassword"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserChangePasswordRequest struct{ BaseRequest }
+
+//
+func (b *UserChangePasswordRequestBuilder) Request() *UserChangePasswordRequest {
+ return &UserChangePasswordRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserChangePasswordRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserInvalidateAllRefreshTokensRequestBuilder struct{ BaseRequestBuilder }
+
+// InvalidateAllRefreshTokens action undocumented
+func (b *UserRequestBuilder) InvalidateAllRefreshTokens(reqObj *UserInvalidateAllRefreshTokensRequestParameter) *UserInvalidateAllRefreshTokensRequestBuilder {
+ bb := &UserInvalidateAllRefreshTokensRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/invalidateAllRefreshTokens"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserInvalidateAllRefreshTokensRequest struct{ BaseRequest }
+
+//
+func (b *UserInvalidateAllRefreshTokensRequestBuilder) Request() *UserInvalidateAllRefreshTokensRequest {
+ return &UserInvalidateAllRefreshTokensRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserInvalidateAllRefreshTokensRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserRevokeSignInSessionsRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeSignInSessions action undocumented
+func (b *UserRequestBuilder) RevokeSignInSessions(reqObj *UserRevokeSignInSessionsRequestParameter) *UserRevokeSignInSessionsRequestBuilder {
+ bb := &UserRevokeSignInSessionsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeSignInSessions"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserRevokeSignInSessionsRequest struct{ BaseRequest }
+
+//
+func (b *UserRevokeSignInSessionsRequestBuilder) Request() *UserRevokeSignInSessionsRequest {
+ return &UserRevokeSignInSessionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserRevokeSignInSessionsRequest) Post(ctx context.Context) (resObj *bool, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserReprocessLicenseAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// ReprocessLicenseAssignment action undocumented
+func (b *UserRequestBuilder) ReprocessLicenseAssignment(reqObj *UserReprocessLicenseAssignmentRequestParameter) *UserReprocessLicenseAssignmentRequestBuilder {
+ bb := &UserReprocessLicenseAssignmentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reprocessLicenseAssignment"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserReprocessLicenseAssignmentRequest struct{ BaseRequest }
+
+//
+func (b *UserReprocessLicenseAssignmentRequestBuilder) Request() *UserReprocessLicenseAssignmentRequest {
+ return &UserReprocessLicenseAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserReprocessLicenseAssignmentRequest) Post(ctx context.Context) (resObj *User, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserFindMeetingTimesRequestBuilder struct{ BaseRequestBuilder }
+
+// FindMeetingTimes action undocumented
+func (b *UserRequestBuilder) FindMeetingTimes(reqObj *UserFindMeetingTimesRequestParameter) *UserFindMeetingTimesRequestBuilder {
+ bb := &UserFindMeetingTimesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/findMeetingTimes"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserFindMeetingTimesRequest struct{ BaseRequest }
+
+//
+func (b *UserFindMeetingTimesRequestBuilder) Request() *UserFindMeetingTimesRequest {
+ return &UserFindMeetingTimesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserFindMeetingTimesRequest) Post(ctx context.Context) (resObj *MeetingTimeSuggestionsResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type UserSendMailRequestBuilder struct{ BaseRequestBuilder }
+
+// SendMail action undocumented
+func (b *UserRequestBuilder) SendMail(reqObj *UserSendMailRequestParameter) *UserSendMailRequestBuilder {
+ bb := &UserSendMailRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sendMail"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserSendMailRequest struct{ BaseRequest }
+
+//
+func (b *UserSendMailRequestBuilder) Request() *UserSendMailRequest {
+ return &UserSendMailRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserSendMailRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserGetMailTipsRequestBuilder struct{ BaseRequestBuilder }
+
+// GetMailTips action undocumented
+func (b *UserRequestBuilder) GetMailTips(reqObj *UserGetMailTipsRequestParameter) *UserGetMailTipsRequestBuilder {
+ bb := &UserGetMailTipsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/getMailTips"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserGetMailTipsRequest struct{ BaseRequest }
+
+//
+func (b *UserGetMailTipsRequestBuilder) Request() *UserGetMailTipsRequest {
+ return &UserGetMailTipsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserGetMailTipsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]MailTips, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []MailTips
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []MailTips
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *UserGetMailTipsRequest) PostN(ctx context.Context, n int) ([]MailTips, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *UserGetMailTipsRequest) Post(ctx context.Context) ([]MailTips, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type UserTranslateExchangeIDsRequestBuilder struct{ BaseRequestBuilder }
+
+// TranslateExchangeIDs action undocumented
+func (b *UserRequestBuilder) TranslateExchangeIDs(reqObj *UserTranslateExchangeIDsRequestParameter) *UserTranslateExchangeIDsRequestBuilder {
+ bb := &UserTranslateExchangeIDsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/translateExchangeIds"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserTranslateExchangeIDsRequest struct{ BaseRequest }
+
+//
+func (b *UserTranslateExchangeIDsRequestBuilder) Request() *UserTranslateExchangeIDsRequest {
+ return &UserTranslateExchangeIDsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserTranslateExchangeIDsRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]ConvertIDResult, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []ConvertIDResult
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []ConvertIDResult
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *UserTranslateExchangeIDsRequest) PostN(ctx context.Context, n int) ([]ConvertIDResult, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *UserTranslateExchangeIDsRequest) Post(ctx context.Context) ([]ConvertIDResult, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type UserRemoveAllDevicesFromManagementRequestBuilder struct{ BaseRequestBuilder }
+
+// RemoveAllDevicesFromManagement action undocumented
+func (b *UserRequestBuilder) RemoveAllDevicesFromManagement(reqObj *UserRemoveAllDevicesFromManagementRequestParameter) *UserRemoveAllDevicesFromManagementRequestBuilder {
+ bb := &UserRemoveAllDevicesFromManagementRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/removeAllDevicesFromManagement"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserRemoveAllDevicesFromManagementRequest struct{ BaseRequest }
+
+//
+func (b *UserRemoveAllDevicesFromManagementRequestBuilder) Request() *UserRemoveAllDevicesFromManagementRequest {
+ return &UserRemoveAllDevicesFromManagementRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserRemoveAllDevicesFromManagementRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserWipeManagedAppRegistrationByDeviceTagRequestBuilder struct{ BaseRequestBuilder }
+
+// WipeManagedAppRegistrationByDeviceTag action undocumented
+func (b *UserRequestBuilder) WipeManagedAppRegistrationByDeviceTag(reqObj *UserWipeManagedAppRegistrationByDeviceTagRequestParameter) *UserWipeManagedAppRegistrationByDeviceTagRequestBuilder {
+ bb := &UserWipeManagedAppRegistrationByDeviceTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/wipeManagedAppRegistrationByDeviceTag"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserWipeManagedAppRegistrationByDeviceTagRequest struct{ BaseRequest }
+
+//
+func (b *UserWipeManagedAppRegistrationByDeviceTagRequestBuilder) Request() *UserWipeManagedAppRegistrationByDeviceTagRequest {
+ return &UserWipeManagedAppRegistrationByDeviceTagRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserWipeManagedAppRegistrationByDeviceTagRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder struct{ BaseRequestBuilder }
+
+// WipeManagedAppRegistrationsByDeviceTag action undocumented
+func (b *UserRequestBuilder) WipeManagedAppRegistrationsByDeviceTag(reqObj *UserWipeManagedAppRegistrationsByDeviceTagRequestParameter) *UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder {
+ bb := &UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/wipeManagedAppRegistrationsByDeviceTag"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserWipeManagedAppRegistrationsByDeviceTagRequest struct{ BaseRequest }
+
+//
+func (b *UserWipeManagedAppRegistrationsByDeviceTagRequestBuilder) Request() *UserWipeManagedAppRegistrationsByDeviceTagRequest {
+ return &UserWipeManagedAppRegistrationsByDeviceTagRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserWipeManagedAppRegistrationsByDeviceTagRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type UserExportPersonalDataRequestBuilder struct{ BaseRequestBuilder }
+
+// ExportPersonalData action undocumented
+func (b *UserRequestBuilder) ExportPersonalData(reqObj *UserExportPersonalDataRequestParameter) *UserExportPersonalDataRequestBuilder {
+ bb := &UserExportPersonalDataRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/exportPersonalData"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type UserExportPersonalDataRequest struct{ BaseRequest }
+
+//
+func (b *UserExportPersonalDataRequestBuilder) Request() *UserExportPersonalDataRequest {
+ return &UserExportPersonalDataRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *UserExportPersonalDataRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestVPP.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestVPP.go
new file mode 100644
index 00000000..6f1f2dca
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestVPP.go
@@ -0,0 +1,91 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// VPPTokenRequestBuilder is request builder for VPPToken
+type VPPTokenRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns VPPTokenRequest
+func (b *VPPTokenRequestBuilder) Request() *VPPTokenRequest {
+ return &VPPTokenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// VPPTokenRequest is request for VPPToken
+type VPPTokenRequest struct{ BaseRequest }
+
+// Get performs GET request for VPPToken
+func (r *VPPTokenRequest) Get(ctx context.Context) (resObj *VPPToken, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for VPPToken
+func (r *VPPTokenRequest) Update(ctx context.Context, reqObj *VPPToken) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for VPPToken
+func (r *VPPTokenRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type VPPTokenSyncLicensesRequestBuilder struct{ BaseRequestBuilder }
+
+// SyncLicenses action undocumented
+func (b *VPPTokenRequestBuilder) SyncLicenses(reqObj *VPPTokenSyncLicensesRequestParameter) *VPPTokenSyncLicensesRequestBuilder {
+ bb := &VPPTokenSyncLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syncLicenses"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type VPPTokenSyncLicensesRequest struct{ BaseRequest }
+
+//
+func (b *VPPTokenSyncLicensesRequestBuilder) Request() *VPPTokenSyncLicensesRequest {
+ return &VPPTokenSyncLicensesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *VPPTokenSyncLicensesRequest) Post(ctx context.Context) (resObj *VPPToken, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type VPPTokenRevokeLicensesRequestBuilder struct{ BaseRequestBuilder }
+
+// RevokeLicenses action undocumented
+func (b *VPPTokenRequestBuilder) RevokeLicenses(reqObj *VPPTokenRevokeLicensesRequestParameter) *VPPTokenRevokeLicensesRequestBuilder {
+ bb := &VPPTokenRevokeLicensesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/revokeLicenses"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type VPPTokenRevokeLicensesRequest struct{ BaseRequest }
+
+//
+func (b *VPPTokenRevokeLicensesRequestBuilder) Request() *VPPTokenRevokeLicensesRequest {
+ return &VPPTokenRevokeLicensesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *VPPTokenRevokeLicensesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestVendor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestVendor.go
new file mode 100644
index 00000000..99838274
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestVendor.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// VendorRequestBuilder is request builder for Vendor
+type VendorRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns VendorRequest
+func (b *VendorRequestBuilder) Request() *VendorRequest {
+ return &VendorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// VendorRequest is request for Vendor
+type VendorRequest struct{ BaseRequest }
+
+// Get performs GET request for Vendor
+func (r *VendorRequest) Get(ctx context.Context) (resObj *Vendor, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Vendor
+func (r *VendorRequest) Update(ctx context.Context, reqObj *Vendor) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Vendor
+func (r *VendorRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWeb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWeb.go
new file mode 100644
index 00000000..11b2d481
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWeb.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WebAccountRequestBuilder is request builder for WebAccount
+type WebAccountRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WebAccountRequest
+func (b *WebAccountRequestBuilder) Request() *WebAccountRequest {
+ return &WebAccountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WebAccountRequest is request for WebAccount
+type WebAccountRequest struct{ BaseRequest }
+
+// Get performs GET request for WebAccount
+func (r *WebAccountRequest) Get(ctx context.Context) (resObj *WebAccount, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WebAccount
+func (r *WebAccountRequest) Update(ctx context.Context, reqObj *WebAccount) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WebAccount
+func (r *WebAccountRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows.go
new file mode 100644
index 00000000..796cd176
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows.go
@@ -0,0 +1,1558 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+// WindowsAutopilotDeploymentProfileRequestBuilder is request builder for WindowsAutopilotDeploymentProfile
+type WindowsAutopilotDeploymentProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsAutopilotDeploymentProfileRequest
+func (b *WindowsAutopilotDeploymentProfileRequestBuilder) Request() *WindowsAutopilotDeploymentProfileRequest {
+ return &WindowsAutopilotDeploymentProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsAutopilotDeploymentProfileRequest is request for WindowsAutopilotDeploymentProfile
+type WindowsAutopilotDeploymentProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsAutopilotDeploymentProfile
+func (r *WindowsAutopilotDeploymentProfileRequest) Get(ctx context.Context) (resObj *WindowsAutopilotDeploymentProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsAutopilotDeploymentProfile
+func (r *WindowsAutopilotDeploymentProfileRequest) Update(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsAutopilotDeploymentProfile
+func (r *WindowsAutopilotDeploymentProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsAutopilotDeploymentProfileAssignmentRequestBuilder is request builder for WindowsAutopilotDeploymentProfileAssignment
+type WindowsAutopilotDeploymentProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsAutopilotDeploymentProfileAssignmentRequest
+func (b *WindowsAutopilotDeploymentProfileAssignmentRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignmentRequest {
+ return &WindowsAutopilotDeploymentProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsAutopilotDeploymentProfileAssignmentRequest is request for WindowsAutopilotDeploymentProfileAssignment
+type WindowsAutopilotDeploymentProfileAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsAutopilotDeploymentProfileAssignment
+func (r *WindowsAutopilotDeploymentProfileAssignmentRequest) Get(ctx context.Context) (resObj *WindowsAutopilotDeploymentProfileAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsAutopilotDeploymentProfileAssignment
+func (r *WindowsAutopilotDeploymentProfileAssignmentRequest) Update(ctx context.Context, reqObj *WindowsAutopilotDeploymentProfileAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsAutopilotDeploymentProfileAssignment
+func (r *WindowsAutopilotDeploymentProfileAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsAutopilotDeviceIdentityRequestBuilder is request builder for WindowsAutopilotDeviceIdentity
+type WindowsAutopilotDeviceIdentityRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsAutopilotDeviceIdentityRequest
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) Request() *WindowsAutopilotDeviceIdentityRequest {
+ return &WindowsAutopilotDeviceIdentityRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsAutopilotDeviceIdentityRequest is request for WindowsAutopilotDeviceIdentity
+type WindowsAutopilotDeviceIdentityRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsAutopilotDeviceIdentity
+func (r *WindowsAutopilotDeviceIdentityRequest) Get(ctx context.Context) (resObj *WindowsAutopilotDeviceIdentity, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsAutopilotDeviceIdentity
+func (r *WindowsAutopilotDeviceIdentityRequest) Update(ctx context.Context, reqObj *WindowsAutopilotDeviceIdentity) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsAutopilotDeviceIdentity
+func (r *WindowsAutopilotDeviceIdentityRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsAutopilotSettingsRequestBuilder is request builder for WindowsAutopilotSettings
+type WindowsAutopilotSettingsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsAutopilotSettingsRequest
+func (b *WindowsAutopilotSettingsRequestBuilder) Request() *WindowsAutopilotSettingsRequest {
+ return &WindowsAutopilotSettingsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsAutopilotSettingsRequest is request for WindowsAutopilotSettings
+type WindowsAutopilotSettingsRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsAutopilotSettings
+func (r *WindowsAutopilotSettingsRequest) Get(ctx context.Context) (resObj *WindowsAutopilotSettings, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsAutopilotSettings
+func (r *WindowsAutopilotSettingsRequest) Update(ctx context.Context, reqObj *WindowsAutopilotSettings) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsAutopilotSettings
+func (r *WindowsAutopilotSettingsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsCertificateProfileBaseRequestBuilder is request builder for WindowsCertificateProfileBase
+type WindowsCertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsCertificateProfileBaseRequest
+func (b *WindowsCertificateProfileBaseRequestBuilder) Request() *WindowsCertificateProfileBaseRequest {
+ return &WindowsCertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsCertificateProfileBaseRequest is request for WindowsCertificateProfileBase
+type WindowsCertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsCertificateProfileBase
+func (r *WindowsCertificateProfileBaseRequest) Get(ctx context.Context) (resObj *WindowsCertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsCertificateProfileBase
+func (r *WindowsCertificateProfileBaseRequest) Update(ctx context.Context, reqObj *WindowsCertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsCertificateProfileBase
+func (r *WindowsCertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicy
+type WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDefenderApplicationControlSupplementalPolicyRequest
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyRequest is request for WindowsDefenderApplicationControlSupplementalPolicy
+type WindowsDefenderApplicationControlSupplementalPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicy
+func (r *WindowsDefenderApplicationControlSupplementalPolicyRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicy
+func (r *WindowsDefenderApplicationControlSupplementalPolicyRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicy
+func (r *WindowsDefenderApplicationControlSupplementalPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+type WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest
+func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest is request for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+type WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicyAssignment
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest is request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatus
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentStatusRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder is request builder for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest
+func (b *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest is request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+type WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest) Get(ctx context.Context) (resObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest) Update(ctx context.Context, reqObj *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummary
+func (r *WindowsDefenderApplicationControlSupplementalPolicyDeploymentSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsDeviceMalwareStateRequestBuilder is request builder for WindowsDeviceMalwareState
+type WindowsDeviceMalwareStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDeviceMalwareStateRequest
+func (b *WindowsDeviceMalwareStateRequestBuilder) Request() *WindowsDeviceMalwareStateRequest {
+ return &WindowsDeviceMalwareStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDeviceMalwareStateRequest is request for WindowsDeviceMalwareState
+type WindowsDeviceMalwareStateRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDeviceMalwareState
+func (r *WindowsDeviceMalwareStateRequest) Get(ctx context.Context) (resObj *WindowsDeviceMalwareState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDeviceMalwareState
+func (r *WindowsDeviceMalwareStateRequest) Update(ctx context.Context, reqObj *WindowsDeviceMalwareState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDeviceMalwareState
+func (r *WindowsDeviceMalwareStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsDomainJoinConfigurationRequestBuilder is request builder for WindowsDomainJoinConfiguration
+type WindowsDomainJoinConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsDomainJoinConfigurationRequest
+func (b *WindowsDomainJoinConfigurationRequestBuilder) Request() *WindowsDomainJoinConfigurationRequest {
+ return &WindowsDomainJoinConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsDomainJoinConfigurationRequest is request for WindowsDomainJoinConfiguration
+type WindowsDomainJoinConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsDomainJoinConfiguration
+func (r *WindowsDomainJoinConfigurationRequest) Get(ctx context.Context) (resObj *WindowsDomainJoinConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsDomainJoinConfiguration
+func (r *WindowsDomainJoinConfigurationRequest) Update(ctx context.Context, reqObj *WindowsDomainJoinConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsDomainJoinConfiguration
+func (r *WindowsDomainJoinConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsFeatureUpdateProfileRequestBuilder is request builder for WindowsFeatureUpdateProfile
+type WindowsFeatureUpdateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsFeatureUpdateProfileRequest
+func (b *WindowsFeatureUpdateProfileRequestBuilder) Request() *WindowsFeatureUpdateProfileRequest {
+ return &WindowsFeatureUpdateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsFeatureUpdateProfileRequest is request for WindowsFeatureUpdateProfile
+type WindowsFeatureUpdateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsFeatureUpdateProfile
+func (r *WindowsFeatureUpdateProfileRequest) Get(ctx context.Context) (resObj *WindowsFeatureUpdateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsFeatureUpdateProfile
+func (r *WindowsFeatureUpdateProfileRequest) Update(ctx context.Context, reqObj *WindowsFeatureUpdateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsFeatureUpdateProfile
+func (r *WindowsFeatureUpdateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsFeatureUpdateProfileAssignmentRequestBuilder is request builder for WindowsFeatureUpdateProfileAssignment
+type WindowsFeatureUpdateProfileAssignmentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsFeatureUpdateProfileAssignmentRequest
+func (b *WindowsFeatureUpdateProfileAssignmentRequestBuilder) Request() *WindowsFeatureUpdateProfileAssignmentRequest {
+ return &WindowsFeatureUpdateProfileAssignmentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsFeatureUpdateProfileAssignmentRequest is request for WindowsFeatureUpdateProfileAssignment
+type WindowsFeatureUpdateProfileAssignmentRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsFeatureUpdateProfileAssignment
+func (r *WindowsFeatureUpdateProfileAssignmentRequest) Get(ctx context.Context) (resObj *WindowsFeatureUpdateProfileAssignment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsFeatureUpdateProfileAssignment
+func (r *WindowsFeatureUpdateProfileAssignmentRequest) Update(ctx context.Context, reqObj *WindowsFeatureUpdateProfileAssignment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsFeatureUpdateProfileAssignment
+func (r *WindowsFeatureUpdateProfileAssignmentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsInformationProtectionRequestBuilder is request builder for WindowsInformationProtection
+type WindowsInformationProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsInformationProtectionRequest
+func (b *WindowsInformationProtectionRequestBuilder) Request() *WindowsInformationProtectionRequest {
+ return &WindowsInformationProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsInformationProtectionRequest is request for WindowsInformationProtection
+type WindowsInformationProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsInformationProtection
+func (r *WindowsInformationProtectionRequest) Get(ctx context.Context) (resObj *WindowsInformationProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsInformationProtection
+func (r *WindowsInformationProtectionRequest) Update(ctx context.Context, reqObj *WindowsInformationProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsInformationProtection
+func (r *WindowsInformationProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsInformationProtectionAppLearningSummaryRequestBuilder is request builder for WindowsInformationProtectionAppLearningSummary
+type WindowsInformationProtectionAppLearningSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsInformationProtectionAppLearningSummaryRequest
+func (b *WindowsInformationProtectionAppLearningSummaryRequestBuilder) Request() *WindowsInformationProtectionAppLearningSummaryRequest {
+ return &WindowsInformationProtectionAppLearningSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsInformationProtectionAppLearningSummaryRequest is request for WindowsInformationProtectionAppLearningSummary
+type WindowsInformationProtectionAppLearningSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsInformationProtectionAppLearningSummary
+func (r *WindowsInformationProtectionAppLearningSummaryRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionAppLearningSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsInformationProtectionAppLearningSummary
+func (r *WindowsInformationProtectionAppLearningSummaryRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionAppLearningSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsInformationProtectionAppLearningSummary
+func (r *WindowsInformationProtectionAppLearningSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsInformationProtectionAppLockerFileRequestBuilder is request builder for WindowsInformationProtectionAppLockerFile
+type WindowsInformationProtectionAppLockerFileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsInformationProtectionAppLockerFileRequest
+func (b *WindowsInformationProtectionAppLockerFileRequestBuilder) Request() *WindowsInformationProtectionAppLockerFileRequest {
+ return &WindowsInformationProtectionAppLockerFileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsInformationProtectionAppLockerFileRequest is request for WindowsInformationProtectionAppLockerFile
+type WindowsInformationProtectionAppLockerFileRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsInformationProtectionAppLockerFile
+func (r *WindowsInformationProtectionAppLockerFileRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionAppLockerFile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsInformationProtectionAppLockerFile
+func (r *WindowsInformationProtectionAppLockerFileRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionAppLockerFile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsInformationProtectionAppLockerFile
+func (r *WindowsInformationProtectionAppLockerFileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsInformationProtectionDeviceRegistrationRequestBuilder is request builder for WindowsInformationProtectionDeviceRegistration
+type WindowsInformationProtectionDeviceRegistrationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsInformationProtectionDeviceRegistrationRequest
+func (b *WindowsInformationProtectionDeviceRegistrationRequestBuilder) Request() *WindowsInformationProtectionDeviceRegistrationRequest {
+ return &WindowsInformationProtectionDeviceRegistrationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsInformationProtectionDeviceRegistrationRequest is request for WindowsInformationProtectionDeviceRegistration
+type WindowsInformationProtectionDeviceRegistrationRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsInformationProtectionDeviceRegistration
+func (r *WindowsInformationProtectionDeviceRegistrationRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionDeviceRegistration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsInformationProtectionDeviceRegistration
+func (r *WindowsInformationProtectionDeviceRegistrationRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionDeviceRegistration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsInformationProtectionDeviceRegistration
+func (r *WindowsInformationProtectionDeviceRegistrationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsInformationProtectionNetworkLearningSummaryRequestBuilder is request builder for WindowsInformationProtectionNetworkLearningSummary
+type WindowsInformationProtectionNetworkLearningSummaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsInformationProtectionNetworkLearningSummaryRequest
+func (b *WindowsInformationProtectionNetworkLearningSummaryRequestBuilder) Request() *WindowsInformationProtectionNetworkLearningSummaryRequest {
+ return &WindowsInformationProtectionNetworkLearningSummaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsInformationProtectionNetworkLearningSummaryRequest is request for WindowsInformationProtectionNetworkLearningSummary
+type WindowsInformationProtectionNetworkLearningSummaryRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsInformationProtectionNetworkLearningSummary
+func (r *WindowsInformationProtectionNetworkLearningSummaryRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionNetworkLearningSummary, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsInformationProtectionNetworkLearningSummary
+func (r *WindowsInformationProtectionNetworkLearningSummaryRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionNetworkLearningSummary) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsInformationProtectionNetworkLearningSummary
+func (r *WindowsInformationProtectionNetworkLearningSummaryRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsInformationProtectionPolicyRequestBuilder is request builder for WindowsInformationProtectionPolicy
+type WindowsInformationProtectionPolicyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsInformationProtectionPolicyRequest
+func (b *WindowsInformationProtectionPolicyRequestBuilder) Request() *WindowsInformationProtectionPolicyRequest {
+ return &WindowsInformationProtectionPolicyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsInformationProtectionPolicyRequest is request for WindowsInformationProtectionPolicy
+type WindowsInformationProtectionPolicyRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsInformationProtectionPolicy
+func (r *WindowsInformationProtectionPolicyRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionPolicy, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsInformationProtectionPolicy
+func (r *WindowsInformationProtectionPolicyRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionPolicy) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsInformationProtectionPolicy
+func (r *WindowsInformationProtectionPolicyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsInformationProtectionWipeActionRequestBuilder is request builder for WindowsInformationProtectionWipeAction
+type WindowsInformationProtectionWipeActionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsInformationProtectionWipeActionRequest
+func (b *WindowsInformationProtectionWipeActionRequestBuilder) Request() *WindowsInformationProtectionWipeActionRequest {
+ return &WindowsInformationProtectionWipeActionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsInformationProtectionWipeActionRequest is request for WindowsInformationProtectionWipeAction
+type WindowsInformationProtectionWipeActionRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsInformationProtectionWipeAction
+func (r *WindowsInformationProtectionWipeActionRequest) Get(ctx context.Context) (resObj *WindowsInformationProtectionWipeAction, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsInformationProtectionWipeAction
+func (r *WindowsInformationProtectionWipeActionRequest) Update(ctx context.Context, reqObj *WindowsInformationProtectionWipeAction) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsInformationProtectionWipeAction
+func (r *WindowsInformationProtectionWipeActionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsMalwareInformationRequestBuilder is request builder for WindowsMalwareInformation
+type WindowsMalwareInformationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsMalwareInformationRequest
+func (b *WindowsMalwareInformationRequestBuilder) Request() *WindowsMalwareInformationRequest {
+ return &WindowsMalwareInformationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsMalwareInformationRequest is request for WindowsMalwareInformation
+type WindowsMalwareInformationRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsMalwareInformation
+func (r *WindowsMalwareInformationRequest) Get(ctx context.Context) (resObj *WindowsMalwareInformation, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsMalwareInformation
+func (r *WindowsMalwareInformationRequest) Update(ctx context.Context, reqObj *WindowsMalwareInformation) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsMalwareInformation
+func (r *WindowsMalwareInformationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsManagementAppRequestBuilder is request builder for WindowsManagementApp
+type WindowsManagementAppRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsManagementAppRequest
+func (b *WindowsManagementAppRequestBuilder) Request() *WindowsManagementAppRequest {
+ return &WindowsManagementAppRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsManagementAppRequest is request for WindowsManagementApp
+type WindowsManagementAppRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsManagementApp
+func (r *WindowsManagementAppRequest) Get(ctx context.Context) (resObj *WindowsManagementApp, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsManagementApp
+func (r *WindowsManagementAppRequest) Update(ctx context.Context, reqObj *WindowsManagementApp) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsManagementApp
+func (r *WindowsManagementAppRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsManagementAppHealthStateRequestBuilder is request builder for WindowsManagementAppHealthState
+type WindowsManagementAppHealthStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsManagementAppHealthStateRequest
+func (b *WindowsManagementAppHealthStateRequestBuilder) Request() *WindowsManagementAppHealthStateRequest {
+ return &WindowsManagementAppHealthStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsManagementAppHealthStateRequest is request for WindowsManagementAppHealthState
+type WindowsManagementAppHealthStateRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsManagementAppHealthState
+func (r *WindowsManagementAppHealthStateRequest) Get(ctx context.Context) (resObj *WindowsManagementAppHealthState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsManagementAppHealthState
+func (r *WindowsManagementAppHealthStateRequest) Update(ctx context.Context, reqObj *WindowsManagementAppHealthState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsManagementAppHealthState
+func (r *WindowsManagementAppHealthStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsPhone81CertificateProfileBaseRequestBuilder is request builder for WindowsPhone81CertificateProfileBase
+type WindowsPhone81CertificateProfileBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsPhone81CertificateProfileBaseRequest
+func (b *WindowsPhone81CertificateProfileBaseRequestBuilder) Request() *WindowsPhone81CertificateProfileBaseRequest {
+ return &WindowsPhone81CertificateProfileBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsPhone81CertificateProfileBaseRequest is request for WindowsPhone81CertificateProfileBase
+type WindowsPhone81CertificateProfileBaseRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsPhone81CertificateProfileBase
+func (r *WindowsPhone81CertificateProfileBaseRequest) Get(ctx context.Context) (resObj *WindowsPhone81CertificateProfileBase, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsPhone81CertificateProfileBase
+func (r *WindowsPhone81CertificateProfileBaseRequest) Update(ctx context.Context, reqObj *WindowsPhone81CertificateProfileBase) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsPhone81CertificateProfileBase
+func (r *WindowsPhone81CertificateProfileBaseRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsPhone81ImportedPFXCertificateProfileRequestBuilder is request builder for WindowsPhone81ImportedPFXCertificateProfile
+type WindowsPhone81ImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsPhone81ImportedPFXCertificateProfileRequest
+func (b *WindowsPhone81ImportedPFXCertificateProfileRequestBuilder) Request() *WindowsPhone81ImportedPFXCertificateProfileRequest {
+ return &WindowsPhone81ImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsPhone81ImportedPFXCertificateProfileRequest is request for WindowsPhone81ImportedPFXCertificateProfile
+type WindowsPhone81ImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsPhone81ImportedPFXCertificateProfile
+func (r *WindowsPhone81ImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *WindowsPhone81ImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsPhone81ImportedPFXCertificateProfile
+func (r *WindowsPhone81ImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *WindowsPhone81ImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsPhone81ImportedPFXCertificateProfile
+func (r *WindowsPhone81ImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsPhone81SCEPCertificateProfileRequestBuilder is request builder for WindowsPhone81SCEPCertificateProfile
+type WindowsPhone81SCEPCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsPhone81SCEPCertificateProfileRequest
+func (b *WindowsPhone81SCEPCertificateProfileRequestBuilder) Request() *WindowsPhone81SCEPCertificateProfileRequest {
+ return &WindowsPhone81SCEPCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsPhone81SCEPCertificateProfileRequest is request for WindowsPhone81SCEPCertificateProfile
+type WindowsPhone81SCEPCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsPhone81SCEPCertificateProfile
+func (r *WindowsPhone81SCEPCertificateProfileRequest) Get(ctx context.Context) (resObj *WindowsPhone81SCEPCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsPhone81SCEPCertificateProfile
+func (r *WindowsPhone81SCEPCertificateProfileRequest) Update(ctx context.Context, reqObj *WindowsPhone81SCEPCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsPhone81SCEPCertificateProfile
+func (r *WindowsPhone81SCEPCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsPhone81TrustedRootCertificateRequestBuilder is request builder for WindowsPhone81TrustedRootCertificate
+type WindowsPhone81TrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsPhone81TrustedRootCertificateRequest
+func (b *WindowsPhone81TrustedRootCertificateRequestBuilder) Request() *WindowsPhone81TrustedRootCertificateRequest {
+ return &WindowsPhone81TrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsPhone81TrustedRootCertificateRequest is request for WindowsPhone81TrustedRootCertificate
+type WindowsPhone81TrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsPhone81TrustedRootCertificate
+func (r *WindowsPhone81TrustedRootCertificateRequest) Get(ctx context.Context) (resObj *WindowsPhone81TrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsPhone81TrustedRootCertificate
+func (r *WindowsPhone81TrustedRootCertificateRequest) Update(ctx context.Context, reqObj *WindowsPhone81TrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsPhone81TrustedRootCertificate
+func (r *WindowsPhone81TrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsPhone81VpnConfigurationRequestBuilder is request builder for WindowsPhone81VpnConfiguration
+type WindowsPhone81VpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsPhone81VpnConfigurationRequest
+func (b *WindowsPhone81VpnConfigurationRequestBuilder) Request() *WindowsPhone81VpnConfigurationRequest {
+ return &WindowsPhone81VpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsPhone81VpnConfigurationRequest is request for WindowsPhone81VpnConfiguration
+type WindowsPhone81VpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsPhone81VpnConfiguration
+func (r *WindowsPhone81VpnConfigurationRequest) Get(ctx context.Context) (resObj *WindowsPhone81VpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsPhone81VpnConfiguration
+func (r *WindowsPhone81VpnConfigurationRequest) Update(ctx context.Context, reqObj *WindowsPhone81VpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsPhone81VpnConfiguration
+func (r *WindowsPhone81VpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsPrivacyDataAccessControlItemRequestBuilder is request builder for WindowsPrivacyDataAccessControlItem
+type WindowsPrivacyDataAccessControlItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsPrivacyDataAccessControlItemRequest
+func (b *WindowsPrivacyDataAccessControlItemRequestBuilder) Request() *WindowsPrivacyDataAccessControlItemRequest {
+ return &WindowsPrivacyDataAccessControlItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsPrivacyDataAccessControlItemRequest is request for WindowsPrivacyDataAccessControlItem
+type WindowsPrivacyDataAccessControlItemRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsPrivacyDataAccessControlItem
+func (r *WindowsPrivacyDataAccessControlItemRequest) Get(ctx context.Context) (resObj *WindowsPrivacyDataAccessControlItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsPrivacyDataAccessControlItem
+func (r *WindowsPrivacyDataAccessControlItemRequest) Update(ctx context.Context, reqObj *WindowsPrivacyDataAccessControlItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsPrivacyDataAccessControlItem
+func (r *WindowsPrivacyDataAccessControlItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsProtectionStateRequestBuilder is request builder for WindowsProtectionState
+type WindowsProtectionStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsProtectionStateRequest
+func (b *WindowsProtectionStateRequestBuilder) Request() *WindowsProtectionStateRequest {
+ return &WindowsProtectionStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsProtectionStateRequest is request for WindowsProtectionState
+type WindowsProtectionStateRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsProtectionState
+func (r *WindowsProtectionStateRequest) Get(ctx context.Context) (resObj *WindowsProtectionState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsProtectionState
+func (r *WindowsProtectionStateRequest) Update(ctx context.Context, reqObj *WindowsProtectionState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsProtectionState
+func (r *WindowsProtectionStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsUniversalAppXRequestBuilder is request builder for WindowsUniversalAppX
+type WindowsUniversalAppXRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsUniversalAppXRequest
+func (b *WindowsUniversalAppXRequestBuilder) Request() *WindowsUniversalAppXRequest {
+ return &WindowsUniversalAppXRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsUniversalAppXRequest is request for WindowsUniversalAppX
+type WindowsUniversalAppXRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsUniversalAppX
+func (r *WindowsUniversalAppXRequest) Get(ctx context.Context) (resObj *WindowsUniversalAppX, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsUniversalAppX
+func (r *WindowsUniversalAppXRequest) Update(ctx context.Context, reqObj *WindowsUniversalAppX) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsUniversalAppX
+func (r *WindowsUniversalAppXRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsUpdateForBusinessConfigurationRequestBuilder is request builder for WindowsUpdateForBusinessConfiguration
+type WindowsUpdateForBusinessConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsUpdateForBusinessConfigurationRequest
+func (b *WindowsUpdateForBusinessConfigurationRequestBuilder) Request() *WindowsUpdateForBusinessConfigurationRequest {
+ return &WindowsUpdateForBusinessConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsUpdateForBusinessConfigurationRequest is request for WindowsUpdateForBusinessConfiguration
+type WindowsUpdateForBusinessConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsUpdateForBusinessConfiguration
+func (r *WindowsUpdateForBusinessConfigurationRequest) Get(ctx context.Context) (resObj *WindowsUpdateForBusinessConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsUpdateForBusinessConfiguration
+func (r *WindowsUpdateForBusinessConfigurationRequest) Update(ctx context.Context, reqObj *WindowsUpdateForBusinessConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsUpdateForBusinessConfiguration
+func (r *WindowsUpdateForBusinessConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsUpdateStateRequestBuilder is request builder for WindowsUpdateState
+type WindowsUpdateStateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsUpdateStateRequest
+func (b *WindowsUpdateStateRequestBuilder) Request() *WindowsUpdateStateRequest {
+ return &WindowsUpdateStateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsUpdateStateRequest is request for WindowsUpdateState
+type WindowsUpdateStateRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsUpdateState
+func (r *WindowsUpdateStateRequest) Get(ctx context.Context) (resObj *WindowsUpdateState, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsUpdateState
+func (r *WindowsUpdateStateRequest) Update(ctx context.Context, reqObj *WindowsUpdateState) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsUpdateState
+func (r *WindowsUpdateStateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WindowsWiFiEnterpriseEAPConfigurationRequestBuilder is request builder for WindowsWiFiEnterpriseEAPConfiguration
+type WindowsWiFiEnterpriseEAPConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WindowsWiFiEnterpriseEAPConfigurationRequest
+func (b *WindowsWiFiEnterpriseEAPConfigurationRequestBuilder) Request() *WindowsWiFiEnterpriseEAPConfigurationRequest {
+ return &WindowsWiFiEnterpriseEAPConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WindowsWiFiEnterpriseEAPConfigurationRequest is request for WindowsWiFiEnterpriseEAPConfiguration
+type WindowsWiFiEnterpriseEAPConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for WindowsWiFiEnterpriseEAPConfiguration
+func (r *WindowsWiFiEnterpriseEAPConfigurationRequest) Get(ctx context.Context) (resObj *WindowsWiFiEnterpriseEAPConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WindowsWiFiEnterpriseEAPConfiguration
+func (r *WindowsWiFiEnterpriseEAPConfigurationRequest) Update(ctx context.Context, reqObj *WindowsWiFiEnterpriseEAPConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WindowsWiFiEnterpriseEAPConfiguration
+func (r *WindowsWiFiEnterpriseEAPConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder struct{ BaseRequestBuilder }
+
+// HasPayloadLinks action undocumented
+func (b *DeviceManagementWindowsAutopilotDeploymentProfilesCollectionRequestBuilder) HasPayloadLinks(reqObj *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestParameter) *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hasPayloadLinks"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequestBuilder) Request() *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest {
+ return &WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest) Paging(ctx context.Context, method, path string, obj interface{}, n int) ([]HasPayloadLinkResultItem, error) {
+ req, err := r.NewJSONRequest(method, path, obj)
+ if err != nil {
+ return nil, err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ var values []HasPayloadLinkResultItem
+ for {
+ defer res.Body.Close()
+ if res.StatusCode != http.StatusOK {
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return nil, fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return nil, errRes
+ }
+ var (
+ paging Paging
+ value []HasPayloadLinkResultItem
+ )
+ err := jsonx.NewDecoder(res.Body).Decode(&paging)
+ if err != nil {
+ return nil, err
+ }
+ err = jsonx.Unmarshal(paging.Value, &value)
+ if err != nil {
+ return nil, err
+ }
+ values = append(values, value...)
+ if n >= 0 {
+ n--
+ }
+ if n == 0 || len(paging.NextLink) == 0 {
+ return values, nil
+ }
+ req, err = http.NewRequest("GET", paging.NextLink, nil)
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err = r.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ }
+}
+
+//
+func (r *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest) PostN(ctx context.Context, n int) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, n)
+}
+
+//
+func (r *WindowsAutopilotDeploymentProfileCollectionHasPayloadLinksRequest) Post(ctx context.Context) ([]HasPayloadLinkResultItem, error) {
+ return r.Paging(ctx, "POST", "", r.requestObject, 0)
+}
+
+//
+type WindowsAutopilotDeploymentProfileAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *WindowsAutopilotDeploymentProfileRequestBuilder) Assign(reqObj *WindowsAutopilotDeploymentProfileAssignRequestParameter) *WindowsAutopilotDeploymentProfileAssignRequestBuilder {
+ bb := &WindowsAutopilotDeploymentProfileAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeploymentProfileAssignRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeploymentProfileAssignRequestBuilder) Request() *WindowsAutopilotDeploymentProfileAssignRequest {
+ return &WindowsAutopilotDeploymentProfileAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeploymentProfileAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignUserToDevice action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) AssignUserToDevice(reqObj *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestParameter) *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignUserToDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest {
+ return &WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityAssignUserToDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// UnassignUserFromDevice action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) UnassignUserFromDevice(reqObj *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestParameter) *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unassignUserFromDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest {
+ return &WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityUnassignUserFromDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder struct{ BaseRequestBuilder }
+
+// UpdateDeviceProperties action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) UpdateDeviceProperties(reqObj *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestParameter) *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/updateDeviceProperties"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequestBuilder) Request() *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest {
+ return &WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityUpdateDevicePropertiesRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// AssignResourceAccountToDevice action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) AssignResourceAccountToDevice(reqObj *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestParameter) *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assignResourceAccountToDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest {
+ return &WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityAssignResourceAccountToDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder struct{ BaseRequestBuilder }
+
+// UnassignResourceAccountFromDevice action undocumented
+func (b *WindowsAutopilotDeviceIdentityRequestBuilder) UnassignResourceAccountFromDevice(reqObj *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestParameter) *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder {
+ bb := &WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unassignResourceAccountFromDevice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequestBuilder) Request() *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest {
+ return &WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotDeviceIdentityUnassignResourceAccountFromDeviceRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsAutopilotSettingsSyncRequestBuilder struct{ BaseRequestBuilder }
+
+// Sync action undocumented
+func (b *WindowsAutopilotSettingsRequestBuilder) Sync(reqObj *WindowsAutopilotSettingsSyncRequestParameter) *WindowsAutopilotSettingsSyncRequestBuilder {
+ bb := &WindowsAutopilotSettingsSyncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sync"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsAutopilotSettingsSyncRequest struct{ BaseRequest }
+
+//
+func (b *WindowsAutopilotSettingsSyncRequestBuilder) Request() *WindowsAutopilotSettingsSyncRequest {
+ return &WindowsAutopilotSettingsSyncRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsAutopilotSettingsSyncRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *WindowsDefenderApplicationControlSupplementalPolicyRequestBuilder) Assign(reqObj *WindowsDefenderApplicationControlSupplementalPolicyAssignRequestParameter) *WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder {
+ bb := &WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsDefenderApplicationControlSupplementalPolicyAssignRequest struct{ BaseRequest }
+
+//
+func (b *WindowsDefenderApplicationControlSupplementalPolicyAssignRequestBuilder) Request() *WindowsDefenderApplicationControlSupplementalPolicyAssignRequest {
+ return &WindowsDefenderApplicationControlSupplementalPolicyAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsDefenderApplicationControlSupplementalPolicyAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsFeatureUpdateProfileAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *WindowsFeatureUpdateProfileRequestBuilder) Assign(reqObj *WindowsFeatureUpdateProfileAssignRequestParameter) *WindowsFeatureUpdateProfileAssignRequestBuilder {
+ bb := &WindowsFeatureUpdateProfileAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsFeatureUpdateProfileAssignRequest struct{ BaseRequest }
+
+//
+func (b *WindowsFeatureUpdateProfileAssignRequestBuilder) Request() *WindowsFeatureUpdateProfileAssignRequest {
+ return &WindowsFeatureUpdateProfileAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsFeatureUpdateProfileAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsInformationProtectionAssignRequestBuilder struct{ BaseRequestBuilder }
+
+// Assign action undocumented
+func (b *WindowsInformationProtectionRequestBuilder) Assign(reqObj *WindowsInformationProtectionAssignRequestParameter) *WindowsInformationProtectionAssignRequestBuilder {
+ bb := &WindowsInformationProtectionAssignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/assign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsInformationProtectionAssignRequest struct{ BaseRequest }
+
+//
+func (b *WindowsInformationProtectionAssignRequestBuilder) Request() *WindowsInformationProtectionAssignRequest {
+ return &WindowsInformationProtectionAssignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsInformationProtectionAssignRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsInformationProtectionDeviceRegistrationWipeRequestBuilder struct{ BaseRequestBuilder }
+
+// Wipe action undocumented
+func (b *WindowsInformationProtectionDeviceRegistrationRequestBuilder) Wipe(reqObj *WindowsInformationProtectionDeviceRegistrationWipeRequestParameter) *WindowsInformationProtectionDeviceRegistrationWipeRequestBuilder {
+ bb := &WindowsInformationProtectionDeviceRegistrationWipeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/wipe"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsInformationProtectionDeviceRegistrationWipeRequest struct{ BaseRequest }
+
+//
+func (b *WindowsInformationProtectionDeviceRegistrationWipeRequestBuilder) Request() *WindowsInformationProtectionDeviceRegistrationWipeRequest {
+ return &WindowsInformationProtectionDeviceRegistrationWipeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsInformationProtectionDeviceRegistrationWipeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestBuilder struct{ BaseRequestBuilder }
+
+// ExtendFeatureUpdatesPause action undocumented
+func (b *WindowsUpdateForBusinessConfigurationRequestBuilder) ExtendFeatureUpdatesPause(reqObj *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestParameter) *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestBuilder {
+ bb := &WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/extendFeatureUpdatesPause"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequest struct{ BaseRequest }
+
+//
+func (b *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequestBuilder) Request() *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequest {
+ return &WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsUpdateForBusinessConfigurationExtendFeatureUpdatesPauseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestBuilder struct{ BaseRequestBuilder }
+
+// ExtendQualityUpdatesPause action undocumented
+func (b *WindowsUpdateForBusinessConfigurationRequestBuilder) ExtendQualityUpdatesPause(reqObj *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestParameter) *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestBuilder {
+ bb := &WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/extendQualityUpdatesPause"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequest struct{ BaseRequest }
+
+//
+func (b *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequestBuilder) Request() *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequest {
+ return &WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WindowsUpdateForBusinessConfigurationExtendQualityUpdatesPauseRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows10.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows10.go
new file mode 100644
index 00000000..1fcecf35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows10.go
@@ -0,0 +1,137 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// Windows10GeneralConfigurationRequestBuilder is request builder for Windows10GeneralConfiguration
+type Windows10GeneralConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows10GeneralConfigurationRequest
+func (b *Windows10GeneralConfigurationRequestBuilder) Request() *Windows10GeneralConfigurationRequest {
+ return &Windows10GeneralConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows10GeneralConfigurationRequest is request for Windows10GeneralConfiguration
+type Windows10GeneralConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows10GeneralConfiguration
+func (r *Windows10GeneralConfigurationRequest) Get(ctx context.Context) (resObj *Windows10GeneralConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows10GeneralConfiguration
+func (r *Windows10GeneralConfigurationRequest) Update(ctx context.Context, reqObj *Windows10GeneralConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows10GeneralConfiguration
+func (r *Windows10GeneralConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Windows10ImportedPFXCertificateProfileRequestBuilder is request builder for Windows10ImportedPFXCertificateProfile
+type Windows10ImportedPFXCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows10ImportedPFXCertificateProfileRequest
+func (b *Windows10ImportedPFXCertificateProfileRequestBuilder) Request() *Windows10ImportedPFXCertificateProfileRequest {
+ return &Windows10ImportedPFXCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows10ImportedPFXCertificateProfileRequest is request for Windows10ImportedPFXCertificateProfile
+type Windows10ImportedPFXCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows10ImportedPFXCertificateProfile
+func (r *Windows10ImportedPFXCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows10ImportedPFXCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows10ImportedPFXCertificateProfile
+func (r *Windows10ImportedPFXCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows10ImportedPFXCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows10ImportedPFXCertificateProfile
+func (r *Windows10ImportedPFXCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Windows10PkcsCertificateProfileRequestBuilder is request builder for Windows10PkcsCertificateProfile
+type Windows10PkcsCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows10PkcsCertificateProfileRequest
+func (b *Windows10PkcsCertificateProfileRequestBuilder) Request() *Windows10PkcsCertificateProfileRequest {
+ return &Windows10PkcsCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows10PkcsCertificateProfileRequest is request for Windows10PkcsCertificateProfile
+type Windows10PkcsCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows10PkcsCertificateProfile
+func (r *Windows10PkcsCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows10PkcsCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows10PkcsCertificateProfile
+func (r *Windows10PkcsCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows10PkcsCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows10PkcsCertificateProfile
+func (r *Windows10PkcsCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Windows10VpnConfigurationRequestBuilder is request builder for Windows10VpnConfiguration
+type Windows10VpnConfigurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows10VpnConfigurationRequest
+func (b *Windows10VpnConfigurationRequestBuilder) Request() *Windows10VpnConfigurationRequest {
+ return &Windows10VpnConfigurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows10VpnConfigurationRequest is request for Windows10VpnConfiguration
+type Windows10VpnConfigurationRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows10VpnConfiguration
+func (r *Windows10VpnConfigurationRequest) Get(ctx context.Context) (resObj *Windows10VpnConfiguration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows10VpnConfiguration
+func (r *Windows10VpnConfigurationRequest) Update(ctx context.Context, reqObj *Windows10VpnConfiguration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows10VpnConfiguration
+func (r *Windows10VpnConfigurationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows81.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows81.go
new file mode 100644
index 00000000..ac24feb7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWindows81.go
@@ -0,0 +1,71 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// Windows81SCEPCertificateProfileRequestBuilder is request builder for Windows81SCEPCertificateProfile
+type Windows81SCEPCertificateProfileRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows81SCEPCertificateProfileRequest
+func (b *Windows81SCEPCertificateProfileRequestBuilder) Request() *Windows81SCEPCertificateProfileRequest {
+ return &Windows81SCEPCertificateProfileRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows81SCEPCertificateProfileRequest is request for Windows81SCEPCertificateProfile
+type Windows81SCEPCertificateProfileRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows81SCEPCertificateProfile
+func (r *Windows81SCEPCertificateProfileRequest) Get(ctx context.Context) (resObj *Windows81SCEPCertificateProfile, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows81SCEPCertificateProfile
+func (r *Windows81SCEPCertificateProfileRequest) Update(ctx context.Context, reqObj *Windows81SCEPCertificateProfile) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows81SCEPCertificateProfile
+func (r *Windows81SCEPCertificateProfileRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// Windows81TrustedRootCertificateRequestBuilder is request builder for Windows81TrustedRootCertificate
+type Windows81TrustedRootCertificateRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns Windows81TrustedRootCertificateRequest
+func (b *Windows81TrustedRootCertificateRequestBuilder) Request() *Windows81TrustedRootCertificateRequest {
+ return &Windows81TrustedRootCertificateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// Windows81TrustedRootCertificateRequest is request for Windows81TrustedRootCertificate
+type Windows81TrustedRootCertificateRequest struct{ BaseRequest }
+
+// Get performs GET request for Windows81TrustedRootCertificate
+func (r *Windows81TrustedRootCertificateRequest) Get(ctx context.Context) (resObj *Windows81TrustedRootCertificate, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Windows81TrustedRootCertificate
+func (r *Windows81TrustedRootCertificateRequest) Update(ctx context.Context, reqObj *Windows81TrustedRootCertificate) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Windows81TrustedRootCertificate
+func (r *Windows81TrustedRootCertificateRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWork.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWork.go
new file mode 100644
index 00000000..19929506
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWork.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkPositionRequestBuilder is request builder for WorkPosition
+type WorkPositionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkPositionRequest
+func (b *WorkPositionRequestBuilder) Request() *WorkPositionRequest {
+ return &WorkPositionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkPositionRequest is request for WorkPosition
+type WorkPositionRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkPosition
+func (r *WorkPositionRequest) Get(ctx context.Context) (resObj *WorkPosition, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkPosition
+func (r *WorkPositionRequest) Update(ctx context.Context, reqObj *WorkPosition) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkPosition
+func (r *WorkPositionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbook.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbook.go
new file mode 100644
index 00000000..2bd14067
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbook.go
@@ -0,0 +1,2680 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookRequestBuilder is request builder for Workbook
+type WorkbookRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookRequest
+func (b *WorkbookRequestBuilder) Request() *WorkbookRequest {
+ return &WorkbookRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookRequest is request for Workbook
+type WorkbookRequest struct{ BaseRequest }
+
+// Get performs GET request for Workbook
+func (r *WorkbookRequest) Get(ctx context.Context) (resObj *Workbook, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for Workbook
+func (r *WorkbookRequest) Update(ctx context.Context, reqObj *Workbook) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for Workbook
+func (r *WorkbookRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookApplicationRequestBuilder is request builder for WorkbookApplication
+type WorkbookApplicationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookApplicationRequest
+func (b *WorkbookApplicationRequestBuilder) Request() *WorkbookApplicationRequest {
+ return &WorkbookApplicationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookApplicationRequest is request for WorkbookApplication
+type WorkbookApplicationRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookApplication
+func (r *WorkbookApplicationRequest) Get(ctx context.Context) (resObj *WorkbookApplication, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookApplication
+func (r *WorkbookApplicationRequest) Update(ctx context.Context, reqObj *WorkbookApplication) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookApplication
+func (r *WorkbookApplicationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartRequestBuilder is request builder for WorkbookChart
+type WorkbookChartRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartRequest
+func (b *WorkbookChartRequestBuilder) Request() *WorkbookChartRequest {
+ return &WorkbookChartRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartRequest is request for WorkbookChart
+type WorkbookChartRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChart
+func (r *WorkbookChartRequest) Get(ctx context.Context) (resObj *WorkbookChart, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChart
+func (r *WorkbookChartRequest) Update(ctx context.Context, reqObj *WorkbookChart) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChart
+func (r *WorkbookChartRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartAreaFormatRequestBuilder is request builder for WorkbookChartAreaFormat
+type WorkbookChartAreaFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartAreaFormatRequest
+func (b *WorkbookChartAreaFormatRequestBuilder) Request() *WorkbookChartAreaFormatRequest {
+ return &WorkbookChartAreaFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartAreaFormatRequest is request for WorkbookChartAreaFormat
+type WorkbookChartAreaFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartAreaFormat
+func (r *WorkbookChartAreaFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartAreaFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartAreaFormat
+func (r *WorkbookChartAreaFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartAreaFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartAreaFormat
+func (r *WorkbookChartAreaFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartAxesRequestBuilder is request builder for WorkbookChartAxes
+type WorkbookChartAxesRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartAxesRequest
+func (b *WorkbookChartAxesRequestBuilder) Request() *WorkbookChartAxesRequest {
+ return &WorkbookChartAxesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartAxesRequest is request for WorkbookChartAxes
+type WorkbookChartAxesRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartAxes
+func (r *WorkbookChartAxesRequest) Get(ctx context.Context) (resObj *WorkbookChartAxes, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartAxes
+func (r *WorkbookChartAxesRequest) Update(ctx context.Context, reqObj *WorkbookChartAxes) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartAxes
+func (r *WorkbookChartAxesRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartAxisRequestBuilder is request builder for WorkbookChartAxis
+type WorkbookChartAxisRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartAxisRequest
+func (b *WorkbookChartAxisRequestBuilder) Request() *WorkbookChartAxisRequest {
+ return &WorkbookChartAxisRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartAxisRequest is request for WorkbookChartAxis
+type WorkbookChartAxisRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartAxis
+func (r *WorkbookChartAxisRequest) Get(ctx context.Context) (resObj *WorkbookChartAxis, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartAxis
+func (r *WorkbookChartAxisRequest) Update(ctx context.Context, reqObj *WorkbookChartAxis) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartAxis
+func (r *WorkbookChartAxisRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartAxisFormatRequestBuilder is request builder for WorkbookChartAxisFormat
+type WorkbookChartAxisFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartAxisFormatRequest
+func (b *WorkbookChartAxisFormatRequestBuilder) Request() *WorkbookChartAxisFormatRequest {
+ return &WorkbookChartAxisFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartAxisFormatRequest is request for WorkbookChartAxisFormat
+type WorkbookChartAxisFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartAxisFormat
+func (r *WorkbookChartAxisFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartAxisFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartAxisFormat
+func (r *WorkbookChartAxisFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartAxisFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartAxisFormat
+func (r *WorkbookChartAxisFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartAxisTitleRequestBuilder is request builder for WorkbookChartAxisTitle
+type WorkbookChartAxisTitleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartAxisTitleRequest
+func (b *WorkbookChartAxisTitleRequestBuilder) Request() *WorkbookChartAxisTitleRequest {
+ return &WorkbookChartAxisTitleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartAxisTitleRequest is request for WorkbookChartAxisTitle
+type WorkbookChartAxisTitleRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartAxisTitle
+func (r *WorkbookChartAxisTitleRequest) Get(ctx context.Context) (resObj *WorkbookChartAxisTitle, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartAxisTitle
+func (r *WorkbookChartAxisTitleRequest) Update(ctx context.Context, reqObj *WorkbookChartAxisTitle) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartAxisTitle
+func (r *WorkbookChartAxisTitleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartAxisTitleFormatRequestBuilder is request builder for WorkbookChartAxisTitleFormat
+type WorkbookChartAxisTitleFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartAxisTitleFormatRequest
+func (b *WorkbookChartAxisTitleFormatRequestBuilder) Request() *WorkbookChartAxisTitleFormatRequest {
+ return &WorkbookChartAxisTitleFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartAxisTitleFormatRequest is request for WorkbookChartAxisTitleFormat
+type WorkbookChartAxisTitleFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartAxisTitleFormat
+func (r *WorkbookChartAxisTitleFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartAxisTitleFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartAxisTitleFormat
+func (r *WorkbookChartAxisTitleFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartAxisTitleFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartAxisTitleFormat
+func (r *WorkbookChartAxisTitleFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartDataLabelFormatRequestBuilder is request builder for WorkbookChartDataLabelFormat
+type WorkbookChartDataLabelFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartDataLabelFormatRequest
+func (b *WorkbookChartDataLabelFormatRequestBuilder) Request() *WorkbookChartDataLabelFormatRequest {
+ return &WorkbookChartDataLabelFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartDataLabelFormatRequest is request for WorkbookChartDataLabelFormat
+type WorkbookChartDataLabelFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartDataLabelFormat
+func (r *WorkbookChartDataLabelFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartDataLabelFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartDataLabelFormat
+func (r *WorkbookChartDataLabelFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartDataLabelFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartDataLabelFormat
+func (r *WorkbookChartDataLabelFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartDataLabelsRequestBuilder is request builder for WorkbookChartDataLabels
+type WorkbookChartDataLabelsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartDataLabelsRequest
+func (b *WorkbookChartDataLabelsRequestBuilder) Request() *WorkbookChartDataLabelsRequest {
+ return &WorkbookChartDataLabelsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartDataLabelsRequest is request for WorkbookChartDataLabels
+type WorkbookChartDataLabelsRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartDataLabels
+func (r *WorkbookChartDataLabelsRequest) Get(ctx context.Context) (resObj *WorkbookChartDataLabels, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartDataLabels
+func (r *WorkbookChartDataLabelsRequest) Update(ctx context.Context, reqObj *WorkbookChartDataLabels) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartDataLabels
+func (r *WorkbookChartDataLabelsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartFillRequestBuilder is request builder for WorkbookChartFill
+type WorkbookChartFillRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartFillRequest
+func (b *WorkbookChartFillRequestBuilder) Request() *WorkbookChartFillRequest {
+ return &WorkbookChartFillRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartFillRequest is request for WorkbookChartFill
+type WorkbookChartFillRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartFill
+func (r *WorkbookChartFillRequest) Get(ctx context.Context) (resObj *WorkbookChartFill, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartFill
+func (r *WorkbookChartFillRequest) Update(ctx context.Context, reqObj *WorkbookChartFill) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartFill
+func (r *WorkbookChartFillRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartFontRequestBuilder is request builder for WorkbookChartFont
+type WorkbookChartFontRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartFontRequest
+func (b *WorkbookChartFontRequestBuilder) Request() *WorkbookChartFontRequest {
+ return &WorkbookChartFontRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartFontRequest is request for WorkbookChartFont
+type WorkbookChartFontRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartFont
+func (r *WorkbookChartFontRequest) Get(ctx context.Context) (resObj *WorkbookChartFont, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartFont
+func (r *WorkbookChartFontRequest) Update(ctx context.Context, reqObj *WorkbookChartFont) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartFont
+func (r *WorkbookChartFontRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartGridlinesRequestBuilder is request builder for WorkbookChartGridlines
+type WorkbookChartGridlinesRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartGridlinesRequest
+func (b *WorkbookChartGridlinesRequestBuilder) Request() *WorkbookChartGridlinesRequest {
+ return &WorkbookChartGridlinesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartGridlinesRequest is request for WorkbookChartGridlines
+type WorkbookChartGridlinesRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartGridlines
+func (r *WorkbookChartGridlinesRequest) Get(ctx context.Context) (resObj *WorkbookChartGridlines, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartGridlines
+func (r *WorkbookChartGridlinesRequest) Update(ctx context.Context, reqObj *WorkbookChartGridlines) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartGridlines
+func (r *WorkbookChartGridlinesRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartGridlinesFormatRequestBuilder is request builder for WorkbookChartGridlinesFormat
+type WorkbookChartGridlinesFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartGridlinesFormatRequest
+func (b *WorkbookChartGridlinesFormatRequestBuilder) Request() *WorkbookChartGridlinesFormatRequest {
+ return &WorkbookChartGridlinesFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartGridlinesFormatRequest is request for WorkbookChartGridlinesFormat
+type WorkbookChartGridlinesFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartGridlinesFormat
+func (r *WorkbookChartGridlinesFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartGridlinesFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartGridlinesFormat
+func (r *WorkbookChartGridlinesFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartGridlinesFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartGridlinesFormat
+func (r *WorkbookChartGridlinesFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartLegendRequestBuilder is request builder for WorkbookChartLegend
+type WorkbookChartLegendRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartLegendRequest
+func (b *WorkbookChartLegendRequestBuilder) Request() *WorkbookChartLegendRequest {
+ return &WorkbookChartLegendRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartLegendRequest is request for WorkbookChartLegend
+type WorkbookChartLegendRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartLegend
+func (r *WorkbookChartLegendRequest) Get(ctx context.Context) (resObj *WorkbookChartLegend, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartLegend
+func (r *WorkbookChartLegendRequest) Update(ctx context.Context, reqObj *WorkbookChartLegend) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartLegend
+func (r *WorkbookChartLegendRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartLegendFormatRequestBuilder is request builder for WorkbookChartLegendFormat
+type WorkbookChartLegendFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartLegendFormatRequest
+func (b *WorkbookChartLegendFormatRequestBuilder) Request() *WorkbookChartLegendFormatRequest {
+ return &WorkbookChartLegendFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartLegendFormatRequest is request for WorkbookChartLegendFormat
+type WorkbookChartLegendFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartLegendFormat
+func (r *WorkbookChartLegendFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartLegendFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartLegendFormat
+func (r *WorkbookChartLegendFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartLegendFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartLegendFormat
+func (r *WorkbookChartLegendFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartLineFormatRequestBuilder is request builder for WorkbookChartLineFormat
+type WorkbookChartLineFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartLineFormatRequest
+func (b *WorkbookChartLineFormatRequestBuilder) Request() *WorkbookChartLineFormatRequest {
+ return &WorkbookChartLineFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartLineFormatRequest is request for WorkbookChartLineFormat
+type WorkbookChartLineFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartLineFormat
+func (r *WorkbookChartLineFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartLineFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartLineFormat
+func (r *WorkbookChartLineFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartLineFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartLineFormat
+func (r *WorkbookChartLineFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartPointRequestBuilder is request builder for WorkbookChartPoint
+type WorkbookChartPointRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartPointRequest
+func (b *WorkbookChartPointRequestBuilder) Request() *WorkbookChartPointRequest {
+ return &WorkbookChartPointRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartPointRequest is request for WorkbookChartPoint
+type WorkbookChartPointRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartPoint
+func (r *WorkbookChartPointRequest) Get(ctx context.Context) (resObj *WorkbookChartPoint, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartPoint
+func (r *WorkbookChartPointRequest) Update(ctx context.Context, reqObj *WorkbookChartPoint) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartPoint
+func (r *WorkbookChartPointRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartPointFormatRequestBuilder is request builder for WorkbookChartPointFormat
+type WorkbookChartPointFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartPointFormatRequest
+func (b *WorkbookChartPointFormatRequestBuilder) Request() *WorkbookChartPointFormatRequest {
+ return &WorkbookChartPointFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartPointFormatRequest is request for WorkbookChartPointFormat
+type WorkbookChartPointFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartPointFormat
+func (r *WorkbookChartPointFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartPointFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartPointFormat
+func (r *WorkbookChartPointFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartPointFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartPointFormat
+func (r *WorkbookChartPointFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartSeriesRequestBuilder is request builder for WorkbookChartSeries
+type WorkbookChartSeriesRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartSeriesRequest
+func (b *WorkbookChartSeriesRequestBuilder) Request() *WorkbookChartSeriesRequest {
+ return &WorkbookChartSeriesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartSeriesRequest is request for WorkbookChartSeries
+type WorkbookChartSeriesRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartSeries
+func (r *WorkbookChartSeriesRequest) Get(ctx context.Context) (resObj *WorkbookChartSeries, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartSeries
+func (r *WorkbookChartSeriesRequest) Update(ctx context.Context, reqObj *WorkbookChartSeries) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartSeries
+func (r *WorkbookChartSeriesRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartSeriesFormatRequestBuilder is request builder for WorkbookChartSeriesFormat
+type WorkbookChartSeriesFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartSeriesFormatRequest
+func (b *WorkbookChartSeriesFormatRequestBuilder) Request() *WorkbookChartSeriesFormatRequest {
+ return &WorkbookChartSeriesFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartSeriesFormatRequest is request for WorkbookChartSeriesFormat
+type WorkbookChartSeriesFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartSeriesFormat
+func (r *WorkbookChartSeriesFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartSeriesFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartSeriesFormat
+func (r *WorkbookChartSeriesFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartSeriesFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartSeriesFormat
+func (r *WorkbookChartSeriesFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartTitleRequestBuilder is request builder for WorkbookChartTitle
+type WorkbookChartTitleRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartTitleRequest
+func (b *WorkbookChartTitleRequestBuilder) Request() *WorkbookChartTitleRequest {
+ return &WorkbookChartTitleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartTitleRequest is request for WorkbookChartTitle
+type WorkbookChartTitleRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartTitle
+func (r *WorkbookChartTitleRequest) Get(ctx context.Context) (resObj *WorkbookChartTitle, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartTitle
+func (r *WorkbookChartTitleRequest) Update(ctx context.Context, reqObj *WorkbookChartTitle) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartTitle
+func (r *WorkbookChartTitleRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookChartTitleFormatRequestBuilder is request builder for WorkbookChartTitleFormat
+type WorkbookChartTitleFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookChartTitleFormatRequest
+func (b *WorkbookChartTitleFormatRequestBuilder) Request() *WorkbookChartTitleFormatRequest {
+ return &WorkbookChartTitleFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookChartTitleFormatRequest is request for WorkbookChartTitleFormat
+type WorkbookChartTitleFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookChartTitleFormat
+func (r *WorkbookChartTitleFormatRequest) Get(ctx context.Context) (resObj *WorkbookChartTitleFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookChartTitleFormat
+func (r *WorkbookChartTitleFormatRequest) Update(ctx context.Context, reqObj *WorkbookChartTitleFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookChartTitleFormat
+func (r *WorkbookChartTitleFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookCommentRequestBuilder is request builder for WorkbookComment
+type WorkbookCommentRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookCommentRequest
+func (b *WorkbookCommentRequestBuilder) Request() *WorkbookCommentRequest {
+ return &WorkbookCommentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookCommentRequest is request for WorkbookComment
+type WorkbookCommentRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookComment
+func (r *WorkbookCommentRequest) Get(ctx context.Context) (resObj *WorkbookComment, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookComment
+func (r *WorkbookCommentRequest) Update(ctx context.Context, reqObj *WorkbookComment) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookComment
+func (r *WorkbookCommentRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookCommentReplyRequestBuilder is request builder for WorkbookCommentReply
+type WorkbookCommentReplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookCommentReplyRequest
+func (b *WorkbookCommentReplyRequestBuilder) Request() *WorkbookCommentReplyRequest {
+ return &WorkbookCommentReplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookCommentReplyRequest is request for WorkbookCommentReply
+type WorkbookCommentReplyRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookCommentReply
+func (r *WorkbookCommentReplyRequest) Get(ctx context.Context) (resObj *WorkbookCommentReply, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookCommentReply
+func (r *WorkbookCommentReplyRequest) Update(ctx context.Context, reqObj *WorkbookCommentReply) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookCommentReply
+func (r *WorkbookCommentReplyRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookFilterRequestBuilder is request builder for WorkbookFilter
+type WorkbookFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookFilterRequest
+func (b *WorkbookFilterRequestBuilder) Request() *WorkbookFilterRequest {
+ return &WorkbookFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookFilterRequest is request for WorkbookFilter
+type WorkbookFilterRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookFilter
+func (r *WorkbookFilterRequest) Get(ctx context.Context) (resObj *WorkbookFilter, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookFilter
+func (r *WorkbookFilterRequest) Update(ctx context.Context, reqObj *WorkbookFilter) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookFilter
+func (r *WorkbookFilterRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookFormatProtectionRequestBuilder is request builder for WorkbookFormatProtection
+type WorkbookFormatProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookFormatProtectionRequest
+func (b *WorkbookFormatProtectionRequestBuilder) Request() *WorkbookFormatProtectionRequest {
+ return &WorkbookFormatProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookFormatProtectionRequest is request for WorkbookFormatProtection
+type WorkbookFormatProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookFormatProtection
+func (r *WorkbookFormatProtectionRequest) Get(ctx context.Context) (resObj *WorkbookFormatProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookFormatProtection
+func (r *WorkbookFormatProtectionRequest) Update(ctx context.Context, reqObj *WorkbookFormatProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookFormatProtection
+func (r *WorkbookFormatProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookNamedItemRequestBuilder is request builder for WorkbookNamedItem
+type WorkbookNamedItemRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookNamedItemRequest
+func (b *WorkbookNamedItemRequestBuilder) Request() *WorkbookNamedItemRequest {
+ return &WorkbookNamedItemRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookNamedItemRequest is request for WorkbookNamedItem
+type WorkbookNamedItemRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookNamedItem
+func (r *WorkbookNamedItemRequest) Get(ctx context.Context) (resObj *WorkbookNamedItem, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookNamedItem
+func (r *WorkbookNamedItemRequest) Update(ctx context.Context, reqObj *WorkbookNamedItem) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookNamedItem
+func (r *WorkbookNamedItemRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookPivotTableRequestBuilder is request builder for WorkbookPivotTable
+type WorkbookPivotTableRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookPivotTableRequest
+func (b *WorkbookPivotTableRequestBuilder) Request() *WorkbookPivotTableRequest {
+ return &WorkbookPivotTableRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookPivotTableRequest is request for WorkbookPivotTable
+type WorkbookPivotTableRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookPivotTable
+func (r *WorkbookPivotTableRequest) Get(ctx context.Context) (resObj *WorkbookPivotTable, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookPivotTable
+func (r *WorkbookPivotTableRequest) Update(ctx context.Context, reqObj *WorkbookPivotTable) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookPivotTable
+func (r *WorkbookPivotTableRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookRangeRequestBuilder is request builder for WorkbookRange
+type WorkbookRangeRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookRangeRequest
+func (b *WorkbookRangeRequestBuilder) Request() *WorkbookRangeRequest {
+ return &WorkbookRangeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookRangeRequest is request for WorkbookRange
+type WorkbookRangeRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookRange
+func (r *WorkbookRangeRequest) Get(ctx context.Context) (resObj *WorkbookRange, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookRange
+func (r *WorkbookRangeRequest) Update(ctx context.Context, reqObj *WorkbookRange) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookRange
+func (r *WorkbookRangeRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookRangeBorderRequestBuilder is request builder for WorkbookRangeBorder
+type WorkbookRangeBorderRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookRangeBorderRequest
+func (b *WorkbookRangeBorderRequestBuilder) Request() *WorkbookRangeBorderRequest {
+ return &WorkbookRangeBorderRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookRangeBorderRequest is request for WorkbookRangeBorder
+type WorkbookRangeBorderRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookRangeBorder
+func (r *WorkbookRangeBorderRequest) Get(ctx context.Context) (resObj *WorkbookRangeBorder, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookRangeBorder
+func (r *WorkbookRangeBorderRequest) Update(ctx context.Context, reqObj *WorkbookRangeBorder) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookRangeBorder
+func (r *WorkbookRangeBorderRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookRangeFillRequestBuilder is request builder for WorkbookRangeFill
+type WorkbookRangeFillRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookRangeFillRequest
+func (b *WorkbookRangeFillRequestBuilder) Request() *WorkbookRangeFillRequest {
+ return &WorkbookRangeFillRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookRangeFillRequest is request for WorkbookRangeFill
+type WorkbookRangeFillRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookRangeFill
+func (r *WorkbookRangeFillRequest) Get(ctx context.Context) (resObj *WorkbookRangeFill, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookRangeFill
+func (r *WorkbookRangeFillRequest) Update(ctx context.Context, reqObj *WorkbookRangeFill) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookRangeFill
+func (r *WorkbookRangeFillRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookRangeFontRequestBuilder is request builder for WorkbookRangeFont
+type WorkbookRangeFontRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookRangeFontRequest
+func (b *WorkbookRangeFontRequestBuilder) Request() *WorkbookRangeFontRequest {
+ return &WorkbookRangeFontRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookRangeFontRequest is request for WorkbookRangeFont
+type WorkbookRangeFontRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookRangeFont
+func (r *WorkbookRangeFontRequest) Get(ctx context.Context) (resObj *WorkbookRangeFont, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookRangeFont
+func (r *WorkbookRangeFontRequest) Update(ctx context.Context, reqObj *WorkbookRangeFont) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookRangeFont
+func (r *WorkbookRangeFontRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookRangeFormatRequestBuilder is request builder for WorkbookRangeFormat
+type WorkbookRangeFormatRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookRangeFormatRequest
+func (b *WorkbookRangeFormatRequestBuilder) Request() *WorkbookRangeFormatRequest {
+ return &WorkbookRangeFormatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookRangeFormatRequest is request for WorkbookRangeFormat
+type WorkbookRangeFormatRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookRangeFormat
+func (r *WorkbookRangeFormatRequest) Get(ctx context.Context) (resObj *WorkbookRangeFormat, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookRangeFormat
+func (r *WorkbookRangeFormatRequest) Update(ctx context.Context, reqObj *WorkbookRangeFormat) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookRangeFormat
+func (r *WorkbookRangeFormatRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookRangeSortRequestBuilder is request builder for WorkbookRangeSort
+type WorkbookRangeSortRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookRangeSortRequest
+func (b *WorkbookRangeSortRequestBuilder) Request() *WorkbookRangeSortRequest {
+ return &WorkbookRangeSortRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookRangeSortRequest is request for WorkbookRangeSort
+type WorkbookRangeSortRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookRangeSort
+func (r *WorkbookRangeSortRequest) Get(ctx context.Context) (resObj *WorkbookRangeSort, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookRangeSort
+func (r *WorkbookRangeSortRequest) Update(ctx context.Context, reqObj *WorkbookRangeSort) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookRangeSort
+func (r *WorkbookRangeSortRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookRangeViewRequestBuilder is request builder for WorkbookRangeView
+type WorkbookRangeViewRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookRangeViewRequest
+func (b *WorkbookRangeViewRequestBuilder) Request() *WorkbookRangeViewRequest {
+ return &WorkbookRangeViewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookRangeViewRequest is request for WorkbookRangeView
+type WorkbookRangeViewRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookRangeView
+func (r *WorkbookRangeViewRequest) Get(ctx context.Context) (resObj *WorkbookRangeView, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookRangeView
+func (r *WorkbookRangeViewRequest) Update(ctx context.Context, reqObj *WorkbookRangeView) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookRangeView
+func (r *WorkbookRangeViewRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookTableRequestBuilder is request builder for WorkbookTable
+type WorkbookTableRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookTableRequest
+func (b *WorkbookTableRequestBuilder) Request() *WorkbookTableRequest {
+ return &WorkbookTableRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookTableRequest is request for WorkbookTable
+type WorkbookTableRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookTable
+func (r *WorkbookTableRequest) Get(ctx context.Context) (resObj *WorkbookTable, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookTable
+func (r *WorkbookTableRequest) Update(ctx context.Context, reqObj *WorkbookTable) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookTable
+func (r *WorkbookTableRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookTableColumnRequestBuilder is request builder for WorkbookTableColumn
+type WorkbookTableColumnRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookTableColumnRequest
+func (b *WorkbookTableColumnRequestBuilder) Request() *WorkbookTableColumnRequest {
+ return &WorkbookTableColumnRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookTableColumnRequest is request for WorkbookTableColumn
+type WorkbookTableColumnRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookTableColumn
+func (r *WorkbookTableColumnRequest) Get(ctx context.Context) (resObj *WorkbookTableColumn, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookTableColumn
+func (r *WorkbookTableColumnRequest) Update(ctx context.Context, reqObj *WorkbookTableColumn) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookTableColumn
+func (r *WorkbookTableColumnRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookTableRowRequestBuilder is request builder for WorkbookTableRow
+type WorkbookTableRowRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookTableRowRequest
+func (b *WorkbookTableRowRequestBuilder) Request() *WorkbookTableRowRequest {
+ return &WorkbookTableRowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookTableRowRequest is request for WorkbookTableRow
+type WorkbookTableRowRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookTableRow
+func (r *WorkbookTableRowRequest) Get(ctx context.Context) (resObj *WorkbookTableRow, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookTableRow
+func (r *WorkbookTableRowRequest) Update(ctx context.Context, reqObj *WorkbookTableRow) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookTableRow
+func (r *WorkbookTableRowRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookTableSortRequestBuilder is request builder for WorkbookTableSort
+type WorkbookTableSortRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookTableSortRequest
+func (b *WorkbookTableSortRequestBuilder) Request() *WorkbookTableSortRequest {
+ return &WorkbookTableSortRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookTableSortRequest is request for WorkbookTableSort
+type WorkbookTableSortRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookTableSort
+func (r *WorkbookTableSortRequest) Get(ctx context.Context) (resObj *WorkbookTableSort, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookTableSort
+func (r *WorkbookTableSortRequest) Update(ctx context.Context, reqObj *WorkbookTableSort) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookTableSort
+func (r *WorkbookTableSortRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookWorksheetRequestBuilder is request builder for WorkbookWorksheet
+type WorkbookWorksheetRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookWorksheetRequest
+func (b *WorkbookWorksheetRequestBuilder) Request() *WorkbookWorksheetRequest {
+ return &WorkbookWorksheetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookWorksheetRequest is request for WorkbookWorksheet
+type WorkbookWorksheetRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookWorksheet
+func (r *WorkbookWorksheetRequest) Get(ctx context.Context) (resObj *WorkbookWorksheet, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookWorksheet
+func (r *WorkbookWorksheetRequest) Update(ctx context.Context, reqObj *WorkbookWorksheet) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookWorksheet
+func (r *WorkbookWorksheetRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+// WorkbookWorksheetProtectionRequestBuilder is request builder for WorkbookWorksheetProtection
+type WorkbookWorksheetProtectionRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookWorksheetProtectionRequest
+func (b *WorkbookWorksheetProtectionRequestBuilder) Request() *WorkbookWorksheetProtectionRequest {
+ return &WorkbookWorksheetProtectionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookWorksheetProtectionRequest is request for WorkbookWorksheetProtection
+type WorkbookWorksheetProtectionRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookWorksheetProtection
+func (r *WorkbookWorksheetProtectionRequest) Get(ctx context.Context) (resObj *WorkbookWorksheetProtection, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookWorksheetProtection
+func (r *WorkbookWorksheetProtectionRequest) Update(ctx context.Context, reqObj *WorkbookWorksheetProtection) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookWorksheetProtection
+func (r *WorkbookWorksheetProtectionRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
+
+//
+type WorkbookChartCollectionAddRequestBuilder struct{ BaseRequestBuilder }
+
+// Add action undocumented
+func (b *WorkbookWorksheetChartsCollectionRequestBuilder) Add(reqObj *WorkbookChartCollectionAddRequestParameter) *WorkbookChartCollectionAddRequestBuilder {
+ bb := &WorkbookChartCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookChartCollectionAddRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookChartCollectionAddRequestBuilder) Request() *WorkbookChartCollectionAddRequest {
+ return &WorkbookChartCollectionAddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookChartCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookChart, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookNamedItemCollectionAddRequestBuilder struct{ BaseRequestBuilder }
+
+// Add action undocumented
+func (b *WorkbookNamesCollectionRequestBuilder) Add(reqObj *WorkbookNamedItemCollectionAddRequestParameter) *WorkbookNamedItemCollectionAddRequestBuilder {
+ bb := &WorkbookNamedItemCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Add action undocumented
+func (b *WorkbookWorksheetNamesCollectionRequestBuilder) Add(reqObj *WorkbookNamedItemCollectionAddRequestParameter) *WorkbookNamedItemCollectionAddRequestBuilder {
+ bb := &WorkbookNamedItemCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookNamedItemCollectionAddRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookNamedItemCollectionAddRequestBuilder) Request() *WorkbookNamedItemCollectionAddRequest {
+ return &WorkbookNamedItemCollectionAddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookNamedItemCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookNamedItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder struct{ BaseRequestBuilder }
+
+// AddFormulaLocal action undocumented
+func (b *WorkbookNamesCollectionRequestBuilder) AddFormulaLocal(reqObj *WorkbookNamedItemCollectionAddFormulaLocalRequestParameter) *WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder {
+ bb := &WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addFormulaLocal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// AddFormulaLocal action undocumented
+func (b *WorkbookWorksheetNamesCollectionRequestBuilder) AddFormulaLocal(reqObj *WorkbookNamedItemCollectionAddFormulaLocalRequestParameter) *WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder {
+ bb := &WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/addFormulaLocal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookNamedItemCollectionAddFormulaLocalRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookNamedItemCollectionAddFormulaLocalRequestBuilder) Request() *WorkbookNamedItemCollectionAddFormulaLocalRequest {
+ return &WorkbookNamedItemCollectionAddFormulaLocalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookNamedItemCollectionAddFormulaLocalRequest) Post(ctx context.Context) (resObj *WorkbookNamedItem, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookPivotTableCollectionRefreshAllRequestBuilder struct{ BaseRequestBuilder }
+
+// RefreshAll action undocumented
+func (b *WorkbookWorksheetPivotTablesCollectionRequestBuilder) RefreshAll(reqObj *WorkbookPivotTableCollectionRefreshAllRequestParameter) *WorkbookPivotTableCollectionRefreshAllRequestBuilder {
+ bb := &WorkbookPivotTableCollectionRefreshAllRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/refreshAll"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookPivotTableCollectionRefreshAllRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookPivotTableCollectionRefreshAllRequestBuilder) Request() *WorkbookPivotTableCollectionRefreshAllRequest {
+ return &WorkbookPivotTableCollectionRefreshAllRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookPivotTableCollectionRefreshAllRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookTableCollectionAddRequestBuilder struct{ BaseRequestBuilder }
+
+// Add action undocumented
+func (b *WorkbookTablesCollectionRequestBuilder) Add(reqObj *WorkbookTableCollectionAddRequestParameter) *WorkbookTableCollectionAddRequestBuilder {
+ bb := &WorkbookTableCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+// Add action undocumented
+func (b *WorkbookWorksheetTablesCollectionRequestBuilder) Add(reqObj *WorkbookTableCollectionAddRequestParameter) *WorkbookTableCollectionAddRequestBuilder {
+ bb := &WorkbookTableCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookTableCollectionAddRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookTableCollectionAddRequestBuilder) Request() *WorkbookTableCollectionAddRequest {
+ return &WorkbookTableCollectionAddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookTableCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookTable, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookTableColumnCollectionAddRequestBuilder struct{ BaseRequestBuilder }
+
+// Add action undocumented
+func (b *WorkbookTableColumnsCollectionRequestBuilder) Add(reqObj *WorkbookTableColumnCollectionAddRequestParameter) *WorkbookTableColumnCollectionAddRequestBuilder {
+ bb := &WorkbookTableColumnCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookTableColumnCollectionAddRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookTableColumnCollectionAddRequestBuilder) Request() *WorkbookTableColumnCollectionAddRequest {
+ return &WorkbookTableColumnCollectionAddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookTableColumnCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookTableColumn, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookTableRowCollectionAddRequestBuilder struct{ BaseRequestBuilder }
+
+// Add action undocumented
+func (b *WorkbookTableRowsCollectionRequestBuilder) Add(reqObj *WorkbookTableRowCollectionAddRequestParameter) *WorkbookTableRowCollectionAddRequestBuilder {
+ bb := &WorkbookTableRowCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookTableRowCollectionAddRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookTableRowCollectionAddRequestBuilder) Request() *WorkbookTableRowCollectionAddRequest {
+ return &WorkbookTableRowCollectionAddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookTableRowCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookTableRow, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookWorksheetCollectionAddRequestBuilder struct{ BaseRequestBuilder }
+
+// Add action undocumented
+func (b *WorkbookWorksheetsCollectionRequestBuilder) Add(reqObj *WorkbookWorksheetCollectionAddRequestParameter) *WorkbookWorksheetCollectionAddRequestBuilder {
+ bb := &WorkbookWorksheetCollectionAddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/add"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookWorksheetCollectionAddRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookWorksheetCollectionAddRequestBuilder) Request() *WorkbookWorksheetCollectionAddRequest {
+ return &WorkbookWorksheetCollectionAddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookWorksheetCollectionAddRequest) Post(ctx context.Context) (resObj *WorkbookWorksheet, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookCreateSessionRequestBuilder struct{ BaseRequestBuilder }
+
+// CreateSession action undocumented
+func (b *WorkbookRequestBuilder) CreateSession(reqObj *WorkbookCreateSessionRequestParameter) *WorkbookCreateSessionRequestBuilder {
+ bb := &WorkbookCreateSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/createSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookCreateSessionRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookCreateSessionRequestBuilder) Request() *WorkbookCreateSessionRequest {
+ return &WorkbookCreateSessionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookCreateSessionRequest) Post(ctx context.Context) (resObj *WorkbookSessionInfo, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookCloseSessionRequestBuilder struct{ BaseRequestBuilder }
+
+// CloseSession action undocumented
+func (b *WorkbookRequestBuilder) CloseSession(reqObj *WorkbookCloseSessionRequestParameter) *WorkbookCloseSessionRequestBuilder {
+ bb := &WorkbookCloseSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/closeSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookCloseSessionRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookCloseSessionRequestBuilder) Request() *WorkbookCloseSessionRequest {
+ return &WorkbookCloseSessionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookCloseSessionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookRefreshSessionRequestBuilder struct{ BaseRequestBuilder }
+
+// RefreshSession action undocumented
+func (b *WorkbookRequestBuilder) RefreshSession(reqObj *WorkbookRefreshSessionRequestParameter) *WorkbookRefreshSessionRequestBuilder {
+ bb := &WorkbookRefreshSessionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/refreshSession"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRefreshSessionRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRefreshSessionRequestBuilder) Request() *WorkbookRefreshSessionRequest {
+ return &WorkbookRefreshSessionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRefreshSessionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookApplicationCalculateRequestBuilder struct{ BaseRequestBuilder }
+
+// Calculate action undocumented
+func (b *WorkbookApplicationRequestBuilder) Calculate(reqObj *WorkbookApplicationCalculateRequestParameter) *WorkbookApplicationCalculateRequestBuilder {
+ bb := &WorkbookApplicationCalculateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/calculate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookApplicationCalculateRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookApplicationCalculateRequestBuilder) Request() *WorkbookApplicationCalculateRequest {
+ return &WorkbookApplicationCalculateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookApplicationCalculateRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookChartSetDataRequestBuilder struct{ BaseRequestBuilder }
+
+// SetData action undocumented
+func (b *WorkbookChartRequestBuilder) SetData(reqObj *WorkbookChartSetDataRequestParameter) *WorkbookChartSetDataRequestBuilder {
+ bb := &WorkbookChartSetDataRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setData"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookChartSetDataRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookChartSetDataRequestBuilder) Request() *WorkbookChartSetDataRequest {
+ return &WorkbookChartSetDataRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookChartSetDataRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookChartSetPositionRequestBuilder struct{ BaseRequestBuilder }
+
+// SetPosition action undocumented
+func (b *WorkbookChartRequestBuilder) SetPosition(reqObj *WorkbookChartSetPositionRequestParameter) *WorkbookChartSetPositionRequestBuilder {
+ bb := &WorkbookChartSetPositionRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setPosition"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookChartSetPositionRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookChartSetPositionRequestBuilder) Request() *WorkbookChartSetPositionRequest {
+ return &WorkbookChartSetPositionRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookChartSetPositionRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookChartFillClearRequestBuilder struct{ BaseRequestBuilder }
+
+// Clear action undocumented
+func (b *WorkbookChartFillRequestBuilder) Clear(reqObj *WorkbookChartFillClearRequestParameter) *WorkbookChartFillClearRequestBuilder {
+ bb := &WorkbookChartFillClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clear"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookChartFillClearRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookChartFillClearRequestBuilder) Request() *WorkbookChartFillClearRequest {
+ return &WorkbookChartFillClearRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookChartFillClearRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookChartFillSetSolidColorRequestBuilder struct{ BaseRequestBuilder }
+
+// SetSolidColor action undocumented
+func (b *WorkbookChartFillRequestBuilder) SetSolidColor(reqObj *WorkbookChartFillSetSolidColorRequestParameter) *WorkbookChartFillSetSolidColorRequestBuilder {
+ bb := &WorkbookChartFillSetSolidColorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/setSolidColor"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookChartFillSetSolidColorRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookChartFillSetSolidColorRequestBuilder) Request() *WorkbookChartFillSetSolidColorRequest {
+ return &WorkbookChartFillSetSolidColorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookChartFillSetSolidColorRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookChartLineFormatClearRequestBuilder struct{ BaseRequestBuilder }
+
+// Clear action undocumented
+func (b *WorkbookChartLineFormatRequestBuilder) Clear(reqObj *WorkbookChartLineFormatClearRequestParameter) *WorkbookChartLineFormatClearRequestBuilder {
+ bb := &WorkbookChartLineFormatClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clear"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookChartLineFormatClearRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookChartLineFormatClearRequestBuilder) Request() *WorkbookChartLineFormatClearRequest {
+ return &WorkbookChartLineFormatClearRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookChartLineFormatClearRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Apply action undocumented
+func (b *WorkbookFilterRequestBuilder) Apply(reqObj *WorkbookFilterApplyRequestParameter) *WorkbookFilterApplyRequestBuilder {
+ bb := &WorkbookFilterApplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/apply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyRequestBuilder) Request() *WorkbookFilterApplyRequest {
+ return &WorkbookFilterApplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyBottomItemsFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyBottomItemsFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyBottomItemsFilter(reqObj *WorkbookFilterApplyBottomItemsFilterRequestParameter) *WorkbookFilterApplyBottomItemsFilterRequestBuilder {
+ bb := &WorkbookFilterApplyBottomItemsFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyBottomItemsFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyBottomItemsFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyBottomItemsFilterRequestBuilder) Request() *WorkbookFilterApplyBottomItemsFilterRequest {
+ return &WorkbookFilterApplyBottomItemsFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyBottomItemsFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyBottomPercentFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyBottomPercentFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyBottomPercentFilter(reqObj *WorkbookFilterApplyBottomPercentFilterRequestParameter) *WorkbookFilterApplyBottomPercentFilterRequestBuilder {
+ bb := &WorkbookFilterApplyBottomPercentFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyBottomPercentFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyBottomPercentFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyBottomPercentFilterRequestBuilder) Request() *WorkbookFilterApplyBottomPercentFilterRequest {
+ return &WorkbookFilterApplyBottomPercentFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyBottomPercentFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyCellColorFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyCellColorFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyCellColorFilter(reqObj *WorkbookFilterApplyCellColorFilterRequestParameter) *WorkbookFilterApplyCellColorFilterRequestBuilder {
+ bb := &WorkbookFilterApplyCellColorFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyCellColorFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyCellColorFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyCellColorFilterRequestBuilder) Request() *WorkbookFilterApplyCellColorFilterRequest {
+ return &WorkbookFilterApplyCellColorFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyCellColorFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyCustomFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyCustomFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyCustomFilter(reqObj *WorkbookFilterApplyCustomFilterRequestParameter) *WorkbookFilterApplyCustomFilterRequestBuilder {
+ bb := &WorkbookFilterApplyCustomFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyCustomFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyCustomFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyCustomFilterRequestBuilder) Request() *WorkbookFilterApplyCustomFilterRequest {
+ return &WorkbookFilterApplyCustomFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyCustomFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyDynamicFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyDynamicFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyDynamicFilter(reqObj *WorkbookFilterApplyDynamicFilterRequestParameter) *WorkbookFilterApplyDynamicFilterRequestBuilder {
+ bb := &WorkbookFilterApplyDynamicFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyDynamicFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyDynamicFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyDynamicFilterRequestBuilder) Request() *WorkbookFilterApplyDynamicFilterRequest {
+ return &WorkbookFilterApplyDynamicFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyDynamicFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyFontColorFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyFontColorFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyFontColorFilter(reqObj *WorkbookFilterApplyFontColorFilterRequestParameter) *WorkbookFilterApplyFontColorFilterRequestBuilder {
+ bb := &WorkbookFilterApplyFontColorFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyFontColorFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyFontColorFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyFontColorFilterRequestBuilder) Request() *WorkbookFilterApplyFontColorFilterRequest {
+ return &WorkbookFilterApplyFontColorFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyFontColorFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyIconFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyIconFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyIconFilter(reqObj *WorkbookFilterApplyIconFilterRequestParameter) *WorkbookFilterApplyIconFilterRequestBuilder {
+ bb := &WorkbookFilterApplyIconFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyIconFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyIconFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyIconFilterRequestBuilder) Request() *WorkbookFilterApplyIconFilterRequest {
+ return &WorkbookFilterApplyIconFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyIconFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyTopItemsFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyTopItemsFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyTopItemsFilter(reqObj *WorkbookFilterApplyTopItemsFilterRequestParameter) *WorkbookFilterApplyTopItemsFilterRequestBuilder {
+ bb := &WorkbookFilterApplyTopItemsFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyTopItemsFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyTopItemsFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyTopItemsFilterRequestBuilder) Request() *WorkbookFilterApplyTopItemsFilterRequest {
+ return &WorkbookFilterApplyTopItemsFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyTopItemsFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyTopPercentFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyTopPercentFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyTopPercentFilter(reqObj *WorkbookFilterApplyTopPercentFilterRequestParameter) *WorkbookFilterApplyTopPercentFilterRequestBuilder {
+ bb := &WorkbookFilterApplyTopPercentFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyTopPercentFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyTopPercentFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyTopPercentFilterRequestBuilder) Request() *WorkbookFilterApplyTopPercentFilterRequest {
+ return &WorkbookFilterApplyTopPercentFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyTopPercentFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterApplyValuesFilterRequestBuilder struct{ BaseRequestBuilder }
+
+// ApplyValuesFilter action undocumented
+func (b *WorkbookFilterRequestBuilder) ApplyValuesFilter(reqObj *WorkbookFilterApplyValuesFilterRequestParameter) *WorkbookFilterApplyValuesFilterRequestBuilder {
+ bb := &WorkbookFilterApplyValuesFilterRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/applyValuesFilter"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterApplyValuesFilterRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterApplyValuesFilterRequestBuilder) Request() *WorkbookFilterApplyValuesFilterRequest {
+ return &WorkbookFilterApplyValuesFilterRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterApplyValuesFilterRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookFilterClearRequestBuilder struct{ BaseRequestBuilder }
+
+// Clear action undocumented
+func (b *WorkbookFilterRequestBuilder) Clear(reqObj *WorkbookFilterClearRequestParameter) *WorkbookFilterClearRequestBuilder {
+ bb := &WorkbookFilterClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clear"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFilterClearRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFilterClearRequestBuilder) Request() *WorkbookFilterClearRequest {
+ return &WorkbookFilterClearRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFilterClearRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookPivotTableRefreshRequestBuilder struct{ BaseRequestBuilder }
+
+// Refresh action undocumented
+func (b *WorkbookPivotTableRequestBuilder) Refresh(reqObj *WorkbookPivotTableRefreshRequestParameter) *WorkbookPivotTableRefreshRequestBuilder {
+ bb := &WorkbookPivotTableRefreshRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/refresh"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookPivotTableRefreshRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookPivotTableRefreshRequestBuilder) Request() *WorkbookPivotTableRefreshRequest {
+ return &WorkbookPivotTableRefreshRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookPivotTableRefreshRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookRangeClearRequestBuilder struct{ BaseRequestBuilder }
+
+// Clear action undocumented
+func (b *WorkbookRangeRequestBuilder) Clear(reqObj *WorkbookRangeClearRequestParameter) *WorkbookRangeClearRequestBuilder {
+ bb := &WorkbookRangeClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clear"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRangeClearRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRangeClearRequestBuilder) Request() *WorkbookRangeClearRequest {
+ return &WorkbookRangeClearRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRangeClearRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookRangeDeleteRequestBuilder struct{ BaseRequestBuilder }
+
+// Delete action undocumented
+func (b *WorkbookRangeRequestBuilder) Delete(reqObj *WorkbookRangeDeleteRequestParameter) *WorkbookRangeDeleteRequestBuilder {
+ bb := &WorkbookRangeDeleteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/delete"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRangeDeleteRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRangeDeleteRequestBuilder) Request() *WorkbookRangeDeleteRequest {
+ return &WorkbookRangeDeleteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRangeDeleteRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookRangeInsertRequestBuilder struct{ BaseRequestBuilder }
+
+// Insert action undocumented
+func (b *WorkbookRangeRequestBuilder) Insert(reqObj *WorkbookRangeInsertRequestParameter) *WorkbookRangeInsertRequestBuilder {
+ bb := &WorkbookRangeInsertRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/insert"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRangeInsertRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRangeInsertRequestBuilder) Request() *WorkbookRangeInsertRequest {
+ return &WorkbookRangeInsertRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRangeInsertRequest) Post(ctx context.Context) (resObj *WorkbookRange, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookRangeMergeRequestBuilder struct{ BaseRequestBuilder }
+
+// Merge action undocumented
+func (b *WorkbookRangeRequestBuilder) Merge(reqObj *WorkbookRangeMergeRequestParameter) *WorkbookRangeMergeRequestBuilder {
+ bb := &WorkbookRangeMergeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/merge"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRangeMergeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRangeMergeRequestBuilder) Request() *WorkbookRangeMergeRequest {
+ return &WorkbookRangeMergeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRangeMergeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookRangeUnmergeRequestBuilder struct{ BaseRequestBuilder }
+
+// Unmerge action undocumented
+func (b *WorkbookRangeRequestBuilder) Unmerge(reqObj *WorkbookRangeUnmergeRequestParameter) *WorkbookRangeUnmergeRequestBuilder {
+ bb := &WorkbookRangeUnmergeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unmerge"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRangeUnmergeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRangeUnmergeRequestBuilder) Request() *WorkbookRangeUnmergeRequest {
+ return &WorkbookRangeUnmergeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRangeUnmergeRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookRangeFillClearRequestBuilder struct{ BaseRequestBuilder }
+
+// Clear action undocumented
+func (b *WorkbookRangeFillRequestBuilder) Clear(reqObj *WorkbookRangeFillClearRequestParameter) *WorkbookRangeFillClearRequestBuilder {
+ bb := &WorkbookRangeFillClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clear"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRangeFillClearRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRangeFillClearRequestBuilder) Request() *WorkbookRangeFillClearRequest {
+ return &WorkbookRangeFillClearRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRangeFillClearRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookRangeFormatAutofitColumnsRequestBuilder struct{ BaseRequestBuilder }
+
+// AutofitColumns action undocumented
+func (b *WorkbookRangeFormatRequestBuilder) AutofitColumns(reqObj *WorkbookRangeFormatAutofitColumnsRequestParameter) *WorkbookRangeFormatAutofitColumnsRequestBuilder {
+ bb := &WorkbookRangeFormatAutofitColumnsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/autofitColumns"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRangeFormatAutofitColumnsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRangeFormatAutofitColumnsRequestBuilder) Request() *WorkbookRangeFormatAutofitColumnsRequest {
+ return &WorkbookRangeFormatAutofitColumnsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRangeFormatAutofitColumnsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookRangeFormatAutofitRowsRequestBuilder struct{ BaseRequestBuilder }
+
+// AutofitRows action undocumented
+func (b *WorkbookRangeFormatRequestBuilder) AutofitRows(reqObj *WorkbookRangeFormatAutofitRowsRequestParameter) *WorkbookRangeFormatAutofitRowsRequestBuilder {
+ bb := &WorkbookRangeFormatAutofitRowsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/autofitRows"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRangeFormatAutofitRowsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRangeFormatAutofitRowsRequestBuilder) Request() *WorkbookRangeFormatAutofitRowsRequest {
+ return &WorkbookRangeFormatAutofitRowsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRangeFormatAutofitRowsRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookRangeSortApplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Apply action undocumented
+func (b *WorkbookRangeSortRequestBuilder) Apply(reqObj *WorkbookRangeSortApplyRequestParameter) *WorkbookRangeSortApplyRequestBuilder {
+ bb := &WorkbookRangeSortApplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/apply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookRangeSortApplyRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookRangeSortApplyRequestBuilder) Request() *WorkbookRangeSortApplyRequest {
+ return &WorkbookRangeSortApplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookRangeSortApplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookTableClearFiltersRequestBuilder struct{ BaseRequestBuilder }
+
+// ClearFilters action undocumented
+func (b *WorkbookTableRequestBuilder) ClearFilters(reqObj *WorkbookTableClearFiltersRequestParameter) *WorkbookTableClearFiltersRequestBuilder {
+ bb := &WorkbookTableClearFiltersRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clearFilters"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookTableClearFiltersRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookTableClearFiltersRequestBuilder) Request() *WorkbookTableClearFiltersRequest {
+ return &WorkbookTableClearFiltersRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookTableClearFiltersRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookTableConvertToRangeRequestBuilder struct{ BaseRequestBuilder }
+
+// ConvertToRange action undocumented
+func (b *WorkbookTableRequestBuilder) ConvertToRange(reqObj *WorkbookTableConvertToRangeRequestParameter) *WorkbookTableConvertToRangeRequestBuilder {
+ bb := &WorkbookTableConvertToRangeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/convertToRange"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookTableConvertToRangeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookTableConvertToRangeRequestBuilder) Request() *WorkbookTableConvertToRangeRequest {
+ return &WorkbookTableConvertToRangeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookTableConvertToRangeRequest) Post(ctx context.Context) (resObj *WorkbookRange, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookTableReapplyFiltersRequestBuilder struct{ BaseRequestBuilder }
+
+// ReapplyFilters action undocumented
+func (b *WorkbookTableRequestBuilder) ReapplyFilters(reqObj *WorkbookTableReapplyFiltersRequestParameter) *WorkbookTableReapplyFiltersRequestBuilder {
+ bb := &WorkbookTableReapplyFiltersRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reapplyFilters"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookTableReapplyFiltersRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookTableReapplyFiltersRequestBuilder) Request() *WorkbookTableReapplyFiltersRequest {
+ return &WorkbookTableReapplyFiltersRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookTableReapplyFiltersRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookTableSortApplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Apply action undocumented
+func (b *WorkbookTableSortRequestBuilder) Apply(reqObj *WorkbookTableSortApplyRequestParameter) *WorkbookTableSortApplyRequestBuilder {
+ bb := &WorkbookTableSortApplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/apply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookTableSortApplyRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookTableSortApplyRequestBuilder) Request() *WorkbookTableSortApplyRequest {
+ return &WorkbookTableSortApplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookTableSortApplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookTableSortClearRequestBuilder struct{ BaseRequestBuilder }
+
+// Clear action undocumented
+func (b *WorkbookTableSortRequestBuilder) Clear(reqObj *WorkbookTableSortClearRequestParameter) *WorkbookTableSortClearRequestBuilder {
+ bb := &WorkbookTableSortClearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clear"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookTableSortClearRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookTableSortClearRequestBuilder) Request() *WorkbookTableSortClearRequest {
+ return &WorkbookTableSortClearRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookTableSortClearRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookTableSortReapplyRequestBuilder struct{ BaseRequestBuilder }
+
+// Reapply action undocumented
+func (b *WorkbookTableSortRequestBuilder) Reapply(reqObj *WorkbookTableSortReapplyRequestParameter) *WorkbookTableSortReapplyRequestBuilder {
+ bb := &WorkbookTableSortReapplyRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/reapply"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookTableSortReapplyRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookTableSortReapplyRequestBuilder) Request() *WorkbookTableSortReapplyRequest {
+ return &WorkbookTableSortReapplyRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookTableSortReapplyRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookWorksheetProtectionProtectRequestBuilder struct{ BaseRequestBuilder }
+
+// Protect action undocumented
+func (b *WorkbookWorksheetProtectionRequestBuilder) Protect(reqObj *WorkbookWorksheetProtectionProtectRequestParameter) *WorkbookWorksheetProtectionProtectRequestBuilder {
+ bb := &WorkbookWorksheetProtectionProtectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/protect"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookWorksheetProtectionProtectRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookWorksheetProtectionProtectRequestBuilder) Request() *WorkbookWorksheetProtectionProtectRequest {
+ return &WorkbookWorksheetProtectionProtectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookWorksheetProtectionProtectRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
+
+//
+type WorkbookWorksheetProtectionUnprotectRequestBuilder struct{ BaseRequestBuilder }
+
+// Unprotect action undocumented
+func (b *WorkbookWorksheetProtectionRequestBuilder) Unprotect(reqObj *WorkbookWorksheetProtectionUnprotectRequestParameter) *WorkbookWorksheetProtectionUnprotectRequestBuilder {
+ bb := &WorkbookWorksheetProtectionUnprotectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unprotect"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookWorksheetProtectionUnprotectRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookWorksheetProtectionUnprotectRequestBuilder) Request() *WorkbookWorksheetProtectionUnprotectRequest {
+ return &WorkbookWorksheetProtectionUnprotectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookWorksheetProtectionUnprotectRequest) Post(ctx context.Context) error {
+ return r.JSONRequest(ctx, "POST", "", r.requestObject, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctions.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctions.go
new file mode 100644
index 00000000..21f472e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctions.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkbookFunctionsRequestBuilder is request builder for WorkbookFunctions
+type WorkbookFunctionsRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkbookFunctionsRequest
+func (b *WorkbookFunctionsRequestBuilder) Request() *WorkbookFunctionsRequest {
+ return &WorkbookFunctionsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkbookFunctionsRequest is request for WorkbookFunctions
+type WorkbookFunctionsRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkbookFunctions
+func (r *WorkbookFunctionsRequest) Get(ctx context.Context) (resObj *WorkbookFunctions, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkbookFunctions
+func (r *WorkbookFunctionsRequest) Update(ctx context.Context, reqObj *WorkbookFunctions) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkbookFunctions
+func (r *WorkbookFunctionsRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAbs.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAbs.go
new file mode 100644
index 00000000..999c4dd9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAbs.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAbsRequestBuilder struct{ BaseRequestBuilder }
+
+// Abs action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Abs(reqObj *WorkbookFunctionsAbsRequestParameter) *WorkbookFunctionsAbsRequestBuilder {
+ bb := &WorkbookFunctionsAbsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/abs"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAbsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAbsRequestBuilder) Request() *WorkbookFunctionsAbsRequest {
+ return &WorkbookFunctionsAbsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAbsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAccr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAccr.go
new file mode 100644
index 00000000..688bb23e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAccr.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAccrIntRequestBuilder struct{ BaseRequestBuilder }
+
+// AccrInt action undocumented
+func (b *WorkbookFunctionsRequestBuilder) AccrInt(reqObj *WorkbookFunctionsAccrIntRequestParameter) *WorkbookFunctionsAccrIntRequestBuilder {
+ bb := &WorkbookFunctionsAccrIntRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/accrInt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAccrIntRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAccrIntRequestBuilder) Request() *WorkbookFunctionsAccrIntRequest {
+ return &WorkbookFunctionsAccrIntRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAccrIntRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsAccrIntMRequestBuilder struct{ BaseRequestBuilder }
+
+// AccrIntM action undocumented
+func (b *WorkbookFunctionsRequestBuilder) AccrIntM(reqObj *WorkbookFunctionsAccrIntMRequestParameter) *WorkbookFunctionsAccrIntMRequestBuilder {
+ bb := &WorkbookFunctionsAccrIntMRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/accrIntM"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAccrIntMRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAccrIntMRequestBuilder) Request() *WorkbookFunctionsAccrIntMRequest {
+ return &WorkbookFunctionsAccrIntMRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAccrIntMRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcos.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcos.go
new file mode 100644
index 00000000..dc0fc6dc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcos.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAcosRequestBuilder struct{ BaseRequestBuilder }
+
+// Acos action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Acos(reqObj *WorkbookFunctionsAcosRequestParameter) *WorkbookFunctionsAcosRequestBuilder {
+ bb := &WorkbookFunctionsAcosRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/acos"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAcosRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAcosRequestBuilder) Request() *WorkbookFunctionsAcosRequest {
+ return &WorkbookFunctionsAcosRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAcosRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcosh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcosh.go
new file mode 100644
index 00000000..4d8b0799
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcosh.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAcoshRequestBuilder struct{ BaseRequestBuilder }
+
+// Acosh action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Acosh(reqObj *WorkbookFunctionsAcoshRequestParameter) *WorkbookFunctionsAcoshRequestBuilder {
+ bb := &WorkbookFunctionsAcoshRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/acosh"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAcoshRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAcoshRequestBuilder) Request() *WorkbookFunctionsAcoshRequest {
+ return &WorkbookFunctionsAcoshRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAcoshRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go
new file mode 100644
index 00000000..010d417f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcot.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAcotRequestBuilder struct{ BaseRequestBuilder }
+
+// Acot action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Acot(reqObj *WorkbookFunctionsAcotRequestParameter) *WorkbookFunctionsAcotRequestBuilder {
+ bb := &WorkbookFunctionsAcotRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/acot"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAcotRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAcotRequestBuilder) Request() *WorkbookFunctionsAcotRequest {
+ return &WorkbookFunctionsAcotRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAcotRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcoth.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcoth.go
new file mode 100644
index 00000000..b47e69bc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAcoth.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAcothRequestBuilder struct{ BaseRequestBuilder }
+
+// Acoth action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Acoth(reqObj *WorkbookFunctionsAcothRequestParameter) *WorkbookFunctionsAcothRequestBuilder {
+ bb := &WorkbookFunctionsAcothRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/acoth"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAcothRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAcothRequestBuilder) Request() *WorkbookFunctionsAcothRequest {
+ return &WorkbookFunctionsAcothRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAcothRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAmor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAmor.go
new file mode 100644
index 00000000..256a6dcc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAmor.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAmorDegrcRequestBuilder struct{ BaseRequestBuilder }
+
+// AmorDegrc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) AmorDegrc(reqObj *WorkbookFunctionsAmorDegrcRequestParameter) *WorkbookFunctionsAmorDegrcRequestBuilder {
+ bb := &WorkbookFunctionsAmorDegrcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/amorDegrc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAmorDegrcRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAmorDegrcRequestBuilder) Request() *WorkbookFunctionsAmorDegrcRequest {
+ return &WorkbookFunctionsAmorDegrcRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAmorDegrcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsAmorLincRequestBuilder struct{ BaseRequestBuilder }
+
+// AmorLinc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) AmorLinc(reqObj *WorkbookFunctionsAmorLincRequestParameter) *WorkbookFunctionsAmorLincRequestBuilder {
+ bb := &WorkbookFunctionsAmorLincRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/amorLinc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAmorLincRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAmorLincRequestBuilder) Request() *WorkbookFunctionsAmorLincRequest {
+ return &WorkbookFunctionsAmorLincRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAmorLincRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAnd.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAnd.go
new file mode 100644
index 00000000..928c1791
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAnd.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAndRequestBuilder struct{ BaseRequestBuilder }
+
+// And action undocumented
+func (b *WorkbookFunctionsRequestBuilder) And(reqObj *WorkbookFunctionsAndRequestParameter) *WorkbookFunctionsAndRequestBuilder {
+ bb := &WorkbookFunctionsAndRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/and"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAndRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAndRequestBuilder) Request() *WorkbookFunctionsAndRequest {
+ return &WorkbookFunctionsAndRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAndRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsArabic.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsArabic.go
new file mode 100644
index 00000000..2c520522
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsArabic.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsArabicRequestBuilder struct{ BaseRequestBuilder }
+
+// Arabic action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Arabic(reqObj *WorkbookFunctionsArabicRequestParameter) *WorkbookFunctionsArabicRequestBuilder {
+ bb := &WorkbookFunctionsArabicRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/arabic"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsArabicRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsArabicRequestBuilder) Request() *WorkbookFunctionsArabicRequest {
+ return &WorkbookFunctionsArabicRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsArabicRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAreas.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAreas.go
new file mode 100644
index 00000000..6d16c45c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAreas.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAreasRequestBuilder struct{ BaseRequestBuilder }
+
+// Areas action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Areas(reqObj *WorkbookFunctionsAreasRequestParameter) *WorkbookFunctionsAreasRequestBuilder {
+ bb := &WorkbookFunctionsAreasRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/areas"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAreasRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAreasRequestBuilder) Request() *WorkbookFunctionsAreasRequest {
+ return &WorkbookFunctionsAreasRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAreasRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsc.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsc.go
new file mode 100644
index 00000000..79ad3437
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsc.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAscRequestBuilder struct{ BaseRequestBuilder }
+
+// Asc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Asc(reqObj *WorkbookFunctionsAscRequestParameter) *WorkbookFunctionsAscRequestBuilder {
+ bb := &WorkbookFunctionsAscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/asc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAscRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAscRequestBuilder) Request() *WorkbookFunctionsAscRequest {
+ return &WorkbookFunctionsAscRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsin.go
new file mode 100644
index 00000000..a3c8bbcc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsin.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAsinRequestBuilder struct{ BaseRequestBuilder }
+
+// Asin action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Asin(reqObj *WorkbookFunctionsAsinRequestParameter) *WorkbookFunctionsAsinRequestBuilder {
+ bb := &WorkbookFunctionsAsinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/asin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAsinRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAsinRequestBuilder) Request() *WorkbookFunctionsAsinRequest {
+ return &WorkbookFunctionsAsinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAsinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsinh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsinh.go
new file mode 100644
index 00000000..5ef3c4fe
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAsinh.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAsinhRequestBuilder struct{ BaseRequestBuilder }
+
+// Asinh action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Asinh(reqObj *WorkbookFunctionsAsinhRequestParameter) *WorkbookFunctionsAsinhRequestBuilder {
+ bb := &WorkbookFunctionsAsinhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/asinh"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAsinhRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAsinhRequestBuilder) Request() *WorkbookFunctionsAsinhRequest {
+ return &WorkbookFunctionsAsinhRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAsinhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan.go
new file mode 100644
index 00000000..1d4b7e50
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAtanRequestBuilder struct{ BaseRequestBuilder }
+
+// Atan action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Atan(reqObj *WorkbookFunctionsAtanRequestParameter) *WorkbookFunctionsAtanRequestBuilder {
+ bb := &WorkbookFunctionsAtanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/atan"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAtanRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAtanRequestBuilder) Request() *WorkbookFunctionsAtanRequest {
+ return &WorkbookFunctionsAtanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAtanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan2.go
new file mode 100644
index 00000000..bb0cf4b2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtan2.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAtan2RequestBuilder struct{ BaseRequestBuilder }
+
+// Atan2 action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Atan2(reqObj *WorkbookFunctionsAtan2RequestParameter) *WorkbookFunctionsAtan2RequestBuilder {
+ bb := &WorkbookFunctionsAtan2RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/atan2"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAtan2Request struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAtan2RequestBuilder) Request() *WorkbookFunctionsAtan2Request {
+ return &WorkbookFunctionsAtan2Request{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAtan2Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtanh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtanh.go
new file mode 100644
index 00000000..3a5176da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAtanh.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAtanhRequestBuilder struct{ BaseRequestBuilder }
+
+// Atanh action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Atanh(reqObj *WorkbookFunctionsAtanhRequestParameter) *WorkbookFunctionsAtanhRequestBuilder {
+ bb := &WorkbookFunctionsAtanhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/atanh"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAtanhRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAtanhRequestBuilder) Request() *WorkbookFunctionsAtanhRequest {
+ return &WorkbookFunctionsAtanhRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAtanhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAve.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAve.go
new file mode 100644
index 00000000..4b7ce1e8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAve.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAveDevRequestBuilder struct{ BaseRequestBuilder }
+
+// AveDev action undocumented
+func (b *WorkbookFunctionsRequestBuilder) AveDev(reqObj *WorkbookFunctionsAveDevRequestParameter) *WorkbookFunctionsAveDevRequestBuilder {
+ bb := &WorkbookFunctionsAveDevRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/aveDev"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAveDevRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAveDevRequestBuilder) Request() *WorkbookFunctionsAveDevRequest {
+ return &WorkbookFunctionsAveDevRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAveDevRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAverage.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAverage.go
new file mode 100644
index 00000000..442b7bd3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsAverage.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsAverageRequestBuilder struct{ BaseRequestBuilder }
+
+// Average action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Average(reqObj *WorkbookFunctionsAverageRequestParameter) *WorkbookFunctionsAverageRequestBuilder {
+ bb := &WorkbookFunctionsAverageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/average"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAverageRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAverageRequestBuilder) Request() *WorkbookFunctionsAverageRequest {
+ return &WorkbookFunctionsAverageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAverageRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsAverageARequestBuilder struct{ BaseRequestBuilder }
+
+// AverageA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) AverageA(reqObj *WorkbookFunctionsAverageARequestParameter) *WorkbookFunctionsAverageARequestBuilder {
+ bb := &WorkbookFunctionsAverageARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/averageA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAverageARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAverageARequestBuilder) Request() *WorkbookFunctionsAverageARequest {
+ return &WorkbookFunctionsAverageARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAverageARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsAverageIfRequestBuilder struct{ BaseRequestBuilder }
+
+// AverageIf action undocumented
+func (b *WorkbookFunctionsRequestBuilder) AverageIf(reqObj *WorkbookFunctionsAverageIfRequestParameter) *WorkbookFunctionsAverageIfRequestBuilder {
+ bb := &WorkbookFunctionsAverageIfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/averageIf"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAverageIfRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAverageIfRequestBuilder) Request() *WorkbookFunctionsAverageIfRequest {
+ return &WorkbookFunctionsAverageIfRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAverageIfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsAverageIfsRequestBuilder struct{ BaseRequestBuilder }
+
+// AverageIfs action undocumented
+func (b *WorkbookFunctionsRequestBuilder) AverageIfs(reqObj *WorkbookFunctionsAverageIfsRequestParameter) *WorkbookFunctionsAverageIfsRequestBuilder {
+ bb := &WorkbookFunctionsAverageIfsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/averageIfs"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsAverageIfsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsAverageIfsRequestBuilder) Request() *WorkbookFunctionsAverageIfsRequest {
+ return &WorkbookFunctionsAverageIfsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsAverageIfsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBaht.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBaht.go
new file mode 100644
index 00000000..319c842c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBaht.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBahtTextRequestBuilder struct{ BaseRequestBuilder }
+
+// BahtText action undocumented
+func (b *WorkbookFunctionsRequestBuilder) BahtText(reqObj *WorkbookFunctionsBahtTextRequestParameter) *WorkbookFunctionsBahtTextRequestBuilder {
+ bb := &WorkbookFunctionsBahtTextRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bahtText"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBahtTextRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBahtTextRequestBuilder) Request() *WorkbookFunctionsBahtTextRequest {
+ return &WorkbookFunctionsBahtTextRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBahtTextRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go
new file mode 100644
index 00000000..1c82ae33
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBase.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBaseRequestBuilder struct{ BaseRequestBuilder }
+
+// Base action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Base(reqObj *WorkbookFunctionsBaseRequestParameter) *WorkbookFunctionsBaseRequestBuilder {
+ bb := &WorkbookFunctionsBaseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/base"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBaseRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBaseRequestBuilder) Request() *WorkbookFunctionsBaseRequest {
+ return &WorkbookFunctionsBaseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBaseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go
new file mode 100644
index 00000000..dbe1a623
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBessel.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBesselIRequestBuilder struct{ BaseRequestBuilder }
+
+// BesselI action undocumented
+func (b *WorkbookFunctionsRequestBuilder) BesselI(reqObj *WorkbookFunctionsBesselIRequestParameter) *WorkbookFunctionsBesselIRequestBuilder {
+ bb := &WorkbookFunctionsBesselIRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/besselI"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBesselIRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBesselIRequestBuilder) Request() *WorkbookFunctionsBesselIRequest {
+ return &WorkbookFunctionsBesselIRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBesselIRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsBesselJRequestBuilder struct{ BaseRequestBuilder }
+
+// BesselJ action undocumented
+func (b *WorkbookFunctionsRequestBuilder) BesselJ(reqObj *WorkbookFunctionsBesselJRequestParameter) *WorkbookFunctionsBesselJRequestBuilder {
+ bb := &WorkbookFunctionsBesselJRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/besselJ"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBesselJRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBesselJRequestBuilder) Request() *WorkbookFunctionsBesselJRequest {
+ return &WorkbookFunctionsBesselJRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBesselJRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsBesselKRequestBuilder struct{ BaseRequestBuilder }
+
+// BesselK action undocumented
+func (b *WorkbookFunctionsRequestBuilder) BesselK(reqObj *WorkbookFunctionsBesselKRequestParameter) *WorkbookFunctionsBesselKRequestBuilder {
+ bb := &WorkbookFunctionsBesselKRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/besselK"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBesselKRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBesselKRequestBuilder) Request() *WorkbookFunctionsBesselKRequest {
+ return &WorkbookFunctionsBesselKRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBesselKRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsBesselYRequestBuilder struct{ BaseRequestBuilder }
+
+// BesselY action undocumented
+func (b *WorkbookFunctionsRequestBuilder) BesselY(reqObj *WorkbookFunctionsBesselYRequestParameter) *WorkbookFunctionsBesselYRequestBuilder {
+ bb := &WorkbookFunctionsBesselYRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/besselY"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBesselYRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBesselYRequestBuilder) Request() *WorkbookFunctionsBesselYRequest {
+ return &WorkbookFunctionsBesselYRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBesselYRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBeta_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBeta_.go
new file mode 100644
index 00000000..8fb590ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBeta_.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBeta_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// Beta_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Beta_Dist(reqObj *WorkbookFunctionsBeta_DistRequestParameter) *WorkbookFunctionsBeta_DistRequestBuilder {
+ bb := &WorkbookFunctionsBeta_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/beta_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBeta_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBeta_DistRequestBuilder) Request() *WorkbookFunctionsBeta_DistRequest {
+ return &WorkbookFunctionsBeta_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBeta_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsBeta_InvRequestBuilder struct{ BaseRequestBuilder }
+
+// Beta_Inv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Beta_Inv(reqObj *WorkbookFunctionsBeta_InvRequestParameter) *WorkbookFunctionsBeta_InvRequestBuilder {
+ bb := &WorkbookFunctionsBeta_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/beta_Inv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBeta_InvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBeta_InvRequestBuilder) Request() *WorkbookFunctionsBeta_InvRequest {
+ return &WorkbookFunctionsBeta_InvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBeta_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBin2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBin2.go
new file mode 100644
index 00000000..246221ac
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBin2.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBin2DecRequestBuilder struct{ BaseRequestBuilder }
+
+// Bin2Dec action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Bin2Dec(reqObj *WorkbookFunctionsBin2DecRequestParameter) *WorkbookFunctionsBin2DecRequestBuilder {
+ bb := &WorkbookFunctionsBin2DecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bin2Dec"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBin2DecRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBin2DecRequestBuilder) Request() *WorkbookFunctionsBin2DecRequest {
+ return &WorkbookFunctionsBin2DecRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBin2DecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsBin2HexRequestBuilder struct{ BaseRequestBuilder }
+
+// Bin2Hex action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Bin2Hex(reqObj *WorkbookFunctionsBin2HexRequestParameter) *WorkbookFunctionsBin2HexRequestBuilder {
+ bb := &WorkbookFunctionsBin2HexRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bin2Hex"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBin2HexRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBin2HexRequestBuilder) Request() *WorkbookFunctionsBin2HexRequest {
+ return &WorkbookFunctionsBin2HexRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBin2HexRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsBin2OctRequestBuilder struct{ BaseRequestBuilder }
+
+// Bin2Oct action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Bin2Oct(reqObj *WorkbookFunctionsBin2OctRequestParameter) *WorkbookFunctionsBin2OctRequestBuilder {
+ bb := &WorkbookFunctionsBin2OctRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bin2Oct"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBin2OctRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBin2OctRequestBuilder) Request() *WorkbookFunctionsBin2OctRequest {
+ return &WorkbookFunctionsBin2OctRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBin2OctRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBinom_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBinom_.go
new file mode 100644
index 00000000..9a8618ee
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBinom_.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBinom_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// Binom_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Binom_Dist(reqObj *WorkbookFunctionsBinom_DistRequestParameter) *WorkbookFunctionsBinom_DistRequestBuilder {
+ bb := &WorkbookFunctionsBinom_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/binom_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBinom_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBinom_DistRequestBuilder) Request() *WorkbookFunctionsBinom_DistRequest {
+ return &WorkbookFunctionsBinom_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBinom_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsBinom_Dist_RangeRequestBuilder struct{ BaseRequestBuilder }
+
+// Binom_Dist_Range action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Binom_Dist_Range(reqObj *WorkbookFunctionsBinom_Dist_RangeRequestParameter) *WorkbookFunctionsBinom_Dist_RangeRequestBuilder {
+ bb := &WorkbookFunctionsBinom_Dist_RangeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/binom_Dist_Range"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBinom_Dist_RangeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBinom_Dist_RangeRequestBuilder) Request() *WorkbookFunctionsBinom_Dist_RangeRequest {
+ return &WorkbookFunctionsBinom_Dist_RangeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBinom_Dist_RangeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsBinom_InvRequestBuilder struct{ BaseRequestBuilder }
+
+// Binom_Inv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Binom_Inv(reqObj *WorkbookFunctionsBinom_InvRequestParameter) *WorkbookFunctionsBinom_InvRequestBuilder {
+ bb := &WorkbookFunctionsBinom_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/binom_Inv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBinom_InvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBinom_InvRequestBuilder) Request() *WorkbookFunctionsBinom_InvRequest {
+ return &WorkbookFunctionsBinom_InvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBinom_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitand.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitand.go
new file mode 100644
index 00000000..9f65036f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitand.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBitandRequestBuilder struct{ BaseRequestBuilder }
+
+// Bitand action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Bitand(reqObj *WorkbookFunctionsBitandRequestParameter) *WorkbookFunctionsBitandRequestBuilder {
+ bb := &WorkbookFunctionsBitandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bitand"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBitandRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBitandRequestBuilder) Request() *WorkbookFunctionsBitandRequest {
+ return &WorkbookFunctionsBitandRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBitandRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitlshift.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitlshift.go
new file mode 100644
index 00000000..adee0b2e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitlshift.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBitlshiftRequestBuilder struct{ BaseRequestBuilder }
+
+// Bitlshift action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Bitlshift(reqObj *WorkbookFunctionsBitlshiftRequestParameter) *WorkbookFunctionsBitlshiftRequestBuilder {
+ bb := &WorkbookFunctionsBitlshiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bitlshift"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBitlshiftRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBitlshiftRequestBuilder) Request() *WorkbookFunctionsBitlshiftRequest {
+ return &WorkbookFunctionsBitlshiftRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBitlshiftRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitor.go
new file mode 100644
index 00000000..783d5711
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitor.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBitorRequestBuilder struct{ BaseRequestBuilder }
+
+// Bitor action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Bitor(reqObj *WorkbookFunctionsBitorRequestParameter) *WorkbookFunctionsBitorRequestBuilder {
+ bb := &WorkbookFunctionsBitorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bitor"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBitorRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBitorRequestBuilder) Request() *WorkbookFunctionsBitorRequest {
+ return &WorkbookFunctionsBitorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBitorRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitrshift.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitrshift.go
new file mode 100644
index 00000000..cccb26e4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitrshift.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBitrshiftRequestBuilder struct{ BaseRequestBuilder }
+
+// Bitrshift action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Bitrshift(reqObj *WorkbookFunctionsBitrshiftRequestParameter) *WorkbookFunctionsBitrshiftRequestBuilder {
+ bb := &WorkbookFunctionsBitrshiftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bitrshift"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBitrshiftRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBitrshiftRequestBuilder) Request() *WorkbookFunctionsBitrshiftRequest {
+ return &WorkbookFunctionsBitrshiftRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBitrshiftRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitxor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitxor.go
new file mode 100644
index 00000000..bf310030
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsBitxor.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsBitxorRequestBuilder struct{ BaseRequestBuilder }
+
+// Bitxor action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Bitxor(reqObj *WorkbookFunctionsBitxorRequestParameter) *WorkbookFunctionsBitxorRequestBuilder {
+ bb := &WorkbookFunctionsBitxorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/bitxor"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsBitxorRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsBitxorRequestBuilder) Request() *WorkbookFunctionsBitxorRequest {
+ return &WorkbookFunctionsBitxorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsBitxorRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCeiling_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCeiling_.go
new file mode 100644
index 00000000..79222fde
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCeiling_.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCeiling_MathRequestBuilder struct{ BaseRequestBuilder }
+
+// Ceiling_Math action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Ceiling_Math(reqObj *WorkbookFunctionsCeiling_MathRequestParameter) *WorkbookFunctionsCeiling_MathRequestBuilder {
+ bb := &WorkbookFunctionsCeiling_MathRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/ceiling_Math"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCeiling_MathRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCeiling_MathRequestBuilder) Request() *WorkbookFunctionsCeiling_MathRequest {
+ return &WorkbookFunctionsCeiling_MathRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCeiling_MathRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCeiling_PreciseRequestBuilder struct{ BaseRequestBuilder }
+
+// Ceiling_Precise action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Ceiling_Precise(reqObj *WorkbookFunctionsCeiling_PreciseRequestParameter) *WorkbookFunctionsCeiling_PreciseRequestBuilder {
+ bb := &WorkbookFunctionsCeiling_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/ceiling_Precise"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCeiling_PreciseRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCeiling_PreciseRequestBuilder) Request() *WorkbookFunctionsCeiling_PreciseRequest {
+ return &WorkbookFunctionsCeiling_PreciseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCeiling_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChar.go
new file mode 100644
index 00000000..fd85809b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChar.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCharRequestBuilder struct{ BaseRequestBuilder }
+
+// Char action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Char(reqObj *WorkbookFunctionsCharRequestParameter) *WorkbookFunctionsCharRequestBuilder {
+ bb := &WorkbookFunctionsCharRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/char"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCharRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCharRequestBuilder) Request() *WorkbookFunctionsCharRequest {
+ return &WorkbookFunctionsCharRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCharRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChi.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChi.go
new file mode 100644
index 00000000..71f1e138
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChi.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsChiSq_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// ChiSq_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ChiSq_Dist(reqObj *WorkbookFunctionsChiSq_DistRequestParameter) *WorkbookFunctionsChiSq_DistRequestBuilder {
+ bb := &WorkbookFunctionsChiSq_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/chiSq_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsChiSq_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsChiSq_DistRequestBuilder) Request() *WorkbookFunctionsChiSq_DistRequest {
+ return &WorkbookFunctionsChiSq_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsChiSq_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsChiSq_Dist_RTRequestBuilder struct{ BaseRequestBuilder }
+
+// ChiSq_Dist_RT action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ChiSq_Dist_RT(reqObj *WorkbookFunctionsChiSq_Dist_RTRequestParameter) *WorkbookFunctionsChiSq_Dist_RTRequestBuilder {
+ bb := &WorkbookFunctionsChiSq_Dist_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/chiSq_Dist_RT"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsChiSq_Dist_RTRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsChiSq_Dist_RTRequestBuilder) Request() *WorkbookFunctionsChiSq_Dist_RTRequest {
+ return &WorkbookFunctionsChiSq_Dist_RTRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsChiSq_Dist_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsChiSq_InvRequestBuilder struct{ BaseRequestBuilder }
+
+// ChiSq_Inv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ChiSq_Inv(reqObj *WorkbookFunctionsChiSq_InvRequestParameter) *WorkbookFunctionsChiSq_InvRequestBuilder {
+ bb := &WorkbookFunctionsChiSq_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/chiSq_Inv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsChiSq_InvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsChiSq_InvRequestBuilder) Request() *WorkbookFunctionsChiSq_InvRequest {
+ return &WorkbookFunctionsChiSq_InvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsChiSq_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsChiSq_Inv_RTRequestBuilder struct{ BaseRequestBuilder }
+
+// ChiSq_Inv_RT action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ChiSq_Inv_RT(reqObj *WorkbookFunctionsChiSq_Inv_RTRequestParameter) *WorkbookFunctionsChiSq_Inv_RTRequestBuilder {
+ bb := &WorkbookFunctionsChiSq_Inv_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/chiSq_Inv_RT"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsChiSq_Inv_RTRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsChiSq_Inv_RTRequestBuilder) Request() *WorkbookFunctionsChiSq_Inv_RTRequest {
+ return &WorkbookFunctionsChiSq_Inv_RTRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsChiSq_Inv_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChoose.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChoose.go
new file mode 100644
index 00000000..a5019aec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsChoose.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsChooseRequestBuilder struct{ BaseRequestBuilder }
+
+// Choose action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Choose(reqObj *WorkbookFunctionsChooseRequestParameter) *WorkbookFunctionsChooseRequestBuilder {
+ bb := &WorkbookFunctionsChooseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/choose"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsChooseRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsChooseRequestBuilder) Request() *WorkbookFunctionsChooseRequest {
+ return &WorkbookFunctionsChooseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsChooseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsClean.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsClean.go
new file mode 100644
index 00000000..cc058905
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsClean.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCleanRequestBuilder struct{ BaseRequestBuilder }
+
+// Clean action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Clean(reqObj *WorkbookFunctionsCleanRequestParameter) *WorkbookFunctionsCleanRequestBuilder {
+ bb := &WorkbookFunctionsCleanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/clean"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCleanRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCleanRequestBuilder) Request() *WorkbookFunctionsCleanRequest {
+ return &WorkbookFunctionsCleanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCleanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCode.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCode.go
new file mode 100644
index 00000000..943c0ee6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCode.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCodeRequestBuilder struct{ BaseRequestBuilder }
+
+// Code action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Code(reqObj *WorkbookFunctionsCodeRequestParameter) *WorkbookFunctionsCodeRequestBuilder {
+ bb := &WorkbookFunctionsCodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/code"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCodeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCodeRequestBuilder) Request() *WorkbookFunctionsCodeRequest {
+ return &WorkbookFunctionsCodeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCodeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsColumns.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsColumns.go
new file mode 100644
index 00000000..1feea1e5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsColumns.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsColumnsRequestBuilder struct{ BaseRequestBuilder }
+
+// Columns action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Columns(reqObj *WorkbookFunctionsColumnsRequestParameter) *WorkbookFunctionsColumnsRequestBuilder {
+ bb := &WorkbookFunctionsColumnsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/columns"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsColumnsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsColumnsRequestBuilder) Request() *WorkbookFunctionsColumnsRequest {
+ return &WorkbookFunctionsColumnsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsColumnsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombin.go
new file mode 100644
index 00000000..6ef3bfae
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombin.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCombinRequestBuilder struct{ BaseRequestBuilder }
+
+// Combin action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Combin(reqObj *WorkbookFunctionsCombinRequestParameter) *WorkbookFunctionsCombinRequestBuilder {
+ bb := &WorkbookFunctionsCombinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/combin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCombinRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCombinRequestBuilder) Request() *WorkbookFunctionsCombinRequest {
+ return &WorkbookFunctionsCombinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCombinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombina.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombina.go
new file mode 100644
index 00000000..d6f238e5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCombina.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCombinaRequestBuilder struct{ BaseRequestBuilder }
+
+// Combina action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Combina(reqObj *WorkbookFunctionsCombinaRequestParameter) *WorkbookFunctionsCombinaRequestBuilder {
+ bb := &WorkbookFunctionsCombinaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/combina"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCombinaRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCombinaRequestBuilder) Request() *WorkbookFunctionsCombinaRequest {
+ return &WorkbookFunctionsCombinaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCombinaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsComplex.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsComplex.go
new file mode 100644
index 00000000..c09c37db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsComplex.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsComplexRequestBuilder struct{ BaseRequestBuilder }
+
+// Complex action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Complex(reqObj *WorkbookFunctionsComplexRequestParameter) *WorkbookFunctionsComplexRequestBuilder {
+ bb := &WorkbookFunctionsComplexRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/complex"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsComplexRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsComplexRequestBuilder) Request() *WorkbookFunctionsComplexRequest {
+ return &WorkbookFunctionsComplexRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsComplexRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConcatenate.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConcatenate.go
new file mode 100644
index 00000000..f50086a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConcatenate.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsConcatenateRequestBuilder struct{ BaseRequestBuilder }
+
+// Concatenate action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Concatenate(reqObj *WorkbookFunctionsConcatenateRequestParameter) *WorkbookFunctionsConcatenateRequestBuilder {
+ bb := &WorkbookFunctionsConcatenateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/concatenate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsConcatenateRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsConcatenateRequestBuilder) Request() *WorkbookFunctionsConcatenateRequest {
+ return &WorkbookFunctionsConcatenateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsConcatenateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConfidence_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConfidence_.go
new file mode 100644
index 00000000..fd62c985
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConfidence_.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsConfidence_NormRequestBuilder struct{ BaseRequestBuilder }
+
+// Confidence_Norm action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Confidence_Norm(reqObj *WorkbookFunctionsConfidence_NormRequestParameter) *WorkbookFunctionsConfidence_NormRequestBuilder {
+ bb := &WorkbookFunctionsConfidence_NormRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/confidence_Norm"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsConfidence_NormRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsConfidence_NormRequestBuilder) Request() *WorkbookFunctionsConfidence_NormRequest {
+ return &WorkbookFunctionsConfidence_NormRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsConfidence_NormRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsConfidence_TRequestBuilder struct{ BaseRequestBuilder }
+
+// Confidence_T action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Confidence_T(reqObj *WorkbookFunctionsConfidence_TRequestParameter) *WorkbookFunctionsConfidence_TRequestBuilder {
+ bb := &WorkbookFunctionsConfidence_TRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/confidence_T"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsConfidence_TRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsConfidence_TRequestBuilder) Request() *WorkbookFunctionsConfidence_TRequest {
+ return &WorkbookFunctionsConfidence_TRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsConfidence_TRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConvert.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConvert.go
new file mode 100644
index 00000000..ecc8d197
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsConvert.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsConvertRequestBuilder struct{ BaseRequestBuilder }
+
+// Convert action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Convert(reqObj *WorkbookFunctionsConvertRequestParameter) *WorkbookFunctionsConvertRequestBuilder {
+ bb := &WorkbookFunctionsConvertRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/convert"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsConvertRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsConvertRequestBuilder) Request() *WorkbookFunctionsConvertRequest {
+ return &WorkbookFunctionsConvertRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsConvertRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCos.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCos.go
new file mode 100644
index 00000000..9fb77382
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCos.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCosRequestBuilder struct{ BaseRequestBuilder }
+
+// Cos action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Cos(reqObj *WorkbookFunctionsCosRequestParameter) *WorkbookFunctionsCosRequestBuilder {
+ bb := &WorkbookFunctionsCosRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cos"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCosRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCosRequestBuilder) Request() *WorkbookFunctionsCosRequest {
+ return &WorkbookFunctionsCosRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCosRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCosh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCosh.go
new file mode 100644
index 00000000..034ed2f0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCosh.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCoshRequestBuilder struct{ BaseRequestBuilder }
+
+// Cosh action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Cosh(reqObj *WorkbookFunctionsCoshRequestParameter) *WorkbookFunctionsCoshRequestBuilder {
+ bb := &WorkbookFunctionsCoshRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cosh"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCoshRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCoshRequestBuilder) Request() *WorkbookFunctionsCoshRequest {
+ return &WorkbookFunctionsCoshRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCoshRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCot.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCot.go
new file mode 100644
index 00000000..c525ded5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCot.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCotRequestBuilder struct{ BaseRequestBuilder }
+
+// Cot action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Cot(reqObj *WorkbookFunctionsCotRequestParameter) *WorkbookFunctionsCotRequestBuilder {
+ bb := &WorkbookFunctionsCotRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cot"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCotRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCotRequestBuilder) Request() *WorkbookFunctionsCotRequest {
+ return &WorkbookFunctionsCotRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCotRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoth.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoth.go
new file mode 100644
index 00000000..3e3cf4c3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoth.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCothRequestBuilder struct{ BaseRequestBuilder }
+
+// Coth action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Coth(reqObj *WorkbookFunctionsCothRequestParameter) *WorkbookFunctionsCothRequestBuilder {
+ bb := &WorkbookFunctionsCothRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/coth"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCothRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCothRequestBuilder) Request() *WorkbookFunctionsCothRequest {
+ return &WorkbookFunctionsCothRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCothRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCount.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCount.go
new file mode 100644
index 00000000..268ca5fa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCount.go
@@ -0,0 +1,140 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCountRequestBuilder struct{ BaseRequestBuilder }
+
+// Count action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Count(reqObj *WorkbookFunctionsCountRequestParameter) *WorkbookFunctionsCountRequestBuilder {
+ bb := &WorkbookFunctionsCountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/count"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCountRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCountRequestBuilder) Request() *WorkbookFunctionsCountRequest {
+ return &WorkbookFunctionsCountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCountRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCountARequestBuilder struct{ BaseRequestBuilder }
+
+// CountA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CountA(reqObj *WorkbookFunctionsCountARequestParameter) *WorkbookFunctionsCountARequestBuilder {
+ bb := &WorkbookFunctionsCountARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/countA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCountARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCountARequestBuilder) Request() *WorkbookFunctionsCountARequest {
+ return &WorkbookFunctionsCountARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCountARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCountBlankRequestBuilder struct{ BaseRequestBuilder }
+
+// CountBlank action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CountBlank(reqObj *WorkbookFunctionsCountBlankRequestParameter) *WorkbookFunctionsCountBlankRequestBuilder {
+ bb := &WorkbookFunctionsCountBlankRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/countBlank"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCountBlankRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCountBlankRequestBuilder) Request() *WorkbookFunctionsCountBlankRequest {
+ return &WorkbookFunctionsCountBlankRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCountBlankRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCountIfRequestBuilder struct{ BaseRequestBuilder }
+
+// CountIf action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CountIf(reqObj *WorkbookFunctionsCountIfRequestParameter) *WorkbookFunctionsCountIfRequestBuilder {
+ bb := &WorkbookFunctionsCountIfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/countIf"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCountIfRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCountIfRequestBuilder) Request() *WorkbookFunctionsCountIfRequest {
+ return &WorkbookFunctionsCountIfRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCountIfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCountIfsRequestBuilder struct{ BaseRequestBuilder }
+
+// CountIfs action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CountIfs(reqObj *WorkbookFunctionsCountIfsRequestParameter) *WorkbookFunctionsCountIfsRequestBuilder {
+ bb := &WorkbookFunctionsCountIfsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/countIfs"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCountIfsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCountIfsRequestBuilder) Request() *WorkbookFunctionsCountIfsRequest {
+ return &WorkbookFunctionsCountIfsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCountIfsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoup.go
new file mode 100644
index 00000000..f012e035
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCoup.go
@@ -0,0 +1,167 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCoupDayBsRequestBuilder struct{ BaseRequestBuilder }
+
+// CoupDayBs action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CoupDayBs(reqObj *WorkbookFunctionsCoupDayBsRequestParameter) *WorkbookFunctionsCoupDayBsRequestBuilder {
+ bb := &WorkbookFunctionsCoupDayBsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/coupDayBs"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCoupDayBsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCoupDayBsRequestBuilder) Request() *WorkbookFunctionsCoupDayBsRequest {
+ return &WorkbookFunctionsCoupDayBsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCoupDayBsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCoupDaysRequestBuilder struct{ BaseRequestBuilder }
+
+// CoupDays action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CoupDays(reqObj *WorkbookFunctionsCoupDaysRequestParameter) *WorkbookFunctionsCoupDaysRequestBuilder {
+ bb := &WorkbookFunctionsCoupDaysRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/coupDays"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCoupDaysRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCoupDaysRequestBuilder) Request() *WorkbookFunctionsCoupDaysRequest {
+ return &WorkbookFunctionsCoupDaysRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCoupDaysRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCoupDaysNcRequestBuilder struct{ BaseRequestBuilder }
+
+// CoupDaysNc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CoupDaysNc(reqObj *WorkbookFunctionsCoupDaysNcRequestParameter) *WorkbookFunctionsCoupDaysNcRequestBuilder {
+ bb := &WorkbookFunctionsCoupDaysNcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/coupDaysNc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCoupDaysNcRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCoupDaysNcRequestBuilder) Request() *WorkbookFunctionsCoupDaysNcRequest {
+ return &WorkbookFunctionsCoupDaysNcRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCoupDaysNcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCoupNcdRequestBuilder struct{ BaseRequestBuilder }
+
+// CoupNcd action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CoupNcd(reqObj *WorkbookFunctionsCoupNcdRequestParameter) *WorkbookFunctionsCoupNcdRequestBuilder {
+ bb := &WorkbookFunctionsCoupNcdRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/coupNcd"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCoupNcdRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCoupNcdRequestBuilder) Request() *WorkbookFunctionsCoupNcdRequest {
+ return &WorkbookFunctionsCoupNcdRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCoupNcdRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCoupNumRequestBuilder struct{ BaseRequestBuilder }
+
+// CoupNum action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CoupNum(reqObj *WorkbookFunctionsCoupNumRequestParameter) *WorkbookFunctionsCoupNumRequestBuilder {
+ bb := &WorkbookFunctionsCoupNumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/coupNum"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCoupNumRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCoupNumRequestBuilder) Request() *WorkbookFunctionsCoupNumRequest {
+ return &WorkbookFunctionsCoupNumRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCoupNumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCoupPcdRequestBuilder struct{ BaseRequestBuilder }
+
+// CoupPcd action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CoupPcd(reqObj *WorkbookFunctionsCoupPcdRequestParameter) *WorkbookFunctionsCoupPcdRequestBuilder {
+ bb := &WorkbookFunctionsCoupPcdRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/coupPcd"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCoupPcdRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCoupPcdRequestBuilder) Request() *WorkbookFunctionsCoupPcdRequest {
+ return &WorkbookFunctionsCoupPcdRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCoupPcdRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsc.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsc.go
new file mode 100644
index 00000000..e61aeddc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsc.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCscRequestBuilder struct{ BaseRequestBuilder }
+
+// Csc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Csc(reqObj *WorkbookFunctionsCscRequestParameter) *WorkbookFunctionsCscRequestBuilder {
+ bb := &WorkbookFunctionsCscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/csc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCscRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCscRequestBuilder) Request() *WorkbookFunctionsCscRequest {
+ return &WorkbookFunctionsCscRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsch.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsch.go
new file mode 100644
index 00000000..84308a81
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCsch.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCschRequestBuilder struct{ BaseRequestBuilder }
+
+// Csch action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Csch(reqObj *WorkbookFunctionsCschRequestParameter) *WorkbookFunctionsCschRequestBuilder {
+ bb := &WorkbookFunctionsCschRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/csch"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCschRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCschRequestBuilder) Request() *WorkbookFunctionsCschRequest {
+ return &WorkbookFunctionsCschRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCschRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCum.go
new file mode 100644
index 00000000..052f5d1c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsCum.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsCumIPmtRequestBuilder struct{ BaseRequestBuilder }
+
+// CumIPmt action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CumIPmt(reqObj *WorkbookFunctionsCumIPmtRequestParameter) *WorkbookFunctionsCumIPmtRequestBuilder {
+ bb := &WorkbookFunctionsCumIPmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cumIPmt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCumIPmtRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCumIPmtRequestBuilder) Request() *WorkbookFunctionsCumIPmtRequest {
+ return &WorkbookFunctionsCumIPmtRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCumIPmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsCumPrincRequestBuilder struct{ BaseRequestBuilder }
+
+// CumPrinc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) CumPrinc(reqObj *WorkbookFunctionsCumPrincRequestParameter) *WorkbookFunctionsCumPrincRequestBuilder {
+ bb := &WorkbookFunctionsCumPrincRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/cumPrinc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsCumPrincRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsCumPrincRequestBuilder) Request() *WorkbookFunctionsCumPrincRequest {
+ return &WorkbookFunctionsCumPrincRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsCumPrincRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDate.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDate.go
new file mode 100644
index 00000000..29c3d611
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDate.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDateRequestBuilder struct{ BaseRequestBuilder }
+
+// Date action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Date(reqObj *WorkbookFunctionsDateRequestParameter) *WorkbookFunctionsDateRequestBuilder {
+ bb := &WorkbookFunctionsDateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/date"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDateRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDateRequestBuilder) Request() *WorkbookFunctionsDateRequest {
+ return &WorkbookFunctionsDateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDatevalue.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDatevalue.go
new file mode 100644
index 00000000..1823f2d4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDatevalue.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDatevalueRequestBuilder struct{ BaseRequestBuilder }
+
+// Datevalue action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Datevalue(reqObj *WorkbookFunctionsDatevalueRequestParameter) *WorkbookFunctionsDatevalueRequestBuilder {
+ bb := &WorkbookFunctionsDatevalueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/datevalue"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDatevalueRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDatevalueRequestBuilder) Request() *WorkbookFunctionsDatevalueRequest {
+ return &WorkbookFunctionsDatevalueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDatevalueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDaverage.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDaverage.go
new file mode 100644
index 00000000..597a62cf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDaverage.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDaverageRequestBuilder struct{ BaseRequestBuilder }
+
+// Daverage action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Daverage(reqObj *WorkbookFunctionsDaverageRequestParameter) *WorkbookFunctionsDaverageRequestBuilder {
+ bb := &WorkbookFunctionsDaverageRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/daverage"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDaverageRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDaverageRequestBuilder) Request() *WorkbookFunctionsDaverageRequest {
+ return &WorkbookFunctionsDaverageRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDaverageRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDay.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDay.go
new file mode 100644
index 00000000..4ded07fd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDay.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDayRequestBuilder struct{ BaseRequestBuilder }
+
+// Day action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Day(reqObj *WorkbookFunctionsDayRequestParameter) *WorkbookFunctionsDayRequestBuilder {
+ bb := &WorkbookFunctionsDayRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/day"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDayRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDayRequestBuilder) Request() *WorkbookFunctionsDayRequest {
+ return &WorkbookFunctionsDayRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDayRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays.go
new file mode 100644
index 00000000..89b842ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDaysRequestBuilder struct{ BaseRequestBuilder }
+
+// Days action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Days(reqObj *WorkbookFunctionsDaysRequestParameter) *WorkbookFunctionsDaysRequestBuilder {
+ bb := &WorkbookFunctionsDaysRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/days"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDaysRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDaysRequestBuilder) Request() *WorkbookFunctionsDaysRequest {
+ return &WorkbookFunctionsDaysRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDaysRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays360.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays360.go
new file mode 100644
index 00000000..97a1c040
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDays360.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDays360RequestBuilder struct{ BaseRequestBuilder }
+
+// Days360 action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Days360(reqObj *WorkbookFunctionsDays360RequestParameter) *WorkbookFunctionsDays360RequestBuilder {
+ bb := &WorkbookFunctionsDays360RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/days360"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDays360Request struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDays360RequestBuilder) Request() *WorkbookFunctionsDays360Request {
+ return &WorkbookFunctionsDays360Request{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDays360Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDb.go
new file mode 100644
index 00000000..223ba861
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDb.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDbRequestBuilder struct{ BaseRequestBuilder }
+
+// Db action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Db(reqObj *WorkbookFunctionsDbRequestParameter) *WorkbookFunctionsDbRequestBuilder {
+ bb := &WorkbookFunctionsDbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/db"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDbRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDbRequestBuilder) Request() *WorkbookFunctionsDbRequest {
+ return &WorkbookFunctionsDbRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDbcs.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDbcs.go
new file mode 100644
index 00000000..5b9c4784
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDbcs.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDbcsRequestBuilder struct{ BaseRequestBuilder }
+
+// Dbcs action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dbcs(reqObj *WorkbookFunctionsDbcsRequestParameter) *WorkbookFunctionsDbcsRequestBuilder {
+ bb := &WorkbookFunctionsDbcsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dbcs"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDbcsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDbcsRequestBuilder) Request() *WorkbookFunctionsDbcsRequest {
+ return &WorkbookFunctionsDbcsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDbcsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDcount.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDcount.go
new file mode 100644
index 00000000..74d81dec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDcount.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDcountRequestBuilder struct{ BaseRequestBuilder }
+
+// Dcount action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dcount(reqObj *WorkbookFunctionsDcountRequestParameter) *WorkbookFunctionsDcountRequestBuilder {
+ bb := &WorkbookFunctionsDcountRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dcount"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDcountRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDcountRequestBuilder) Request() *WorkbookFunctionsDcountRequest {
+ return &WorkbookFunctionsDcountRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDcountRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsDcountARequestBuilder struct{ BaseRequestBuilder }
+
+// DcountA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) DcountA(reqObj *WorkbookFunctionsDcountARequestParameter) *WorkbookFunctionsDcountARequestBuilder {
+ bb := &WorkbookFunctionsDcountARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dcountA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDcountARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDcountARequestBuilder) Request() *WorkbookFunctionsDcountARequest {
+ return &WorkbookFunctionsDcountARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDcountARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDdb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDdb.go
new file mode 100644
index 00000000..e5d4566a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDdb.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDdbRequestBuilder struct{ BaseRequestBuilder }
+
+// Ddb action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Ddb(reqObj *WorkbookFunctionsDdbRequestParameter) *WorkbookFunctionsDdbRequestBuilder {
+ bb := &WorkbookFunctionsDdbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/ddb"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDdbRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDdbRequestBuilder) Request() *WorkbookFunctionsDdbRequest {
+ return &WorkbookFunctionsDdbRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDdbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDec2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDec2.go
new file mode 100644
index 00000000..6735a51e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDec2.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDec2BinRequestBuilder struct{ BaseRequestBuilder }
+
+// Dec2Bin action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dec2Bin(reqObj *WorkbookFunctionsDec2BinRequestParameter) *WorkbookFunctionsDec2BinRequestBuilder {
+ bb := &WorkbookFunctionsDec2BinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dec2Bin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDec2BinRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDec2BinRequestBuilder) Request() *WorkbookFunctionsDec2BinRequest {
+ return &WorkbookFunctionsDec2BinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDec2BinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsDec2HexRequestBuilder struct{ BaseRequestBuilder }
+
+// Dec2Hex action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dec2Hex(reqObj *WorkbookFunctionsDec2HexRequestParameter) *WorkbookFunctionsDec2HexRequestBuilder {
+ bb := &WorkbookFunctionsDec2HexRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dec2Hex"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDec2HexRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDec2HexRequestBuilder) Request() *WorkbookFunctionsDec2HexRequest {
+ return &WorkbookFunctionsDec2HexRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDec2HexRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsDec2OctRequestBuilder struct{ BaseRequestBuilder }
+
+// Dec2Oct action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dec2Oct(reqObj *WorkbookFunctionsDec2OctRequestParameter) *WorkbookFunctionsDec2OctRequestBuilder {
+ bb := &WorkbookFunctionsDec2OctRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dec2Oct"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDec2OctRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDec2OctRequestBuilder) Request() *WorkbookFunctionsDec2OctRequest {
+ return &WorkbookFunctionsDec2OctRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDec2OctRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDecimal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDecimal.go
new file mode 100644
index 00000000..d4711bf4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDecimal.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDecimalRequestBuilder struct{ BaseRequestBuilder }
+
+// Decimal action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Decimal(reqObj *WorkbookFunctionsDecimalRequestParameter) *WorkbookFunctionsDecimalRequestBuilder {
+ bb := &WorkbookFunctionsDecimalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/decimal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDecimalRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDecimalRequestBuilder) Request() *WorkbookFunctionsDecimalRequest {
+ return &WorkbookFunctionsDecimalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDecimalRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDegrees.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDegrees.go
new file mode 100644
index 00000000..3d25a9ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDegrees.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDegreesRequestBuilder struct{ BaseRequestBuilder }
+
+// Degrees action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Degrees(reqObj *WorkbookFunctionsDegreesRequestParameter) *WorkbookFunctionsDegreesRequestBuilder {
+ bb := &WorkbookFunctionsDegreesRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/degrees"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDegreesRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDegreesRequestBuilder) Request() *WorkbookFunctionsDegreesRequest {
+ return &WorkbookFunctionsDegreesRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDegreesRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDelta.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDelta.go
new file mode 100644
index 00000000..3eba64a7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDelta.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDeltaRequestBuilder struct{ BaseRequestBuilder }
+
+// Delta action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Delta(reqObj *WorkbookFunctionsDeltaRequestParameter) *WorkbookFunctionsDeltaRequestBuilder {
+ bb := &WorkbookFunctionsDeltaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/delta"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDeltaRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDeltaRequestBuilder) Request() *WorkbookFunctionsDeltaRequest {
+ return &WorkbookFunctionsDeltaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDeltaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDev.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDev.go
new file mode 100644
index 00000000..0a9e54ea
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDev.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDevSqRequestBuilder struct{ BaseRequestBuilder }
+
+// DevSq action undocumented
+func (b *WorkbookFunctionsRequestBuilder) DevSq(reqObj *WorkbookFunctionsDevSqRequestParameter) *WorkbookFunctionsDevSqRequestBuilder {
+ bb := &WorkbookFunctionsDevSqRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/devSq"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDevSqRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDevSqRequestBuilder) Request() *WorkbookFunctionsDevSqRequest {
+ return &WorkbookFunctionsDevSqRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDevSqRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDget.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDget.go
new file mode 100644
index 00000000..fcbd1bcc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDget.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDgetRequestBuilder struct{ BaseRequestBuilder }
+
+// Dget action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dget(reqObj *WorkbookFunctionsDgetRequestParameter) *WorkbookFunctionsDgetRequestBuilder {
+ bb := &WorkbookFunctionsDgetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dget"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDgetRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDgetRequestBuilder) Request() *WorkbookFunctionsDgetRequest {
+ return &WorkbookFunctionsDgetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDgetRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDisc.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDisc.go
new file mode 100644
index 00000000..80ed0d9b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDisc.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDiscRequestBuilder struct{ BaseRequestBuilder }
+
+// Disc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Disc(reqObj *WorkbookFunctionsDiscRequestParameter) *WorkbookFunctionsDiscRequestBuilder {
+ bb := &WorkbookFunctionsDiscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/disc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDiscRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDiscRequestBuilder) Request() *WorkbookFunctionsDiscRequest {
+ return &WorkbookFunctionsDiscRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDiscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmax.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmax.go
new file mode 100644
index 00000000..f28ac3e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmax.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDmaxRequestBuilder struct{ BaseRequestBuilder }
+
+// Dmax action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dmax(reqObj *WorkbookFunctionsDmaxRequestParameter) *WorkbookFunctionsDmaxRequestBuilder {
+ bb := &WorkbookFunctionsDmaxRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dmax"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDmaxRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDmaxRequestBuilder) Request() *WorkbookFunctionsDmaxRequest {
+ return &WorkbookFunctionsDmaxRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDmaxRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmin.go
new file mode 100644
index 00000000..3fe32a26
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDmin.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDminRequestBuilder struct{ BaseRequestBuilder }
+
+// Dmin action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dmin(reqObj *WorkbookFunctionsDminRequestParameter) *WorkbookFunctionsDminRequestBuilder {
+ bb := &WorkbookFunctionsDminRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dmin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDminRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDminRequestBuilder) Request() *WorkbookFunctionsDminRequest {
+ return &WorkbookFunctionsDminRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDminRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDollar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDollar.go
new file mode 100644
index 00000000..a6c4698a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDollar.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDollarRequestBuilder struct{ BaseRequestBuilder }
+
+// Dollar action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dollar(reqObj *WorkbookFunctionsDollarRequestParameter) *WorkbookFunctionsDollarRequestBuilder {
+ bb := &WorkbookFunctionsDollarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dollar"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDollarRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDollarRequestBuilder) Request() *WorkbookFunctionsDollarRequest {
+ return &WorkbookFunctionsDollarRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDollarRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsDollarDeRequestBuilder struct{ BaseRequestBuilder }
+
+// DollarDe action undocumented
+func (b *WorkbookFunctionsRequestBuilder) DollarDe(reqObj *WorkbookFunctionsDollarDeRequestParameter) *WorkbookFunctionsDollarDeRequestBuilder {
+ bb := &WorkbookFunctionsDollarDeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dollarDe"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDollarDeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDollarDeRequestBuilder) Request() *WorkbookFunctionsDollarDeRequest {
+ return &WorkbookFunctionsDollarDeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDollarDeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsDollarFrRequestBuilder struct{ BaseRequestBuilder }
+
+// DollarFr action undocumented
+func (b *WorkbookFunctionsRequestBuilder) DollarFr(reqObj *WorkbookFunctionsDollarFrRequestParameter) *WorkbookFunctionsDollarFrRequestBuilder {
+ bb := &WorkbookFunctionsDollarFrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dollarFr"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDollarFrRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDollarFrRequestBuilder) Request() *WorkbookFunctionsDollarFrRequest {
+ return &WorkbookFunctionsDollarFrRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDollarFrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDproduct.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDproduct.go
new file mode 100644
index 00000000..7bb8a235
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDproduct.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDproductRequestBuilder struct{ BaseRequestBuilder }
+
+// Dproduct action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dproduct(reqObj *WorkbookFunctionsDproductRequestParameter) *WorkbookFunctionsDproductRequestBuilder {
+ bb := &WorkbookFunctionsDproductRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dproduct"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDproductRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDproductRequestBuilder) Request() *WorkbookFunctionsDproductRequest {
+ return &WorkbookFunctionsDproductRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDproductRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDst.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDst.go
new file mode 100644
index 00000000..55121d23
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDst.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDstDevRequestBuilder struct{ BaseRequestBuilder }
+
+// DstDev action undocumented
+func (b *WorkbookFunctionsRequestBuilder) DstDev(reqObj *WorkbookFunctionsDstDevRequestParameter) *WorkbookFunctionsDstDevRequestBuilder {
+ bb := &WorkbookFunctionsDstDevRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dstDev"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDstDevRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDstDevRequestBuilder) Request() *WorkbookFunctionsDstDevRequest {
+ return &WorkbookFunctionsDstDevRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDstDevRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsDstDevPRequestBuilder struct{ BaseRequestBuilder }
+
+// DstDevP action undocumented
+func (b *WorkbookFunctionsRequestBuilder) DstDevP(reqObj *WorkbookFunctionsDstDevPRequestParameter) *WorkbookFunctionsDstDevPRequestBuilder {
+ bb := &WorkbookFunctionsDstDevPRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dstDevP"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDstDevPRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDstDevPRequestBuilder) Request() *WorkbookFunctionsDstDevPRequest {
+ return &WorkbookFunctionsDstDevPRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDstDevPRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDsum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDsum.go
new file mode 100644
index 00000000..d4dcbebb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDsum.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDsumRequestBuilder struct{ BaseRequestBuilder }
+
+// Dsum action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dsum(reqObj *WorkbookFunctionsDsumRequestParameter) *WorkbookFunctionsDsumRequestBuilder {
+ bb := &WorkbookFunctionsDsumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dsum"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDsumRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDsumRequestBuilder) Request() *WorkbookFunctionsDsumRequest {
+ return &WorkbookFunctionsDsumRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDsumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDuration.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDuration.go
new file mode 100644
index 00000000..b2a73833
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDuration.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Duration action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Duration(reqObj *WorkbookFunctionsDurationRequestParameter) *WorkbookFunctionsDurationRequestBuilder {
+ bb := &WorkbookFunctionsDurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/duration"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDurationRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDurationRequestBuilder) Request() *WorkbookFunctionsDurationRequest {
+ return &WorkbookFunctionsDurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDurationRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDvar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDvar.go
new file mode 100644
index 00000000..cb552383
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsDvar.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsDvarRequestBuilder struct{ BaseRequestBuilder }
+
+// Dvar action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Dvar(reqObj *WorkbookFunctionsDvarRequestParameter) *WorkbookFunctionsDvarRequestBuilder {
+ bb := &WorkbookFunctionsDvarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dvar"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDvarRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDvarRequestBuilder) Request() *WorkbookFunctionsDvarRequest {
+ return &WorkbookFunctionsDvarRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDvarRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsDvarPRequestBuilder struct{ BaseRequestBuilder }
+
+// DvarP action undocumented
+func (b *WorkbookFunctionsRequestBuilder) DvarP(reqObj *WorkbookFunctionsDvarPRequestParameter) *WorkbookFunctionsDvarPRequestBuilder {
+ bb := &WorkbookFunctionsDvarPRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/dvarP"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsDvarPRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsDvarPRequestBuilder) Request() *WorkbookFunctionsDvarPRequest {
+ return &WorkbookFunctionsDvarPRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsDvarPRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEcma_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEcma_.go
new file mode 100644
index 00000000..2c9d9291
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEcma_.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsEcma_CeilingRequestBuilder struct{ BaseRequestBuilder }
+
+// Ecma_Ceiling action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Ecma_Ceiling(reqObj *WorkbookFunctionsEcma_CeilingRequestParameter) *WorkbookFunctionsEcma_CeilingRequestBuilder {
+ bb := &WorkbookFunctionsEcma_CeilingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/ecma_Ceiling"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsEcma_CeilingRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsEcma_CeilingRequestBuilder) Request() *WorkbookFunctionsEcma_CeilingRequest {
+ return &WorkbookFunctionsEcma_CeilingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsEcma_CeilingRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEdate.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEdate.go
new file mode 100644
index 00000000..98ae17a5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEdate.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsEdateRequestBuilder struct{ BaseRequestBuilder }
+
+// Edate action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Edate(reqObj *WorkbookFunctionsEdateRequestParameter) *WorkbookFunctionsEdateRequestBuilder {
+ bb := &WorkbookFunctionsEdateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/edate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsEdateRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsEdateRequestBuilder) Request() *WorkbookFunctionsEdateRequest {
+ return &WorkbookFunctionsEdateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsEdateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEffect.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEffect.go
new file mode 100644
index 00000000..28b05b9e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEffect.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsEffectRequestBuilder struct{ BaseRequestBuilder }
+
+// Effect action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Effect(reqObj *WorkbookFunctionsEffectRequestParameter) *WorkbookFunctionsEffectRequestBuilder {
+ bb := &WorkbookFunctionsEffectRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/effect"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsEffectRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsEffectRequestBuilder) Request() *WorkbookFunctionsEffectRequest {
+ return &WorkbookFunctionsEffectRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsEffectRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEo.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEo.go
new file mode 100644
index 00000000..58588a1f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEo.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsEoMonthRequestBuilder struct{ BaseRequestBuilder }
+
+// EoMonth action undocumented
+func (b *WorkbookFunctionsRequestBuilder) EoMonth(reqObj *WorkbookFunctionsEoMonthRequestParameter) *WorkbookFunctionsEoMonthRequestBuilder {
+ bb := &WorkbookFunctionsEoMonthRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/eoMonth"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsEoMonthRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsEoMonthRequestBuilder) Request() *WorkbookFunctionsEoMonthRequest {
+ return &WorkbookFunctionsEoMonthRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsEoMonthRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf.go
new file mode 100644
index 00000000..715e1247
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsErfRequestBuilder struct{ BaseRequestBuilder }
+
+// Erf action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Erf(reqObj *WorkbookFunctionsErfRequestParameter) *WorkbookFunctionsErfRequestBuilder {
+ bb := &WorkbookFunctionsErfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/erf"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsErfRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsErfRequestBuilder) Request() *WorkbookFunctionsErfRequest {
+ return &WorkbookFunctionsErfRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsErfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsErfCRequestBuilder struct{ BaseRequestBuilder }
+
+// ErfC action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ErfC(reqObj *WorkbookFunctionsErfCRequestParameter) *WorkbookFunctionsErfCRequestBuilder {
+ bb := &WorkbookFunctionsErfCRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/erfC"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsErfCRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsErfCRequestBuilder) Request() *WorkbookFunctionsErfCRequest {
+ return &WorkbookFunctionsErfCRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsErfCRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsErfC_PreciseRequestBuilder struct{ BaseRequestBuilder }
+
+// ErfC_Precise action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ErfC_Precise(reqObj *WorkbookFunctionsErfC_PreciseRequestParameter) *WorkbookFunctionsErfC_PreciseRequestBuilder {
+ bb := &WorkbookFunctionsErfC_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/erfC_Precise"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsErfC_PreciseRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsErfC_PreciseRequestBuilder) Request() *WorkbookFunctionsErfC_PreciseRequest {
+ return &WorkbookFunctionsErfC_PreciseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsErfC_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf_.go
new file mode 100644
index 00000000..d953d6a8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsErf_.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsErf_PreciseRequestBuilder struct{ BaseRequestBuilder }
+
+// Erf_Precise action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Erf_Precise(reqObj *WorkbookFunctionsErf_PreciseRequestParameter) *WorkbookFunctionsErf_PreciseRequestBuilder {
+ bb := &WorkbookFunctionsErf_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/erf_Precise"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsErf_PreciseRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsErf_PreciseRequestBuilder) Request() *WorkbookFunctionsErf_PreciseRequest {
+ return &WorkbookFunctionsErf_PreciseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsErf_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsError_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsError_.go
new file mode 100644
index 00000000..883f88f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsError_.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsError_TypeRequestBuilder struct{ BaseRequestBuilder }
+
+// Error_Type action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Error_Type(reqObj *WorkbookFunctionsError_TypeRequestParameter) *WorkbookFunctionsError_TypeRequestBuilder {
+ bb := &WorkbookFunctionsError_TypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/error_Type"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsError_TypeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsError_TypeRequestBuilder) Request() *WorkbookFunctionsError_TypeRequest {
+ return &WorkbookFunctionsError_TypeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsError_TypeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEven.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEven.go
new file mode 100644
index 00000000..2a1f55f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsEven.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsEvenRequestBuilder struct{ BaseRequestBuilder }
+
+// Even action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Even(reqObj *WorkbookFunctionsEvenRequestParameter) *WorkbookFunctionsEvenRequestBuilder {
+ bb := &WorkbookFunctionsEvenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/even"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsEvenRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsEvenRequestBuilder) Request() *WorkbookFunctionsEvenRequest {
+ return &WorkbookFunctionsEvenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsEvenRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExact.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExact.go
new file mode 100644
index 00000000..bb7e4d83
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExact.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsExactRequestBuilder struct{ BaseRequestBuilder }
+
+// Exact action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Exact(reqObj *WorkbookFunctionsExactRequestParameter) *WorkbookFunctionsExactRequestBuilder {
+ bb := &WorkbookFunctionsExactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/exact"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsExactRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsExactRequestBuilder) Request() *WorkbookFunctionsExactRequest {
+ return &WorkbookFunctionsExactRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsExactRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExp.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExp.go
new file mode 100644
index 00000000..70e093b6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExp.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsExpRequestBuilder struct{ BaseRequestBuilder }
+
+// Exp action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Exp(reqObj *WorkbookFunctionsExpRequestParameter) *WorkbookFunctionsExpRequestBuilder {
+ bb := &WorkbookFunctionsExpRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/exp"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsExpRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsExpRequestBuilder) Request() *WorkbookFunctionsExpRequest {
+ return &WorkbookFunctionsExpRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsExpRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExpon_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExpon_.go
new file mode 100644
index 00000000..75197055
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsExpon_.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsExpon_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// Expon_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Expon_Dist(reqObj *WorkbookFunctionsExpon_DistRequestParameter) *WorkbookFunctionsExpon_DistRequestBuilder {
+ bb := &WorkbookFunctionsExpon_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/expon_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsExpon_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsExpon_DistRequestBuilder) Request() *WorkbookFunctionsExpon_DistRequest {
+ return &WorkbookFunctionsExpon_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsExpon_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsF_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsF_.go
new file mode 100644
index 00000000..9b4f8b06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsF_.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsF_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// F_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) F_Dist(reqObj *WorkbookFunctionsF_DistRequestParameter) *WorkbookFunctionsF_DistRequestBuilder {
+ bb := &WorkbookFunctionsF_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/f_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsF_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsF_DistRequestBuilder) Request() *WorkbookFunctionsF_DistRequest {
+ return &WorkbookFunctionsF_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsF_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsF_Dist_RTRequestBuilder struct{ BaseRequestBuilder }
+
+// F_Dist_RT action undocumented
+func (b *WorkbookFunctionsRequestBuilder) F_Dist_RT(reqObj *WorkbookFunctionsF_Dist_RTRequestParameter) *WorkbookFunctionsF_Dist_RTRequestBuilder {
+ bb := &WorkbookFunctionsF_Dist_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/f_Dist_RT"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsF_Dist_RTRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsF_Dist_RTRequestBuilder) Request() *WorkbookFunctionsF_Dist_RTRequest {
+ return &WorkbookFunctionsF_Dist_RTRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsF_Dist_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsF_InvRequestBuilder struct{ BaseRequestBuilder }
+
+// F_Inv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) F_Inv(reqObj *WorkbookFunctionsF_InvRequestParameter) *WorkbookFunctionsF_InvRequestBuilder {
+ bb := &WorkbookFunctionsF_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/f_Inv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsF_InvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsF_InvRequestBuilder) Request() *WorkbookFunctionsF_InvRequest {
+ return &WorkbookFunctionsF_InvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsF_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsF_Inv_RTRequestBuilder struct{ BaseRequestBuilder }
+
+// F_Inv_RT action undocumented
+func (b *WorkbookFunctionsRequestBuilder) F_Inv_RT(reqObj *WorkbookFunctionsF_Inv_RTRequestParameter) *WorkbookFunctionsF_Inv_RTRequestBuilder {
+ bb := &WorkbookFunctionsF_Inv_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/f_Inv_RT"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsF_Inv_RTRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsF_Inv_RTRequestBuilder) Request() *WorkbookFunctionsF_Inv_RTRequest {
+ return &WorkbookFunctionsF_Inv_RTRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsF_Inv_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFact.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFact.go
new file mode 100644
index 00000000..f9b10b12
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFact.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsFactRequestBuilder struct{ BaseRequestBuilder }
+
+// Fact action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Fact(reqObj *WorkbookFunctionsFactRequestParameter) *WorkbookFunctionsFactRequestBuilder {
+ bb := &WorkbookFunctionsFactRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/fact"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFactRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFactRequestBuilder) Request() *WorkbookFunctionsFactRequest {
+ return &WorkbookFunctionsFactRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFactRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsFactDoubleRequestBuilder struct{ BaseRequestBuilder }
+
+// FactDouble action undocumented
+func (b *WorkbookFunctionsRequestBuilder) FactDouble(reqObj *WorkbookFunctionsFactDoubleRequestParameter) *WorkbookFunctionsFactDoubleRequestBuilder {
+ bb := &WorkbookFunctionsFactDoubleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/factDouble"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFactDoubleRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFactDoubleRequestBuilder) Request() *WorkbookFunctionsFactDoubleRequest {
+ return &WorkbookFunctionsFactDoubleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFactDoubleRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFalse.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFalse.go
new file mode 100644
index 00000000..3b060ee4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFalse.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsFalseRequestBuilder struct{ BaseRequestBuilder }
+
+// False action undocumented
+func (b *WorkbookFunctionsRequestBuilder) False(reqObj *WorkbookFunctionsFalseRequestParameter) *WorkbookFunctionsFalseRequestBuilder {
+ bb := &WorkbookFunctionsFalseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/false"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFalseRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFalseRequestBuilder) Request() *WorkbookFunctionsFalseRequest {
+ return &WorkbookFunctionsFalseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFalseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFind.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFind.go
new file mode 100644
index 00000000..67e60325
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFind.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsFindRequestBuilder struct{ BaseRequestBuilder }
+
+// Find action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Find(reqObj *WorkbookFunctionsFindRequestParameter) *WorkbookFunctionsFindRequestBuilder {
+ bb := &WorkbookFunctionsFindRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/find"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFindRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFindRequestBuilder) Request() *WorkbookFunctionsFindRequest {
+ return &WorkbookFunctionsFindRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFindRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsFindBRequestBuilder struct{ BaseRequestBuilder }
+
+// FindB action undocumented
+func (b *WorkbookFunctionsRequestBuilder) FindB(reqObj *WorkbookFunctionsFindBRequestParameter) *WorkbookFunctionsFindBRequestBuilder {
+ bb := &WorkbookFunctionsFindBRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/findB"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFindBRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFindBRequestBuilder) Request() *WorkbookFunctionsFindBRequest {
+ return &WorkbookFunctionsFindBRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFindBRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFisher.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFisher.go
new file mode 100644
index 00000000..2ae8b49e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFisher.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsFisherRequestBuilder struct{ BaseRequestBuilder }
+
+// Fisher action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Fisher(reqObj *WorkbookFunctionsFisherRequestParameter) *WorkbookFunctionsFisherRequestBuilder {
+ bb := &WorkbookFunctionsFisherRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/fisher"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFisherRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFisherRequestBuilder) Request() *WorkbookFunctionsFisherRequest {
+ return &WorkbookFunctionsFisherRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFisherRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsFisherInvRequestBuilder struct{ BaseRequestBuilder }
+
+// FisherInv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) FisherInv(reqObj *WorkbookFunctionsFisherInvRequestParameter) *WorkbookFunctionsFisherInvRequestBuilder {
+ bb := &WorkbookFunctionsFisherInvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/fisherInv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFisherInvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFisherInvRequestBuilder) Request() *WorkbookFunctionsFisherInvRequest {
+ return &WorkbookFunctionsFisherInvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFisherInvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFixed.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFixed.go
new file mode 100644
index 00000000..43c58e93
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFixed.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsFixedRequestBuilder struct{ BaseRequestBuilder }
+
+// Fixed action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Fixed(reqObj *WorkbookFunctionsFixedRequestParameter) *WorkbookFunctionsFixedRequestBuilder {
+ bb := &WorkbookFunctionsFixedRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/fixed"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFixedRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFixedRequestBuilder) Request() *WorkbookFunctionsFixedRequest {
+ return &WorkbookFunctionsFixedRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFixedRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFloor_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFloor_.go
new file mode 100644
index 00000000..1699714a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFloor_.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsFloor_MathRequestBuilder struct{ BaseRequestBuilder }
+
+// Floor_Math action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Floor_Math(reqObj *WorkbookFunctionsFloor_MathRequestParameter) *WorkbookFunctionsFloor_MathRequestBuilder {
+ bb := &WorkbookFunctionsFloor_MathRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/floor_Math"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFloor_MathRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFloor_MathRequestBuilder) Request() *WorkbookFunctionsFloor_MathRequest {
+ return &WorkbookFunctionsFloor_MathRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFloor_MathRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsFloor_PreciseRequestBuilder struct{ BaseRequestBuilder }
+
+// Floor_Precise action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Floor_Precise(reqObj *WorkbookFunctionsFloor_PreciseRequestParameter) *WorkbookFunctionsFloor_PreciseRequestBuilder {
+ bb := &WorkbookFunctionsFloor_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/floor_Precise"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFloor_PreciseRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFloor_PreciseRequestBuilder) Request() *WorkbookFunctionsFloor_PreciseRequest {
+ return &WorkbookFunctionsFloor_PreciseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFloor_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFv.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFv.go
new file mode 100644
index 00000000..31d86bd2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFv.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsFvRequestBuilder struct{ BaseRequestBuilder }
+
+// Fv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Fv(reqObj *WorkbookFunctionsFvRequestParameter) *WorkbookFunctionsFvRequestBuilder {
+ bb := &WorkbookFunctionsFvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/fv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFvRequestBuilder) Request() *WorkbookFunctionsFvRequest {
+ return &WorkbookFunctionsFvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFvschedule.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFvschedule.go
new file mode 100644
index 00000000..fe0e4bf8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsFvschedule.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsFvscheduleRequestBuilder struct{ BaseRequestBuilder }
+
+// Fvschedule action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Fvschedule(reqObj *WorkbookFunctionsFvscheduleRequestParameter) *WorkbookFunctionsFvscheduleRequestBuilder {
+ bb := &WorkbookFunctionsFvscheduleRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/fvschedule"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsFvscheduleRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsFvscheduleRequestBuilder) Request() *WorkbookFunctionsFvscheduleRequest {
+ return &WorkbookFunctionsFvscheduleRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsFvscheduleRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma.go
new file mode 100644
index 00000000..7e8a1b6b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsGammaRequestBuilder struct{ BaseRequestBuilder }
+
+// Gamma action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Gamma(reqObj *WorkbookFunctionsGammaRequestParameter) *WorkbookFunctionsGammaRequestBuilder {
+ bb := &WorkbookFunctionsGammaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/gamma"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsGammaRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsGammaRequestBuilder) Request() *WorkbookFunctionsGammaRequest {
+ return &WorkbookFunctionsGammaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsGammaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsGammaLnRequestBuilder struct{ BaseRequestBuilder }
+
+// GammaLn action undocumented
+func (b *WorkbookFunctionsRequestBuilder) GammaLn(reqObj *WorkbookFunctionsGammaLnRequestParameter) *WorkbookFunctionsGammaLnRequestBuilder {
+ bb := &WorkbookFunctionsGammaLnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/gammaLn"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsGammaLnRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsGammaLnRequestBuilder) Request() *WorkbookFunctionsGammaLnRequest {
+ return &WorkbookFunctionsGammaLnRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsGammaLnRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsGammaLn_PreciseRequestBuilder struct{ BaseRequestBuilder }
+
+// GammaLn_Precise action undocumented
+func (b *WorkbookFunctionsRequestBuilder) GammaLn_Precise(reqObj *WorkbookFunctionsGammaLn_PreciseRequestParameter) *WorkbookFunctionsGammaLn_PreciseRequestBuilder {
+ bb := &WorkbookFunctionsGammaLn_PreciseRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/gammaLn_Precise"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsGammaLn_PreciseRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsGammaLn_PreciseRequestBuilder) Request() *WorkbookFunctionsGammaLn_PreciseRequest {
+ return &WorkbookFunctionsGammaLn_PreciseRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsGammaLn_PreciseRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma_.go
new file mode 100644
index 00000000..c5c764fd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGamma_.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsGamma_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// Gamma_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Gamma_Dist(reqObj *WorkbookFunctionsGamma_DistRequestParameter) *WorkbookFunctionsGamma_DistRequestBuilder {
+ bb := &WorkbookFunctionsGamma_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/gamma_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsGamma_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsGamma_DistRequestBuilder) Request() *WorkbookFunctionsGamma_DistRequest {
+ return &WorkbookFunctionsGamma_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsGamma_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsGamma_InvRequestBuilder struct{ BaseRequestBuilder }
+
+// Gamma_Inv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Gamma_Inv(reqObj *WorkbookFunctionsGamma_InvRequestParameter) *WorkbookFunctionsGamma_InvRequestBuilder {
+ bb := &WorkbookFunctionsGamma_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/gamma_Inv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsGamma_InvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsGamma_InvRequestBuilder) Request() *WorkbookFunctionsGamma_InvRequest {
+ return &WorkbookFunctionsGamma_InvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsGamma_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGauss.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGauss.go
new file mode 100644
index 00000000..868a0bce
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGauss.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsGaussRequestBuilder struct{ BaseRequestBuilder }
+
+// Gauss action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Gauss(reqObj *WorkbookFunctionsGaussRequestParameter) *WorkbookFunctionsGaussRequestBuilder {
+ bb := &WorkbookFunctionsGaussRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/gauss"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsGaussRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsGaussRequestBuilder) Request() *WorkbookFunctionsGaussRequest {
+ return &WorkbookFunctionsGaussRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsGaussRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGcd.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGcd.go
new file mode 100644
index 00000000..01ee73b7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGcd.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsGcdRequestBuilder struct{ BaseRequestBuilder }
+
+// Gcd action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Gcd(reqObj *WorkbookFunctionsGcdRequestParameter) *WorkbookFunctionsGcdRequestBuilder {
+ bb := &WorkbookFunctionsGcdRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/gcd"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsGcdRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsGcdRequestBuilder) Request() *WorkbookFunctionsGcdRequest {
+ return &WorkbookFunctionsGcdRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsGcdRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGe.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGe.go
new file mode 100644
index 00000000..e15339da
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGe.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsGeStepRequestBuilder struct{ BaseRequestBuilder }
+
+// GeStep action undocumented
+func (b *WorkbookFunctionsRequestBuilder) GeStep(reqObj *WorkbookFunctionsGeStepRequestParameter) *WorkbookFunctionsGeStepRequestBuilder {
+ bb := &WorkbookFunctionsGeStepRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/geStep"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsGeStepRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsGeStepRequestBuilder) Request() *WorkbookFunctionsGeStepRequest {
+ return &WorkbookFunctionsGeStepRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsGeStepRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGeo.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGeo.go
new file mode 100644
index 00000000..fe62e6e2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsGeo.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsGeoMeanRequestBuilder struct{ BaseRequestBuilder }
+
+// GeoMean action undocumented
+func (b *WorkbookFunctionsRequestBuilder) GeoMean(reqObj *WorkbookFunctionsGeoMeanRequestParameter) *WorkbookFunctionsGeoMeanRequestBuilder {
+ bb := &WorkbookFunctionsGeoMeanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/geoMean"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsGeoMeanRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsGeoMeanRequestBuilder) Request() *WorkbookFunctionsGeoMeanRequest {
+ return &WorkbookFunctionsGeoMeanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsGeoMeanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHar.go
new file mode 100644
index 00000000..a31b150c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHar.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsHarMeanRequestBuilder struct{ BaseRequestBuilder }
+
+// HarMean action undocumented
+func (b *WorkbookFunctionsRequestBuilder) HarMean(reqObj *WorkbookFunctionsHarMeanRequestParameter) *WorkbookFunctionsHarMeanRequestBuilder {
+ bb := &WorkbookFunctionsHarMeanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/harMean"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsHarMeanRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsHarMeanRequestBuilder) Request() *WorkbookFunctionsHarMeanRequest {
+ return &WorkbookFunctionsHarMeanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsHarMeanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHex2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHex2.go
new file mode 100644
index 00000000..a3e784c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHex2.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsHex2BinRequestBuilder struct{ BaseRequestBuilder }
+
+// Hex2Bin action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Hex2Bin(reqObj *WorkbookFunctionsHex2BinRequestParameter) *WorkbookFunctionsHex2BinRequestBuilder {
+ bb := &WorkbookFunctionsHex2BinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hex2Bin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsHex2BinRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsHex2BinRequestBuilder) Request() *WorkbookFunctionsHex2BinRequest {
+ return &WorkbookFunctionsHex2BinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsHex2BinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsHex2DecRequestBuilder struct{ BaseRequestBuilder }
+
+// Hex2Dec action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Hex2Dec(reqObj *WorkbookFunctionsHex2DecRequestParameter) *WorkbookFunctionsHex2DecRequestBuilder {
+ bb := &WorkbookFunctionsHex2DecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hex2Dec"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsHex2DecRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsHex2DecRequestBuilder) Request() *WorkbookFunctionsHex2DecRequest {
+ return &WorkbookFunctionsHex2DecRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsHex2DecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsHex2OctRequestBuilder struct{ BaseRequestBuilder }
+
+// Hex2Oct action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Hex2Oct(reqObj *WorkbookFunctionsHex2OctRequestParameter) *WorkbookFunctionsHex2OctRequestBuilder {
+ bb := &WorkbookFunctionsHex2OctRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hex2Oct"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsHex2OctRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsHex2OctRequestBuilder) Request() *WorkbookFunctionsHex2OctRequest {
+ return &WorkbookFunctionsHex2OctRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsHex2OctRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHlookup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHlookup.go
new file mode 100644
index 00000000..9487a05e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHlookup.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsHlookupRequestBuilder struct{ BaseRequestBuilder }
+
+// Hlookup action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Hlookup(reqObj *WorkbookFunctionsHlookupRequestParameter) *WorkbookFunctionsHlookupRequestBuilder {
+ bb := &WorkbookFunctionsHlookupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hlookup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsHlookupRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsHlookupRequestBuilder) Request() *WorkbookFunctionsHlookupRequest {
+ return &WorkbookFunctionsHlookupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsHlookupRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHour.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHour.go
new file mode 100644
index 00000000..93ae3fc0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHour.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsHourRequestBuilder struct{ BaseRequestBuilder }
+
+// Hour action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Hour(reqObj *WorkbookFunctionsHourRequestParameter) *WorkbookFunctionsHourRequestBuilder {
+ bb := &WorkbookFunctionsHourRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hour"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsHourRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsHourRequestBuilder) Request() *WorkbookFunctionsHourRequest {
+ return &WorkbookFunctionsHourRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsHourRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyp.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyp.go
new file mode 100644
index 00000000..2593c34d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyp.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsHypGeom_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// HypGeom_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) HypGeom_Dist(reqObj *WorkbookFunctionsHypGeom_DistRequestParameter) *WorkbookFunctionsHypGeom_DistRequestBuilder {
+ bb := &WorkbookFunctionsHypGeom_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hypGeom_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsHypGeom_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsHypGeom_DistRequestBuilder) Request() *WorkbookFunctionsHypGeom_DistRequest {
+ return &WorkbookFunctionsHypGeom_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsHypGeom_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyperlink.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyperlink.go
new file mode 100644
index 00000000..d961df1a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsHyperlink.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsHyperlinkRequestBuilder struct{ BaseRequestBuilder }
+
+// Hyperlink action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Hyperlink(reqObj *WorkbookFunctionsHyperlinkRequestParameter) *WorkbookFunctionsHyperlinkRequestBuilder {
+ bb := &WorkbookFunctionsHyperlinkRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/hyperlink"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsHyperlinkRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsHyperlinkRequestBuilder) Request() *WorkbookFunctionsHyperlinkRequest {
+ return &WorkbookFunctionsHyperlinkRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsHyperlinkRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIf.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIf.go
new file mode 100644
index 00000000..6a886d1b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIf.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsIfRequestBuilder struct{ BaseRequestBuilder }
+
+// If action undocumented
+func (b *WorkbookFunctionsRequestBuilder) If(reqObj *WorkbookFunctionsIfRequestParameter) *WorkbookFunctionsIfRequestBuilder {
+ bb := &WorkbookFunctionsIfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/if"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIfRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIfRequestBuilder) Request() *WorkbookFunctionsIfRequest {
+ return &WorkbookFunctionsIfRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIm.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIm.go
new file mode 100644
index 00000000..0cdb7f3e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIm.go
@@ -0,0 +1,653 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsImAbsRequestBuilder struct{ BaseRequestBuilder }
+
+// ImAbs action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImAbs(reqObj *WorkbookFunctionsImAbsRequestParameter) *WorkbookFunctionsImAbsRequestBuilder {
+ bb := &WorkbookFunctionsImAbsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imAbs"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImAbsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImAbsRequestBuilder) Request() *WorkbookFunctionsImAbsRequest {
+ return &WorkbookFunctionsImAbsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImAbsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImArgumentRequestBuilder struct{ BaseRequestBuilder }
+
+// ImArgument action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImArgument(reqObj *WorkbookFunctionsImArgumentRequestParameter) *WorkbookFunctionsImArgumentRequestBuilder {
+ bb := &WorkbookFunctionsImArgumentRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imArgument"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImArgumentRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImArgumentRequestBuilder) Request() *WorkbookFunctionsImArgumentRequest {
+ return &WorkbookFunctionsImArgumentRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImArgumentRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImConjugateRequestBuilder struct{ BaseRequestBuilder }
+
+// ImConjugate action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImConjugate(reqObj *WorkbookFunctionsImConjugateRequestParameter) *WorkbookFunctionsImConjugateRequestBuilder {
+ bb := &WorkbookFunctionsImConjugateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imConjugate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImConjugateRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImConjugateRequestBuilder) Request() *WorkbookFunctionsImConjugateRequest {
+ return &WorkbookFunctionsImConjugateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImConjugateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImCosRequestBuilder struct{ BaseRequestBuilder }
+
+// ImCos action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImCos(reqObj *WorkbookFunctionsImCosRequestParameter) *WorkbookFunctionsImCosRequestBuilder {
+ bb := &WorkbookFunctionsImCosRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imCos"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImCosRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImCosRequestBuilder) Request() *WorkbookFunctionsImCosRequest {
+ return &WorkbookFunctionsImCosRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImCosRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImCoshRequestBuilder struct{ BaseRequestBuilder }
+
+// ImCosh action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImCosh(reqObj *WorkbookFunctionsImCoshRequestParameter) *WorkbookFunctionsImCoshRequestBuilder {
+ bb := &WorkbookFunctionsImCoshRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imCosh"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImCoshRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImCoshRequestBuilder) Request() *WorkbookFunctionsImCoshRequest {
+ return &WorkbookFunctionsImCoshRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImCoshRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImCotRequestBuilder struct{ BaseRequestBuilder }
+
+// ImCot action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImCot(reqObj *WorkbookFunctionsImCotRequestParameter) *WorkbookFunctionsImCotRequestBuilder {
+ bb := &WorkbookFunctionsImCotRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imCot"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImCotRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImCotRequestBuilder) Request() *WorkbookFunctionsImCotRequest {
+ return &WorkbookFunctionsImCotRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImCotRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImCscRequestBuilder struct{ BaseRequestBuilder }
+
+// ImCsc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImCsc(reqObj *WorkbookFunctionsImCscRequestParameter) *WorkbookFunctionsImCscRequestBuilder {
+ bb := &WorkbookFunctionsImCscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imCsc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImCscRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImCscRequestBuilder) Request() *WorkbookFunctionsImCscRequest {
+ return &WorkbookFunctionsImCscRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImCscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImCschRequestBuilder struct{ BaseRequestBuilder }
+
+// ImCsch action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImCsch(reqObj *WorkbookFunctionsImCschRequestParameter) *WorkbookFunctionsImCschRequestBuilder {
+ bb := &WorkbookFunctionsImCschRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imCsch"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImCschRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImCschRequestBuilder) Request() *WorkbookFunctionsImCschRequest {
+ return &WorkbookFunctionsImCschRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImCschRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImDivRequestBuilder struct{ BaseRequestBuilder }
+
+// ImDiv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImDiv(reqObj *WorkbookFunctionsImDivRequestParameter) *WorkbookFunctionsImDivRequestBuilder {
+ bb := &WorkbookFunctionsImDivRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imDiv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImDivRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImDivRequestBuilder) Request() *WorkbookFunctionsImDivRequest {
+ return &WorkbookFunctionsImDivRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImDivRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImExpRequestBuilder struct{ BaseRequestBuilder }
+
+// ImExp action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImExp(reqObj *WorkbookFunctionsImExpRequestParameter) *WorkbookFunctionsImExpRequestBuilder {
+ bb := &WorkbookFunctionsImExpRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imExp"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImExpRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImExpRequestBuilder) Request() *WorkbookFunctionsImExpRequest {
+ return &WorkbookFunctionsImExpRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImExpRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImLnRequestBuilder struct{ BaseRequestBuilder }
+
+// ImLn action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImLn(reqObj *WorkbookFunctionsImLnRequestParameter) *WorkbookFunctionsImLnRequestBuilder {
+ bb := &WorkbookFunctionsImLnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imLn"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImLnRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImLnRequestBuilder) Request() *WorkbookFunctionsImLnRequest {
+ return &WorkbookFunctionsImLnRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImLnRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImLog10RequestBuilder struct{ BaseRequestBuilder }
+
+// ImLog10 action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImLog10(reqObj *WorkbookFunctionsImLog10RequestParameter) *WorkbookFunctionsImLog10RequestBuilder {
+ bb := &WorkbookFunctionsImLog10RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imLog10"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImLog10Request struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImLog10RequestBuilder) Request() *WorkbookFunctionsImLog10Request {
+ return &WorkbookFunctionsImLog10Request{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImLog10Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImLog2RequestBuilder struct{ BaseRequestBuilder }
+
+// ImLog2 action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImLog2(reqObj *WorkbookFunctionsImLog2RequestParameter) *WorkbookFunctionsImLog2RequestBuilder {
+ bb := &WorkbookFunctionsImLog2RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imLog2"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImLog2Request struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImLog2RequestBuilder) Request() *WorkbookFunctionsImLog2Request {
+ return &WorkbookFunctionsImLog2Request{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImLog2Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImPowerRequestBuilder struct{ BaseRequestBuilder }
+
+// ImPower action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImPower(reqObj *WorkbookFunctionsImPowerRequestParameter) *WorkbookFunctionsImPowerRequestBuilder {
+ bb := &WorkbookFunctionsImPowerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imPower"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImPowerRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImPowerRequestBuilder) Request() *WorkbookFunctionsImPowerRequest {
+ return &WorkbookFunctionsImPowerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImPowerRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImProductRequestBuilder struct{ BaseRequestBuilder }
+
+// ImProduct action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImProduct(reqObj *WorkbookFunctionsImProductRequestParameter) *WorkbookFunctionsImProductRequestBuilder {
+ bb := &WorkbookFunctionsImProductRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imProduct"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImProductRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImProductRequestBuilder) Request() *WorkbookFunctionsImProductRequest {
+ return &WorkbookFunctionsImProductRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImProductRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImRealRequestBuilder struct{ BaseRequestBuilder }
+
+// ImReal action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImReal(reqObj *WorkbookFunctionsImRealRequestParameter) *WorkbookFunctionsImRealRequestBuilder {
+ bb := &WorkbookFunctionsImRealRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imReal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImRealRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImRealRequestBuilder) Request() *WorkbookFunctionsImRealRequest {
+ return &WorkbookFunctionsImRealRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImRealRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImSecRequestBuilder struct{ BaseRequestBuilder }
+
+// ImSec action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImSec(reqObj *WorkbookFunctionsImSecRequestParameter) *WorkbookFunctionsImSecRequestBuilder {
+ bb := &WorkbookFunctionsImSecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imSec"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImSecRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImSecRequestBuilder) Request() *WorkbookFunctionsImSecRequest {
+ return &WorkbookFunctionsImSecRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImSecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImSechRequestBuilder struct{ BaseRequestBuilder }
+
+// ImSech action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImSech(reqObj *WorkbookFunctionsImSechRequestParameter) *WorkbookFunctionsImSechRequestBuilder {
+ bb := &WorkbookFunctionsImSechRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imSech"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImSechRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImSechRequestBuilder) Request() *WorkbookFunctionsImSechRequest {
+ return &WorkbookFunctionsImSechRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImSechRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImSinRequestBuilder struct{ BaseRequestBuilder }
+
+// ImSin action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImSin(reqObj *WorkbookFunctionsImSinRequestParameter) *WorkbookFunctionsImSinRequestBuilder {
+ bb := &WorkbookFunctionsImSinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imSin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImSinRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImSinRequestBuilder) Request() *WorkbookFunctionsImSinRequest {
+ return &WorkbookFunctionsImSinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImSinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImSinhRequestBuilder struct{ BaseRequestBuilder }
+
+// ImSinh action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImSinh(reqObj *WorkbookFunctionsImSinhRequestParameter) *WorkbookFunctionsImSinhRequestBuilder {
+ bb := &WorkbookFunctionsImSinhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imSinh"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImSinhRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImSinhRequestBuilder) Request() *WorkbookFunctionsImSinhRequest {
+ return &WorkbookFunctionsImSinhRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImSinhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImSqrtRequestBuilder struct{ BaseRequestBuilder }
+
+// ImSqrt action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImSqrt(reqObj *WorkbookFunctionsImSqrtRequestParameter) *WorkbookFunctionsImSqrtRequestBuilder {
+ bb := &WorkbookFunctionsImSqrtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imSqrt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImSqrtRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImSqrtRequestBuilder) Request() *WorkbookFunctionsImSqrtRequest {
+ return &WorkbookFunctionsImSqrtRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImSqrtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImSubRequestBuilder struct{ BaseRequestBuilder }
+
+// ImSub action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImSub(reqObj *WorkbookFunctionsImSubRequestParameter) *WorkbookFunctionsImSubRequestBuilder {
+ bb := &WorkbookFunctionsImSubRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imSub"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImSubRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImSubRequestBuilder) Request() *WorkbookFunctionsImSubRequest {
+ return &WorkbookFunctionsImSubRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImSubRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImSumRequestBuilder struct{ BaseRequestBuilder }
+
+// ImSum action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImSum(reqObj *WorkbookFunctionsImSumRequestParameter) *WorkbookFunctionsImSumRequestBuilder {
+ bb := &WorkbookFunctionsImSumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imSum"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImSumRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImSumRequestBuilder) Request() *WorkbookFunctionsImSumRequest {
+ return &WorkbookFunctionsImSumRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImSumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsImTanRequestBuilder struct{ BaseRequestBuilder }
+
+// ImTan action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ImTan(reqObj *WorkbookFunctionsImTanRequestParameter) *WorkbookFunctionsImTanRequestBuilder {
+ bb := &WorkbookFunctionsImTanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imTan"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImTanRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImTanRequestBuilder) Request() *WorkbookFunctionsImTanRequest {
+ return &WorkbookFunctionsImTanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImTanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsImaginary.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsImaginary.go
new file mode 100644
index 00000000..4c64af6d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsImaginary.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsImaginaryRequestBuilder struct{ BaseRequestBuilder }
+
+// Imaginary action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Imaginary(reqObj *WorkbookFunctionsImaginaryRequestParameter) *WorkbookFunctionsImaginaryRequestBuilder {
+ bb := &WorkbookFunctionsImaginaryRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/imaginary"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsImaginaryRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsImaginaryRequestBuilder) Request() *WorkbookFunctionsImaginaryRequest {
+ return &WorkbookFunctionsImaginaryRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsImaginaryRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsInt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsInt.go
new file mode 100644
index 00000000..7b9c82c4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsInt.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsIntRequestBuilder struct{ BaseRequestBuilder }
+
+// Int action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Int(reqObj *WorkbookFunctionsIntRequestParameter) *WorkbookFunctionsIntRequestBuilder {
+ bb := &WorkbookFunctionsIntRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/int"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIntRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIntRequestBuilder) Request() *WorkbookFunctionsIntRequest {
+ return &WorkbookFunctionsIntRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIntRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIntRateRequestBuilder struct{ BaseRequestBuilder }
+
+// IntRate action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IntRate(reqObj *WorkbookFunctionsIntRateRequestParameter) *WorkbookFunctionsIntRateRequestBuilder {
+ bb := &WorkbookFunctionsIntRateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/intRate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIntRateRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIntRateRequestBuilder) Request() *WorkbookFunctionsIntRateRequest {
+ return &WorkbookFunctionsIntRateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIntRateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIpmt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIpmt.go
new file mode 100644
index 00000000..38fadd93
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIpmt.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsIpmtRequestBuilder struct{ BaseRequestBuilder }
+
+// Ipmt action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Ipmt(reqObj *WorkbookFunctionsIpmtRequestParameter) *WorkbookFunctionsIpmtRequestBuilder {
+ bb := &WorkbookFunctionsIpmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/ipmt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIpmtRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIpmtRequestBuilder) Request() *WorkbookFunctionsIpmtRequest {
+ return &WorkbookFunctionsIpmtRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIpmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIrr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIrr.go
new file mode 100644
index 00000000..6eab11db
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIrr.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsIrrRequestBuilder struct{ BaseRequestBuilder }
+
+// Irr action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Irr(reqObj *WorkbookFunctionsIrrRequestParameter) *WorkbookFunctionsIrrRequestBuilder {
+ bb := &WorkbookFunctionsIrrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/irr"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIrrRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIrrRequestBuilder) Request() *WorkbookFunctionsIrrRequest {
+ return &WorkbookFunctionsIrrRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIrrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIs.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIs.go
new file mode 100644
index 00000000..231d1ee0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIs.go
@@ -0,0 +1,275 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsIsErrRequestBuilder struct{ BaseRequestBuilder }
+
+// IsErr action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsErr(reqObj *WorkbookFunctionsIsErrRequestParameter) *WorkbookFunctionsIsErrRequestBuilder {
+ bb := &WorkbookFunctionsIsErrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isErr"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsErrRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsErrRequestBuilder) Request() *WorkbookFunctionsIsErrRequest {
+ return &WorkbookFunctionsIsErrRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsErrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIsErrorRequestBuilder struct{ BaseRequestBuilder }
+
+// IsError action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsError(reqObj *WorkbookFunctionsIsErrorRequestParameter) *WorkbookFunctionsIsErrorRequestBuilder {
+ bb := &WorkbookFunctionsIsErrorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isError"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsErrorRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsErrorRequestBuilder) Request() *WorkbookFunctionsIsErrorRequest {
+ return &WorkbookFunctionsIsErrorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsErrorRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIsEvenRequestBuilder struct{ BaseRequestBuilder }
+
+// IsEven action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsEven(reqObj *WorkbookFunctionsIsEvenRequestParameter) *WorkbookFunctionsIsEvenRequestBuilder {
+ bb := &WorkbookFunctionsIsEvenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isEven"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsEvenRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsEvenRequestBuilder) Request() *WorkbookFunctionsIsEvenRequest {
+ return &WorkbookFunctionsIsEvenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsEvenRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIsFormulaRequestBuilder struct{ BaseRequestBuilder }
+
+// IsFormula action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsFormula(reqObj *WorkbookFunctionsIsFormulaRequestParameter) *WorkbookFunctionsIsFormulaRequestBuilder {
+ bb := &WorkbookFunctionsIsFormulaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isFormula"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsFormulaRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsFormulaRequestBuilder) Request() *WorkbookFunctionsIsFormulaRequest {
+ return &WorkbookFunctionsIsFormulaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsFormulaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIsLogicalRequestBuilder struct{ BaseRequestBuilder }
+
+// IsLogical action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsLogical(reqObj *WorkbookFunctionsIsLogicalRequestParameter) *WorkbookFunctionsIsLogicalRequestBuilder {
+ bb := &WorkbookFunctionsIsLogicalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isLogical"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsLogicalRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsLogicalRequestBuilder) Request() *WorkbookFunctionsIsLogicalRequest {
+ return &WorkbookFunctionsIsLogicalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsLogicalRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIsNARequestBuilder struct{ BaseRequestBuilder }
+
+// IsNA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsNA(reqObj *WorkbookFunctionsIsNARequestParameter) *WorkbookFunctionsIsNARequestBuilder {
+ bb := &WorkbookFunctionsIsNARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isNA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsNARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsNARequestBuilder) Request() *WorkbookFunctionsIsNARequest {
+ return &WorkbookFunctionsIsNARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsNARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIsNonTextRequestBuilder struct{ BaseRequestBuilder }
+
+// IsNonText action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsNonText(reqObj *WorkbookFunctionsIsNonTextRequestParameter) *WorkbookFunctionsIsNonTextRequestBuilder {
+ bb := &WorkbookFunctionsIsNonTextRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isNonText"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsNonTextRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsNonTextRequestBuilder) Request() *WorkbookFunctionsIsNonTextRequest {
+ return &WorkbookFunctionsIsNonTextRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsNonTextRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIsNumberRequestBuilder struct{ BaseRequestBuilder }
+
+// IsNumber action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsNumber(reqObj *WorkbookFunctionsIsNumberRequestParameter) *WorkbookFunctionsIsNumberRequestBuilder {
+ bb := &WorkbookFunctionsIsNumberRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isNumber"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsNumberRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsNumberRequestBuilder) Request() *WorkbookFunctionsIsNumberRequest {
+ return &WorkbookFunctionsIsNumberRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsNumberRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIsOddRequestBuilder struct{ BaseRequestBuilder }
+
+// IsOdd action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsOdd(reqObj *WorkbookFunctionsIsOddRequestParameter) *WorkbookFunctionsIsOddRequestBuilder {
+ bb := &WorkbookFunctionsIsOddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isOdd"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsOddRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsOddRequestBuilder) Request() *WorkbookFunctionsIsOddRequest {
+ return &WorkbookFunctionsIsOddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsOddRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsIsTextRequestBuilder struct{ BaseRequestBuilder }
+
+// IsText action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsText(reqObj *WorkbookFunctionsIsTextRequestParameter) *WorkbookFunctionsIsTextRequestBuilder {
+ bb := &WorkbookFunctionsIsTextRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isText"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsTextRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsTextRequestBuilder) Request() *WorkbookFunctionsIsTextRequest {
+ return &WorkbookFunctionsIsTextRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsTextRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso.go
new file mode 100644
index 00000000..6cd39ed6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsIsoWeekNumRequestBuilder struct{ BaseRequestBuilder }
+
+// IsoWeekNum action undocumented
+func (b *WorkbookFunctionsRequestBuilder) IsoWeekNum(reqObj *WorkbookFunctionsIsoWeekNumRequestParameter) *WorkbookFunctionsIsoWeekNumRequestBuilder {
+ bb := &WorkbookFunctionsIsoWeekNumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isoWeekNum"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsoWeekNumRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsoWeekNumRequestBuilder) Request() *WorkbookFunctionsIsoWeekNumRequest {
+ return &WorkbookFunctionsIsoWeekNumRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsoWeekNumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso_.go
new file mode 100644
index 00000000..752b9b33
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIso_.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsIso_CeilingRequestBuilder struct{ BaseRequestBuilder }
+
+// Iso_Ceiling action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Iso_Ceiling(reqObj *WorkbookFunctionsIso_CeilingRequestParameter) *WorkbookFunctionsIso_CeilingRequestBuilder {
+ bb := &WorkbookFunctionsIso_CeilingRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/iso_Ceiling"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIso_CeilingRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIso_CeilingRequestBuilder) Request() *WorkbookFunctionsIso_CeilingRequest {
+ return &WorkbookFunctionsIso_CeilingRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIso_CeilingRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIspmt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIspmt.go
new file mode 100644
index 00000000..10e5d69e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIspmt.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsIspmtRequestBuilder struct{ BaseRequestBuilder }
+
+// Ispmt action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Ispmt(reqObj *WorkbookFunctionsIspmtRequestParameter) *WorkbookFunctionsIspmtRequestBuilder {
+ bb := &WorkbookFunctionsIspmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/ispmt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIspmtRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIspmtRequestBuilder) Request() *WorkbookFunctionsIspmtRequest {
+ return &WorkbookFunctionsIspmtRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIspmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIsref.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIsref.go
new file mode 100644
index 00000000..ad791918
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsIsref.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsIsrefRequestBuilder struct{ BaseRequestBuilder }
+
+// Isref action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Isref(reqObj *WorkbookFunctionsIsrefRequestParameter) *WorkbookFunctionsIsrefRequestBuilder {
+ bb := &WorkbookFunctionsIsrefRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/isref"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsIsrefRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsIsrefRequestBuilder) Request() *WorkbookFunctionsIsrefRequest {
+ return &WorkbookFunctionsIsrefRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsIsrefRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsKurt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsKurt.go
new file mode 100644
index 00000000..245d36bf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsKurt.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsKurtRequestBuilder struct{ BaseRequestBuilder }
+
+// Kurt action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Kurt(reqObj *WorkbookFunctionsKurtRequestParameter) *WorkbookFunctionsKurtRequestBuilder {
+ bb := &WorkbookFunctionsKurtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/kurt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsKurtRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsKurtRequestBuilder) Request() *WorkbookFunctionsKurtRequest {
+ return &WorkbookFunctionsKurtRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsKurtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLarge.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLarge.go
new file mode 100644
index 00000000..ac5330ef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLarge.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLargeRequestBuilder struct{ BaseRequestBuilder }
+
+// Large action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Large(reqObj *WorkbookFunctionsLargeRequestParameter) *WorkbookFunctionsLargeRequestBuilder {
+ bb := &WorkbookFunctionsLargeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/large"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLargeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLargeRequestBuilder) Request() *WorkbookFunctionsLargeRequest {
+ return &WorkbookFunctionsLargeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLargeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLcm.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLcm.go
new file mode 100644
index 00000000..c0928d06
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLcm.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLcmRequestBuilder struct{ BaseRequestBuilder }
+
+// Lcm action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Lcm(reqObj *WorkbookFunctionsLcmRequestParameter) *WorkbookFunctionsLcmRequestBuilder {
+ bb := &WorkbookFunctionsLcmRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/lcm"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLcmRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLcmRequestBuilder) Request() *WorkbookFunctionsLcmRequest {
+ return &WorkbookFunctionsLcmRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLcmRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeft.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeft.go
new file mode 100644
index 00000000..16c25d74
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeft.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLeftRequestBuilder struct{ BaseRequestBuilder }
+
+// Left action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Left(reqObj *WorkbookFunctionsLeftRequestParameter) *WorkbookFunctionsLeftRequestBuilder {
+ bb := &WorkbookFunctionsLeftRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/left"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLeftRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLeftRequestBuilder) Request() *WorkbookFunctionsLeftRequest {
+ return &WorkbookFunctionsLeftRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLeftRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeftb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeftb.go
new file mode 100644
index 00000000..61b4f74e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLeftb.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLeftbRequestBuilder struct{ BaseRequestBuilder }
+
+// Leftb action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Leftb(reqObj *WorkbookFunctionsLeftbRequestParameter) *WorkbookFunctionsLeftbRequestBuilder {
+ bb := &WorkbookFunctionsLeftbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/leftb"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLeftbRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLeftbRequestBuilder) Request() *WorkbookFunctionsLeftbRequest {
+ return &WorkbookFunctionsLeftbRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLeftbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLen.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLen.go
new file mode 100644
index 00000000..34411b5f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLen.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLenRequestBuilder struct{ BaseRequestBuilder }
+
+// Len action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Len(reqObj *WorkbookFunctionsLenRequestParameter) *WorkbookFunctionsLenRequestBuilder {
+ bb := &WorkbookFunctionsLenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/len"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLenRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLenRequestBuilder) Request() *WorkbookFunctionsLenRequest {
+ return &WorkbookFunctionsLenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLenRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLenb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLenb.go
new file mode 100644
index 00000000..e7fe8401
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLenb.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLenbRequestBuilder struct{ BaseRequestBuilder }
+
+// Lenb action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Lenb(reqObj *WorkbookFunctionsLenbRequestParameter) *WorkbookFunctionsLenbRequestBuilder {
+ bb := &WorkbookFunctionsLenbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/lenb"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLenbRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLenbRequestBuilder) Request() *WorkbookFunctionsLenbRequest {
+ return &WorkbookFunctionsLenbRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLenbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLn.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLn.go
new file mode 100644
index 00000000..db775808
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLn.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLnRequestBuilder struct{ BaseRequestBuilder }
+
+// Ln action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Ln(reqObj *WorkbookFunctionsLnRequestParameter) *WorkbookFunctionsLnRequestBuilder {
+ bb := &WorkbookFunctionsLnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/ln"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLnRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLnRequestBuilder) Request() *WorkbookFunctionsLnRequest {
+ return &WorkbookFunctionsLnRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLnRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog.go
new file mode 100644
index 00000000..f536108a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLogRequestBuilder struct{ BaseRequestBuilder }
+
+// Log action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Log(reqObj *WorkbookFunctionsLogRequestParameter) *WorkbookFunctionsLogRequestBuilder {
+ bb := &WorkbookFunctionsLogRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/log"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLogRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLogRequestBuilder) Request() *WorkbookFunctionsLogRequest {
+ return &WorkbookFunctionsLogRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLogRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsLogNorm_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// LogNorm_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) LogNorm_Dist(reqObj *WorkbookFunctionsLogNorm_DistRequestParameter) *WorkbookFunctionsLogNorm_DistRequestBuilder {
+ bb := &WorkbookFunctionsLogNorm_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/logNorm_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLogNorm_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLogNorm_DistRequestBuilder) Request() *WorkbookFunctionsLogNorm_DistRequest {
+ return &WorkbookFunctionsLogNorm_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLogNorm_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsLogNorm_InvRequestBuilder struct{ BaseRequestBuilder }
+
+// LogNorm_Inv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) LogNorm_Inv(reqObj *WorkbookFunctionsLogNorm_InvRequestParameter) *WorkbookFunctionsLogNorm_InvRequestBuilder {
+ bb := &WorkbookFunctionsLogNorm_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/logNorm_Inv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLogNorm_InvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLogNorm_InvRequestBuilder) Request() *WorkbookFunctionsLogNorm_InvRequest {
+ return &WorkbookFunctionsLogNorm_InvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLogNorm_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog10.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog10.go
new file mode 100644
index 00000000..7ca02dc5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLog10.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLog10RequestBuilder struct{ BaseRequestBuilder }
+
+// Log10 action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Log10(reqObj *WorkbookFunctionsLog10RequestParameter) *WorkbookFunctionsLog10RequestBuilder {
+ bb := &WorkbookFunctionsLog10RequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/log10"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLog10Request struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLog10RequestBuilder) Request() *WorkbookFunctionsLog10Request {
+ return &WorkbookFunctionsLog10Request{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLog10Request) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLookup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLookup.go
new file mode 100644
index 00000000..a3746245
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLookup.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLookupRequestBuilder struct{ BaseRequestBuilder }
+
+// Lookup action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Lookup(reqObj *WorkbookFunctionsLookupRequestParameter) *WorkbookFunctionsLookupRequestBuilder {
+ bb := &WorkbookFunctionsLookupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/lookup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLookupRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLookupRequestBuilder) Request() *WorkbookFunctionsLookupRequest {
+ return &WorkbookFunctionsLookupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLookupRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLower.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLower.go
new file mode 100644
index 00000000..954adabf
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsLower.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsLowerRequestBuilder struct{ BaseRequestBuilder }
+
+// Lower action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Lower(reqObj *WorkbookFunctionsLowerRequestParameter) *WorkbookFunctionsLowerRequestBuilder {
+ bb := &WorkbookFunctionsLowerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/lower"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsLowerRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsLowerRequestBuilder) Request() *WorkbookFunctionsLowerRequest {
+ return &WorkbookFunctionsLowerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsLowerRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMatch.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMatch.go
new file mode 100644
index 00000000..7013bdbd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMatch.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMatchRequestBuilder struct{ BaseRequestBuilder }
+
+// Match action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Match(reqObj *WorkbookFunctionsMatchRequestParameter) *WorkbookFunctionsMatchRequestBuilder {
+ bb := &WorkbookFunctionsMatchRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/match"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMatchRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMatchRequestBuilder) Request() *WorkbookFunctionsMatchRequest {
+ return &WorkbookFunctionsMatchRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMatchRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMax.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMax.go
new file mode 100644
index 00000000..a77a1f89
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMax.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMaxRequestBuilder struct{ BaseRequestBuilder }
+
+// Max action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Max(reqObj *WorkbookFunctionsMaxRequestParameter) *WorkbookFunctionsMaxRequestBuilder {
+ bb := &WorkbookFunctionsMaxRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/max"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMaxRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMaxRequestBuilder) Request() *WorkbookFunctionsMaxRequest {
+ return &WorkbookFunctionsMaxRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMaxRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsMaxARequestBuilder struct{ BaseRequestBuilder }
+
+// MaxA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) MaxA(reqObj *WorkbookFunctionsMaxARequestParameter) *WorkbookFunctionsMaxARequestBuilder {
+ bb := &WorkbookFunctionsMaxARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/maxA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMaxARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMaxARequestBuilder) Request() *WorkbookFunctionsMaxARequest {
+ return &WorkbookFunctionsMaxARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMaxARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMduration.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMduration.go
new file mode 100644
index 00000000..e3029e78
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMduration.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMdurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Mduration action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Mduration(reqObj *WorkbookFunctionsMdurationRequestParameter) *WorkbookFunctionsMdurationRequestBuilder {
+ bb := &WorkbookFunctionsMdurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/mduration"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMdurationRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMdurationRequestBuilder) Request() *WorkbookFunctionsMdurationRequest {
+ return &WorkbookFunctionsMdurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMdurationRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMedian.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMedian.go
new file mode 100644
index 00000000..2c911f56
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMedian.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMedianRequestBuilder struct{ BaseRequestBuilder }
+
+// Median action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Median(reqObj *WorkbookFunctionsMedianRequestParameter) *WorkbookFunctionsMedianRequestBuilder {
+ bb := &WorkbookFunctionsMedianRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/median"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMedianRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMedianRequestBuilder) Request() *WorkbookFunctionsMedianRequest {
+ return &WorkbookFunctionsMedianRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMedianRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMid.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMid.go
new file mode 100644
index 00000000..330f54a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMid.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMidRequestBuilder struct{ BaseRequestBuilder }
+
+// Mid action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Mid(reqObj *WorkbookFunctionsMidRequestParameter) *WorkbookFunctionsMidRequestBuilder {
+ bb := &WorkbookFunctionsMidRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/mid"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMidRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMidRequestBuilder) Request() *WorkbookFunctionsMidRequest {
+ return &WorkbookFunctionsMidRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMidRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMidb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMidb.go
new file mode 100644
index 00000000..3da0e64d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMidb.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMidbRequestBuilder struct{ BaseRequestBuilder }
+
+// Midb action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Midb(reqObj *WorkbookFunctionsMidbRequestParameter) *WorkbookFunctionsMidbRequestBuilder {
+ bb := &WorkbookFunctionsMidbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/midb"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMidbRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMidbRequestBuilder) Request() *WorkbookFunctionsMidbRequest {
+ return &WorkbookFunctionsMidbRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMidbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMin.go
new file mode 100644
index 00000000..f2fc805a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMin.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMinRequestBuilder struct{ BaseRequestBuilder }
+
+// Min action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Min(reqObj *WorkbookFunctionsMinRequestParameter) *WorkbookFunctionsMinRequestBuilder {
+ bb := &WorkbookFunctionsMinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/min"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMinRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMinRequestBuilder) Request() *WorkbookFunctionsMinRequest {
+ return &WorkbookFunctionsMinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsMinARequestBuilder struct{ BaseRequestBuilder }
+
+// MinA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) MinA(reqObj *WorkbookFunctionsMinARequestParameter) *WorkbookFunctionsMinARequestBuilder {
+ bb := &WorkbookFunctionsMinARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/minA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMinARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMinARequestBuilder) Request() *WorkbookFunctionsMinARequest {
+ return &WorkbookFunctionsMinARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMinARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMinute.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMinute.go
new file mode 100644
index 00000000..39200c97
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMinute.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMinuteRequestBuilder struct{ BaseRequestBuilder }
+
+// Minute action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Minute(reqObj *WorkbookFunctionsMinuteRequestParameter) *WorkbookFunctionsMinuteRequestBuilder {
+ bb := &WorkbookFunctionsMinuteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/minute"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMinuteRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMinuteRequestBuilder) Request() *WorkbookFunctionsMinuteRequest {
+ return &WorkbookFunctionsMinuteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMinuteRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMirr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMirr.go
new file mode 100644
index 00000000..e6857606
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMirr.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMirrRequestBuilder struct{ BaseRequestBuilder }
+
+// Mirr action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Mirr(reqObj *WorkbookFunctionsMirrRequestParameter) *WorkbookFunctionsMirrRequestBuilder {
+ bb := &WorkbookFunctionsMirrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/mirr"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMirrRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMirrRequestBuilder) Request() *WorkbookFunctionsMirrRequest {
+ return &WorkbookFunctionsMirrRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMirrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMod.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMod.go
new file mode 100644
index 00000000..9c528fd1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMod.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsModRequestBuilder struct{ BaseRequestBuilder }
+
+// Mod action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Mod(reqObj *WorkbookFunctionsModRequestParameter) *WorkbookFunctionsModRequestBuilder {
+ bb := &WorkbookFunctionsModRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/mod"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsModRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsModRequestBuilder) Request() *WorkbookFunctionsModRequest {
+ return &WorkbookFunctionsModRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsModRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMonth.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMonth.go
new file mode 100644
index 00000000..1657c1a2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMonth.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMonthRequestBuilder struct{ BaseRequestBuilder }
+
+// Month action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Month(reqObj *WorkbookFunctionsMonthRequestParameter) *WorkbookFunctionsMonthRequestBuilder {
+ bb := &WorkbookFunctionsMonthRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/month"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMonthRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMonthRequestBuilder) Request() *WorkbookFunctionsMonthRequest {
+ return &WorkbookFunctionsMonthRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMonthRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go
new file mode 100644
index 00000000..ee7a443a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMround.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMroundRequestBuilder struct{ BaseRequestBuilder }
+
+// Mround action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Mround(reqObj *WorkbookFunctionsMroundRequestParameter) *WorkbookFunctionsMroundRequestBuilder {
+ bb := &WorkbookFunctionsMroundRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/mround"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMroundRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMroundRequestBuilder) Request() *WorkbookFunctionsMroundRequest {
+ return &WorkbookFunctionsMroundRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMroundRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMulti.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMulti.go
new file mode 100644
index 00000000..9fa57eeb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsMulti.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsMultiNomialRequestBuilder struct{ BaseRequestBuilder }
+
+// MultiNomial action undocumented
+func (b *WorkbookFunctionsRequestBuilder) MultiNomial(reqObj *WorkbookFunctionsMultiNomialRequestParameter) *WorkbookFunctionsMultiNomialRequestBuilder {
+ bb := &WorkbookFunctionsMultiNomialRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/multiNomial"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsMultiNomialRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsMultiNomialRequestBuilder) Request() *WorkbookFunctionsMultiNomialRequest {
+ return &WorkbookFunctionsMultiNomialRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsMultiNomialRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsN.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsN.go
new file mode 100644
index 00000000..dd3095b8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsN.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNRequestBuilder struct{ BaseRequestBuilder }
+
+// N action undocumented
+func (b *WorkbookFunctionsRequestBuilder) N(reqObj *WorkbookFunctionsNRequestParameter) *WorkbookFunctionsNRequestBuilder {
+ bb := &WorkbookFunctionsNRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/n"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNRequestBuilder) Request() *WorkbookFunctionsNRequest {
+ return &WorkbookFunctionsNRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNa.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNa.go
new file mode 100644
index 00000000..8065e8a3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNa.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNaRequestBuilder struct{ BaseRequestBuilder }
+
+// Na action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Na(reqObj *WorkbookFunctionsNaRequestParameter) *WorkbookFunctionsNaRequestBuilder {
+ bb := &WorkbookFunctionsNaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/na"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNaRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNaRequestBuilder) Request() *WorkbookFunctionsNaRequest {
+ return &WorkbookFunctionsNaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNeg.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNeg.go
new file mode 100644
index 00000000..b7950a53
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNeg.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNegBinom_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// NegBinom_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) NegBinom_Dist(reqObj *WorkbookFunctionsNegBinom_DistRequestParameter) *WorkbookFunctionsNegBinom_DistRequestBuilder {
+ bb := &WorkbookFunctionsNegBinom_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/negBinom_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNegBinom_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNegBinom_DistRequestBuilder) Request() *WorkbookFunctionsNegBinom_DistRequest {
+ return &WorkbookFunctionsNegBinom_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNegBinom_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNetwork.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNetwork.go
new file mode 100644
index 00000000..5003df98
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNetwork.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNetworkDaysRequestBuilder struct{ BaseRequestBuilder }
+
+// NetworkDays action undocumented
+func (b *WorkbookFunctionsRequestBuilder) NetworkDays(reqObj *WorkbookFunctionsNetworkDaysRequestParameter) *WorkbookFunctionsNetworkDaysRequestBuilder {
+ bb := &WorkbookFunctionsNetworkDaysRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/networkDays"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNetworkDaysRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNetworkDaysRequestBuilder) Request() *WorkbookFunctionsNetworkDaysRequest {
+ return &WorkbookFunctionsNetworkDaysRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNetworkDaysRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsNetworkDays_IntlRequestBuilder struct{ BaseRequestBuilder }
+
+// NetworkDays_Intl action undocumented
+func (b *WorkbookFunctionsRequestBuilder) NetworkDays_Intl(reqObj *WorkbookFunctionsNetworkDays_IntlRequestParameter) *WorkbookFunctionsNetworkDays_IntlRequestBuilder {
+ bb := &WorkbookFunctionsNetworkDays_IntlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/networkDays_Intl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNetworkDays_IntlRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNetworkDays_IntlRequestBuilder) Request() *WorkbookFunctionsNetworkDays_IntlRequest {
+ return &WorkbookFunctionsNetworkDays_IntlRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNetworkDays_IntlRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNominal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNominal.go
new file mode 100644
index 00000000..b17b3fa6
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNominal.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNominalRequestBuilder struct{ BaseRequestBuilder }
+
+// Nominal action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Nominal(reqObj *WorkbookFunctionsNominalRequestParameter) *WorkbookFunctionsNominalRequestBuilder {
+ bb := &WorkbookFunctionsNominalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/nominal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNominalRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNominalRequestBuilder) Request() *WorkbookFunctionsNominalRequest {
+ return &WorkbookFunctionsNominalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNominalRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNorm_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNorm_.go
new file mode 100644
index 00000000..83ca0012
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNorm_.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNorm_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// Norm_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Norm_Dist(reqObj *WorkbookFunctionsNorm_DistRequestParameter) *WorkbookFunctionsNorm_DistRequestBuilder {
+ bb := &WorkbookFunctionsNorm_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/norm_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNorm_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNorm_DistRequestBuilder) Request() *WorkbookFunctionsNorm_DistRequest {
+ return &WorkbookFunctionsNorm_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNorm_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsNorm_InvRequestBuilder struct{ BaseRequestBuilder }
+
+// Norm_Inv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Norm_Inv(reqObj *WorkbookFunctionsNorm_InvRequestParameter) *WorkbookFunctionsNorm_InvRequestBuilder {
+ bb := &WorkbookFunctionsNorm_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/norm_Inv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNorm_InvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNorm_InvRequestBuilder) Request() *WorkbookFunctionsNorm_InvRequest {
+ return &WorkbookFunctionsNorm_InvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNorm_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsNorm_S_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// Norm_S_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Norm_S_Dist(reqObj *WorkbookFunctionsNorm_S_DistRequestParameter) *WorkbookFunctionsNorm_S_DistRequestBuilder {
+ bb := &WorkbookFunctionsNorm_S_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/norm_S_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNorm_S_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNorm_S_DistRequestBuilder) Request() *WorkbookFunctionsNorm_S_DistRequest {
+ return &WorkbookFunctionsNorm_S_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNorm_S_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsNorm_S_InvRequestBuilder struct{ BaseRequestBuilder }
+
+// Norm_S_Inv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Norm_S_Inv(reqObj *WorkbookFunctionsNorm_S_InvRequestParameter) *WorkbookFunctionsNorm_S_InvRequestBuilder {
+ bb := &WorkbookFunctionsNorm_S_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/norm_S_Inv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNorm_S_InvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNorm_S_InvRequestBuilder) Request() *WorkbookFunctionsNorm_S_InvRequest {
+ return &WorkbookFunctionsNorm_S_InvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNorm_S_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNot.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNot.go
new file mode 100644
index 00000000..9e568d82
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNot.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNotRequestBuilder struct{ BaseRequestBuilder }
+
+// Not action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Not(reqObj *WorkbookFunctionsNotRequestParameter) *WorkbookFunctionsNotRequestBuilder {
+ bb := &WorkbookFunctionsNotRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/not"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNotRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNotRequestBuilder) Request() *WorkbookFunctionsNotRequest {
+ return &WorkbookFunctionsNotRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNotRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNow.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNow.go
new file mode 100644
index 00000000..3fa1181f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNow.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNowRequestBuilder struct{ BaseRequestBuilder }
+
+// Now action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Now(reqObj *WorkbookFunctionsNowRequestParameter) *WorkbookFunctionsNowRequestBuilder {
+ bb := &WorkbookFunctionsNowRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/now"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNowRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNowRequestBuilder) Request() *WorkbookFunctionsNowRequest {
+ return &WorkbookFunctionsNowRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNowRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNper.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNper.go
new file mode 100644
index 00000000..2abf6221
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNper.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNperRequestBuilder struct{ BaseRequestBuilder }
+
+// Nper action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Nper(reqObj *WorkbookFunctionsNperRequestParameter) *WorkbookFunctionsNperRequestBuilder {
+ bb := &WorkbookFunctionsNperRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/nper"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNperRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNperRequestBuilder) Request() *WorkbookFunctionsNperRequest {
+ return &WorkbookFunctionsNperRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNperRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNpv.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNpv.go
new file mode 100644
index 00000000..3fe990de
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNpv.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNpvRequestBuilder struct{ BaseRequestBuilder }
+
+// Npv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Npv(reqObj *WorkbookFunctionsNpvRequestParameter) *WorkbookFunctionsNpvRequestBuilder {
+ bb := &WorkbookFunctionsNpvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/npv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNpvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNpvRequestBuilder) Request() *WorkbookFunctionsNpvRequest {
+ return &WorkbookFunctionsNpvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNpvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNumber.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNumber.go
new file mode 100644
index 00000000..c783e95d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsNumber.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsNumberValueRequestBuilder struct{ BaseRequestBuilder }
+
+// NumberValue action undocumented
+func (b *WorkbookFunctionsRequestBuilder) NumberValue(reqObj *WorkbookFunctionsNumberValueRequestParameter) *WorkbookFunctionsNumberValueRequestBuilder {
+ bb := &WorkbookFunctionsNumberValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/numberValue"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsNumberValueRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsNumberValueRequestBuilder) Request() *WorkbookFunctionsNumberValueRequest {
+ return &WorkbookFunctionsNumberValueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsNumberValueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOct2.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOct2.go
new file mode 100644
index 00000000..625b478c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOct2.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsOct2BinRequestBuilder struct{ BaseRequestBuilder }
+
+// Oct2Bin action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Oct2Bin(reqObj *WorkbookFunctionsOct2BinRequestParameter) *WorkbookFunctionsOct2BinRequestBuilder {
+ bb := &WorkbookFunctionsOct2BinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/oct2Bin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsOct2BinRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsOct2BinRequestBuilder) Request() *WorkbookFunctionsOct2BinRequest {
+ return &WorkbookFunctionsOct2BinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsOct2BinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsOct2DecRequestBuilder struct{ BaseRequestBuilder }
+
+// Oct2Dec action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Oct2Dec(reqObj *WorkbookFunctionsOct2DecRequestParameter) *WorkbookFunctionsOct2DecRequestBuilder {
+ bb := &WorkbookFunctionsOct2DecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/oct2Dec"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsOct2DecRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsOct2DecRequestBuilder) Request() *WorkbookFunctionsOct2DecRequest {
+ return &WorkbookFunctionsOct2DecRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsOct2DecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsOct2HexRequestBuilder struct{ BaseRequestBuilder }
+
+// Oct2Hex action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Oct2Hex(reqObj *WorkbookFunctionsOct2HexRequestParameter) *WorkbookFunctionsOct2HexRequestBuilder {
+ bb := &WorkbookFunctionsOct2HexRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/oct2Hex"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsOct2HexRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsOct2HexRequestBuilder) Request() *WorkbookFunctionsOct2HexRequest {
+ return &WorkbookFunctionsOct2HexRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsOct2HexRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOdd.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOdd.go
new file mode 100644
index 00000000..0600ab4b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOdd.go
@@ -0,0 +1,140 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsOddRequestBuilder struct{ BaseRequestBuilder }
+
+// Odd action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Odd(reqObj *WorkbookFunctionsOddRequestParameter) *WorkbookFunctionsOddRequestBuilder {
+ bb := &WorkbookFunctionsOddRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/odd"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsOddRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsOddRequestBuilder) Request() *WorkbookFunctionsOddRequest {
+ return &WorkbookFunctionsOddRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsOddRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsOddFPriceRequestBuilder struct{ BaseRequestBuilder }
+
+// OddFPrice action undocumented
+func (b *WorkbookFunctionsRequestBuilder) OddFPrice(reqObj *WorkbookFunctionsOddFPriceRequestParameter) *WorkbookFunctionsOddFPriceRequestBuilder {
+ bb := &WorkbookFunctionsOddFPriceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/oddFPrice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsOddFPriceRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsOddFPriceRequestBuilder) Request() *WorkbookFunctionsOddFPriceRequest {
+ return &WorkbookFunctionsOddFPriceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsOddFPriceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsOddFYieldRequestBuilder struct{ BaseRequestBuilder }
+
+// OddFYield action undocumented
+func (b *WorkbookFunctionsRequestBuilder) OddFYield(reqObj *WorkbookFunctionsOddFYieldRequestParameter) *WorkbookFunctionsOddFYieldRequestBuilder {
+ bb := &WorkbookFunctionsOddFYieldRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/oddFYield"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsOddFYieldRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsOddFYieldRequestBuilder) Request() *WorkbookFunctionsOddFYieldRequest {
+ return &WorkbookFunctionsOddFYieldRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsOddFYieldRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsOddLPriceRequestBuilder struct{ BaseRequestBuilder }
+
+// OddLPrice action undocumented
+func (b *WorkbookFunctionsRequestBuilder) OddLPrice(reqObj *WorkbookFunctionsOddLPriceRequestParameter) *WorkbookFunctionsOddLPriceRequestBuilder {
+ bb := &WorkbookFunctionsOddLPriceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/oddLPrice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsOddLPriceRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsOddLPriceRequestBuilder) Request() *WorkbookFunctionsOddLPriceRequest {
+ return &WorkbookFunctionsOddLPriceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsOddLPriceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsOddLYieldRequestBuilder struct{ BaseRequestBuilder }
+
+// OddLYield action undocumented
+func (b *WorkbookFunctionsRequestBuilder) OddLYield(reqObj *WorkbookFunctionsOddLYieldRequestParameter) *WorkbookFunctionsOddLYieldRequestBuilder {
+ bb := &WorkbookFunctionsOddLYieldRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/oddLYield"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsOddLYieldRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsOddLYieldRequestBuilder) Request() *WorkbookFunctionsOddLYieldRequest {
+ return &WorkbookFunctionsOddLYieldRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsOddLYieldRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOr.go
new file mode 100644
index 00000000..6ac56589
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsOr.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsOrRequestBuilder struct{ BaseRequestBuilder }
+
+// Or action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Or(reqObj *WorkbookFunctionsOrRequestParameter) *WorkbookFunctionsOrRequestBuilder {
+ bb := &WorkbookFunctionsOrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/or"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsOrRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsOrRequestBuilder) Request() *WorkbookFunctionsOrRequest {
+ return &WorkbookFunctionsOrRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsOrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPduration.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPduration.go
new file mode 100644
index 00000000..65bbddd8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPduration.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPdurationRequestBuilder struct{ BaseRequestBuilder }
+
+// Pduration action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Pduration(reqObj *WorkbookFunctionsPdurationRequestParameter) *WorkbookFunctionsPdurationRequestBuilder {
+ bb := &WorkbookFunctionsPdurationRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/pduration"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPdurationRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPdurationRequestBuilder) Request() *WorkbookFunctionsPdurationRequest {
+ return &WorkbookFunctionsPdurationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPdurationRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercent.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercent.go
new file mode 100644
index 00000000..a866813d
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercent.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPercentRank_ExcRequestBuilder struct{ BaseRequestBuilder }
+
+// PercentRank_Exc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) PercentRank_Exc(reqObj *WorkbookFunctionsPercentRank_ExcRequestParameter) *WorkbookFunctionsPercentRank_ExcRequestBuilder {
+ bb := &WorkbookFunctionsPercentRank_ExcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/percentRank_Exc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPercentRank_ExcRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPercentRank_ExcRequestBuilder) Request() *WorkbookFunctionsPercentRank_ExcRequest {
+ return &WorkbookFunctionsPercentRank_ExcRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPercentRank_ExcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsPercentRank_IncRequestBuilder struct{ BaseRequestBuilder }
+
+// PercentRank_Inc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) PercentRank_Inc(reqObj *WorkbookFunctionsPercentRank_IncRequestParameter) *WorkbookFunctionsPercentRank_IncRequestBuilder {
+ bb := &WorkbookFunctionsPercentRank_IncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/percentRank_Inc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPercentRank_IncRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPercentRank_IncRequestBuilder) Request() *WorkbookFunctionsPercentRank_IncRequest {
+ return &WorkbookFunctionsPercentRank_IncRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPercentRank_IncRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go
new file mode 100644
index 00000000..74e6da92
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPercentile_.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPercentile_ExcRequestBuilder struct{ BaseRequestBuilder }
+
+// Percentile_Exc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Percentile_Exc(reqObj *WorkbookFunctionsPercentile_ExcRequestParameter) *WorkbookFunctionsPercentile_ExcRequestBuilder {
+ bb := &WorkbookFunctionsPercentile_ExcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/percentile_Exc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPercentile_ExcRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPercentile_ExcRequestBuilder) Request() *WorkbookFunctionsPercentile_ExcRequest {
+ return &WorkbookFunctionsPercentile_ExcRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPercentile_ExcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsPercentile_IncRequestBuilder struct{ BaseRequestBuilder }
+
+// Percentile_Inc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Percentile_Inc(reqObj *WorkbookFunctionsPercentile_IncRequestParameter) *WorkbookFunctionsPercentile_IncRequestBuilder {
+ bb := &WorkbookFunctionsPercentile_IncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/percentile_Inc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPercentile_IncRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPercentile_IncRequestBuilder) Request() *WorkbookFunctionsPercentile_IncRequest {
+ return &WorkbookFunctionsPercentile_IncRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPercentile_IncRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermut.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermut.go
new file mode 100644
index 00000000..28600d2c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermut.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPermutRequestBuilder struct{ BaseRequestBuilder }
+
+// Permut action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Permut(reqObj *WorkbookFunctionsPermutRequestParameter) *WorkbookFunctionsPermutRequestBuilder {
+ bb := &WorkbookFunctionsPermutRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/permut"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPermutRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPermutRequestBuilder) Request() *WorkbookFunctionsPermutRequest {
+ return &WorkbookFunctionsPermutRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPermutRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermutationa.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermutationa.go
new file mode 100644
index 00000000..39777101
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPermutationa.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPermutationaRequestBuilder struct{ BaseRequestBuilder }
+
+// Permutationa action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Permutationa(reqObj *WorkbookFunctionsPermutationaRequestParameter) *WorkbookFunctionsPermutationaRequestBuilder {
+ bb := &WorkbookFunctionsPermutationaRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/permutationa"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPermutationaRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPermutationaRequestBuilder) Request() *WorkbookFunctionsPermutationaRequest {
+ return &WorkbookFunctionsPermutationaRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPermutationaRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPhi.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPhi.go
new file mode 100644
index 00000000..bc3b1acd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPhi.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPhiRequestBuilder struct{ BaseRequestBuilder }
+
+// Phi action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Phi(reqObj *WorkbookFunctionsPhiRequestParameter) *WorkbookFunctionsPhiRequestBuilder {
+ bb := &WorkbookFunctionsPhiRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/phi"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPhiRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPhiRequestBuilder) Request() *WorkbookFunctionsPhiRequest {
+ return &WorkbookFunctionsPhiRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPhiRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPi.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPi.go
new file mode 100644
index 00000000..0fe31000
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPi.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPiRequestBuilder struct{ BaseRequestBuilder }
+
+// Pi action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Pi(reqObj *WorkbookFunctionsPiRequestParameter) *WorkbookFunctionsPiRequestBuilder {
+ bb := &WorkbookFunctionsPiRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/pi"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPiRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPiRequestBuilder) Request() *WorkbookFunctionsPiRequest {
+ return &WorkbookFunctionsPiRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPiRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPmt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPmt.go
new file mode 100644
index 00000000..b7ad651b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPmt.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPmtRequestBuilder struct{ BaseRequestBuilder }
+
+// Pmt action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Pmt(reqObj *WorkbookFunctionsPmtRequestParameter) *WorkbookFunctionsPmtRequestBuilder {
+ bb := &WorkbookFunctionsPmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/pmt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPmtRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPmtRequestBuilder) Request() *WorkbookFunctionsPmtRequest {
+ return &WorkbookFunctionsPmtRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPoisson_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPoisson_.go
new file mode 100644
index 00000000..398a2d35
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPoisson_.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPoisson_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// Poisson_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Poisson_Dist(reqObj *WorkbookFunctionsPoisson_DistRequestParameter) *WorkbookFunctionsPoisson_DistRequestBuilder {
+ bb := &WorkbookFunctionsPoisson_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/poisson_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPoisson_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPoisson_DistRequestBuilder) Request() *WorkbookFunctionsPoisson_DistRequest {
+ return &WorkbookFunctionsPoisson_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPoisson_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPower.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPower.go
new file mode 100644
index 00000000..12f0b4be
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPower.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPowerRequestBuilder struct{ BaseRequestBuilder }
+
+// Power action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Power(reqObj *WorkbookFunctionsPowerRequestParameter) *WorkbookFunctionsPowerRequestBuilder {
+ bb := &WorkbookFunctionsPowerRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/power"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPowerRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPowerRequestBuilder) Request() *WorkbookFunctionsPowerRequest {
+ return &WorkbookFunctionsPowerRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPowerRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPpmt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPpmt.go
new file mode 100644
index 00000000..c82a5cdb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPpmt.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPpmtRequestBuilder struct{ BaseRequestBuilder }
+
+// Ppmt action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Ppmt(reqObj *WorkbookFunctionsPpmtRequestParameter) *WorkbookFunctionsPpmtRequestBuilder {
+ bb := &WorkbookFunctionsPpmtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/ppmt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPpmtRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPpmtRequestBuilder) Request() *WorkbookFunctionsPpmtRequest {
+ return &WorkbookFunctionsPpmtRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPpmtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPrice.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPrice.go
new file mode 100644
index 00000000..05eb4618
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPrice.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPriceRequestBuilder struct{ BaseRequestBuilder }
+
+// Price action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Price(reqObj *WorkbookFunctionsPriceRequestParameter) *WorkbookFunctionsPriceRequestBuilder {
+ bb := &WorkbookFunctionsPriceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/price"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPriceRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPriceRequestBuilder) Request() *WorkbookFunctionsPriceRequest {
+ return &WorkbookFunctionsPriceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPriceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsPriceDiscRequestBuilder struct{ BaseRequestBuilder }
+
+// PriceDisc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) PriceDisc(reqObj *WorkbookFunctionsPriceDiscRequestParameter) *WorkbookFunctionsPriceDiscRequestBuilder {
+ bb := &WorkbookFunctionsPriceDiscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/priceDisc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPriceDiscRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPriceDiscRequestBuilder) Request() *WorkbookFunctionsPriceDiscRequest {
+ return &WorkbookFunctionsPriceDiscRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPriceDiscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsPriceMatRequestBuilder struct{ BaseRequestBuilder }
+
+// PriceMat action undocumented
+func (b *WorkbookFunctionsRequestBuilder) PriceMat(reqObj *WorkbookFunctionsPriceMatRequestParameter) *WorkbookFunctionsPriceMatRequestBuilder {
+ bb := &WorkbookFunctionsPriceMatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/priceMat"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPriceMatRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPriceMatRequestBuilder) Request() *WorkbookFunctionsPriceMatRequest {
+ return &WorkbookFunctionsPriceMatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPriceMatRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProduct.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProduct.go
new file mode 100644
index 00000000..c0455d05
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProduct.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsProductRequestBuilder struct{ BaseRequestBuilder }
+
+// Product action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Product(reqObj *WorkbookFunctionsProductRequestParameter) *WorkbookFunctionsProductRequestBuilder {
+ bb := &WorkbookFunctionsProductRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/product"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsProductRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsProductRequestBuilder) Request() *WorkbookFunctionsProductRequest {
+ return &WorkbookFunctionsProductRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsProductRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProper.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProper.go
new file mode 100644
index 00000000..92813ddb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsProper.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsProperRequestBuilder struct{ BaseRequestBuilder }
+
+// Proper action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Proper(reqObj *WorkbookFunctionsProperRequestParameter) *WorkbookFunctionsProperRequestBuilder {
+ bb := &WorkbookFunctionsProperRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/proper"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsProperRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsProperRequestBuilder) Request() *WorkbookFunctionsProperRequest {
+ return &WorkbookFunctionsProperRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsProperRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPv.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPv.go
new file mode 100644
index 00000000..364e2c11
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsPv.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsPvRequestBuilder struct{ BaseRequestBuilder }
+
+// Pv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Pv(reqObj *WorkbookFunctionsPvRequestParameter) *WorkbookFunctionsPvRequestBuilder {
+ bb := &WorkbookFunctionsPvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/pv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsPvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsPvRequestBuilder) Request() *WorkbookFunctionsPvRequest {
+ return &WorkbookFunctionsPvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsPvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuartile_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuartile_.go
new file mode 100644
index 00000000..a02ef532
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuartile_.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsQuartile_ExcRequestBuilder struct{ BaseRequestBuilder }
+
+// Quartile_Exc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Quartile_Exc(reqObj *WorkbookFunctionsQuartile_ExcRequestParameter) *WorkbookFunctionsQuartile_ExcRequestBuilder {
+ bb := &WorkbookFunctionsQuartile_ExcRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/quartile_Exc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsQuartile_ExcRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsQuartile_ExcRequestBuilder) Request() *WorkbookFunctionsQuartile_ExcRequest {
+ return &WorkbookFunctionsQuartile_ExcRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsQuartile_ExcRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsQuartile_IncRequestBuilder struct{ BaseRequestBuilder }
+
+// Quartile_Inc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Quartile_Inc(reqObj *WorkbookFunctionsQuartile_IncRequestParameter) *WorkbookFunctionsQuartile_IncRequestBuilder {
+ bb := &WorkbookFunctionsQuartile_IncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/quartile_Inc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsQuartile_IncRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsQuartile_IncRequestBuilder) Request() *WorkbookFunctionsQuartile_IncRequest {
+ return &WorkbookFunctionsQuartile_IncRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsQuartile_IncRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuotient.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuotient.go
new file mode 100644
index 00000000..7599aad5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsQuotient.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsQuotientRequestBuilder struct{ BaseRequestBuilder }
+
+// Quotient action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Quotient(reqObj *WorkbookFunctionsQuotientRequestParameter) *WorkbookFunctionsQuotientRequestBuilder {
+ bb := &WorkbookFunctionsQuotientRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/quotient"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsQuotientRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsQuotientRequestBuilder) Request() *WorkbookFunctionsQuotientRequest {
+ return &WorkbookFunctionsQuotientRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsQuotientRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRadians.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRadians.go
new file mode 100644
index 00000000..b77a6eef
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRadians.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRadiansRequestBuilder struct{ BaseRequestBuilder }
+
+// Radians action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Radians(reqObj *WorkbookFunctionsRadiansRequestParameter) *WorkbookFunctionsRadiansRequestBuilder {
+ bb := &WorkbookFunctionsRadiansRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/radians"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRadiansRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRadiansRequestBuilder) Request() *WorkbookFunctionsRadiansRequest {
+ return &WorkbookFunctionsRadiansRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRadiansRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRand.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRand.go
new file mode 100644
index 00000000..51aa766e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRand.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRandRequestBuilder struct{ BaseRequestBuilder }
+
+// Rand action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Rand(reqObj *WorkbookFunctionsRandRequestParameter) *WorkbookFunctionsRandRequestBuilder {
+ bb := &WorkbookFunctionsRandRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rand"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRandRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRandRequestBuilder) Request() *WorkbookFunctionsRandRequest {
+ return &WorkbookFunctionsRandRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRandRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsRandBetweenRequestBuilder struct{ BaseRequestBuilder }
+
+// RandBetween action undocumented
+func (b *WorkbookFunctionsRequestBuilder) RandBetween(reqObj *WorkbookFunctionsRandBetweenRequestParameter) *WorkbookFunctionsRandBetweenRequestBuilder {
+ bb := &WorkbookFunctionsRandBetweenRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/randBetween"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRandBetweenRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRandBetweenRequestBuilder) Request() *WorkbookFunctionsRandBetweenRequest {
+ return &WorkbookFunctionsRandBetweenRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRandBetweenRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRank_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRank_.go
new file mode 100644
index 00000000..2f427adb
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRank_.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRank_AvgRequestBuilder struct{ BaseRequestBuilder }
+
+// Rank_Avg action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Rank_Avg(reqObj *WorkbookFunctionsRank_AvgRequestParameter) *WorkbookFunctionsRank_AvgRequestBuilder {
+ bb := &WorkbookFunctionsRank_AvgRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rank_Avg"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRank_AvgRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRank_AvgRequestBuilder) Request() *WorkbookFunctionsRank_AvgRequest {
+ return &WorkbookFunctionsRank_AvgRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRank_AvgRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsRank_EqRequestBuilder struct{ BaseRequestBuilder }
+
+// Rank_Eq action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Rank_Eq(reqObj *WorkbookFunctionsRank_EqRequestParameter) *WorkbookFunctionsRank_EqRequestBuilder {
+ bb := &WorkbookFunctionsRank_EqRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rank_Eq"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRank_EqRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRank_EqRequestBuilder) Request() *WorkbookFunctionsRank_EqRequest {
+ return &WorkbookFunctionsRank_EqRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRank_EqRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRate.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRate.go
new file mode 100644
index 00000000..226d7543
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRate.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRateRequestBuilder struct{ BaseRequestBuilder }
+
+// Rate action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Rate(reqObj *WorkbookFunctionsRateRequestParameter) *WorkbookFunctionsRateRequestBuilder {
+ bb := &WorkbookFunctionsRateRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rate"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRateRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRateRequestBuilder) Request() *WorkbookFunctionsRateRequest {
+ return &WorkbookFunctionsRateRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRateRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReceived.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReceived.go
new file mode 100644
index 00000000..18b6723a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReceived.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsReceivedRequestBuilder struct{ BaseRequestBuilder }
+
+// Received action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Received(reqObj *WorkbookFunctionsReceivedRequestParameter) *WorkbookFunctionsReceivedRequestBuilder {
+ bb := &WorkbookFunctionsReceivedRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/received"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsReceivedRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsReceivedRequestBuilder) Request() *WorkbookFunctionsReceivedRequest {
+ return &WorkbookFunctionsReceivedRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsReceivedRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReplace.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReplace.go
new file mode 100644
index 00000000..48a08e59
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsReplace.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsReplaceRequestBuilder struct{ BaseRequestBuilder }
+
+// Replace action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Replace(reqObj *WorkbookFunctionsReplaceRequestParameter) *WorkbookFunctionsReplaceRequestBuilder {
+ bb := &WorkbookFunctionsReplaceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/replace"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsReplaceRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsReplaceRequestBuilder) Request() *WorkbookFunctionsReplaceRequest {
+ return &WorkbookFunctionsReplaceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsReplaceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsReplaceBRequestBuilder struct{ BaseRequestBuilder }
+
+// ReplaceB action undocumented
+func (b *WorkbookFunctionsRequestBuilder) ReplaceB(reqObj *WorkbookFunctionsReplaceBRequestParameter) *WorkbookFunctionsReplaceBRequestBuilder {
+ bb := &WorkbookFunctionsReplaceBRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/replaceB"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsReplaceBRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsReplaceBRequestBuilder) Request() *WorkbookFunctionsReplaceBRequest {
+ return &WorkbookFunctionsReplaceBRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsReplaceBRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRept.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRept.go
new file mode 100644
index 00000000..72f10a91
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRept.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsReptRequestBuilder struct{ BaseRequestBuilder }
+
+// Rept action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Rept(reqObj *WorkbookFunctionsReptRequestParameter) *WorkbookFunctionsReptRequestBuilder {
+ bb := &WorkbookFunctionsReptRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rept"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsReptRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsReptRequestBuilder) Request() *WorkbookFunctionsReptRequest {
+ return &WorkbookFunctionsReptRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsReptRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRight.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRight.go
new file mode 100644
index 00000000..a705dc38
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRight.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRightRequestBuilder struct{ BaseRequestBuilder }
+
+// Right action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Right(reqObj *WorkbookFunctionsRightRequestParameter) *WorkbookFunctionsRightRequestBuilder {
+ bb := &WorkbookFunctionsRightRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/right"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRightRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRightRequestBuilder) Request() *WorkbookFunctionsRightRequest {
+ return &WorkbookFunctionsRightRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRightRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRightb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRightb.go
new file mode 100644
index 00000000..da4b46d9
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRightb.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRightbRequestBuilder struct{ BaseRequestBuilder }
+
+// Rightb action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Rightb(reqObj *WorkbookFunctionsRightbRequestParameter) *WorkbookFunctionsRightbRequestBuilder {
+ bb := &WorkbookFunctionsRightbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rightb"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRightbRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRightbRequestBuilder) Request() *WorkbookFunctionsRightbRequest {
+ return &WorkbookFunctionsRightbRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRightbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRoman.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRoman.go
new file mode 100644
index 00000000..5c262917
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRoman.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRomanRequestBuilder struct{ BaseRequestBuilder }
+
+// Roman action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Roman(reqObj *WorkbookFunctionsRomanRequestParameter) *WorkbookFunctionsRomanRequestBuilder {
+ bb := &WorkbookFunctionsRomanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/roman"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRomanRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRomanRequestBuilder) Request() *WorkbookFunctionsRomanRequest {
+ return &WorkbookFunctionsRomanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRomanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRound.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRound.go
new file mode 100644
index 00000000..98b7d91e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRound.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRoundRequestBuilder struct{ BaseRequestBuilder }
+
+// Round action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Round(reqObj *WorkbookFunctionsRoundRequestParameter) *WorkbookFunctionsRoundRequestBuilder {
+ bb := &WorkbookFunctionsRoundRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/round"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRoundRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRoundRequestBuilder) Request() *WorkbookFunctionsRoundRequest {
+ return &WorkbookFunctionsRoundRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRoundRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsRoundDownRequestBuilder struct{ BaseRequestBuilder }
+
+// RoundDown action undocumented
+func (b *WorkbookFunctionsRequestBuilder) RoundDown(reqObj *WorkbookFunctionsRoundDownRequestParameter) *WorkbookFunctionsRoundDownRequestBuilder {
+ bb := &WorkbookFunctionsRoundDownRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/roundDown"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRoundDownRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRoundDownRequestBuilder) Request() *WorkbookFunctionsRoundDownRequest {
+ return &WorkbookFunctionsRoundDownRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRoundDownRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsRoundUpRequestBuilder struct{ BaseRequestBuilder }
+
+// RoundUp action undocumented
+func (b *WorkbookFunctionsRequestBuilder) RoundUp(reqObj *WorkbookFunctionsRoundUpRequestParameter) *WorkbookFunctionsRoundUpRequestBuilder {
+ bb := &WorkbookFunctionsRoundUpRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/roundUp"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRoundUpRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRoundUpRequestBuilder) Request() *WorkbookFunctionsRoundUpRequest {
+ return &WorkbookFunctionsRoundUpRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRoundUpRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRows.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRows.go
new file mode 100644
index 00000000..4ddcd439
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRows.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRowsRequestBuilder struct{ BaseRequestBuilder }
+
+// Rows action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Rows(reqObj *WorkbookFunctionsRowsRequestParameter) *WorkbookFunctionsRowsRequestBuilder {
+ bb := &WorkbookFunctionsRowsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rows"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRowsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRowsRequestBuilder) Request() *WorkbookFunctionsRowsRequest {
+ return &WorkbookFunctionsRowsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRowsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRri.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRri.go
new file mode 100644
index 00000000..9a791b5f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsRri.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsRriRequestBuilder struct{ BaseRequestBuilder }
+
+// Rri action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Rri(reqObj *WorkbookFunctionsRriRequestParameter) *WorkbookFunctionsRriRequestBuilder {
+ bb := &WorkbookFunctionsRriRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/rri"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsRriRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsRriRequestBuilder) Request() *WorkbookFunctionsRriRequest {
+ return &WorkbookFunctionsRriRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsRriRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSec.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSec.go
new file mode 100644
index 00000000..3980aed4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSec.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSecRequestBuilder struct{ BaseRequestBuilder }
+
+// Sec action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sec(reqObj *WorkbookFunctionsSecRequestParameter) *WorkbookFunctionsSecRequestBuilder {
+ bb := &WorkbookFunctionsSecRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sec"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSecRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSecRequestBuilder) Request() *WorkbookFunctionsSecRequest {
+ return &WorkbookFunctionsSecRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSecRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSech.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSech.go
new file mode 100644
index 00000000..67ba1f1a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSech.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSechRequestBuilder struct{ BaseRequestBuilder }
+
+// Sech action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sech(reqObj *WorkbookFunctionsSechRequestParameter) *WorkbookFunctionsSechRequestBuilder {
+ bb := &WorkbookFunctionsSechRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sech"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSechRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSechRequestBuilder) Request() *WorkbookFunctionsSechRequest {
+ return &WorkbookFunctionsSechRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSechRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSecond.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSecond.go
new file mode 100644
index 00000000..aeb62248
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSecond.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSecondRequestBuilder struct{ BaseRequestBuilder }
+
+// Second action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Second(reqObj *WorkbookFunctionsSecondRequestParameter) *WorkbookFunctionsSecondRequestBuilder {
+ bb := &WorkbookFunctionsSecondRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/second"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSecondRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSecondRequestBuilder) Request() *WorkbookFunctionsSecondRequest {
+ return &WorkbookFunctionsSecondRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSecondRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSeries.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSeries.go
new file mode 100644
index 00000000..3172ebec
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSeries.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSeriesSumRequestBuilder struct{ BaseRequestBuilder }
+
+// SeriesSum action undocumented
+func (b *WorkbookFunctionsRequestBuilder) SeriesSum(reqObj *WorkbookFunctionsSeriesSumRequestParameter) *WorkbookFunctionsSeriesSumRequestBuilder {
+ bb := &WorkbookFunctionsSeriesSumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/seriesSum"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSeriesSumRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSeriesSumRequestBuilder) Request() *WorkbookFunctionsSeriesSumRequest {
+ return &WorkbookFunctionsSeriesSumRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSeriesSumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheet.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheet.go
new file mode 100644
index 00000000..ebc3f3f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheet.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSheetRequestBuilder struct{ BaseRequestBuilder }
+
+// Sheet action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sheet(reqObj *WorkbookFunctionsSheetRequestParameter) *WorkbookFunctionsSheetRequestBuilder {
+ bb := &WorkbookFunctionsSheetRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sheet"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSheetRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSheetRequestBuilder) Request() *WorkbookFunctionsSheetRequest {
+ return &WorkbookFunctionsSheetRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSheetRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheets.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheets.go
new file mode 100644
index 00000000..a6de3c52
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSheets.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSheetsRequestBuilder struct{ BaseRequestBuilder }
+
+// Sheets action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sheets(reqObj *WorkbookFunctionsSheetsRequestParameter) *WorkbookFunctionsSheetsRequestBuilder {
+ bb := &WorkbookFunctionsSheetsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sheets"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSheetsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSheetsRequestBuilder) Request() *WorkbookFunctionsSheetsRequest {
+ return &WorkbookFunctionsSheetsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSheetsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSign.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSign.go
new file mode 100644
index 00000000..8351ef61
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSign.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSignRequestBuilder struct{ BaseRequestBuilder }
+
+// Sign action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sign(reqObj *WorkbookFunctionsSignRequestParameter) *WorkbookFunctionsSignRequestBuilder {
+ bb := &WorkbookFunctionsSignRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sign"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSignRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSignRequestBuilder) Request() *WorkbookFunctionsSignRequest {
+ return &WorkbookFunctionsSignRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSignRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSin.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSin.go
new file mode 100644
index 00000000..459b2862
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSin.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSinRequestBuilder struct{ BaseRequestBuilder }
+
+// Sin action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sin(reqObj *WorkbookFunctionsSinRequestParameter) *WorkbookFunctionsSinRequestBuilder {
+ bb := &WorkbookFunctionsSinRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sin"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSinRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSinRequestBuilder) Request() *WorkbookFunctionsSinRequest {
+ return &WorkbookFunctionsSinRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSinRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSinh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSinh.go
new file mode 100644
index 00000000..a9d198c2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSinh.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSinhRequestBuilder struct{ BaseRequestBuilder }
+
+// Sinh action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sinh(reqObj *WorkbookFunctionsSinhRequestParameter) *WorkbookFunctionsSinhRequestBuilder {
+ bb := &WorkbookFunctionsSinhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sinh"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSinhRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSinhRequestBuilder) Request() *WorkbookFunctionsSinhRequest {
+ return &WorkbookFunctionsSinhRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSinhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew.go
new file mode 100644
index 00000000..141c4690
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSkewRequestBuilder struct{ BaseRequestBuilder }
+
+// Skew action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Skew(reqObj *WorkbookFunctionsSkewRequestParameter) *WorkbookFunctionsSkewRequestBuilder {
+ bb := &WorkbookFunctionsSkewRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/skew"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSkewRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSkewRequestBuilder) Request() *WorkbookFunctionsSkewRequest {
+ return &WorkbookFunctionsSkewRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSkewRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew_p.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew_p.go
new file mode 100644
index 00000000..2b52da68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSkew_p.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSkew_pRequestBuilder struct{ BaseRequestBuilder }
+
+// Skew_p action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Skew_p(reqObj *WorkbookFunctionsSkew_pRequestParameter) *WorkbookFunctionsSkew_pRequestBuilder {
+ bb := &WorkbookFunctionsSkew_pRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/skew_p"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSkew_pRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSkew_pRequestBuilder) Request() *WorkbookFunctionsSkew_pRequest {
+ return &WorkbookFunctionsSkew_pRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSkew_pRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSln.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSln.go
new file mode 100644
index 00000000..a67e6de1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSln.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSlnRequestBuilder struct{ BaseRequestBuilder }
+
+// Sln action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sln(reqObj *WorkbookFunctionsSlnRequestParameter) *WorkbookFunctionsSlnRequestBuilder {
+ bb := &WorkbookFunctionsSlnRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sln"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSlnRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSlnRequestBuilder) Request() *WorkbookFunctionsSlnRequest {
+ return &WorkbookFunctionsSlnRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSlnRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSmall.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSmall.go
new file mode 100644
index 00000000..c18f86df
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSmall.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSmallRequestBuilder struct{ BaseRequestBuilder }
+
+// Small action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Small(reqObj *WorkbookFunctionsSmallRequestParameter) *WorkbookFunctionsSmallRequestBuilder {
+ bb := &WorkbookFunctionsSmallRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/small"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSmallRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSmallRequestBuilder) Request() *WorkbookFunctionsSmallRequest {
+ return &WorkbookFunctionsSmallRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSmallRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSqrt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSqrt.go
new file mode 100644
index 00000000..bc30d0b3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSqrt.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSqrtRequestBuilder struct{ BaseRequestBuilder }
+
+// Sqrt action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sqrt(reqObj *WorkbookFunctionsSqrtRequestParameter) *WorkbookFunctionsSqrtRequestBuilder {
+ bb := &WorkbookFunctionsSqrtRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sqrt"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSqrtRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSqrtRequestBuilder) Request() *WorkbookFunctionsSqrtRequest {
+ return &WorkbookFunctionsSqrtRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSqrtRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsSqrtPiRequestBuilder struct{ BaseRequestBuilder }
+
+// SqrtPi action undocumented
+func (b *WorkbookFunctionsRequestBuilder) SqrtPi(reqObj *WorkbookFunctionsSqrtPiRequestParameter) *WorkbookFunctionsSqrtPiRequestBuilder {
+ bb := &WorkbookFunctionsSqrtPiRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sqrtPi"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSqrtPiRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSqrtPiRequestBuilder) Request() *WorkbookFunctionsSqrtPiRequest {
+ return &WorkbookFunctionsSqrtPiRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSqrtPiRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSt.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSt.go
new file mode 100644
index 00000000..a1bebc65
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSt.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsStDevARequestBuilder struct{ BaseRequestBuilder }
+
+// StDevA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) StDevA(reqObj *WorkbookFunctionsStDevARequestParameter) *WorkbookFunctionsStDevARequestBuilder {
+ bb := &WorkbookFunctionsStDevARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stDevA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsStDevARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsStDevARequestBuilder) Request() *WorkbookFunctionsStDevARequest {
+ return &WorkbookFunctionsStDevARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsStDevARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsStDevPARequestBuilder struct{ BaseRequestBuilder }
+
+// StDevPA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) StDevPA(reqObj *WorkbookFunctionsStDevPARequestParameter) *WorkbookFunctionsStDevPARequestBuilder {
+ bb := &WorkbookFunctionsStDevPARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stDevPA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsStDevPARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsStDevPARequestBuilder) Request() *WorkbookFunctionsStDevPARequest {
+ return &WorkbookFunctionsStDevPARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsStDevPARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsStDev_PRequestBuilder struct{ BaseRequestBuilder }
+
+// StDev_P action undocumented
+func (b *WorkbookFunctionsRequestBuilder) StDev_P(reqObj *WorkbookFunctionsStDev_PRequestParameter) *WorkbookFunctionsStDev_PRequestBuilder {
+ bb := &WorkbookFunctionsStDev_PRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stDev_P"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsStDev_PRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsStDev_PRequestBuilder) Request() *WorkbookFunctionsStDev_PRequest {
+ return &WorkbookFunctionsStDev_PRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsStDev_PRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsStDev_SRequestBuilder struct{ BaseRequestBuilder }
+
+// StDev_S action undocumented
+func (b *WorkbookFunctionsRequestBuilder) StDev_S(reqObj *WorkbookFunctionsStDev_SRequestParameter) *WorkbookFunctionsStDev_SRequestBuilder {
+ bb := &WorkbookFunctionsStDev_SRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/stDev_S"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsStDev_SRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsStDev_SRequestBuilder) Request() *WorkbookFunctionsStDev_SRequest {
+ return &WorkbookFunctionsStDev_SRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsStDev_SRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsStandardize.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsStandardize.go
new file mode 100644
index 00000000..894506cd
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsStandardize.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsStandardizeRequestBuilder struct{ BaseRequestBuilder }
+
+// Standardize action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Standardize(reqObj *WorkbookFunctionsStandardizeRequestParameter) *WorkbookFunctionsStandardizeRequestBuilder {
+ bb := &WorkbookFunctionsStandardizeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/standardize"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsStandardizeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsStandardizeRequestBuilder) Request() *WorkbookFunctionsStandardizeRequest {
+ return &WorkbookFunctionsStandardizeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsStandardizeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubstitute.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubstitute.go
new file mode 100644
index 00000000..46069aad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubstitute.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSubstituteRequestBuilder struct{ BaseRequestBuilder }
+
+// Substitute action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Substitute(reqObj *WorkbookFunctionsSubstituteRequestParameter) *WorkbookFunctionsSubstituteRequestBuilder {
+ bb := &WorkbookFunctionsSubstituteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/substitute"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSubstituteRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSubstituteRequestBuilder) Request() *WorkbookFunctionsSubstituteRequest {
+ return &WorkbookFunctionsSubstituteRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSubstituteRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubtotal.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubtotal.go
new file mode 100644
index 00000000..0b0cc269
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSubtotal.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSubtotalRequestBuilder struct{ BaseRequestBuilder }
+
+// Subtotal action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Subtotal(reqObj *WorkbookFunctionsSubtotalRequestParameter) *WorkbookFunctionsSubtotalRequestBuilder {
+ bb := &WorkbookFunctionsSubtotalRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/subtotal"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSubtotalRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSubtotalRequestBuilder) Request() *WorkbookFunctionsSubtotalRequest {
+ return &WorkbookFunctionsSubtotalRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSubtotalRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSum.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSum.go
new file mode 100644
index 00000000..6c8e0307
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSum.go
@@ -0,0 +1,113 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSumRequestBuilder struct{ BaseRequestBuilder }
+
+// Sum action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Sum(reqObj *WorkbookFunctionsSumRequestParameter) *WorkbookFunctionsSumRequestBuilder {
+ bb := &WorkbookFunctionsSumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sum"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSumRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSumRequestBuilder) Request() *WorkbookFunctionsSumRequest {
+ return &WorkbookFunctionsSumRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsSumIfRequestBuilder struct{ BaseRequestBuilder }
+
+// SumIf action undocumented
+func (b *WorkbookFunctionsRequestBuilder) SumIf(reqObj *WorkbookFunctionsSumIfRequestParameter) *WorkbookFunctionsSumIfRequestBuilder {
+ bb := &WorkbookFunctionsSumIfRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sumIf"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSumIfRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSumIfRequestBuilder) Request() *WorkbookFunctionsSumIfRequest {
+ return &WorkbookFunctionsSumIfRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSumIfRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsSumIfsRequestBuilder struct{ BaseRequestBuilder }
+
+// SumIfs action undocumented
+func (b *WorkbookFunctionsRequestBuilder) SumIfs(reqObj *WorkbookFunctionsSumIfsRequestParameter) *WorkbookFunctionsSumIfsRequestBuilder {
+ bb := &WorkbookFunctionsSumIfsRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sumIfs"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSumIfsRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSumIfsRequestBuilder) Request() *WorkbookFunctionsSumIfsRequest {
+ return &WorkbookFunctionsSumIfsRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSumIfsRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsSumSqRequestBuilder struct{ BaseRequestBuilder }
+
+// SumSq action undocumented
+func (b *WorkbookFunctionsRequestBuilder) SumSq(reqObj *WorkbookFunctionsSumSqRequestParameter) *WorkbookFunctionsSumSqRequestBuilder {
+ bb := &WorkbookFunctionsSumSqRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/sumSq"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSumSqRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSumSqRequestBuilder) Request() *WorkbookFunctionsSumSqRequest {
+ return &WorkbookFunctionsSumSqRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSumSqRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSyd.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSyd.go
new file mode 100644
index 00000000..386a96f1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsSyd.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsSydRequestBuilder struct{ BaseRequestBuilder }
+
+// Syd action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Syd(reqObj *WorkbookFunctionsSydRequestParameter) *WorkbookFunctionsSydRequestBuilder {
+ bb := &WorkbookFunctionsSydRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/syd"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsSydRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsSydRequestBuilder) Request() *WorkbookFunctionsSydRequest {
+ return &WorkbookFunctionsSydRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsSydRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT.go
new file mode 100644
index 00000000..953679f5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTRequestBuilder struct{ BaseRequestBuilder }
+
+// T action undocumented
+func (b *WorkbookFunctionsRequestBuilder) T(reqObj *WorkbookFunctionsTRequestParameter) *WorkbookFunctionsTRequestBuilder {
+ bb := &WorkbookFunctionsTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/t"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTRequestBuilder) Request() *WorkbookFunctionsTRequest {
+ return &WorkbookFunctionsTRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT_.go
new file mode 100644
index 00000000..80a2644f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsT_.go
@@ -0,0 +1,140 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsT_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// T_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) T_Dist(reqObj *WorkbookFunctionsT_DistRequestParameter) *WorkbookFunctionsT_DistRequestBuilder {
+ bb := &WorkbookFunctionsT_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/t_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsT_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsT_DistRequestBuilder) Request() *WorkbookFunctionsT_DistRequest {
+ return &WorkbookFunctionsT_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsT_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsT_Dist_2TRequestBuilder struct{ BaseRequestBuilder }
+
+// T_Dist_2T action undocumented
+func (b *WorkbookFunctionsRequestBuilder) T_Dist_2T(reqObj *WorkbookFunctionsT_Dist_2TRequestParameter) *WorkbookFunctionsT_Dist_2TRequestBuilder {
+ bb := &WorkbookFunctionsT_Dist_2TRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/t_Dist_2T"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsT_Dist_2TRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsT_Dist_2TRequestBuilder) Request() *WorkbookFunctionsT_Dist_2TRequest {
+ return &WorkbookFunctionsT_Dist_2TRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsT_Dist_2TRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsT_Dist_RTRequestBuilder struct{ BaseRequestBuilder }
+
+// T_Dist_RT action undocumented
+func (b *WorkbookFunctionsRequestBuilder) T_Dist_RT(reqObj *WorkbookFunctionsT_Dist_RTRequestParameter) *WorkbookFunctionsT_Dist_RTRequestBuilder {
+ bb := &WorkbookFunctionsT_Dist_RTRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/t_Dist_RT"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsT_Dist_RTRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsT_Dist_RTRequestBuilder) Request() *WorkbookFunctionsT_Dist_RTRequest {
+ return &WorkbookFunctionsT_Dist_RTRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsT_Dist_RTRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsT_InvRequestBuilder struct{ BaseRequestBuilder }
+
+// T_Inv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) T_Inv(reqObj *WorkbookFunctionsT_InvRequestParameter) *WorkbookFunctionsT_InvRequestBuilder {
+ bb := &WorkbookFunctionsT_InvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/t_Inv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsT_InvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsT_InvRequestBuilder) Request() *WorkbookFunctionsT_InvRequest {
+ return &WorkbookFunctionsT_InvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsT_InvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsT_Inv_2TRequestBuilder struct{ BaseRequestBuilder }
+
+// T_Inv_2T action undocumented
+func (b *WorkbookFunctionsRequestBuilder) T_Inv_2T(reqObj *WorkbookFunctionsT_Inv_2TRequestParameter) *WorkbookFunctionsT_Inv_2TRequestBuilder {
+ bb := &WorkbookFunctionsT_Inv_2TRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/t_Inv_2T"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsT_Inv_2TRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsT_Inv_2TRequestBuilder) Request() *WorkbookFunctionsT_Inv_2TRequest {
+ return &WorkbookFunctionsT_Inv_2TRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsT_Inv_2TRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTan.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTan.go
new file mode 100644
index 00000000..a64002a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTan.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTanRequestBuilder struct{ BaseRequestBuilder }
+
+// Tan action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Tan(reqObj *WorkbookFunctionsTanRequestParameter) *WorkbookFunctionsTanRequestBuilder {
+ bb := &WorkbookFunctionsTanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/tan"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTanRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTanRequestBuilder) Request() *WorkbookFunctionsTanRequest {
+ return &WorkbookFunctionsTanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTanh.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTanh.go
new file mode 100644
index 00000000..9be09161
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTanh.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTanhRequestBuilder struct{ BaseRequestBuilder }
+
+// Tanh action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Tanh(reqObj *WorkbookFunctionsTanhRequestParameter) *WorkbookFunctionsTanhRequestBuilder {
+ bb := &WorkbookFunctionsTanhRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/tanh"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTanhRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTanhRequestBuilder) Request() *WorkbookFunctionsTanhRequest {
+ return &WorkbookFunctionsTanhRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTanhRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTbill.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTbill.go
new file mode 100644
index 00000000..93ae1da8
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTbill.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTbillEqRequestBuilder struct{ BaseRequestBuilder }
+
+// TbillEq action undocumented
+func (b *WorkbookFunctionsRequestBuilder) TbillEq(reqObj *WorkbookFunctionsTbillEqRequestParameter) *WorkbookFunctionsTbillEqRequestBuilder {
+ bb := &WorkbookFunctionsTbillEqRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/tbillEq"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTbillEqRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTbillEqRequestBuilder) Request() *WorkbookFunctionsTbillEqRequest {
+ return &WorkbookFunctionsTbillEqRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTbillEqRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsTbillPriceRequestBuilder struct{ BaseRequestBuilder }
+
+// TbillPrice action undocumented
+func (b *WorkbookFunctionsRequestBuilder) TbillPrice(reqObj *WorkbookFunctionsTbillPriceRequestParameter) *WorkbookFunctionsTbillPriceRequestBuilder {
+ bb := &WorkbookFunctionsTbillPriceRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/tbillPrice"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTbillPriceRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTbillPriceRequestBuilder) Request() *WorkbookFunctionsTbillPriceRequest {
+ return &WorkbookFunctionsTbillPriceRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTbillPriceRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsTbillYieldRequestBuilder struct{ BaseRequestBuilder }
+
+// TbillYield action undocumented
+func (b *WorkbookFunctionsRequestBuilder) TbillYield(reqObj *WorkbookFunctionsTbillYieldRequestParameter) *WorkbookFunctionsTbillYieldRequestBuilder {
+ bb := &WorkbookFunctionsTbillYieldRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/tbillYield"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTbillYieldRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTbillYieldRequestBuilder) Request() *WorkbookFunctionsTbillYieldRequest {
+ return &WorkbookFunctionsTbillYieldRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTbillYieldRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsText.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsText.go
new file mode 100644
index 00000000..4a5be392
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsText.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTextRequestBuilder struct{ BaseRequestBuilder }
+
+// Text action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Text(reqObj *WorkbookFunctionsTextRequestParameter) *WorkbookFunctionsTextRequestBuilder {
+ bb := &WorkbookFunctionsTextRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/text"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTextRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTextRequestBuilder) Request() *WorkbookFunctionsTextRequest {
+ return &WorkbookFunctionsTextRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTextRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTime.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTime.go
new file mode 100644
index 00000000..2d9256ad
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTime.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTimeRequestBuilder struct{ BaseRequestBuilder }
+
+// Time action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Time(reqObj *WorkbookFunctionsTimeRequestParameter) *WorkbookFunctionsTimeRequestBuilder {
+ bb := &WorkbookFunctionsTimeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/time"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTimeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTimeRequestBuilder) Request() *WorkbookFunctionsTimeRequest {
+ return &WorkbookFunctionsTimeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTimeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTimevalue.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTimevalue.go
new file mode 100644
index 00000000..be96da8b
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTimevalue.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTimevalueRequestBuilder struct{ BaseRequestBuilder }
+
+// Timevalue action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Timevalue(reqObj *WorkbookFunctionsTimevalueRequestParameter) *WorkbookFunctionsTimevalueRequestBuilder {
+ bb := &WorkbookFunctionsTimevalueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/timevalue"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTimevalueRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTimevalueRequestBuilder) Request() *WorkbookFunctionsTimevalueRequest {
+ return &WorkbookFunctionsTimevalueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTimevalueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsToday.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsToday.go
new file mode 100644
index 00000000..9169d6a1
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsToday.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTodayRequestBuilder struct{ BaseRequestBuilder }
+
+// Today action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Today(reqObj *WorkbookFunctionsTodayRequestParameter) *WorkbookFunctionsTodayRequestBuilder {
+ bb := &WorkbookFunctionsTodayRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/today"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTodayRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTodayRequestBuilder) Request() *WorkbookFunctionsTodayRequest {
+ return &WorkbookFunctionsTodayRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTodayRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrim.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrim.go
new file mode 100644
index 00000000..8c195d68
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrim.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTrimRequestBuilder struct{ BaseRequestBuilder }
+
+// Trim action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Trim(reqObj *WorkbookFunctionsTrimRequestParameter) *WorkbookFunctionsTrimRequestBuilder {
+ bb := &WorkbookFunctionsTrimRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/trim"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTrimRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTrimRequestBuilder) Request() *WorkbookFunctionsTrimRequest {
+ return &WorkbookFunctionsTrimRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTrimRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsTrimMeanRequestBuilder struct{ BaseRequestBuilder }
+
+// TrimMean action undocumented
+func (b *WorkbookFunctionsRequestBuilder) TrimMean(reqObj *WorkbookFunctionsTrimMeanRequestParameter) *WorkbookFunctionsTrimMeanRequestBuilder {
+ bb := &WorkbookFunctionsTrimMeanRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/trimMean"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTrimMeanRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTrimMeanRequestBuilder) Request() *WorkbookFunctionsTrimMeanRequest {
+ return &WorkbookFunctionsTrimMeanRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTrimMeanRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrue.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrue.go
new file mode 100644
index 00000000..df1f7b2a
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrue.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTrueRequestBuilder struct{ BaseRequestBuilder }
+
+// True action undocumented
+func (b *WorkbookFunctionsRequestBuilder) True(reqObj *WorkbookFunctionsTrueRequestParameter) *WorkbookFunctionsTrueRequestBuilder {
+ bb := &WorkbookFunctionsTrueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/true"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTrueRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTrueRequestBuilder) Request() *WorkbookFunctionsTrueRequest {
+ return &WorkbookFunctionsTrueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTrueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrunc.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrunc.go
new file mode 100644
index 00000000..98e4aec5
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsTrunc.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTruncRequestBuilder struct{ BaseRequestBuilder }
+
+// Trunc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Trunc(reqObj *WorkbookFunctionsTruncRequestParameter) *WorkbookFunctionsTruncRequestBuilder {
+ bb := &WorkbookFunctionsTruncRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/trunc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTruncRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTruncRequestBuilder) Request() *WorkbookFunctionsTruncRequest {
+ return &WorkbookFunctionsTruncRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTruncRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsType.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsType.go
new file mode 100644
index 00000000..8f2b24de
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsType.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsTypeRequestBuilder struct{ BaseRequestBuilder }
+
+// Type action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Type(reqObj *WorkbookFunctionsTypeRequestParameter) *WorkbookFunctionsTypeRequestBuilder {
+ bb := &WorkbookFunctionsTypeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/type"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsTypeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsTypeRequestBuilder) Request() *WorkbookFunctionsTypeRequest {
+ return &WorkbookFunctionsTypeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsTypeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnichar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnichar.go
new file mode 100644
index 00000000..11df67e7
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnichar.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsUnicharRequestBuilder struct{ BaseRequestBuilder }
+
+// Unichar action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Unichar(reqObj *WorkbookFunctionsUnicharRequestParameter) *WorkbookFunctionsUnicharRequestBuilder {
+ bb := &WorkbookFunctionsUnicharRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unichar"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsUnicharRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsUnicharRequestBuilder) Request() *WorkbookFunctionsUnicharRequest {
+ return &WorkbookFunctionsUnicharRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsUnicharRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnicode.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnicode.go
new file mode 100644
index 00000000..b92f3570
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUnicode.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsUnicodeRequestBuilder struct{ BaseRequestBuilder }
+
+// Unicode action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Unicode(reqObj *WorkbookFunctionsUnicodeRequestParameter) *WorkbookFunctionsUnicodeRequestBuilder {
+ bb := &WorkbookFunctionsUnicodeRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/unicode"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsUnicodeRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsUnicodeRequestBuilder) Request() *WorkbookFunctionsUnicodeRequest {
+ return &WorkbookFunctionsUnicodeRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsUnicodeRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUpper.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUpper.go
new file mode 100644
index 00000000..6ae98c66
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUpper.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsUpperRequestBuilder struct{ BaseRequestBuilder }
+
+// Upper action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Upper(reqObj *WorkbookFunctionsUpperRequestParameter) *WorkbookFunctionsUpperRequestBuilder {
+ bb := &WorkbookFunctionsUpperRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/upper"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsUpperRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsUpperRequestBuilder) Request() *WorkbookFunctionsUpperRequest {
+ return &WorkbookFunctionsUpperRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsUpperRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUsdollar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUsdollar.go
new file mode 100644
index 00000000..7c7b5b7f
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsUsdollar.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsUsdollarRequestBuilder struct{ BaseRequestBuilder }
+
+// Usdollar action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Usdollar(reqObj *WorkbookFunctionsUsdollarRequestParameter) *WorkbookFunctionsUsdollarRequestBuilder {
+ bb := &WorkbookFunctionsUsdollarRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/usdollar"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsUsdollarRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsUsdollarRequestBuilder) Request() *WorkbookFunctionsUsdollarRequest {
+ return &WorkbookFunctionsUsdollarRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsUsdollarRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsValue.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsValue.go
new file mode 100644
index 00000000..bc0bdcaa
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsValue.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsValueRequestBuilder struct{ BaseRequestBuilder }
+
+// Value action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Value(reqObj *WorkbookFunctionsValueRequestParameter) *WorkbookFunctionsValueRequestBuilder {
+ bb := &WorkbookFunctionsValueRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/value"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsValueRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsValueRequestBuilder) Request() *WorkbookFunctionsValueRequest {
+ return &WorkbookFunctionsValueRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsValueRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar.go
new file mode 100644
index 00000000..25dbef1c
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsVarARequestBuilder struct{ BaseRequestBuilder }
+
+// VarA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) VarA(reqObj *WorkbookFunctionsVarARequestParameter) *WorkbookFunctionsVarARequestBuilder {
+ bb := &WorkbookFunctionsVarARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/varA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsVarARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsVarARequestBuilder) Request() *WorkbookFunctionsVarARequest {
+ return &WorkbookFunctionsVarARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsVarARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsVarPARequestBuilder struct{ BaseRequestBuilder }
+
+// VarPA action undocumented
+func (b *WorkbookFunctionsRequestBuilder) VarPA(reqObj *WorkbookFunctionsVarPARequestParameter) *WorkbookFunctionsVarPARequestBuilder {
+ bb := &WorkbookFunctionsVarPARequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/varPA"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsVarPARequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsVarPARequestBuilder) Request() *WorkbookFunctionsVarPARequest {
+ return &WorkbookFunctionsVarPARequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsVarPARequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar_.go
new file mode 100644
index 00000000..3f088766
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVar_.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsVar_PRequestBuilder struct{ BaseRequestBuilder }
+
+// Var_P action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Var_P(reqObj *WorkbookFunctionsVar_PRequestParameter) *WorkbookFunctionsVar_PRequestBuilder {
+ bb := &WorkbookFunctionsVar_PRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/var_P"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsVar_PRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsVar_PRequestBuilder) Request() *WorkbookFunctionsVar_PRequest {
+ return &WorkbookFunctionsVar_PRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsVar_PRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsVar_SRequestBuilder struct{ BaseRequestBuilder }
+
+// Var_S action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Var_S(reqObj *WorkbookFunctionsVar_SRequestParameter) *WorkbookFunctionsVar_SRequestBuilder {
+ bb := &WorkbookFunctionsVar_SRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/var_S"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsVar_SRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsVar_SRequestBuilder) Request() *WorkbookFunctionsVar_SRequest {
+ return &WorkbookFunctionsVar_SRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsVar_SRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVdb.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVdb.go
new file mode 100644
index 00000000..abb90fa3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVdb.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsVdbRequestBuilder struct{ BaseRequestBuilder }
+
+// Vdb action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Vdb(reqObj *WorkbookFunctionsVdbRequestParameter) *WorkbookFunctionsVdbRequestBuilder {
+ bb := &WorkbookFunctionsVdbRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/vdb"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsVdbRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsVdbRequestBuilder) Request() *WorkbookFunctionsVdbRequest {
+ return &WorkbookFunctionsVdbRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsVdbRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVlookup.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVlookup.go
new file mode 100644
index 00000000..ad7debc2
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsVlookup.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsVlookupRequestBuilder struct{ BaseRequestBuilder }
+
+// Vlookup action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Vlookup(reqObj *WorkbookFunctionsVlookupRequestParameter) *WorkbookFunctionsVlookupRequestBuilder {
+ bb := &WorkbookFunctionsVlookupRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/vlookup"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsVlookupRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsVlookupRequestBuilder) Request() *WorkbookFunctionsVlookupRequest {
+ return &WorkbookFunctionsVlookupRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsVlookupRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeek.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeek.go
new file mode 100644
index 00000000..4cfbea3e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeek.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsWeekNumRequestBuilder struct{ BaseRequestBuilder }
+
+// WeekNum action undocumented
+func (b *WorkbookFunctionsRequestBuilder) WeekNum(reqObj *WorkbookFunctionsWeekNumRequestParameter) *WorkbookFunctionsWeekNumRequestBuilder {
+ bb := &WorkbookFunctionsWeekNumRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/weekNum"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsWeekNumRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsWeekNumRequestBuilder) Request() *WorkbookFunctionsWeekNumRequest {
+ return &WorkbookFunctionsWeekNumRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsWeekNumRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeekday.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeekday.go
new file mode 100644
index 00000000..5862a2e3
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeekday.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsWeekdayRequestBuilder struct{ BaseRequestBuilder }
+
+// Weekday action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Weekday(reqObj *WorkbookFunctionsWeekdayRequestParameter) *WorkbookFunctionsWeekdayRequestBuilder {
+ bb := &WorkbookFunctionsWeekdayRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/weekday"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsWeekdayRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsWeekdayRequestBuilder) Request() *WorkbookFunctionsWeekdayRequest {
+ return &WorkbookFunctionsWeekdayRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsWeekdayRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeibull_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeibull_.go
new file mode 100644
index 00000000..7d5588dc
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWeibull_.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsWeibull_DistRequestBuilder struct{ BaseRequestBuilder }
+
+// Weibull_Dist action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Weibull_Dist(reqObj *WorkbookFunctionsWeibull_DistRequestParameter) *WorkbookFunctionsWeibull_DistRequestBuilder {
+ bb := &WorkbookFunctionsWeibull_DistRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/weibull_Dist"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsWeibull_DistRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsWeibull_DistRequestBuilder) Request() *WorkbookFunctionsWeibull_DistRequest {
+ return &WorkbookFunctionsWeibull_DistRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsWeibull_DistRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWork.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWork.go
new file mode 100644
index 00000000..2f07d28e
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsWork.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsWorkDayRequestBuilder struct{ BaseRequestBuilder }
+
+// WorkDay action undocumented
+func (b *WorkbookFunctionsRequestBuilder) WorkDay(reqObj *WorkbookFunctionsWorkDayRequestParameter) *WorkbookFunctionsWorkDayRequestBuilder {
+ bb := &WorkbookFunctionsWorkDayRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/workDay"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsWorkDayRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsWorkDayRequestBuilder) Request() *WorkbookFunctionsWorkDayRequest {
+ return &WorkbookFunctionsWorkDayRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsWorkDayRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsWorkDay_IntlRequestBuilder struct{ BaseRequestBuilder }
+
+// WorkDay_Intl action undocumented
+func (b *WorkbookFunctionsRequestBuilder) WorkDay_Intl(reqObj *WorkbookFunctionsWorkDay_IntlRequestParameter) *WorkbookFunctionsWorkDay_IntlRequestBuilder {
+ bb := &WorkbookFunctionsWorkDay_IntlRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/workDay_Intl"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsWorkDay_IntlRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsWorkDay_IntlRequestBuilder) Request() *WorkbookFunctionsWorkDay_IntlRequest {
+ return &WorkbookFunctionsWorkDay_IntlRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsWorkDay_IntlRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXirr.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXirr.go
new file mode 100644
index 00000000..56143a27
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXirr.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsXirrRequestBuilder struct{ BaseRequestBuilder }
+
+// Xirr action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Xirr(reqObj *WorkbookFunctionsXirrRequestParameter) *WorkbookFunctionsXirrRequestBuilder {
+ bb := &WorkbookFunctionsXirrRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/xirr"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsXirrRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsXirrRequestBuilder) Request() *WorkbookFunctionsXirrRequest {
+ return &WorkbookFunctionsXirrRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsXirrRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXnpv.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXnpv.go
new file mode 100644
index 00000000..962bd0d0
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXnpv.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsXnpvRequestBuilder struct{ BaseRequestBuilder }
+
+// Xnpv action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Xnpv(reqObj *WorkbookFunctionsXnpvRequestParameter) *WorkbookFunctionsXnpvRequestBuilder {
+ bb := &WorkbookFunctionsXnpvRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/xnpv"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsXnpvRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsXnpvRequestBuilder) Request() *WorkbookFunctionsXnpvRequest {
+ return &WorkbookFunctionsXnpvRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsXnpvRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXor.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXor.go
new file mode 100644
index 00000000..b541a3f4
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsXor.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsXorRequestBuilder struct{ BaseRequestBuilder }
+
+// Xor action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Xor(reqObj *WorkbookFunctionsXorRequestParameter) *WorkbookFunctionsXorRequestBuilder {
+ bb := &WorkbookFunctionsXorRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/xor"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsXorRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsXorRequestBuilder) Request() *WorkbookFunctionsXorRequest {
+ return &WorkbookFunctionsXorRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsXorRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYear.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYear.go
new file mode 100644
index 00000000..4a5e1e73
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYear.go
@@ -0,0 +1,59 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsYearRequestBuilder struct{ BaseRequestBuilder }
+
+// Year action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Year(reqObj *WorkbookFunctionsYearRequestParameter) *WorkbookFunctionsYearRequestBuilder {
+ bb := &WorkbookFunctionsYearRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/year"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsYearRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsYearRequestBuilder) Request() *WorkbookFunctionsYearRequest {
+ return &WorkbookFunctionsYearRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsYearRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsYearFracRequestBuilder struct{ BaseRequestBuilder }
+
+// YearFrac action undocumented
+func (b *WorkbookFunctionsRequestBuilder) YearFrac(reqObj *WorkbookFunctionsYearFracRequestParameter) *WorkbookFunctionsYearFracRequestBuilder {
+ bb := &WorkbookFunctionsYearFracRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/yearFrac"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsYearFracRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsYearFracRequestBuilder) Request() *WorkbookFunctionsYearFracRequest {
+ return &WorkbookFunctionsYearFracRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsYearFracRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYield.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYield.go
new file mode 100644
index 00000000..d69dc736
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsYield.go
@@ -0,0 +1,86 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsYieldRequestBuilder struct{ BaseRequestBuilder }
+
+// Yield action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Yield(reqObj *WorkbookFunctionsYieldRequestParameter) *WorkbookFunctionsYieldRequestBuilder {
+ bb := &WorkbookFunctionsYieldRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/yield"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsYieldRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsYieldRequestBuilder) Request() *WorkbookFunctionsYieldRequest {
+ return &WorkbookFunctionsYieldRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsYieldRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsYieldDiscRequestBuilder struct{ BaseRequestBuilder }
+
+// YieldDisc action undocumented
+func (b *WorkbookFunctionsRequestBuilder) YieldDisc(reqObj *WorkbookFunctionsYieldDiscRequestParameter) *WorkbookFunctionsYieldDiscRequestBuilder {
+ bb := &WorkbookFunctionsYieldDiscRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/yieldDisc"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsYieldDiscRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsYieldDiscRequestBuilder) Request() *WorkbookFunctionsYieldDiscRequest {
+ return &WorkbookFunctionsYieldDiscRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsYieldDiscRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
+
+//
+type WorkbookFunctionsYieldMatRequestBuilder struct{ BaseRequestBuilder }
+
+// YieldMat action undocumented
+func (b *WorkbookFunctionsRequestBuilder) YieldMat(reqObj *WorkbookFunctionsYieldMatRequestParameter) *WorkbookFunctionsYieldMatRequestBuilder {
+ bb := &WorkbookFunctionsYieldMatRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/yieldMat"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsYieldMatRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsYieldMatRequestBuilder) Request() *WorkbookFunctionsYieldMatRequest {
+ return &WorkbookFunctionsYieldMatRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsYieldMatRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsZ_.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsZ_.go
new file mode 100644
index 00000000..1117ce36
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkbookFunctionsZ_.go
@@ -0,0 +1,32 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+//
+type WorkbookFunctionsZ_TestRequestBuilder struct{ BaseRequestBuilder }
+
+// Z_Test action undocumented
+func (b *WorkbookFunctionsRequestBuilder) Z_Test(reqObj *WorkbookFunctionsZ_TestRequestParameter) *WorkbookFunctionsZ_TestRequestBuilder {
+ bb := &WorkbookFunctionsZ_TestRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ bb.BaseRequestBuilder.baseURL += "/z_Test"
+ bb.BaseRequestBuilder.requestObject = reqObj
+ return bb
+}
+
+//
+type WorkbookFunctionsZ_TestRequest struct{ BaseRequest }
+
+//
+func (b *WorkbookFunctionsZ_TestRequestBuilder) Request() *WorkbookFunctionsZ_TestRequest {
+ return &WorkbookFunctionsZ_TestRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client, requestObject: b.requestObject},
+ }
+}
+
+//
+func (r *WorkbookFunctionsZ_TestRequest) Post(ctx context.Context) (resObj *WorkbookFunctionResult, err error) {
+ err = r.JSONRequest(ctx, "POST", "", r.requestObject, &resObj)
+ return
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkforce.go b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkforce.go
new file mode 100644
index 00000000..30a69010
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/RequestWorkforce.go
@@ -0,0 +1,38 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import "context"
+
+// WorkforceIntegrationRequestBuilder is request builder for WorkforceIntegration
+type WorkforceIntegrationRequestBuilder struct{ BaseRequestBuilder }
+
+// Request returns WorkforceIntegrationRequest
+func (b *WorkforceIntegrationRequestBuilder) Request() *WorkforceIntegrationRequest {
+ return &WorkforceIntegrationRequest{
+ BaseRequest: BaseRequest{baseURL: b.baseURL, client: b.client},
+ }
+}
+
+// WorkforceIntegrationRequest is request for WorkforceIntegration
+type WorkforceIntegrationRequest struct{ BaseRequest }
+
+// Get performs GET request for WorkforceIntegration
+func (r *WorkforceIntegrationRequest) Get(ctx context.Context) (resObj *WorkforceIntegration, err error) {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ err = r.JSONRequest(ctx, "GET", query, nil, &resObj)
+ return
+}
+
+// Update performs PATCH request for WorkforceIntegration
+func (r *WorkforceIntegrationRequest) Update(ctx context.Context, reqObj *WorkforceIntegration) error {
+ return r.JSONRequest(ctx, "PATCH", "", reqObj, nil)
+}
+
+// Delete performs DELETE request for WorkforceIntegration
+func (r *WorkforceIntegrationRequest) Delete(ctx context.Context) error {
+ return r.JSONRequest(ctx, "DELETE", "", nil, nil)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/extensions.go b/vendor/github.com/yaegashi/msgraph.go/beta/extensions.go
new file mode 100644
index 00000000..23971438
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/extensions.go
@@ -0,0 +1,62 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "context"
+ "fmt"
+ "net/url"
+ "strings"
+)
+
+// ItemWithPath returns DriveItemRequestBuilder addressed by relative path
+func (b *DriveItemRequestBuilder) ItemWithPath(path string) *DriveItemRequestBuilder {
+ bb := &DriveItemRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ if len(path) == 0 || path[0] != '/' {
+ path = "/" + path
+ }
+ bb.baseURL += ":" + path + ":"
+ return bb
+}
+
+// GetByPath returns SiteRequestBuilder addressed by hostname and path
+func (b *GraphServiceSitesCollectionRequestBuilder) GetByPath(hostname, path string) *SiteRequestBuilder {
+ bb := &SiteRequestBuilder{BaseRequestBuilder: b.BaseRequestBuilder}
+ if len(path) == 0 || path[0] != '/' {
+ path = "/" + path
+ }
+ bb.baseURL += "/" + hostname + ":" + path + ":"
+ return bb
+}
+
+// GetDriveItemByURL returns DriveItemRequestBuilder addressed by URL
+func (b *GraphServiceRequestBuilder) GetDriveItemByURL(ctx context.Context, itemURL string) (*DriveItemRequestBuilder, error) {
+ u, err := url.Parse(itemURL)
+ if err != nil {
+ return nil, err
+ }
+ u.RawQuery = ""
+ itemURL = u.String()
+ var site *Site
+ segments := strings.Split(u.Path, "/")
+ for i := 3; i <= len(segments); i++ {
+ site, err = b.Sites().GetByPath(u.Hostname(), strings.Join(segments[:i], "/")).Request().Get(ctx)
+ if err == nil {
+ break
+ }
+ }
+ if site == nil {
+ return nil, fmt.Errorf("Site for %s not found", itemURL)
+ }
+ drives, err := b.Sites().ID(*site.ID).Drives().Request().Get(ctx)
+ if err != nil {
+ return nil, err
+ }
+ for _, drive := range drives {
+ if strings.HasPrefix(itemURL, *drive.WebURL) {
+ path := itemURL[len(*drive.WebURL):]
+ return b.Drives().ID(*drive.ID).Root().ItemWithPath(path), nil
+ }
+ }
+ return nil, fmt.Errorf("DriveItem for %s not found", itemURL)
+}
diff --git a/vendor/github.com/yaegashi/msgraph.go/beta/msgraph.go b/vendor/github.com/yaegashi/msgraph.go/beta/msgraph.go
new file mode 100644
index 00000000..df1f4384
--- /dev/null
+++ b/vendor/github.com/yaegashi/msgraph.go/beta/msgraph.go
@@ -0,0 +1,338 @@
+// Code generated by msgraph-generate.go DO NOT EDIT.
+
+package msgraph
+
+import (
+ "bytes"
+ "context"
+ "encoding/json"
+ "fmt"
+ "io"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "strconv"
+ "time"
+
+ "github.com/rickb777/date/period"
+ "github.com/yaegashi/msgraph.go/jsonx"
+)
+
+const (
+ defaultBaseURL = "https://graph.microsoft.com/beta"
+)
+
+// Binary is type alias for Edm.Binary
+type Binary []byte
+
+// Stream is type alias for Edm.Stream
+type Stream []byte
+
+// UUID is type alias for Edm.Guid
+type UUID string
+
+// Date is type alias for Edm.Date
+type Date string
+
+// NewDate creates Date from time.Time
+func NewDate(t time.Time) *Date {
+ s := t.Format("2006-01-02")
+ return (*Date)(&s)
+}
+
+// Time converts Date to time.Time
+func (d *Date) Time() (time.Time, error) {
+ return time.Parse("2006-01-02", string(*d))
+}
+
+// TimeOfDay is type alis for Edm.TimeOfDay
+type TimeOfDay string
+
+// NewTimeOfDay creates NewTimeOfDay from time.Time
+func NewTimeOfDay(t time.Time) *TimeOfDay {
+ s := t.Format("15:04:05")
+ return (*TimeOfDay)(&s)
+}
+
+// Time converts TimeOfDay to time.Time
+func (t *TimeOfDay) Time() (time.Time, error) {
+ return time.Parse("15:04:05", string(*t))
+}
+
+// Duration is type alias for Edm.Duration
+type Duration string
+
+// NewDuration creates Duration from time.Duration
+func NewDuration(d time.Duration) *Duration {
+ p, _ := period.NewOf(d)
+ s := p.String()
+ return (*Duration)(&s)
+}
+
+// Time converts Duration to time.Duration
+func (d *Duration) Time() (time.Duration, error) {
+ p, err := period.Parse(string(*d))
+ if err != nil {
+ return 0, err
+ }
+ return p.DurationApprox(), nil
+}
+
+// Object is the common ancestor of all models
+type Object struct {
+ // AdditionalData contains all other fields not defined above
+ AdditionalData map[string]interface{} `json:"-" jsonx:"true"`
+}
+
+// SetAdditionalData sets object's additional data
+func (o *Object) SetAdditionalData(key string, val interface{}) {
+ if o.AdditionalData == nil {
+ o.AdditionalData = map[string]interface{}{key: val}
+ } else {
+ o.AdditionalData[key] = val
+ }
+}
+
+// GetAdditionalData gets object's additional data
+func (o *Object) GetAdditionalData(key string) (interface{}, bool) {
+ if o.AdditionalData == nil {
+ return nil, false
+ } else {
+ val, ok := o.AdditionalData[key]
+ return val, ok
+ }
+}
+
+// ErrorObject is common error object
+type ErrorObject struct {
+ Code string `json:"code"`
+ Message string `json:"message"`
+ Object
+}
+
+// ErrorResponse is common error response
+type ErrorResponse struct {
+ ErrorObject ErrorObject `json:"error"`
+ Response *http.Response `json:"-"`
+ Object
+}
+
+// Error implements error interface
+func (r *ErrorResponse) Error() string {
+ b, _ := jsonx.Marshal(r)
+ return fmt.Sprintf("%s: %s", r.Status(), string(b))
+}
+
+// Status returns status, "000 Unknown" if response is nil
+func (r *ErrorResponse) Status() string {
+ if r.Response == nil {
+ return "000 Unknown"
+ }
+ return r.Response.Status
+}
+
+// StatusCode returns status code, 0 if response is nil
+func (r *ErrorResponse) StatusCode() int {
+ if r.Response == nil {
+ return 0
+ }
+ return r.Response.StatusCode
+}
+
+// Paging is sturct returned to paging requests
+type Paging struct {
+ NextLink string `json:"@odata.nextLink"`
+ Value json.RawMessage `json:"value"`
+}
+
+// BaseRequestBuilder is base reuqest builder
+type BaseRequestBuilder struct {
+ baseURL string
+ client *http.Client
+ requestObject interface{}
+}
+
+// URL returns URL
+func (r *BaseRequestBuilder) URL() string {
+ return r.baseURL
+}
+
+// SetURL sets the baseURL
+func (r *BaseRequestBuilder) SetURL(baseURL string) {
+ r.baseURL = baseURL
+}
+
+// BaseRequest is base request
+type BaseRequest struct {
+ baseURL string
+ client *http.Client
+ requestObject interface{}
+ header http.Header
+ query url.Values
+}
+
+// URL returns URL with queries
+func (r *BaseRequest) URL() string {
+ var query string
+ if r.query != nil {
+ query = "?" + r.query.Encode()
+ }
+ return r.baseURL + query
+}
+
+// Client returns HTTP client
+func (r *BaseRequest) Client() *http.Client {
+ return r.client
+}
+
+// Header returns headers of the request
+func (r *BaseRequest) Header() http.Header {
+ if r.header == nil {
+ r.header = http.Header{}
+ }
+ return r.header
+}
+
+// Query returns queries of the request
+func (r *BaseRequest) Query() url.Values {
+ if r.query == nil {
+ r.query = url.Values{}
+ }
+ return r.query
+}
+
+// Expand adds $expand query
+func (r *BaseRequest) Expand(value string) {
+ if r.query == nil {
+ r.query = url.Values{}
+ }
+ r.query.Add("$expand", value)
+}
+
+// Select adds $select query
+func (r *BaseRequest) Select(value string) {
+ if r.query == nil {
+ r.query = url.Values{}
+ }
+ r.query.Add("$select", value)
+}
+
+// Top adds $top query
+func (r *BaseRequest) Top(value int) {
+ if r.query == nil {
+ r.query = url.Values{}
+ }
+ r.query.Add("$top", strconv.Itoa(value))
+}
+
+// Filter adds $filter query
+func (r *BaseRequest) Filter(value string) {
+ if r.query == nil {
+ r.query = url.Values{}
+ }
+ r.query.Add("$filter", value)
+}
+
+// Skip adds $skip query
+func (r *BaseRequest) Skip(value int) {
+ if r.query == nil {
+ r.query = url.Values{}
+ }
+ r.query.Add("$skip", strconv.Itoa(value))
+}
+
+// OrderBy adds $orderby query
+func (r *BaseRequest) OrderBy(value string) {
+ if r.query == nil {
+ r.query = url.Values{}
+ }
+ r.query.Add("$orderby", value)
+}
+
+// NewRequest returns new HTTP request
+func (r *BaseRequest) NewRequest(method, path string, body io.Reader) (*http.Request, error) {
+ req, err := http.NewRequest(method, r.baseURL+path, body)
+ if err != nil {
+ return nil, err
+ }
+ if r.header != nil {
+ for key, values := range r.header {
+ for _, value := range values {
+ req.Header.Add(key, value)
+ }
+ }
+ }
+ return req, nil
+}
+
+// NewJSONRequest returns new HTTP request with JSON payload
+func (r *BaseRequest) NewJSONRequest(method, path string, obj interface{}) (*http.Request, error) {
+ buf := &bytes.Buffer{}
+ if obj != nil {
+ err := jsonx.NewEncoder(buf).Encode(obj)
+ if err != nil {
+ return nil, err
+ }
+ }
+ req, err := r.NewRequest(method, path, buf)
+ if err != nil {
+ return nil, err
+ }
+ if obj != nil {
+ req.Header.Add("Content-Type", "application/json")
+ }
+ return req, nil
+}
+
+// DecodeJSONResponse decodes HTTP response with JSON payload
+func (r *BaseRequest) DecodeJSONResponse(res *http.Response, obj interface{}) error {
+ switch res.StatusCode {
+ case http.StatusOK, http.StatusCreated:
+ if obj != nil {
+ err := jsonx.NewDecoder(res.Body).Decode(obj)
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+ case http.StatusNoContent:
+ return nil
+ default:
+ b, _ := ioutil.ReadAll(res.Body)
+ errRes := &ErrorResponse{Response: res}
+ err := jsonx.Unmarshal(b, errRes)
+ if err != nil {
+ return fmt.Errorf("%s: %s", res.Status, string(b))
+ }
+ return errRes
+ }
+}
+
+// JSONRequest issues HTTP request with JSON payload
+func (r *BaseRequest) JSONRequest(ctx context.Context, method, path string, reqObj, resObj interface{}) error {
+ req, err := r.NewJSONRequest(method, path, reqObj)
+ if err != nil {
+ return err
+ }
+ if ctx != nil {
+ req = req.WithContext(ctx)
+ }
+ res, err := r.client.Do(req)
+ if err != nil {
+ return err
+ }
+ defer res.Body.Close()
+ return r.DecodeJSONResponse(res, resObj)
+}
+
+// GraphServiceRequestBuilder is GraphService reuqest builder
+type GraphServiceRequestBuilder struct {
+ BaseRequestBuilder
+}
+
+// NewClient returns GraphService request builder with default base URL
+func NewClient(cli *http.Client) *GraphServiceRequestBuilder {
+ return &GraphServiceRequestBuilder{
+ BaseRequestBuilder: BaseRequestBuilder{baseURL: defaultBaseURL, client: cli},
+ }
+}